@abraca/junis 2.80.0 → 2.82.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/README.md +20 -9
- package/dist/module.json +1 -1
- package/dist/module.mjs +47 -18
- package/dist/runtime/assets/css/jun.css +1 -1
- package/dist/runtime/components/JunSettings.client.d.vue.ts +3 -0
- package/dist/runtime/components/JunSettings.client.vue +195 -0
- package/dist/runtime/components/JunSettings.client.vue.d.ts +3 -0
- package/dist/runtime/components/JunStudioBar.client.vue +11 -23
- package/dist/runtime/components/renderers/JunConfigRenderer.d.vue.ts +13 -0
- package/dist/runtime/components/renderers/JunConfigRenderer.vue +54 -21
- package/dist/runtime/components/renderers/JunConfigRenderer.vue.d.ts +13 -0
- package/dist/runtime/components/renderers/JunStatsRenderer.vue +280 -74
- package/dist/runtime/composables/useJunCommands.js +15 -12
- package/dist/runtime/composables/useJunDocPage.d.ts +8 -1
- package/dist/runtime/composables/useJunDocPage.js +6 -4
- package/dist/runtime/composables/useJunRename.js +6 -5
- package/dist/runtime/composables/useJunSettings.d.ts +24 -0
- package/dist/runtime/composables/useJunSettings.js +48 -0
- package/dist/runtime/composables/useJunSiteConfig.d.ts +69 -27
- package/dist/runtime/composables/useJunSiteConfig.js +62 -53
- package/dist/runtime/composables/useJunViewingAccent.d.ts +0 -1
- package/dist/runtime/composables/useJunViewingAccent.js +1 -1
- package/dist/runtime/layouts/jun.vue +18 -2
- package/dist/runtime/pages/index.vue +18 -8
- package/dist/runtime/plugins/jun-site-config.d.ts +17 -0
- package/dist/runtime/plugins/jun-site-config.js +26 -0
- package/dist/runtime/server/api/resolve/[...slug].get.d.ts +15 -1
- package/dist/runtime/server/api/resolve/[...slug].get.js +24 -2
- package/dist/runtime/server/api/stats.get.d.ts +27 -0
- package/dist/runtime/server/api/stats.get.js +35 -8
- package/dist/runtime/server/plugins/jun-bootstrap.js +40 -12
- package/dist/runtime/server/plugins/jun-doc-cache.js +44 -3
- package/dist/runtime/server/tasks/jun-register-tree.d.ts +16 -0
- package/dist/runtime/server/tasks/jun-register-tree.js +22 -0
- package/dist/runtime/server/utils/junActivity.d.ts +15 -0
- package/dist/runtime/server/utils/junActivity.js +71 -0
- package/dist/runtime/server/utils/junActivityMath.d.ts +61 -0
- package/dist/runtime/server/utils/junActivityMath.js +31 -0
- package/dist/runtime/server/utils/junCache.d.ts +30 -12
- package/dist/runtime/server/utils/junCache.js +13 -2
- package/dist/runtime/server/utils/junRegisterTree.d.ts +59 -0
- package/dist/runtime/server/utils/junRegisterTree.js +76 -0
- package/dist/runtime/server/utils/junServiceFetch.js +1 -1
- package/dist/runtime/server/utils/junSlugAlias.d.ts +42 -0
- package/dist/runtime/server/utils/junSlugAlias.js +14 -0
- package/dist/runtime/types.d.ts +1 -1
- package/package.json +2 -1
- package/dist/runtime/components/renderers/JunWindowRenderer.d.vue.ts +0 -10
- package/dist/runtime/components/renderers/JunWindowRenderer.vue +0 -516
- package/dist/runtime/components/renderers/JunWindowRenderer.vue.d.ts +0 -10
|
@@ -1,516 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { computed, ref } from "vue";
|
|
3
|
-
import {
|
|
4
|
-
junMotion,
|
|
5
|
-
useAbracadabra,
|
|
6
|
-
useChildTree,
|
|
7
|
-
useDocTree,
|
|
8
|
-
useJunRename,
|
|
9
|
-
useJunStudio,
|
|
10
|
-
useJunTravellers
|
|
11
|
-
} from "#imports";
|
|
12
|
-
const props = defineProps({
|
|
13
|
-
docId: { type: String, required: true },
|
|
14
|
-
docLabel: { type: String, required: false },
|
|
15
|
-
docMeta: { type: Object, required: false },
|
|
16
|
-
childProvider: { type: null, required: false },
|
|
17
|
-
editable: { type: Boolean, required: false }
|
|
18
|
-
});
|
|
19
|
-
const abra = useAbracadabra();
|
|
20
|
-
const tree = useChildTree(abra.doc, props.docId);
|
|
21
|
-
const { getEntry } = useDocTree();
|
|
22
|
-
const { editing } = useJunStudio();
|
|
23
|
-
const { renameDoc } = useJunRename();
|
|
24
|
-
const { travellers } = useJunTravellers();
|
|
25
|
-
const entry = computed(() => getEntry(props.docId));
|
|
26
|
-
const meta = computed(
|
|
27
|
-
() => entry.value?.meta ?? props.docMeta ?? {}
|
|
28
|
-
);
|
|
29
|
-
const title = computed(() => entry.value?.label ?? props.docLabel ?? "Window");
|
|
30
|
-
const subtitle = computed(() => {
|
|
31
|
-
const ex = meta.value.excerpt;
|
|
32
|
-
return typeof ex === "string" && ex.trim() ? ex : void 0;
|
|
33
|
-
});
|
|
34
|
-
function renamePage(t) {
|
|
35
|
-
renameDoc(props.docId, t);
|
|
36
|
-
}
|
|
37
|
-
function renameSubtitle(s) {
|
|
38
|
-
tree.updateMeta(props.docId, { excerpt: s || void 0 });
|
|
39
|
-
}
|
|
40
|
-
const windowUrl = computed(() => {
|
|
41
|
-
const u = meta.value.windowUrl;
|
|
42
|
-
return typeof u === "string" && u.trim() ? u : "example.com/console";
|
|
43
|
-
});
|
|
44
|
-
const here = computed(() => travellers.value.length);
|
|
45
|
-
const k = (name) => `win:${props.docId}:${name}`;
|
|
46
|
-
const tab = ref("overview");
|
|
47
|
-
const project = ref("Documents");
|
|
48
|
-
const search = ref("");
|
|
49
|
-
const notes = ref("Every control on this page is a real awareness surface.");
|
|
50
|
-
const budget = ref([62]);
|
|
51
|
-
const density = ref(3);
|
|
52
|
-
const live = ref(true);
|
|
53
|
-
const notify = ref(false);
|
|
54
|
-
const channels = ref(["web"]);
|
|
55
|
-
const visibility = ref("team");
|
|
56
|
-
const tags = ref(["crdt", "presence"]);
|
|
57
|
-
const accent = ref("#71717a");
|
|
58
|
-
const page = ref(1);
|
|
59
|
-
const step = ref(1);
|
|
60
|
-
const openSection = ref(["activity"]);
|
|
61
|
-
const tabItems = [
|
|
62
|
-
{ label: "Overview", value: "overview", icon: "i-lucide-layout-dashboard" },
|
|
63
|
-
{ label: "Data", value: "data", icon: "i-lucide-table-2" },
|
|
64
|
-
{ label: "Settings", value: "settings", icon: "i-lucide-sliders-horizontal" }
|
|
65
|
-
];
|
|
66
|
-
const projectItems = ["Documents", "Media", "People", "Archive"];
|
|
67
|
-
const visibilityItems = [
|
|
68
|
-
{ label: "Private", value: "private" },
|
|
69
|
-
{ label: "Team", value: "team" },
|
|
70
|
-
{ label: "Public", value: "public" }
|
|
71
|
-
];
|
|
72
|
-
const channelItems = [
|
|
73
|
-
{ label: "Web", value: "web" },
|
|
74
|
-
{ label: "Native", value: "native" },
|
|
75
|
-
{ label: "Email", value: "email" }
|
|
76
|
-
];
|
|
77
|
-
const stepperItems = [
|
|
78
|
-
{ title: "Draft", icon: "i-lucide-pencil-line" },
|
|
79
|
-
{ title: "Review", icon: "i-lucide-eye" },
|
|
80
|
-
{ title: "Shipped", icon: "i-lucide-rocket" }
|
|
81
|
-
];
|
|
82
|
-
const rows = [
|
|
83
|
-
{ doc: "Writing", type: "Feed", edits: 128, status: "Live" },
|
|
84
|
-
{ doc: "Live", type: "Feed", edits: 341, status: "Live" },
|
|
85
|
-
{ doc: "Wall", type: "Media", edits: 57, status: "Live" },
|
|
86
|
-
{ doc: "Guestbook", type: "Visitors", edits: 12, status: "Open" },
|
|
87
|
-
{ doc: "Pulse", type: "Stats", edits: 4, status: "Live" }
|
|
88
|
-
];
|
|
89
|
-
const columns = [
|
|
90
|
-
{ accessorKey: "doc", header: "Document" },
|
|
91
|
-
{ accessorKey: "type", header: "Kind" },
|
|
92
|
-
{ accessorKey: "edits", header: "Edits" },
|
|
93
|
-
{ accessorKey: "status", header: "State" }
|
|
94
|
-
];
|
|
95
|
-
</script>
|
|
96
|
-
|
|
97
|
-
<template>
|
|
98
|
-
<div class="w-full max-w-6xl mx-auto px-4 sm:px-6 pt-12 pb-20">
|
|
99
|
-
<JunPageHero
|
|
100
|
-
:title="title"
|
|
101
|
-
:subtitle="subtitle"
|
|
102
|
-
:editable="editing"
|
|
103
|
-
@rename="renamePage"
|
|
104
|
-
@rename-subtitle="renameSubtitle"
|
|
105
|
-
>
|
|
106
|
-
<template #right>
|
|
107
|
-
<span
|
|
108
|
-
class="jun-chrome inline-flex items-center gap-1.5 rounded-full px-3 py-1 text-xs
|
|
109
|
-
text-black/60 dark:text-white/60"
|
|
110
|
-
>
|
|
111
|
-
<span class="size-1.5 rounded-full bg-emerald-500 animate-pulse" />
|
|
112
|
-
{{ here === 0 ? "Just you here" : here === 1 ? "1 other here" : `${here} others here` }}
|
|
113
|
-
</span>
|
|
114
|
-
</template>
|
|
115
|
-
</JunPageHero>
|
|
116
|
-
|
|
117
|
-
<!-- ── The window ──────────────────────────────────────────────────── -->
|
|
118
|
-
<div
|
|
119
|
-
v-motion="junMotion({ initial: { opacity: 0, y: 24 }, enter: { opacity: 1, y: 0, transition: { duration: 600 } } })"
|
|
120
|
-
class="rounded-2xl overflow-hidden
|
|
121
|
-
bg-linear-to-b from-white/80 to-zinc-50/90
|
|
122
|
-
dark:from-zinc-800/80 dark:to-zinc-900/90
|
|
123
|
-
ring-1 ring-inset ring-black/[0.07] dark:ring-white/10
|
|
124
|
-
shadow-[0_24px_60px_-20px_rgb(0_0_0/0.28)]
|
|
125
|
-
dark:shadow-[0_24px_60px_-20px_rgb(0_0_0/0.6)]"
|
|
126
|
-
>
|
|
127
|
-
<!-- Address bar -->
|
|
128
|
-
<div class="px-3 py-2.5">
|
|
129
|
-
<div
|
|
130
|
-
class="mx-auto flex w-full max-w-xl items-center justify-center gap-1.5 rounded-md
|
|
131
|
-
bg-black/[0.04] dark:bg-white/[0.06] px-4 py-1
|
|
132
|
-
text-[11px] font-medium leading-6 text-black/40 dark:text-white/40
|
|
133
|
-
ring-1 ring-inset ring-black/5 dark:ring-white/10"
|
|
134
|
-
>
|
|
135
|
-
<UIcon
|
|
136
|
-
name="i-lucide-lock"
|
|
137
|
-
class="size-3"
|
|
138
|
-
/>
|
|
139
|
-
{{ windowUrl }}
|
|
140
|
-
</div>
|
|
141
|
-
</div>
|
|
142
|
-
|
|
143
|
-
<!-- Tab row — three columns, the middle one active (AppIntro's shape) -->
|
|
144
|
-
<div class="grid grid-cols-3 text-[11px] leading-5">
|
|
145
|
-
<span
|
|
146
|
-
class="-mb-px -ml-px flex select-none items-center justify-center gap-2 truncate
|
|
147
|
-
rounded-tr-md border border-black/5 dark:border-white/10
|
|
148
|
-
bg-black/[0.03] dark:bg-white/[0.04] px-4 py-1.5
|
|
149
|
-
text-black/35 dark:text-white/35"
|
|
150
|
-
>Presence</span>
|
|
151
|
-
<span
|
|
152
|
-
class="flex select-none items-center justify-center gap-2 truncate px-4 py-1.5
|
|
153
|
-
font-medium text-highlighted"
|
|
154
|
-
>Console</span>
|
|
155
|
-
<span
|
|
156
|
-
class="-mb-px -mr-px flex select-none items-center justify-center gap-2 truncate
|
|
157
|
-
rounded-tl-md border border-black/5 dark:border-white/10
|
|
158
|
-
bg-black/[0.03] dark:bg-white/[0.04] px-4 py-1.5
|
|
159
|
-
text-black/35 dark:text-white/35"
|
|
160
|
-
>Documents</span>
|
|
161
|
-
</div>
|
|
162
|
-
|
|
163
|
-
<!-- ── App body ─────────────────────────────────────────────────── -->
|
|
164
|
-
<div class="border-t border-black/5 dark:border-white/10 bg-white/50 dark:bg-zinc-900/50">
|
|
165
|
-
<!-- Title bar: project switcher, search, who's here -->
|
|
166
|
-
<div
|
|
167
|
-
class="flex flex-wrap items-center gap-2 px-4 py-3
|
|
168
|
-
border-b border-black/5 dark:border-white/10"
|
|
169
|
-
>
|
|
170
|
-
<ASelectMenu
|
|
171
|
-
v-model="project"
|
|
172
|
-
:field-key="k('project')"
|
|
173
|
-
:items="projectItems"
|
|
174
|
-
size="xs"
|
|
175
|
-
variant="soft"
|
|
176
|
-
color="neutral"
|
|
177
|
-
class="w-40"
|
|
178
|
-
/>
|
|
179
|
-
<AInput
|
|
180
|
-
v-model="search"
|
|
181
|
-
:field-key="k('search')"
|
|
182
|
-
peers
|
|
183
|
-
size="xs"
|
|
184
|
-
variant="soft"
|
|
185
|
-
color="neutral"
|
|
186
|
-
icon="i-lucide-search"
|
|
187
|
-
placeholder="Search documents…"
|
|
188
|
-
class="w-full sm:w-56"
|
|
189
|
-
/>
|
|
190
|
-
<div class="ml-auto flex items-center gap-2">
|
|
191
|
-
<AToggleGroup
|
|
192
|
-
v-model="visibility"
|
|
193
|
-
:field-key="k('visibility')"
|
|
194
|
-
:items="visibilityItems"
|
|
195
|
-
size="xs"
|
|
196
|
-
color="neutral"
|
|
197
|
-
variant="soft"
|
|
198
|
-
/>
|
|
199
|
-
<AFacepile
|
|
200
|
-
:field-key="k('facepile')"
|
|
201
|
-
:max="4"
|
|
202
|
-
/>
|
|
203
|
-
</div>
|
|
204
|
-
</div>
|
|
205
|
-
|
|
206
|
-
<div class="grid gap-0 lg:grid-cols-[190px_1fr]">
|
|
207
|
-
<!-- Sidebar -->
|
|
208
|
-
<aside
|
|
209
|
-
class="border-b lg:border-b-0 lg:border-r border-black/5 dark:border-white/10 p-3"
|
|
210
|
-
>
|
|
211
|
-
<ANavigationMenu
|
|
212
|
-
:field-key="k('nav')"
|
|
213
|
-
orientation="vertical"
|
|
214
|
-
:items="[
|
|
215
|
-
{ label: 'Overview', icon: 'i-lucide-layout-dashboard', active: true },
|
|
216
|
-
{ label: 'Documents', icon: 'i-lucide-files' },
|
|
217
|
-
{ label: 'Presence', icon: 'i-lucide-users-round' },
|
|
218
|
-
{ label: 'Storage', icon: 'i-lucide-database' }
|
|
219
|
-
]"
|
|
220
|
-
class="w-full"
|
|
221
|
-
/>
|
|
222
|
-
|
|
223
|
-
<div class="mt-4 space-y-2">
|
|
224
|
-
<p class="px-1 text-[10px] uppercase tracking-[0.18em] text-dimmed">
|
|
225
|
-
Channels
|
|
226
|
-
</p>
|
|
227
|
-
<ACheckboxGroup
|
|
228
|
-
v-model="channels"
|
|
229
|
-
:field-key="k('channels')"
|
|
230
|
-
:items="channelItems"
|
|
231
|
-
size="xs"
|
|
232
|
-
color="neutral"
|
|
233
|
-
/>
|
|
234
|
-
</div>
|
|
235
|
-
</aside>
|
|
236
|
-
|
|
237
|
-
<!-- Main pane -->
|
|
238
|
-
<section class="min-w-0 p-4">
|
|
239
|
-
<ATabs
|
|
240
|
-
v-model="tab"
|
|
241
|
-
:field-key="k('tab')"
|
|
242
|
-
:items="tabItems"
|
|
243
|
-
size="xs"
|
|
244
|
-
color="neutral"
|
|
245
|
-
variant="link"
|
|
246
|
-
class="w-full"
|
|
247
|
-
>
|
|
248
|
-
<template #content="{ item }">
|
|
249
|
-
<!-- Overview -->
|
|
250
|
-
<div
|
|
251
|
-
v-if="item.value === 'overview'"
|
|
252
|
-
class="pt-4 space-y-5"
|
|
253
|
-
>
|
|
254
|
-
<div class="grid gap-3 sm:grid-cols-3">
|
|
255
|
-
<div
|
|
256
|
-
v-for="s in [
|
|
257
|
-
{ label: 'Documents', value: '86', icon: 'i-lucide-files' },
|
|
258
|
-
{ label: 'Edits today', value: '19', icon: 'i-lucide-pencil-line' },
|
|
259
|
-
{ label: 'Travellers', value: String(here), icon: 'i-lucide-users-round' }
|
|
260
|
-
]"
|
|
261
|
-
:key="s.label"
|
|
262
|
-
class="rounded-xl bg-black/[0.03] dark:bg-white/[0.04] p-3
|
|
263
|
-
ring-1 ring-inset ring-black/5 dark:ring-white/10"
|
|
264
|
-
>
|
|
265
|
-
<div class="flex items-center gap-1.5 text-dimmed">
|
|
266
|
-
<UIcon
|
|
267
|
-
:name="s.icon"
|
|
268
|
-
class="size-3.5"
|
|
269
|
-
/>
|
|
270
|
-
<span class="text-[10px] uppercase tracking-[0.16em]">{{ s.label }}</span>
|
|
271
|
-
</div>
|
|
272
|
-
<p class="mt-1 text-2xl font-semibold tabular-nums text-highlighted">
|
|
273
|
-
{{ s.value }}
|
|
274
|
-
</p>
|
|
275
|
-
</div>
|
|
276
|
-
</div>
|
|
277
|
-
|
|
278
|
-
<div class="space-y-2">
|
|
279
|
-
<div class="flex items-baseline justify-between">
|
|
280
|
-
<label class="text-xs font-medium text-muted">Sync budget</label>
|
|
281
|
-
<span class="text-xs tabular-nums text-dimmed">{{ budget[0] }}%</span>
|
|
282
|
-
</div>
|
|
283
|
-
<!-- `peers` renders every other visitor's thumb on the same
|
|
284
|
-
track — the clearest demo in the whole set. -->
|
|
285
|
-
<ASlider
|
|
286
|
-
v-model="budget"
|
|
287
|
-
:field-key="k('budget')"
|
|
288
|
-
peers
|
|
289
|
-
:min="0"
|
|
290
|
-
:max="100"
|
|
291
|
-
color="neutral"
|
|
292
|
-
/>
|
|
293
|
-
</div>
|
|
294
|
-
|
|
295
|
-
<AAccordion
|
|
296
|
-
v-model="openSection"
|
|
297
|
-
:field-key="k('accordion')"
|
|
298
|
-
type="multiple"
|
|
299
|
-
:items="[
|
|
300
|
-
{ label: 'Recent activity', value: 'activity', icon: 'i-lucide-activity' },
|
|
301
|
-
{ label: 'Connected devices', value: 'devices', icon: 'i-lucide-monitor-smartphone' }
|
|
302
|
-
]"
|
|
303
|
-
>
|
|
304
|
-
<template #body="{ item: a }">
|
|
305
|
-
<ul class="space-y-1.5 text-xs text-muted">
|
|
306
|
-
<li
|
|
307
|
-
v-if="a.value === 'activity'"
|
|
308
|
-
class="flex gap-2"
|
|
309
|
-
>
|
|
310
|
-
<UIcon
|
|
311
|
-
name="i-lucide-dot"
|
|
312
|
-
class="size-4 shrink-0"
|
|
313
|
-
/> An entry was published
|
|
314
|
-
</li>
|
|
315
|
-
<li
|
|
316
|
-
v-if="a.value === 'activity'"
|
|
317
|
-
class="flex gap-2"
|
|
318
|
-
>
|
|
319
|
-
<UIcon
|
|
320
|
-
name="i-lucide-dot"
|
|
321
|
-
class="size-4 shrink-0"
|
|
322
|
-
/> A traveller signed the guestbook
|
|
323
|
-
</li>
|
|
324
|
-
<li
|
|
325
|
-
v-if="a.value === 'devices'"
|
|
326
|
-
class="flex gap-2"
|
|
327
|
-
>
|
|
328
|
-
<UIcon
|
|
329
|
-
name="i-lucide-dot"
|
|
330
|
-
class="size-4 shrink-0"
|
|
331
|
-
/> This browser
|
|
332
|
-
</li>
|
|
333
|
-
</ul>
|
|
334
|
-
</template>
|
|
335
|
-
</AAccordion>
|
|
336
|
-
</div>
|
|
337
|
-
|
|
338
|
-
<!-- Data -->
|
|
339
|
-
<div
|
|
340
|
-
v-else-if="item.value === 'data'"
|
|
341
|
-
class="pt-4 space-y-4"
|
|
342
|
-
>
|
|
343
|
-
<!-- `peers` highlights the row another visitor is hovering. -->
|
|
344
|
-
<ATable
|
|
345
|
-
:field-key="k('table')"
|
|
346
|
-
peers
|
|
347
|
-
:data="rows"
|
|
348
|
-
:columns="columns"
|
|
349
|
-
class="text-xs"
|
|
350
|
-
/>
|
|
351
|
-
<div class="flex items-center justify-between gap-3">
|
|
352
|
-
<!-- `UPagination`, not `APagination`, and deliberately so.
|
|
353
|
-
The aware wrapper declares `total` as a BOOLEAN flag
|
|
354
|
-
("all channels on"), which shadows UPagination's own
|
|
355
|
-
`total` — the item count. So an item count cannot
|
|
356
|
-
reach it: passing one silently enables total-awareness
|
|
357
|
-
mode and leaves the control paginating over nothing.
|
|
358
|
-
A control that lies about its data is worse than one
|
|
359
|
-
without a presence halo. Upstream naming collision;
|
|
360
|
-
swap back if `aware` is renamed. -->
|
|
361
|
-
<UPagination
|
|
362
|
-
v-model:page="page"
|
|
363
|
-
:total="40"
|
|
364
|
-
:items-per-page="10"
|
|
365
|
-
size="xs"
|
|
366
|
-
color="neutral"
|
|
367
|
-
/>
|
|
368
|
-
<AButton
|
|
369
|
-
:field-key="k('export')"
|
|
370
|
-
size="xs"
|
|
371
|
-
color="neutral"
|
|
372
|
-
variant="soft"
|
|
373
|
-
icon="i-lucide-download"
|
|
374
|
-
label="Export"
|
|
375
|
-
/>
|
|
376
|
-
</div>
|
|
377
|
-
</div>
|
|
378
|
-
|
|
379
|
-
<!-- Settings -->
|
|
380
|
-
<div
|
|
381
|
-
v-else
|
|
382
|
-
class="pt-4 grid gap-5 sm:grid-cols-2"
|
|
383
|
-
>
|
|
384
|
-
<div class="space-y-4">
|
|
385
|
-
<div class="space-y-1.5">
|
|
386
|
-
<label class="text-xs font-medium text-muted">Release notes</label>
|
|
387
|
-
<ATextarea
|
|
388
|
-
v-model="notes"
|
|
389
|
-
:field-key="k('notes')"
|
|
390
|
-
peers
|
|
391
|
-
:rows="4"
|
|
392
|
-
autoresize
|
|
393
|
-
size="xs"
|
|
394
|
-
variant="soft"
|
|
395
|
-
color="neutral"
|
|
396
|
-
class="w-full"
|
|
397
|
-
/>
|
|
398
|
-
</div>
|
|
399
|
-
<div class="space-y-1.5">
|
|
400
|
-
<label class="text-xs font-medium text-muted">Tags</label>
|
|
401
|
-
<AInputTags
|
|
402
|
-
v-model="tags"
|
|
403
|
-
:field-key="k('tags')"
|
|
404
|
-
size="xs"
|
|
405
|
-
variant="soft"
|
|
406
|
-
color="neutral"
|
|
407
|
-
class="w-full"
|
|
408
|
-
/>
|
|
409
|
-
</div>
|
|
410
|
-
<div class="space-y-1.5">
|
|
411
|
-
<label class="text-xs font-medium text-muted">Accent</label>
|
|
412
|
-
<!-- In a popover: <AColorPicker> renders the full
|
|
413
|
-
saturation/hue panel inline, which dwarfs the rest of
|
|
414
|
-
the form and puts a rainbow in the middle of a
|
|
415
|
-
monochrome page. The swatch trigger keeps the chrome
|
|
416
|
-
quiet and the awareness halo still lands on it. -->
|
|
417
|
-
<UPopover>
|
|
418
|
-
<button
|
|
419
|
-
type="button"
|
|
420
|
-
class="flex items-center gap-2 rounded-md px-2 py-1 text-xs
|
|
421
|
-
bg-black/[0.04] dark:bg-white/[0.06]
|
|
422
|
-
ring-1 ring-inset ring-black/5 dark:ring-white/10
|
|
423
|
-
hover:bg-black/[0.07] dark:hover:bg-white/[0.1] transition-colors"
|
|
424
|
-
>
|
|
425
|
-
<span
|
|
426
|
-
class="size-3.5 rounded-full ring-1 ring-inset ring-black/10 dark:ring-white/15"
|
|
427
|
-
:style="{ background: accent }"
|
|
428
|
-
/>
|
|
429
|
-
<span class="tabular-nums text-muted">{{ accent }}</span>
|
|
430
|
-
</button>
|
|
431
|
-
<template #content>
|
|
432
|
-
<div class="p-2">
|
|
433
|
-
<AColorPicker
|
|
434
|
-
v-model="accent"
|
|
435
|
-
:field-key="k('accent')"
|
|
436
|
-
size="xs"
|
|
437
|
-
/>
|
|
438
|
-
</div>
|
|
439
|
-
</template>
|
|
440
|
-
</UPopover>
|
|
441
|
-
</div>
|
|
442
|
-
</div>
|
|
443
|
-
|
|
444
|
-
<div class="space-y-4">
|
|
445
|
-
<div class="flex items-center justify-between gap-3">
|
|
446
|
-
<span class="text-xs font-medium text-muted">Realtime sync</span>
|
|
447
|
-
<ASwitch
|
|
448
|
-
v-model="live"
|
|
449
|
-
:field-key="k('live')"
|
|
450
|
-
size="xs"
|
|
451
|
-
color="neutral"
|
|
452
|
-
/>
|
|
453
|
-
</div>
|
|
454
|
-
<div class="flex items-center justify-between gap-3">
|
|
455
|
-
<span class="text-xs font-medium text-muted">Notify on mention</span>
|
|
456
|
-
<ACheckbox
|
|
457
|
-
v-model="notify"
|
|
458
|
-
:field-key="k('notify')"
|
|
459
|
-
size="xs"
|
|
460
|
-
color="neutral"
|
|
461
|
-
/>
|
|
462
|
-
</div>
|
|
463
|
-
<div class="space-y-1.5">
|
|
464
|
-
<label class="text-xs font-medium text-muted">Snapshot density</label>
|
|
465
|
-
<AInputNumber
|
|
466
|
-
v-model="density"
|
|
467
|
-
:field-key="k('density')"
|
|
468
|
-
:min="1"
|
|
469
|
-
:max="9"
|
|
470
|
-
size="xs"
|
|
471
|
-
variant="soft"
|
|
472
|
-
color="neutral"
|
|
473
|
-
class="w-28"
|
|
474
|
-
/>
|
|
475
|
-
</div>
|
|
476
|
-
<div class="space-y-2">
|
|
477
|
-
<label class="text-xs font-medium text-muted">Pipeline</label>
|
|
478
|
-
<AStepper
|
|
479
|
-
v-model="step"
|
|
480
|
-
:field-key="k('stepper')"
|
|
481
|
-
:items="stepperItems"
|
|
482
|
-
size="xs"
|
|
483
|
-
color="neutral"
|
|
484
|
-
/>
|
|
485
|
-
</div>
|
|
486
|
-
</div>
|
|
487
|
-
</div>
|
|
488
|
-
</template>
|
|
489
|
-
</ATabs>
|
|
490
|
-
</section>
|
|
491
|
-
</div>
|
|
492
|
-
|
|
493
|
-
<!-- Status bar -->
|
|
494
|
-
<div
|
|
495
|
-
class="flex items-center gap-3 border-t border-black/5 dark:border-white/10
|
|
496
|
-
px-4 py-2 text-[10px] uppercase tracking-[0.16em] text-dimmed"
|
|
497
|
-
>
|
|
498
|
-
<span class="flex items-center gap-1.5">
|
|
499
|
-
<span class="size-1.5 rounded-full bg-emerald-500" /> Connected
|
|
500
|
-
</span>
|
|
501
|
-
<span class="ml-auto normal-case tracking-normal">
|
|
502
|
-
Hover, focus and drag anything — other visitors see it.
|
|
503
|
-
</span>
|
|
504
|
-
</div>
|
|
505
|
-
</div>
|
|
506
|
-
</div>
|
|
507
|
-
|
|
508
|
-
<!-- Owner note: how to point this window somewhere else. -->
|
|
509
|
-
<p
|
|
510
|
-
v-if="editing"
|
|
511
|
-
class="mt-4 text-center text-xs text-dimmed"
|
|
512
|
-
>
|
|
513
|
-
Set <code class="text-muted">meta.windowUrl</code> to change the address bar.
|
|
514
|
-
</p>
|
|
515
|
-
</div>
|
|
516
|
-
</template>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
docId: string;
|
|
3
|
-
docLabel?: string;
|
|
4
|
-
docMeta?: Record<string, unknown>;
|
|
5
|
-
childProvider?: unknown;
|
|
6
|
-
editable?: boolean;
|
|
7
|
-
};
|
|
8
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
-
declare const _default: typeof __VLS_export;
|
|
10
|
-
export default _default;
|