chore: update dependencies
This commit is contained in:
@@ -72,9 +72,6 @@ module.exports = withBundleAnalyzer(
|
||||
},
|
||||
productionBrowserSourceMaps: true,
|
||||
|
||||
// disable swc due to a bug https://github.com/swc-project/swc/issues/7640
|
||||
swcMinify: false,
|
||||
|
||||
webpack(config) {
|
||||
config.resolve.fallback = { fs: false } // polyfill node-id3
|
||||
|
||||
|
||||
+22
-22
@@ -38,7 +38,7 @@
|
||||
"@codemirror/language-data": "6.3.1",
|
||||
"@codemirror/state": "6.2.1",
|
||||
"@codemirror/theme-one-dark": "6.1.2",
|
||||
"@codemirror/view": "6.14.1",
|
||||
"@codemirror/view": "6.15.0",
|
||||
"@crossbell/connect-kit": "1.5.2",
|
||||
"@crossbell/contract": "1.5.2",
|
||||
"@crossbell/indexer": "1.5.2",
|
||||
@@ -50,7 +50,7 @@
|
||||
"@dqbd/tiktoken": "1.0.7",
|
||||
"@emoji-mart/data": "1.1.2",
|
||||
"@emoji-mart/react": "1.1.1",
|
||||
"@floating-ui/react": "0.24.6",
|
||||
"@floating-ui/react": "0.24.8",
|
||||
"@headlessui/react": "1.7.15",
|
||||
"@heroicons/react": "2.0.18",
|
||||
"@iconify-json/mingcute": "1.1.7",
|
||||
@@ -61,8 +61,8 @@
|
||||
"@popperjs/core": "2.11.8",
|
||||
"@prisma/client": "5.0.0",
|
||||
"@supercharge/request-ip": "1.2.0",
|
||||
"@tanstack/react-query": "4.29.19",
|
||||
"@tanstack/react-query-devtools": "4.29.19",
|
||||
"@tanstack/react-query": "4.29.25",
|
||||
"@tanstack/react-query-devtools": "4.29.25",
|
||||
"@uiw/codemirror-extensions-events": "4.21.7",
|
||||
"@urql/core": "4.0.11",
|
||||
"ahooks": "3.7.8",
|
||||
@@ -71,7 +71,7 @@
|
||||
"canvas": "2.11.2",
|
||||
"canvas-confetti": "1.6.0",
|
||||
"chroma-js": "2.4.2",
|
||||
"clsx": "1.2.1",
|
||||
"clsx": "2.0.0",
|
||||
"crossbell": "1.4.2",
|
||||
"dayjs": "1.11.9",
|
||||
"dotenv": "16.3.1",
|
||||
@@ -90,18 +90,18 @@
|
||||
"jsdom": "22.1.0",
|
||||
"jsonfeed-to-rss": "3.0.7",
|
||||
"katex": "0.16.8",
|
||||
"langchain": "0.0.107",
|
||||
"langchain": "0.0.110",
|
||||
"lottie-react": "2.4.0",
|
||||
"mdast-util-to-hast": "12.3.0",
|
||||
"mdast-util-toc": "7.0.0",
|
||||
"medium-zoom": "1.0.8",
|
||||
"mermaid": "10.2.4",
|
||||
"nanoid": "4.0.2",
|
||||
"next": "13.4.9",
|
||||
"next": "13.4.10",
|
||||
"node-id3": "0.2.6",
|
||||
"pangu": "4.0.7",
|
||||
"path-to-regexp": "6.2.1",
|
||||
"pinyin-pro": "3.15.4",
|
||||
"pinyin-pro": "3.16.0",
|
||||
"plaiceholder": "3.0.0",
|
||||
"prismjs": "1.29.0",
|
||||
"qier-progress": "1.0.4",
|
||||
@@ -109,10 +109,10 @@
|
||||
"rc-dplayer": "0.1.0",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"react-hook-form": "7.45.1",
|
||||
"react-hook-form": "7.45.2",
|
||||
"react-hot-toast": "2.4.1",
|
||||
"react-i18next": "13.0.2",
|
||||
"react-parallax-tilt": "1.7.152",
|
||||
"react-parallax-tilt": "1.7.153",
|
||||
"react-popper": "2.3.0",
|
||||
"react-sortablejs": "6.1.4",
|
||||
"react-string-replace": "1.1.1",
|
||||
@@ -141,9 +141,9 @@
|
||||
"remark-stringify": "10.0.3",
|
||||
"remove-markdown": "0.5.0",
|
||||
"serialize-javascript": "6.0.1",
|
||||
"sharp": "0.32.2",
|
||||
"sharp": "0.32.3",
|
||||
"sortablejs": "1.15.0",
|
||||
"tailwind-merge": "1.13.2",
|
||||
"tailwind-merge": "1.14.0",
|
||||
"tailwind-scrollbar-hide": "1.1.7",
|
||||
"tailwindcss-animate": "1.0.6",
|
||||
"unified": "10.1.2",
|
||||
@@ -152,14 +152,14 @@
|
||||
"unist-util-visit": "5.0.0",
|
||||
"use-onclickoutside": "0.4.1",
|
||||
"uuid": "9.0.0",
|
||||
"viem": "1.2.15",
|
||||
"wagmi": "1.3.8",
|
||||
"viem": "1.3.0",
|
||||
"wagmi": "1.3.9",
|
||||
"zustand": "4.3.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@ducanh2912/next-pwa": "9.2.1",
|
||||
"@iconify/tailwind": "0.1.3",
|
||||
"@next/bundle-analyzer": "13.4.9",
|
||||
"@next/bundle-analyzer": "13.4.10",
|
||||
"@trivago/prettier-plugin-sort-imports": "4.1.1",
|
||||
"@types/async-lock": "1.4.0",
|
||||
"@types/canvas-confetti": "1.6.0",
|
||||
@@ -170,10 +170,10 @@
|
||||
"@types/katex": "0.16.1",
|
||||
"@types/mdast": "4.0.0",
|
||||
"@types/mjml": "4.7.1",
|
||||
"@types/node": "20.4.1",
|
||||
"@types/node": "20.4.2",
|
||||
"@types/pangu": "4.0.0",
|
||||
"@types/prismjs": "1.26.0",
|
||||
"@types/react": "18.2.14",
|
||||
"@types/react": "18.2.15",
|
||||
"@types/react-dom": "18.2.7",
|
||||
"@types/react-infinite-scroller": "1.2.3",
|
||||
"@types/remove-markdown": "0.3.1",
|
||||
@@ -183,11 +183,11 @@
|
||||
"@types/uuid": "9.0.2",
|
||||
"autoprefixer": "10.4.14",
|
||||
"babel-loader": "9.1.3",
|
||||
"cspell": "6.31.1",
|
||||
"esbuild": "0.18.11",
|
||||
"cspell": "6.31.2",
|
||||
"esbuild": "0.18.13",
|
||||
"esbuild-register": "3.4.2",
|
||||
"eslint": "8.44.0",
|
||||
"eslint-config-next": "13.4.9",
|
||||
"eslint": "8.45.0",
|
||||
"eslint-config-next": "13.4.10",
|
||||
"eslint-plugin-import": "2.27.5",
|
||||
"eslint-plugin-react": "7.32.2",
|
||||
"eslint-plugin-unused-imports": "3.0.0",
|
||||
@@ -198,7 +198,7 @@
|
||||
"prettier": "3.0.0",
|
||||
"prettier-package-json": "2.8.0",
|
||||
"prisma": "5.0.0",
|
||||
"tailwindcss": "3.3.2",
|
||||
"tailwindcss": "3.3.3",
|
||||
"tailwindcss-variable-colors": "0.0.1",
|
||||
"typescript": "5.1.6"
|
||||
},
|
||||
|
||||
Generated
+543
-529
File diff suppressed because it is too large
Load Diff
@@ -16,15 +16,15 @@ const DynamicPageContent = dynamic(
|
||||
|
||||
export default function SitePreviewPage() {
|
||||
const params = useParams()
|
||||
const site = useGetSite(params.site)
|
||||
const site = useGetSite(params.site as string)
|
||||
|
||||
const page = useGetPage({
|
||||
characterId: site.data?.characterId,
|
||||
noteId:
|
||||
params.previewId && /\d+/.test(params.previewId)
|
||||
params.previewId && /\d+/.test(params.previewId as string)
|
||||
? +params.previewId
|
||||
: undefined,
|
||||
slug: params.previewId,
|
||||
slug: params.previewId as string,
|
||||
useStat: true,
|
||||
})
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ export const HomeFeed = ({ type }: { type?: FeedType }) => {
|
||||
|
||||
const params = useParams()
|
||||
if (params.topic) {
|
||||
params.topic = decodeURIComponent(params.topic)
|
||||
params.topic = decodeURIComponent(params.topic as string)
|
||||
}
|
||||
|
||||
let feedConfig: Parameters<typeof useGetFeed>[0] = {
|
||||
@@ -76,7 +76,7 @@ export const HomeFeed = ({ type }: { type?: FeedType }) => {
|
||||
case "tag":
|
||||
feedConfig = {
|
||||
type,
|
||||
tag: decodeURIComponent(params?.tag),
|
||||
tag: decodeURIComponent(params?.tag as string),
|
||||
}
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user