@abraca/junis 2.84.0 → 2.86.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/dist/module.d.mts +17 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +270 -22
- package/dist/runtime/assets/css/jun.css +1 -1
- package/dist/runtime/components/JunBlobBackdrop.client.vue +1 -1
- package/dist/runtime/components/JunCampfirePresence.client.vue +75 -10
- package/dist/runtime/components/JunCollectionIntro.d.vue.ts +11 -0
- package/dist/runtime/components/JunCollectionIntro.vue +45 -0
- package/dist/runtime/components/JunCollectionIntro.vue.d.ts +11 -0
- package/dist/runtime/components/JunConfigRow.d.vue.ts +43 -0
- package/dist/runtime/components/JunConfigRow.vue +34 -0
- package/dist/runtime/components/JunConfigRow.vue.d.ts +43 -0
- package/dist/runtime/components/JunFooter.vue +1 -1
- package/dist/runtime/components/JunHead.vue +37 -5
- package/dist/runtime/components/JunHorizontalTimeline.d.vue.ts +30 -0
- package/dist/runtime/components/JunHorizontalTimeline.vue.d.ts +30 -0
- package/dist/runtime/components/JunLinksRow.d.vue.ts +16 -1
- package/dist/runtime/components/JunLinksRow.vue +17 -7
- package/dist/runtime/components/JunLinksRow.vue.d.ts +16 -1
- package/dist/runtime/components/JunLogo.vue +10 -45
- package/dist/runtime/components/JunMedia.client.d.vue.ts +1 -1
- package/dist/runtime/components/JunMedia.client.vue.d.ts +1 -1
- package/dist/runtime/components/JunNavigation.vue +21 -4
- package/dist/runtime/components/JunNoteLinks.d.vue.ts +6 -0
- package/dist/runtime/components/JunNoteLinks.vue +57 -0
- package/dist/runtime/components/JunNoteLinks.vue.d.ts +6 -0
- package/dist/runtime/components/JunPageHero.d.vue.ts +8 -2
- package/dist/runtime/components/JunPageHero.vue +15 -3
- package/dist/runtime/components/JunPageHero.vue.d.ts +8 -2
- package/dist/runtime/components/JunPatternBackdrop.client.vue +1 -1
- package/dist/runtime/components/JunReaders.d.vue.ts +11 -0
- package/dist/runtime/components/JunReaders.vue +99 -0
- package/dist/runtime/components/JunReaders.vue.d.ts +11 -0
- package/dist/runtime/components/JunSearch.client.vue +2 -2
- package/dist/runtime/components/JunSectionPresence.client.d.vue.ts +17 -0
- package/dist/runtime/components/JunSectionPresence.client.vue +99 -0
- package/dist/runtime/components/JunSectionPresence.client.vue.d.ts +17 -0
- package/dist/runtime/components/JunShaderBackdrop.client.vue +1 -1
- package/dist/runtime/components/JunThreadComposer.d.vue.ts +37 -0
- package/dist/runtime/components/JunThreadComposer.vue +54 -0
- package/dist/runtime/components/JunThreadComposer.vue.d.ts +37 -0
- package/dist/runtime/components/JunTravellersChip.vue +35 -5
- package/dist/runtime/components/JunVideoEmbed.client.d.vue.ts +1 -1
- package/dist/runtime/components/JunVideoEmbed.client.vue.d.ts +1 -1
- package/dist/runtime/components/JunViewControl.d.vue.ts +29 -0
- package/dist/runtime/components/JunViewControl.vue +340 -0
- package/dist/runtime/components/JunViewControl.vue.d.ts +29 -0
- package/dist/runtime/components/JunViewControls.d.vue.ts +27 -0
- package/dist/runtime/components/JunViewControls.vue +94 -0
- package/dist/runtime/components/JunViewControls.vue.d.ts +27 -0
- package/dist/runtime/components/renderers/JunAppsRenderer.vue +45 -4
- package/dist/runtime/components/renderers/JunCinemaRenderer.vue +42 -4
- package/dist/runtime/components/renderers/JunConfigRenderer.vue +362 -239
- package/dist/runtime/components/renderers/JunCourseRenderer.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/JunCourseRenderer.vue +229 -0
- package/dist/runtime/components/renderers/JunCourseRenderer.vue.d.ts +10 -0
- package/dist/runtime/components/renderers/JunCvRenderer.vue +44 -6
- package/dist/runtime/components/renderers/JunDeckRenderer.d.vue.ts +9 -0
- package/dist/runtime/components/renderers/JunDeckRenderer.vue +370 -0
- package/dist/runtime/components/renderers/JunDeckRenderer.vue.d.ts +9 -0
- package/dist/runtime/components/renderers/JunEntryRenderer.vue +157 -31
- package/dist/runtime/components/renderers/JunFestivalRenderer.vue +42 -5
- package/dist/runtime/components/renderers/JunGardenRenderer.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/JunGardenRenderer.vue +280 -0
- package/dist/runtime/components/renderers/JunGardenRenderer.vue.d.ts +10 -0
- package/dist/runtime/components/renderers/JunGuestbookRenderer.vue +96 -14
- package/dist/runtime/components/renderers/JunHomeRenderer.vue +31 -132
- package/dist/runtime/components/renderers/JunItemRenderer.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/JunItemRenderer.vue +398 -0
- package/dist/runtime/components/renderers/JunItemRenderer.vue.d.ts +10 -0
- package/dist/runtime/components/renderers/JunJournalRenderer.vue +141 -11
- package/dist/runtime/components/renderers/JunLibraryRenderer.vue +295 -12
- package/dist/runtime/components/renderers/JunLinksRenderer.vue +33 -1
- package/dist/runtime/components/renderers/JunLiveRenderer.vue +38 -2
- package/dist/runtime/components/renderers/JunMosaicRenderer.vue +3 -2
- package/dist/runtime/components/renderers/JunMovieRenderer.vue +32 -5
- package/dist/runtime/components/renderers/JunNowRenderer.vue +40 -7
- package/dist/runtime/components/renderers/JunPollRenderer.d.vue.ts +9 -0
- package/dist/runtime/components/renderers/JunPollRenderer.vue +231 -0
- package/dist/runtime/components/renderers/JunPollRenderer.vue.d.ts +9 -0
- package/dist/runtime/components/renderers/JunProjectRenderer.vue +74 -18
- package/dist/runtime/components/renderers/JunServicesRenderer.vue +40 -2
- package/dist/runtime/components/renderers/JunStatsRenderer.vue +37 -50
- package/dist/runtime/components/renderers/JunThreadRenderer.d.vue.ts +9 -0
- package/dist/runtime/components/renderers/JunThreadRenderer.vue +304 -0
- package/dist/runtime/components/renderers/JunThreadRenderer.vue.d.ts +9 -0
- package/dist/runtime/components/renderers/JunTrackRenderer.vue +32 -4
- package/dist/runtime/components/renderers/JunUsesRenderer.vue +57 -13
- package/dist/runtime/components/renderers/JunWallRenderer.vue +60 -5
- package/dist/runtime/composables/useJunDeck.d.ts +66 -0
- package/dist/runtime/composables/useJunDeck.js +61 -0
- package/dist/runtime/composables/useJunDocPage.d.ts +14 -11
- package/dist/runtime/composables/useJunDocPage.js +67 -3
- package/dist/runtime/composables/useJunFollow.d.ts +65 -9
- package/dist/runtime/composables/useJunFollow.js +237 -20
- package/dist/runtime/composables/useJunGarden.d.ts +67 -0
- package/dist/runtime/composables/useJunGarden.js +92 -0
- package/dist/runtime/composables/useJunOptions.d.ts +1 -0
- package/dist/runtime/composables/useJunPresence.d.ts +26 -0
- package/dist/runtime/composables/useJunPresence.js +9 -2
- package/dist/runtime/composables/useJunSections.d.ts +73 -0
- package/dist/runtime/composables/useJunSections.js +117 -0
- package/dist/runtime/composables/useJunSettings.d.ts +1 -1
- package/dist/runtime/composables/useJunSettings.js +5 -1
- package/dist/runtime/composables/useJunSiteConfig.d.ts +37 -0
- package/dist/runtime/composables/useJunTheme.js +49 -50
- package/dist/runtime/composables/useJunViewOptions.d.ts +85 -0
- package/dist/runtime/composables/useJunViewOptions.js +63 -0
- package/dist/runtime/pages/doc.vue +14 -8
- package/dist/runtime/plugins/jun-sw.client.d.ts +2 -0
- package/dist/runtime/plugins/jun-sw.client.js +36 -0
- package/dist/runtime/server/api/health.get.d.ts +19 -0
- package/dist/runtime/server/api/health.get.js +40 -0
- package/dist/runtime/server/api/links.get.d.ts +19 -0
- package/dist/runtime/server/api/links.get.js +37 -0
- package/dist/runtime/server/api/resolve/[...slug].get.d.ts +9 -0
- package/dist/runtime/server/api/resolve/[...slug].get.js +5 -0
- package/dist/runtime/server/api/stats.get.js +2 -1
- package/dist/runtime/server/janitor/junJanitorChores.js +8 -0
- package/dist/runtime/server/plugins/jun-bootstrap.js +103 -15
- package/dist/runtime/server/plugins/jun-doc-cache.js +42 -4
- package/dist/runtime/server/plugins/jun-janitor.js +9 -1
- package/dist/runtime/server/plugins/jun-rpc.js +293 -0
- package/dist/runtime/server/plugins/jun-watchdog.d.ts +2 -0
- package/dist/runtime/server/plugins/jun-watchdog.js +54 -0
- package/dist/runtime/server/routes/jun-icon.png.get.d.ts +2 -0
- package/dist/runtime/server/routes/jun-icon.png.get.js +25 -0
- package/dist/runtime/server/routes/jun-icon.svg.get.d.ts +2 -0
- package/dist/runtime/server/routes/jun-icon.svg.get.js +9 -0
- package/dist/runtime/server/routes/jun-splash.png.get.d.ts +2 -0
- package/dist/runtime/server/routes/jun-splash.png.get.js +37 -0
- package/dist/runtime/server/routes/jun-sw.js.get.d.ts +2 -0
- package/dist/runtime/server/routes/jun-sw.js.get.js +126 -0
- package/dist/runtime/server/routes/manifest.webmanifest.get.d.ts +24 -0
- package/dist/runtime/server/routes/manifest.webmanifest.get.js +51 -0
- package/dist/runtime/server/routes/sitemap.xml.get.js +2 -0
- package/dist/runtime/server/utils/junBoot.d.ts +1 -0
- package/dist/runtime/server/utils/junBoot.js +4 -0
- package/dist/runtime/server/utils/junBrand.d.ts +4 -0
- package/dist/runtime/server/utils/junBrand.js +9 -0
- package/dist/runtime/server/utils/junCache.d.ts +17 -0
- package/dist/runtime/server/utils/junCache.js +5 -0
- package/dist/runtime/server/utils/junIcon.d.ts +44 -0
- package/dist/runtime/server/utils/junIcon.js +374 -0
- package/dist/runtime/server/utils/junSeedGate.d.ts +68 -0
- package/dist/runtime/server/utils/junSeedGate.js +41 -0
- package/dist/runtime/types.d.ts +82 -3
- package/dist/runtime/utils/junCourse.d.ts +106 -0
- package/dist/runtime/utils/junCourse.js +65 -0
- package/dist/runtime/utils/junGarden.d.ts +193 -0
- package/dist/runtime/utils/junGarden.js +233 -0
- package/dist/runtime/utils/junIdentity.d.ts +121 -0
- package/dist/runtime/utils/junIdentity.js +115 -0
- package/dist/runtime/utils/junMark.d.ts +254 -0
- package/dist/runtime/utils/junMark.js +169 -0
- package/dist/runtime/utils/junMetaSchemas.js +8 -1
- package/dist/runtime/utils/junModeration.d.ts +67 -0
- package/dist/runtime/utils/junModeration.js +20 -0
- package/dist/runtime/utils/junMotion.d.ts +26 -0
- package/dist/runtime/utils/junMotion.js +31 -0
- package/dist/runtime/utils/junPeople.d.ts +43 -0
- package/dist/runtime/utils/junPeople.js +9 -0
- package/dist/runtime/utils/junPoll.d.ts +79 -0
- package/dist/runtime/utils/junPoll.js +82 -0
- package/dist/runtime/utils/junReadiness.d.ts +131 -0
- package/dist/runtime/utils/junReadiness.js +69 -0
- package/dist/runtime/utils/junSections.d.ts +115 -0
- package/dist/runtime/utils/junSections.js +45 -0
- package/dist/runtime/utils/junSlides.d.ts +66 -0
- package/dist/runtime/utils/junSlides.js +47 -0
- package/dist/runtime/utils/junThread.d.ts +81 -0
- package/dist/runtime/utils/junThread.js +75 -0
- package/dist/runtime/utils/junViewSpecs.d.ts +671 -0
- package/dist/runtime/utils/junViewSpecs.js +534 -0
- package/dist/runtime/utils/junViewValues.d.ts +125 -0
- package/dist/runtime/utils/junViewValues.js +104 -0
- package/dist/types.d.mts +1 -1
- package/package.json +5 -1
|
@@ -0,0 +1,671 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every renderer's display options, as DATA — one place, no imports.
|
|
3
|
+
*
|
|
4
|
+
* They were 13 array literals inside 13 components, which was fine while the
|
|
5
|
+
* only thing that needed them was the renderer they sat in. It stopped being
|
|
6
|
+
* fine the moment an owner could set a SITE-WIDE default: the settings panel
|
|
7
|
+
* cannot offer a control for a setting it has no way to enumerate, and a copy
|
|
8
|
+
* of the list kept in the panel would be a second source of truth for exactly
|
|
9
|
+
* the kind of data (stored on live documents) that must not disagree.
|
|
10
|
+
*
|
|
11
|
+
* So the renderers name their key and this holds the shape. A renderer with
|
|
12
|
+
* options that depend on the page keeps its own getter and stays out of here —
|
|
13
|
+
* `stats` is the one, because which tiles a site could show depends on which
|
|
14
|
+
* page types it has. `JUN_DYNAMIC_SPEC_KEYS` names those, so the panel can say
|
|
15
|
+
* so rather than silently omitting them.
|
|
16
|
+
*/
|
|
17
|
+
import type { JunViewOption } from './junViewValues.js';
|
|
18
|
+
/** Renderers whose options are computed per page, and are therefore not here. */
|
|
19
|
+
export declare const JUN_DYNAMIC_SPEC_KEYS: readonly ["stats"];
|
|
20
|
+
/**
|
|
21
|
+
* The front page's sections, in their natural order — the ONE copy.
|
|
22
|
+
*
|
|
23
|
+
* `JunHomeRenderer` needs the labels and icons to render them, and the `order`
|
|
24
|
+
* control needs the same list as its choices. Two copies of this is how a section
|
|
25
|
+
* added to the renderer quietly fails to appear in the panel that arranges them.
|
|
26
|
+
*/
|
|
27
|
+
export declare const JUN_HOME_SECTIONS: readonly [{
|
|
28
|
+
readonly id: "hero";
|
|
29
|
+
readonly label: "Hero";
|
|
30
|
+
readonly icon: "i-lucide-user-round";
|
|
31
|
+
}, {
|
|
32
|
+
readonly id: "latest";
|
|
33
|
+
readonly label: "Latest writing";
|
|
34
|
+
readonly icon: "i-lucide-feather";
|
|
35
|
+
}, {
|
|
36
|
+
readonly id: "projects";
|
|
37
|
+
readonly label: "Projects";
|
|
38
|
+
readonly icon: "i-lucide-box";
|
|
39
|
+
}, {
|
|
40
|
+
readonly id: "now";
|
|
41
|
+
readonly label: "Now";
|
|
42
|
+
readonly icon: "i-lucide-radio";
|
|
43
|
+
}, {
|
|
44
|
+
readonly id: "links";
|
|
45
|
+
readonly label: "Links";
|
|
46
|
+
readonly icon: "i-lucide-link";
|
|
47
|
+
}, {
|
|
48
|
+
readonly id: "pages";
|
|
49
|
+
readonly label: "Pages";
|
|
50
|
+
readonly icon: "i-lucide-layout-grid";
|
|
51
|
+
}, {
|
|
52
|
+
readonly id: "prose";
|
|
53
|
+
readonly label: "Page content";
|
|
54
|
+
readonly icon: "i-lucide-text";
|
|
55
|
+
}];
|
|
56
|
+
/** What a front page shows when its owner has never arranged it. */
|
|
57
|
+
export declare const JUN_HOME_DEFAULT_SECTIONS: string[];
|
|
58
|
+
export declare const JUN_VIEW_SPECS: {
|
|
59
|
+
apps: ({
|
|
60
|
+
key: string;
|
|
61
|
+
kind: "number";
|
|
62
|
+
label: string;
|
|
63
|
+
icon: string;
|
|
64
|
+
default: number;
|
|
65
|
+
min: number;
|
|
66
|
+
max: number;
|
|
67
|
+
} | {
|
|
68
|
+
key: string;
|
|
69
|
+
kind: "toggle";
|
|
70
|
+
label: string;
|
|
71
|
+
icon: string;
|
|
72
|
+
default: true;
|
|
73
|
+
min?: undefined;
|
|
74
|
+
max?: undefined;
|
|
75
|
+
})[];
|
|
76
|
+
cinema: ({
|
|
77
|
+
key: string;
|
|
78
|
+
kind: "number";
|
|
79
|
+
label: string;
|
|
80
|
+
icon: string;
|
|
81
|
+
default: number;
|
|
82
|
+
min: number;
|
|
83
|
+
max: number;
|
|
84
|
+
} | {
|
|
85
|
+
key: string;
|
|
86
|
+
kind: "toggle";
|
|
87
|
+
label: string;
|
|
88
|
+
icon: string;
|
|
89
|
+
default: true;
|
|
90
|
+
min?: undefined;
|
|
91
|
+
max?: undefined;
|
|
92
|
+
})[];
|
|
93
|
+
deck: ({
|
|
94
|
+
key: string;
|
|
95
|
+
kind: "variant";
|
|
96
|
+
label: string;
|
|
97
|
+
default: string;
|
|
98
|
+
choices: {
|
|
99
|
+
value: string;
|
|
100
|
+
label: string;
|
|
101
|
+
icon: string;
|
|
102
|
+
hint: string;
|
|
103
|
+
}[];
|
|
104
|
+
icon?: undefined;
|
|
105
|
+
min?: undefined;
|
|
106
|
+
max?: undefined;
|
|
107
|
+
step?: undefined;
|
|
108
|
+
} | {
|
|
109
|
+
key: string;
|
|
110
|
+
kind: "select";
|
|
111
|
+
label: string;
|
|
112
|
+
default: string;
|
|
113
|
+
choices: ({
|
|
114
|
+
value: string;
|
|
115
|
+
label: string;
|
|
116
|
+
hint?: undefined;
|
|
117
|
+
} | {
|
|
118
|
+
value: string;
|
|
119
|
+
label: string;
|
|
120
|
+
hint: string;
|
|
121
|
+
})[];
|
|
122
|
+
icon?: undefined;
|
|
123
|
+
min?: undefined;
|
|
124
|
+
max?: undefined;
|
|
125
|
+
step?: undefined;
|
|
126
|
+
} | {
|
|
127
|
+
key: string;
|
|
128
|
+
kind: "color";
|
|
129
|
+
label: string;
|
|
130
|
+
default: string;
|
|
131
|
+
choices: {
|
|
132
|
+
value: string;
|
|
133
|
+
label: string;
|
|
134
|
+
}[];
|
|
135
|
+
icon?: undefined;
|
|
136
|
+
min?: undefined;
|
|
137
|
+
max?: undefined;
|
|
138
|
+
step?: undefined;
|
|
139
|
+
} | {
|
|
140
|
+
key: string;
|
|
141
|
+
kind: "toggle";
|
|
142
|
+
label: string;
|
|
143
|
+
icon: string;
|
|
144
|
+
default: true;
|
|
145
|
+
choices?: undefined;
|
|
146
|
+
min?: undefined;
|
|
147
|
+
max?: undefined;
|
|
148
|
+
step?: undefined;
|
|
149
|
+
} | {
|
|
150
|
+
key: string;
|
|
151
|
+
kind: "range";
|
|
152
|
+
label: string;
|
|
153
|
+
icon: string;
|
|
154
|
+
default: number;
|
|
155
|
+
min: number;
|
|
156
|
+
max: number;
|
|
157
|
+
step: number;
|
|
158
|
+
choices?: undefined;
|
|
159
|
+
})[];
|
|
160
|
+
course: {
|
|
161
|
+
key: string;
|
|
162
|
+
kind: "toggle";
|
|
163
|
+
label: string;
|
|
164
|
+
icon: string;
|
|
165
|
+
default: true;
|
|
166
|
+
}[];
|
|
167
|
+
cv: ({
|
|
168
|
+
key: string;
|
|
169
|
+
kind: "variant";
|
|
170
|
+
label: string;
|
|
171
|
+
default: string;
|
|
172
|
+
choices: {
|
|
173
|
+
value: string;
|
|
174
|
+
label: string;
|
|
175
|
+
icon: string;
|
|
176
|
+
hint: string;
|
|
177
|
+
}[];
|
|
178
|
+
icon?: undefined;
|
|
179
|
+
} | {
|
|
180
|
+
key: string;
|
|
181
|
+
kind: "toggle";
|
|
182
|
+
label: string;
|
|
183
|
+
icon: string;
|
|
184
|
+
default: true;
|
|
185
|
+
choices?: undefined;
|
|
186
|
+
})[];
|
|
187
|
+
/**
|
|
188
|
+
* ── The leaf pages ─────────────────────────────────────────────────────────
|
|
189
|
+
*
|
|
190
|
+
* Every collection could be reshaped and nothing a visitor READS could, which
|
|
191
|
+
* was the largest configuration gap in the module: `entry`, `item`, `project`,
|
|
192
|
+
* `movie`, `track` and `now` are the pages somebody lands on and stays on.
|
|
193
|
+
*
|
|
194
|
+
* `entry`'s table of contents is nearly free — the section scan that paints
|
|
195
|
+
* presence in the margin already knows every heading on the page.
|
|
196
|
+
*/
|
|
197
|
+
entry: JunViewOption[];
|
|
198
|
+
item: JunViewOption[];
|
|
199
|
+
movie: {
|
|
200
|
+
key: string;
|
|
201
|
+
kind: "toggle";
|
|
202
|
+
label: string;
|
|
203
|
+
icon: string;
|
|
204
|
+
default: true;
|
|
205
|
+
}[];
|
|
206
|
+
track: {
|
|
207
|
+
key: string;
|
|
208
|
+
kind: "toggle";
|
|
209
|
+
label: string;
|
|
210
|
+
icon: string;
|
|
211
|
+
default: true;
|
|
212
|
+
}[];
|
|
213
|
+
now: ({
|
|
214
|
+
key: string;
|
|
215
|
+
kind: "variant";
|
|
216
|
+
label: string;
|
|
217
|
+
default: string;
|
|
218
|
+
choices: ({
|
|
219
|
+
value: string;
|
|
220
|
+
label: string;
|
|
221
|
+
icon: string;
|
|
222
|
+
hint?: undefined;
|
|
223
|
+
} | {
|
|
224
|
+
value: string;
|
|
225
|
+
label: string;
|
|
226
|
+
icon: string;
|
|
227
|
+
hint: string;
|
|
228
|
+
})[];
|
|
229
|
+
icon?: undefined;
|
|
230
|
+
} | {
|
|
231
|
+
key: string;
|
|
232
|
+
kind: "toggle";
|
|
233
|
+
label: string;
|
|
234
|
+
icon: string;
|
|
235
|
+
default: true;
|
|
236
|
+
choices?: undefined;
|
|
237
|
+
})[];
|
|
238
|
+
project: ({
|
|
239
|
+
key: string;
|
|
240
|
+
kind: "toggle";
|
|
241
|
+
label: string;
|
|
242
|
+
icon: string;
|
|
243
|
+
default: true;
|
|
244
|
+
min?: undefined;
|
|
245
|
+
max?: undefined;
|
|
246
|
+
choices?: undefined;
|
|
247
|
+
} | {
|
|
248
|
+
key: string;
|
|
249
|
+
kind: "number";
|
|
250
|
+
label: string;
|
|
251
|
+
icon: string;
|
|
252
|
+
default: number;
|
|
253
|
+
min: number;
|
|
254
|
+
max: number;
|
|
255
|
+
choices?: undefined;
|
|
256
|
+
} | {
|
|
257
|
+
key: string;
|
|
258
|
+
kind: "select";
|
|
259
|
+
label: string;
|
|
260
|
+
icon: string;
|
|
261
|
+
default: string;
|
|
262
|
+
choices: ({
|
|
263
|
+
value: string;
|
|
264
|
+
label: string;
|
|
265
|
+
hint?: undefined;
|
|
266
|
+
} | {
|
|
267
|
+
value: string;
|
|
268
|
+
label: string;
|
|
269
|
+
hint: string;
|
|
270
|
+
})[];
|
|
271
|
+
min?: undefined;
|
|
272
|
+
max?: undefined;
|
|
273
|
+
})[];
|
|
274
|
+
festival: {
|
|
275
|
+
key: string;
|
|
276
|
+
kind: "toggle";
|
|
277
|
+
label: string;
|
|
278
|
+
icon: string;
|
|
279
|
+
default: true;
|
|
280
|
+
}[];
|
|
281
|
+
garden: ({
|
|
282
|
+
key: string;
|
|
283
|
+
kind: "variant";
|
|
284
|
+
label: string;
|
|
285
|
+
default: string;
|
|
286
|
+
choices: {
|
|
287
|
+
value: string;
|
|
288
|
+
label: string;
|
|
289
|
+
icon: string;
|
|
290
|
+
hint: string;
|
|
291
|
+
}[];
|
|
292
|
+
icon?: undefined;
|
|
293
|
+
min?: undefined;
|
|
294
|
+
max?: undefined;
|
|
295
|
+
step?: undefined;
|
|
296
|
+
} | {
|
|
297
|
+
key: string;
|
|
298
|
+
kind: "select";
|
|
299
|
+
label: string;
|
|
300
|
+
icon: string;
|
|
301
|
+
default: string;
|
|
302
|
+
choices: ({
|
|
303
|
+
value: string;
|
|
304
|
+
label: string;
|
|
305
|
+
hint: string;
|
|
306
|
+
} | {
|
|
307
|
+
value: string;
|
|
308
|
+
label: string;
|
|
309
|
+
hint?: undefined;
|
|
310
|
+
})[];
|
|
311
|
+
min?: undefined;
|
|
312
|
+
max?: undefined;
|
|
313
|
+
step?: undefined;
|
|
314
|
+
} | {
|
|
315
|
+
key: string;
|
|
316
|
+
kind: "toggle";
|
|
317
|
+
label: string;
|
|
318
|
+
icon: string;
|
|
319
|
+
default: true;
|
|
320
|
+
choices?: undefined;
|
|
321
|
+
min?: undefined;
|
|
322
|
+
max?: undefined;
|
|
323
|
+
step?: undefined;
|
|
324
|
+
} | {
|
|
325
|
+
key: string;
|
|
326
|
+
kind: "range";
|
|
327
|
+
label: string;
|
|
328
|
+
icon: string;
|
|
329
|
+
default: number;
|
|
330
|
+
min: number;
|
|
331
|
+
max: number;
|
|
332
|
+
step: number;
|
|
333
|
+
choices?: undefined;
|
|
334
|
+
})[];
|
|
335
|
+
guestbook: {
|
|
336
|
+
key: string;
|
|
337
|
+
kind: "variant";
|
|
338
|
+
label: string;
|
|
339
|
+
default: string;
|
|
340
|
+
choices: {
|
|
341
|
+
value: string;
|
|
342
|
+
label: string;
|
|
343
|
+
icon: string;
|
|
344
|
+
hint: string;
|
|
345
|
+
}[];
|
|
346
|
+
}[];
|
|
347
|
+
home: ({
|
|
348
|
+
key: string;
|
|
349
|
+
kind: "variant";
|
|
350
|
+
label: string;
|
|
351
|
+
metaKey: string;
|
|
352
|
+
default: string;
|
|
353
|
+
choices: {
|
|
354
|
+
value: string;
|
|
355
|
+
label: string;
|
|
356
|
+
icon: string;
|
|
357
|
+
hint: string;
|
|
358
|
+
}[];
|
|
359
|
+
} | {
|
|
360
|
+
key: string;
|
|
361
|
+
kind: "order";
|
|
362
|
+
label: string;
|
|
363
|
+
metaKey: string;
|
|
364
|
+
default: string[];
|
|
365
|
+
choices: {
|
|
366
|
+
value: "links" | "now" | "prose" | "hero" | "latest" | "projects" | "pages";
|
|
367
|
+
label: "Hero" | "Latest writing" | "Projects" | "Now" | "Links" | "Pages" | "Page content";
|
|
368
|
+
icon: "i-lucide-text" | "i-lucide-box" | "i-lucide-link" | "i-lucide-feather" | "i-lucide-radio" | "i-lucide-user-round" | "i-lucide-layout-grid";
|
|
369
|
+
}[];
|
|
370
|
+
})[];
|
|
371
|
+
journal: ({
|
|
372
|
+
key: string;
|
|
373
|
+
kind: "variant";
|
|
374
|
+
label: string;
|
|
375
|
+
default: string;
|
|
376
|
+
choices: {
|
|
377
|
+
value: string;
|
|
378
|
+
label: string;
|
|
379
|
+
icon: string;
|
|
380
|
+
hint: string;
|
|
381
|
+
}[];
|
|
382
|
+
icon?: undefined;
|
|
383
|
+
min?: undefined;
|
|
384
|
+
max?: undefined;
|
|
385
|
+
} | {
|
|
386
|
+
key: string;
|
|
387
|
+
kind: "toggle";
|
|
388
|
+
label: string;
|
|
389
|
+
icon: string;
|
|
390
|
+
default: true;
|
|
391
|
+
choices?: undefined;
|
|
392
|
+
min?: undefined;
|
|
393
|
+
max?: undefined;
|
|
394
|
+
} | {
|
|
395
|
+
key: string;
|
|
396
|
+
kind: "number";
|
|
397
|
+
label: string;
|
|
398
|
+
icon: string;
|
|
399
|
+
default: number;
|
|
400
|
+
min: number;
|
|
401
|
+
max: number;
|
|
402
|
+
choices?: undefined;
|
|
403
|
+
})[];
|
|
404
|
+
library: ({
|
|
405
|
+
key: string;
|
|
406
|
+
kind: "variant";
|
|
407
|
+
label: string;
|
|
408
|
+
default: string;
|
|
409
|
+
choices: {
|
|
410
|
+
value: string;
|
|
411
|
+
label: string;
|
|
412
|
+
icon: string;
|
|
413
|
+
hint: string;
|
|
414
|
+
}[];
|
|
415
|
+
icon?: undefined;
|
|
416
|
+
} | {
|
|
417
|
+
key: string;
|
|
418
|
+
kind: "toggle";
|
|
419
|
+
label: string;
|
|
420
|
+
icon: string;
|
|
421
|
+
default: true;
|
|
422
|
+
choices?: undefined;
|
|
423
|
+
} | {
|
|
424
|
+
key: string;
|
|
425
|
+
kind: "select";
|
|
426
|
+
label: string;
|
|
427
|
+
default: string;
|
|
428
|
+
choices: ({
|
|
429
|
+
value: string;
|
|
430
|
+
label: string;
|
|
431
|
+
hint: string;
|
|
432
|
+
} | {
|
|
433
|
+
value: string;
|
|
434
|
+
label: string;
|
|
435
|
+
hint?: undefined;
|
|
436
|
+
})[];
|
|
437
|
+
icon?: undefined;
|
|
438
|
+
})[];
|
|
439
|
+
links: ({
|
|
440
|
+
key: string;
|
|
441
|
+
kind: "variant";
|
|
442
|
+
label: string;
|
|
443
|
+
default: string;
|
|
444
|
+
choices: {
|
|
445
|
+
value: string;
|
|
446
|
+
label: string;
|
|
447
|
+
icon: string;
|
|
448
|
+
hint: string;
|
|
449
|
+
}[];
|
|
450
|
+
icon?: undefined;
|
|
451
|
+
} | {
|
|
452
|
+
key: string;
|
|
453
|
+
kind: "toggle";
|
|
454
|
+
label: string;
|
|
455
|
+
icon: string;
|
|
456
|
+
default: true;
|
|
457
|
+
choices?: undefined;
|
|
458
|
+
} | {
|
|
459
|
+
key: string;
|
|
460
|
+
kind: "toggle";
|
|
461
|
+
label: string;
|
|
462
|
+
icon: string;
|
|
463
|
+
default: false;
|
|
464
|
+
choices?: undefined;
|
|
465
|
+
})[];
|
|
466
|
+
live: ({
|
|
467
|
+
key: string;
|
|
468
|
+
kind: "variant";
|
|
469
|
+
label: string;
|
|
470
|
+
default: string;
|
|
471
|
+
choices: {
|
|
472
|
+
value: string;
|
|
473
|
+
label: string;
|
|
474
|
+
icon: string;
|
|
475
|
+
hint: string;
|
|
476
|
+
}[];
|
|
477
|
+
} | {
|
|
478
|
+
key: string;
|
|
479
|
+
kind: "select";
|
|
480
|
+
label: string;
|
|
481
|
+
default: string;
|
|
482
|
+
choices: {
|
|
483
|
+
value: string;
|
|
484
|
+
label: string;
|
|
485
|
+
}[];
|
|
486
|
+
})[];
|
|
487
|
+
/**
|
|
488
|
+
* A poll's CHOICES are a setting, which is why the `tags` kind exists: a list
|
|
489
|
+
* of short strings is exactly what a tag field is, and the alternative was a
|
|
490
|
+
* bespoke choice editor for one page type.
|
|
491
|
+
*
|
|
492
|
+
* `multiple` and `revote` use `metaKey` — they are BEHAVIOUR the server enforces,
|
|
493
|
+
* and the server reads document meta rather than the display namespace. Same
|
|
494
|
+
* escape hatch the home page's composition uses, for the same reason: where a
|
|
495
|
+
* value lives is a contract, and `junView` is a contract about looks.
|
|
496
|
+
*/
|
|
497
|
+
poll: ({
|
|
498
|
+
key: string;
|
|
499
|
+
kind: "tags";
|
|
500
|
+
label: string;
|
|
501
|
+
icon: string;
|
|
502
|
+
metaKey: string;
|
|
503
|
+
default: never[];
|
|
504
|
+
choices?: undefined;
|
|
505
|
+
} | {
|
|
506
|
+
key: string;
|
|
507
|
+
kind: "variant";
|
|
508
|
+
label: string;
|
|
509
|
+
default: string;
|
|
510
|
+
choices: {
|
|
511
|
+
value: string;
|
|
512
|
+
label: string;
|
|
513
|
+
icon: string;
|
|
514
|
+
hint: string;
|
|
515
|
+
}[];
|
|
516
|
+
icon?: undefined;
|
|
517
|
+
metaKey?: undefined;
|
|
518
|
+
} | {
|
|
519
|
+
key: string;
|
|
520
|
+
kind: "toggle";
|
|
521
|
+
label: string;
|
|
522
|
+
icon: string;
|
|
523
|
+
default: false;
|
|
524
|
+
metaKey?: undefined;
|
|
525
|
+
choices?: undefined;
|
|
526
|
+
} | {
|
|
527
|
+
key: string;
|
|
528
|
+
kind: "toggle";
|
|
529
|
+
label: string;
|
|
530
|
+
icon: string;
|
|
531
|
+
metaKey: string;
|
|
532
|
+
default: false;
|
|
533
|
+
choices?: undefined;
|
|
534
|
+
} | {
|
|
535
|
+
key: string;
|
|
536
|
+
kind: "toggle";
|
|
537
|
+
label: string;
|
|
538
|
+
icon: string;
|
|
539
|
+
metaKey: string;
|
|
540
|
+
default: true;
|
|
541
|
+
choices?: undefined;
|
|
542
|
+
})[];
|
|
543
|
+
services: {
|
|
544
|
+
key: string;
|
|
545
|
+
kind: "number";
|
|
546
|
+
label: string;
|
|
547
|
+
icon: string;
|
|
548
|
+
default: number;
|
|
549
|
+
min: number;
|
|
550
|
+
max: number;
|
|
551
|
+
}[];
|
|
552
|
+
thread: ({
|
|
553
|
+
key: string;
|
|
554
|
+
kind: "variant";
|
|
555
|
+
label: string;
|
|
556
|
+
default: string;
|
|
557
|
+
choices: {
|
|
558
|
+
value: string;
|
|
559
|
+
label: string;
|
|
560
|
+
icon: string;
|
|
561
|
+
hint: string;
|
|
562
|
+
}[];
|
|
563
|
+
icon?: undefined;
|
|
564
|
+
min?: undefined;
|
|
565
|
+
max?: undefined;
|
|
566
|
+
step?: undefined;
|
|
567
|
+
metaKey?: undefined;
|
|
568
|
+
} | {
|
|
569
|
+
key: string;
|
|
570
|
+
kind: "range";
|
|
571
|
+
label: string;
|
|
572
|
+
icon: string;
|
|
573
|
+
default: number;
|
|
574
|
+
min: number;
|
|
575
|
+
max: number;
|
|
576
|
+
step: number;
|
|
577
|
+
choices?: undefined;
|
|
578
|
+
metaKey?: undefined;
|
|
579
|
+
} | {
|
|
580
|
+
key: string;
|
|
581
|
+
kind: "toggle";
|
|
582
|
+
label: string;
|
|
583
|
+
icon: string;
|
|
584
|
+
metaKey: string;
|
|
585
|
+
default: false;
|
|
586
|
+
choices?: undefined;
|
|
587
|
+
min?: undefined;
|
|
588
|
+
max?: undefined;
|
|
589
|
+
step?: undefined;
|
|
590
|
+
})[];
|
|
591
|
+
uses: ({
|
|
592
|
+
key: string;
|
|
593
|
+
kind: "variant";
|
|
594
|
+
label: string;
|
|
595
|
+
default: string;
|
|
596
|
+
choices: {
|
|
597
|
+
value: string;
|
|
598
|
+
label: string;
|
|
599
|
+
icon: string;
|
|
600
|
+
hint: string;
|
|
601
|
+
}[];
|
|
602
|
+
icon?: undefined;
|
|
603
|
+
} | {
|
|
604
|
+
key: string;
|
|
605
|
+
kind: "toggle";
|
|
606
|
+
label: string;
|
|
607
|
+
icon: string;
|
|
608
|
+
default: true;
|
|
609
|
+
choices?: undefined;
|
|
610
|
+
} | {
|
|
611
|
+
key: string;
|
|
612
|
+
kind: "toggle";
|
|
613
|
+
label: string;
|
|
614
|
+
icon: string;
|
|
615
|
+
default: false;
|
|
616
|
+
choices?: undefined;
|
|
617
|
+
})[];
|
|
618
|
+
wall: ({
|
|
619
|
+
key: string;
|
|
620
|
+
kind: "number";
|
|
621
|
+
label: string;
|
|
622
|
+
icon: string;
|
|
623
|
+
default: number;
|
|
624
|
+
min: number;
|
|
625
|
+
max: number;
|
|
626
|
+
choices?: undefined;
|
|
627
|
+
} | {
|
|
628
|
+
key: string;
|
|
629
|
+
kind: "toggle";
|
|
630
|
+
label: string;
|
|
631
|
+
icon: string;
|
|
632
|
+
default: true;
|
|
633
|
+
min?: undefined;
|
|
634
|
+
max?: undefined;
|
|
635
|
+
choices?: undefined;
|
|
636
|
+
} | {
|
|
637
|
+
key: string;
|
|
638
|
+
kind: "select";
|
|
639
|
+
label: string;
|
|
640
|
+
default: string;
|
|
641
|
+
choices: {
|
|
642
|
+
value: string;
|
|
643
|
+
label: string;
|
|
644
|
+
}[];
|
|
645
|
+
icon?: undefined;
|
|
646
|
+
min?: undefined;
|
|
647
|
+
max?: undefined;
|
|
648
|
+
})[];
|
|
649
|
+
};
|
|
650
|
+
/**
|
|
651
|
+
* A spec by string key, for callers that do not have a literal (the settings
|
|
652
|
+
* panel iterating page types). `satisfies` above keeps the literal access exact —
|
|
653
|
+
* `JUN_VIEW_SPECS.wall` is `JunViewOption[]`, not `… | undefined` — which is what
|
|
654
|
+
* every renderer needs, and this is the escape hatch for everyone else.
|
|
655
|
+
*/
|
|
656
|
+
export declare function junViewSpecFor(typeKey: string): JunViewOption[];
|
|
657
|
+
/**
|
|
658
|
+
* The site's chrome, per PAGE — appended to every type's spec.
|
|
659
|
+
*
|
|
660
|
+
* Hiding the navbar was a site-wide switch and nothing else, which is wrong in
|
|
661
|
+
* both directions: a deck or a globe wants the page to itself, and a site that
|
|
662
|
+
* turned the navbar off to get that lost it everywhere.
|
|
663
|
+
*
|
|
664
|
+
* They live in `junView` like any other display setting, which is what gives them
|
|
665
|
+
* a per-document control AND a per-type default in the settings panel for free.
|
|
666
|
+
* The chrome itself is hidden in CSS from a `data-jun-chrome` attribute rather
|
|
667
|
+
* than by a `v-if` — the navbar and the footer are SSR-rendered while a
|
|
668
|
+
* document's meta is not available to them until hydration, so a `v-if` would be
|
|
669
|
+
* a hydration mismatch on every page that used one. See `useJunDocPage`.
|
|
670
|
+
*/
|
|
671
|
+
export declare const JUN_CHROME_OPTIONS: JunViewOption[];
|