瀏覽代碼

Update dependencies.

oldj 1 年之前
父節點
當前提交
5e68ddf1b9
共有 5 個文件被更改,包括 367 次插入407 次删除
  1. 313 345
      package-lock.json
  2. 52 52
      package.json
  3. 1 1
      src/renderer/pages/find.tsx
  4. 0 0
      vite.main.config.mts
  5. 1 9
      vite.render.config.mts

文件差異過大導致無法顯示
+ 313 - 345
package-lock.json


+ 52 - 52
package.json

@@ -6,8 +6,8 @@
     "clean:dist": "rimraf ./dist/*",
     "clean:build": "rimraf ./build/*",
     "dev": "npm run clean:build && concurrently \"npm run dev:main\" \"npm run dev:renderer\"",
-    "dev:main": "vite build --watch --config ./vite.main.config.ts",
-    "dev:renderer": "vite --config ./vite.render.config.ts",
+    "dev:main": "vite build --watch --config ./vite.main.config.mts",
+    "dev:renderer": "vite --config ./vite.render.config.mts",
     "version:up": "node ./scripts/version_up.js",
     "_build": "npm run clean:build && npm run version:up && concurrently \"npm run build:main\" \"npm run build:renderer\"",
     "build:main": "cross-env NODE_ENV=production vite build --config ./vite.main.config.ts",
@@ -20,69 +20,69 @@
     "publish": "electron-builder --mac --win --linux -p always"
   },
   "dependencies": {
-    "axios": "1.6.0",
-    "compare-versions": "5.0.3",
-    "dayjs": "1.11.7",
-    "electron-updater": "5.3.0",
+    "axios": "1.7.2",
+    "compare-versions": "6.1.1",
+    "dayjs": "1.11.12",
+    "electron-updater": "6.2.1",
     "electron-window-state": "5.0.3",
     "express": "4.19.2",
     "lodash": "4.17.21",
     "md5": "2.3.0",
     "md5-file": "5.0.0",
-    "mkdirp": "3.0.0",
-    "potdb": "2.5.5",
-    "tslib": "2.5.0",
-    "uuid": "9.0.0"
+    "mkdirp": "3.0.1",
+    "potdb": "2.6.6",
+    "tslib": "2.6.3",
+    "uuid": "10.0.0"
   },
   "devDependencies": {
-    "@chakra-ui/react": "2.5.5",
-    "@emotion/react": "11.10.6",
-    "@emotion/styled": "11.10.6",
-    "@tabler/icons-react": "2.16.0",
-    "@types/assert": "1.5.6",
-    "@types/codemirror": "5.60.7",
-    "@types/express": "4.17.17",
-    "@types/lodash": "4.14.194",
-    "@types/md5": "2.3.2",
+    "@chakra-ui/react": "2.8.2",
+    "@emotion/react": "11.13.0",
+    "@emotion/styled": "11.13.0",
+    "@tabler/icons-react": "3.11.0",
+    "@types/assert": "1.5.10",
+    "@types/codemirror": "5.60.15",
+    "@types/express": "4.17.21",
+    "@types/lodash": "4.17.7",
+    "@types/md5": "2.3.5",
     "@types/mkdirp": "1.0.2",
-    "@types/mocha": "10.0.1",
-    "@types/node": "18.15.11",
-    "@types/react": "18.0.35",
-    "@types/react-dom": "18.0.11",
-    "@types/react-window": "1.8.5",
-    "@types/uuid": "9.0.1",
-    "@vitejs/plugin-react": "3.1.0",
-    "ahooks": "3.7.6",
-    "clsx": "1.2.1",
-    "codemirror": "5.65.11",
-    "concurrently": "8.0.1",
+    "@types/mocha": "10.0.7",
+    "@types/node": "22.0.0",
+    "@types/react": "18.3.3",
+    "@types/react-dom": "18.3.0",
+    "@types/react-window": "1.8.8",
+    "@types/uuid": "10.0.0",
+    "@vitejs/plugin-react": "4.3.1",
+    "ahooks": "3.8.0",
+    "clsx": "2.1.1",
+    "codemirror": "5.65.17",
+    "concurrently": "8.2.2",
     "cross-env": "7.0.3",
-    "dotenv": "16.0.3",
-    "electron": "24.8.5",
+    "dotenv": "16.4.5",
+    "electron": "30.1.2",
     "electron-builder": "24.13.3",
     "electron-notarize": "1.2.1",
     "espower-typescript": "10.0.1",
-    "execa": "7.1.1",
-    "fs-extra": "11.1.1",
-    "jotai": "2.0.4",
-    "mocha": "10.2.0",
+    "execa": "9.3.0",
+    "fs-extra": "11.2.0",
+    "jotai": "2.9.1",
+    "mocha": "10.7.0",
     "power-assert": "1.6.1",
-    "prettier": "2.8.7",
-    "pretty-bytes": "6.1.0",
-    "react": "18.2.0",
-    "react-dom": "18.2.0",
-    "react-icons": "4.8.0",
-    "react-router-dom": "6.10.0",
-    "react-window": "1.8.8",
-    "rimraf": "^5.0.0",
-    "sass": "1.62.0",
-    "smooth-scroll-into-view-if-needed": "2.0.0",
-    "ts-node": "10.9.1",
-    "typescript": "5.0.4",
-    "vite": "4.5.3",
-    "vite-plugin-static-copy": "0.13.1",
-    "vite-plugin-svgr": "2.4.0",
-    "vite-tsconfig-paths": "4.2.0"
+    "prettier": "3.3.3",
+    "pretty-bytes": "6.1.1",
+    "react": "18.3.1",
+    "react-dom": "18.3.1",
+    "react-icons": "5.2.1",
+    "react-router-dom": "6.25.1",
+    "react-window": "1.8.10",
+    "rimraf": "^6.0.1",
+    "sass": "1.77.8",
+    "smooth-scroll-into-view-if-needed": "2.0.2",
+    "ts-node": "10.9.2",
+    "typescript": "5.5.4",
+    "vite": "5.3.5",
+    "vite-plugin-static-copy": "1.0.6",
+    "vite-plugin-svgr": "4.2.0",
+    "vite-tsconfig-paths": "4.3.2"
   },
   "build": {
     "afterSign": "scripts/notarize.js"

+ 1 - 1
src/renderer/pages/find.tsx

@@ -254,7 +254,7 @@ const find = () => {
         scrollIntoView(el.current, {
           behavior: 'smooth',
           scrollMode: 'if-needed',
-        }).catch((e) => console.error(e))
+        })
       }
     }, [el, current_result_idx, last_scroll_result_idx])
 

+ 0 - 0
vite.main.config.ts → vite.main.config.mts


+ 1 - 9
vite.render.config.ts → vite.render.config.mts

@@ -6,15 +6,7 @@ import tsconfigPaths from 'vite-tsconfig-paths'
 
 // https://vitejs.dev/config/
 export default defineConfig({
-  plugins: [
-    tsconfigPaths(),
-    svgr({
-      // Set it to `true` to export React component as default.
-      // Notice that it will overrides the default behavior of Vite.
-      exportAsDefault: true,
-    }),
-    react(),
-  ],
+  plugins: [tsconfigPaths(), svgr({}), react()],
   base: './',
   root: path.join(__dirname, 'src', 'renderer'),
   build: {

部分文件因文件數量過多而無法顯示