From 559f566d503b14a3a64f1698d88c905db5621049 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E6=B2=AB=E8=8A=B1=E7=81=ABzzz=F0=9F=8C=99?= Date: Thu, 19 Sep 2024 02:12:46 +0800 Subject: [PATCH] =?UTF-8?q?[*]=20=E4=BF=AE=E6=94=B9=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E8=A7=84=E5=88=99=EF=BC=8C=E6=8C=89=E7=85=A7=20Vue3=20?= =?UTF-8?q?=E6=8E=A8=E8=8D=90=E8=A7=84=E8=8C=83=EF=BC=8C.vue=20=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=90=8D=E8=87=B3=E5=B0=91=E4=BD=BF=E7=94=A8=E4=B8=A4?= =?UTF-8?q?=E4=B8=AA=E8=AF=8D=E7=BB=84=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 8 +- src/components/GuestNav.vue | 2 +- src/components/GuestSideBar.vue | 2 +- src/components/InstallCsApp.vue | 1 + src/components/MainNav.vue | 2 +- src/components/MainSideBar.vue | 4 +- src/main.js | 8 +- src/router/index.js | 143 +++++++++--------- src/utils/profile.js | 2 +- src/utils/request.js | 2 +- .../{Dashboard.vue => DashboardView.vue} | 0 src/views/{Donate.vue => DonateView.vue} | 0 src/views/{IcpCheck.vue => IcpCheckView.vue} | 0 src/views/{Main.vue => MainView.vue} | 2 +- src/views/NotFoundView.vue | 35 +++++ src/views/{RealName.vue => RealNameView.vue} | 0 src/views/{Sign.vue => SignView.vue} | 0 src/views/SoftwareDownloadView.vue | 0 .../NewYearView.vue} | 0 .../{Prize.vue => activities/PrizeView.vue} | 0 src/views/{Login.vue => auth/LoginView.vue} | 2 +- .../{Register.vue => auth/RegisterView.vue} | 2 +- .../ResetPasswordView.vue} | 2 +- .../{AddProxies.vue => proxies/AddView.vue} | 0 .../{Config.vue => proxies/ConfigView.vue} | 0 .../{Proxies.vue => proxies/ProxiesView.vue} | 2 +- tsconfig.node.json | 3 + vite.config.js | 5 +- 28 files changed, 138 insertions(+), 89 deletions(-) rename src/views/{Dashboard.vue => DashboardView.vue} (100%) rename src/views/{Donate.vue => DonateView.vue} (100%) rename src/views/{IcpCheck.vue => IcpCheckView.vue} (100%) rename src/views/{Main.vue => MainView.vue} (99%) create mode 100644 src/views/NotFoundView.vue rename src/views/{RealName.vue => RealNameView.vue} (100%) rename src/views/{Sign.vue => SignView.vue} (100%) create mode 100644 src/views/SoftwareDownloadView.vue rename src/views/{NewYear.vue => activities/NewYearView.vue} (100%) rename src/views/{Prize.vue => activities/PrizeView.vue} (100%) rename src/views/{Login.vue => auth/LoginView.vue} (99%) rename src/views/{Register.vue => auth/RegisterView.vue} (99%) rename src/views/{ResetPassword.vue => auth/ResetPasswordView.vue} (99%) rename src/views/{AddProxies.vue => proxies/AddView.vue} (100%) rename src/views/{Config.vue => proxies/ConfigView.vue} (100%) rename src/views/{Proxies.vue => proxies/ProxiesView.vue} (99%) diff --git a/src/App.vue b/src/App.vue index 9ce1dae..5225533 100644 --- a/src/App.vue +++ b/src/App.vue @@ -28,9 +28,9 @@ import { NNotificationProvider, useOsTheme } from 'naive-ui' -import MainNav from './components/MainNav.vue' -import GuestNav from './components/GuestNav.vue' -import Notification from './components/Notification.vue' +import MainNav from '@components/MainNav.vue' +import GuestNav from '@components/GuestNav.vue' +import Notification from '@components/Notification.vue' import { computed } from 'vue' import userData from '@/utils/stores/userData/store' import hljs from 'highlight.js/lib/core' @@ -39,7 +39,7 @@ import nginx from 'highlight.js/lib/languages/nginx' import api from '@/api' import { sendWarningMessage } from '@/utils/message' import { logout } from '@/utils/profile' -import router from '@/router/index' +import router from '@router' // import { init_ws, SetOnMessageFunction } from "@/utils/websocket.js"; // import { sendInfoNotification } from '@/utils/notification' diff --git a/src/components/GuestNav.vue b/src/components/GuestNav.vue index 0e57b39..18ed2cb 100644 --- a/src/components/GuestNav.vue +++ b/src/components/GuestNav.vue @@ -41,7 +41,7 @@ import { h, ref, onMounted } from 'vue' import { NGradientText } from 'naive-ui' import GuestSideBar from './GuestSideBar.vue' -import router from '@/router/index' +import router from '@router' import { get } from '@/utils/request' // 手机状态下收缩菜单栏 diff --git a/src/components/GuestSideBar.vue b/src/components/GuestSideBar.vue index ea0fb6b..55862da 100644 --- a/src/components/GuestSideBar.vue +++ b/src/components/GuestSideBar.vue @@ -68,7 +68,7 @@ const menuOptions = [ + + + + diff --git a/src/views/RealName.vue b/src/views/RealNameView.vue similarity index 100% rename from src/views/RealName.vue rename to src/views/RealNameView.vue diff --git a/src/views/Sign.vue b/src/views/SignView.vue similarity index 100% rename from src/views/Sign.vue rename to src/views/SignView.vue diff --git a/src/views/SoftwareDownloadView.vue b/src/views/SoftwareDownloadView.vue new file mode 100644 index 0000000..e69de29 diff --git a/src/views/NewYear.vue b/src/views/activities/NewYearView.vue similarity index 100% rename from src/views/NewYear.vue rename to src/views/activities/NewYearView.vue diff --git a/src/views/Prize.vue b/src/views/activities/PrizeView.vue similarity index 100% rename from src/views/Prize.vue rename to src/views/activities/PrizeView.vue diff --git a/src/views/Login.vue b/src/views/auth/LoginView.vue similarity index 99% rename from src/views/Login.vue rename to src/views/auth/LoginView.vue index 2ea31be..6134914 100644 --- a/src/views/Login.vue +++ b/src/views/auth/LoginView.vue @@ -58,7 +58,7 @@ import { ref, onMounted } from 'vue' import { useLoadingBar, useMessage } from 'naive-ui' import { getUrlKey } from '@/utils/request' -import router from '@/router/index' +import router from '@router' import userData from '@/utils/stores/userData/store' import { sendErrorMessage } from '@/utils/message' import logger from '@/utils/logger' diff --git a/src/views/Register.vue b/src/views/auth/RegisterView.vue similarity index 99% rename from src/views/Register.vue rename to src/views/auth/RegisterView.vue index 9a0efbe..06a9c78 100644 --- a/src/views/Register.vue +++ b/src/views/auth/RegisterView.vue @@ -50,7 +50,7 @@