@tano.page/workbench 0.14.0 → 0.15.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.
- package/package.json +21 -8
- package/src/App.vue +76 -17
- package/src/appearance/appearance.ts +14 -4
- package/src/appearance/components/ThemePresetPreview.vue +52 -8
- package/src/appearance/interface-font.ts +99 -0
- package/src/appearance/theme.ts +26 -10
- package/src/appearance/use-interface-font.ts +30 -0
- package/src/assets/mail-provider-icons/NOTICE.txt +27 -0
- package/src/assets/mail-provider-icons/aliyun-mail.svg +3 -0
- package/src/assets/mail-provider-icons/gmail.svg +1 -0
- package/src/assets/mail-provider-icons/icloud.svg +12 -0
- package/src/assets/mail-provider-icons/netease-126.svg +5 -0
- package/src/assets/mail-provider-icons/netease-163.svg +5 -0
- package/src/assets/mail-provider-icons/qq.svg +9 -0
- package/src/assets/mail-provider-icons/tencent-exmail.svg +4 -0
- package/src/assistant/components/AssistantChangeList.vue +98 -21
- package/src/assistant/components/AssistantPanel.vue +424 -7
- package/src/assistant/components/PluginToolProposalCard.vue +235 -0
- package/src/assistant/engine.ts +56 -3
- package/src/assistant/files.ts +5 -13
- package/src/assistant/inbox.ts +1 -148
- package/src/assistant/locales/de-DE.json +4 -1
- package/src/assistant/locales/en-US.json +4 -1
- package/src/assistant/locales/es-ES.json +4 -1
- package/src/assistant/locales/ja-JP.json +4 -1
- package/src/assistant/locales/zh-CN.json +4 -1
- package/src/assistant/locales/zh-TW.json +4 -1
- package/src/assistant/mention-autocomplete.ts +69 -0
- package/src/assistant/prompts.ts +7 -0
- package/src/assistant/results.ts +20 -86
- package/src/assistant/store.ts +319 -12
- package/src/assistant/structures.ts +7 -5
- package/src/assistant/tasks.ts +3 -5
- package/src/assistant/workspace-bridge.ts +1 -1
- package/src/composables/use-document-actions.ts +38 -20
- package/src/composables/use-file-tree-controller.ts +7 -12
- package/src/composables/use-workbench-history.ts +2 -4
- package/src/composables/use-workbench-modals.ts +6 -1
- package/src/composables/use-workbench-outline.ts +0 -5
- package/src/composables/use-workbench-shortcuts.ts +26 -22
- package/src/data-tables/data-tables.ts +1 -2
- package/src/documents/components/DocumentHistoryPanel.vue +3 -1
- package/src/features.ts +1 -0
- package/src/fonts/Inter-Latin-Italic.woff2 +0 -0
- package/src/fonts/Inter-Latin.woff2 +0 -0
- package/src/fonts/TanoUISansSC-Bold.woff2 +0 -0
- package/src/fonts/TanoUISansSC-Medium.woff2 +0 -0
- package/src/fonts/TanoUISansSC-Regular.woff2 +0 -0
- package/src/help/help-milestones.ts +3 -5
- package/src/i18n/locales/de-DE.json +349 -3
- package/src/i18n/locales/en-US.json +349 -2
- package/src/i18n/locales/es-ES.json +349 -3
- package/src/i18n/locales/ja-JP.json +348 -2
- package/src/i18n/locales/zh-TW.json +348 -2
- package/src/mail/components/MailAccountDialog.vue +449 -0
- package/src/mail/components/MailComposerDialog.vue +325 -0
- package/src/mail/components/MailProviderIcon.vue +30 -0
- package/src/mail/components/MailWorkspaceView.vue +820 -0
- package/src/mail/components/SidebarMail.vue +133 -0
- package/src/mail/mail-avatar.ts +17 -0
- package/src/mail/mail-bridge.ts +68 -0
- package/src/mail/mail-calendar.ts +208 -0
- package/src/mail/mail-markdown.ts +195 -0
- package/src/mail/types.ts +226 -0
- package/src/objects/components/ObjectDetailModal.vue +1001 -0
- package/src/objects/workspace-objects.ts +1 -1
- package/src/plan-sync/types.ts +6 -3
- package/src/plans/calendar-interaction.ts +194 -0
- package/src/plans/calendar.ts +63 -7
- package/src/plans/components/CalendarDayPopover.vue +172 -39
- package/src/plans/components/CalendarView.vue +1736 -276
- package/src/plans/components/PlanArchiveDialog.vue +295 -0
- package/src/plans/components/PlanDateField.vue +6 -4
- package/src/plans/components/PlanDetailPanel.vue +227 -32
- package/src/plans/components/PlanEventList.vue +16 -4
- package/src/plans/components/SidebarPlan.vue +22 -15
- package/src/plans/components/TaskRepeatControls.vue +169 -30
- package/src/plans/local-reminders.ts +149 -0
- package/src/plans/personal-plans.ts +10 -1
- package/src/plans/plan-date.ts +8 -1
- package/src/plans/plan-migration.ts +95 -0
- package/src/plans/recurrence.ts +95 -0
- package/src/plans/task-repeat.ts +8 -8
- package/src/plans/timeline-layout.ts +92 -0
- package/src/plugins/assistant-bridge.ts +520 -0
- package/src/plugins/attachment-reader.ts +3 -1
- package/src/plugins/cache-storage.ts +42 -2
- package/src/plugins/components/PluginAutomations.vue +3 -3
- package/src/plugins/components/PluginCatalogBrowser.vue +17 -8
- package/src/plugins/components/PluginChangeSummary.vue +16 -3
- package/src/plugins/components/PluginConnections.vue +1 -1
- package/src/plugins/components/PluginCustomView.vue +2 -2
- package/src/plugins/components/PluginDetailPage.vue +129 -54
- package/src/plugins/components/PluginDocumentSlot.vue +63 -0
- package/src/plugins/components/PluginExplorer.vue +15 -21
- package/src/plugins/components/PluginImportDialog.vue +410 -0
- package/src/plugins/components/PluginInstaller.vue +39 -145
- package/src/plugins/components/PluginListItem.vue +3 -0
- package/src/plugins/components/PluginMaintenance.vue +21 -6
- package/src/plugins/components/PluginRuntimePanel.vue +3 -3
- package/src/plugins/components/PluginSettingsForm.vue +111 -0
- package/src/plugins/components/PluginStatusBar.vue +161 -0
- package/src/plugins/components/PluginSurface.vue +18 -6
- package/src/plugins/components/PluginUiDialog.vue +452 -0
- package/src/plugins/excalidraw/bundle.tano-plugin.json +1 -1
- package/src/plugins/excalidraw/manifest.json +12 -1
- package/src/plugins/host.ts +662 -43
- package/src/plugins/native.ts +2 -10
- package/src/plugins/overlay-mapping.ts +125 -0
- package/src/plugins/packages.ts +73 -1
- package/src/plugins/plugin-permissions.ts +57 -0
- package/src/plugins/plugin-sdk.ts +174 -8
- package/src/plugins/policy.ts +53 -3
- package/src/plugins/presentation-preview/bundle.tano-plugin.json +1 -1
- package/src/plugins/presentation-preview/manifest.json +2 -1
- package/src/plugins/queries.ts +3 -1
- package/src/plugins/sandbox.ts +15 -1
- package/src/plugins/use-plugin-actions.ts +67 -20
- package/src/plugins/user-plugins.ts +254 -0
- package/src/plugins/word-preview/bundle.tano-plugin.json +1 -1
- package/src/plugins/word-preview/manifest.json +13 -1
- package/src/plugins/workbench.ts +175 -2
- package/src/plugins/worker.js +105 -8
- package/src/plugins/workspace-plugin-runtime.ts +23 -7
- package/src/plugins/workspace-plugins.ts +212 -21
- package/src/runtime.ts +101 -3
- package/src/settings/components/SettingsAppearancePage.vue +46 -0
- package/src/settings/components/SettingsDocumentsPage.vue +0 -1
- package/src/settings/components/settings-search.ts +2 -3
- package/src/shell/components/SidebarNavigation.vue +22 -2
- package/src/shell/components/WorkbenchContextMenus.vue +21 -8
- package/src/shell/components/WorkbenchModals.vue +27 -46
- package/src/shell/components/WorkbenchPanes.vue +267 -84
- package/src/shell/components/WorkspaceBreadcrumb.vue +6 -14
- package/src/shell/components/WorkspaceViewSwitcher.vue +12 -7
- package/src/shell/use-workbench.ts +116 -145
- package/src/shell/workbench-async-components.ts +14 -5
- package/src/stores/mail.ts +414 -0
- package/src/stores/plan-sync.ts +2 -1
- package/src/stores/plans.ts +2 -9
- package/src/stores/workspace-knowledge.ts +1 -113
- package/src/stores/workspace-plugins-state.ts +537 -14
- package/src/stores/workspace-tabs-layout.ts +5 -43
- package/src/stores/workspace.ts +69 -66
- package/src/styles/agent-diff-modals.css +0 -7
- package/src/styles/dark-theme.css +3 -3
- package/src/styles/inspector.css +0 -59
- package/src/styles/layout-themes.css +346 -0
- package/src/styles/mail.css +1568 -0
- package/src/styles/mobile.css +2 -2
- package/src/styles/recent-and-media.css +0 -17
- package/src/styles/theme-contract.css +3 -3
- package/src/styles/workbench-shell.css +110 -17
- package/src/styles/workspace-states.css +9 -33
- package/src/styles.css +1 -1
- package/src/tabs/components/DesktopTabs.vue +0 -3
- package/src/tabs/components/NewTabPicker.vue +10 -4
- package/src/tabs/tab-label.ts +0 -1
- package/src/workspace/components/WorkspaceGeneralSettings.vue +0 -13
- package/src/workspace/components/WorkspaceIconPicker.vue +28 -6
- package/src/workspace/workspace-comments.ts +11 -151
- package/src/workspace/workspace-welcome.ts +1 -1
- package/src/documents/components/FormulaMenu.vue +0 -50
- package/src/files/components/FileDatabasePage.vue +0 -152
- package/src/files/components/FolderHomeIcon.vue +0 -12
- package/src/objects/components/ObjectDatabasePage.vue +0 -100
- package/src/objects/components/ObjectPanel.vue +0 -554
- package/src/plans/components/PersonalPlanDialog.vue +0 -105
- package/src/shell/components/WorkspaceViewPage.vue +0 -127
- package/src/shell/components/WorkspaceViewTab.vue +0 -24
- package/src/styles/object-panel.css +0 -163
- package/src/workspace/components/GitInspectionPanel.vue +0 -35
- package/src/workspace/components/WorkspaceSyncPanel.vue +0 -50
- package/src/workspace/welcome-slogans.ts +0 -11
- package/src/workspace/workspace-git.ts +0 -35
- package/src/workspace/workspace-sync.ts +0 -46
- package/src/workspace/workspace-views.ts +0 -48
|
@@ -3,7 +3,6 @@ import { inject, toRefs } from 'vue';
|
|
|
3
3
|
import {
|
|
4
4
|
AppWindow,
|
|
5
5
|
ArrowDownToLine,
|
|
6
|
-
Blocks,
|
|
7
6
|
Check,
|
|
8
7
|
CopyPlus,
|
|
9
8
|
Eye,
|
|
@@ -174,6 +173,13 @@ const {
|
|
|
174
173
|
>
|
|
175
174
|
<FolderPlus :size="15" />{{ t('在此新建文件夹') }}
|
|
176
175
|
</button>
|
|
176
|
+
<button
|
|
177
|
+
role="menuitem"
|
|
178
|
+
:disabled="fileMutationDisabled(fileContextMenu.file)"
|
|
179
|
+
@click="fileContextAction('table')"
|
|
180
|
+
>
|
|
181
|
+
<Table2 :size="15" />{{ t('在此新建数据表') }}
|
|
182
|
+
</button>
|
|
177
183
|
<button
|
|
178
184
|
role="menuitem"
|
|
179
185
|
:disabled="
|
|
@@ -219,6 +225,13 @@ const {
|
|
|
219
225
|
>
|
|
220
226
|
<PanelsTopLeft :size="15" />{{ t('在新标签页中打开') }}
|
|
221
227
|
</button>
|
|
228
|
+
<button
|
|
229
|
+
v-if="store.hasMarkdownFileHandler(fileContextMenu.file)"
|
|
230
|
+
role="menuitem"
|
|
231
|
+
@click="fileContextAction('open-markdown-source')"
|
|
232
|
+
>
|
|
233
|
+
<FileText :size="15" />{{ t('用 Markdown 源码打开') }}
|
|
234
|
+
</button>
|
|
222
235
|
<div
|
|
223
236
|
v-if="
|
|
224
237
|
isMarkdown(fileContextMenu.file.path) ||
|
|
@@ -358,13 +371,6 @@ const {
|
|
|
358
371
|
>
|
|
359
372
|
<FileSliders :size="15" />{{ t('文件属性') }}
|
|
360
373
|
</button>
|
|
361
|
-
<button
|
|
362
|
-
v-if="!isWorkspaceInternalPath(fileContextMenu.file.path)"
|
|
363
|
-
role="menuitem"
|
|
364
|
-
@click="fileContextAction('object')"
|
|
365
|
-
>
|
|
366
|
-
<Blocks :size="15" />{{ t('查看文件对象') }}
|
|
367
|
-
</button>
|
|
368
374
|
</template>
|
|
369
375
|
<PluginMenu
|
|
370
376
|
v-if="fileContextMenu.file.kind === 'file'"
|
|
@@ -423,6 +429,13 @@ const {
|
|
|
423
429
|
>
|
|
424
430
|
<FolderPlus :size="15" />{{ t('新建文件夹') }}
|
|
425
431
|
</button>
|
|
432
|
+
<button
|
|
433
|
+
role="menuitem"
|
|
434
|
+
:disabled="!workspace || workspace.readOnly || busy"
|
|
435
|
+
@click="directoryContextAction('table')"
|
|
436
|
+
>
|
|
437
|
+
<Table2 :size="15" />{{ t('新建数据表') }}
|
|
438
|
+
</button>
|
|
426
439
|
<button
|
|
427
440
|
v-if="!directoryContextMenu.parent"
|
|
428
441
|
role="menuitem"
|
|
@@ -9,15 +9,16 @@ import {
|
|
|
9
9
|
DocumentHistoryPanel,
|
|
10
10
|
ImportPanel,
|
|
11
11
|
MobileRecycle,
|
|
12
|
-
|
|
12
|
+
ObjectDetailModal,
|
|
13
|
+
PlanArchiveDialog,
|
|
13
14
|
PlanDetailPanel,
|
|
14
15
|
SelectionTodoDialog,
|
|
15
16
|
} from '../workbench-async-components';
|
|
16
17
|
import { workbenchContextKey } from '../workbench-context';
|
|
17
18
|
import CommandPalette from './CommandPalette.vue';
|
|
18
19
|
import NewTabPicker from '../../tabs/components/NewTabPicker.vue';
|
|
20
|
+
import PluginUiDialog from '../../plugins/components/PluginUiDialog.vue';
|
|
19
21
|
import WorkbenchSettings from '../../settings/components/WorkbenchSettings.vue';
|
|
20
|
-
import WorkspaceSyncPanel from '../../workspace/components/WorkspaceSyncPanel.vue';
|
|
21
22
|
|
|
22
23
|
const context = inject(workbenchContextKey);
|
|
23
24
|
if (!context) throw new Error('Workbench context is required');
|
|
@@ -30,8 +31,6 @@ const {
|
|
|
30
31
|
importPanel,
|
|
31
32
|
attachments,
|
|
32
33
|
importRecords,
|
|
33
|
-
systemSyncPanel,
|
|
34
|
-
workspaceSync,
|
|
35
34
|
extensions,
|
|
36
35
|
extensionActions,
|
|
37
36
|
recyclePanel,
|
|
@@ -41,19 +40,12 @@ const {
|
|
|
41
40
|
active,
|
|
42
41
|
activities,
|
|
43
42
|
historyPage,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
selectedObjectId,
|
|
48
|
-
selectedResourceIdentity,
|
|
49
|
-
selectedPersonal,
|
|
50
|
-
plans,
|
|
51
|
-
assetImportBusy,
|
|
52
|
-
assetPreview,
|
|
53
|
-
openObjectResource,
|
|
43
|
+
objectDetail,
|
|
44
|
+
planArchiveOpen,
|
|
45
|
+
calendarScope,
|
|
54
46
|
openObjectReference,
|
|
55
47
|
createNewDocument,
|
|
56
|
-
|
|
48
|
+
createNewEntry,
|
|
57
49
|
planDetail,
|
|
58
50
|
openPlanReference,
|
|
59
51
|
selectionTodo,
|
|
@@ -94,13 +86,6 @@ const {
|
|
|
94
86
|
@close="importPanel = false"
|
|
95
87
|
@completed="importRecords.unshift($event)"
|
|
96
88
|
/>
|
|
97
|
-
<WorkspaceSyncPanel
|
|
98
|
-
v-if="systemSyncPanel && workspace"
|
|
99
|
-
:workspace-id="workspace.id"
|
|
100
|
-
:controller="workspaceSync"
|
|
101
|
-
:cloud="extensions.sync"
|
|
102
|
-
@close="systemSyncPanel = false"
|
|
103
|
-
/>
|
|
104
89
|
<component
|
|
105
90
|
:is="extensions.regions['sync-dialog']"
|
|
106
91
|
v-if="extensions.regions['sync-dialog']"
|
|
@@ -137,31 +122,20 @@ const {
|
|
|
137
122
|
selectedDiff = $event;
|
|
138
123
|
"
|
|
139
124
|
/>
|
|
140
|
-
<
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
@
|
|
146
|
-
/>
|
|
147
|
-
<ObjectPanel
|
|
148
|
-
v-if="objectPanelMounted"
|
|
149
|
-
v-show="objectPanel"
|
|
150
|
-
:open="objectPanel"
|
|
151
|
-
:selected-id="selectedObjectId"
|
|
152
|
-
:selected-identity="selectedResourceIdentity"
|
|
153
|
-
:personal="selectedPersonal ? plans.panel : undefined"
|
|
154
|
-
:can-open-asset="!!attachments"
|
|
155
|
-
:can-import-asset="!!attachments && !assetImportBusy"
|
|
156
|
-
:preview-asset="assetPreview"
|
|
157
|
-
@close="objectPanel = false"
|
|
158
|
-
@open-resource="openObjectResource"
|
|
125
|
+
<ObjectDetailModal
|
|
126
|
+
v-if="objectDetail && workspace"
|
|
127
|
+
:key="`${workspace.id}:${objectDetail.record?.object.id ?? `new:${objectDetail.initialType ?? ''}`}`"
|
|
128
|
+
:record="objectDetail.record"
|
|
129
|
+
:initial-type="objectDetail.initialType"
|
|
130
|
+
@close="objectDetail = undefined"
|
|
159
131
|
@open-reference="openObjectReference"
|
|
160
|
-
@
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
"
|
|
164
|
-
|
|
132
|
+
@saved="objectDetail = { record: $event }"
|
|
133
|
+
/>
|
|
134
|
+
<PlanArchiveDialog
|
|
135
|
+
v-if="planArchiveOpen"
|
|
136
|
+
:scope="calendarScope"
|
|
137
|
+
@close="planArchiveOpen = false"
|
|
138
|
+
@select-event="showPlanEvent"
|
|
165
139
|
/>
|
|
166
140
|
<PlanDetailPanel
|
|
167
141
|
v-if="planDetail"
|
|
@@ -207,6 +181,7 @@ const {
|
|
|
207
181
|
v-if="modal === 'newTab'"
|
|
208
182
|
@close="modal = ''"
|
|
209
183
|
@new-document="createNewDocument"
|
|
184
|
+
@new-table="createNewEntry('table')"
|
|
210
185
|
/>
|
|
211
186
|
<div
|
|
212
187
|
v-surface-motion="'App:8'"
|
|
@@ -369,6 +344,12 @@ const {
|
|
|
369
344
|
</form>
|
|
370
345
|
</section>
|
|
371
346
|
</div>
|
|
347
|
+
<PluginUiDialog
|
|
348
|
+
:dialog="store.activePluginDialog"
|
|
349
|
+
:toasts="store.pluginToasts"
|
|
350
|
+
@resolve="store.resolvePluginDialog"
|
|
351
|
+
@dismiss-toast="store.dismissPluginToast"
|
|
352
|
+
/>
|
|
372
353
|
</WindowScope>
|
|
373
354
|
</Teleport>
|
|
374
355
|
</template>
|