@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
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed, nextTick, ref, watch } from 'vue';
|
|
3
|
+
import { Puzzle, Search, X } from 'lucide-vue-next';
|
|
4
|
+
import { t } from '../../i18n/i18n';
|
|
5
|
+
import type { PluginUiDialogRequest, PluginUiToastItem } from '../../stores/workspace-plugins-state';
|
|
6
|
+
|
|
7
|
+
const props = defineProps<{
|
|
8
|
+
dialog: PluginUiDialogRequest | null;
|
|
9
|
+
toasts: readonly PluginUiToastItem[];
|
|
10
|
+
}>();
|
|
11
|
+
const emit = defineEmits<{
|
|
12
|
+
resolve: [id: string, value: string | boolean | null];
|
|
13
|
+
dismissToast: [id: string];
|
|
14
|
+
}>();
|
|
15
|
+
|
|
16
|
+
const query = ref('');
|
|
17
|
+
const selectedIndex = ref(0);
|
|
18
|
+
const promptValue = ref('');
|
|
19
|
+
const inputRef = ref<HTMLInputElement>();
|
|
20
|
+
|
|
21
|
+
const filteredItems = computed(() => {
|
|
22
|
+
if (props.dialog?.kind !== 'pick') return [];
|
|
23
|
+
const q = query.value.trim().toLowerCase();
|
|
24
|
+
if (!q) return props.dialog.options.items;
|
|
25
|
+
return props.dialog.options.items.filter(
|
|
26
|
+
(item) =>
|
|
27
|
+
item.label.toLowerCase().includes(q) ||
|
|
28
|
+
item.description?.toLowerCase().includes(q) ||
|
|
29
|
+
item.detail?.toLowerCase().includes(q),
|
|
30
|
+
);
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
watch(
|
|
34
|
+
() => props.dialog?.id,
|
|
35
|
+
async () => {
|
|
36
|
+
query.value = '';
|
|
37
|
+
selectedIndex.value = 0;
|
|
38
|
+
promptValue.value = props.dialog?.kind === 'prompt' ? (props.dialog.options.defaultValue ?? '') : '';
|
|
39
|
+
if (props.dialog) {
|
|
40
|
+
await nextTick();
|
|
41
|
+
inputRef.value?.focus();
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
{ immediate: true },
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
watch(filteredItems, (items) => {
|
|
48
|
+
if (selectedIndex.value >= items.length) selectedIndex.value = 0;
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
function cancel() {
|
|
52
|
+
if (!props.dialog) return;
|
|
53
|
+
emit('resolve', props.dialog.id, props.dialog.kind === 'confirm' ? false : null);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function confirmPrompt() {
|
|
57
|
+
if (props.dialog?.kind !== 'prompt') return;
|
|
58
|
+
emit('resolve', props.dialog.id, promptValue.value);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function choosePick(id: string) {
|
|
62
|
+
if (props.dialog?.kind !== 'pick') return;
|
|
63
|
+
emit('resolve', props.dialog.id, id);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function handleKeydown(event: KeyboardEvent) {
|
|
67
|
+
if (!props.dialog) return;
|
|
68
|
+
if (event.key === 'Escape') {
|
|
69
|
+
event.preventDefault();
|
|
70
|
+
event.stopPropagation();
|
|
71
|
+
cancel();
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
if (props.dialog.kind === 'pick') {
|
|
75
|
+
const items = filteredItems.value;
|
|
76
|
+
if (!items.length) return;
|
|
77
|
+
if (event.key === 'ArrowDown') {
|
|
78
|
+
event.preventDefault();
|
|
79
|
+
selectedIndex.value = (selectedIndex.value + 1) % items.length;
|
|
80
|
+
} else if (event.key === 'ArrowUp') {
|
|
81
|
+
event.preventDefault();
|
|
82
|
+
selectedIndex.value = (selectedIndex.value - 1 + items.length) % items.length;
|
|
83
|
+
} else if (event.key === 'Enter') {
|
|
84
|
+
event.preventDefault();
|
|
85
|
+
const target = items[selectedIndex.value];
|
|
86
|
+
if (target) choosePick(target.id);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
</script>
|
|
91
|
+
|
|
92
|
+
<template>
|
|
93
|
+
<div
|
|
94
|
+
v-if="dialog"
|
|
95
|
+
class="plugin-ui-backdrop"
|
|
96
|
+
role="presentation"
|
|
97
|
+
@mousedown.self="cancel"
|
|
98
|
+
@keydown="handleKeydown"
|
|
99
|
+
>
|
|
100
|
+
<section
|
|
101
|
+
class="plugin-ui-dialog"
|
|
102
|
+
role="dialog"
|
|
103
|
+
aria-modal="true"
|
|
104
|
+
:aria-label="dialog.options.title"
|
|
105
|
+
>
|
|
106
|
+
<header class="plugin-ui-header">
|
|
107
|
+
<div class="plugin-ui-source">
|
|
108
|
+
<Puzzle :size="13" aria-hidden="true" />
|
|
109
|
+
<span>{{ t('插件:{0}', [dialog.pluginName]) }}</span>
|
|
110
|
+
</div>
|
|
111
|
+
<button type="button" class="plugin-ui-close" :aria-label="t('取消')" @click="cancel">
|
|
112
|
+
<X :size="15" />
|
|
113
|
+
</button>
|
|
114
|
+
</header>
|
|
115
|
+
<h3 class="plugin-ui-title">{{ dialog.options.title }}</h3>
|
|
116
|
+
|
|
117
|
+
<template v-if="dialog.kind === 'pick'">
|
|
118
|
+
<div class="plugin-ui-search">
|
|
119
|
+
<Search :size="14" aria-hidden="true" />
|
|
120
|
+
<input
|
|
121
|
+
ref="inputRef"
|
|
122
|
+
v-model="query"
|
|
123
|
+
type="text"
|
|
124
|
+
:placeholder="dialog.options.placeholder || t('输入关键词筛选…')"
|
|
125
|
+
:aria-label="dialog.options.placeholder || dialog.options.title"
|
|
126
|
+
autocomplete="off"
|
|
127
|
+
/>
|
|
128
|
+
</div>
|
|
129
|
+
<ul v-if="filteredItems.length" class="plugin-ui-list" role="listbox">
|
|
130
|
+
<li
|
|
131
|
+
v-for="(item, index) in filteredItems"
|
|
132
|
+
:key="item.id"
|
|
133
|
+
role="option"
|
|
134
|
+
:aria-selected="index === selectedIndex"
|
|
135
|
+
>
|
|
136
|
+
<button
|
|
137
|
+
type="button"
|
|
138
|
+
class="plugin-ui-option"
|
|
139
|
+
:class="{ active: index === selectedIndex }"
|
|
140
|
+
@mouseenter="selectedIndex = index"
|
|
141
|
+
@click="choosePick(item.id)"
|
|
142
|
+
>
|
|
143
|
+
<div class="plugin-ui-option-head">
|
|
144
|
+
<strong>{{ item.label }}</strong>
|
|
145
|
+
<span v-if="item.description" class="plugin-ui-option-desc">{{ item.description }}</span>
|
|
146
|
+
</div>
|
|
147
|
+
<p v-if="item.detail" class="plugin-ui-option-detail">{{ item.detail }}</p>
|
|
148
|
+
</button>
|
|
149
|
+
</li>
|
|
150
|
+
</ul>
|
|
151
|
+
<p v-else class="plugin-ui-empty">{{ t('没有匹配的选项') }}</p>
|
|
152
|
+
</template>
|
|
153
|
+
|
|
154
|
+
<form v-else-if="dialog.kind === 'prompt'" class="plugin-ui-form" @submit.prevent="confirmPrompt">
|
|
155
|
+
<p v-if="dialog.options.message" class="plugin-ui-message">{{ dialog.options.message }}</p>
|
|
156
|
+
<input
|
|
157
|
+
ref="inputRef"
|
|
158
|
+
v-model="promptValue"
|
|
159
|
+
type="text"
|
|
160
|
+
class="plugin-ui-input"
|
|
161
|
+
:placeholder="dialog.options.placeholder"
|
|
162
|
+
:aria-label="dialog.options.title"
|
|
163
|
+
autocomplete="off"
|
|
164
|
+
/>
|
|
165
|
+
<div class="plugin-ui-actions">
|
|
166
|
+
<button type="button" class="plugin-ui-btn" @click="cancel">{{ t('取消') }}</button>
|
|
167
|
+
<button type="submit" class="plugin-ui-btn primary">
|
|
168
|
+
{{ dialog.options.confirmLabel || t('确定') }}
|
|
169
|
+
</button>
|
|
170
|
+
</div>
|
|
171
|
+
</form>
|
|
172
|
+
|
|
173
|
+
<div v-else class="plugin-ui-form">
|
|
174
|
+
<p v-if="dialog.options.message" class="plugin-ui-message">{{ dialog.options.message }}</p>
|
|
175
|
+
<div class="plugin-ui-actions">
|
|
176
|
+
<button type="button" class="plugin-ui-btn" @click="cancel">
|
|
177
|
+
{{ dialog.options.cancelLabel || t('取消') }}
|
|
178
|
+
</button>
|
|
179
|
+
<button
|
|
180
|
+
type="button"
|
|
181
|
+
class="plugin-ui-btn"
|
|
182
|
+
:class="dialog.options.danger ? 'danger' : 'primary'"
|
|
183
|
+
@click="emit('resolve', dialog.id, true)"
|
|
184
|
+
>
|
|
185
|
+
{{ dialog.options.confirmLabel || t('确认') }}
|
|
186
|
+
</button>
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
189
|
+
</section>
|
|
190
|
+
</div>
|
|
191
|
+
|
|
192
|
+
<div v-if="toasts.length" class="plugin-toast-stack" role="status" aria-live="polite">
|
|
193
|
+
<div
|
|
194
|
+
v-for="toast in toasts"
|
|
195
|
+
:key="toast.id"
|
|
196
|
+
class="plugin-toast"
|
|
197
|
+
:class="`tone-${toast.tone}`"
|
|
198
|
+
>
|
|
199
|
+
<div class="plugin-toast-body">
|
|
200
|
+
<strong>{{ toast.pluginName }}</strong>
|
|
201
|
+
<span>{{ toast.message }}</span>
|
|
202
|
+
</div>
|
|
203
|
+
<button
|
|
204
|
+
type="button"
|
|
205
|
+
class="plugin-toast-close"
|
|
206
|
+
:aria-label="t('关闭提示')"
|
|
207
|
+
@click="emit('dismissToast', toast.id)"
|
|
208
|
+
>
|
|
209
|
+
<X :size="13" />
|
|
210
|
+
</button>
|
|
211
|
+
</div>
|
|
212
|
+
</div>
|
|
213
|
+
</template>
|
|
214
|
+
|
|
215
|
+
<style scoped>
|
|
216
|
+
.plugin-ui-backdrop {
|
|
217
|
+
position: fixed;
|
|
218
|
+
inset: 0;
|
|
219
|
+
z-index: 120;
|
|
220
|
+
display: flex;
|
|
221
|
+
align-items: flex-start;
|
|
222
|
+
justify-content: center;
|
|
223
|
+
padding: min(14vh, 108px) 16px 24px;
|
|
224
|
+
background: rgb(0 0 0 / 32%);
|
|
225
|
+
}
|
|
226
|
+
.plugin-ui-dialog {
|
|
227
|
+
width: min(480px, 100%);
|
|
228
|
+
max-height: 72vh;
|
|
229
|
+
display: flex;
|
|
230
|
+
flex-direction: column;
|
|
231
|
+
gap: 10px;
|
|
232
|
+
padding: 16px;
|
|
233
|
+
border: 1px solid var(--line);
|
|
234
|
+
border-radius: var(--radius-dialog, 12px);
|
|
235
|
+
background: var(--paper);
|
|
236
|
+
color: var(--text);
|
|
237
|
+
box-shadow: var(--dialog-shadow, 0 20px 56px rgb(0 0 0 / 26%));
|
|
238
|
+
}
|
|
239
|
+
.plugin-ui-header {
|
|
240
|
+
display: flex;
|
|
241
|
+
align-items: center;
|
|
242
|
+
justify-content: space-between;
|
|
243
|
+
gap: 8px;
|
|
244
|
+
}
|
|
245
|
+
.plugin-ui-source {
|
|
246
|
+
display: inline-flex;
|
|
247
|
+
align-items: center;
|
|
248
|
+
gap: 5px;
|
|
249
|
+
font-size: 11px;
|
|
250
|
+
color: var(--muted);
|
|
251
|
+
}
|
|
252
|
+
.plugin-ui-close {
|
|
253
|
+
display: inline-flex;
|
|
254
|
+
align-items: center;
|
|
255
|
+
justify-content: center;
|
|
256
|
+
width: 24px;
|
|
257
|
+
height: 24px;
|
|
258
|
+
border-radius: 6px;
|
|
259
|
+
color: var(--muted);
|
|
260
|
+
}
|
|
261
|
+
.plugin-ui-close:hover {
|
|
262
|
+
background: var(--hover);
|
|
263
|
+
color: var(--text);
|
|
264
|
+
}
|
|
265
|
+
.plugin-ui-title {
|
|
266
|
+
margin: 0;
|
|
267
|
+
font-size: 15px;
|
|
268
|
+
font-weight: 600;
|
|
269
|
+
line-height: 1.4;
|
|
270
|
+
}
|
|
271
|
+
.plugin-ui-message {
|
|
272
|
+
margin: 0;
|
|
273
|
+
font-size: 13px;
|
|
274
|
+
line-height: 1.6;
|
|
275
|
+
color: var(--muted);
|
|
276
|
+
white-space: pre-wrap;
|
|
277
|
+
overflow-wrap: anywhere;
|
|
278
|
+
}
|
|
279
|
+
.plugin-ui-search {
|
|
280
|
+
display: flex;
|
|
281
|
+
align-items: center;
|
|
282
|
+
gap: 8px;
|
|
283
|
+
padding: 0 10px;
|
|
284
|
+
height: 36px;
|
|
285
|
+
border: 1px solid var(--control-border, var(--line));
|
|
286
|
+
border-radius: var(--radius-control, 8px);
|
|
287
|
+
background: var(--surface, var(--paper));
|
|
288
|
+
color: var(--muted);
|
|
289
|
+
}
|
|
290
|
+
.plugin-ui-search input {
|
|
291
|
+
flex: 1;
|
|
292
|
+
min-width: 0;
|
|
293
|
+
border: 0;
|
|
294
|
+
background: transparent;
|
|
295
|
+
color: var(--text);
|
|
296
|
+
font-size: 13px;
|
|
297
|
+
outline: none;
|
|
298
|
+
}
|
|
299
|
+
.plugin-ui-list {
|
|
300
|
+
list-style: none;
|
|
301
|
+
margin: 0;
|
|
302
|
+
padding: 0;
|
|
303
|
+
overflow-y: auto;
|
|
304
|
+
max-height: 300px;
|
|
305
|
+
display: flex;
|
|
306
|
+
flex-direction: column;
|
|
307
|
+
gap: 2px;
|
|
308
|
+
}
|
|
309
|
+
.plugin-ui-option {
|
|
310
|
+
width: 100%;
|
|
311
|
+
text-align: left;
|
|
312
|
+
padding: 8px 10px;
|
|
313
|
+
border-radius: 7px;
|
|
314
|
+
display: flex;
|
|
315
|
+
flex-direction: column;
|
|
316
|
+
gap: 3px;
|
|
317
|
+
color: var(--text);
|
|
318
|
+
}
|
|
319
|
+
.plugin-ui-option:hover,
|
|
320
|
+
.plugin-ui-option.active {
|
|
321
|
+
background: var(--selected, var(--hover));
|
|
322
|
+
}
|
|
323
|
+
.plugin-ui-option-head {
|
|
324
|
+
display: flex;
|
|
325
|
+
align-items: baseline;
|
|
326
|
+
justify-content: space-between;
|
|
327
|
+
gap: 8px;
|
|
328
|
+
}
|
|
329
|
+
.plugin-ui-option-head strong {
|
|
330
|
+
font-size: 13px;
|
|
331
|
+
font-weight: 500;
|
|
332
|
+
}
|
|
333
|
+
.plugin-ui-option-desc,
|
|
334
|
+
.plugin-ui-option-detail {
|
|
335
|
+
margin: 0;
|
|
336
|
+
font-size: 12px;
|
|
337
|
+
color: var(--muted);
|
|
338
|
+
overflow-wrap: anywhere;
|
|
339
|
+
}
|
|
340
|
+
.plugin-ui-empty {
|
|
341
|
+
margin: 6px 0;
|
|
342
|
+
font-size: 12px;
|
|
343
|
+
color: var(--muted);
|
|
344
|
+
text-align: center;
|
|
345
|
+
}
|
|
346
|
+
.plugin-ui-form {
|
|
347
|
+
display: flex;
|
|
348
|
+
flex-direction: column;
|
|
349
|
+
gap: 12px;
|
|
350
|
+
}
|
|
351
|
+
.plugin-ui-input {
|
|
352
|
+
width: 100%;
|
|
353
|
+
box-sizing: border-box;
|
|
354
|
+
height: 36px;
|
|
355
|
+
padding: 0 10px;
|
|
356
|
+
border: 1px solid var(--control-border, var(--line));
|
|
357
|
+
border-radius: var(--radius-control, 8px);
|
|
358
|
+
background: var(--surface, var(--paper));
|
|
359
|
+
color: var(--text);
|
|
360
|
+
font-size: 13px;
|
|
361
|
+
}
|
|
362
|
+
.plugin-ui-input:focus {
|
|
363
|
+
outline: 2px solid var(--green);
|
|
364
|
+
outline-offset: -1px;
|
|
365
|
+
}
|
|
366
|
+
.plugin-ui-actions {
|
|
367
|
+
display: flex;
|
|
368
|
+
justify-content: flex-end;
|
|
369
|
+
gap: 8px;
|
|
370
|
+
}
|
|
371
|
+
.plugin-ui-btn {
|
|
372
|
+
height: 32px;
|
|
373
|
+
padding: 0 14px;
|
|
374
|
+
border: 1px solid var(--line);
|
|
375
|
+
border-radius: var(--radius-control, 7px);
|
|
376
|
+
background: var(--surface, var(--paper));
|
|
377
|
+
color: var(--text);
|
|
378
|
+
font-size: 13px;
|
|
379
|
+
}
|
|
380
|
+
.plugin-ui-btn:hover {
|
|
381
|
+
background: var(--hover);
|
|
382
|
+
}
|
|
383
|
+
.plugin-ui-btn.primary {
|
|
384
|
+
border-color: var(--green);
|
|
385
|
+
background: var(--green);
|
|
386
|
+
color: #fff;
|
|
387
|
+
}
|
|
388
|
+
.plugin-ui-btn.danger {
|
|
389
|
+
border-color: var(--danger, #c4483d);
|
|
390
|
+
background: var(--danger, #c4483d);
|
|
391
|
+
color: #fff;
|
|
392
|
+
}
|
|
393
|
+
.plugin-toast-stack {
|
|
394
|
+
position: fixed;
|
|
395
|
+
right: 18px;
|
|
396
|
+
bottom: 34px;
|
|
397
|
+
z-index: 115;
|
|
398
|
+
display: flex;
|
|
399
|
+
flex-direction: column;
|
|
400
|
+
gap: 8px;
|
|
401
|
+
max-width: min(360px, calc(100vw - 32px));
|
|
402
|
+
pointer-events: none;
|
|
403
|
+
}
|
|
404
|
+
.plugin-toast {
|
|
405
|
+
pointer-events: auto;
|
|
406
|
+
display: flex;
|
|
407
|
+
align-items: flex-start;
|
|
408
|
+
gap: 10px;
|
|
409
|
+
padding: 10px 12px;
|
|
410
|
+
border: 1px solid var(--line);
|
|
411
|
+
border-left: 3px solid var(--muted);
|
|
412
|
+
border-radius: 9px;
|
|
413
|
+
background: var(--paper);
|
|
414
|
+
color: var(--text);
|
|
415
|
+
box-shadow: 0 8px 24px rgb(0 0 0 / 16%);
|
|
416
|
+
font-size: 12px;
|
|
417
|
+
}
|
|
418
|
+
.plugin-toast.tone-success {
|
|
419
|
+
border-left-color: var(--brand-green, var(--green));
|
|
420
|
+
}
|
|
421
|
+
.plugin-toast.tone-warning {
|
|
422
|
+
border-left-color: #d9822b;
|
|
423
|
+
}
|
|
424
|
+
.plugin-toast.tone-error {
|
|
425
|
+
border-left-color: var(--danger, #c4483d);
|
|
426
|
+
}
|
|
427
|
+
.plugin-toast-body {
|
|
428
|
+
flex: 1;
|
|
429
|
+
min-width: 0;
|
|
430
|
+
display: flex;
|
|
431
|
+
flex-direction: column;
|
|
432
|
+
gap: 2px;
|
|
433
|
+
}
|
|
434
|
+
.plugin-toast-body strong {
|
|
435
|
+
font-size: 11px;
|
|
436
|
+
color: var(--muted);
|
|
437
|
+
font-weight: 500;
|
|
438
|
+
}
|
|
439
|
+
.plugin-toast-body span {
|
|
440
|
+
line-height: 1.5;
|
|
441
|
+
overflow-wrap: anywhere;
|
|
442
|
+
}
|
|
443
|
+
.plugin-toast-close {
|
|
444
|
+
color: var(--muted);
|
|
445
|
+
padding: 2px;
|
|
446
|
+
border-radius: 4px;
|
|
447
|
+
}
|
|
448
|
+
.plugin-toast-close:hover {
|
|
449
|
+
background: var(--hover);
|
|
450
|
+
color: var(--text);
|
|
451
|
+
}
|
|
452
|
+
</style>
|