From 7f622de85722084e6eaf3359945ddfb69af80f43 Mon Sep 17 00:00:00 2001 From: AoXuan Date: Tue, 2 Sep 2025 14:50:24 +0800 Subject: [PATCH] =?UTF-8?q?refactor(components):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E9=94=99=E8=AF=AF=EF=BC=8C=E9=87=8D=E6=96=B0?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/LogViewer.vue | 4 +- frontend/src/components/NoticeModal.vue | 3 +- frontend/src/components/ScriptTable.vue | 27 +- .../components/initialization/BackendStep.vue | 4 +- .../initialization/DependenciesStep.vue | 41 +- .../src/components/initialization/GitStep.vue | 13 - .../components/initialization/ManualMode.vue | 4 - .../components/initialization/PythonStep.vue | 4 +- .../src/components/queue/QueueItemManager.vue | 15 +- .../src/components/queue/TimeSetManager.vue | 18 +- frontend/src/router/index.ts | 68 ++-- frontend/src/views/Home.vue | 2 +- frontend/src/views/Plans.vue | 384 +++++++++--------- frontend/src/views/Queue.vue | 2 +- frontend/src/views/Scripts.vue | 11 +- frontend/tsconfig.electron.json | 16 +- 16 files changed, 268 insertions(+), 348 deletions(-) diff --git a/frontend/src/components/LogViewer.vue b/frontend/src/components/LogViewer.vue index 51f554c..c890ad5 100644 --- a/frontend/src/components/LogViewer.vue +++ b/frontend/src/components/LogViewer.vue @@ -252,7 +252,7 @@ onUnmounted(() => { } .log-entry:hover { - background: var(--ant-color-fill-quaternary); + } .log-highlight { @@ -311,7 +311,7 @@ onUnmounted(() => { } .log-data-content { - background: var(--ant-color-fill-quaternary); + padding: 8px; border-radius: 4px; margin-top: 4px; diff --git a/frontend/src/components/NoticeModal.vue b/frontend/src/components/NoticeModal.vue index 360010d..1db6594 100644 --- a/frontend/src/components/NoticeModal.vue +++ b/frontend/src/components/NoticeModal.vue @@ -92,10 +92,9 @@ const md = new MarkdownIt({ const notices = computed(() => Object.keys(props.noticeData)) // 当前公告索引 -const currentNoticeIndex = computed(() => { +computed(() => { return notices.value.findIndex(title => title === activeNoticeKey.value) }) - // 渲染 markdown const renderMarkdown = (content: string) => { return md.render(content) diff --git a/frontend/src/components/ScriptTable.vue b/frontend/src/components/ScriptTable.vue index 9c1cefb..d3ea0ff 100644 --- a/frontend/src/components/ScriptTable.vue +++ b/frontend/src/components/ScriptTable.vue @@ -211,10 +211,7 @@ 剩余关卡: {{ user.Info.Stage_Remain }} - + 备注: {{ truncateText(user.Info.Notes) }} @@ -270,10 +267,7 @@
- +