From fb922e24aeb9c28ca00f7619703c35156f6b4b41 Mon Sep 17 00:00:00 2001 From: kingc2022 <99593855+kingc2022@users.noreply.github.com> Date: Sun, 13 Oct 2024 22:07:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc-auto-import.json | 5 ++++- src/auto-imports.d.ts | 7 ++++++- src/components.d.ts | 1 - src/pages/Guest.vue | 21 +++++++++++---------- 4 files changed, 21 insertions(+), 13 deletions(-) diff --git a/.eslintrc-auto-import.json b/.eslintrc-auto-import.json index 6cc28bc..d5400d6 100644 --- a/.eslintrc-auto-import.json +++ b/.eslintrc-auto-import.json @@ -68,6 +68,9 @@ "onWatcherCleanup": true, "useId": true, "useModel": true, - "useTemplateRef": true + "useTemplateRef": true, + "DirectiveBinding": true, + "MaybeRef": true, + "MaybeRefOrGetter": true } } diff --git a/src/auto-imports.d.ts b/src/auto-imports.d.ts index e8f788b..06c572b 100644 --- a/src/auto-imports.d.ts +++ b/src/auto-imports.d.ts @@ -3,6 +3,7 @@ // @ts-nocheck // noinspection JSUnusedGlobalSymbols // Generated by unplugin-auto-import +// biome-ignore lint: disable export {} declare global { const EffectScope: typeof import('vue')['EffectScope'] @@ -67,7 +68,7 @@ declare global { // for type re-export declare global { // @ts-ignore - export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue' + export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue' import('vue') } // for vue template auto import @@ -105,6 +106,7 @@ declare module 'vue' { readonly onServerPrefetch: UnwrapRef readonly onUnmounted: UnwrapRef readonly onUpdated: UnwrapRef + readonly onWatcherCleanup: UnwrapRef readonly provide: UnwrapRef readonly reactive: UnwrapRef readonly readonly: UnwrapRef @@ -122,9 +124,12 @@ declare module 'vue' { readonly useAttrs: UnwrapRef readonly useCssModule: UnwrapRef readonly useCssVars: UnwrapRef + readonly useId: UnwrapRef + readonly useModel: UnwrapRef readonly useRoute: UnwrapRef readonly useRouter: UnwrapRef readonly useSlots: UnwrapRef + readonly useTemplateRef: UnwrapRef readonly watch: UnwrapRef readonly watchEffect: UnwrapRef readonly watchPostEffect: UnwrapRef diff --git a/src/components.d.ts b/src/components.d.ts index 1ad5ffc..57e2021 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,7 +9,6 @@ declare module 'vue' { export interface GlobalComponents { AccountSettings: typeof import('./components/settings/AccountSettings.vue')['default'] AssistantMenu: typeof import('./components/AssistantMenu.vue')['default'] - AssistantPublistSettings: typeof import('./components/settings/AssistantPublistSettings.vue')['default'] AssistantSettings: typeof import('./components/settings/AssistantSettings.vue')['default'] Chat: typeof import('./components/chat/Chat.vue')['default'] ChatMenu: typeof import('./components/ChatMenu.vue')['default'] diff --git a/src/pages/Guest.vue b/src/pages/Guest.vue index 876a303..e243dde 100644 --- a/src/pages/Guest.vue +++ b/src/pages/Guest.vue @@ -4,16 +4,14 @@
-
-
Leaflow Amber
-

+

Leaflow Amber

下一代智能体平台,为您的数字生活带来革命性变化
- 立即体验 🚀 + 立即体验 🚀

@@ -56,10 +54,10 @@

Amber 核心特性

- - + +
-
+
{{ feature.icon }}
{{ feature.title }}
@@ -97,13 +95,17 @@ import { ref, computed, onMounted } from 'vue'; import { useOsTheme, darkTheme, NConfigProvider, NLayout, NButton, NCard, NStatistic, NNumberAnimation } from 'naive-ui'; import { SchemaSiteUsageResponse } from "@/api"; import getApi from "@/plugins/api"; -import grouppng from "@/assets/images/group.png"; +import router from '@/router'; const osTheme = useOsTheme(); const theme = computed(() => (osTheme.value === 'dark' ? darkTheme : null)); const siteUsage = ref({}); +const gotoLogin = () => { + router.push("/auth/login"); +}; + const features = ref([ { icon: '💬', @@ -154,7 +156,7 @@ const partners = ref([ name: 'HiMCBBS 我的世界中文论坛', logo: 'https://www.himcbbs.com/data/assets/logo/wxmc_logo_text_blue.svg', link: 'https://www.himcbbs.com/', - description: '中国最大的我的世界玩家社区,提供游戏资讯、模组下载和创意分享。' + description: '中国我的世界玩家社区,提供游戏资讯、模组下载和创意分享。' } // 可以在这里添加更多合作伙伴 ]); @@ -196,7 +198,6 @@ body { .spotlight { background-color: v-bind('theme ? "rgba(0, 0, 0, 0.5)" : "rgba(78, 187, 192, 0.1)"'); backdrop-filter: blur(10px); - height: 70vh; min-height: 500px; display: flex; align-items: center;