perf(system): tauri-v2.0rc版本升级到正式版本

This commit is contained in:
nongyehong 2024-10-14 20:12:12 +08:00
parent 180cb16d6a
commit a34b2cea99
12 changed files with 7285 additions and 10387 deletions

View File

@ -36,11 +36,11 @@
"prepare": "husky install"
},
"dependencies": {
"@tauri-apps/api": "2.0.0-rc.0",
"@tauri-apps/plugin-clipboard-manager": "2.0.0-rc.0",
"@tauri-apps/plugin-http": "2.0.0-rc.1",
"@tauri-apps/plugin-os": "2.0.0-rc.0",
"@tauri-apps/plugin-process": "2.0.0-rc.0",
"@tauri-apps/api": "2.0.0",
"@tauri-apps/plugin-clipboard-manager": "2.0.0",
"@tauri-apps/plugin-http": "2.0.0",
"@tauri-apps/plugin-os": "2.0.0",
"@tauri-apps/plugin-process": "2.0.0",
"axios": "^1.7.4",
"colorthief": "^2.4.0",
"dayjs": "^1.11.11",
@ -60,7 +60,7 @@
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@rollup/plugin-terser": "^0.4.4",
"@tauri-apps/cli": "2.0.0-rc.3",
"@tauri-apps/cli": "2.0.0",
"@types/lodash-es": "^4.17.12",
"@types/node": "^20.14.14",
"@typescript-eslint/eslint-plugin": "7.1.0",

View File

@ -9,20 +9,20 @@ importers:
.:
dependencies:
'@tauri-apps/api':
specifier: 2.0.0-rc.0
version: 2.0.0-rc.0
specifier: 2.0.0
version: 2.0.0
'@tauri-apps/plugin-clipboard-manager':
specifier: 2.0.0-rc.0
version: 2.0.0-rc.0
specifier: 2.0.0
version: 2.0.0
'@tauri-apps/plugin-http':
specifier: 2.0.0-rc.1
version: 2.0.0-rc.1
specifier: 2.0.0
version: 2.0.0
'@tauri-apps/plugin-os':
specifier: 2.0.0-rc.0
version: 2.0.0-rc.0
specifier: 2.0.0
version: 2.0.0
'@tauri-apps/plugin-process':
specifier: 2.0.0-rc.0
version: 2.0.0-rc.0
specifier: 2.0.0
version: 2.0.0
axios:
specifier: ^1.7.4
version: 1.7.4
@ -76,8 +76,8 @@ importers:
specifier: ^0.4.4
version: 0.4.4(rollup@4.22.4)
'@tauri-apps/cli':
specifier: 2.0.0-rc.3
version: 2.0.0-rc.3
specifier: 2.0.0
version: 2.0.0
'@types/lodash-es':
specifier: ^4.17.12
version: 4.17.12
@ -1024,93 +1024,89 @@ packages:
resolution: {integrity: sha512-LtoMMhxAlorcGhmFYI+LhPgbPZCkgP6ra1YL604EeF6U98pLlQ3iWIGMdWSC+vWmPBWBNgmDBAhnAobLROJmwg==}
engines: {node: '>=18'}
'@tauri-apps/api@2.0.0-rc.0':
resolution: {integrity: sha512-v454Qs3REHc3Za59U+/eSmBsdmF+3NE5+76+lFDaitVqN4ZglDHENDaMARYKGJVZuxiSkzyqG0SeG7lLQjVkPA==}
engines: {node: '>= 18.18', npm: '>= 6.6.0', yarn: '>= 1.19.1'}
'@tauri-apps/api@2.0.0':
resolution: {integrity: sha512-moKgCp2EX7X5GiOx/G/bmoEpkFQVVmyS98UaJU4xUVzan+E1BdwlAKcbip+cGldshYOqL4JSwAEN1OkRXeug0Q==}
'@tauri-apps/api@2.0.0-rc.1':
resolution: {integrity: sha512-qubAWjM9sqofUh7fe+7UAbBY3wlkfCyxm+PNRYpq9mnNng7lvSQq3sYsFUEB12AYvgGARZSb54VMVUvRuVLi7w==}
'@tauri-apps/cli-darwin-arm64@2.0.0-rc.3':
resolution: {integrity: sha512-szYCSr/ChbCF+S6Wnr15TYpI2cZR07d+AQOiFGuScP0preM8Pbsk/sb0hfLwqzepjVFFNVWQba9sG7FEW2Y2XA==}
'@tauri-apps/cli-darwin-arm64@2.0.0':
resolution: {integrity: sha512-+agYqg2c77imaMfKw7mzqecVIDGcwr6bZMdglJ808O2UjTFzMwnAam1sU26YBYU+IyIjwOu00fm9Azpal+N/Ew==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [darwin]
'@tauri-apps/cli-darwin-x64@2.0.0-rc.3':
resolution: {integrity: sha512-BJv6EJOY1DJbRzVtfg8CcBAlnS5OjhBAc5YKjh4BT7EyOcop8HStBSxhL6yjWrUP7eLR1iIsW/uSehVJwzYIdQ==}
'@tauri-apps/cli-darwin-x64@2.0.0':
resolution: {integrity: sha512-keN2PLTTcZmbWwFMup/NGcshmvyLnhRPChO8lbm9C5a0IY7zUNQUD7/o/zIulQdLJqDxkdpWJ1j2jTycAtvtKQ==}
engines: {node: '>= 10'}
cpu: [x64]
os: [darwin]
'@tauri-apps/cli-linux-arm-gnueabihf@2.0.0-rc.3':
resolution: {integrity: sha512-fwx805/xL4sF/EdMYqcUHQHzMYwo+OVTBTz5x/JWK8D57rnmLHAP+ZhnfFsZQLRo2QRT2l1Ye3bDyU+QRA1JFA==}
'@tauri-apps/cli-linux-arm-gnueabihf@2.0.0':
resolution: {integrity: sha512-FQJNrlCUBb9E7Fhp5ARy+Or8lSvorG41aVrfi0cGNvv1QlIGSj77TN7SKK+L1jAGzKj1Bl2kCZIESF6Zi8N/+Q==}
engines: {node: '>= 10'}
cpu: [arm]
os: [linux]
'@tauri-apps/cli-linux-arm64-gnu@2.0.0-rc.3':
resolution: {integrity: sha512-3KauzO1Ls4kuY0nr82S4X8XFxlQAMN+Mqp8LLqvQ+PPMp92XQAkPH7osQdoHIEoW5gsE69U2JaiQ5tHSqNM9og==}
'@tauri-apps/cli-linux-arm64-gnu@2.0.0':
resolution: {integrity: sha512-TK3VrZG5LK1NGueKwnZA1/3gj/qkwry001MNCHXjT6394dwrDv+digCc9Qc569h+xeH/FF71jyoiRIu3gRE6iA==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
libc: [glibc]
'@tauri-apps/cli-linux-arm64-musl@2.0.0-rc.3':
resolution: {integrity: sha512-ngHS0foffm1xO5gqnDKGeYMKj8ceGmrFP5dDldoaaMQubw1SyFa0pRUjb7fZSYiO7F4SOSa8NYeMqlF9peZmnQ==}
'@tauri-apps/cli-linux-arm64-musl@2.0.0':
resolution: {integrity: sha512-E3hRmS/0m8YUYMTKZtBExpk/284CTi2nymks0dK0L1j+3KjffL7DiilnIfNFmTvWBgMrs0cVCtoaN/ba/A9mNA==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
libc: [musl]
'@tauri-apps/cli-linux-x64-gnu@2.0.0-rc.3':
resolution: {integrity: sha512-0/am9pVvuUHGmz32M8ffz1fpLnc08j3nzcRe5wUdL2AxfT+wKMII+Dn99GtCVgcdDW4jSXDMRUwrBkGocGC2OA==}
'@tauri-apps/cli-linux-x64-gnu@2.0.0':
resolution: {integrity: sha512-veX4BJp5xnW8KmxVjchWt4oZEIvKGhuSR7qU1WpqTR21e/eTe/ksGsdXPsqOKQvv/w1X6jhqmlPvhnFmDwUJ/w==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
libc: [glibc]
'@tauri-apps/cli-linux-x64-musl@2.0.0-rc.3':
resolution: {integrity: sha512-r7mRi8q8TqTFVjb9kAsU7IgwUgno2s8Ip4xwq9psQhlRE3JGEZQmSEcy1jqTjfl6KFh6lJcDR7l+9/EMhL/D3Q==}
'@tauri-apps/cli-linux-x64-musl@2.0.0':
resolution: {integrity: sha512-9Eso/8wbsWbOyd9PZEIzN/48ZQJrUGQqGZtglcjUku0lO76mnX0fOnit4nQ57Oj0wezJPhv4mgSseG1OsTIVzw==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
libc: [musl]
'@tauri-apps/cli-win32-arm64-msvc@2.0.0-rc.3':
resolution: {integrity: sha512-2J6KjmDIQCw6HF1X6/yPcd+JLl7pxrH2zVMGmNllaoWhHeByvRobqFWnT7gcdHaA3dGTo432CwWvOgTgrINQpQ==}
'@tauri-apps/cli-win32-arm64-msvc@2.0.0':
resolution: {integrity: sha512-ky8vWAuDUf8WGt9+a0G/EbU0OhdIkogelh9qjIYGHbyEYAJqXfN5P40aHUEg3y8ngQ0YGwRX5ePsQsSZiiR5PQ==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [win32]
'@tauri-apps/cli-win32-ia32-msvc@2.0.0-rc.3':
resolution: {integrity: sha512-8q75CsHDSEDdgi6xPwim+BaQZFCswK2Dn/qL38V3Mh9kmVvC8oGJMPC66bC20dF+v3KWeFm2FNNGQqOSXCveHg==}
'@tauri-apps/cli-win32-ia32-msvc@2.0.0':
resolution: {integrity: sha512-uD45cLZ/EBaT8o4a27tHW7t5UKFplnvDLt/uSUaCpJ3NyOTV6nMXOUrJBe+hH9hSBohqNAF7LEyYo1p932DWFg==}
engines: {node: '>= 10'}
cpu: [ia32]
os: [win32]
'@tauri-apps/cli-win32-x64-msvc@2.0.0-rc.3':
resolution: {integrity: sha512-qeBRJYalahxEXolekcpZJ/HBrIJacG2NWJBGhhi797mIwnbmlpbHMc8blIJtNNNwVUb2BjXuxKQVfojQ5YYrcg==}
'@tauri-apps/cli-win32-x64-msvc@2.0.0':
resolution: {integrity: sha512-oFlo14YMsvyhJHmmHgRuOpJ1L9w15193c1Nfj1DksS2LHj6tLzirI7YrAF9inY/XjHFjNHzYPmBpABibkf/9wQ==}
engines: {node: '>= 10'}
cpu: [x64]
os: [win32]
'@tauri-apps/cli@2.0.0-rc.3':
resolution: {integrity: sha512-iNF95pieBmverl1EmQyqh+fhcIClS544fN5Ex5lAbYLTiHZ/gm3lOfVBhF6NPaKd/sfLuy7K1tfDXlHztBfANw==}
'@tauri-apps/cli@2.0.0':
resolution: {integrity: sha512-xxmPllRa6w/LRRcPczST3yHrYoi8l6ZZmzwabEmM0cgDdhVDmX+Y4oDJkiKD+8cVdxwwEzIuIKuaCwsX8iNsgA==}
engines: {node: '>= 10'}
hasBin: true
'@tauri-apps/plugin-clipboard-manager@2.0.0-rc.0':
resolution: {integrity: sha512-2fS3wbRQEtorkk3Np2msJUeKCXRqLQ9sSo2FzlFdUPYNzThsu43uWCF55McGLAfltNOvXQIcQLUBf05jbBL/5w==}
'@tauri-apps/plugin-clipboard-manager@2.0.0':
resolution: {integrity: sha512-V1sXmbjnwfXt/r48RJMwfUmDMSaP/8/YbH4CLNxt+/sf1eHlIP8PRFdFDQwLN0cNQKu2rqQVbG/Wc/Ps6cDUhw==}
'@tauri-apps/plugin-http@2.0.0-rc.1':
resolution: {integrity: sha512-j4WdTEKx0CFa6u8ubke0mo75pCrnu6XtrFtvjsh+zjuNYgMG/l0+A1woWXHm73f2Levskhs+KbKcLQA/nr8k2w==}
'@tauri-apps/plugin-http@2.0.0':
resolution: {integrity: sha512-UfKAICL25ayluV/SjiEQujz8q/2uyAzp3u9uaHFkaIyKS5usBL8DoqSwi4eKz2mEjkbxTwldhDEXG4CEfTE0JQ==}
'@tauri-apps/plugin-os@2.0.0-rc.0':
resolution: {integrity: sha512-OWAl8mooKnGykSD4iog8WRqcnOSx0gGmTJBlEExHdFeIuOHg0Ezvd+WiVLhT9LBg7go3ibNWRWpe/ZG7YEp4Vw==}
'@tauri-apps/plugin-os@2.0.0':
resolution: {integrity: sha512-M7hG/nNyQYTJxVG/UhTKhp9mpXriwWzrs9mqDreB8mIgqA3ek5nHLdwRZJWhkKjZrnDT4v9CpA9BhYeplTlAiA==}
'@tauri-apps/plugin-process@2.0.0-rc.0':
resolution: {integrity: sha512-Z12D/kmQzG1vCVf+jLXPhPDUA0pEjFrsg4p0uwO2sotVLM9287IuTM+aIz9cuAYOxFLKcsnDG7amSCL9IfA1gw==}
'@tauri-apps/plugin-process@2.0.0':
resolution: {integrity: sha512-OYzi0GnkrF4NAnsHZU7U3tjSoP0PbeAlO7T1Z+vJoBUH9sFQ1NSLqWYWQyf8hcb3gVWe7P1JggjiskO+LST1ug==}
'@types/conventional-commits-parser@5.0.0':
resolution: {integrity: sha512-loB369iXNmAZglwWATL+WRe+CRMmmBPtpolYzIebFaX4YA3x+BEfLqhUAV9WanycKI3TG1IMr5bMJDajDKLlUQ==}
@ -4791,68 +4787,66 @@ snapshots:
'@sindresorhus/merge-streams@2.3.0':
optional: true
'@tauri-apps/api@2.0.0-rc.0': {}
'@tauri-apps/api@2.0.0': {}
'@tauri-apps/api@2.0.0-rc.1': {}
'@tauri-apps/cli-darwin-arm64@2.0.0-rc.3':
'@tauri-apps/cli-darwin-arm64@2.0.0':
optional: true
'@tauri-apps/cli-darwin-x64@2.0.0-rc.3':
'@tauri-apps/cli-darwin-x64@2.0.0':
optional: true
'@tauri-apps/cli-linux-arm-gnueabihf@2.0.0-rc.3':
'@tauri-apps/cli-linux-arm-gnueabihf@2.0.0':
optional: true
'@tauri-apps/cli-linux-arm64-gnu@2.0.0-rc.3':
'@tauri-apps/cli-linux-arm64-gnu@2.0.0':
optional: true
'@tauri-apps/cli-linux-arm64-musl@2.0.0-rc.3':
'@tauri-apps/cli-linux-arm64-musl@2.0.0':
optional: true
'@tauri-apps/cli-linux-x64-gnu@2.0.0-rc.3':
'@tauri-apps/cli-linux-x64-gnu@2.0.0':
optional: true
'@tauri-apps/cli-linux-x64-musl@2.0.0-rc.3':
'@tauri-apps/cli-linux-x64-musl@2.0.0':
optional: true
'@tauri-apps/cli-win32-arm64-msvc@2.0.0-rc.3':
'@tauri-apps/cli-win32-arm64-msvc@2.0.0':
optional: true
'@tauri-apps/cli-win32-ia32-msvc@2.0.0-rc.3':
'@tauri-apps/cli-win32-ia32-msvc@2.0.0':
optional: true
'@tauri-apps/cli-win32-x64-msvc@2.0.0-rc.3':
'@tauri-apps/cli-win32-x64-msvc@2.0.0':
optional: true
'@tauri-apps/cli@2.0.0-rc.3':
'@tauri-apps/cli@2.0.0':
optionalDependencies:
'@tauri-apps/cli-darwin-arm64': 2.0.0-rc.3
'@tauri-apps/cli-darwin-x64': 2.0.0-rc.3
'@tauri-apps/cli-linux-arm-gnueabihf': 2.0.0-rc.3
'@tauri-apps/cli-linux-arm64-gnu': 2.0.0-rc.3
'@tauri-apps/cli-linux-arm64-musl': 2.0.0-rc.3
'@tauri-apps/cli-linux-x64-gnu': 2.0.0-rc.3
'@tauri-apps/cli-linux-x64-musl': 2.0.0-rc.3
'@tauri-apps/cli-win32-arm64-msvc': 2.0.0-rc.3
'@tauri-apps/cli-win32-ia32-msvc': 2.0.0-rc.3
'@tauri-apps/cli-win32-x64-msvc': 2.0.0-rc.3
'@tauri-apps/cli-darwin-arm64': 2.0.0
'@tauri-apps/cli-darwin-x64': 2.0.0
'@tauri-apps/cli-linux-arm-gnueabihf': 2.0.0
'@tauri-apps/cli-linux-arm64-gnu': 2.0.0
'@tauri-apps/cli-linux-arm64-musl': 2.0.0
'@tauri-apps/cli-linux-x64-gnu': 2.0.0
'@tauri-apps/cli-linux-x64-musl': 2.0.0
'@tauri-apps/cli-win32-arm64-msvc': 2.0.0
'@tauri-apps/cli-win32-ia32-msvc': 2.0.0
'@tauri-apps/cli-win32-x64-msvc': 2.0.0
'@tauri-apps/plugin-clipboard-manager@2.0.0-rc.0':
'@tauri-apps/plugin-clipboard-manager@2.0.0':
dependencies:
'@tauri-apps/api': 2.0.0-rc.0
'@tauri-apps/api': 2.0.0
'@tauri-apps/plugin-http@2.0.0-rc.1':
'@tauri-apps/plugin-http@2.0.0':
dependencies:
'@tauri-apps/api': 2.0.0-rc.1
'@tauri-apps/api': 2.0.0
'@tauri-apps/plugin-os@2.0.0-rc.0':
'@tauri-apps/plugin-os@2.0.0':
dependencies:
'@tauri-apps/api': 2.0.0-rc.0
'@tauri-apps/api': 2.0.0
'@tauri-apps/plugin-process@2.0.0-rc.0':
'@tauri-apps/plugin-process@2.0.0':
dependencies:
'@tauri-apps/api': 2.0.0-rc.0
'@tauri-apps/api': 2.0.0
'@types/conventional-commits-parser@5.0.0':
dependencies:

1085
src-tauri/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -17,26 +17,26 @@ strip = true # 删除调试符号
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[build-dependencies]
tauri-build = { version = "2.0.0-rc", features = [] }
tauri-build = { version = "2.0.0", features = [] }
[dependencies]
tauri = { version = "2.0.0-rc.0", features = [ "macos-private-api", "tray-icon", "image-png"] }
tauri-plugin-os = "2.0.0-rc.0"
tauri-plugin-shell = "2.0.0-rc.0"
tauri = { version = "2.0.0", features = [ "macos-private-api", "tray-icon", "image-png"] }
tauri-plugin-os = "2.0.0"
tauri-plugin-shell = "2.0.0"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tauri-plugin-websocket = "2.0.0-rc.0"
tauri-plugin-http = "2.0.0-rc.0"
tauri-plugin-process = "2.0.0-rc.0"
tauri-plugin-fs = "2.0.0-rc.0"
tauri-plugin-dialog = "2.0.0-rc.0"
tauri-plugin-upload = "2.0.0-rc.0"
tauri-plugin-global-shortcut = "2.0.0-rc.0"
tauri-plugin-autostart = "2.0.0-rc.0"
tauri-plugin-websocket = "2.0.0"
tauri-plugin-http = "2.0.0"
tauri-plugin-process = "2.0.0"
tauri-plugin-fs = "2.0.0"
tauri-plugin-dialog = "2.0.0"
tauri-plugin-upload = "2.0.0"
tauri-plugin-global-shortcut = "2.0.0"
tauri-plugin-autostart = "2.0.0"
lazy_static = "1.4"
screenshots = "0.5.4"
base64 = "0.22.1"
tauri-plugin-clipboard-manager = "2.0.0-rc.0"
tauri-plugin-clipboard-manager = "2.0.0"
rodio = "0.17.3"
[features]

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -89,8 +89,15 @@
align="center"
:size="4"
class="text-(12px #777) cursor-default tracking-1 select-none">
<span v-if="chatKey !== 'Enter'">
{{ type() === 'macos' ? MacOsKeyEnum['⌘'] : WinKeyEnum.CTRL }}
</span>
<svg class="size-12px"><use href="#Enter"></use></svg>
发送/
发送 /
<n-flex v-if="chatKey !== 'Enter'" align="center" :size="6">
<svg class="size-12px"><use href="#Enter"></use></svg>
<p></p>
</n-flex>
<n-flex align="center" :size="0">
{{ type() === 'macos' ? MacOsKeyEnum['⇧'] : WinKeyEnum.SHIFT }}
<svg class="size-12px"><use href="#Enter"></use></svg>

View File

@ -116,7 +116,9 @@ const emojiHandle = (item: string) => {
}
const handleCap = async () => {
WebviewWindow.getByLabel('capture')?.show()
WebviewWindow.getByLabel('capture').then((win) => {
win?.show()
})
await emit('capture', true)
}

View File

@ -53,7 +53,7 @@ export const useWindow = () => {
await webview.once('tauri://created', async () => {
if (wantCloseWindow) {
const win = WebviewWindow.getByLabel(wantCloseWindow)
const win = await WebviewWindow.getByLabel(wantCloseWindow)
win?.close()
}
})
@ -73,7 +73,7 @@ export const useWindow = () => {
* @param height
* */
const resizeWindow = async (label: string, width: number, height: number) => {
const webview = WebviewWindow.getByLabel(label)
const webview = await WebviewWindow.getByLabel(label)
// TODO 使用webview?.setSize重新设置窗口尺寸的时候高度会自动增加20px(bug?) (nyh -> 2024-02-22 03:52:54)
// 创建一个新的尺寸对象
const newSize = new LogicalSize(width, height)
@ -88,7 +88,7 @@ export const useWindow = () => {
* @param L
*/
const checkWinExist = async (L: string) => {
const isExistsWinds = WebviewWindow.getByLabel(L)
const isExistsWinds = await WebviewWindow.getByLabel(L)
if (isExistsWinds) {
nextTick().then(async () => {
// 如果窗口已存在,首先检查是否最小化了

View File

@ -9,23 +9,33 @@ import { emit } from '@tauri-apps/api/event'
export const useWindowState = (label: string) => {
const win = WebviewWindow.getByLabel(label)
watchEffect(() => {
const initWindowListeners = async (win: WebviewWindow | null) => {
// once一次性监听事件,当用户点击的是关闭按钮时触发
win?.once(EventEnum.WIN_CLOSE, async (e) => {
await win?.once(EventEnum.WIN_CLOSE, async (e) => {
await emit(EventEnum.WIN_CLOSE, e)
})
// 监听窗口关闭事件,当窗口是非正常关闭的时候触发
win?.onCloseRequested(async () => {
await win?.onCloseRequested(async () => {
await emit(EventEnum.WIN_CLOSE, WebviewWindow.getCurrent().label)
})
// 检查窗口是否可见,并进行相应处理
const isShow = await win?.isVisible()
if (isShow) {
await emit(EventEnum.WIN_SHOW, label)
}
}
watchEffect(() => {
win.then(initWindowListeners)
})
onMounted(async () => {
await nextTick(async () => {
const isShow = await win?.isVisible()
if (isShow) {
await emit(EventEnum.WIN_SHOW, label)
}
await nextTick(() => {
win.then(async (win) => {
await initWindowListeners(win)
})
})
})
}

View File

@ -5,7 +5,7 @@ import { isDiffNow10Min } from '@/utils/ComputedTime.ts'
import type { CacheBadgeItem } from '@/services/types.ts'
const badgeCachedList = reactive<Record<number, Partial<CacheBadgeItem>>>({})
// TODO 使用indexDB或者把配置写出到文件中,还需要根据每个账号来进行配置 (nyh -> 2024-03-26 01:22:12)
// TODO 使用indexDB或sqlite缓存数据,还需要根据每个账号来进行配置 (nyh -> 2024-03-26 01:22:12)
export const setting = defineStore(StoresEnum.SETTING, {
state: (): STO.Setting => ({
themes: {