From 55d3b31146e75f5b4a4f4739402f094458b7843b Mon Sep 17 00:00:00 2001 From: Megghy Date: Thu, 16 Oct 2025 00:52:05 +0800 Subject: [PATCH] chore: remove unused steering docs and update point settings model --- .kiro/steering/api-integration.md | 36 - .kiro/steering/development-workflow.md | 35 - .kiro/steering/live-request-system.md | 28 - .kiro/steering/project-struction.md | 3 - .kiro/steering/project-structure.md | 29 - .kiro/steering/ui-components.md | 50 - bun.lockb | Bin 425276 -> 421051 bytes package.json | 4 +- src/Utils.ts | 2 +- src/api/api-models.ts | 35 +- src/api/query.ts | 10 +- src/client/ClientFetcher.vue | 8 +- src/client/ClientReadDanmaku.vue | 7 +- src/client/DanmakuWindowManager.vue | 3 +- .../autoaction/ActionHistoryViewer.vue | 7 +- .../autoaction/settings/CheckInSettings.vue | 41 +- src/client/components/danmaku/danmakuUtils.ts | 2 +- src/client/data/initialize.ts | 8 +- src/client/store/autoAction/actionUtils.ts | 4 +- src/client/store/useAutoAction.ts | 8 +- src/client/store/useTauriStore.ts | 2 +- src/components.d.ts | 10 +- src/components/MonacoEditorComponent.vue | 11 +- src/components/SongList.vue | 25 +- src/components/manage/PointHistoryCard.vue | 32 + src/data/DanmakuClients/BaseDanmakuClient.ts | 2 +- src/data/DanmakuClients/DirectClient.ts | 9 +- src/data/DanmakuClients/OpenLiveClient.ts | 2 +- src/main.ts | 6 +- src/router/client.ts | 3 + src/router/index.ts | 5 +- src/router/manage.ts | 3 + src/router/obs.ts | 3 + src/router/obs_store.ts | 3 + src/router/open_live.ts | 3 + src/router/singlePage.ts | 4 +- src/router/user.ts | 4 +- src/store/useGamepadStore.ts | 4 +- src/store/usePaymentSettingStore.ts | 7 +- src/store/useQuestionBox.ts | 2 +- src/store/useWebFetcher.ts | 2 +- src/views/IndexView.vue | 401 ++--- src/views/ManageLayout.vue | 1225 ++++++++------- src/views/manage/SongListManageView.vue | 20 +- src/views/manage/point/PointManage.vue | 8 +- src/views/manage/point/PointSettings.vue | 131 ++ .../manage/tools/ToolDynamicNineGrid.vue | 1010 ++++++------ .../obs/live-request/ClassicRequestOBS.vue | 93 +- .../obs/live-request/FreshRequestOBS.vue | 58 +- .../components/gamepads/GamepadViewer.vue | 9 +- src/views/open_live/OpenQueue.vue | 2 +- src/views/open_live/ReadDanmaku.vue | 34 +- src/views/open_live/ReadDanmaku.vue.backup | 1363 ----------------- src/views/pointViews/PointGoodsView.vue | 29 +- src/views/pointViews/PointOrderView.vue | 2 +- src/views/pointViews/PointUserHistoryView.vue | 2 +- src/views/view/QuestionBoxView.vue | 1116 +++++++------- .../view/scheduleTemplate/KawaiiSchedule.vue | 6 +- 58 files changed, 2491 insertions(+), 3480 deletions(-) delete mode 100644 .kiro/steering/api-integration.md delete mode 100644 .kiro/steering/development-workflow.md delete mode 100644 .kiro/steering/live-request-system.md delete mode 100644 .kiro/steering/project-struction.md delete mode 100644 .kiro/steering/project-structure.md delete mode 100644 .kiro/steering/ui-components.md delete mode 100644 src/views/open_live/ReadDanmaku.vue.backup diff --git a/.kiro/steering/api-integration.md b/.kiro/steering/api-integration.md deleted file mode 100644 index c4cad90..0000000 --- a/.kiro/steering/api-integration.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -inclusion: manual ---- -# API集成 - -该项目使用多个API接口与后端服务和直播平台进行交互。 - -## 主要API模块 - -- [src/api/api-models.ts](mdc:src/api/api-models.ts): 定义了系统中使用的数据模型 -- [src/api/query.ts](mdc:src/api/query.ts): 提供了API请求的基础函数 -- [src/api/account.ts](mdc:src/api/account.ts): 账户管理相关API - -## 数据模型 - -- `SongRequestInfo`: 点歌请求信息 -- `DanmakuUserInfo`: 弹幕用户信息 -- `EventModel`: 事件数据模型,用于处理弹幕、SC等事件 -- `Setting_LiveRequest`: 点歌系统设置 - -## API请求类型 - -- `QueryGetAPI`: GET请求 -- `QueryPostAPI`: POST请求 -- `QueryPostAPIWithParams`: 带参数的POST请求 - -## 直播平台集成 - -系统集成了直播平台(如B站)的API,通过`useDanmakuClient()`获取直播间的弹幕、SC等数据。主要事件类型: - -- `danmaku`: 弹幕事件 -- `sc`: SuperChat事件 - -## 数据存储 - -系统使用`useStorage`进行本地数据存储,`useAccount`获取账户信息。远程数据通过API请求获取和更新。 diff --git a/.kiro/steering/development-workflow.md b/.kiro/steering/development-workflow.md deleted file mode 100644 index 7b34685..0000000 --- a/.kiro/steering/development-workflow.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -inclusion: always ---- -# 开发工作流 - -## 项目配置 - -- TypeScript: 项目使用TypeScript进行类型检查 -- Vite: 使用Vite作为构建工具 -- ESLint: 代码质量检查 -- Prettier: 代码格式化 - -## 主要配置文件 - -- [package.json](mdc:package.json): 项目依赖和脚本 -- [tsconfig.json](mdc:tsconfig.json): TypeScript配置 -- [vite.config.mts](mdc:vite.config.mts): Vite构建配置 -- [.prettierrc.json](mdc:.prettierrc.json): Prettier格式化配置 -- [eslint.config.mjs](mdc:eslint.config.mjs): ESLint配置 - -## 开发环境 - -项目运行在Windows环境中,使用PowerShell作为默认shell。 - -## 代码风格 - -- 使用中文作为用户界面和日志语言 -- 注释应尽量简短,必要时使用中文 -- 遵循Vue 3组合式API的最佳实践 - -## 部署流程 - -项目包含Docker配置,可以使用Docker进行部署: - -- [Dockerfile](mdc:Dockerfile): Docker构建配置 diff --git a/.kiro/steering/live-request-system.md b/.kiro/steering/live-request-system.md deleted file mode 100644 index ccee12b..0000000 --- a/.kiro/steering/live-request-system.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -inclusion: manual ---- -# 点歌系统 - -点歌系统是主要功能之一,允许观众在直播过程中通过弹幕、SuperChat或网页界面请求歌曲。 - -## 主要文件 - -- [src/views/open_live/LiveRequest.vue](mdc:src/views/open_live/LiveRequest.vue): 点歌系统的主要界面组件 -- [src/views/obs/LiveRequestOBS.vue](mdc:src/views/obs/LiveRequestOBS.vue): 用于OBS的点歌系统显示组件 - -## 主要功能 - -- 支持多种点歌方式:弹幕、SuperChat、网页、手动添加 -- 歌曲队列管理:等待、演唱中、已完成、已取消等状态管理 -- 权限控制:可配置只允许舰长、提督、总督或粉丝牌用户点歌 -- 冷却时间:可设置不同用户类型的点歌冷却时间 -- OBS集成:提供适用于OBS的显示组件,可展示当前点歌队列 -- 黑名单:可将特定用户加入黑名单 - -## 数据流 - -1. 接收来自直播平台的弹幕或SuperChat -2. 通过前缀识别点歌请求(如"点播") -3. 根据规则验证请求是否有效 -4. 将有效请求添加到点歌队列 -5. 主播可以管理队列:开始演唱、标记完成、取消请求等 diff --git a/.kiro/steering/project-struction.md b/.kiro/steering/project-struction.md deleted file mode 100644 index a1df89d..0000000 --- a/.kiro/steering/project-struction.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -inclusion: always ---- diff --git a/.kiro/steering/project-structure.md b/.kiro/steering/project-structure.md deleted file mode 100644 index ffb2ac1..0000000 --- a/.kiro/steering/project-structure.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -inclusion: manual ---- -# 项目结构 - -该项目是一个基于Vue的直播辅助工具,主要用于管理直播相关功能,如点歌系统、弹幕互动等。 - -## 主要目录结构 - -- `src/`: 源代码目录 - - `api/`: API调用和模型定义 - - `assets/`: 静态资源文件 - - `client/`: 客户端相关组件和服务 - - `components/`: Vue组件 - - `composables/`: Vue组合式API函数 - - `data/`: 数据相关模块,包括聊天和弹幕客户端 - - `router/`: 路由配置 - - `store/`: 状态管理 - - `views/`: 页面视图组件 - - `open_live/`: 直播相关视图,包括点歌系统 - - `obs/`: OBS相关视图组件 -- `public/`: 公共静态资源 -- `plugins/`: 插件目录 - -## 主要功能模块 - -- 点歌系统:允许观众通过弹幕或SuperChat点歌 -- 直播互动:弹幕互动和自动化操作 -- OBS集成:为OBS提供overlays和组件 diff --git a/.kiro/steering/ui-components.md b/.kiro/steering/ui-components.md deleted file mode 100644 index 92d6040..0000000 --- a/.kiro/steering/ui-components.md +++ /dev/null @@ -1,50 +0,0 @@ ---- -inclusion: fileMatch -fileMatchPattern: ['*.vue'] ---- -# UI组件 - -项目使用Vue 3和Naive UI作为主要UI框架,采用组件化设计。 - -## 主要UI框架 - -- Vue 3: 使用` \ No newline at end of file + + diff --git a/src/client/DanmakuWindowManager.vue b/src/client/DanmakuWindowManager.vue index e0636d7..d6ca979 100644 --- a/src/client/DanmakuWindowManager.vue +++ b/src/client/DanmakuWindowManager.vue @@ -211,8 +211,7 @@ const separatorOptions = [ > - + diff --git a/src/client/components/autoaction/ActionHistoryViewer.vue b/src/client/components/autoaction/ActionHistoryViewer.vue index 304cd50..79f97d3 100644 --- a/src/client/components/autoaction/ActionHistoryViewer.vue +++ b/src/client/components/autoaction/ActionHistoryViewer.vue @@ -1,5 +1,6 @@