From 45673ea029c4fb11820f2235e0ade54079813f84 Mon Sep 17 00:00:00 2001 From: Litrix Date: Fri, 10 May 2024 17:59:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=B9=E4=B8=BA=E9=9D=99=E6=80=81?= =?UTF-8?q?=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更改路由为静态路由 --- components.d.ts | 3 +- env.d.ts | 4 +- src/App.vue | 123 ++++++++++++++++++------------ src/api/index.ts | 4 +- src/assets/global.scss | 10 +++ src/assets/icons/Lock.svg | 2 +- src/assets/icons/User.svg | 2 +- src/assets/icons/Validate.svg | 4 +- src/assets/ws-icon.jfif | Bin 0 -> 55614 bytes src/components/BackgroundComp.vue | 14 +++- src/components/Game2048.vue | 40 +++++++++- src/components/LoadingIcon.vue | 10 +++ src/components/VerifyInput.vue | 40 ++++++---- src/keys/index.ts | 1 - src/main.ts | 1 + src/router/index.ts | 110 ++++++++++++++++---------- src/router/permissions.ts | 5 ++ src/schemas/index.ts | 41 +++++----- src/stores/2048.ts | 5 ++ src/stores/background.ts | 9 +++ src/stores/user.ts | 25 +++--- src/utils/2d-array.ts | 1 + src/utils/index.ts | 8 +- src/views/ClubPage.vue | 5 ++ src/views/Game2048Page.vue | 4 + src/views/MainPage.vue | 10 +-- src/views/NotFoundPage.vue | 1 - src/views/UserPage.vue | 94 +++++++++++++++++++++++ tsconfig.app.json | 2 +- 29 files changed, 424 insertions(+), 154 deletions(-) create mode 100644 src/assets/ws-icon.jfif create mode 100644 src/components/LoadingIcon.vue create mode 100644 src/router/permissions.ts create mode 100644 src/views/ClubPage.vue delete mode 100644 src/views/NotFoundPage.vue create mode 100644 src/views/UserPage.vue diff --git a/components.d.ts b/components.d.ts index b4c90e9..0df8dbd 100644 --- a/components.d.ts +++ b/components.d.ts @@ -19,8 +19,8 @@ declare module 'vue' { ElFormItem: typeof import('element-plus/es')['ElFormItem'] ElHeader: typeof import('element-plus/es')['ElHeader'] ElIcon: typeof import('element-plus/es')['ElIcon'] - ElImage: typeof import('element-plus/es')['ElImage'] ElInput: typeof import('element-plus/es')['ElInput'] + ElMain: typeof import('element-plus/es')['ElMain'] ElPopover: typeof import('element-plus/es')['ElPopover'] ElTabPane: typeof import('element-plus/es')['ElTabPane'] ElTabs: typeof import('element-plus/es')['ElTabs'] @@ -30,6 +30,7 @@ declare module 'vue' { IconCsValidate: typeof import('~icons/cs/validate')['default'] IconEpLoading: typeof import('~icons/ep/loading')['default'] IconEpUserFilled: typeof import('~icons/ep/user-filled')['default'] + LoadingIcon: typeof import('./src/components/LoadingIcon.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] VerifyInput: typeof import('./src/components/VerifyInput.vue')['default'] diff --git a/env.d.ts b/env.d.ts index bdeaf6c..849c617 100644 --- a/env.d.ts +++ b/env.d.ts @@ -1,4 +1,4 @@ /// /// -/// -/// +/// +/// diff --git a/src/App.vue b/src/App.vue index b0aa4af..d892921 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,16 +1,21 @@