diff --git a/package.json b/package.json index 579aba8a..bf4f7aca 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "@luckrya/markdown-it-link-to-card": "^0.3.3", "@mdit-vue/shared": "^0.12.0", "@types/node": "^18.14.2", + "@types/react": "^18.2.9", "@vitejs/plugin-vue": "^4.0.0", "@vue/cli-plugin-typescript": "^5.0.8", "artplayer": "^4.6.2", @@ -57,9 +58,11 @@ "medium-zoom": "^1.0.8", "mermaid": "^9.4.3", "prettier": "2.8.4", + "react": "^18.2.0", "sass": "^1.58.3", "sitemap": "^7.1.1", "ts-node": "^10.9.1", + "typescript": "^5.1.3", "unplugin-vue-components": "^0.24.0", "videojs-flash": "^2.2.1", "vite": "^4.1.2", @@ -72,9 +75,7 @@ }, "dependencies": { "@andatoshiki/markdown-it-katex": "^0.0.3", - "@types/react": "^18.2.9", "markdown-it": "^13.0.1", - "react": "^18.2.0", "vitest": "^0.32.0" }, "pnpm": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 93b8412f..9ecef6d6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,15 +14,9 @@ importers: '@andatoshiki/markdown-it-katex': specifier: ^0.0.3 version: 0.0.3 - '@types/react': - specifier: ^18.2.9 - version: 18.2.9 markdown-it: specifier: ^13.0.1 version: 13.0.1 - react: - specifier: ^18.2.0 - version: 18.2.0 vitest: specifier: ^0.32.0 version: 0.32.0(sass@1.62.1) @@ -35,7 +29,7 @@ importers: version: 0.0.1 '@andatoshiki/vitepress-plugin-shiki-twoslash': specifier: 0.0.1 - version: 0.0.1(typescript@5.0.4)(vitepress@1.0.0-alpha.75) + version: 0.0.1(typescript@5.1.3)(vitepress@1.0.0-alpha.75) '@antv/g2plot': specifier: ^2.4.31 version: 2.4.31 @@ -51,12 +45,15 @@ importers: '@types/node': specifier: ^18.14.2 version: 18.16.3 + '@types/react': + specifier: ^18.2.9 + version: 18.2.9 '@vitejs/plugin-vue': specifier: ^4.0.0 version: 4.2.1(vite@4.3.3)(vue@3.2.47) '@vue/cli-plugin-typescript': specifier: ^5.0.8 - version: 5.0.8(@vue/cli-service@5.0.8)(typescript@5.0.4)(vue@3.2.47) + version: 5.0.8(@vue/cli-service@5.0.8)(typescript@5.1.3)(vue@3.2.47) artplayer: specifier: ^4.6.2 version: 4.6.2 @@ -123,6 +120,9 @@ importers: prettier: specifier: 2.8.4 version: 2.8.4 + react: + specifier: ^18.2.0 + version: 18.2.0 sass: specifier: ^1.58.3 version: 1.62.1 @@ -131,7 +131,10 @@ importers: version: 7.1.1 ts-node: specifier: ^10.9.1 - version: 10.9.1(@types/node@18.16.3)(typescript@5.0.4) + version: 10.9.1(@types/node@18.16.3)(typescript@5.1.3) + typescript: + specifier: ^5.1.3 + version: 5.1.3 unplugin-vue-components: specifier: ^0.24.0 version: 0.24.1(vue@3.2.47) @@ -317,12 +320,12 @@ packages: nprogress: 0.2.0 dev: true - /@andatoshiki/vitepress-plugin-shiki-twoslash@0.0.1(typescript@5.0.4)(vitepress@1.0.0-alpha.75): + /@andatoshiki/vitepress-plugin-shiki-twoslash@0.0.1(typescript@5.1.3)(vitepress@1.0.0-alpha.75): resolution: {integrity: sha512-51GGfDsbcPKUA39FmrQO+fzKgBD7is/RVB9MuioVFoZi0S1PIrpRGMGd07QTR9I7v6N8u6QnmzF1i6Xgdr5EBQ==} peerDependencies: vitepress: '>=1.0.0-alpha.61' dependencies: - remark-shiki-twoslash: 3.1.3(typescript@5.0.4) + remark-shiki-twoslash: 3.1.3(typescript@5.1.3) vitepress: 1.0.0-alpha.75(@types/node@18.16.3)(@types/react@18.2.9)(react-dom@15.7.0)(react@18.2.0)(sass@1.62.1) transitivePeerDependencies: - supports-color @@ -1342,6 +1345,7 @@ packages: /@types/prop-types@15.7.5: resolution: {integrity: sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==} + dev: true /@types/qs@6.9.7: resolution: {integrity: sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==} @@ -1357,6 +1361,7 @@ packages: '@types/prop-types': 15.7.5 '@types/scheduler': 0.16.3 csstype: 3.1.2 + dev: true /@types/retry@0.12.0: resolution: {integrity: sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==} @@ -1370,6 +1375,7 @@ packages: /@types/scheduler@0.16.3: resolution: {integrity: sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ==} + dev: true /@types/send@0.17.1: resolution: {integrity: sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==} @@ -1555,7 +1561,7 @@ packages: - encoding dev: true - /@vue/cli-plugin-typescript@5.0.8(@vue/cli-service@5.0.8)(typescript@5.0.4)(vue@3.2.47): + /@vue/cli-plugin-typescript@5.0.8(@vue/cli-service@5.0.8)(typescript@5.1.3)(vue@3.2.47): resolution: {integrity: sha512-JKJOwzJshBqsmp4yLBexwVMebOZ4VGJgbnYvmHVxasJOStF2RxwyW28ZF+zIvASGdat4sAUuo/3mAQyVhm7JHg==} peerDependencies: '@vue/cli-service': ^3.0.0 || ^4.0.0 || ^5.0.0-0 @@ -1574,11 +1580,11 @@ packages: '@vue/cli-service': 5.0.8(@babel/core@7.22.5)(react-dom@15.7.0)(react@18.2.0)(vue@3.2.47) '@vue/cli-shared-utils': 5.0.8 babel-loader: 8.3.0(@babel/core@7.22.5)(webpack@5.86.0) - fork-ts-checker-webpack-plugin: 6.5.3(typescript@5.0.4)(webpack@5.86.0) + fork-ts-checker-webpack-plugin: 6.5.3(typescript@5.1.3)(webpack@5.86.0) globby: 11.1.0 thread-loader: 3.0.4(webpack@5.86.0) - ts-loader: 9.4.3(typescript@5.0.4)(webpack@5.86.0) - typescript: 5.0.4 + ts-loader: 9.4.3(typescript@5.1.3)(webpack@5.86.0) + typescript: 5.1.3 vue: 3.2.47 webpack: 5.86.0 transitivePeerDependencies: @@ -4267,6 +4273,7 @@ packages: /csstype@3.1.2: resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==} + dev: true /cytoscape-cose-bilkent@4.1.0(cytoscape@3.24.0): resolution: {integrity: sha512-wgQlVIUJF13Quxiv5e1gstZ08rnZj2XaLHGoFMYXz7SkNfCDOOteKBE6SYRfA9WxxI/iBc3ajfDoc6hb/MRAHQ==} @@ -5574,7 +5581,7 @@ packages: dev: true optional: true - /fork-ts-checker-webpack-plugin@6.5.3(typescript@5.0.4)(webpack@5.86.0): + /fork-ts-checker-webpack-plugin@6.5.3(typescript@5.1.3)(webpack@5.86.0): resolution: {integrity: sha512-SbH/l9ikmMWycd5puHJKTkZJKddF4iRLyW3DeZ08HTI7NGyLS38MXd/KGgeWumQO7YNQbW2u/NtPT2YowbPaGQ==} engines: {node: '>=10', yarn: '>=1.0.0'} peerDependencies: @@ -5601,7 +5608,7 @@ packages: schema-utils: 2.7.0 semver: 7.5.0 tapable: 1.1.3 - typescript: 5.0.4 + typescript: 5.1.3 webpack: 5.86.0 dev: true @@ -6818,6 +6825,7 @@ packages: /js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + dev: true /js-yaml@3.14.1: resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==} @@ -7198,6 +7206,7 @@ packages: hasBin: true dependencies: js-tokens: 4.0.0 + dev: true /loupe@2.3.6: resolution: {integrity: sha512-RaPMZKiMy8/JruncMU5Bt6na1eftNoo++R4Y+N2FrxkDVTrGvcyzFTsaGif4QTeKESheMGegbhw6iUAq+5A8zA==} @@ -8894,6 +8903,7 @@ packages: engines: {node: '>=0.10.0'} dependencies: loose-envify: 1.4.0 + dev: true /read-pkg-up@3.0.0: resolution: {integrity: sha512-YFzFrVvpC6frF1sz8psoHDBGF7fLPc+llq/8NB43oagqWkx8ar5zYtsTORtOjw9W2RHLpWP+zTWwBvf1bCmcSw==} @@ -9052,7 +9062,7 @@ packages: engines: {node: '>= 0.10'} dev: true - /remark-shiki-twoslash@3.1.3(typescript@5.0.4): + /remark-shiki-twoslash@3.1.3(typescript@5.1.3): resolution: {integrity: sha512-4e8OH3ySOCw5wUbDcPszokOKjKuebOqlP2WlySvC7ITBOq27BiGsFlq+FNWhxppZ+JzhTWah4gQrnMjX3KDbAQ==} peerDependencies: typescript: '>3' @@ -9063,9 +9073,9 @@ packages: fenceparser: 1.1.1 regenerator-runtime: 0.13.11 shiki: 0.14.2 - shiki-twoslash: 3.1.2(typescript@5.0.4) + shiki-twoslash: 3.1.2(typescript@5.1.3) tslib: 2.1.0 - typescript: 5.0.4 + typescript: 5.1.3 unist-util-visit: 2.0.3 transitivePeerDependencies: - supports-color @@ -9484,7 +9494,7 @@ packages: resolution: {integrity: sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==} dev: true - /shiki-twoslash@3.1.2(typescript@5.0.4): + /shiki-twoslash@3.1.2(typescript@5.1.3): resolution: {integrity: sha512-JBcRIIizi+exIA/OUhYkV6jtyeZco0ykCkIRd5sgwIt1Pm4pz+maoaRZpm6SkhPwvif4fCA7xOtJOykhpIV64Q==} peerDependencies: typescript: '>3' @@ -9493,7 +9503,7 @@ packages: '@typescript/vfs': 1.3.4 fenceparser: 1.1.1 shiki: 0.14.2 - typescript: 5.0.4 + typescript: 5.1.3 transitivePeerDependencies: - supports-color dev: true @@ -10260,7 +10270,7 @@ packages: engines: {node: '>=6.10'} dev: true - /ts-loader@9.4.3(typescript@5.0.4)(webpack@5.86.0): + /ts-loader@9.4.3(typescript@5.1.3)(webpack@5.86.0): resolution: {integrity: sha512-n3hBnm6ozJYzwiwt5YRiJZkzktftRpMiBApHaJPoWLA+qetQBAXkHqCLM6nwSdRDimqVtA5ocIkcTRLMTt7yzA==} engines: {node: '>=12.0.0'} peerDependencies: @@ -10271,11 +10281,11 @@ packages: enhanced-resolve: 5.14.1 micromatch: 4.0.5 semver: 7.5.0 - typescript: 5.0.4 + typescript: 5.1.3 webpack: 5.86.0 dev: true - /ts-node@10.9.1(@types/node@18.16.3)(typescript@5.0.4): + /ts-node@10.9.1(@types/node@18.16.3)(typescript@5.1.3): resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} hasBin: true peerDependencies: @@ -10301,7 +10311,7 @@ packages: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.0.4 + typescript: 5.1.3 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 dev: true @@ -10366,9 +10376,9 @@ packages: is-typed-array: 1.1.10 dev: true - /typescript@5.0.4: - resolution: {integrity: sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==} - engines: {node: '>=12.20'} + /typescript@5.1.3: + resolution: {integrity: sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==} + engines: {node: '>=14.17'} hasBin: true dev: true diff --git a/vercel.json b/vercel.json index 2ac818f6..e174eccc 100644 --- a/vercel.json +++ b/vercel.json @@ -1,5 +1,5 @@ { - "installCommand": "pnpm add -g pnpm@8.3.1 && pnpm i", + "installCommand": "pnpm add -g pnpm@8.3.1 && pnpm install --force", "buildCommand": "pnpm docs:build", "devCommand": "pnpm docs:dev", "cleanUrls": true,