fix(navigation): resolve the 74 approved application destinations

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
leefer
2026-10-22 02:57:12 +08:00
co-authored by multica-agent
parent a666f6bd12
commit 9d54b9d8dd
32 changed files with 128 additions and 85 deletions
@@ -1,4 +1,5 @@
<script lang="ts">
import { resolve } from "$app/paths";
import { onMount } from "svelte";
import { spotlight } from "$lib/actions/spotlight";
import { createQuery } from "@tanstack/svelte-query";
@@ -186,14 +187,14 @@
style:--scene={`var(--sc-${scene})`}
>
<aside class="sidebar" aria-label="全站导航">
<a class="brand" href="/" aria-label="返回工作室"
<a class="brand" href={resolve('/')} aria-label="返回工作室"
>AIGC{#if expanded}<small>创作工作台</small>{/if}</a
>
<nav aria-label="主要导航">
{#each mainNav as item}<a
class="nav-item reference-option"
use:spotlight
href={item.href}
href={resolve(item.href)}
style:--nav-c={`var(--sc-${item.scene})`}
aria-current={item.matches(page.url.pathname) ? "page" : undefined}
title={item.label}
@@ -204,7 +205,7 @@
{#each NAV_MANAGE as item}<a
class="nav-item reference-option"
use:spotlight
href={item.href}
href={resolve(item.href)}
style:--nav-c={`var(--sc-${item.scene})`}
aria-current={item.matches(page.url.pathname) ? "page" : undefined}
title={item.label}
@@ -235,13 +236,13 @@
<a
class="nav-item reference-option"
use:spotlight
href="/settings"
href={resolve('/settings')}
aria-current={page.url.pathname === "/settings" ? "page" : undefined}
title="设置"><Icon name="settings" size={18} /><span>设置</span></a
>
<a
class="connection"
href="/connections"
href={resolve('/connections')}
title={connDetail}
aria-label={connDetail}
><span class="status-chip-dot {connDot}"></span>{#if expanded}<span
@@ -271,14 +272,14 @@
{#if currentNav?.id === "connections"}
<a
class="a-btn secondary sm"
href="/connections"
href={resolve('/connections')}
aria-current={page.url.pathname === "/connections"
? "page"
: undefined}>ComfyUI 连接</a
>
<a
class="a-btn secondary sm"
href="/models"
href={resolve('/models')}
aria-current={page.url.pathname === "/models" ? "page" : undefined}
>大语言模型</a
>