@tano.page/workbench 0.14.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. package/package.json +50 -16
  2. package/src/App.vue +82 -752
  3. package/src/appearance/appearance.ts +14 -4
  4. package/src/appearance/components/ThemePresetPreview.vue +52 -8
  5. package/src/appearance/interface-font.ts +99 -0
  6. package/src/appearance/theme.ts +26 -10
  7. package/src/appearance/use-interface-font.ts +30 -0
  8. package/src/assets/mail-provider-icons/NOTICE.txt +27 -0
  9. package/src/assets/mail-provider-icons/aliyun-mail.svg +3 -0
  10. package/src/assets/mail-provider-icons/gmail.svg +1 -0
  11. package/src/assets/mail-provider-icons/icloud.svg +12 -0
  12. package/src/assets/mail-provider-icons/netease-126.svg +5 -0
  13. package/src/assets/mail-provider-icons/netease-163.svg +5 -0
  14. package/src/assets/mail-provider-icons/qq.svg +9 -0
  15. package/src/assets/mail-provider-icons/tencent-exmail.svg +4 -0
  16. package/src/assistant/agent-identities.ts +1 -97
  17. package/src/assistant/agent-task-context.ts +1 -54
  18. package/src/assistant/attachments.ts +1 -1
  19. package/src/assistant/completion.ts +1 -61
  20. package/src/assistant/components/AssistantChangeList.vue +98 -21
  21. package/src/assistant/components/AssistantPanel.vue +425 -8
  22. package/src/assistant/components/PluginToolProposalCard.vue +235 -0
  23. package/src/assistant/connection-actions.ts +237 -0
  24. package/src/assistant/document-mentions.ts +1 -33
  25. package/src/assistant/engine.ts +1 -532
  26. package/src/assistant/execution.ts +6 -33
  27. package/src/assistant/files.ts +5 -13
  28. package/src/assistant/hash.ts +1 -4
  29. package/src/assistant/inbox.ts +1 -148
  30. package/src/assistant/language.ts +10 -37
  31. package/src/assistant/mention-autocomplete.ts +69 -0
  32. package/src/assistant/plugin-bridge-builder.ts +146 -0
  33. package/src/assistant/prompts.ts +1 -58
  34. package/src/assistant/proposal-actions.ts +336 -0
  35. package/src/assistant/results.ts +20 -86
  36. package/src/assistant/store.ts +167 -327
  37. package/src/assistant/structures.ts +1 -155
  38. package/src/assistant/tasks.ts +8 -96
  39. package/src/assistant/tool-rules.ts +1 -7
  40. package/src/assistant/workspace-bridge.ts +1 -1
  41. package/src/composables/use-document-actions.ts +38 -20
  42. package/src/composables/use-file-tree-controller.ts +7 -12
  43. package/src/composables/use-workbench-help.ts +177 -0
  44. package/src/composables/use-workbench-history.ts +2 -4
  45. package/src/composables/use-workbench-lifecycle.ts +249 -0
  46. package/src/composables/use-workbench-modals.ts +6 -1
  47. package/src/composables/use-workbench-outline.ts +0 -5
  48. package/src/composables/use-workbench-settings.ts +185 -0
  49. package/src/composables/use-workbench-shortcuts.ts +40 -1021
  50. package/src/composables/use-workbench-views.ts +325 -0
  51. package/src/data-tables/data-tables.ts +1 -2
  52. package/src/documents/components/DocumentActionMenu.vue +279 -0
  53. package/src/documents/components/DocumentHistoryPanel.vue +3 -1
  54. package/src/documents/components/DocumentInspector.vue +168 -0
  55. package/src/documents/components/DocumentPane.vue +482 -0
  56. package/src/documents/description-merge.ts +1 -9
  57. package/src/features.ts +1 -0
  58. package/src/files/components/FileMetadataPanel.vue +49 -15
  59. package/src/fonts/Inter-Latin-Italic.woff2 +0 -0
  60. package/src/fonts/Inter-Latin.woff2 +0 -0
  61. package/src/fonts/TanoUISansSC-Bold.woff2 +0 -0
  62. package/src/fonts/TanoUISansSC-Medium.woff2 +0 -0
  63. package/src/fonts/TanoUISansSC-Regular.woff2 +0 -0
  64. package/src/help/help-milestones.ts +3 -5
  65. package/src/i18n/locale-catalogs.ts +7 -6
  66. package/src/i18n/locale-registry.ts +8 -6
  67. package/src/i18n/locales/de-DE.json +371 -3
  68. package/src/i18n/locales/en-US.json +371 -2
  69. package/src/i18n/locales/es-ES.json +371 -3
  70. package/src/i18n/locales/ja-JP.json +370 -2
  71. package/src/i18n/locales/zh-TW.json +370 -2
  72. package/src/mail/components/MailAccountDialog.vue +450 -0
  73. package/src/mail/components/MailComposerDialog.vue +326 -0
  74. package/src/mail/components/MailProviderIcon.vue +30 -0
  75. package/src/mail/components/MailWorkspaceView.vue +821 -0
  76. package/src/mail/components/SidebarMail.vue +134 -0
  77. package/src/mail/mail-avatar.ts +17 -0
  78. package/src/mail/mail-bridge.ts +68 -0
  79. package/src/mail/mail-calendar.ts +208 -0
  80. package/src/mail/mail-markdown.ts +195 -0
  81. package/src/mail/types.ts +226 -0
  82. package/src/objects/components/ObjectDetailModal.vue +1001 -0
  83. package/src/objects/content-references.ts +6 -56
  84. package/src/objects/wiki-links.ts +1 -48
  85. package/src/objects/workspace-objects.ts +3 -4
  86. package/src/plan-sync/types.ts +6 -3
  87. package/src/plans/calendar-interaction.ts +194 -0
  88. package/src/plans/calendar.ts +65 -9
  89. package/src/plans/components/CalendarAgendaView.vue +165 -0
  90. package/src/plans/components/CalendarDayPopover.vue +172 -39
  91. package/src/plans/components/CalendarFilterBar.vue +128 -0
  92. package/src/plans/components/CalendarMonthView.vue +224 -0
  93. package/src/plans/components/CalendarQuickCreateDialog.vue +269 -0
  94. package/src/plans/components/CalendarTimelineView.vue +517 -0
  95. package/src/plans/components/CalendarTopbarControls.vue +101 -0
  96. package/src/plans/components/CalendarView.vue +264 -748
  97. package/src/plans/components/CalendarYearView.vue +138 -0
  98. package/src/plans/components/PlanArchiveDialog.vue +295 -0
  99. package/src/plans/components/PlanConnectionsDialog.vue +1 -1
  100. package/src/plans/components/PlanDateField.vue +6 -4
  101. package/src/plans/components/PlanDetailPanel.vue +227 -32
  102. package/src/plans/components/PlanEventList.vue +16 -4
  103. package/src/plans/components/SidebarPlan.vue +22 -15
  104. package/src/plans/components/TaskRepeatControls.vue +169 -30
  105. package/src/plans/components/calendar-shared.css +192 -0
  106. package/src/plans/composables/use-calendar-interactions.ts +396 -0
  107. package/src/plans/composables/use-calendar-scroll.ts +420 -0
  108. package/src/plans/local-reminders.ts +149 -0
  109. package/src/plans/personal-plans.ts +10 -1
  110. package/src/plans/plan-date.ts +8 -1
  111. package/src/plans/plan-migration.ts +95 -0
  112. package/src/plans/recurrence.ts +95 -0
  113. package/src/plans/task-repeat.ts +8 -8
  114. package/src/plans/timeline-layout.ts +92 -0
  115. package/src/plugins/assistant-bridge.ts +520 -0
  116. package/src/plugins/attachment-reader.ts +3 -1
  117. package/src/plugins/cache-storage.ts +42 -2
  118. package/src/plugins/components/PluginAutomations.vue +3 -3
  119. package/src/plugins/components/PluginCatalogBrowser.vue +17 -8
  120. package/src/plugins/components/PluginChangeSummary.vue +16 -3
  121. package/src/plugins/components/PluginConnections.vue +1 -1
  122. package/src/plugins/components/PluginCustomView.vue +2 -2
  123. package/src/plugins/components/PluginDetailPage.vue +136 -57
  124. package/src/plugins/components/PluginDeveloperArea.vue +192 -0
  125. package/src/plugins/components/PluginDocumentSlot.vue +63 -0
  126. package/src/plugins/components/PluginExplorer.vue +21 -25
  127. package/src/plugins/components/PluginImportDialog.vue +410 -0
  128. package/src/plugins/components/PluginInstaller.vue +273 -288
  129. package/src/plugins/components/PluginListItem.vue +3 -0
  130. package/src/plugins/components/PluginMaintenance.vue +37 -34
  131. package/src/plugins/components/PluginRepositoryStorage.vue +4 -2
  132. package/src/plugins/components/PluginRuntimePanel.vue +3 -3
  133. package/src/plugins/components/PluginSettingsForm.vue +112 -0
  134. package/src/plugins/components/PluginStatusBar.vue +161 -0
  135. package/src/plugins/components/PluginSurface.vue +18 -6
  136. package/src/plugins/components/PluginUiDialog.vue +452 -0
  137. package/src/plugins/components/PluginsTabPage.vue +61 -0
  138. package/src/plugins/components/plugin-center.css +5 -0
  139. package/src/plugins/data.ts +9 -86
  140. package/src/plugins/editor-plugin-adapters.ts +169 -0
  141. package/src/plugins/excalidraw/bundle.tano-plugin.json +1 -1
  142. package/src/plugins/excalidraw/manifest.json +12 -1
  143. package/src/plugins/host.ts +662 -43
  144. package/src/plugins/native.ts +2 -10
  145. package/src/plugins/overlay-mapping.ts +125 -0
  146. package/src/plugins/packages.ts +73 -1
  147. package/src/plugins/plugin-data.ts +2 -3
  148. package/src/plugins/plugin-permissions.ts +57 -0
  149. package/src/plugins/plugin-rpc-router.ts +558 -0
  150. package/src/plugins/plugin-sdk.ts +1 -94
  151. package/src/plugins/plugin-ui-dialogs.ts +167 -0
  152. package/src/plugins/policy.ts +53 -3
  153. package/src/plugins/presentation-preview/bundle.tano-plugin.json +1 -1
  154. package/src/plugins/presentation-preview/manifest.json +2 -1
  155. package/src/plugins/queries.ts +1 -73
  156. package/src/plugins/sandbox.ts +15 -1
  157. package/src/plugins/use-plugin-actions.ts +67 -20
  158. package/src/plugins/user-plugins.ts +254 -0
  159. package/src/plugins/view-header.ts +2 -7
  160. package/src/plugins/word-preview/bundle.tano-plugin.json +1 -1
  161. package/src/plugins/word-preview/manifest.json +13 -1
  162. package/src/plugins/workbench.ts +175 -2
  163. package/src/plugins/worker.js +105 -8
  164. package/src/plugins/workspace-plugin-runtime.ts +23 -7
  165. package/src/plugins/workspace-plugins.ts +212 -21
  166. package/src/runtime.ts +103 -4
  167. package/src/settings/components/SettingsAppearancePage.vue +46 -0
  168. package/src/settings/components/SettingsDocumentsPage.vue +0 -1
  169. package/src/settings/components/SettingsPanel.vue +8 -3
  170. package/src/settings/components/WorkbenchSettings.vue +20 -7
  171. package/src/settings/components/settings-context.ts +1 -1
  172. package/src/settings/components/settings-search.ts +2 -3
  173. package/src/settings/settings-tab.ts +1 -0
  174. package/src/shell/command-palette.ts +3 -3
  175. package/src/shell/components/EditorToolbar.vue +8 -9
  176. package/src/shell/components/EditorTools.vue +1 -5
  177. package/src/shell/components/PaneTopbar.vue +393 -0
  178. package/src/shell/components/SelectionToolbar.vue +0 -2
  179. package/src/shell/components/SidebarNavigation.vue +22 -2
  180. package/src/shell/components/WorkbenchContextMenus.vue +58 -34
  181. package/src/shell/components/WorkbenchModals.vue +47 -62
  182. package/src/shell/components/WorkbenchPanes.vue +371 -1342
  183. package/src/shell/components/WorkbenchSidebar.vue +486 -0
  184. package/src/shell/components/WorkspaceBreadcrumb.vue +6 -14
  185. package/src/shell/components/WorkspaceViewSwitcher.vue +12 -7
  186. package/src/shell/pane-registry.ts +69 -0
  187. package/src/shell/use-surface-dismissal.ts +219 -0
  188. package/src/shell/use-workbench-commands.ts +599 -0
  189. package/src/shell/use-workbench-keybindings.ts +337 -0
  190. package/src/shell/use-workbench.ts +531 -1153
  191. package/src/shell/workbench-async-components.ts +14 -5
  192. package/src/shell/workbench-context.ts +30 -3
  193. package/src/stores/mail.ts +414 -0
  194. package/src/stores/plan-sync.ts +2 -1
  195. package/src/stores/plans.ts +2 -9
  196. package/src/stores/workspace-document-io.ts +807 -0
  197. package/src/stores/workspace-file-ops.ts +1 -1
  198. package/src/stores/workspace-knowledge.ts +2 -114
  199. package/src/stores/workspace-lifecycle.ts +459 -0
  200. package/src/stores/workspace-plugins-state.ts +254 -259
  201. package/src/stores/workspace-session.ts +287 -0
  202. package/src/stores/workspace-tabs-layout.ts +6 -44
  203. package/src/stores/workspace-types.ts +50 -0
  204. package/src/stores/workspace.ts +184 -1363
  205. package/src/styles/agent-diff-modals.css +0 -7
  206. package/src/styles/dark-theme.css +3 -3
  207. package/src/styles/inspector.css +0 -59
  208. package/src/styles/layout-themes.css +346 -0
  209. package/src/styles/mail.css +1568 -0
  210. package/src/styles/mobile.css +2 -2
  211. package/src/styles/recent-and-media.css +0 -17
  212. package/src/styles/theme-contract.css +3 -3
  213. package/src/styles/workbench-shell.css +110 -17
  214. package/src/styles/workspace-states.css +9 -33
  215. package/src/styles.css +0 -1
  216. package/src/tabs/components/DesktopTabs.vue +19 -14
  217. package/src/tabs/components/NewTabPicker.vue +10 -4
  218. package/src/tabs/tab-label.ts +0 -1
  219. package/src/windows/AuxiliaryWindows.vue +2 -2
  220. package/src/windows/use-window-event-bridge.ts +152 -0
  221. package/src/workspace/components/TemplateLibrary.vue +1 -1
  222. package/src/workspace/components/WorkspaceGeneralSettings.vue +0 -13
  223. package/src/workspace/components/WorkspaceIconPicker.vue +30 -7
  224. package/src/workspace/components/WorkspacePickerMenu.vue +317 -0
  225. package/src/workspace/workspace-comments.ts +11 -151
  226. package/src/workspace/workspace-welcome.ts +1 -1
  227. package/src/assistant/locales/de-DE.json +0 -126
  228. package/src/assistant/locales/en-US.json +0 -126
  229. package/src/assistant/locales/es-ES.json +0 -126
  230. package/src/assistant/locales/ja-JP.json +0 -126
  231. package/src/assistant/locales/zh-CN.json +0 -126
  232. package/src/assistant/locales/zh-TW.json +0 -126
  233. package/src/assistant/task-prompts.json +0 -39
  234. package/src/documents/components/FormulaMenu.vue +0 -50
  235. package/src/files/components/FileDatabasePage.vue +0 -152
  236. package/src/files/components/FolderHomeIcon.vue +0 -12
  237. package/src/objects/components/ObjectDatabasePage.vue +0 -100
  238. package/src/objects/components/ObjectPanel.vue +0 -554
  239. package/src/plans/components/PersonalPlanDialog.vue +0 -105
  240. package/src/shell/components/WorkspaceViewPage.vue +0 -127
  241. package/src/shell/components/WorkspaceViewTab.vue +0 -24
  242. package/src/styles/object-panel.css +0 -163
  243. package/src/workspace/components/GitInspectionPanel.vue +0 -35
  244. package/src/workspace/components/WorkspaceSyncPanel.vue +0 -50
  245. package/src/workspace/welcome-slogans.ts +0 -11
  246. package/src/workspace/workspace-git.ts +0 -35
  247. package/src/workspace/workspace-sync.ts +0 -46
  248. package/src/workspace/workspace-views.ts +0 -48
