From 61f5c545953bb4ee20b123bf9671ac35d7f1f3c1 Mon Sep 17 00:00:00 2001 From: "Somhairle H. Marisol" Date: Fri, 18 Sep 2026 12:03:32 +0800 Subject: [变更性质] feat(frontend) [新增功能] round3 页面组件全量迁移 shadcn-svelte(12 页面 + Modal/DatasetWizard/DatasetCard/Status) [实现方案] .btn→Button、.banner→Alert、table.data→Table.Root、.badge→Badge、.tabs→Tabs.Root、.metric-card/form.card→Card.Root;ProjectStrategyTab div 配对修复 [影响范围] src/pages/*.svelte、src/components/*.svelte MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/ProjectStrategyTab.svelte | 36 +++++++++++++++------------- 1 file changed, 20 insertions(+), 16 deletions(-) (limited to 'frontend/src/pages/ProjectStrategyTab.svelte') diff --git a/frontend/src/pages/ProjectStrategyTab.svelte b/frontend/src/pages/ProjectStrategyTab.svelte index 0df9f1a..8614cc0 100644 --- a/frontend/src/pages/ProjectStrategyTab.svelte +++ b/frontend/src/pages/ProjectStrategyTab.svelte @@ -5,6 +5,10 @@ import Modal from '../components/Modal.svelte'; import { Button } from '$lib/components/ui/button'; import { Input } from '$lib/components/ui/input'; + import { Label } from '$lib/components/ui/label'; + import { Alert } from '$lib/components/ui/alert'; + import { Badge } from '$lib/components/ui/badge'; + import * as Card from '$lib/components/ui/card'; import { projectsStore } from '../lib/listsStore.svelte'; import { getProject, @@ -261,14 +265,14 @@ {#if !initBusy && !initErr} -
+

策略代码(Backtrader Python)

{saveStatus === 'saved' && `已保存${saveMsg ? ` · ${saveMsg}` : ''}`} - {#if saveStatus === 'dirty'}有未保存修改{/if} - {#if saveStatus === 'saving'}保存中…{/if} - {#if saveStatus === 'conflict'}冲突{/if} + {#if saveStatus === 'dirty'}有未保存修改{/if} + {#if saveStatus === 'saving'}保存中…{/if} + {#if saveStatus === 'conflict'}冲突{/if}

@@ -298,23 +302,23 @@ {#if conflictServer} -

+
{/if} -
+

AI 助手

-
+
@@ -323,10 +327,10 @@
{#if aiErr} - + {/if} {#if aiResult} @@ -352,18 +356,18 @@ {#if aiResult.base_generation !== baseGeneration} - + 草稿代 {aiResult.base_generation} 与当前 {baseGeneration} 不一致,接受会失败;请重新发起说明 {/if} {#if aiAcceptErr} - + {aiAcceptErr} {/if}
{/if} {#if aiNote} - + {aiNote} {/if} - +
@@ -373,7 +377,7 @@ {/if} {#if !versionsBusy && versions.length > 0} -
+
@@ -393,7 +397,7 @@ 版本代 {v.hash?.slice(0, 8) || '—'} - +
{v.hash?.slice(0, 12)}{versionSourceLabel[v.source]}{versionSourceLabel[v.source]}
-- cgit v1.2.3