diff --git a/package-lock.json b/package-lock.json index 8f7332c2..1220175d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "0.0.0", "dependencies": { "@imengyu/vue3-context-menu": "^1.5.1", + "@vueuse/core": "14.0.0-alpha.0", "axios": "^1.10.0", "compromise": "^14.14.4", "copy-to-clipboard": "^3.3.3", @@ -2082,6 +2083,11 @@ "@types/node": "*" } }, + "node_modules/@types/web-bluetooth": { + "version": "0.0.21", + "resolved": "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.21.tgz", + "integrity": "sha512-oIQLCGWtcFZy2JW77j9k8nHzAOpqMHLQejDA48XXMWH6tjCQHz5RCFz1bzsmROyL6PUm+LLnUiI4BCn221inxA==" + }, "node_modules/@unocss/astro": { "version": "66.5.1", "resolved": "https://registry.npmjs.org/@unocss/astro/-/astro-66.5.1.tgz", @@ -3799,6 +3805,41 @@ "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.21.tgz", "integrity": "sha512-+2k1EQpnYuVuu3N7atWyG3/xoFWIVJZq4Mz8XNOdScFI0etES75fbny/oU4lKWk/577P1zmg0ioYvpGEDZ3DLw==" }, + "node_modules/@vueuse/core": { + "version": "14.0.0-alpha.0", + "resolved": "https://registry.npmjs.org/@vueuse/core/-/core-14.0.0-alpha.0.tgz", + "integrity": "sha512-y2964MhoYalRdiBX+ilOOwh3EHsZyDhOb/hwZTkLlytcVrtX+Gbz+ffsAomaazJzZ7m/u+KI/5hLEdSHhjelgA==", + "dependencies": { + "@types/web-bluetooth": "^0.0.21", + "@vueuse/metadata": "14.0.0-alpha.0", + "@vueuse/shared": "14.0.0-alpha.0" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "vue": "^3.5.0" + } + }, + "node_modules/@vueuse/metadata": { + "version": "14.0.0-alpha.0", + "resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-14.0.0-alpha.0.tgz", + "integrity": "sha512-FyQ7kAVMnccJwp0Wt2JuEjCNGl4lpOXKQEqzTbiqhKydQBK0urGaa+v12u8qJxf4XaaPNufLdoCQYQh8ya63JQ==", + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/@vueuse/shared": { + "version": "14.0.0-alpha.0", + "resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-14.0.0-alpha.0.tgz", + "integrity": "sha512-J8cmTJkB0hAwPBXRR5U3N9FJkhPBrhyYiQm21kZ3j/o8W69Pg6JlPSxLOJtkg+AwC/r5x7Gpq2Vglv84vHotwA==", + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "vue": "^3.5.0" + } + }, "node_modules/acorn": { "version": "8.15.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", @@ -14413,6 +14454,11 @@ "@types/node": "*" } }, + "@types/web-bluetooth": { + "version": "0.0.21", + "resolved": "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.21.tgz", + "integrity": "sha512-oIQLCGWtcFZy2JW77j9k8nHzAOpqMHLQejDA48XXMWH6tjCQHz5RCFz1bzsmROyL6PUm+LLnUiI4BCn221inxA==" + }, "@unocss/astro": { "version": "66.5.1", "resolved": "https://registry.npmjs.org/@unocss/astro/-/astro-66.5.1.tgz", @@ -15730,6 +15776,27 @@ "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.21.tgz", "integrity": "sha512-+2k1EQpnYuVuu3N7atWyG3/xoFWIVJZq4Mz8XNOdScFI0etES75fbny/oU4lKWk/577P1zmg0ioYvpGEDZ3DLw==" }, + "@vueuse/core": { + "version": "14.0.0-alpha.0", + "resolved": "https://registry.npmjs.org/@vueuse/core/-/core-14.0.0-alpha.0.tgz", + "integrity": "sha512-y2964MhoYalRdiBX+ilOOwh3EHsZyDhOb/hwZTkLlytcVrtX+Gbz+ffsAomaazJzZ7m/u+KI/5hLEdSHhjelgA==", + "requires": { + "@types/web-bluetooth": "^0.0.21", + "@vueuse/metadata": "14.0.0-alpha.0", + "@vueuse/shared": "14.0.0-alpha.0" + } + }, + "@vueuse/metadata": { + "version": "14.0.0-alpha.0", + "resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-14.0.0-alpha.0.tgz", + "integrity": "sha512-FyQ7kAVMnccJwp0Wt2JuEjCNGl4lpOXKQEqzTbiqhKydQBK0urGaa+v12u8qJxf4XaaPNufLdoCQYQh8ya63JQ==" + }, + "@vueuse/shared": { + "version": "14.0.0-alpha.0", + "resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-14.0.0-alpha.0.tgz", + "integrity": "sha512-J8cmTJkB0hAwPBXRR5U3N9FJkhPBrhyYiQm21kZ3j/o8W69Pg6JlPSxLOJtkg+AwC/r5x7Gpq2Vglv84vHotwA==", + "requires": {} + }, "acorn": { "version": "8.15.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", diff --git a/src/config/env.ts b/src/config/env.ts index 9ba2d937..be981056 100644 --- a/src/config/env.ts +++ b/src/config/env.ts @@ -16,9 +16,10 @@ const map = { } export const ENV = Object.assign(map['DEV'], common) -export const IS_OFFICIAL = import.meta.env.DEV -// export const IS_OFFICIAL = false -export let IS_LOGIN = true +// export const IS_OFFICIAL = import.meta.env.DEV +// export let IS_LOGIN = true +export const IS_OFFICIAL = false +export let IS_LOGIN = false export const CAN_REQUEST = IS_LOGIN && IS_OFFICIAL export const RESOURCE_PATH = ENV.API + 'static' diff --git a/src/pages/index.vue b/src/pages/index.vue index 60272a8b..5a7d8562 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -42,10 +42,10 @@ const {toggleTheme} = useTheme() 设置
-
- - 用户 -
+ + + +
0 || navigator.msMaxTouchPoints > 0); + return /Mobi|iPhone|Android|ipad|tablet/i.test(window.navigator.userAgent) } export function useNav() {