From a7aab01f051487327e5ce52b6a8905208c546e8c Mon Sep 17 00:00:00 2001 From: "Somhairle H. Marisol" Date: Fri, 18 Sep 2026 15:49:44 +0800 Subject: [变更性质] feat(frontend) [新增功能] 12 页面组件全量 shadcn:Card/Button/Table/Tabs/Select/Alert;375 底部 Tab Bar 改用 Tabs 组件实现 [实现方案] 页面级手写 class 全部移除(.btn/.banner/table.data/.badge/.tabs/.metric-row/.m-tile/.hint 等改为 shadcn + tailwind 工具类);Modal/DatasetWizard/DatasetCard/DiffView/CodeEditor/Status/Layout 同步 [影响范围] src/pages/*.svelte、src/components/*.svelte MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/ProjectsPage.svelte | 52 ++++++++++++++++------------------ 1 file changed, 24 insertions(+), 28 deletions(-) (limited to 'frontend/src/pages/ProjectsPage.svelte') diff --git a/frontend/src/pages/ProjectsPage.svelte b/frontend/src/pages/ProjectsPage.svelte index d72f905..5cbfecf 100644 --- a/frontend/src/pages/ProjectsPage.svelte +++ b/frontend/src/pages/ProjectsPage.svelte @@ -82,34 +82,36 @@ } - + {#snippet actions()} {/snippet} -
+
{#if showCreate} -
-

新建项目

-
- - -
-
- - -
- {#if createErr}{createErr}{/if} -
- -
-
+ +
+

新建项目

+
+ + +
+
+ + +
+ {#if createErr}{createErr}{/if} +
+ +
+
+
{/if} {#if !busy && !error && projectsStore.all.length === 0} @@ -133,7 +135,7 @@ {@const sp = sparks.get(p.id)} - {p.name} + {p.name} {#if sp} @@ -142,8 +144,8 @@ {/if} - {p.description ?? '—'} - {p.draft_generation ?? '—'} + {p.description ?? '—'} + {p.draft_generation ?? '—'} {fmtDateTime(p.updated_at)} {/each} @@ -153,9 +155,3 @@ {/if}
- - -- cgit v1.2.3