feat: + 面板新建工作区(拓扑预设 + 布局条目一等公民)

This commit is contained in:
Aisland
2026-08-17 01:01:08 +08:00
parent fefc60399f
commit 36c561fa7e
5 changed files with 196 additions and 9 deletions
+26
View File
@@ -39,6 +39,19 @@ export const zh = {
'manage.deleteShortcut': '删除快捷方式',
'manage.reset': '恢复默认',
'shortcut.badge': '本地',
'layout.badge': '布局',
'layout.desc': '{n} 内容窗 · 对话',
'add.workspaceTitle': '新建工作区',
'add.workspaceDesc': '选一个拓扑,填好各窗内容,保存为工作台布局(其中一窗恒为对话)。',
'add.layoutNamePh': '布局名称',
'add.paneUrlPh': '内容地址(/xxx/ 或 https://)',
'add.layoutSave': '保存并打开',
'add.layoutInvalid': '请填写布局名称,且每个内容地址以 / 或 http(s) 开头',
'preset.2h': '左右两栏',
'preset.3h': '三栏横排',
'preset.t2': '上一下二',
'preset.grid': '井字四栏',
'manage.deleteLayout': '删除布局',
'empty': '暂无项目',
} satisfies Record<string, string>
@@ -80,6 +93,19 @@ export const en = {
'manage.deleteShortcut': 'Delete shortcut',
'manage.reset': 'Reset defaults',
'shortcut.badge': 'Local',
'layout.badge': 'Layout',
'layout.desc': '{n} content panes · chat',
'add.workspaceTitle': 'New workspace',
'add.workspaceDesc': 'Pick a topology, fill in the pane contents, save as a worktable layout (one pane is always the chat).',
'add.layoutNamePh': 'Layout name',
'add.paneUrlPh': 'Content URL (/xxx/ or https://)',
'add.layoutSave': 'Save & open',
'add.layoutInvalid': 'Enter a layout name, and each content URL must start with / or http(s)',
'preset.2h': 'Side by side',
'preset.3h': 'Three columns',
'preset.t2': 'Top + two',
'preset.grid': '2×2 grid',
'manage.deleteLayout': 'Delete layout',
'empty': 'No projects yet',
} satisfies Record<WorktableKey, string>