chore(web): 合并 U / V / W 后的收尾——剩余「入库」文案、设置新分区深链、冒烟锚点
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei
This commit is contained in:
1 parent
ee3ebcb25c
commit
f397687a5f
11 files changed
+31
-36
No files matched your search
@@ -88,7 +88,7 @@ describe("控制台导航", () => {
|
||||
});
|
||||
|
||||
it("settingsPath 只认新分区名", () => {
|
||||
expect(settingsPath("automation", "cache")).toBe("/console/settings#automation/cache");
|
||||
expect(settingsPath("downloaders", "cache")).toBe("/console/settings#downloaders/cache");
|
||||
expect(settingsPath("agent")).toBe("/console/settings#agent");
|
||||
});
|
||||
});
|
||||
|
||||
@@ -51,7 +51,7 @@ export const NAV_GROUPS: NavGroup[] = [
|
||||
to: "/console",
|
||||
label: "首页",
|
||||
icon: House,
|
||||
description: "在忙什么、要我处理什么、最近入库了什么",
|
||||
description: "在忙什么、要我处理什么、最近整理了什么",
|
||||
},
|
||||
{
|
||||
to: "/console/agent",
|
||||
@@ -139,15 +139,18 @@ export const NAV_ITEMS = NAV_GROUPS.flatMap((g) => g.items);
|
||||
|
||||
/** 设置页深链(IA-2):`/console/settings#分区[/节]`。调用方只认新分区名 */
|
||||
export type SettingsSection =
|
||||
| "automation"
|
||||
| "sites"
|
||||
| "downloaders"
|
||||
| "library"
|
||||
| "media-servers"
|
||||
| "sites"
|
||||
| "metadata"
|
||||
| "acquire"
|
||||
| "library"
|
||||
| "organize"
|
||||
| "agent"
|
||||
| "api-keys"
|
||||
| "account";
|
||||
| "system"
|
||||
| "cache"
|
||||
| "account"
|
||||
| "interface";
|
||||
export function settingsPath(section: SettingsSection, anchor?: string): string {
|
||||
return `${CONSOLE_BASE}/settings#${section}${anchor ? `/${anchor}` : ""}`;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user