- 移除 Calliope 旧壳死代码:/project/[id] 旧四段编辑器页面与 9 个遗留组件 (NavRail/StoryStage/AssetsStage/ScriptStage/QueueStage/ActivityPanel/ JobRow/AssetThumb/ProjectCard),/projects 死页面(308→/ 已有) - 素材库 /library 迁入 AppShell 新壳:a-chip 筛选、ui/Modal、ConfirmDialog 实心红两级删除、窄屏单列;移除 A 时期 308→/ 重定向;导航轨/更多菜单新增入口 - 智能体子系统去杂色:agentPalette 默认紫→中性、回退色板收敛为 avatar 五色族; AgentChat 气泡按 §3.2/3.6(用户 bg-3/Agent bg-2+line)、进行中指示改青、 紫色空态图标清除;AgentComposer 天蓝/金芯片收敛 - 首页/工作台/五面板/StageStepper/PromptBlock/JobChip 类名收敛到全局 a-btn/ a-input/a-tag/field;Stepper 补金色当前下划+已确认✓;镜头序号按规范用 accent-lo+mono;分页/工作台选择页金色越界改中性或青 - 金色纪律修正:次级文字操作(重试/测试/链接)与必填星标、任务「测试」标签 去金色;「默认」金标签按 §3.9 保留 - 断点收敛:1023/1279/900/780/700/640 → 1180/760(1440 增强保留) - canvas/build-scene 可用级 ≤760 纵向堆叠适配 + 硬编码色/旧 fallback 清理; AppHeader 去 Calliope 品牌与死链 - favicon 收口:static/favicon.png 金色品牌图标,移除 204 stub 与构建豁免 - i18n 七语种 +3 key(shell.navLibrary/library.loadError/library.subtitle)全对齐 - 新增 e2e/fpages.mjs:F 页面三档走查/重定向/五段导入编辑/规范色断言 38 项 Co-authored-by: multica-agent <github@multica.ai>
137 lines
3.3 KiB
Svelte
137 lines
3.3 KiB
Svelte
<script lang="ts">
|
|
import LanguageSwitcher from '$lib/components/LanguageSwitcher.svelte';
|
|
import { t } from '$lib/i18n.svelte';
|
|
|
|
interface Props {
|
|
active?: 'projects' | 'canvas' | 'build-scene' | 'library' | 'agents' | 'models' | 'settings';
|
|
crumb?: string;
|
|
/** Optional status content rendered between the crumb and the nav. */
|
|
status?: import('svelte').Snippet;
|
|
children?: import('svelte').Snippet;
|
|
}
|
|
|
|
let { active, crumb, status, children }: Props = $props();
|
|
</script>
|
|
|
|
<header class="header">
|
|
<div class="header-left">
|
|
<a class="logo" href="/" title={t('shell.brand')}>
|
|
{t('shell.brand')}
|
|
</a>
|
|
{#if crumb}
|
|
<span class="crumb">{crumb}</span>
|
|
{/if}
|
|
{#if status}
|
|
<div class="header-status">
|
|
{@render status()}
|
|
</div>
|
|
{/if}
|
|
<nav class="top-nav" aria-label={t('nav.primary')}>
|
|
<a class="nav-link" class:active={active === 'canvas'} href="/canvas">{t('nav.canvas')}</a>
|
|
<a class="nav-link" class:active={active === 'projects'} href="/">{t('nav.projects')}</a>
|
|
<a class="nav-link" class:active={active === 'build-scene'} href="/build-scene">{t('nav.buildScene')}</a>
|
|
<a class="nav-link" class:active={active === 'library'} href="/library">{t('nav.library')}</a>
|
|
<a class="nav-link" class:active={active === 'agents'} href="/agents">{t('nav.agents')}</a>
|
|
<a class="nav-link" class:active={active === 'models'} href="/models">{t('nav.models')}</a>
|
|
<a class="nav-link" class:active={active === 'settings'} href="/settings">{t('nav.settings')}</a>
|
|
</nav>
|
|
</div>
|
|
<div class="header-right">
|
|
<LanguageSwitcher />
|
|
{#if children}
|
|
{@render children()}
|
|
{/if}
|
|
</div>
|
|
</header>
|
|
|
|
<style>
|
|
.header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-md);
|
|
padding: 14px 24px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--bg-surface);
|
|
flex-shrink: 0;
|
|
}
|
|
.header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-md);
|
|
min-width: 0;
|
|
flex-wrap: wrap;
|
|
}
|
|
.header-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
.logo {
|
|
font-family: var(--font);
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
text-decoration: none;
|
|
letter-spacing: -0.01em;
|
|
white-space: nowrap;
|
|
}
|
|
.crumb {
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
}
|
|
.header-status {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-shrink: 0;
|
|
}
|
|
.top-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
margin-left: 8px;
|
|
}
|
|
.nav-link {
|
|
padding: 8px 12px;
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text-secondary);
|
|
text-decoration: none;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
transition: color 0.15s, background 0.15s;
|
|
min-height: 36px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
}
|
|
.nav-link:hover {
|
|
color: var(--text-primary);
|
|
background: var(--bg-elevated);
|
|
}
|
|
.nav-link.active {
|
|
color: var(--text-primary);
|
|
background: var(--bg-elevated);
|
|
box-shadow: inset 0 -2px 0 var(--accent);
|
|
}
|
|
.nav-link:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 2px;
|
|
}
|
|
@media (max-width: 760px) {
|
|
.header {
|
|
padding: 12px 16px;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
.top-nav {
|
|
margin-left: 0;
|
|
width: 100%;
|
|
}
|
|
.nav-link {
|
|
flex: 1;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
</style>
|