@abraca/junis 2.82.0 → 2.84.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 +19 -14
- package/dist/module.json +1 -1
- package/dist/module.mjs +21 -2
- package/dist/runtime/assets/css/jun.css +1 -1
- package/dist/runtime/components/JunCampfireChat.vue +7 -5
- package/dist/runtime/components/JunCampfireComposer.d.vue.ts +27 -0
- package/dist/runtime/components/JunCampfireComposer.vue +158 -0
- package/dist/runtime/components/JunCampfireComposer.vue.d.ts +27 -0
- package/dist/runtime/components/JunCampfirePanel.vue +18 -28
- package/dist/runtime/components/JunCampfirePresence.client.vue +109 -9
- package/dist/runtime/components/JunCampfireReactions.d.vue.ts +13 -0
- package/dist/runtime/components/JunCampfireReactions.vue +142 -0
- package/dist/runtime/components/JunCampfireReactions.vue.d.ts +13 -0
- package/dist/runtime/components/JunCampfireRoster.vue +92 -41
- package/dist/runtime/components/JunCampfireYou.vue +9 -9
- package/dist/runtime/components/JunGlobeEditor.client.vue +396 -183
- package/dist/runtime/components/JunGlobeMap.client.vue +1 -0
- package/dist/runtime/components/JunHorizontalTimeline.vue +41 -4
- package/dist/runtime/components/JunImagePopup.client.vue +1 -1
- package/dist/runtime/components/JunMosaicPane.client.d.vue.ts +9 -0
- package/dist/runtime/components/JunMosaicPane.client.vue +63 -3
- package/dist/runtime/components/JunMosaicPane.client.vue.d.ts +9 -0
- package/dist/runtime/components/JunStudioBar.client.vue +2 -1
- package/dist/runtime/components/renderers/JunAppsRenderer.vue +5 -5
- package/dist/runtime/components/renderers/JunCvRenderer.vue +1 -1
- package/dist/runtime/components/renderers/JunEntryRenderer.vue +1 -1
- package/dist/runtime/components/renderers/JunGuestbookRenderer.vue +2 -0
- package/dist/runtime/components/renderers/JunHomeRenderer.vue +2 -2
- package/dist/runtime/components/renderers/JunJournalRenderer.vue +6 -6
- package/dist/runtime/components/renderers/JunLiveRenderer.vue +2 -1
- package/dist/runtime/components/renderers/JunMosaicRenderer.vue +14 -12
- package/dist/runtime/components/renderers/JunMovieRenderer.vue +1 -1
- package/dist/runtime/components/renderers/JunNowRenderer.vue +39 -0
- package/dist/runtime/components/renderers/JunProjectRenderer.vue +2 -2
- package/dist/runtime/components/renderers/JunStatsRenderer.vue +15 -2
- package/dist/runtime/components/renderers/JunTrackRenderer.vue +44 -0
- package/dist/runtime/components/renderers/JunWallRenderer.vue +1 -0
- package/dist/runtime/composables/useJunCampfire.d.ts +2 -0
- package/dist/runtime/composables/useJunCampfire.js +11 -1
- package/dist/runtime/composables/useJunChrome.js +11 -2
- package/dist/runtime/composables/useJunDocMenu.d.ts +16 -1
- package/dist/runtime/composables/useJunDocMenu.js +8 -0
- package/dist/runtime/composables/useJunTheme.js +9 -0
- package/dist/runtime/layouts/jun.vue +10 -0
- package/dist/runtime/plugins/jun-fresh-server.client.d.ts +2 -0
- package/dist/runtime/plugins/jun-fresh-server.client.js +42 -0
- package/dist/runtime/server/janitor/junJanitorChores.d.ts +23 -2
- package/dist/runtime/server/janitor/junJanitorChores.js +74 -8
- package/dist/runtime/server/janitor/junJanitorMachine.js +16 -2
- package/dist/runtime/server/janitor/junJanitorStore.d.ts +35 -1
- package/dist/runtime/server/janitor/junJanitorStore.js +62 -4
- package/dist/runtime/server/plugins/jun-bootstrap.js +88 -3
- package/dist/runtime/server/utils/junVisibility.js +2 -0
- package/dist/runtime/types.d.ts +26 -0
- package/dist/runtime/utils/junVisibility.js +2 -0
- package/package.json +10 -8
|
@@ -125,11 +125,32 @@ function scrollConnectorIntoView(i) {
|
|
|
125
125
|
const el = container.value?.querySelector(`[data-conn="${i}"]`);
|
|
126
126
|
el?.scrollIntoView({ behavior: "smooth", inline: "center", block: "nearest" });
|
|
127
127
|
}
|
|
128
|
+
const track = ref(null);
|
|
129
|
+
const expandedH = ref(0);
|
|
130
|
+
let trackRO = null;
|
|
131
|
+
function measureTrack() {
|
|
132
|
+
const el = track.value;
|
|
133
|
+
if (!el) return;
|
|
134
|
+
const h = Math.ceil(el.scrollHeight);
|
|
135
|
+
if (h && h !== expandedH.value) expandedH.value = h;
|
|
136
|
+
}
|
|
128
137
|
onMounted(() => {
|
|
129
138
|
window.addEventListener("keydown", onKey);
|
|
130
139
|
nextTick(() => container.value?.focus?.({ preventScroll: true }));
|
|
140
|
+
nextTick(() => {
|
|
141
|
+
measureTrack();
|
|
142
|
+
if (track.value && typeof ResizeObserver !== "undefined") {
|
|
143
|
+
trackRO = new ResizeObserver(measureTrack);
|
|
144
|
+
trackRO.observe(track.value);
|
|
145
|
+
}
|
|
146
|
+
});
|
|
131
147
|
});
|
|
132
|
-
onBeforeUnmount(() =>
|
|
148
|
+
onBeforeUnmount(() => {
|
|
149
|
+
window.removeEventListener("keydown", onKey);
|
|
150
|
+
trackRO?.disconnect();
|
|
151
|
+
trackRO = null;
|
|
152
|
+
});
|
|
153
|
+
watch(() => items.value.length, () => void nextTick(measureTrack));
|
|
133
154
|
watch(() => props.selectedId, (id) => {
|
|
134
155
|
if (id) scrollIntoView(id);
|
|
135
156
|
});
|
|
@@ -197,6 +218,7 @@ function fmt(s) {
|
|
|
197
218
|
<footer
|
|
198
219
|
class="jun-timeline jun-chrome group/tl pointer-events-auto relative mx-auto w-full max-w-6xl
|
|
199
220
|
overflow-hidden rounded-t-lg rounded-b-none border-b-0"
|
|
221
|
+
:style="expandedH ? { '--jun-tl-expanded': `${expandedH}px` } : void 0"
|
|
200
222
|
@pointerleave="hoveredId = null;
|
|
201
223
|
hoveredConn = null"
|
|
202
224
|
>
|
|
@@ -242,7 +264,10 @@ function fmt(s) {
|
|
|
242
264
|
@pointercancel="onPointerUp"
|
|
243
265
|
@wheel="onWheel"
|
|
244
266
|
>
|
|
245
|
-
<ol
|
|
267
|
+
<ol
|
|
268
|
+
ref="track"
|
|
269
|
+
class="flex items-end gap-0 px-12 min-w-max pt-8 pb-3 select-none"
|
|
270
|
+
>
|
|
246
271
|
<template
|
|
247
272
|
v-for="(wp, i) in items"
|
|
248
273
|
:key="wp.id"
|
|
@@ -251,6 +276,7 @@ function fmt(s) {
|
|
|
251
276
|
<li
|
|
252
277
|
v-if="i > 0"
|
|
253
278
|
:data-conn="i"
|
|
279
|
+
:data-jun-anchor="`leg:${wp.id}`"
|
|
254
280
|
class="jun-connector relative flex flex-col items-center justify-end self-end mb-[14px] mx-1 cursor-pointer"
|
|
255
281
|
:class="{ 'is-pulsing': pulsingIdx === i }"
|
|
256
282
|
:style="{ width: connectorWidth(distanceKm(items[i - 1], wp)) + 'px' }"
|
|
@@ -289,9 +315,20 @@ function fmt(s) {
|
|
|
289
315
|
</div>
|
|
290
316
|
</li>
|
|
291
317
|
|
|
292
|
-
<!-- Waypoint orb
|
|
318
|
+
<!-- Waypoint orb.
|
|
319
|
+
|
|
320
|
+
`data-jun-anchor` is what lets a peer's pointer land HERE
|
|
321
|
+
rather than at a viewport-normalised guess. `JunPresenceBlobs`
|
|
322
|
+
resolves an explicit anchor first and the enclosing link's
|
|
323
|
+
`href` second — and a timeline waypoint is a `<li>` with a
|
|
324
|
+
click handler, not a link, so without this it falls all the
|
|
325
|
+
way through to the fallback and paints in the wrong place.
|
|
326
|
+
Keyed on the DOCUMENT ID, which every peer agrees on; a DOM
|
|
327
|
+
index would not survive owners seeing affordances visitors
|
|
328
|
+
do not. -->
|
|
293
329
|
<li
|
|
294
330
|
:data-id="wp.id"
|
|
331
|
+
:data-jun-anchor="`wp:${wp.id}`"
|
|
295
332
|
class="jun-waypoint group flex flex-col items-center shrink-0 snap-center
|
|
296
333
|
cursor-pointer focus-visible:outline-none"
|
|
297
334
|
:class="posClass(i)"
|
|
@@ -359,5 +396,5 @@ function fmt(s) {
|
|
|
359
396
|
</template>
|
|
360
397
|
|
|
361
398
|
<style scoped>
|
|
362
|
-
.jun-timeline{height:54px;margin-bottom:env(safe-area-inset-bottom);transition:height .3s ease,background-color .3s ease,border-color .3s ease,color .3s ease}.jun-timeline:hover{height:120px}.jun-tl-fade-enter-active{transition:opacity .5s ease}.jun-tl-fade-enter-from{opacity:0}.jun-tl-ctrl{align-items:center;backdrop-filter:blur(6px);border-radius:9999px;display:flex;height:2rem;justify-content:center;opacity:0;position:absolute;top:14px;transition:opacity .3s ease,background-color .2s ease,color .2s ease;width:2rem;z-index:5}.group\/tl:hover .jun-tl-ctrl{opacity:1}.jun-shimmer{animation:jun-shimmer 3s linear infinite;background:linear-gradient(90deg,transparent 0,color-mix(in srgb,var(--shimmer,#fff) 75%,#fff) 50%,transparent 100%);inset:0;position:absolute;transform:translateX(-100%)}.jun-connector:hover .jun-shimmer{animation-duration:1.5s}@keyframes jun-shimmer{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}.jun-connector.is-pulsing{animation:jun-conn-pulse .6s ease}@keyframes jun-conn-pulse{0%{transform:scaleY(1)}50%{filter:brightness(1.4);transform:scaleY(2.2)}to{transform:scaleY(1)}}.jun-orb-ring{background:radial-gradient(circle at center,color-mix(in srgb,var(--c,#e4e4e7) 60%,transparent) 0,transparent 65%);transition:filter .3s ease}.jun-orb-core{background:color-mix(in srgb,var(--c,#e4e4e7) 55%,#fff)}.jun-waypoint.is-selected .jun-orb-core,.jun-waypoint:hover .jun-orb-core{background:var(--c,#fff)}.jun-waypoint.is-selected .jun-orb-ring,.jun-waypoint:hover .jun-orb-ring{filter:brightness(1.4)}.jun-waypoint{transition:opacity .3s ease,filter .3s ease}.jun-waypoint.is-future,.jun-waypoint.is-past{filter:saturate(.7);opacity:.5}.jun-waypoint.is-future:hover,.jun-waypoint.is-past:hover{filter:none;opacity:.9}.jun-waypoint.is-selected{opacity:1}.jun-timeline-scroll::-webkit-scrollbar{display:none}.jun-timeline-scroll{scrollbar-width:none}@media (prefers-reduced-motion:reduce){.jun-connector.is-pulsing,.jun-shimmer{animation:none}}
|
|
399
|
+
.jun-timeline{height:54px;margin-bottom:env(safe-area-inset-bottom);transition:height .3s ease,background-color .3s ease,border-color .3s ease,color .3s ease}.jun-timeline:has(.jun-waypoint:focus),.jun-timeline:hover{height:min(var(--jun-tl-expanded,120px),45vh)}.jun-timeline:has(.jun-waypoint:focus) .jun-timeline-scroll,.jun-timeline:hover .jun-timeline-scroll{overflow-y:auto}.jun-tl-fade-enter-active{transition:opacity .5s ease}.jun-tl-fade-enter-from{opacity:0}.jun-tl-ctrl{align-items:center;backdrop-filter:blur(6px);border-radius:9999px;display:flex;height:2rem;justify-content:center;opacity:0;position:absolute;top:14px;transition:opacity .3s ease,background-color .2s ease,color .2s ease;width:2rem;z-index:5}.group\/tl:hover .jun-tl-ctrl{opacity:1}.jun-shimmer{animation:jun-shimmer 3s linear infinite;background:linear-gradient(90deg,transparent 0,color-mix(in srgb,var(--shimmer,#fff) 75%,#fff) 50%,transparent 100%);inset:0;position:absolute;transform:translateX(-100%)}.jun-connector:hover .jun-shimmer{animation-duration:1.5s}@keyframes jun-shimmer{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}.jun-connector.is-pulsing{animation:jun-conn-pulse .6s ease}@keyframes jun-conn-pulse{0%{transform:scaleY(1)}50%{filter:brightness(1.4);transform:scaleY(2.2)}to{transform:scaleY(1)}}.jun-orb-ring{background:radial-gradient(circle at center,color-mix(in srgb,var(--c,#e4e4e7) 60%,transparent) 0,transparent 65%);transition:filter .3s ease}.jun-orb-core{background:color-mix(in srgb,var(--c,#e4e4e7) 55%,#fff)}.jun-waypoint.is-selected .jun-orb-core,.jun-waypoint:hover .jun-orb-core{background:var(--c,#fff)}.jun-waypoint.is-selected .jun-orb-ring,.jun-waypoint:hover .jun-orb-ring{filter:brightness(1.4)}.jun-waypoint{transition:opacity .3s ease,filter .3s ease}.jun-waypoint.is-future,.jun-waypoint.is-past{filter:saturate(.7);opacity:.5}.jun-waypoint.is-future:hover,.jun-waypoint.is-past:hover{filter:none;opacity:.9}.jun-waypoint.is-selected{opacity:1}.jun-timeline-scroll::-webkit-scrollbar{display:none}.jun-timeline-scroll{scrollbar-width:none}@media (prefers-reduced-motion:reduce){.jun-connector.is-pulsing,.jun-shimmer{animation:none}}
|
|
363
400
|
</style>
|
|
@@ -341,7 +341,7 @@ useEventListener("touchend", () => {
|
|
|
341
341
|
@click="dismiss"
|
|
342
342
|
>
|
|
343
343
|
<div
|
|
344
|
-
class="absolute inset-0 bg-
|
|
344
|
+
class="absolute inset-0 bg-neutral-50/85 backdrop-blur-md transition-opacity duration-300 dark:bg-neutral-950/85"
|
|
345
345
|
:class="backdropOn ? 'opacity-100' : 'opacity-0'"
|
|
346
346
|
/>
|
|
347
347
|
|
|
@@ -13,12 +13,21 @@ type __VLS_Props = {
|
|
|
13
13
|
live?: boolean;
|
|
14
14
|
/** Why it is a card rather than a renderer. Shown to the owner only. */
|
|
15
15
|
fallbackNote?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Where clicking the tile goes. `null` suppresses the click layer entirely
|
|
18
|
+
* — an interactive pane, or the owner arranging the grid.
|
|
19
|
+
*/
|
|
20
|
+
to?: string | null;
|
|
21
|
+
/** `meta.paneScroll === false`. Clips like it used to. */
|
|
22
|
+
noScroll?: boolean;
|
|
16
23
|
};
|
|
17
24
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
25
|
+
to: string | null;
|
|
18
26
|
interactive: boolean;
|
|
19
27
|
icon: string;
|
|
20
28
|
live: boolean;
|
|
21
29
|
fallbackNote: string;
|
|
30
|
+
noScroll: boolean;
|
|
22
31
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
32
|
declare const _default: typeof __VLS_export;
|
|
24
33
|
export default _default;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { onBeforeUnmount, onMounted, ref } from "vue";
|
|
2
|
+
import { computed, onBeforeUnmount, onMounted, ref } from "vue";
|
|
3
3
|
const props = defineProps({
|
|
4
4
|
targetDocId: { type: String, required: true },
|
|
5
5
|
label: { type: String, required: true },
|
|
6
6
|
icon: { type: String, required: false, default: "i-lucide-file-text" },
|
|
7
7
|
interactive: { type: Boolean, required: false, default: false },
|
|
8
8
|
live: { type: Boolean, required: false, default: true },
|
|
9
|
-
fallbackNote: { type: String, required: false, default: "" }
|
|
9
|
+
fallbackNote: { type: String, required: false, default: "" },
|
|
10
|
+
to: { type: [String, null], required: false, default: null },
|
|
11
|
+
noScroll: { type: Boolean, required: false, default: false }
|
|
10
12
|
});
|
|
13
|
+
const scrolls = computed(() => !props.interactive && !props.noScroll);
|
|
11
14
|
const el = ref(null);
|
|
12
15
|
const mounted = ref(false);
|
|
13
16
|
let observer = null;
|
|
@@ -40,8 +43,50 @@ onBeforeUnmount(() => {
|
|
|
40
43
|
class="relative h-full w-full overflow-hidden"
|
|
41
44
|
>
|
|
42
45
|
<template v-if="live">
|
|
46
|
+
<!-- SCROLLING. `awareness` is off: an aware ring and hover broadcast per
|
|
47
|
+
tile would put a `useAAField` on every pane of every mosaic, and the
|
|
48
|
+
tile already carries the mosaic's own presence anchor. `peers` is
|
|
49
|
+
kept — where somebody else is reading inside a tile is exactly the
|
|
50
|
+
sort of thing this site is for. -->
|
|
51
|
+
<AScroll
|
|
52
|
+
v-if="mounted && scrolls"
|
|
53
|
+
:field-key="`jun-mosaic:${targetDocId}`"
|
|
54
|
+
:awareness="false"
|
|
55
|
+
peers
|
|
56
|
+
class="jun-mosaic-scroll h-full w-full"
|
|
57
|
+
>
|
|
58
|
+
<!-- `min-h-full`, NOT `h-full`: the content must be free to EXCEED the
|
|
59
|
+
tile (that is the whole point) while a renderer with no intrinsic
|
|
60
|
+
height — one that used to size itself off the `h-full` this
|
|
61
|
+
replaces — still fills it instead of collapsing to nothing.
|
|
62
|
+
`relative` because the click layer below is sized to this box. -->
|
|
63
|
+
<div class="relative min-h-full w-full">
|
|
64
|
+
<div :class="interactive ? '' : 'pointer-events-none select-none'">
|
|
65
|
+
<ADocRenderer
|
|
66
|
+
:doc-id="targetDocId"
|
|
67
|
+
:editable="false"
|
|
68
|
+
:show-sub-pages="false"
|
|
69
|
+
editor-class="w-full"
|
|
70
|
+
renderer-class="w-full"
|
|
71
|
+
>
|
|
72
|
+
<template #loading>
|
|
73
|
+
<div class="h-40 w-full animate-pulse bg-black/[0.04] dark:bg-white/[0.06]" />
|
|
74
|
+
</template>
|
|
75
|
+
</ADocRenderer>
|
|
76
|
+
</div>
|
|
77
|
+
|
|
78
|
+
<!-- Inside the scroller, over the whole CONTENT. See the header. -->
|
|
79
|
+
<NuxtLink
|
|
80
|
+
v-if="to"
|
|
81
|
+
:to="to"
|
|
82
|
+
class="absolute inset-0 z-10"
|
|
83
|
+
:aria-label="label"
|
|
84
|
+
/>
|
|
85
|
+
</div>
|
|
86
|
+
</AScroll>
|
|
87
|
+
|
|
43
88
|
<div
|
|
44
|
-
v-if="mounted"
|
|
89
|
+
v-else-if="mounted"
|
|
45
90
|
class="h-full w-full overflow-hidden"
|
|
46
91
|
:class="interactive ? '' : 'pointer-events-none select-none'"
|
|
47
92
|
>
|
|
@@ -91,5 +136,20 @@ onBeforeUnmount(() => {
|
|
|
91
136
|
{{ fallbackNote }}
|
|
92
137
|
</p>
|
|
93
138
|
</div>
|
|
139
|
+
|
|
140
|
+
<!-- The click layer for every case the scroller does NOT cover: a card, a
|
|
141
|
+
pane still waiting to come into view, and one opted out of scrolling.
|
|
142
|
+
The scrolling case renders its own INSIDE the scroller, because an
|
|
143
|
+
anchor over the tile swallows the wheel. -->
|
|
144
|
+
<NuxtLink
|
|
145
|
+
v-if="to && !(live && mounted && scrolls)"
|
|
146
|
+
:to="to"
|
|
147
|
+
class="absolute inset-0 z-10"
|
|
148
|
+
:aria-label="label"
|
|
149
|
+
/>
|
|
94
150
|
</div>
|
|
95
151
|
</template>
|
|
152
|
+
|
|
153
|
+
<style scoped>
|
|
154
|
+
.jun-mosaic-scroll{scrollbar-width:none}.jun-mosaic-scroll::-webkit-scrollbar{display:none}
|
|
155
|
+
</style>
|
|
@@ -13,12 +13,21 @@ type __VLS_Props = {
|
|
|
13
13
|
live?: boolean;
|
|
14
14
|
/** Why it is a card rather than a renderer. Shown to the owner only. */
|
|
15
15
|
fallbackNote?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Where clicking the tile goes. `null` suppresses the click layer entirely
|
|
18
|
+
* — an interactive pane, or the owner arranging the grid.
|
|
19
|
+
*/
|
|
20
|
+
to?: string | null;
|
|
21
|
+
/** `meta.paneScroll === false`. Clips like it used to. */
|
|
22
|
+
noScroll?: boolean;
|
|
16
23
|
};
|
|
17
24
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
25
|
+
to: string | null;
|
|
18
26
|
interactive: boolean;
|
|
19
27
|
icon: string;
|
|
20
28
|
live: boolean;
|
|
21
29
|
fallbackNote: string;
|
|
30
|
+
noScroll: boolean;
|
|
22
31
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
32
|
declare const _default: typeof __VLS_export;
|
|
24
33
|
export default _default;
|
|
@@ -80,7 +80,8 @@ const typeMenuItems = computed(() => [
|
|
|
80
80
|
docTypes.value.map((t) => ({
|
|
81
81
|
label: t.label,
|
|
82
82
|
icon: normalizeIcon(t.icon),
|
|
83
|
-
|
|
83
|
+
type: "checkbox",
|
|
84
|
+
checked: t.key === currentType.value,
|
|
84
85
|
onSelect: () => changeType(t.key, t.label)
|
|
85
86
|
}))
|
|
86
87
|
]);
|
|
@@ -185,30 +185,30 @@ async function onTileFileDrop(item, e) {
|
|
|
185
185
|
/>
|
|
186
186
|
<div
|
|
187
187
|
v-else
|
|
188
|
-
class="flex h-[60%] w-[60%] items-center justify-center rounded-xl bg-linear-to-br from-
|
|
188
|
+
class="flex h-[60%] w-[60%] items-center justify-center rounded-xl bg-linear-to-br from-neutral-100 to-neutral-300 shadow-lg shadow-black/20 ring-1 ring-neutral-200 transition-transform duration-300 group-hover:scale-110 sm:rounded-2xl dark:from-neutral-700 dark:to-neutral-900 dark:ring-white/10"
|
|
189
189
|
>
|
|
190
190
|
<UIcon
|
|
191
191
|
name="i-lucide-box"
|
|
192
|
-
class="size-7 text-
|
|
192
|
+
class="size-7 text-neutral-400 sm:size-8 dark:text-neutral-500"
|
|
193
193
|
/>
|
|
194
194
|
</div>
|
|
195
195
|
|
|
196
196
|
<span
|
|
197
197
|
v-if="clickedId === app.id"
|
|
198
198
|
aria-hidden="true"
|
|
199
|
-
class="absolute inset-0 animate-ping rounded-xl ring-2 ring-
|
|
199
|
+
class="absolute inset-0 animate-ping rounded-xl ring-2 ring-neutral-900/40 sm:rounded-2xl dark:ring-white/40"
|
|
200
200
|
/>
|
|
201
201
|
|
|
202
202
|
<UIcon
|
|
203
203
|
v-if="app.meta?.location"
|
|
204
204
|
name="i-lucide-map-pin"
|
|
205
|
-
class="absolute bottom-2 left-2 size-4 text-
|
|
205
|
+
class="absolute bottom-2 left-2 size-4 text-neutral-500 opacity-70 dark:text-neutral-400"
|
|
206
206
|
/>
|
|
207
207
|
</div>
|
|
208
208
|
|
|
209
209
|
<div class="mt-2 flex items-center justify-center sm:mt-3">
|
|
210
210
|
<span
|
|
211
|
-
class="inline-block max-w-full truncate rounded-md px-2 py-0.5 text-sm font-semibold text-highlighted transition-all duration-300 group-hover:bg-
|
|
211
|
+
class="inline-block max-w-full truncate rounded-md px-2 py-0.5 text-sm font-semibold text-highlighted transition-all duration-300 group-hover:bg-neutral-900 group-hover:text-white sm:text-base dark:group-hover:bg-neutral-100 dark:group-hover:text-neutral-900"
|
|
212
212
|
>{{ app.label }}</span>
|
|
213
213
|
</div>
|
|
214
214
|
|
|
@@ -157,7 +157,7 @@ const {
|
|
|
157
157
|
>
|
|
158
158
|
<div
|
|
159
159
|
aria-hidden="true"
|
|
160
|
-
class="absolute top-5 left-[13px] h-[13px] w-[13px] rounded-full bg-white ring-2 ring-black/25 dark:bg-
|
|
160
|
+
class="absolute top-5 left-[13px] h-[13px] w-[13px] rounded-full bg-white ring-2 ring-black/25 dark:bg-neutral-900 dark:ring-white/30"
|
|
161
161
|
/>
|
|
162
162
|
|
|
163
163
|
<JunItemMenu
|
|
@@ -330,7 +330,7 @@ function removeCover() {
|
|
|
330
330
|
<!-- Cover -->
|
|
331
331
|
<div
|
|
332
332
|
v-if="meta.coverUrl || meta.coverUploadId"
|
|
333
|
-
class="group/cover relative mt-7 cursor-zoom-in overflow-hidden rounded-xl shadow-lg shadow-black/15 ring-1 ring-
|
|
333
|
+
class="group/cover relative mt-7 cursor-zoom-in overflow-hidden rounded-xl shadow-lg shadow-black/15 ring-1 ring-neutral-200/70 dark:ring-white/10"
|
|
334
334
|
:class="coverDropActive ? 'ring-2 ring-black/40 dark:ring-white/50' : ''"
|
|
335
335
|
@dragover="onCoverDragOver"
|
|
336
336
|
@dragleave="coverDropActive = false"
|
|
@@ -153,6 +153,7 @@ function deleteSignature(entry) {
|
|
|
153
153
|
<ClientOnly>
|
|
154
154
|
<div
|
|
155
155
|
v-if="guestbookOpen && myCount < 3"
|
|
156
|
+
data-jun-anchor="guestbook:sign"
|
|
156
157
|
class="jun-card mb-10 rounded-2xl p-4 sm:p-5"
|
|
157
158
|
>
|
|
158
159
|
<div class="mb-3 flex items-center gap-2">
|
|
@@ -236,6 +237,7 @@ function deleteSignature(entry) {
|
|
|
236
237
|
v-for="(entry, i) in signatures"
|
|
237
238
|
:key="entry.id"
|
|
238
239
|
v-motion="junMotion(junStagger(i, { delayMs: 50 }))"
|
|
240
|
+
:data-jun-anchor="`doc:${entry.id}`"
|
|
239
241
|
>
|
|
240
242
|
<JunItemMenu
|
|
241
243
|
:entry="entry"
|
|
@@ -418,11 +418,11 @@ const studioOpen = ref(false);
|
|
|
418
418
|
/>
|
|
419
419
|
<span
|
|
420
420
|
v-else
|
|
421
|
-
class="flex h-[60%] w-[60%] items-center justify-center rounded-xl bg-linear-to-br from-
|
|
421
|
+
class="flex h-[60%] w-[60%] items-center justify-center rounded-xl bg-linear-to-br from-neutral-100 to-neutral-300 shadow-lg shadow-black/20 ring-1 ring-neutral-200 dark:from-neutral-700 dark:to-neutral-900 dark:ring-white/10"
|
|
422
422
|
>
|
|
423
423
|
<UIcon
|
|
424
424
|
name="i-lucide-box"
|
|
425
|
-
class="size-6 text-
|
|
425
|
+
class="size-6 text-neutral-400 dark:text-neutral-500"
|
|
426
426
|
/>
|
|
427
427
|
</span>
|
|
428
428
|
</span>
|
|
@@ -199,7 +199,7 @@ function corners(i) {
|
|
|
199
199
|
:class="[
|
|
200
200
|
corners(0),
|
|
201
201
|
'group relative mb-8 block overflow-hidden',
|
|
202
|
-
'ring-1 ring-
|
|
202
|
+
'ring-1 ring-neutral-200/70 dark:ring-white/15',
|
|
203
203
|
'shadow-lg shadow-black/20',
|
|
204
204
|
'transition-all duration-300 hover:scale-[1.01] hover:shadow-xl',
|
|
205
205
|
dropTargetId === hero.id ? 'ring-2 ring-black/40 dark:ring-white/50' : '',
|
|
@@ -237,11 +237,11 @@ function corners(i) {
|
|
|
237
237
|
/>
|
|
238
238
|
<div
|
|
239
239
|
v-else
|
|
240
|
-
class="flex h-full w-full items-center justify-center bg-linear-to-br from-
|
|
240
|
+
class="flex h-full w-full items-center justify-center bg-linear-to-br from-neutral-200 to-neutral-400 dark:from-neutral-800 dark:to-neutral-950"
|
|
241
241
|
>
|
|
242
242
|
<UIcon
|
|
243
243
|
name="i-lucide-feather"
|
|
244
|
-
class="size-12 text-
|
|
244
|
+
class="size-12 text-neutral-400/60 dark:text-neutral-600/70"
|
|
245
245
|
/>
|
|
246
246
|
</div>
|
|
247
247
|
<div class="absolute inset-0 bg-linear-to-t from-black/70 via-black/10 to-transparent" />
|
|
@@ -259,7 +259,7 @@ function corners(i) {
|
|
|
259
259
|
</div>
|
|
260
260
|
|
|
261
261
|
<div
|
|
262
|
-
class="border-t border-default bg-gradient-to-b from-white/75 to-white/55 px-5 py-6 backdrop-blur-xl sm:px-8 sm:py-8 dark:from-
|
|
262
|
+
class="border-t border-default bg-gradient-to-b from-white/75 to-white/55 px-5 py-6 backdrop-blur-xl sm:px-8 sm:py-8 dark:from-neutral-900/70 dark:to-neutral-900/55"
|
|
263
263
|
>
|
|
264
264
|
<!-- Owner: the date edits in place through the same chip
|
|
265
265
|
vocabulary as the editor's meta header. The wrapper stops the
|
|
@@ -361,11 +361,11 @@ function corners(i) {
|
|
|
361
361
|
/>
|
|
362
362
|
<div
|
|
363
363
|
v-else
|
|
364
|
-
class="flex h-full w-full items-center justify-center bg-linear-to-br from-
|
|
364
|
+
class="flex h-full w-full items-center justify-center bg-linear-to-br from-neutral-200 to-neutral-300 dark:from-neutral-800 dark:to-neutral-950"
|
|
365
365
|
>
|
|
366
366
|
<UIcon
|
|
367
367
|
name="i-lucide-feather"
|
|
368
|
-
class="size-8 text-
|
|
368
|
+
class="size-8 text-neutral-400/60 dark:text-neutral-600/70"
|
|
369
369
|
/>
|
|
370
370
|
</div>
|
|
371
371
|
</div>
|
|
@@ -465,11 +465,12 @@ function onFeedDrop(e) {
|
|
|
465
465
|
v-for="(entry, i) in sorted"
|
|
466
466
|
:key="entry.id"
|
|
467
467
|
v-motion="junMotion(junStagger(Math.min(i, 6), { delayMs: 60, durationMs: 450, yPx: 18 }))"
|
|
468
|
+
:data-jun-anchor="`doc:${entry.id}`"
|
|
468
469
|
class="relative pb-8 pl-12 last:pb-0"
|
|
469
470
|
>
|
|
470
471
|
<div
|
|
471
472
|
aria-hidden="true"
|
|
472
|
-
class="absolute top-4 left-[13px] h-[13px] w-[13px] rounded-full bg-white ring-2 ring-black/25 dark:bg-
|
|
473
|
+
class="absolute top-4 left-[13px] h-[13px] w-[13px] rounded-full bg-white ring-2 ring-black/25 dark:bg-neutral-900 dark:ring-white/30"
|
|
473
474
|
/>
|
|
474
475
|
|
|
475
476
|
<JunItemMenu
|
|
@@ -117,7 +117,11 @@ const panes = computed(
|
|
|
117
117
|
live: !cyclic && !overCap,
|
|
118
118
|
note: cyclic ? "This pane points at a page that contains it." : overCap ? "Past the live-pane limit \u2014 still here, just not rendered." : "",
|
|
119
119
|
icon: iconFor(targetEntry?.type, targetEntry?.meta?.icon),
|
|
120
|
-
interactive: meta.paneInteractive === true
|
|
120
|
+
interactive: meta.paneInteractive === true,
|
|
121
|
+
// Scrolling is ON for a window pane, because clipping a document with no
|
|
122
|
+
// indication that anything was clipped is the bug. `false` is the opt
|
|
123
|
+
// OUT — for a tile that is meant to read as a crop.
|
|
124
|
+
noScroll: meta.paneScroll === false
|
|
121
125
|
};
|
|
122
126
|
})
|
|
123
127
|
);
|
|
@@ -495,25 +499,23 @@ const hereNow = computed(() => travellers.value.filter((t) => !t.idle).length);
|
|
|
495
499
|
|
|
496
500
|
<!-- ── A document ──────────────────────────────────────────────── -->
|
|
497
501
|
<template v-else>
|
|
502
|
+
<!-- The click layer is the PANE's now, not the tile's. A pane is a
|
|
503
|
+
WINDOW: it opens the document rather than letting you work
|
|
504
|
+
inside it — but an anchor stretched over the whole tile also
|
|
505
|
+
swallowed every wheel event, which is why a scrollable tile
|
|
506
|
+
could never have worked while this lived out here. Interactive
|
|
507
|
+
panes get no link, and neither does edit mode, where the tile
|
|
508
|
+
itself is the thing being arranged. -->
|
|
498
509
|
<JunMosaicPane
|
|
499
510
|
:target-doc-id="pane.targetId"
|
|
500
511
|
:label="pane.entry.label"
|
|
501
512
|
:icon="pane.icon"
|
|
502
513
|
:interactive="pane.interactive"
|
|
503
514
|
:live="pane.live"
|
|
515
|
+
:no-scroll="pane.noScroll"
|
|
516
|
+
:to="!pane.interactive && !editing ? getDocUrl(pane.targetId) : null"
|
|
504
517
|
:fallback-note="editing ? pane.note : ''"
|
|
505
518
|
/>
|
|
506
|
-
|
|
507
|
-
<!-- The click layer. A pane is a WINDOW: it opens the document rather
|
|
508
|
-
than letting you work inside it. Interactive panes skip this, and
|
|
509
|
-
so does edit mode, where the tile itself is the thing being
|
|
510
|
-
arranged. -->
|
|
511
|
-
<NuxtLink
|
|
512
|
-
v-if="!pane.interactive && !editing"
|
|
513
|
-
:to="getDocUrl(pane.targetId)"
|
|
514
|
-
class="absolute inset-0 z-10"
|
|
515
|
-
:aria-label="pane.entry.label"
|
|
516
|
-
/>
|
|
517
519
|
</template>
|
|
518
520
|
|
|
519
521
|
<!-- ── Owner affordances ───────────────────────────────────────── -->
|
|
@@ -344,7 +344,7 @@ const factLine = computed(
|
|
|
344
344
|
|
|
345
345
|
<div
|
|
346
346
|
v-else
|
|
347
|
-
class="flex aspect-video w-full items-center justify-center bg-gradient-to-b from-
|
|
347
|
+
class="flex aspect-video w-full items-center justify-center bg-gradient-to-b from-neutral-900 to-black text-white/50"
|
|
348
348
|
>
|
|
349
349
|
<div class="text-center">
|
|
350
350
|
<UIcon
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
junMotion,
|
|
6
6
|
useAbracadabra,
|
|
7
7
|
useChildTree,
|
|
8
|
+
useDocSlugs,
|
|
8
9
|
useDocTree,
|
|
9
10
|
useJunBrand,
|
|
10
11
|
useJunRouting,
|
|
@@ -21,6 +22,10 @@ const props = defineProps({
|
|
|
21
22
|
});
|
|
22
23
|
const abra = useAbracadabra();
|
|
23
24
|
const tree = useChildTree(abra.doc, props.docId);
|
|
25
|
+
const { getDocUrl } = useDocSlugs();
|
|
26
|
+
const otherChildren = computed(
|
|
27
|
+
() => (tree.childrenOf(null) ?? []).filter((e) => !!e.label)
|
|
28
|
+
);
|
|
24
29
|
const brand = useJunBrand();
|
|
25
30
|
const { getEntry } = useDocTree();
|
|
26
31
|
const { editing } = useJunStudio();
|
|
@@ -374,6 +379,40 @@ function commitText(field, e) {
|
|
|
374
379
|
/>
|
|
375
380
|
</div>
|
|
376
381
|
</template>
|
|
382
|
+
|
|
383
|
+
<!-- Children, listed rather than dropped. Same shape the movie and track
|
|
384
|
+
renderers use, because these are the same kind of leaf. -->
|
|
385
|
+
<section
|
|
386
|
+
v-if="otherChildren.length"
|
|
387
|
+
class="mt-8"
|
|
388
|
+
>
|
|
389
|
+
<div class="mb-3 flex items-baseline gap-3">
|
|
390
|
+
<h2 class="text-xs font-medium tracking-[0.22em] text-dimmed uppercase">
|
|
391
|
+
More
|
|
392
|
+
</h2>
|
|
393
|
+
<div class="h-px flex-1 bg-black/10 dark:bg-white/10" />
|
|
394
|
+
</div>
|
|
395
|
+
<ul class="flex flex-wrap gap-2">
|
|
396
|
+
<li
|
|
397
|
+
v-for="child in otherChildren"
|
|
398
|
+
:key="child.id"
|
|
399
|
+
>
|
|
400
|
+
<JunItemMenu
|
|
401
|
+
:entry="child"
|
|
402
|
+
:tree="tree"
|
|
403
|
+
>
|
|
404
|
+
<UButton
|
|
405
|
+
:to="getDocUrl(child.id)"
|
|
406
|
+
icon="i-lucide-file-text"
|
|
407
|
+
color="neutral"
|
|
408
|
+
variant="soft"
|
|
409
|
+
size="xs"
|
|
410
|
+
:label="child.label"
|
|
411
|
+
/>
|
|
412
|
+
</JunItemMenu>
|
|
413
|
+
</li>
|
|
414
|
+
</ul>
|
|
415
|
+
</section>
|
|
377
416
|
</article>
|
|
378
417
|
</template>
|
|
379
418
|
|
|
@@ -188,11 +188,11 @@ function openShot(index, e) {
|
|
|
188
188
|
/>
|
|
189
189
|
<div
|
|
190
190
|
v-else
|
|
191
|
-
class="flex size-20 items-center justify-center rounded-2xl bg-linear-to-br from-
|
|
191
|
+
class="flex size-20 items-center justify-center rounded-2xl bg-linear-to-br from-neutral-100 to-neutral-300 shadow-lg shadow-black/20 ring-1 ring-neutral-200 sm:size-24 dark:from-neutral-700 dark:to-neutral-900 dark:ring-white/10"
|
|
192
192
|
>
|
|
193
193
|
<UIcon
|
|
194
194
|
:name="meta.icon || 'i-lucide-box'"
|
|
195
|
-
class="size-9 text-
|
|
195
|
+
class="size-9 text-neutral-400 dark:text-neutral-500"
|
|
196
196
|
/>
|
|
197
197
|
</div>
|
|
198
198
|
|
|
@@ -270,7 +270,10 @@ const tileMenuItems = computed(() => {
|
|
|
270
270
|
@rename-subtitle="renameSubtitle"
|
|
271
271
|
/>
|
|
272
272
|
|
|
273
|
-
<div
|
|
273
|
+
<div
|
|
274
|
+
data-jun-anchor="stat:summary"
|
|
275
|
+
class="jun-card mb-6 flex items-center gap-3 rounded-2xl px-5 py-4"
|
|
276
|
+
>
|
|
274
277
|
<span
|
|
275
278
|
class="relative flex size-2.5 flex-none"
|
|
276
279
|
aria-hidden="true"
|
|
@@ -304,10 +307,16 @@ const tileMenuItems = computed(() => {
|
|
|
304
307
|
</div>
|
|
305
308
|
|
|
306
309
|
<div class="grid grid-cols-2 gap-3 sm:grid-cols-4">
|
|
310
|
+
<!-- `stat:` and not `doc:` — a tile is a derived figure, not a document,
|
|
311
|
+
so there is no id to key it on. `tile.key` is stable across peers
|
|
312
|
+
(it comes from the tile definition, not from render order) and the
|
|
313
|
+
owner's `statsTiles` selection only ever changes which tiles are
|
|
314
|
+
present, never what a given one is called. -->
|
|
307
315
|
<div
|
|
308
316
|
v-for="(tile, i) in tiles"
|
|
309
317
|
:key="tile.key"
|
|
310
318
|
v-motion="junMotion(junStagger(i, { delayMs: 40 }))"
|
|
319
|
+
:data-jun-anchor="`stat:${tile.key}`"
|
|
311
320
|
class="jun-card rounded-2xl p-4"
|
|
312
321
|
>
|
|
313
322
|
<UIcon
|
|
@@ -331,7 +340,10 @@ const tileMenuItems = computed(() => {
|
|
|
331
340
|
</div>
|
|
332
341
|
|
|
333
342
|
<!-- Activity. Server-only and a HISTORY: the tree cannot answer it. -->
|
|
334
|
-
<div
|
|
343
|
+
<div
|
|
344
|
+
data-jun-anchor="stat:activity"
|
|
345
|
+
class="jun-card mt-3 rounded-2xl p-5"
|
|
346
|
+
>
|
|
335
347
|
<div class="mb-3 flex flex-wrap items-baseline justify-between gap-x-4 gap-y-1">
|
|
336
348
|
<p class="text-[11px] tracking-wider text-dimmed uppercase">
|
|
337
349
|
Activity · last 30 days
|
|
@@ -406,6 +418,7 @@ const tileMenuItems = computed(() => {
|
|
|
406
418
|
<!-- What the site is MADE of. Live: the tree can answer this one. -->
|
|
407
419
|
<div
|
|
408
420
|
v-if="typeBreakdown.length > 1"
|
|
421
|
+
data-jun-anchor="stat:by-type"
|
|
409
422
|
class="jun-card mt-3 rounded-2xl p-5"
|
|
410
423
|
>
|
|
411
424
|
<p class="mb-3 text-[11px] tracking-wider text-dimmed uppercase">
|
|
@@ -26,6 +26,9 @@ const abra = useAbracadabra();
|
|
|
26
26
|
const tree = useChildTree(abra.doc, props.docId);
|
|
27
27
|
const { entries, getEntry } = useDocTree();
|
|
28
28
|
const { getDocUrl } = useDocSlugs();
|
|
29
|
+
const otherChildren = computed(
|
|
30
|
+
() => (tree.childrenOf(null) ?? []).filter((e) => !!e.label)
|
|
31
|
+
);
|
|
29
32
|
const { editing } = useJunStudio();
|
|
30
33
|
const { renameDoc } = useJunRename();
|
|
31
34
|
const { uploadTo, imageFiles } = useJunUpload();
|
|
@@ -357,6 +360,47 @@ const factLine = computed(
|
|
|
357
360
|
</ul>
|
|
358
361
|
</section>
|
|
359
362
|
|
|
363
|
+
<!-- Children, listed rather than dropped.
|
|
364
|
+
|
|
365
|
+
This renderer read none of them. Every other renderer in the module
|
|
366
|
+
tolerates a child created under a different page type — "never silently
|
|
367
|
+
drop a child" is what makes `Page type ▸` a safe context-menu item
|
|
368
|
+
rather than a data-loss button — and a track was the one page where
|
|
369
|
+
converting a document with children made them invisible. Same shape the
|
|
370
|
+
movie renderer uses, because a track and a film are the same kind of
|
|
371
|
+
leaf. -->
|
|
372
|
+
<section
|
|
373
|
+
v-if="otherChildren.length"
|
|
374
|
+
class="mt-8"
|
|
375
|
+
>
|
|
376
|
+
<div class="mb-3 flex items-baseline gap-3">
|
|
377
|
+
<h2 class="text-xs font-medium tracking-[0.22em] text-dimmed uppercase">
|
|
378
|
+
More
|
|
379
|
+
</h2>
|
|
380
|
+
<div class="h-px flex-1 bg-black/10 dark:bg-white/10" />
|
|
381
|
+
</div>
|
|
382
|
+
<ul class="flex flex-wrap gap-2">
|
|
383
|
+
<li
|
|
384
|
+
v-for="child in otherChildren"
|
|
385
|
+
:key="child.id"
|
|
386
|
+
>
|
|
387
|
+
<JunItemMenu
|
|
388
|
+
:entry="child"
|
|
389
|
+
:tree="tree"
|
|
390
|
+
>
|
|
391
|
+
<UButton
|
|
392
|
+
:to="getDocUrl(child.id)"
|
|
393
|
+
icon="i-lucide-file-text"
|
|
394
|
+
color="neutral"
|
|
395
|
+
variant="soft"
|
|
396
|
+
size="xs"
|
|
397
|
+
:label="child.label"
|
|
398
|
+
/>
|
|
399
|
+
</JunItemMenu>
|
|
400
|
+
</li>
|
|
401
|
+
</ul>
|
|
402
|
+
</section>
|
|
403
|
+
|
|
360
404
|
<hr class="my-8 border-default">
|
|
361
405
|
|
|
362
406
|
<div class="jun-track-body">
|