fix(navigation): keep tool destinations in a module constant

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
leefer
2026-10-22 03:02:47 +08:00
co-authored by multica-agent
parent 99574c2226
commit 67eb822efe
+4 -1
View File
@@ -1,3 +1,7 @@
<script module lang="ts">
const TOOLS = [{ href: '/image', icon: 'image', title: '图片创作', desc: '从文字、参考图到新画面' }, { href: '/video', icon: 'film', title: '视频创作', desc: '首尾帧、参考视频与运镜' }, { href: '/canvas', icon: 'story', title: '灵感画布', desc: '把零散的想法连接起来' }, { href: '/agents', icon: 'sparkle', title: '智能体', desc: '让专业搭档加入创作' }] as const;
</script>
<script lang="ts">
import { resolve } from '$app/paths';
// A「片场暗房」项目总览 — the confirmed a1 layout (HEL-608).
@@ -33,7 +37,6 @@
import { progressFor } from '$lib/jobProgress';
import { parseDbTs } from '$lib/dbtime';
const TOOLS = [{ href: '/image', icon: 'image', title: '图片创作', desc: '从文字、参考图到新画面' }, { href: '/video', icon: 'film', title: '视频创作', desc: '首尾帧、参考视频与运镜' }, { href: '/canvas', icon: 'story', title: '灵感画布', desc: '把零散的想法连接起来' }, { href: '/agents', icon: 'sparkle', title: '智能体', desc: '让专业搭档加入创作' }] as const;
const client = useQueryClient();