{{ para }}
-diff --git a/package-lock.json b/package-lock.json
index a92fa54..9265a43 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -9,6 +9,8 @@
"version": "0.0.0",
"dependencies": {
"@mdui/icons": "^1.0.2",
+ "@vueuse/core": "^13.2.0",
+ "@vueuse/integrations": "^13.2.0",
"axios": "^1.9.0",
"compress-json": "^3.1.1",
"cookie-parser": "^1.4.7",
@@ -1731,6 +1733,11 @@
"resolved": "https://registry.npmmirror.com/@types/trusted-types/-/trusted-types-2.0.7.tgz",
"integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw=="
},
+ "node_modules/@types/web-bluetooth": {
+ "version": "0.0.21",
+ "resolved": "https://registry.npmmirror.com/@types/web-bluetooth/-/web-bluetooth-0.0.21.tgz",
+ "integrity": "sha512-oIQLCGWtcFZy2JW77j9k8nHzAOpqMHLQejDA48XXMWH6tjCQHz5RCFz1bzsmROyL6PUm+LLnUiI4BCn221inxA=="
+ },
"node_modules/@vitejs/plugin-vue": {
"version": "5.2.4",
"resolved": "https://registry.npmmirror.com/@vitejs/plugin-vue/-/plugin-vue-5.2.4.tgz",
@@ -1963,6 +1970,106 @@
"resolved": "https://registry.npmmirror.com/@vue/shared/-/shared-3.5.13.tgz",
"integrity": "sha512-/hnE/qP5ZoGpol0a5mDi45bOd7t3tjYJBjsgCsivow7D48cJeV5l05RD82lPqi7gRiphZM37rnhW1l6ZoCNNnQ=="
},
+ "node_modules/@vueuse/core": {
+ "version": "13.2.0",
+ "resolved": "https://registry.npmmirror.com/@vueuse/core/-/core-13.2.0.tgz",
+ "integrity": "sha512-n5TZoIAxbWAQ3PqdVPDzLgIRQOujFfMlatdI+f7ditSmoEeNpPBvp7h2zamzikCmrhFIePAwdEQB6ENccHr7Rg==",
+ "dependencies": {
+ "@types/web-bluetooth": "^0.0.21",
+ "@vueuse/metadata": "13.2.0",
+ "@vueuse/shared": "13.2.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/antfu"
+ },
+ "peerDependencies": {
+ "vue": "^3.5.0"
+ }
+ },
+ "node_modules/@vueuse/integrations": {
+ "version": "13.2.0",
+ "resolved": "https://registry.npmmirror.com/@vueuse/integrations/-/integrations-13.2.0.tgz",
+ "integrity": "sha512-tnwdzUYadAiewvMtBcjH/ZPgRCoQBvuVzbFA/VSysPDaIuG41Jp/Z1Sn/rYoFMOLJfcOEcVh+tN3mkrVIyumig==",
+ "dependencies": {
+ "@vueuse/core": "13.2.0",
+ "@vueuse/shared": "13.2.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/antfu"
+ },
+ "peerDependencies": {
+ "async-validator": "^4",
+ "axios": "^1",
+ "change-case": "^5",
+ "drauu": "^0.4",
+ "focus-trap": "^7",
+ "fuse.js": "^7",
+ "idb-keyval": "^6",
+ "jwt-decode": "^4",
+ "nprogress": "^0.2",
+ "qrcode": "^1.5",
+ "sortablejs": "^1",
+ "universal-cookie": "^7",
+ "vue": "^3.5.0"
+ },
+ "peerDependenciesMeta": {
+ "async-validator": {
+ "optional": true
+ },
+ "axios": {
+ "optional": true
+ },
+ "change-case": {
+ "optional": true
+ },
+ "drauu": {
+ "optional": true
+ },
+ "focus-trap": {
+ "optional": true
+ },
+ "fuse.js": {
+ "optional": true
+ },
+ "idb-keyval": {
+ "optional": true
+ },
+ "jwt-decode": {
+ "optional": true
+ },
+ "nprogress": {
+ "optional": true
+ },
+ "qrcode": {
+ "optional": true
+ },
+ "sortablejs": {
+ "optional": true
+ },
+ "universal-cookie": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@vueuse/metadata": {
+ "version": "13.2.0",
+ "resolved": "https://registry.npmmirror.com/@vueuse/metadata/-/metadata-13.2.0.tgz",
+ "integrity": "sha512-kPpzuQCU0+D8DZCzK0iPpIcXI+6ufWSgwnjJ6//GNpEn+SHViaCtR+XurzORChSgvpHO9YC8gGM97Y1kB+UabA==",
+ "funding": {
+ "url": "https://github.com/sponsors/antfu"
+ }
+ },
+ "node_modules/@vueuse/shared": {
+ "version": "13.2.0",
+ "resolved": "https://registry.npmmirror.com/@vueuse/shared/-/shared-13.2.0.tgz",
+ "integrity": "sha512-vx9ZPDF5HcU9up3Jgt3G62dMUfZEdk6tLyBAHYAG4F4n73vpaA7J5hdncDI/lS9Vm7GA/FPlbOmh9TrDZROTpg==",
+ "funding": {
+ "url": "https://github.com/sponsors/antfu"
+ },
+ "peerDependencies": {
+ "vue": "^3.5.0"
+ }
+ },
"node_modules/@yankeeinlondon/builder-api": {
"version": "1.4.1",
"resolved": "https://registry.npmmirror.com/@yankeeinlondon/builder-api/-/builder-api-1.4.1.tgz",
diff --git a/package.json b/package.json
index 1d160ff..4dfcaa4 100644
--- a/package.json
+++ b/package.json
@@ -12,6 +12,8 @@
},
"dependencies": {
"@mdui/icons": "^1.0.2",
+ "@vueuse/core": "^13.2.0",
+ "@vueuse/integrations": "^13.2.0",
"axios": "^1.9.0",
"compress-json": "^3.1.1",
"cookie-parser": "^1.4.7",
diff --git a/src/App.vue b/src/App.vue
index c07f124..7af591c 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -27,7 +27,7 @@ const route = useRoute()
const clientOnlyStore = useClientOnlyStore()
const api = useApiStore()
-const themeScheme = useThemeStore()
+let themeScheme = null
const mobileScreen = useMobileScreen()
const routeStore = useRouteStore()
@@ -38,7 +38,7 @@ const closeDrawer = ref(true)
let progressTimer = null
onServerPrefetch(async () => {
- await api.init()
+
})
onBeforeMount(() => {
@@ -47,8 +47,8 @@ onBeforeMount(() => {
})
onMounted(async () => {
+ themeScheme = useThemeStore()
themeScheme.applyTheme()
- await api.init()
clientOnlyStore.setClient()
new MutationObserver(() => {
if (document.documentElement.style.width.includes('calc')) {
@@ -63,8 +63,8 @@ onMounted(async () => {
- {{ routeStore.title }}
-
{{ para }}
-{{ para }}
+{{ para }}