@@ -40,7 +40,7 @@
40
40
  .touch-layout .inspector-surface { max-height: inherit; }
41
41
  .touch-layout .modal-backdrop,
42
42
  .touch-layout .modal-backdrop.settings-backdrop,
43
- .touch-layout .object-panel-backdrop {
43
+ .touch-layout .object-detail-backdrop {
44
44
  top: var(--app-viewport-top, 0px);
45
45
  bottom: auto;
46
46
  height: var(--app-viewport-height, 100dvh);
@@ -48,7 +48,7 @@
48
48
  overflow-y: auto;
49
49
  }
50
50
  .touch-layout .modal,
51
- .touch-layout .object-panel { max-height: 100%; overflow-y: auto; }
51
+ .touch-layout .object-detail-panel { max-height: 100%; overflow-y: auto; }
52
52
  .touch-layout .search-modal { max-height: 100%; }
53
53
  .touch-layout .search-results { min-height: 0; overflow-y: auto; }
54
54
  .touch-layout .settings-dialog { height: 100%; max-height: 760px; }
@@ -30,23 +30,6 @@
30
30
  .recent-spaces button:hover {
31
31
  background: var(--hover);
32
32
  }
33
- .recent-spaces-header {
34
- display: flex;
35
- align-items: center;
36
- justify-content: space-between;
37
- padding-right: 4px;
38
- }
39
- .recent-spaces .recent-open-button {
40
- justify-content: center;
41
- flex-shrink: 0;
42
- width: 32px;
43
- height: 32px;
44
- padding: 0;
45
- }
46
- .recent-spaces .recent-open-button:disabled {
47
- opacity: 0.5;
48
- cursor: default;
49
- }
50
33
  .recent-spaces .recent-workspace-details {
51
34
  display: grid;
52
35
  gap: 4px;
@@ -41,10 +41,10 @@
41
41
  .settings-card, .review-card, .assistant-composer, .tano-prose pre, .tano-prose blockquote
42
42
  ) { border-radius: var(--radius-card); }
43
43
  :root[data-shape-theme] :is(
44
- .modal, .settings-dialog, .object-panel, .import-dialog, .plugin-dialog,
44
+ .modal, .settings-dialog, .object-detail-panel, .import-dialog, .plugin-dialog,
45
45
  .command-palette, .document-history-dialog, .selection-todo-dialog,
46
46
  .plan-detail-panel, .plan-connections, .assistant-connection-dialog, .assistant-panel-floating,
47
- .new-tab-picker, .personal-plan-dialog
47
+ .new-tab-picker
48
48
  ) {
49
49
  border-radius: var(--radius-dialog);
50
50
  background-color: var(--paper);
@@ -67,7 +67,7 @@
67
67
  :root[data-shape-theme] :is(.settings-row, .modal, .tano-editor-panel) {
68
68
  padding-block: var(--space-panel);
69
69
  }
70
- :root[data-shape-theme] :is(.modal-backdrop, .object-panel-backdrop, .plugin-dialog-backdrop) {
70
+ :root[data-shape-theme] :is(.modal-backdrop, .object-detail-backdrop, .plugin-dialog-backdrop) {
71
71
  background: var(--backdrop);
72
72
  }
73
73
  :root[data-shape-theme] dialog::backdrop { background: var(--backdrop); }
@@ -46,14 +46,92 @@
46
46
  font-display: swap;
47
47
  }
48
48
 
49
+ /* Interface Latin face. The unicode-range stops at Latin-1 plus a few symbols:
50
+ CJK text, full-width punctuation, curly quotes, em dashes and ellipses all
51
+ fall through to the Chinese face (bundled Noto or the platform face), so
52
+ Chinese sentences keep their native punctuation width. Prose has its own font setting and never uses this
53
+ alias unless a surface opts into --font-ui. */
54
+ @font-face {
55
+ font-family: 'Tano UI Inter';
56
+ src: url('../fonts/Inter-Latin.woff2') format('woff2');
57
+ font-style: normal;
58
+ font-weight: 100 900;
59
+ font-display: swap;
60
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013, U+20AC, U+2122, U+2212;
61
+ }
62
+
63
+ @font-face {
64
+ font-family: 'Tano UI Inter';
65
+ src: url('../fonts/Inter-Latin-Italic.woff2') format('woff2');
66
+ font-style: italic;
67
+ font-weight: 100 900;
68
+ font-display: swap;
69
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013, U+20AC, U+2122, U+2212;
70
+ }
71
+
72
+ /* Bundled Simplified Chinese face for the interface default (界面字体 → 内置):
73
+ Noto Sans CJK SC (思源黑体) Regular/Medium/Bold, GB2312 subsets renamed per
74
+ OFL (docs/THIRD_PARTY_NOTICES.md, scripts/fonts/subset-ui-cjk.py). Every
75
+ weight comes from this one family; the 系统字体 and 自定义 choices replace it
76
+ entirely. Characters outside the subset fall through to the platform stack. */
77
+ @font-face {
78
+ font-family: 'Tano UI Sans SC';
79
+ src: url('../fonts/TanoUISansSC-Regular.woff2') format('woff2');
80
+ font-style: normal;
81
+ font-weight: 100 449;
82
+ font-display: swap;
83
+ unicode-range: U+2010-2027, U+2030-203B, U+3000-303F, U+4E00-9FFF, U+FF00-FFEF;
84
+ /* Measured on Windows: Noto Sans CJK 1.16/0.29 em vs Microsoft YaHei UI
85
+ 1.02/0.25 em. Match YaHei UI so switching faces never changes row heights;
86
+ ideographs (-0.12…0.88 em) stay centred in the 1.27 em box. */
87
+ ascent-override: 102%;
88
+ descent-override: 25%;
89
+ line-gap-override: 0%;
90
+ }
91
+
92
+ @font-face {
93
+ font-family: 'Tano UI Sans SC';
94
+ src: url('../fonts/TanoUISansSC-Medium.woff2') format('woff2');
95
+ font-style: normal;
96
+ /* 500 only. 600 (section headings, group labels) must stay a clear step
97
+ above 500 (row titles), as YaHei's 400/700 pair made it; Noto has no
98
+ SemiBold, so 550+ uses Bold like standard nearest-weight matching. */
99
+ font-weight: 450 549;
100
+ font-display: swap;
101
+ unicode-range: U+2010-2027, U+2030-203B, U+3000-303F, U+4E00-9FFF, U+FF00-FFEF;
102
+ /* Same metrics as the regular face. */
103
+ ascent-override: 102%;
104
+ descent-override: 25%;
105
+ line-gap-override: 0%;
106
+ }
107
+
108
+ @font-face {
109
+ font-family: 'Tano UI Sans SC';
110
+ src: url('../fonts/TanoUISansSC-Bold.woff2') format('woff2');
111
+ font-style: normal;
112
+ font-weight: 550 900;
113
+ font-display: swap;
114
+ unicode-range: U+2010-2027, U+2030-203B, U+3000-303F, U+4E00-9FFF, U+FF00-FFEF;
115
+ /* Same metrics as the regular face. */
116
+ ascent-override: 102%;
117
+ descent-override: 25%;
118
+ line-gap-override: 0%;
119
+ }
120
+
49
121
  :root {
50
122
  color-scheme: light;
51
- /* One family for chrome and prose: Latin uses the platform UI face and CJK
52
- falls back to the platform Chinese face, so mixed lines share a baseline
53
- and weight instead of pairing Inter with Microsoft YaHei. */
123
+ /* Chrome uses bundled Inter for Latin and bundled Noto Sans CJK SC for
124
+ Chinese, every weight from the same family. On Windows, Segoe UI next to
125
+ Microsoft YaHei read lighter than the Chinese glyphs and YaHei lacks
126
+ 500/600; the platform stack still renders sharper at 12–13px on 100%
127
+ scaling because YaHei carries screen hinting. Settings → 外观 → 界面字体
128
+ can switch back to the platform stack (--font-ui-system) or a local font; see
129
+ appearance/interface-font.ts. Traditional Chinese and Japanese locales
130
+ keep platform CJK (see below) so Han glyphs follow their regional forms. */
54
131
  --font-cjk-sans: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Noto Sans SC', 'Source Han Sans SC';
55
- --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text', 'Segoe UI',
132
+ --font-ui-system: -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text', 'Segoe UI',
56
133
  var(--font-cjk-sans), ui-sans-serif, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
134
+ --font-ui: 'Tano UI Inter', 'Tano UI Sans SC', var(--font-ui-system);
57
135
  /* UI glyphs sit slightly below their line-box centre. Align navigation icons
58
136
  with the visible text rather than only the surrounding flex boxes. */
59
137
  --navigation-icon-offset-y: 0.5px;
@@ -122,6 +200,13 @@
122
200
  --diff-remove-bg: #fcefea;
123
201
  --quote-border: #d3d2ce;
124
202
  }
203
+
204
+ /* Bundled Noto is the Simplified Chinese design; other Han locales use their
205
+ platform faces (overridden per locale in print-and-locale.css). */
206
+ :root:is(:lang(zh-TW), :lang(zh-HK), :lang(ja), :lang(ko)) {
207
+ --font-ui: 'Tano UI Inter', var(--font-ui-system);
208
+ }
209
+
125
210
  * {
126
211
  box-sizing: border-box;
127
212
  }
@@ -1033,44 +1118,52 @@ button:hover {
1033
1118
  justify-content: center;
1034
1119
  gap: 5px;
1035
1120
  min-height: 28px;
1036
- padding: 0 9px;
1121
+ padding: 0 10px;
1037
1122
  border: 1px solid var(--line);
1038
- border-radius: 6px;
1123
+ border-radius: 7px;
1039
1124
  color: var(--text-secondary);
1040
1125
  font-size: 12px;
1041
1126
  white-space: nowrap;
1042
1127
  }
1043
1128
  .calendar-topbar-today:hover,
1044
1129
  .calendar-topbar-events:hover,
1045
- .calendar-topbar-mode:hover { background: var(--hover); color: var(--text); }
1130
+ .calendar-topbar-mode:hover,
1131
+ .calendar-topbar-mode[aria-expanded='true'] {
1132
+ border-color: var(--control-border);
1133
+ background: var(--hover);
1134
+ color: var(--text);
1135
+ }
1136
+ .calendar-topbar-controls > .icon-button { width: 28px; height: 28px; border-radius: 7px; }
1046
1137
  .calendar-view-picker { position: relative; }
1047
- .calendar-topbar-mode { min-width: 58px; }
1138
+ .calendar-topbar-mode { min-width: 62px; }
1139
+ .calendar-topbar-mode > svg { color: var(--muted); }
1140
+ .calendar-topbar-mode[aria-expanded='true'] > svg { rotate: 180deg; }
1048
1141
  .calendar-view-menu {
1049
1142
  position: absolute;
1050
1143
  z-index: 20;
1051
1144
  top: calc(100% + 6px);
1052
1145
  right: 0;
1053
- width: 154px;
1054
- padding: 5px;
1146
+ width: 160px;
1147
+ padding: 4px;
1055
1148
  border: 1px solid var(--line);
1056
- border-radius: 8px;
1149
+ border-radius: 10px;
1057
1150
  background: var(--paper);
1058
- box-shadow: 0 8px 24px #0002;
1151
+ box-shadow: var(--overlay-shadow, 0 8px 24px #0002);
1059
1152
  }
1060
1153
  .calendar-view-menu button {
1061
1154
  display: flex;
1062
1155
  align-items: center;
1063
1156
  justify-content: space-between;
1064
1157
  width: 100%;
1065
- min-height: 34px;
1066
- padding: 0 9px;
1067
- border-radius: 5px;
1068
- color: var(--text);
1158
+ min-height: 32px;
1159
+ padding: 0 10px;
1160
+ border-radius: 6px;
1161
+ color: var(--text-secondary);
1069
1162
  font-size: 12px;
1070
1163
  text-align: left;
1071
1164
  }
1072
1165
  .calendar-view-menu button:hover,
1073
- .calendar-view-menu button:focus-visible { background: var(--hover); }
1166
+ .calendar-view-menu button:focus-visible { background: var(--hover); color: var(--text); }
1074
1167
  .calendar-view-menu button[aria-checked='true'] { color: var(--text); font-weight: 500; }
1075
1168
  @media (max-width: 900px) {
1076
1169
  .calendar-topbar-period { display: none; }
@@ -56,7 +56,15 @@
56
56
  padding: 20px 16px 40px;
57
57
  }
58
58
  }
59
- .workspace-no-tabs.workspace-no-tabs-loading { padding: 0; }
59
+ .workspace-no-tabs.workspace-no-tabs-loading,
60
+ .workspace-no-tabs:has(.plugin-overlay-tab-host) { padding: 0; }
61
+ .plugin-overlay-tab-host {
62
+ flex: 1;
63
+ min-width: 0;
64
+ min-height: 0;
65
+ display: flex;
66
+ flex-direction: column;
67
+ }
60
68
  .workspace-no-tabs {
61
69
  flex: 1;
62
70
  min-height: 0;
@@ -157,17 +165,6 @@
157
165
  padding: 30px;
158
166
  background: var(--paper);
159
167
  }
160
- .welcome-mark img {
161
- height: 64px;
162
- width: 64px;
163
- filter: drop-shadow(0 12px 17px #0f0f0f20);
164
- }
165
- .eyebrow {
166
- font-size: 12px;
167
- letter-spacing: 3px;
168
- color: var(--muted);
169
- margin: 29px 0 11px;
170
- }
171
168
  .welcome h1 {
172
169
  font-family: var(--font-ui);
173
170
  font-size: 32px;
@@ -176,33 +173,12 @@
176
173
  letter-spacing: 2px;
177
174
  margin: 12px 0;
178
175
  }
179
- .welcome h1 .welcome-latin {
180
- font-size: 1.1em;
181
- line-height: 1;
182
- letter-spacing: 0.02em;
183
- }
184
176
  .welcome p {
185
177
  color: var(--text-secondary);
186
178
  font-size: 13px;
187
179
  line-height: 2.3;
188
180
  margin: 7px 0 29px;
189
181
  }
190
- .welcome-actions {
191
- display: flex;
192
- flex-wrap: wrap;
193
- justify-content: center;
194
- gap: 10px;
195
- width: max-content;
196
- max-width: 100%;
197
- }
198
- .welcome-actions > button {
199
- flex: 0 0 auto;
200
- }
201
- .welcome-actions .secondary-button {
202
- display: inline-flex;
203
- align-items: center;
204
- gap: 6px;
205
- }
206
182
  .primary-button {
207
183
  display: inline-flex;
208
184
  align-items: center;
package/src/styles.css CHANGED
@@ -16,5 +16,4 @@
16
16
  @import './styles/responsive.css';
17
17
  @import './styles/recent-and-media.css';
18
18
  @import './styles/agent-diff-modals.css';
19
- @import './styles/object-panel.css';
20
19
  @import './styles/print-and-locale.css';
@@ -7,7 +7,6 @@ import {
7
7
  Bot,
8
8
  Bug,
9
9
  CalendarDays,
10
- Database,
11
10
  ExternalLink,
12
11
  FilePlus2,
13
12
  GitFork,
@@ -29,7 +28,7 @@ import { useWorkspaceStore, type DocumentTab } from '../../stores/workspace';
29
28
  import { appearanceText } from '../../documents/document-appearance';
30
29
  import { useWindowContext } from '../../windows/context';
31
30
  import type { DetachedDropPoint } from '../../windows/position';
32
- import { workbenchContextKey } from '../../shell/workbench-context';
31
+ import { workbenchPrefsKey } from '../../shell/workbench-context';
33
32
  import { useDesktopTabLayout } from '../../composables/use-desktop-tab-layout';
34
33
  import { useDesktopTabDrag } from '../../composables/use-desktop-tab-drag';
35
34
  import { useDesktopTabMenu } from '../../composables/use-desktop-tab-menu';
@@ -39,14 +38,20 @@ import ButtonVisibilityGroup from '../../shell/components/ButtonVisibilityGroup.
39
38
  import WorkspaceIcon from '../../workspace/components/WorkspaceIcon.vue';
40
39
  import ResourceIcon from '../../files/components/ResourceIcon.vue';
41
40
 
42
- const props = defineProps<{
43
- loading?: boolean;
44
- detachable?: boolean;
45
- paneId?: string;
46
- showNavigation?: boolean;
47
- fileDrag?: { workspaceId: string; ids: readonly string[] };
48
- assistantTab?: { id: string; title: string };
49
- }>();
41
+ const props = withDefaults(
42
+ defineProps<{
43
+ loading?: boolean;
44
+ detachable?: boolean;
45
+ paneId?: string;
46
+ showNavigation?: boolean;
47
+ fileDrag?: { workspaceId: string; ids: readonly string[] };
48
+ assistantTab?: { id: string; title: string };
49
+ developerMode?: boolean;
50
+ }>(),
51
+ {
52
+ developerMode: undefined,
53
+ },
54
+ );
50
55
 
51
56
  const emit = defineEmits<{
52
57
  'new-tab': [];
@@ -56,8 +61,10 @@ const emit = defineEmits<{
56
61
  }>();
57
62
 
58
63
  const store = useWorkspaceStore();
59
- const workbench = inject(workbenchContextKey, null);
60
- const canOpenDevtools = computed(() => !!nativeOs && !mobile && workbench?.developerMode === true);
64
+ const workbenchPrefs = inject(workbenchPrefsKey, null);
65
+ const canOpenDevtools = computed(
66
+ () => !!nativeOs && !mobile && (props.developerMode ?? workbenchPrefs?.developerMode === true),
67
+ );
61
68
  const windowContext = useWindowContext();
62
69
 
63
70
  const navigationItems = [
@@ -346,7 +353,6 @@ async function onTabKeydown(event: KeyboardEvent) {
346
353
  <span v-else-if="!doc.blank && documentIcons[doc.id]" class="desktop-tab-icon desktop-tab-document-icon" aria-hidden="true">
347
354
  <WorkspaceIcon :icon="documentIcons[doc.id]" :size="15" />
348
355
  </span>
349
- <Database v-else-if="doc.workspaceView?.view.database" class="desktop-tab-icon" :size="15" :stroke-width="1.6" />
350
356
  <FilePlus2 v-else-if="doc.blank" class="desktop-tab-icon" :size="15" :stroke-width="1.6" />
351
357
  <ResourceIcon v-else :path="doc.path" class="desktop-tab-icon" :size="15" />
352
358
  <span class="desktop-tab-label">{{ tabLabel(doc) }}</span>
@@ -487,7 +493,6 @@ async function onTabKeydown(event: KeyboardEvent) {
487
493
  <span v-else-if="documentIcons[dragPreview.id]" class="desktop-tab-icon desktop-tab-document-icon">
488
494
  <WorkspaceIcon :icon="documentIcons[dragPreview.id]" :size="15" />
489
495
  </span>
490
- <Database v-else-if="paneTabs.find(tab => tab.id === dragPreview?.id)?.workspaceView?.view.database" class="desktop-tab-icon" :size="15" :stroke-width="1.6" />
491
496
  <ResourceIcon v-else :path="dragPreview.path" :kind="paneTabs.find(tab => tab.id === dragPreview?.id)?.directory ? 'directory' : 'file'" class="desktop-tab-icon" :size="15" />
492
497
  <span class="desktop-tab-label">{{ paneTabs.find(tab => tab.id === dragPreview?.id) ? tabLabel(paneTabs.find(tab => tab.id === dragPreview?.id)!) : title(dragPreview.path) }}</span>
493
498
  <span v-if="dragPreview.dirty" class="desktop-tab-dirty" />
@@ -21,7 +21,7 @@ import type { FileEntry } from '@tano/protocol';
21
21
  import { useWorkspaceStore } from '../../stores/workspace';
22
22
  import { tableFileId } from '../../data-tables/data-tables';
23
23
 
24
- const emit = defineEmits<{ close: []; 'new-document': [] }>();
24
+ const emit = defineEmits<{ close: []; 'new-document': []; 'new-table': [] }>();
25
25
  const store = useWorkspaceStore();
26
26
  const query = ref('');
27
27
  const input = ref<HTMLInputElement>();
@@ -53,7 +53,12 @@ const matches = computed(() => {
53
53
  });
54
54
  type Choice = { id: string; label: string; group: string; file?: FileEntry };
55
55
  const choices = computed<Choice[]>(() => [
56
- ...(!store.workspace?.readOnly ? [{ id: 'create', get label() { return t('新建文档'); }, group: '' }] : []),
56
+ ...(!store.workspace?.readOnly
57
+ ? [
58
+ { id: 'create', get label() { return t('新建文档'); }, group: '' },
59
+ { id: 'create-table', get label() { return t('新建数据表'); }, group: '' },
60
+ ]
61
+ : []),
57
62
  ...matches.value.slice(0, 60).map((file) => ({
58
63
  id: `file-${file.id}`,
59
64
  label: title(file.path),
@@ -82,7 +87,8 @@ onBeforeUnmount(() => {
82
87
  async function choose(choice: Choice) {
83
88
  if (opening.value || store.busy) return;
84
89
  if (!choice.file) {
85
- emit('new-document');
90
+ if (choice.id === 'create-table') emit('new-table');
91
+ else emit('new-document');
86
92
  return;
87
93
  }
88
94
  opening.value = true;
@@ -189,7 +195,7 @@ async function onSearchKeydown(event: KeyboardEvent) {
189
195
  >
190
196
  <component
191
197
  :is="
192
- choice.file && isDataTableFilePath(choice.file.path)
198
+ choice.id === 'create-table' || (choice.file && isDataTableFilePath(choice.file.path))
193
199
  ? Table2
194
200
  : choice.file
195
201
  ? FileText
@@ -7,7 +7,6 @@ export function documentTabLabel(tab: DocumentTab): string {
7
7
  if (tab.pluginDetail) return tab.pluginDetail.name;
8
8
  if (tab.directory) return t(tab.directory.name);
9
9
  if (tab.dataTable) return tab.dataTable.name;
10
- if (tab.workspaceView) return tab.workspaceView.view.name;
11
10
  if (tab.graph) return t('关系图谱');
12
11
  if (tab.plugins) return t('插件');
13
12
  if (tab.calendar) return t('计划');
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
2
  import { computed, inject, watch } from 'vue';
3
- import { workbenchContextKey } from '../shell/workbench-context';
3
+ import { workbenchShellKey } from '../shell/workbench-context';
4
4
  import { layoutPanes } from '../shell/pane-layout';
5
5
  import AppTooltip from '../shell/components/AppTooltip.vue';
6
6
  import WorkbenchSettings from '../settings/components/WorkbenchSettings.vue';
@@ -8,7 +8,7 @@ import DesktopWindow from '../shell/components/DesktopWindow.vue';
8
8
  import WorkbenchPanes from '../shell/components/WorkbenchPanes.vue';
9
9
  import WindowScope from './WindowScope.vue';
10
10
 
11
- const workbench = inject(workbenchContextKey);
11
+ const workbench = inject(workbenchShellKey);
12
12
  if (!workbench) throw new Error('Workbench context is required');
13
13
  const entries = computed(() => [...workbench.auxiliaryWindows.entries.values()]);
14
14
  watch(() => entries.value.map(entry => {
@@ -0,0 +1,152 @@
1
+ import { onBeforeUnmount, onMounted, watch, type Ref } from 'vue';
2
+ import { installInteractionMotion } from '@tano/editor/motion';
3
+ import type { useWorkspaceStore } from '../stores/workspace';
4
+ import type { WindowContext } from './context';
5
+ import type { useAuxiliaryWindows } from './manager';
6
+
7
+ export interface WindowEventBridgeDeps {
8
+ store: ReturnType<typeof useWorkspaceStore>;
9
+ auxiliaryWindows: ReturnType<typeof useAuxiliaryWindows>;
10
+ mainWindow: WindowContext;
11
+ activeWindow: Ref<WindowContext>;
12
+ isAuxiliaryWindow: boolean;
13
+ routeConfiguredEditorShortcut: (event: KeyboardEvent) => void;
14
+ handleWorkbenchShortcut: (event: KeyboardEvent) => void;
15
+ handlePageSearchShortcut: (event: KeyboardEvent) => void;
16
+ keydown: (event: KeyboardEvent) => void;
17
+ beforeUnload: (event: BeforeUnloadEvent) => void;
18
+ outsideClick: (event: MouseEvent) => void;
19
+ outsideContextMenu: (event: MouseEvent) => void;
20
+ dismissFileContextMenu: () => void;
21
+ closeDirectoryContextMenu: () => void;
22
+ dismissPageContextMenu: () => void;
23
+ closeOutlineContextMenu: () => void;
24
+ constrainSidebarToViewport: () => void;
25
+ mobileVisibility: () => Promise<void>;
26
+ mobileBack: (event: Event) => void;
27
+ }
28
+
29
+ export function useWindowEventBridge(deps: WindowEventBridgeDeps) {
30
+ const {
31
+ store,
32
+ auxiliaryWindows,
33
+ mainWindow,
34
+ activeWindow,
35
+ isAuxiliaryWindow,
36
+ routeConfiguredEditorShortcut,
37
+ handleWorkbenchShortcut,
38
+ handlePageSearchShortcut,
39
+ keydown,
40
+ beforeUnload,
41
+ outsideClick,
42
+ outsideContextMenu,
43
+ dismissFileContextMenu,
44
+ closeDirectoryContextMenu,
45
+ dismissPageContextMenu,
46
+ closeOutlineContextMenu,
47
+ constrainSidebarToViewport,
48
+ mobileVisibility,
49
+ mobileBack,
50
+ } = deps;
51
+
52
+ function bindAuxiliaryEvents(context: WindowContext) {
53
+ const focus = () => {
54
+ activeWindow.value = context;
55
+ const paneId = store.windowLayouts[context.id]?.activePaneId;
56
+ if (paneId) store.focusPane(paneId);
57
+ };
58
+ const handlers: [string, EventListener, boolean][] = [
59
+ ['focus', focus, true],
60
+ ['pointerdown', focus, true],
61
+ ['keydown', routeConfiguredEditorShortcut as EventListener, true],
62
+ ['keydown', handleWorkbenchShortcut as EventListener, true],
63
+ ['keydown', handlePageSearchShortcut as EventListener, true],
64
+ ['keydown', keydown as EventListener, false],
65
+ ['click', outsideClick as EventListener, false],
66
+ ['contextmenu', outsideContextMenu as EventListener, false],
67
+ ['scroll', dismissPageContextMenu, true],
68
+ ['scroll', closeOutlineContextMenu, true],
69
+ ['resize', dismissPageContextMenu, false],
70
+ ['resize', closeOutlineContextMenu, false],
71
+ ];
72
+ for (const [name, handler, capture] of handlers)
73
+ context.window.addEventListener(name, handler, capture);
74
+ const stopMotion = installInteractionMotion(context.document);
75
+ return () => {
76
+ for (const [name, handler, capture] of handlers)
77
+ context.window.removeEventListener(name, handler, capture);
78
+ stopMotion();
79
+ if (activeWindow.value === context) activeWindow.value = mainWindow;
80
+ };
81
+ }
82
+
83
+ const auxiliaryEventDisposers = new Map<string, () => void>();
84
+ watch(
85
+ () => [...auxiliaryWindows.entries.values()],
86
+ (entries) => {
87
+ for (const [id, dispose] of auxiliaryEventDisposers) {
88
+ if (!entries.some((entry) => entry.id === id)) {
89
+ dispose();
90
+ auxiliaryEventDisposers.delete(id);
91
+ }
92
+ }
93
+ for (const entry of entries) {
94
+ if (!auxiliaryEventDisposers.has(entry.id))
95
+ auxiliaryEventDisposers.set(entry.id, bindAuxiliaryEvents(entry.context));
96
+ }
97
+ },
98
+ { flush: 'sync' },
99
+ );
100
+
101
+ const focusMain = () => {
102
+ activeWindow.value = mainWindow;
103
+ const paneId = store.windowLayouts.main.activePaneId;
104
+ if (paneId) store.focusPane(paneId);
105
+ };
106
+ window.addEventListener('focus', focusMain);
107
+ window.addEventListener('pointerdown', focusMain, true);
108
+
109
+ onMounted(() => {
110
+ window.addEventListener('keydown', handleWorkbenchShortcut, true);
111
+ window.addEventListener('keydown', keydown);
112
+ window.addEventListener('keydown', handlePageSearchShortcut, true);
113
+ window.addEventListener('beforeunload', beforeUnload);
114
+ window.addEventListener('click', outsideClick);
115
+ window.addEventListener('contextmenu', outsideContextMenu);
116
+ window.addEventListener('scroll', dismissFileContextMenu, true);
117
+ window.addEventListener('scroll', closeDirectoryContextMenu, true);
118
+ window.addEventListener('scroll', dismissPageContextMenu, true);
119
+ window.addEventListener('scroll', closeOutlineContextMenu, true);
120
+ window.addEventListener('resize', dismissFileContextMenu);
121
+ window.addEventListener('resize', closeDirectoryContextMenu);
122
+ window.addEventListener('resize', dismissPageContextMenu);
123
+ window.addEventListener('resize', closeOutlineContextMenu);
124
+ if (!isAuxiliaryWindow) window.addEventListener('resize', constrainSidebarToViewport);
125
+ document.addEventListener('visibilitychange', mobileVisibility);
126
+ window.addEventListener('tano:back', mobileBack);
127
+ });
128
+
129
+ onBeforeUnmount(() => {
130
+ window.removeEventListener('focus', focusMain);
131
+ window.removeEventListener('pointerdown', focusMain, true);
132
+ for (const dispose of auxiliaryEventDisposers.values()) dispose();
133
+ auxiliaryEventDisposers.clear();
134
+ window.removeEventListener('keydown', handleWorkbenchShortcut, true);
135
+ window.removeEventListener('keydown', keydown);
136
+ window.removeEventListener('keydown', handlePageSearchShortcut, true);
137
+ window.removeEventListener('beforeunload', beforeUnload);
138
+ window.removeEventListener('click', outsideClick);
139
+ window.removeEventListener('contextmenu', outsideContextMenu);
140
+ window.removeEventListener('scroll', dismissFileContextMenu, true);
141
+ window.removeEventListener('scroll', closeDirectoryContextMenu, true);
142
+ window.removeEventListener('scroll', dismissPageContextMenu, true);
143
+ window.removeEventListener('scroll', closeOutlineContextMenu, true);
144
+ window.removeEventListener('resize', dismissFileContextMenu);
145
+ window.removeEventListener('resize', closeDirectoryContextMenu);
146
+ window.removeEventListener('resize', dismissPageContextMenu);
147
+ window.removeEventListener('resize', closeOutlineContextMenu);
148
+ window.removeEventListener('resize', constrainSidebarToViewport);
149
+ document.removeEventListener('visibilitychange', mobileVisibility);
150
+ window.removeEventListener('tano:back', mobileBack);
151
+ });
152
+ }
@@ -171,7 +171,7 @@ onMounted(async () => {
171
171
  <div v-else class="template-custom-empty"><Files :size="26" /><div><strong>{{ t('把常用的内容,留作下一次的起点') }}</strong><p>{{ t('将文档保存为模板,在这个工作区重复使用。') }}</p></div><button class="template-button" :disabled="disabled" @click="edit(true)"><Plus :size="15" />{{ t('创建模板') }}</button></div>
172
172
  </section>
173
173
  <div v-if="!visibleBuiltins.length && !visibleCustom.length && (query.trim() || !['all', 'custom'].includes(category))" class="template-no-results" role="status"><Search :size="28" /><h2>{{ t('没有找到匹配的模板') }}</h2><p>{{ t('试试其他关键词,或查看全部模板。') }}</p><button class="template-button" @click="query = ''; category = 'all'">{{ t('查看全部模板') }}</button></div>
174
- <p class="template-library-note">{{ t('内置模板与当前工作区模板 · 暂不支持在线模板市场') }}</p>
174
+ <p class="template-library-note">{{ t('内置模板与当前工作区模板') }}</p>
175
175
  </template>
176
176
 
177
177
  <template v-else-if="mode === 'edit'">
@@ -175,19 +175,6 @@ const sidebarOptions = [
175
175
  </div>
176
176
  <p v-if="exportError" class="settings-notice" role="alert">{{ exportError }}</p>
177
177
  </section>
178
- <section class="settings-section" :aria-label="t('浏览统计')">
179
- <h3>{{ t('浏览统计') }}</h3>
180
- <div class="settings-card">
181
- <div class="settings-row is-disabled" data-settings-key="workspace-page-views"><div><strong>{{ t('保存并显示页面浏览统计') }} <span class="settings-scope">{{ t('尚未开放') }}</span></strong><p>{{ t('页面浏览量统计尚未实现,当前不会收集浏览数据。') }}</p></div><button type="button" class="settings-switch" role="switch" :aria-label="t('保存并显示页面浏览统计')" aria-checked="false" disabled><span /></button></div>
182
- </div>
183
- </section>
184
- <section class="settings-section" :aria-label="t('人物')">
185
- <h3>{{ t('人物') }}</h3>
186
- <div class="settings-card">
187
- <div class="settings-row" data-settings-key="workspace-people"><div><strong>{{ t('人物目录') }}</strong><p>{{ t('在工作区对象列表中显示人物;关闭后仍可通过已有引用访问人物。') }}</p></div><button type="button" class="settings-switch" :class="{ on: settings.showPeopleDirectory }" role="switch" :aria-label="t('人物目录')" :aria-checked="settings.showPeopleDirectory" :disabled="disabled" @click="change({ key: 'showPeopleDirectory', value: !settings.showPeopleDirectory, previous: settings.showPeopleDirectory })"><span /></button></div>
188
- <div v-for="label in [t('在人物资料中显示近期活动'), t('人物悬浮卡片')]" :key="label" class="settings-row is-disabled"><div><strong>{{ t(label) }} <span class="settings-scope">{{ t('尚未开放') }}</span></strong><p>{{ label === t('人物悬浮卡片') ? t('悬停时展示人物资料的卡片尚未实现。') : t('人物的编辑与评论活动展示尚未实现。') }}</p></div><button type="button" class="settings-switch" role="switch" :aria-label="t(label)" aria-checked="false" disabled><span /></button></div>
189
- </div>
190
- </section>
191
178
  <section v-if="workspace?.id" class="settings-section" :aria-label="t('工作区 ID')">
192
179
  <h3>{{ t('工作区 ID') }}</h3>
193
180
  <div class="settings-card">