From 8f734af8b387ed6622b19e0d9dc401efd6a93986 Mon Sep 17 00:00:00 2001 From: Megghy Date: Tue, 6 May 2025 02:19:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0API=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E5=92=8C=E7=BB=84=E4=BB=B6=E4=BB=A5=E6=94=AF=E6=8C=81=E7=AD=BE?= =?UTF-8?q?=E5=88=B0=E6=8E=92=E8=A1=8C=E5=BC=80=E5=85=B3=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在api-models.ts中将SongRequest更改为LiveRequest,并添加CheckInRanking - 更新CheckInSettings.vue以支持签到排行的开关 - 在多个视图中调整签到排行的显示逻辑 - 移除不再使用的allowCheckInRanking字段 --- src/api/api-models.ts | 6 +++--- .../autoaction/settings/CheckInSettings.vue | 12 ++++++++---- src/components/QuestionItem.vue | 1 - src/views/ViewerLayout.vue | 2 +- src/views/manage/SettingsManageView.vue | 5 ++++- src/views/manage/point/PointSettings.vue | 1 - src/views/open_live/LiveRequest.vue | 18 +++++++++--------- .../components/SongRequestSettings.vue | 14 +++++++------- .../SimpleSongListTemplate.vue | 2 +- 9 files changed, 33 insertions(+), 28 deletions(-) diff --git a/src/api/api-models.ts b/src/api/api-models.ts index 4bdd17d..2620e8e 100644 --- a/src/api/api-models.ts +++ b/src/api/api-models.ts @@ -239,7 +239,6 @@ export interface Setting_Point { maxBonusPoints: number // 最大奖励积分 allowSelfCheckIn: boolean // 是否允许自己签到 requireAuth: boolean // 是否需要认证 - allowCheckInRanking: boolean // 是否允许查询签到排行 } export interface Setting_QuestionDisplay { font?: string // Optional string, with a maximum length of 30 characters @@ -293,10 +292,11 @@ export enum FunctionTypes { SongList, QuestionBox, Schedule, - SongRequest, + LiveRequest, Queue, Point, - VideoCollect + VideoCollect, + CheckInRanking, } export interface SongAuthorInfo { name: string diff --git a/src/client/components/autoaction/settings/CheckInSettings.vue b/src/client/components/autoaction/settings/CheckInSettings.vue index 81215f7..c46f7b6 100644 --- a/src/client/components/autoaction/settings/CheckInSettings.vue +++ b/src/client/components/autoaction/settings/CheckInSettings.vue @@ -148,8 +148,8 @@