From 57a9995792ba582eb5a11ee5e385d4a985b5fd87 Mon Sep 17 00:00:00 2001 From: Megghy Date: Sat, 21 Oct 2023 20:58:04 +0800 Subject: [PATCH] alpha --- src/data/constants.ts | 3 +- src/router/index.ts | 5 ++ src/svgs/ic_vtuber.svg | 1 + src/views/AboutView.vue | 50 +++++++++++ src/views/IndexView.vue | 111 ++++++++++++++++++++---- src/views/ManageLayout.vue | 2 +- src/views/manage/DashboardView.vue | 14 ++- src/views/manage/ScheduleManageView.vue | 2 +- 8 files changed, 158 insertions(+), 30 deletions(-) create mode 100644 src/svgs/ic_vtuber.svg create mode 100644 src/views/AboutView.vue diff --git a/src/data/constants.ts b/src/data/constants.ts index b3ce046..1f796f9 100644 --- a/src/data/constants.ts +++ b/src/data/constants.ts @@ -1,13 +1,12 @@ import { ref } from 'vue' const debugAPI = import.meta.env.VITE_DEBUG_API -const releseAPI = `${document.location.protocol}//api.vtsuru.live/` +const releseAPI = `${document.location.protocol}//api.vtsuru.live/api/` export const isBackendUsable = ref(true) export const BASE_API = process.env.NODE_ENV === 'development' ? debugAPI : releseAPI export const FETCH_API = 'https://fetch.vtsuru.live/' -export const FIVESING_SEARCH_API = 'http://search.5sing.kugou.com/home/json?sort=1&page=1&filter=3&type=0&keyword=' export const TURNSTILE_KEY = '0x4AAAAAAAETUSAKbds019h0' diff --git a/src/router/index.ts b/src/router/index.ts index b0c9935..dc8736c 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -12,6 +12,11 @@ const routes: Array = [ name: 'verify', component: () => import('@/views/VerifyView.vue'), }, + { + path: '/about', + name: 'about', + component: () => import('@/views/AboutView.vue'), + }, { path: '/user/:id', name: 'user', diff --git a/src/svgs/ic_vtuber.svg b/src/svgs/ic_vtuber.svg new file mode 100644 index 0000000..394e217 --- /dev/null +++ b/src/svgs/ic_vtuber.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/views/AboutView.vue b/src/views/AboutView.vue new file mode 100644 index 0000000..76bdd3f --- /dev/null +++ b/src/views/AboutView.vue @@ -0,0 +1,50 @@ + + diff --git a/src/views/IndexView.vue b/src/views/IndexView.vue index 2c5295d..8c19696 100644 --- a/src/views/IndexView.vue +++ b/src/views/IndexView.vue @@ -1,35 +1,110 @@ - diff --git a/src/views/ManageLayout.vue b/src/views/ManageLayout.vue index 17d9a8a..1797409 100644 --- a/src/views/ManageLayout.vue +++ b/src/views/ManageLayout.vue @@ -193,7 +193,7 @@ onMounted(() => { 有更多功能建议请 - 反馈 + 反馈 diff --git a/src/views/manage/DashboardView.vue b/src/views/manage/DashboardView.vue index 7b8b46e..ee6b279 100644 --- a/src/views/manage/DashboardView.vue +++ b/src/views/manage/DashboardView.vue @@ -1,16 +1,14 @@ -
- + +
+
- diff --git a/src/views/manage/ScheduleManageView.vue b/src/views/manage/ScheduleManageView.vue index 9d87a0d..66ea4fb 100644 --- a/src/views/manage/ScheduleManageView.vue +++ b/src/views/manage/ScheduleManageView.vue @@ -237,7 +237,7 @@ onMounted(() => {