From 0a98aad7499b6c7b0b2a8fdce24fbf1afccfbc85 Mon Sep 17 00:00:00 2001 From: Megghy Date: Thu, 2 Nov 2023 21:18:55 +0800 Subject: [PATCH] update bili verify to open-live --- src/api/api-models.ts | 8 +++ src/router/index.ts | 8 --- src/views/manage/DashboardView.vue | 104 ++++++++++++++++++++++++++++- 3 files changed, 109 insertions(+), 11 deletions(-) diff --git a/src/api/api-models.ts b/src/api/api-models.ts index d58177c..f7bbd20 100644 --- a/src/api/api-models.ts +++ b/src/api/api-models.ts @@ -36,11 +36,19 @@ export interface AccountInfo extends UserInfo { settings: UserSetting token: string + biliAuthCodeStatus: BiliAuthCodeStatusType + eventFetcherOnline: boolean eventFetcherStatus: string nextSendEmailTime?: number } +export enum BiliAuthCodeStatusType { + NotBind, + Active, + Notfound, + Inactive, +} export interface Setting_SendEmail { recieveQA: boolean recieveQAReply: boolean diff --git a/src/router/index.ts b/src/router/index.ts index d2f71ea..ace53b1 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -134,14 +134,6 @@ const routes: Array = [ keepAlive: true, }, }, - { - path: 'bili-verify', - name: 'manage-biliVerify', - component: () => import('@/views/manage/BiliVerifyView.vue'), - meta: { - title: 'Bilibili认证', - }, - }, { path: 'history', name: 'manage-history', diff --git a/src/views/manage/DashboardView.vue b/src/views/manage/DashboardView.vue index 6599f2a..817233e 100644 --- a/src/views/manage/DashboardView.vue +++ b/src/views/manage/DashboardView.vue @@ -1,11 +1,17 @@