fix: app hang when loading

This commit is contained in:
reya
2024-07-31 10:13:48 +07:00
parent 48eb2f5339
commit db4a7c1037
14 changed files with 181 additions and 219 deletions

189
pnpm-lock.yaml generated
View File

@@ -20,18 +20,12 @@ importers:
'@radix-ui/react-scroll-area':
specifier: ^1.1.0
version: 1.1.0(react-dom@19.0.0-rc-d025ddd3-20240722(react@19.0.0-rc-d025ddd3-20240722))(react@19.0.0-rc-d025ddd3-20240722)(types-react-dom@19.0.0-rc.1)(types-react@19.0.0-rc.1)
'@tanstack/query-sync-storage-persister':
specifier: ^5.51.15
version: 5.51.15
'@tanstack/react-query':
specifier: ^5.51.15
version: 5.51.15(react@19.0.0-rc-d025ddd3-20240722)
'@tanstack/react-query-persist-client':
specifier: ^5.51.15
version: 5.51.15(@tanstack/react-query@5.51.15(react@19.0.0-rc-d025ddd3-20240722))(react@19.0.0-rc-d025ddd3-20240722)
'@tanstack/react-router':
specifier: ^1.45.11
version: 1.45.11(react-dom@19.0.0-rc-d025ddd3-20240722(react@19.0.0-rc-d025ddd3-20240722))(react@19.0.0-rc-d025ddd3-20240722)
specifier: ^1.45.15
version: 1.45.15(react-dom@19.0.0-rc-d025ddd3-20240722(react@19.0.0-rc-d025ddd3-20240722))(react@19.0.0-rc-d025ddd3-20240722)
'@tauri-apps/api':
specifier: 2.0.0-beta.15
version: 2.0.0-beta.15
@@ -82,8 +76,8 @@ importers:
specifier: 1.8.3
version: 1.8.3
'@tanstack/router-plugin':
specifier: ^1.45.8
version: 1.45.8(vite@5.3.5)
specifier: ^1.45.13
version: 1.45.13(vite@5.3.5)
'@tauri-apps/cli':
specifier: 2.0.0-beta.22
version: 2.0.0-beta.22
@@ -138,12 +132,12 @@ packages:
resolution: {integrity: sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==}
engines: {node: '>=6.9.0'}
'@babel/compat-data@7.25.0':
resolution: {integrity: sha512-P4fwKI2mjEb3ZU5cnMJzvRsRKGBUcs8jvxIoRmr6ufAY9Xk2Bz7JubRTTivkw55c7WQJfTECeqYVa+HZ0FzREg==}
'@babel/compat-data@7.25.2':
resolution: {integrity: sha512-bYcppcpKBvX4znYaPEeFau03bp89ShqNMLs+rmdptMw+heSZh9+z84d2YG+K7cYLbWwzdjtDoW/uqZmPjulClQ==}
engines: {node: '>=6.9.0'}
'@babel/core@7.24.9':
resolution: {integrity: sha512-5e3FI4Q3M3Pbr21+5xJwCv6ZT6KmGkI0vw3Tozy5ODAQFTIWe37iT8Cr7Ice2Ntb+M3iSKCEWMB1MBgKrW3whg==}
'@babel/core@7.25.2':
resolution: {integrity: sha512-BBt3opiCOxUr9euZ5/ro/Xv8/V7yJ5bjYMqG/C1YAo8MIKAnumZalCN+msbci3Pigy4lIQfPUpfMM27HMGaYEA==}
engines: {node: '>=6.9.0'}
'@babel/generator@7.2.0':
@@ -153,16 +147,16 @@ packages:
resolution: {integrity: sha512-3LEEcj3PVW8pW2R1SR1M89g/qrYk/m/mB/tLqn7dn4sbBUQyTqnlod+II2U4dqiGtUmkcnAmkMDralTFZttRiw==}
engines: {node: '>=6.9.0'}
'@babel/helper-compilation-targets@7.24.8':
resolution: {integrity: sha512-oU+UoqCHdp+nWVDkpldqIQL/i/bvAv53tRqLG/s+cOXxe66zOYLU7ar/Xs3LdmBihrUMEUhwu6dMZwbNOYDwvw==}
'@babel/helper-compilation-targets@7.25.2':
resolution: {integrity: sha512-U2U5LsSaZ7TAt3cfaymQ8WHh0pxvdHoEk6HVpaexxixjyEquMh0L0YNJNM6CTGKMXV1iksi0iZkGw4AcFkPaaw==}
engines: {node: '>=6.9.0'}
'@babel/helper-module-imports@7.24.7':
resolution: {integrity: sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==}
engines: {node: '>=6.9.0'}
'@babel/helper-module-transforms@7.25.0':
resolution: {integrity: sha512-bIkOa2ZJYn7FHnepzr5iX9Kmz8FjIz4UKzJ9zhX3dnYuVW0xul9RuR3skBfoLu+FPTQw90EHW9rJsSZhyLQ3fQ==}
'@babel/helper-module-transforms@7.25.2':
resolution: {integrity: sha512-BjyRAbix6j/wv83ftcVJmBt72QtHI56C7JXZoG2xATiLpmoC7dpd8WnkikExHDVPpi/3qCmO6WY1EaXOluiecQ==}
engines: {node: '>=6.9.0'}
peerDependencies:
'@babel/core': ^7.0.0
@@ -228,12 +222,12 @@ packages:
resolution: {integrity: sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q==}
engines: {node: '>=6.9.0'}
'@babel/traverse@7.25.1':
resolution: {integrity: sha512-LrHHoWq08ZpmmFqBAzN+hUdWwy5zt7FGa/hVwMcOqW6OVtwqaoD5utfuGYU87JYxdZgLUvktAsn37j/sYR9siA==}
'@babel/traverse@7.25.2':
resolution: {integrity: sha512-s4/r+a7xTnny2O6FcZzqgT6nE4/GHEdcqj4qAeglbUOh0TeglEfmNJFAd/OLoVtGd6ZhAO8GCVvCNUO5t/VJVQ==}
engines: {node: '>=6.9.0'}
'@babel/types@7.25.0':
resolution: {integrity: sha512-LcnxQSsd9aXOIgmmSpvZ/1yo46ra2ESYyqLcryaBZOghxy5qqOBjvCWP5JfkI8yl9rlxRgdLTTMCQQRcN2hdCg==}
'@babel/types@7.25.2':
resolution: {integrity: sha512-YTnYtra7W9e6/oAZEHj0bJehPRUlLH9/fbpT5LfB0NhQXyALCRkRs3zH9v07IYhkgpqX6Z78FnuccZr/l4Fs4Q==}
engines: {node: '>=6.9.0'}
'@biomejs/biome@1.8.3':
@@ -789,25 +783,13 @@ packages:
'@tanstack/query-core@5.51.15':
resolution: {integrity: sha512-xyobHDJ0yhPE3+UkSQ2/4X1fLSg7ICJI5J1JyU9yf7F3deQfEwSImCDrB1WSRrauJkMtXW7YIEcC0oA6ZZWt5A==}
'@tanstack/query-persist-client-core@5.51.15':
resolution: {integrity: sha512-y/gsUFINiVkxV06Jz5TqFNrXbKs81lIfj7PDamheEk+vWTmlBKTh0rMXthoDdUIVm4JO0+No9CXYahRSm683pg==}
'@tanstack/query-sync-storage-persister@5.51.15':
resolution: {integrity: sha512-Jrqqv4zBQQmfkuArsx++JQfKi1nobFGry9T702c4h80jA01MGnAd2Eev6uG7mRYor4vnUzjP1CrGS+xzRq5oMQ==}
'@tanstack/react-query-persist-client@5.51.15':
resolution: {integrity: sha512-SxSfGc9JggTUzv/dwIirKdMOe47OAdT0LBaVrkowI9QdVxJByjo+uaPCXZLoTlkaclvzFxd4G3YmmjsHXV/33A==}
peerDependencies:
'@tanstack/react-query': ^5.51.15
react: ^18 || ^19
'@tanstack/react-query@5.51.15':
resolution: {integrity: sha512-UgFg23SrdIYrmfTSxAUn9g+J64VQy11pb9/EefoY/u2+zWuNMeqEOnvpJhf52XQy0yztQoyM9p6x8PFyTNaxXg==}
peerDependencies:
react: ^18.0.0
'@tanstack/react-router@1.45.11':
resolution: {integrity: sha512-unVxPYsOwwMnyAW/ZeOCymWpstEV0tiUexUPqiCuYwb2rCwsrmjsgB4tIpVONHabPlFKrxoMbkUh5UCSpL0h+w==}
'@tanstack/react-router@1.45.15':
resolution: {integrity: sha512-QVftG8QlD8u3QB38ZkpyWUHEuuaq12fsxm7Nr52pkxueKM099j8pqouoqLb6nDDyLC54/PhLZxavrIeH7aaqaA==}
engines: {node: '>=12'}
peerDependencies:
react: '>=18'
@@ -823,8 +805,8 @@ packages:
resolution: {integrity: sha512-5B756YXpZO0/yr7ahsxXoBOCpqroLx/D3l6X9qPlZaP0FVHVmTR6ZKGRX6zzuAxns/VO+sxnQso4AYLdDyZ9GA==}
engines: {node: '>=12'}
'@tanstack/router-plugin@1.45.8':
resolution: {integrity: sha512-mncDu49pBEivRHWVOdCl9fHwtyUT3QLZ0X+gYIsm7o6LhT6i7BzC++BZqOOSrjDcyXy3dx2Nf/FMrB06qlXx9Q==}
'@tanstack/router-plugin@1.45.13':
resolution: {integrity: sha512-7IWdtIDC5jjhD6IZ5c/s11xNwvKDom/p6ZOO78FxeeA0FIaSx+3AQD7/iVhzfiRfepqGmecLn9a1KfNTFGQI/A==}
engines: {node: '>=12'}
peerDependencies:
'@rsbuild/core': '>=0.7.9'
@@ -1049,8 +1031,8 @@ packages:
resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==}
engines: {node: '>= 6'}
caniuse-lite@1.0.30001643:
resolution: {integrity: sha512-ERgWGNleEilSrHM6iUz/zJNSQTP8Mr21wDWpdgvRwcTXGAq6jMtOUPP4dqFPTdKqZ2wKTdtB+uucZ3MRpAUSmg==}
caniuse-lite@1.0.30001644:
resolution: {integrity: sha512-YGvlOZB4QhZuiis+ETS0VXR+MExbFf4fZYYeMTEE0aTQd/RdIjkTyZjLrbYVKnHzppDvnOhritRVv+i7Go6mHw==}
chalk@2.4.2:
resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==}
@@ -1124,8 +1106,8 @@ packages:
eastasianwidth@0.2.0:
resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}
electron-to-chromium@1.5.2:
resolution: {integrity: sha512-kc4r3U3V3WLaaZqThjYz/Y6z8tJe+7K0bbjUVo3i+LWIypVdMx5nXCkwRe6SWbY6ILqLdc1rKcKmr3HoH7wjSQ==}
electron-to-chromium@1.5.4:
resolution: {integrity: sha512-orzA81VqLyIGUEA77YkVA1D+N+nNfl2isJVjjmOyrlxuooZ19ynb+dOlaDTqd/idKRS9lDCSBmtzM+kyCsMnkA==}
emoji-regex@8.0.0:
resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
@@ -1770,20 +1752,20 @@ snapshots:
'@babel/highlight': 7.24.7
picocolors: 1.0.1
'@babel/compat-data@7.25.0': {}
'@babel/compat-data@7.25.2': {}
'@babel/core@7.24.9':
'@babel/core@7.25.2':
dependencies:
'@ampproject/remapping': 2.3.0
'@babel/code-frame': 7.24.7
'@babel/generator': 7.25.0
'@babel/helper-compilation-targets': 7.24.8
'@babel/helper-module-transforms': 7.25.0(@babel/core@7.24.9)
'@babel/helper-compilation-targets': 7.25.2
'@babel/helper-module-transforms': 7.25.2(@babel/core@7.25.2)
'@babel/helpers': 7.25.0
'@babel/parser': 7.25.0
'@babel/template': 7.25.0
'@babel/traverse': 7.25.1
'@babel/types': 7.25.0
'@babel/traverse': 7.25.2
'@babel/types': 7.25.2
convert-source-map: 2.0.0
debug: 4.3.6
gensync: 1.0.0-beta.2
@@ -1794,7 +1776,7 @@ snapshots:
'@babel/generator@7.2.0':
dependencies:
'@babel/types': 7.25.0
'@babel/types': 7.25.2
jsesc: 2.5.2
lodash: 4.17.21
source-map: 0.5.7
@@ -1802,14 +1784,14 @@ snapshots:
'@babel/generator@7.25.0':
dependencies:
'@babel/types': 7.25.0
'@babel/types': 7.25.2
'@jridgewell/gen-mapping': 0.3.5
'@jridgewell/trace-mapping': 0.3.25
jsesc: 2.5.2
'@babel/helper-compilation-targets@7.24.8':
'@babel/helper-compilation-targets@7.25.2':
dependencies:
'@babel/compat-data': 7.25.0
'@babel/compat-data': 7.25.2
'@babel/helper-validator-option': 7.24.8
browserslist: 4.23.2
lru-cache: 5.1.1
@@ -1817,18 +1799,18 @@ snapshots:
'@babel/helper-module-imports@7.24.7':
dependencies:
'@babel/traverse': 7.25.1
'@babel/types': 7.25.0
'@babel/traverse': 7.25.2
'@babel/types': 7.25.2
transitivePeerDependencies:
- supports-color
'@babel/helper-module-transforms@7.25.0(@babel/core@7.24.9)':
'@babel/helper-module-transforms@7.25.2(@babel/core@7.25.2)':
dependencies:
'@babel/core': 7.24.9
'@babel/core': 7.25.2
'@babel/helper-module-imports': 7.24.7
'@babel/helper-simple-access': 7.24.7
'@babel/helper-validator-identifier': 7.24.7
'@babel/traverse': 7.25.1
'@babel/traverse': 7.25.2
transitivePeerDependencies:
- supports-color
@@ -1836,8 +1818,8 @@ snapshots:
'@babel/helper-simple-access@7.24.7':
dependencies:
'@babel/traverse': 7.25.1
'@babel/types': 7.25.0
'@babel/traverse': 7.25.2
'@babel/types': 7.25.2
transitivePeerDependencies:
- supports-color
@@ -1850,7 +1832,7 @@ snapshots:
'@babel/helpers@7.25.0':
dependencies:
'@babel/template': 7.25.0
'@babel/types': 7.25.0
'@babel/types': 7.25.2
'@babel/highlight@7.24.7':
dependencies:
@@ -1861,47 +1843,47 @@ snapshots:
'@babel/parser@7.25.0':
dependencies:
'@babel/types': 7.25.0
'@babel/types': 7.25.2
'@babel/plugin-syntax-jsx@7.24.7(@babel/core@7.24.9)':
'@babel/plugin-syntax-jsx@7.24.7(@babel/core@7.25.2)':
dependencies:
'@babel/core': 7.24.9
'@babel/core': 7.25.2
'@babel/helper-plugin-utils': 7.24.8
'@babel/plugin-syntax-typescript@7.24.7(@babel/core@7.24.9)':
'@babel/plugin-syntax-typescript@7.24.7(@babel/core@7.25.2)':
dependencies:
'@babel/core': 7.24.9
'@babel/core': 7.25.2
'@babel/helper-plugin-utils': 7.24.8
'@babel/plugin-transform-react-jsx-self@7.24.7(@babel/core@7.24.9)':
'@babel/plugin-transform-react-jsx-self@7.24.7(@babel/core@7.25.2)':
dependencies:
'@babel/core': 7.24.9
'@babel/core': 7.25.2
'@babel/helper-plugin-utils': 7.24.8
'@babel/plugin-transform-react-jsx-source@7.24.7(@babel/core@7.24.9)':
'@babel/plugin-transform-react-jsx-source@7.24.7(@babel/core@7.25.2)':
dependencies:
'@babel/core': 7.24.9
'@babel/core': 7.25.2
'@babel/helper-plugin-utils': 7.24.8
'@babel/template@7.25.0':
dependencies:
'@babel/code-frame': 7.24.7
'@babel/parser': 7.25.0
'@babel/types': 7.25.0
'@babel/types': 7.25.2
'@babel/traverse@7.25.1':
'@babel/traverse@7.25.2':
dependencies:
'@babel/code-frame': 7.24.7
'@babel/generator': 7.25.0
'@babel/parser': 7.25.0
'@babel/template': 7.25.0
'@babel/types': 7.25.0
'@babel/types': 7.25.2
debug: 4.3.6
globals: 11.12.0
transitivePeerDependencies:
- supports-color
'@babel/types@7.25.0':
'@babel/types@7.25.2':
dependencies:
'@babel/helper-string-parser': 7.24.8
'@babel/helper-validator-identifier': 7.24.7
@@ -2314,27 +2296,12 @@ snapshots:
'@tanstack/query-core@5.51.15': {}
'@tanstack/query-persist-client-core@5.51.15':
dependencies:
'@tanstack/query-core': 5.51.15
'@tanstack/query-sync-storage-persister@5.51.15':
dependencies:
'@tanstack/query-core': 5.51.15
'@tanstack/query-persist-client-core': 5.51.15
'@tanstack/react-query-persist-client@5.51.15(@tanstack/react-query@5.51.15(react@19.0.0-rc-d025ddd3-20240722))(react@19.0.0-rc-d025ddd3-20240722)':
dependencies:
'@tanstack/query-persist-client-core': 5.51.15
'@tanstack/react-query': 5.51.15(react@19.0.0-rc-d025ddd3-20240722)
react: 19.0.0-rc-d025ddd3-20240722
'@tanstack/react-query@5.51.15(react@19.0.0-rc-d025ddd3-20240722)':
dependencies:
'@tanstack/query-core': 5.51.15
react: 19.0.0-rc-d025ddd3-20240722
'@tanstack/react-router@1.45.11(react-dom@19.0.0-rc-d025ddd3-20240722(react@19.0.0-rc-d025ddd3-20240722))(react@19.0.0-rc-d025ddd3-20240722)':
'@tanstack/react-router@1.45.15(react-dom@19.0.0-rc-d025ddd3-20240722(react@19.0.0-rc-d025ddd3-20240722))(react@19.0.0-rc-d025ddd3-20240722)':
dependencies:
'@tanstack/history': 1.45.3
'@tanstack/react-store': 0.5.5(react-dom@19.0.0-rc-d025ddd3-20240722(react@19.0.0-rc-d025ddd3-20240722))(react@19.0.0-rc-d025ddd3-20240722)
@@ -2355,16 +2322,16 @@ snapshots:
prettier: 3.3.3
zod: 3.23.8
'@tanstack/router-plugin@1.45.8(vite@5.3.5)':
'@tanstack/router-plugin@1.45.13(vite@5.3.5)':
dependencies:
'@babel/core': 7.24.9
'@babel/core': 7.25.2
'@babel/generator': 7.25.0
'@babel/parser': 7.25.0
'@babel/plugin-syntax-jsx': 7.24.7(@babel/core@7.24.9)
'@babel/plugin-syntax-typescript': 7.24.7(@babel/core@7.24.9)
'@babel/plugin-syntax-jsx': 7.24.7(@babel/core@7.25.2)
'@babel/plugin-syntax-typescript': 7.24.7(@babel/core@7.25.2)
'@babel/template': 7.25.0
'@babel/traverse': 7.25.1
'@babel/types': 7.25.0
'@babel/traverse': 7.25.2
'@babel/types': 7.25.2
'@tanstack/router-generator': 1.45.7
'@types/babel__core': 7.20.5
'@types/babel__generator': 7.6.8
@@ -2453,23 +2420,23 @@ snapshots:
'@types/babel__core@7.20.5':
dependencies:
'@babel/parser': 7.25.0
'@babel/types': 7.25.0
'@babel/types': 7.25.2
'@types/babel__generator': 7.6.8
'@types/babel__template': 7.4.4
'@types/babel__traverse': 7.20.6
'@types/babel__generator@7.6.8':
dependencies:
'@babel/types': 7.25.0
'@babel/types': 7.25.2
'@types/babel__template@7.4.4':
dependencies:
'@babel/parser': 7.25.0
'@babel/types': 7.25.0
'@babel/types': 7.25.2
'@types/babel__traverse@7.20.6':
dependencies:
'@babel/types': 7.25.0
'@babel/types': 7.25.2
'@types/estree@1.0.5': {}
@@ -2499,9 +2466,9 @@ snapshots:
'@vitejs/plugin-react@4.3.1(vite@5.3.5)':
dependencies:
'@babel/core': 7.24.9
'@babel/plugin-transform-react-jsx-self': 7.24.7(@babel/core@7.24.9)
'@babel/plugin-transform-react-jsx-source': 7.24.7(@babel/core@7.24.9)
'@babel/core': 7.25.2
'@babel/plugin-transform-react-jsx-self': 7.24.7(@babel/core@7.25.2)
'@babel/plugin-transform-react-jsx-source': 7.24.7(@babel/core@7.25.2)
'@types/babel__core': 7.20.5
react-refresh: 0.14.2
vite: 5.3.5
@@ -2542,7 +2509,7 @@ snapshots:
autoprefixer@10.4.19(postcss@8.4.40):
dependencies:
browserslist: 4.23.2
caniuse-lite: 1.0.30001643
caniuse-lite: 1.0.30001644
fraction.js: 4.3.7
normalize-range: 0.1.2
picocolors: 1.0.1
@@ -2551,17 +2518,17 @@ snapshots:
babel-dead-code-elimination@1.0.6:
dependencies:
'@babel/core': 7.24.9
'@babel/core': 7.25.2
'@babel/parser': 7.25.0
'@babel/traverse': 7.25.1
'@babel/types': 7.25.0
'@babel/traverse': 7.25.2
'@babel/types': 7.25.2
transitivePeerDependencies:
- supports-color
babel-plugin-react-compiler@0.0.0-experimental-696af53-20240625:
dependencies:
'@babel/generator': 7.2.0
'@babel/types': 7.25.0
'@babel/types': 7.25.2
chalk: 4.1.2
invariant: 2.2.4
pretty-format: 24.9.0
@@ -2582,14 +2549,14 @@ snapshots:
browserslist@4.23.2:
dependencies:
caniuse-lite: 1.0.30001643
electron-to-chromium: 1.5.2
caniuse-lite: 1.0.30001644
electron-to-chromium: 1.5.4
node-releases: 2.0.18
update-browserslist-db: 1.1.0(browserslist@4.23.2)
camelcase-css@2.0.1: {}
caniuse-lite@1.0.30001643: {}
caniuse-lite@1.0.30001644: {}
chalk@2.4.2:
dependencies:
@@ -2656,7 +2623,7 @@ snapshots:
eastasianwidth@0.2.0: {}
electron-to-chromium@1.5.2: {}
electron-to-chromium@1.5.4: {}
emoji-regex@8.0.0: {}