@abraca/junis 2.80.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 +594 -0
- package/dist/module.d.mts +158 -0
- package/dist/module.json +12 -0
- package/dist/module.mjs +957 -0
- package/dist/runtime/assets/css/jun.css +13 -0
- package/dist/runtime/components/JunAnnouncement.d.vue.ts +3 -0
- package/dist/runtime/components/JunAnnouncement.vue +88 -0
- package/dist/runtime/components/JunAnnouncement.vue.d.ts +3 -0
- package/dist/runtime/components/JunAppreciate.d.vue.ts +6 -0
- package/dist/runtime/components/JunAppreciate.vue +71 -0
- package/dist/runtime/components/JunAppreciate.vue.d.ts +6 -0
- package/dist/runtime/components/JunBackgroundPhoto.d.vue.ts +3 -0
- package/dist/runtime/components/JunBackgroundPhoto.vue +23 -0
- package/dist/runtime/components/JunBackgroundPhoto.vue.d.ts +3 -0
- package/dist/runtime/components/JunBlobBackdrop.client.d.vue.ts +3 -0
- package/dist/runtime/components/JunBlobBackdrop.client.vue +120 -0
- package/dist/runtime/components/JunBlobBackdrop.client.vue.d.ts +3 -0
- package/dist/runtime/components/JunBreadcrumbs.d.vue.ts +16 -0
- package/dist/runtime/components/JunBreadcrumbs.vue +63 -0
- package/dist/runtime/components/JunBreadcrumbs.vue.d.ts +16 -0
- package/dist/runtime/components/JunCampfireChat.d.vue.ts +14 -0
- package/dist/runtime/components/JunCampfireChat.vue +136 -0
- package/dist/runtime/components/JunCampfireChat.vue.d.ts +14 -0
- package/dist/runtime/components/JunCampfirePanel.d.vue.ts +33 -0
- package/dist/runtime/components/JunCampfirePanel.vue +202 -0
- package/dist/runtime/components/JunCampfirePanel.vue.d.ts +33 -0
- package/dist/runtime/components/JunCampfirePresence.client.d.vue.ts +3 -0
- package/dist/runtime/components/JunCampfirePresence.client.vue +321 -0
- package/dist/runtime/components/JunCampfirePresence.client.vue.d.ts +3 -0
- package/dist/runtime/components/JunCampfireRoster.d.vue.ts +19 -0
- package/dist/runtime/components/JunCampfireRoster.vue +259 -0
- package/dist/runtime/components/JunCampfireRoster.vue.d.ts +19 -0
- package/dist/runtime/components/JunCampfireYou.d.vue.ts +10 -0
- package/dist/runtime/components/JunCampfireYou.vue +157 -0
- package/dist/runtime/components/JunCampfireYou.vue.d.ts +10 -0
- package/dist/runtime/components/JunDocSurface.d.vue.ts +34 -0
- package/dist/runtime/components/JunDocSurface.vue +117 -0
- package/dist/runtime/components/JunDocSurface.vue.d.ts +34 -0
- package/dist/runtime/components/JunFestivalPlayer.client.d.vue.ts +3 -0
- package/dist/runtime/components/JunFestivalPlayer.client.vue +471 -0
- package/dist/runtime/components/JunFestivalPlayer.client.vue.d.ts +3 -0
- package/dist/runtime/components/JunFooter.d.vue.ts +3 -0
- package/dist/runtime/components/JunFooter.vue +102 -0
- package/dist/runtime/components/JunFooter.vue.d.ts +3 -0
- package/dist/runtime/components/JunGlobeEditor.client.d.vue.ts +43 -0
- package/dist/runtime/components/JunGlobeEditor.client.vue +315 -0
- package/dist/runtime/components/JunGlobeEditor.client.vue.d.ts +43 -0
- package/dist/runtime/components/JunGlobeMap.client.d.vue.ts +58 -0
- package/dist/runtime/components/JunGlobeMap.client.vue +495 -0
- package/dist/runtime/components/JunGlobeMap.client.vue.d.ts +58 -0
- package/dist/runtime/components/JunHead.d.vue.ts +3 -0
- package/dist/runtime/components/JunHead.vue +79 -0
- package/dist/runtime/components/JunHead.vue.d.ts +3 -0
- package/dist/runtime/components/JunHorizontalTimeline.d.vue.ts +0 -0
- package/dist/runtime/components/JunHorizontalTimeline.vue +363 -0
- package/dist/runtime/components/JunHorizontalTimeline.vue.d.ts +0 -0
- package/dist/runtime/components/JunImagePopup.client.d.vue.ts +3 -0
- package/dist/runtime/components/JunImagePopup.client.vue +422 -0
- package/dist/runtime/components/JunImagePopup.client.vue.d.ts +3 -0
- package/dist/runtime/components/JunIntro.d.vue.ts +3 -0
- package/dist/runtime/components/JunIntro.vue +156 -0
- package/dist/runtime/components/JunIntro.vue.d.ts +3 -0
- package/dist/runtime/components/JunItemMenu.d.vue.ts +50 -0
- package/dist/runtime/components/JunItemMenu.vue +97 -0
- package/dist/runtime/components/JunItemMenu.vue.d.ts +50 -0
- package/dist/runtime/components/JunLinksRow.d.vue.ts +19 -0
- package/dist/runtime/components/JunLinksRow.vue +96 -0
- package/dist/runtime/components/JunLinksRow.vue.d.ts +19 -0
- package/dist/runtime/components/JunLogo.d.vue.ts +15 -0
- package/dist/runtime/components/JunLogo.vue +360 -0
- package/dist/runtime/components/JunLogo.vue.d.ts +15 -0
- package/dist/runtime/components/JunMedia.client.d.vue.ts +40 -0
- package/dist/runtime/components/JunMedia.client.vue +117 -0
- package/dist/runtime/components/JunMedia.client.vue.d.ts +40 -0
- package/dist/runtime/components/JunMosaicPane.client.d.vue.ts +24 -0
- package/dist/runtime/components/JunMosaicPane.client.vue +95 -0
- package/dist/runtime/components/JunMosaicPane.client.vue.d.ts +24 -0
- package/dist/runtime/components/JunNavigation.d.vue.ts +26 -0
- package/dist/runtime/components/JunNavigation.vue +1149 -0
- package/dist/runtime/components/JunNavigation.vue.d.ts +26 -0
- package/dist/runtime/components/JunNodePanel.client.d.vue.ts +3 -0
- package/dist/runtime/components/JunNodePanel.client.vue +23 -0
- package/dist/runtime/components/JunNodePanel.client.vue.d.ts +3 -0
- package/dist/runtime/components/JunNotFound.d.vue.ts +7 -0
- package/dist/runtime/components/JunNotFound.vue +137 -0
- package/dist/runtime/components/JunNotFound.vue.d.ts +7 -0
- package/dist/runtime/components/JunPageHero.d.vue.ts +25 -0
- package/dist/runtime/components/JunPageHero.vue +90 -0
- package/dist/runtime/components/JunPageHero.vue.d.ts +25 -0
- package/dist/runtime/components/JunPatternBackdrop.client.d.vue.ts +7 -0
- package/dist/runtime/components/JunPatternBackdrop.client.vue +95 -0
- package/dist/runtime/components/JunPatternBackdrop.client.vue.d.ts +7 -0
- package/dist/runtime/components/JunPeerCursors.client.d.vue.ts +3 -0
- package/dist/runtime/components/JunPeerCursors.client.vue +123 -0
- package/dist/runtime/components/JunPeerCursors.client.vue.d.ts +3 -0
- package/dist/runtime/components/JunPresenceBlobs.client.d.vue.ts +3 -0
- package/dist/runtime/components/JunPresenceBlobs.client.vue +172 -0
- package/dist/runtime/components/JunPresenceBlobs.client.vue.d.ts +3 -0
- package/dist/runtime/components/JunSearch.client.d.vue.ts +3 -0
- package/dist/runtime/components/JunSearch.client.vue +809 -0
- package/dist/runtime/components/JunSearch.client.vue.d.ts +3 -0
- package/dist/runtime/components/JunServiceCard.d.vue.ts +10 -0
- package/dist/runtime/components/JunServiceCard.vue +145 -0
- package/dist/runtime/components/JunServiceCard.vue.d.ts +10 -0
- package/dist/runtime/components/JunShaderBackdrop.client.d.vue.ts +3 -0
- package/dist/runtime/components/JunShaderBackdrop.client.vue +82 -0
- package/dist/runtime/components/JunShaderBackdrop.client.vue.d.ts +3 -0
- package/dist/runtime/components/JunShell.d.vue.ts +17 -0
- package/dist/runtime/components/JunShell.vue +80 -0
- package/dist/runtime/components/JunShell.vue.d.ts +17 -0
- package/dist/runtime/components/JunStudioBar.client.d.vue.ts +3 -0
- package/dist/runtime/components/JunStudioBar.client.vue +462 -0
- package/dist/runtime/components/JunStudioBar.client.vue.d.ts +3 -0
- package/dist/runtime/components/JunStudioLogin.client.d.vue.ts +3 -0
- package/dist/runtime/components/JunStudioLogin.client.vue +58 -0
- package/dist/runtime/components/JunStudioLogin.client.vue.d.ts +3 -0
- package/dist/runtime/components/JunThemeToggle.d.vue.ts +3 -0
- package/dist/runtime/components/JunThemeToggle.vue +32 -0
- package/dist/runtime/components/JunThemeToggle.vue.d.ts +3 -0
- package/dist/runtime/components/JunTravellersChip.d.vue.ts +9 -0
- package/dist/runtime/components/JunTravellersChip.vue +111 -0
- package/dist/runtime/components/JunTravellersChip.vue.d.ts +9 -0
- package/dist/runtime/components/JunVideoEmbed.client.d.vue.ts +23 -0
- package/dist/runtime/components/JunVideoEmbed.client.vue +124 -0
- package/dist/runtime/components/JunVideoEmbed.client.vue.d.ts +23 -0
- package/dist/runtime/components/css-modules.d.ts +7 -0
- package/dist/runtime/components/renderers/.gitkeep +0 -0
- package/dist/runtime/components/renderers/JunAppsRenderer.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/JunAppsRenderer.vue +271 -0
- package/dist/runtime/components/renderers/JunAppsRenderer.vue.d.ts +10 -0
- package/dist/runtime/components/renderers/JunCinemaRenderer.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/JunCinemaRenderer.vue +465 -0
- package/dist/runtime/components/renderers/JunCinemaRenderer.vue.d.ts +10 -0
- package/dist/runtime/components/renderers/JunConfigRenderer.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/JunConfigRenderer.vue +2045 -0
- package/dist/runtime/components/renderers/JunConfigRenderer.vue.d.ts +10 -0
- package/dist/runtime/components/renderers/JunCvRenderer.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/JunCvRenderer.vue +256 -0
- package/dist/runtime/components/renderers/JunCvRenderer.vue.d.ts +10 -0
- package/dist/runtime/components/renderers/JunEntryRenderer.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/JunEntryRenderer.vue +429 -0
- package/dist/runtime/components/renderers/JunEntryRenderer.vue.d.ts +10 -0
- package/dist/runtime/components/renderers/JunFestivalRenderer.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/JunFestivalRenderer.vue +557 -0
- package/dist/runtime/components/renderers/JunFestivalRenderer.vue.d.ts +10 -0
- package/dist/runtime/components/renderers/JunGlobeRenderer.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/JunGlobeRenderer.vue +91 -0
- package/dist/runtime/components/renderers/JunGlobeRenderer.vue.d.ts +10 -0
- package/dist/runtime/components/renderers/JunGuestbookRenderer.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/JunGuestbookRenderer.vue +326 -0
- package/dist/runtime/components/renderers/JunGuestbookRenderer.vue.d.ts +10 -0
- package/dist/runtime/components/renderers/JunHomeRenderer.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/JunHomeRenderer.vue +585 -0
- package/dist/runtime/components/renderers/JunHomeRenderer.vue.d.ts +10 -0
- package/dist/runtime/components/renderers/JunJournalRenderer.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/JunJournalRenderer.vue +420 -0
- package/dist/runtime/components/renderers/JunJournalRenderer.vue.d.ts +10 -0
- package/dist/runtime/components/renderers/JunLibraryRenderer.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/JunLibraryRenderer.vue +319 -0
- package/dist/runtime/components/renderers/JunLibraryRenderer.vue.d.ts +10 -0
- package/dist/runtime/components/renderers/JunLinksRenderer.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/JunLinksRenderer.vue +206 -0
- package/dist/runtime/components/renderers/JunLinksRenderer.vue.d.ts +10 -0
- package/dist/runtime/components/renderers/JunLiveRenderer.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/JunLiveRenderer.vue +684 -0
- package/dist/runtime/components/renderers/JunLiveRenderer.vue.d.ts +10 -0
- package/dist/runtime/components/renderers/JunMosaicRenderer.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/JunMosaicRenderer.vue +572 -0
- package/dist/runtime/components/renderers/JunMosaicRenderer.vue.d.ts +10 -0
- package/dist/runtime/components/renderers/JunMovieRenderer.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/JunMovieRenderer.vue +539 -0
- package/dist/runtime/components/renderers/JunMovieRenderer.vue.d.ts +10 -0
- package/dist/runtime/components/renderers/JunNowRenderer.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/JunNowRenderer.vue +382 -0
- package/dist/runtime/components/renderers/JunNowRenderer.vue.d.ts +10 -0
- package/dist/runtime/components/renderers/JunProjectRenderer.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/JunProjectRenderer.vue +413 -0
- package/dist/runtime/components/renderers/JunProjectRenderer.vue.d.ts +10 -0
- package/dist/runtime/components/renderers/JunRedirectRenderer.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/JunRedirectRenderer.vue +133 -0
- package/dist/runtime/components/renderers/JunRedirectRenderer.vue.d.ts +10 -0
- package/dist/runtime/components/renderers/JunServicesRenderer.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/JunServicesRenderer.vue +267 -0
- package/dist/runtime/components/renderers/JunServicesRenderer.vue.d.ts +10 -0
- package/dist/runtime/components/renderers/JunStatsRenderer.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/JunStatsRenderer.vue +230 -0
- package/dist/runtime/components/renderers/JunStatsRenderer.vue.d.ts +10 -0
- package/dist/runtime/components/renderers/JunTrackRenderer.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/JunTrackRenderer.vue +380 -0
- package/dist/runtime/components/renderers/JunTrackRenderer.vue.d.ts +10 -0
- package/dist/runtime/components/renderers/JunUsesRenderer.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/JunUsesRenderer.vue +254 -0
- package/dist/runtime/components/renderers/JunUsesRenderer.vue.d.ts +10 -0
- package/dist/runtime/components/renderers/JunWallRenderer.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/JunWallRenderer.vue +276 -0
- package/dist/runtime/components/renderers/JunWallRenderer.vue.d.ts +10 -0
- package/dist/runtime/components/renderers/JunWindowRenderer.d.vue.ts +10 -0
- package/dist/runtime/components/renderers/JunWindowRenderer.vue +516 -0
- package/dist/runtime/components/renderers/JunWindowRenderer.vue.d.ts +10 -0
- package/dist/runtime/composables/useJunBackdrop.d.ts +9 -0
- package/dist/runtime/composables/useJunBackdrop.js +27 -0
- package/dist/runtime/composables/useJunBackground.d.ts +78 -0
- package/dist/runtime/composables/useJunBackground.js +65 -0
- package/dist/runtime/composables/useJunCampfire.d.ts +156 -0
- package/dist/runtime/composables/useJunCampfire.js +225 -0
- package/dist/runtime/composables/useJunChrome.d.ts +66 -0
- package/dist/runtime/composables/useJunChrome.js +233 -0
- package/dist/runtime/composables/useJunColorMode.d.ts +8 -0
- package/dist/runtime/composables/useJunColorMode.js +11 -0
- package/dist/runtime/composables/useJunCommands.d.ts +37 -0
- package/dist/runtime/composables/useJunCommands.js +225 -0
- package/dist/runtime/composables/useJunCreatePage.d.ts +17 -0
- package/dist/runtime/composables/useJunCreatePage.js +30 -0
- package/dist/runtime/composables/useJunCurrentDoc.d.ts +5 -0
- package/dist/runtime/composables/useJunCurrentDoc.js +14 -0
- package/dist/runtime/composables/useJunDocMenu.d.ts +71 -0
- package/dist/runtime/composables/useJunDocMenu.js +344 -0
- package/dist/runtime/composables/useJunDocPage.d.ts +99 -0
- package/dist/runtime/composables/useJunDocPage.js +155 -0
- package/dist/runtime/composables/useJunFollow.d.ts +11 -0
- package/dist/runtime/composables/useJunFollow.js +38 -0
- package/dist/runtime/composables/useJunGroupedDnD.d.ts +74 -0
- package/dist/runtime/composables/useJunGroupedDnD.js +186 -0
- package/dist/runtime/composables/useJunImagePopup.d.ts +37 -0
- package/dist/runtime/composables/useJunImagePopup.js +24 -0
- package/dist/runtime/composables/useJunIntro.d.ts +7 -0
- package/dist/runtime/composables/useJunIntro.js +8 -0
- package/dist/runtime/composables/useJunListDnD.d.ts +65 -0
- package/dist/runtime/composables/useJunListDnD.js +159 -0
- package/dist/runtime/composables/useJunMediaImport.d.ts +27 -0
- package/dist/runtime/composables/useJunMediaImport.js +90 -0
- package/dist/runtime/composables/useJunNavSettings.d.ts +57 -0
- package/dist/runtime/composables/useJunNavSettings.js +74 -0
- package/dist/runtime/composables/useJunNodePanel.d.ts +41 -0
- package/dist/runtime/composables/useJunNodePanel.js +36 -0
- package/dist/runtime/composables/useJunOpenDoc.d.ts +7 -0
- package/dist/runtime/composables/useJunOpenDoc.js +30 -0
- package/dist/runtime/composables/useJunOptions.d.ts +68 -0
- package/dist/runtime/composables/useJunOptions.js +68 -0
- package/dist/runtime/composables/useJunPalette.d.ts +16 -0
- package/dist/runtime/composables/useJunPalette.js +72 -0
- package/dist/runtime/composables/useJunPeopleAdmin.d.ts +69 -0
- package/dist/runtime/composables/useJunPeopleAdmin.js +73 -0
- package/dist/runtime/composables/useJunPlayer.d.ts +99 -0
- package/dist/runtime/composables/useJunPlayer.js +208 -0
- package/dist/runtime/composables/useJunPresence.d.ts +32 -0
- package/dist/runtime/composables/useJunPresence.js +53 -0
- package/dist/runtime/composables/useJunPressDrag.d.ts +20 -0
- package/dist/runtime/composables/useJunPressDrag.js +85 -0
- package/dist/runtime/composables/useJunRecent.d.ts +9 -0
- package/dist/runtime/composables/useJunRecent.js +44 -0
- package/dist/runtime/composables/useJunRename.d.ts +19 -0
- package/dist/runtime/composables/useJunRename.js +62 -0
- package/dist/runtime/composables/useJunRouteGeoHeal.d.ts +1 -0
- package/dist/runtime/composables/useJunRouteGeoHeal.js +45 -0
- package/dist/runtime/composables/useJunRouting.d.ts +29 -0
- package/dist/runtime/composables/useJunRouting.js +101 -0
- package/dist/runtime/composables/useJunSearch.d.ts +6 -0
- package/dist/runtime/composables/useJunSearch.js +16 -0
- package/dist/runtime/composables/useJunSelfId.d.ts +1 -0
- package/dist/runtime/composables/useJunSelfId.js +28 -0
- package/dist/runtime/composables/useJunSiteConfig.d.ts +229 -0
- package/dist/runtime/composables/useJunSiteConfig.js +95 -0
- package/dist/runtime/composables/useJunSiteConfigValues.d.ts +33 -0
- package/dist/runtime/composables/useJunSiteConfigValues.js +21 -0
- package/dist/runtime/composables/useJunStagger.d.ts +54 -0
- package/dist/runtime/composables/useJunStagger.js +23 -0
- package/dist/runtime/composables/useJunStudio.d.ts +11 -0
- package/dist/runtime/composables/useJunStudio.js +51 -0
- package/dist/runtime/composables/useJunSurface.d.ts +19 -0
- package/dist/runtime/composables/useJunSurface.js +8 -0
- package/dist/runtime/composables/useJunTheme.d.ts +21 -0
- package/dist/runtime/composables/useJunTheme.js +138 -0
- package/dist/runtime/composables/useJunThemeTransition.d.ts +5 -0
- package/dist/runtime/composables/useJunThemeTransition.js +32 -0
- package/dist/runtime/composables/useJunUpload.d.ts +12 -0
- package/dist/runtime/composables/useJunUpload.js +44 -0
- package/dist/runtime/composables/useJunViewingAccent.d.ts +6 -0
- package/dist/runtime/composables/useJunViewingAccent.js +28 -0
- package/dist/runtime/error.d.vue.ts +7 -0
- package/dist/runtime/error.vue +74 -0
- package/dist/runtime/error.vue.d.ts +7 -0
- package/dist/runtime/layouts/jun.d.vue.ts +13 -0
- package/dist/runtime/layouts/jun.vue +162 -0
- package/dist/runtime/layouts/jun.vue.d.ts +13 -0
- package/dist/runtime/pages/doc.d.vue.ts +3 -0
- package/dist/runtime/pages/doc.vue +142 -0
- package/dist/runtime/pages/doc.vue.d.ts +3 -0
- package/dist/runtime/pages/index.d.vue.ts +3 -0
- package/dist/runtime/pages/index.vue +64 -0
- package/dist/runtime/pages/index.vue.d.ts +3 -0
- package/dist/runtime/plugins/jun-drag-affordance.client.d.ts +2 -0
- package/dist/runtime/plugins/jun-drag-affordance.client.js +9 -0
- package/dist/runtime/router.options.d.ts +3 -0
- package/dist/runtime/router.options.js +72 -0
- package/dist/runtime/server/api/nav.get.d.ts +9 -0
- package/dist/runtime/server/api/nav.get.js +16 -0
- package/dist/runtime/server/api/resolve/[...slug].get.d.ts +18 -0
- package/dist/runtime/server/api/resolve/[...slug].get.js +20 -0
- package/dist/runtime/server/api/search.get.d.ts +13 -0
- package/dist/runtime/server/api/search.get.js +72 -0
- package/dist/runtime/server/api/service.get.d.ts +12 -0
- package/dist/runtime/server/api/service.get.js +39 -0
- package/dist/runtime/server/api/site-config.get.d.ts +2 -0
- package/dist/runtime/server/api/site-config.get.js +3 -0
- package/dist/runtime/server/api/stats.get.d.ts +12 -0
- package/dist/runtime/server/api/stats.get.js +56 -0
- package/dist/runtime/server/janitor/junJanitorActor.d.ts +179 -0
- package/dist/runtime/server/janitor/junJanitorActor.js +305 -0
- package/dist/runtime/server/janitor/junJanitorChores.d.ts +137 -0
- package/dist/runtime/server/janitor/junJanitorChores.js +189 -0
- package/dist/runtime/server/janitor/junJanitorDiff.d.ts +41 -0
- package/dist/runtime/server/janitor/junJanitorDiff.js +109 -0
- package/dist/runtime/server/janitor/junJanitorListen.d.ts +33 -0
- package/dist/runtime/server/janitor/junJanitorListen.js +43 -0
- package/dist/runtime/server/janitor/junJanitorMachine.d.ts +60 -0
- package/dist/runtime/server/janitor/junJanitorMachine.js +598 -0
- package/dist/runtime/server/janitor/junJanitorMotor.d.ts +211 -0
- package/dist/runtime/server/janitor/junJanitorMotor.js +241 -0
- package/dist/runtime/server/janitor/junJanitorPatrol.d.ts +68 -0
- package/dist/runtime/server/janitor/junJanitorPatrol.js +34 -0
- package/dist/runtime/server/janitor/junJanitorPerform.d.ts +70 -0
- package/dist/runtime/server/janitor/junJanitorPerform.js +72 -0
- package/dist/runtime/server/janitor/junJanitorRandom.d.ts +54 -0
- package/dist/runtime/server/janitor/junJanitorRandom.js +48 -0
- package/dist/runtime/server/janitor/junJanitorStore.d.ts +159 -0
- package/dist/runtime/server/janitor/junJanitorStore.js +269 -0
- package/dist/runtime/server/janitor/junJanitorVoice.d.ts +86 -0
- package/dist/runtime/server/janitor/junJanitorVoice.js +193 -0
- package/dist/runtime/server/janitor/junJanitorYText.d.ts +164 -0
- package/dist/runtime/server/janitor/junJanitorYText.js +258 -0
- package/dist/runtime/server/plugins/jun-bootstrap.d.ts +25 -0
- package/dist/runtime/server/plugins/jun-bootstrap.js +652 -0
- package/dist/runtime/server/plugins/jun-doc-cache.d.ts +2 -0
- package/dist/runtime/server/plugins/jun-doc-cache.js +142 -0
- package/dist/runtime/server/plugins/jun-janitor.d.ts +2 -0
- package/dist/runtime/server/plugins/jun-janitor.js +176 -0
- package/dist/runtime/server/plugins/jun-rpc.d.ts +2 -0
- package/dist/runtime/server/plugins/jun-rpc.js +455 -0
- package/dist/runtime/server/routes/feed.json.get.d.ts +21 -0
- package/dist/runtime/server/routes/feed.json.get.js +25 -0
- package/dist/runtime/server/routes/feed.xml.get.d.ts +2 -0
- package/dist/runtime/server/routes/feed.xml.get.js +34 -0
- package/dist/runtime/server/routes/sitemap.xml.get.d.ts +2 -0
- package/dist/runtime/server/routes/sitemap.xml.get.js +27 -0
- package/dist/runtime/server/utils/junCache.d.ts +41 -0
- package/dist/runtime/server/utils/junCache.js +32 -0
- package/dist/runtime/server/utils/junFeed.d.ts +20 -0
- package/dist/runtime/server/utils/junFeed.js +71 -0
- package/dist/runtime/server/utils/junServiceFetch.d.ts +46 -0
- package/dist/runtime/server/utils/junServiceFetch.js +320 -0
- package/dist/runtime/server/utils/junVisibility.d.ts +31 -0
- package/dist/runtime/server/utils/junVisibility.js +6 -0
- package/dist/runtime/types.d.ts +853 -0
- package/dist/runtime/types.js +1 -0
- package/dist/runtime/utils/junDate.d.ts +38 -0
- package/dist/runtime/utils/junDate.js +30 -0
- package/dist/runtime/utils/junDndGeometry.d.ts +62 -0
- package/dist/runtime/utils/junDndGeometry.js +56 -0
- package/dist/runtime/utils/junDocTypeIcons.d.ts +30 -0
- package/dist/runtime/utils/junDocTypeIcons.js +30 -0
- package/dist/runtime/utils/junEditorBodyText.d.ts +32 -0
- package/dist/runtime/utils/junEditorBodyText.js +10 -0
- package/dist/runtime/utils/junMapboxToken.d.ts +1 -0
- package/dist/runtime/utils/junMapboxToken.js +5 -0
- package/dist/runtime/utils/junMatch.d.ts +45 -0
- package/dist/runtime/utils/junMatch.js +37 -0
- package/dist/runtime/utils/junMetaSchemas.d.ts +23 -0
- package/dist/runtime/utils/junMetaSchemas.js +94 -0
- package/dist/runtime/utils/junMotion.d.ts +71 -0
- package/dist/runtime/utils/junMotion.js +3 -0
- package/dist/runtime/utils/junServiceRef.d.ts +21 -0
- package/dist/runtime/utils/junServiceRef.js +94 -0
- package/dist/runtime/utils/junSimplifyPath.d.ts +23 -0
- package/dist/runtime/utils/junSimplifyPath.js +57 -0
- package/dist/runtime/utils/junTransportModes.d.ts +49 -0
- package/dist/runtime/utils/junTransportModes.js +37 -0
- package/dist/runtime/utils/junVideoSource.d.ts +51 -0
- package/dist/runtime/utils/junVideoSource.js +110 -0
- package/dist/runtime/utils/junVisibility.d.ts +14 -0
- package/dist/runtime/utils/junVisibility.js +6 -0
- package/dist/types.d.mts +5 -0
- package/package.json +111 -0
|
@@ -0,0 +1,2045 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, ref, watch } from "vue";
|
|
3
|
+
import { useRoute } from "vue-router";
|
|
4
|
+
import {
|
|
5
|
+
JUN_BACKGROUND_VOCAB,
|
|
6
|
+
JUN_CAMPFIRE_VOCAB,
|
|
7
|
+
junCampfireLabel,
|
|
8
|
+
junCampfireReactions,
|
|
9
|
+
useAbracadabra,
|
|
10
|
+
useChildTree,
|
|
11
|
+
useDocTree,
|
|
12
|
+
useJunBackdrop,
|
|
13
|
+
useJunBackgroundImage,
|
|
14
|
+
useJunOptions,
|
|
15
|
+
useJunStudio,
|
|
16
|
+
useJunUpload
|
|
17
|
+
} from "#imports";
|
|
18
|
+
const props = defineProps({
|
|
19
|
+
docId: { type: String, required: true },
|
|
20
|
+
docLabel: { type: String, required: false },
|
|
21
|
+
docMeta: { type: Object, required: false },
|
|
22
|
+
childProvider: { type: null, required: false },
|
|
23
|
+
editable: { type: Boolean, required: false }
|
|
24
|
+
});
|
|
25
|
+
const route = useRoute();
|
|
26
|
+
const abra = useAbracadabra();
|
|
27
|
+
const tree = useChildTree(abra.doc, props.docId);
|
|
28
|
+
const { getEntry } = useDocTree();
|
|
29
|
+
const { editing, canEdit } = useJunStudio();
|
|
30
|
+
const config = computed(
|
|
31
|
+
() => getEntry(props.docId)?.meta ?? props.docMeta ?? {}
|
|
32
|
+
);
|
|
33
|
+
function set(patch) {
|
|
34
|
+
tree.updateMeta(props.docId, patch);
|
|
35
|
+
}
|
|
36
|
+
function setText(key, e) {
|
|
37
|
+
const value = e.target.value.trim();
|
|
38
|
+
set({ [key]: value || void 0 });
|
|
39
|
+
}
|
|
40
|
+
const opts = useJunOptions();
|
|
41
|
+
const { navigation } = opts;
|
|
42
|
+
const { choices: backdropChoices, isShader } = useJunBackdrop();
|
|
43
|
+
const itemModeOptions = [
|
|
44
|
+
{ label: "Text", value: "text", icon: "i-lucide-type", hint: "Labels" },
|
|
45
|
+
{ label: "Icons", value: "icon", icon: "i-lucide-shapes", hint: "Icon-only pills" },
|
|
46
|
+
{ label: "Icon + focus", value: "icon-focus", icon: "i-lucide-scan-eye", hint: "Label slides out on hover" },
|
|
47
|
+
{ label: "Icon + title", value: "icon-text", icon: "i-lucide-captions", hint: "Both, side by side" },
|
|
48
|
+
{ label: "Stacked", value: "icon-stack", icon: "i-lucide-square-chart-gantt", hint: "Label under the icon" }
|
|
49
|
+
];
|
|
50
|
+
const activeStyleOptions = [
|
|
51
|
+
{ label: "Underline", value: "underline", icon: "i-lucide-underline" },
|
|
52
|
+
{ label: "Pill", value: "pill", icon: "i-lucide-rectangle-horizontal" },
|
|
53
|
+
{ label: "Dot", value: "dot", icon: "i-lucide-circle-small" },
|
|
54
|
+
{ label: "Bold", value: "bold", icon: "i-lucide-bold" },
|
|
55
|
+
{ label: "Glow", value: "glow", icon: "i-lucide-sun-dim" },
|
|
56
|
+
{ label: "Box", value: "box", icon: "i-lucide-square" },
|
|
57
|
+
{ label: "Bracket", value: "bracket", icon: "i-lucide-brackets" }
|
|
58
|
+
];
|
|
59
|
+
const placementOptions = [
|
|
60
|
+
{ label: "Top", value: "top", icon: "i-lucide-panel-top", hint: "A floating pill under the top edge" },
|
|
61
|
+
{ label: "Top bar", value: "top-bar", icon: "i-lucide-panel-top-dashed", hint: "Full width, docked" },
|
|
62
|
+
{ label: "Bottom", value: "bottom", icon: "i-lucide-panel-bottom", hint: "A dock at the bottom edge" },
|
|
63
|
+
{ label: "Left rail", value: "rail-left", icon: "i-lucide-panel-left", hint: "Vertical; falls back to Top on narrow screens" },
|
|
64
|
+
{ label: "Right rail", value: "rail-right", icon: "i-lucide-panel-right", hint: "Vertical; falls back to Top on narrow screens" }
|
|
65
|
+
];
|
|
66
|
+
const shapeOptions = [
|
|
67
|
+
{ label: "Pill", value: "pill", radius: "8px" },
|
|
68
|
+
{ label: "Rounded", value: "rounded", radius: "16px" },
|
|
69
|
+
{ label: "Square", value: "square", radius: "0px" },
|
|
70
|
+
{ label: "Ghost", value: "ghost", radius: "8px", bare: true }
|
|
71
|
+
];
|
|
72
|
+
const navSizeOptions = [
|
|
73
|
+
{ label: "Small", value: "sm", bar: "h-1.5" },
|
|
74
|
+
{ label: "Medium", value: "md", bar: "h-2.5" },
|
|
75
|
+
{ label: "Large", value: "lg", bar: "h-3.5" }
|
|
76
|
+
];
|
|
77
|
+
const backdropOptions = {
|
|
78
|
+
blobs: { label: "Blobs", icon: "i-lucide-circle", hint: "Three drifting radial glows" },
|
|
79
|
+
dots: { label: "Dots", icon: "i-lucide-grip", hint: "A quiet lattice" },
|
|
80
|
+
grid: { label: "Grid", icon: "i-lucide-grid-3x3", hint: "Engineering-paper rules" },
|
|
81
|
+
aurora: { label: "Aurora", icon: "i-lucide-waves", hint: "Wide crossing bands" },
|
|
82
|
+
mesh: { label: "Mesh", icon: "i-lucide-blend", hint: "Corner gradients breathing" },
|
|
83
|
+
rings: { label: "Rings", icon: "i-lucide-radar", hint: "Concentric, expanding" },
|
|
84
|
+
waves: { label: "Waves", icon: "i-lucide-audio-waveform", hint: "Layered along the bottom" },
|
|
85
|
+
noise: { label: "Grain", icon: "i-lucide-scan-line", hint: "A still film grain" },
|
|
86
|
+
solid: { label: "None", icon: "i-lucide-square-dashed", hint: "The flat theme base" },
|
|
87
|
+
shader: { label: "Shader", icon: "i-lucide-flame", hint: "Build-time only" }
|
|
88
|
+
};
|
|
89
|
+
const logoOptions = [
|
|
90
|
+
{ label: "Sprout", value: "sprout", hint: "A j that is also a tree \u2014 and, upside down, the bang" },
|
|
91
|
+
{ label: "Node", value: "node", hint: "The same silhouette as a graph: three points, two edges" },
|
|
92
|
+
{ label: "Page", value: "page", hint: "The document glyph, with the bang set inside it" },
|
|
93
|
+
{ label: "Sun", value: "sun", hint: "The orb \u2014 the one mark that carries a colour, and it takes the site accent" }
|
|
94
|
+
];
|
|
95
|
+
const logoVariantOptions = [
|
|
96
|
+
{ label: "Mark", value: "mark", icon: "i-lucide-shapes" },
|
|
97
|
+
{ label: "Mark + name", value: "lockup", icon: "i-lucide-gallery-horizontal-end" },
|
|
98
|
+
{ label: "Name only", value: "wordmark", icon: "i-lucide-type" }
|
|
99
|
+
];
|
|
100
|
+
const accentOptions = [
|
|
101
|
+
{ value: "mono", label: "Monochrome", swatch: null },
|
|
102
|
+
// The house amber, and the colour the `sun` mark was drawn in. Its swatch is
|
|
103
|
+
// the ORB's colour rather than the slightly deeper `--ui-primary` the accent
|
|
104
|
+
// paints links with — the swatch is what the visitor will recognise.
|
|
105
|
+
{ value: "sun", label: "Sun", swatch: "#ff9f00" },
|
|
106
|
+
{ value: "blue", label: "Blue", swatch: "#2563eb" },
|
|
107
|
+
{ value: "emerald", label: "Emerald", swatch: "#059669" },
|
|
108
|
+
{ value: "violet", label: "Violet", swatch: "#7c3aed" },
|
|
109
|
+
{ value: "amber", label: "Amber", swatch: "#d97706" },
|
|
110
|
+
{ value: "rose", label: "Rose", swatch: "#e11d48" },
|
|
111
|
+
{ value: "teal", label: "Teal", swatch: "#0d9488" }
|
|
112
|
+
];
|
|
113
|
+
const radiusOptions = [
|
|
114
|
+
{ value: "none", label: "Square", px: "0px" },
|
|
115
|
+
{ value: "xs", label: "XS", px: "2px" },
|
|
116
|
+
{ value: "sm", label: "S", px: "4px" },
|
|
117
|
+
{ value: "md", label: "M", px: "6px" },
|
|
118
|
+
{ value: "lg", label: "L", px: "10px" },
|
|
119
|
+
{ value: "xl", label: "XL", px: "16px" }
|
|
120
|
+
];
|
|
121
|
+
const neutralOptions = [
|
|
122
|
+
{ value: "slate", label: "Slate", shades: ["#e2e8f0", "#64748b", "#1e293b"] },
|
|
123
|
+
{ value: "zinc", label: "Zinc", shades: ["#e4e4e7", "#71717a", "#27272a"] },
|
|
124
|
+
{ value: "stone", label: "Stone", shades: ["#e7e5e4", "#78716c", "#292524"] }
|
|
125
|
+
];
|
|
126
|
+
const blobOptions = [
|
|
127
|
+
{ value: "off", label: "Off", icon: "i-lucide-circle-off" },
|
|
128
|
+
{ value: "quiet", label: "Quiet", icon: "i-lucide-circle-dashed" },
|
|
129
|
+
{ value: "normal", label: "Normal", icon: "i-lucide-circle" },
|
|
130
|
+
{ value: "bold", label: "Bold", icon: "i-lucide-circle-dot" }
|
|
131
|
+
];
|
|
132
|
+
const fontOptions = [
|
|
133
|
+
{ value: "default", label: "Outfit", family: '"Outfit", system-ui, sans-serif' },
|
|
134
|
+
{ value: "serif", label: "Newsreader", family: '"Newsreader", Georgia, serif' },
|
|
135
|
+
{ value: "grotesk", label: "Space Grotesk", family: '"Space Grotesk", system-ui, sans-serif' },
|
|
136
|
+
{ value: "mono", label: "JetBrains Mono", family: '"JetBrains Mono", ui-monospace, monospace' }
|
|
137
|
+
];
|
|
138
|
+
function navChoice(key, allowed, fallback) {
|
|
139
|
+
return computed({
|
|
140
|
+
get: () => {
|
|
141
|
+
const v = config.value[key];
|
|
142
|
+
return typeof v === "string" && allowed.includes(v) ? v : fallback;
|
|
143
|
+
},
|
|
144
|
+
set: (v) => set({ [key]: v === fallback ? void 0 : v })
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
function navFlag(key, fallback) {
|
|
148
|
+
return computed({
|
|
149
|
+
get: () => {
|
|
150
|
+
const v = config.value[key];
|
|
151
|
+
return typeof v === "boolean" ? v : fallback;
|
|
152
|
+
},
|
|
153
|
+
set: (v) => set({ [key]: v === fallback ? void 0 : v })
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
const itemMode = navChoice(
|
|
157
|
+
"navItemMode",
|
|
158
|
+
itemModeOptions.map((o) => o.value),
|
|
159
|
+
navigation.itemMode
|
|
160
|
+
);
|
|
161
|
+
const activeStyle = navChoice(
|
|
162
|
+
"navActiveStyle",
|
|
163
|
+
activeStyleOptions.map((o) => o.value),
|
|
164
|
+
navigation.activeStyle
|
|
165
|
+
);
|
|
166
|
+
const placement = navChoice(
|
|
167
|
+
"navPlacement",
|
|
168
|
+
placementOptions.map((o) => o.value),
|
|
169
|
+
navigation.placement
|
|
170
|
+
);
|
|
171
|
+
const navShape = navChoice("navShape", shapeOptions.map((o) => o.value), navigation.shape);
|
|
172
|
+
const navSize = navChoice("navSize", navSizeOptions.map((o) => o.value), navigation.size);
|
|
173
|
+
const showIndices = navFlag("navShowIndices", navigation.showIndices);
|
|
174
|
+
const keyboardNav = navFlag("navKeyboardNav", navigation.keyboardNav);
|
|
175
|
+
const freshnessDots = navFlag("navFreshnessDots", navigation.freshnessDots);
|
|
176
|
+
const navAutoHide = navFlag("navAutoHide", navigation.autoHide);
|
|
177
|
+
const navBlur = navFlag("navBlur", navigation.blur);
|
|
178
|
+
const navHomeItem = navFlag("navHomeItem", navigation.homeItem);
|
|
179
|
+
const navShowLogo = navFlag("navShowLogo", navigation.showLogo);
|
|
180
|
+
const navSearchButton = navFlag("navSearchButton", navigation.searchButton);
|
|
181
|
+
const navLogoAction = navChoice("navLogoAction", ["home", "palette"], navigation.logoAction);
|
|
182
|
+
const navCenterActive = navFlag("navCenterActive", navigation.centerActive);
|
|
183
|
+
const navTravellers = navFlag("navTravellers", navigation.travellers);
|
|
184
|
+
const navTravellersList = navFlag("navTravellersList", navigation.travellersList);
|
|
185
|
+
const presenceBlobsAvailable = computed(
|
|
186
|
+
() => opts.features.presence !== false && opts.features.awareBlobs === true
|
|
187
|
+
);
|
|
188
|
+
const presenceBlobs = navFlag("presenceBlobs", true);
|
|
189
|
+
const brandLogo = navChoice("brandLogo", logoOptions.map((o) => o.value), opts.brand.logoMark);
|
|
190
|
+
const brandLogoVariant = navChoice(
|
|
191
|
+
"brandLogoVariant",
|
|
192
|
+
logoVariantOptions.map((o) => o.value),
|
|
193
|
+
opts.brand.logoVariant
|
|
194
|
+
);
|
|
195
|
+
const themeAccent = computed({
|
|
196
|
+
get: () => config.value.themeAccent ?? "mono",
|
|
197
|
+
set: (v) => set({ themeAccent: v === "mono" ? void 0 : v })
|
|
198
|
+
});
|
|
199
|
+
const themeRadius = computed({
|
|
200
|
+
get: () => config.value.themeRadius ?? "md",
|
|
201
|
+
set: (v) => set({ themeRadius: v === "md" ? void 0 : v })
|
|
202
|
+
});
|
|
203
|
+
const themeNeutral = computed({
|
|
204
|
+
get: () => config.value.themeNeutral ?? "stone",
|
|
205
|
+
set: (v) => set({ themeNeutral: v === "stone" ? void 0 : v })
|
|
206
|
+
});
|
|
207
|
+
const themeBlobs = computed({
|
|
208
|
+
get: () => config.value.themeBlobs ?? "normal",
|
|
209
|
+
set: (v) => set({ themeBlobs: v === "normal" ? void 0 : v })
|
|
210
|
+
});
|
|
211
|
+
const themeBackdrop = computed({
|
|
212
|
+
get: () => {
|
|
213
|
+
const v = config.value.themeBackdrop;
|
|
214
|
+
return typeof v === "string" && backdropChoices.value.includes(v) ? v : opts.features.backdrop || "solid";
|
|
215
|
+
},
|
|
216
|
+
set: (v) => set({ themeBackdrop: v === opts.features.backdrop ? void 0 : v })
|
|
217
|
+
});
|
|
218
|
+
const themeFont = computed({
|
|
219
|
+
get: () => config.value.themeFont ?? "default",
|
|
220
|
+
set: (v) => set({ themeFont: v === "default" ? void 0 : v })
|
|
221
|
+
});
|
|
222
|
+
const surfaceOptions = [
|
|
223
|
+
{ value: "glass", label: "Glass", icon: "i-lucide-layers", hint: "Frosted everywhere \u2014 the house look" },
|
|
224
|
+
{ value: "soft", label: "Soft", icon: "i-lucide-layers-2", hint: "Frosting on the navbar and the bars only" },
|
|
225
|
+
{ value: "solid", label: "Solid", icon: "i-lucide-square", hint: "No blur anywhere. The fastest, by a lot." }
|
|
226
|
+
];
|
|
227
|
+
const themeSurface = computed({
|
|
228
|
+
get: () => {
|
|
229
|
+
const v = config.value.themeSurface;
|
|
230
|
+
return typeof v === "string" && surfaceOptions.some((o) => o.value === v) ? v : "soft";
|
|
231
|
+
},
|
|
232
|
+
// `soft` is the default, so `soft` stores nothing — see the standing rule on
|
|
233
|
+
// settings storing `undefined` for a default rather than a copy of it.
|
|
234
|
+
set: (v) => set({ themeSurface: v === "soft" ? void 0 : v })
|
|
235
|
+
});
|
|
236
|
+
const HEX_RE = /^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
237
|
+
const customLight = ref("");
|
|
238
|
+
const customDark = ref("");
|
|
239
|
+
let customCommit = null;
|
|
240
|
+
watch(
|
|
241
|
+
() => [config.value.themeAccentCustomLight, config.value.themeAccentCustomDark],
|
|
242
|
+
([l, d]) => {
|
|
243
|
+
if (customCommit) return;
|
|
244
|
+
customLight.value = typeof l === "string" ? l : "";
|
|
245
|
+
customDark.value = typeof d === "string" ? d : "";
|
|
246
|
+
},
|
|
247
|
+
{ immediate: true }
|
|
248
|
+
);
|
|
249
|
+
const customActive = computed(
|
|
250
|
+
() => HEX_RE.test(String(config.value.themeAccentCustomLight ?? "")) || HEX_RE.test(String(config.value.themeAccentCustomDark ?? ""))
|
|
251
|
+
);
|
|
252
|
+
function commitCustomAccent() {
|
|
253
|
+
if (customCommit) clearTimeout(customCommit);
|
|
254
|
+
customCommit = setTimeout(() => {
|
|
255
|
+
customCommit = null;
|
|
256
|
+
const light = HEX_RE.test(customLight.value) ? customLight.value : void 0;
|
|
257
|
+
const dark = HEX_RE.test(customDark.value) ? customDark.value : void 0;
|
|
258
|
+
if (light === config.value.themeAccentCustomLight && dark === config.value.themeAccentCustomDark) return;
|
|
259
|
+
set({ themeAccentCustomLight: light, themeAccentCustomDark: dark });
|
|
260
|
+
}, 250);
|
|
261
|
+
}
|
|
262
|
+
const pickerLightValue = computed(
|
|
263
|
+
() => HEX_RE.test(customLight.value) ? customLight.value : "#111111"
|
|
264
|
+
);
|
|
265
|
+
const pickerDarkValue = computed(
|
|
266
|
+
() => HEX_RE.test(customDark.value) ? customDark.value : "#eeeeee"
|
|
267
|
+
);
|
|
268
|
+
function onPick(side, v) {
|
|
269
|
+
if (typeof v !== "string" || !HEX_RE.test(v)) return;
|
|
270
|
+
const current = side === "light" ? pickerLightValue.value : pickerDarkValue.value;
|
|
271
|
+
if (v.toLowerCase() === current.toLowerCase()) return;
|
|
272
|
+
(side === "light" ? customLight : customDark).value = v;
|
|
273
|
+
commitCustomAccent();
|
|
274
|
+
}
|
|
275
|
+
function clearCustomAccent() {
|
|
276
|
+
customLight.value = "";
|
|
277
|
+
customDark.value = "";
|
|
278
|
+
set({ themeAccentCustomLight: void 0, themeAccentCustomDark: void 0 });
|
|
279
|
+
}
|
|
280
|
+
function pickPresetAccent(v) {
|
|
281
|
+
themeAccent.value = v;
|
|
282
|
+
if (customActive.value) clearCustomAccent();
|
|
283
|
+
}
|
|
284
|
+
const { uploadTo, imageFiles } = useJunUpload();
|
|
285
|
+
const { url: backgroundUrl, settings: backgroundSettings } = useJunBackgroundImage();
|
|
286
|
+
const backgroundBusy = ref(false);
|
|
287
|
+
const backgroundOver = ref(false);
|
|
288
|
+
const backgroundFitOptions = [
|
|
289
|
+
{ value: "cover", label: "Fill", icon: "i-lucide-maximize", hint: "Crops to the viewport" },
|
|
290
|
+
{ value: "contain", label: "Fit", icon: "i-lucide-scan", hint: "Whole image, letterboxed" },
|
|
291
|
+
{ value: "tile", label: "Tile", icon: "i-lucide-grid-2x2", hint: "Repeats at its own size" }
|
|
292
|
+
];
|
|
293
|
+
const themeBackgroundFit = computed({
|
|
294
|
+
get: () => backgroundSettings.value.fit,
|
|
295
|
+
set: (v) => {
|
|
296
|
+
set({
|
|
297
|
+
themeBackgroundFit: v === "cover" ? void 0 : v,
|
|
298
|
+
// Softening renders a low-resolution copy, and a tile takes its repeat
|
|
299
|
+
// size from the image's natural size — so a softened tile would silently
|
|
300
|
+
// become a much smaller tile. Clear it rather than leave a switch that is
|
|
301
|
+
// on and disabled and doing something nobody asked for.
|
|
302
|
+
...v === "tile" ? { themeBackgroundBlur: void 0 } : {}
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
});
|
|
306
|
+
const themeBackgroundBlur = navFlag("themeBackgroundBlur", false);
|
|
307
|
+
const backgroundOpacityPct = ref(100);
|
|
308
|
+
let backgroundOpacityCommit = null;
|
|
309
|
+
watch(
|
|
310
|
+
() => backgroundSettings.value.opacity,
|
|
311
|
+
(v) => {
|
|
312
|
+
if (backgroundOpacityCommit) return;
|
|
313
|
+
backgroundOpacityPct.value = Math.round(v * 100);
|
|
314
|
+
},
|
|
315
|
+
{ immediate: true }
|
|
316
|
+
);
|
|
317
|
+
function commitBackgroundOpacity(v) {
|
|
318
|
+
backgroundOpacityPct.value = v;
|
|
319
|
+
if (backgroundOpacityCommit) clearTimeout(backgroundOpacityCommit);
|
|
320
|
+
backgroundOpacityCommit = setTimeout(() => {
|
|
321
|
+
backgroundOpacityCommit = null;
|
|
322
|
+
const fraction = Math.min(
|
|
323
|
+
JUN_BACKGROUND_VOCAB.OPACITY_MAX,
|
|
324
|
+
Math.max(JUN_BACKGROUND_VOCAB.OPACITY_MIN, v / 100)
|
|
325
|
+
);
|
|
326
|
+
set({ themeBackgroundOpacity: fraction === 1 ? void 0 : fraction });
|
|
327
|
+
}, 250);
|
|
328
|
+
}
|
|
329
|
+
async function acceptBackground(files) {
|
|
330
|
+
const file = files[0];
|
|
331
|
+
if (!file || backgroundBusy.value) return;
|
|
332
|
+
backgroundBusy.value = true;
|
|
333
|
+
try {
|
|
334
|
+
const target = abra.spaceDocId.value ?? props.docId;
|
|
335
|
+
const result = await uploadTo(target, file);
|
|
336
|
+
if (result) set({ themeBackgroundImage: `${result.docId}/${result.id}` });
|
|
337
|
+
} finally {
|
|
338
|
+
backgroundBusy.value = false;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
function onBackgroundDrop(e) {
|
|
342
|
+
backgroundOver.value = false;
|
|
343
|
+
if (!editing.value) return;
|
|
344
|
+
void acceptBackground(imageFiles(e.dataTransfer));
|
|
345
|
+
}
|
|
346
|
+
function onBackgroundPick(e) {
|
|
347
|
+
const input = e.target;
|
|
348
|
+
void acceptBackground(imageFiles(input.files));
|
|
349
|
+
input.value = "";
|
|
350
|
+
}
|
|
351
|
+
function clearBackground() {
|
|
352
|
+
set({
|
|
353
|
+
themeBackgroundImage: void 0,
|
|
354
|
+
themeBackgroundFit: void 0,
|
|
355
|
+
themeBackgroundOpacity: void 0,
|
|
356
|
+
themeBackgroundBlur: void 0
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
const backgroundPreview = computed(() => ({
|
|
360
|
+
backgroundImage: backgroundUrl.value,
|
|
361
|
+
backgroundSize: backgroundSettings.value.fit === "tile" ? "auto" : backgroundSettings.value.fit,
|
|
362
|
+
backgroundRepeat: backgroundSettings.value.fit === "tile" ? "repeat" : "no-repeat",
|
|
363
|
+
backgroundPosition: "center",
|
|
364
|
+
opacity: String(backgroundSettings.value.opacity),
|
|
365
|
+
// The preview is a 96px tile, so a real blur here is free — and it is the
|
|
366
|
+
// only way this box can show what "Soften" does, since the page achieves it
|
|
367
|
+
// by fetching a smaller image rather than by filtering.
|
|
368
|
+
filter: backgroundSettings.value.blur ? "blur(4px)" : "none"
|
|
369
|
+
}));
|
|
370
|
+
const announceEnabled = computed({
|
|
371
|
+
get: () => config.value.announceEnabled === true,
|
|
372
|
+
set: (v) => set({ announceEnabled: v })
|
|
373
|
+
});
|
|
374
|
+
const footerShowUpdated = computed({
|
|
375
|
+
get: () => config.value.footerShowUpdated === true,
|
|
376
|
+
set: (v) => set({ footerShowUpdated: v })
|
|
377
|
+
});
|
|
378
|
+
const guestbookEnabled = computed({
|
|
379
|
+
get: () => config.value.guestbookEnabled !== false,
|
|
380
|
+
set: (v) => set({ guestbookEnabled: v ? void 0 : false })
|
|
381
|
+
});
|
|
382
|
+
const reactionsEnabled = computed({
|
|
383
|
+
get: () => config.value.reactionsEnabled !== false,
|
|
384
|
+
set: (v) => set({ reactionsEnabled: v ? void 0 : false })
|
|
385
|
+
});
|
|
386
|
+
const feedsEnabled = computed({
|
|
387
|
+
get: () => config.value.feedsEnabled !== false,
|
|
388
|
+
set: (v) => set({ feedsEnabled: v ? void 0 : false })
|
|
389
|
+
});
|
|
390
|
+
const fire = opts.campfire;
|
|
391
|
+
function fireChoice(key, allowed, fallback) {
|
|
392
|
+
return navChoice(key, allowed, fallback);
|
|
393
|
+
}
|
|
394
|
+
const campfireEnabled = navFlag("campfireEnabled", opts.features.campfire === true);
|
|
395
|
+
const campfireChat = navFlag("campfireChat", fire.chat);
|
|
396
|
+
const campfireRoster = navFlag("campfireRoster", fire.roster);
|
|
397
|
+
const campfireIdentity = navFlag("campfireIdentity", fire.identity);
|
|
398
|
+
const campfireReactions = navFlag("campfireReactions", fire.reactions);
|
|
399
|
+
const campfireFollow = navFlag("campfireFollow", fire.follow);
|
|
400
|
+
const campfireShowPages = navFlag("campfireShowPages", fire.showPages);
|
|
401
|
+
const campfireShowBots = navFlag("campfireShowBots", fire.showBots);
|
|
402
|
+
const campfireAllowRename = navFlag("campfireAllowRename", fire.allowRename);
|
|
403
|
+
const campfireBlur = navFlag("campfireBlur", fire.blur);
|
|
404
|
+
const campfireEmber = navFlag("campfireEmber", fire.ember);
|
|
405
|
+
const campfirePlacementOptions = [
|
|
406
|
+
{ label: "Bottom right", value: "bottom-right", icon: "i-lucide-panel-bottom", hint: "The house corner" },
|
|
407
|
+
{ label: "Bottom left", value: "bottom-left", icon: "i-lucide-panel-bottom", hint: "Clear of a right rail" },
|
|
408
|
+
{ label: "Top right", value: "top-right", icon: "i-lucide-panel-top", hint: "Sits below the navbar" },
|
|
409
|
+
{ label: "Top left", value: "top-left", icon: "i-lucide-panel-top", hint: "Sits below the navbar" }
|
|
410
|
+
];
|
|
411
|
+
const campfirePillOptions = [
|
|
412
|
+
{ label: "Sentence", value: "full", hint: "Ember, faces and a line" },
|
|
413
|
+
{ label: "Faces", value: "compact", hint: "Ember, faces, a count" },
|
|
414
|
+
{ label: "Count", value: "count", hint: "Ember and a number" },
|
|
415
|
+
{ label: "Ember", value: "ember", hint: "The flame alone" }
|
|
416
|
+
];
|
|
417
|
+
const campfireRosterOptions = [
|
|
418
|
+
{ label: "List", value: "list", icon: "i-lucide-list", hint: "Name, place, follow" },
|
|
419
|
+
{ label: "Grid", value: "grid", icon: "i-lucide-layout-grid", hint: "Initial tiles" },
|
|
420
|
+
{ label: "Facepile", value: "facepile", icon: "i-lucide-users", hint: "One stack" },
|
|
421
|
+
{ label: "Dots", value: "dots", icon: "i-lucide-circle-small", hint: "Presence only" }
|
|
422
|
+
];
|
|
423
|
+
const campfireTabOptions = [
|
|
424
|
+
{ label: "First available", value: "auto" },
|
|
425
|
+
{ label: "Here", value: "here" },
|
|
426
|
+
// The LABEL is the site's copy; the value is stored CRDT data and stays
|
|
427
|
+
// `fire` forever, or every site that picked it loses its opening tab.
|
|
428
|
+
{ label: "Chat", value: "fire" },
|
|
429
|
+
{ label: "You", value: "you" }
|
|
430
|
+
];
|
|
431
|
+
const campfireSizeOptions = [
|
|
432
|
+
{ label: "Small", value: "sm", bar: "h-4" },
|
|
433
|
+
{ label: "Medium", value: "md", bar: "h-6" },
|
|
434
|
+
{ label: "Large", value: "lg", bar: "h-8" }
|
|
435
|
+
];
|
|
436
|
+
const campfirePlacement = fireChoice(
|
|
437
|
+
"campfirePlacement",
|
|
438
|
+
campfirePlacementOptions.map((o) => o.value),
|
|
439
|
+
fire.placement
|
|
440
|
+
);
|
|
441
|
+
const campfirePillMode = fireChoice(
|
|
442
|
+
"campfirePillMode",
|
|
443
|
+
campfirePillOptions.map((o) => o.value),
|
|
444
|
+
fire.pillMode
|
|
445
|
+
);
|
|
446
|
+
const campfireRosterStyle = fireChoice(
|
|
447
|
+
"campfireRosterStyle",
|
|
448
|
+
campfireRosterOptions.map((o) => o.value),
|
|
449
|
+
fire.rosterStyle
|
|
450
|
+
);
|
|
451
|
+
const campfireOpenTab = fireChoice(
|
|
452
|
+
"campfireOpenTab",
|
|
453
|
+
campfireTabOptions.map((o) => o.value),
|
|
454
|
+
fire.openTab
|
|
455
|
+
);
|
|
456
|
+
const campfireSize = fireChoice("campfireSize", campfireSizeOptions.map((o) => o.value), fire.size);
|
|
457
|
+
const campfireHistoryLimit = computed({
|
|
458
|
+
get: () => {
|
|
459
|
+
const v = config.value.campfireHistoryLimit;
|
|
460
|
+
return typeof v === "number" && Number.isFinite(v) ? v : fire.historyLimit;
|
|
461
|
+
},
|
|
462
|
+
set: (v) => {
|
|
463
|
+
const n = Math.min(
|
|
464
|
+
JUN_CAMPFIRE_VOCAB.HISTORY_MAX,
|
|
465
|
+
Math.max(JUN_CAMPFIRE_VOCAB.HISTORY_MIN, Math.round(Number(v) || fire.historyLimit))
|
|
466
|
+
);
|
|
467
|
+
set({ campfireHistoryLimit: n === fire.historyLimit ? void 0 : n });
|
|
468
|
+
}
|
|
469
|
+
});
|
|
470
|
+
const campfireReactionsText = computed(
|
|
471
|
+
() => typeof config.value.campfireReactionSet === "string" ? config.value.campfireReactionSet : fire.reactionSet.join(" ")
|
|
472
|
+
);
|
|
473
|
+
function setCampfireReactions(e) {
|
|
474
|
+
const raw = e.target.value.trim();
|
|
475
|
+
const isDefault = raw === fire.reactionSet.join(" ");
|
|
476
|
+
set({ campfireReactionSet: raw && !isDefault ? raw : void 0 });
|
|
477
|
+
}
|
|
478
|
+
const campfireIconValue = computed(
|
|
479
|
+
() => typeof config.value.campfireIcon === "string" ? config.value.campfireIcon : void 0
|
|
480
|
+
);
|
|
481
|
+
const campfireIconPreview = computed(() => campfireIconValue.value || fire.icon);
|
|
482
|
+
function setCampfireIcon(v) {
|
|
483
|
+
set({ campfireIcon: v && v !== fire.icon ? v : void 0 });
|
|
484
|
+
}
|
|
485
|
+
const campfireReactionsPreview = computed(() => {
|
|
486
|
+
const parsed = junCampfireReactions(campfireReactionsText.value);
|
|
487
|
+
return parsed.length ? parsed : fire.reactionSet;
|
|
488
|
+
});
|
|
489
|
+
const campfireLabelPreview = computed(
|
|
490
|
+
() => junCampfireLabel(3, typeof config.value.campfireLabel === "string" ? config.value.campfireLabel : fire.label)
|
|
491
|
+
);
|
|
492
|
+
const campfireNoPanels = computed(
|
|
493
|
+
() => !campfireChat.value && !campfireRoster.value && !campfireIdentity.value
|
|
494
|
+
);
|
|
495
|
+
const cardBase = "group flex flex-col items-center justify-center gap-1.5 rounded-lg px-2 py-3 text-center ring-1 transition-all duration-150 select-none w-full disabled:opacity-50 disabled:pointer-events-none";
|
|
496
|
+
const cardOff = "ring-black/10 dark:ring-white/10 hover:ring-black/25 dark:hover:ring-white/25 hover:bg-black/[0.03] dark:hover:bg-white/[0.04] cursor-pointer";
|
|
497
|
+
const cardOn = "ring-2 ring-black dark:ring-white bg-black/[0.04] dark:bg-white/[0.06]";
|
|
498
|
+
</script>
|
|
499
|
+
|
|
500
|
+
<template>
|
|
501
|
+
<JunNotFound
|
|
502
|
+
v-if="!canEdit"
|
|
503
|
+
:path="route.path"
|
|
504
|
+
/>
|
|
505
|
+
|
|
506
|
+
<div
|
|
507
|
+
v-else
|
|
508
|
+
class="mx-auto w-full max-w-3xl px-4 pb-24 sm:px-6"
|
|
509
|
+
>
|
|
510
|
+
<JunPageHero
|
|
511
|
+
title="Site settings"
|
|
512
|
+
subtitle="How this site presents itself. Every change is a CRDT write — live on every open tab, yours and every visitor's."
|
|
513
|
+
>
|
|
514
|
+
<template #right>
|
|
515
|
+
<span
|
|
516
|
+
class="jun-chrome inline-flex items-center gap-1.5 rounded-full px-3 py-1 text-xs"
|
|
517
|
+
:class="editing ? '' : 'opacity-60'"
|
|
518
|
+
>
|
|
519
|
+
<span
|
|
520
|
+
class="size-1.5 rounded-full"
|
|
521
|
+
:class="editing ? 'animate-pulse bg-emerald-500' : 'bg-current opacity-40'"
|
|
522
|
+
/>
|
|
523
|
+
{{ editing ? "Editing live" : "Read-only" }}
|
|
524
|
+
</span>
|
|
525
|
+
</template>
|
|
526
|
+
</JunPageHero>
|
|
527
|
+
|
|
528
|
+
<div class="mt-10 space-y-8">
|
|
529
|
+
<!-- Identity -->
|
|
530
|
+
<section class="jun-card space-y-5 rounded-2xl p-6">
|
|
531
|
+
<header class="flex items-start gap-3">
|
|
532
|
+
<span class="flex size-9 flex-none items-center justify-center rounded-lg bg-black/5 dark:bg-white/10">
|
|
533
|
+
<UIcon
|
|
534
|
+
name="i-lucide-fingerprint"
|
|
535
|
+
class="size-4.5"
|
|
536
|
+
/>
|
|
537
|
+
</span>
|
|
538
|
+
<div>
|
|
539
|
+
<h2 class="text-sm font-semibold text-highlighted">
|
|
540
|
+
Identity
|
|
541
|
+
</h2>
|
|
542
|
+
<p class="text-xs text-muted">
|
|
543
|
+
Titles, description and social image — what search engines and link previews see.
|
|
544
|
+
</p>
|
|
545
|
+
</div>
|
|
546
|
+
</header>
|
|
547
|
+
|
|
548
|
+
<div class="grid gap-4 sm:grid-cols-2">
|
|
549
|
+
<UFormField
|
|
550
|
+
label="Site title"
|
|
551
|
+
help="Falls back to the page title when empty."
|
|
552
|
+
>
|
|
553
|
+
<UInput
|
|
554
|
+
:model-value="config.seoTitle ?? ''"
|
|
555
|
+
:disabled="!editing"
|
|
556
|
+
class="w-full"
|
|
557
|
+
@change="setText('seoTitle', $event)"
|
|
558
|
+
/>
|
|
559
|
+
</UFormField>
|
|
560
|
+
<UFormField
|
|
561
|
+
label="Title template"
|
|
562
|
+
help="%s is the page title."
|
|
563
|
+
>
|
|
564
|
+
<UInput
|
|
565
|
+
:model-value="config.seoTitleTemplate ?? ''"
|
|
566
|
+
:disabled="!editing"
|
|
567
|
+
placeholder="%s — Site name"
|
|
568
|
+
class="w-full"
|
|
569
|
+
@change="setText('seoTitleTemplate', $event)"
|
|
570
|
+
/>
|
|
571
|
+
</UFormField>
|
|
572
|
+
</div>
|
|
573
|
+
<UFormField label="Description">
|
|
574
|
+
<UTextarea
|
|
575
|
+
:model-value="config.seoDescription ?? ''"
|
|
576
|
+
:disabled="!editing"
|
|
577
|
+
:rows="2"
|
|
578
|
+
class="w-full"
|
|
579
|
+
@change="setText('seoDescription', $event)"
|
|
580
|
+
/>
|
|
581
|
+
</UFormField>
|
|
582
|
+
<UFormField
|
|
583
|
+
label="Social image URL"
|
|
584
|
+
help="og:image and twitter:image."
|
|
585
|
+
>
|
|
586
|
+
<UInput
|
|
587
|
+
:model-value="config.seoOgImage ?? ''"
|
|
588
|
+
:disabled="!editing"
|
|
589
|
+
placeholder="https://example.com/og.png"
|
|
590
|
+
class="w-full"
|
|
591
|
+
@change="setText('seoOgImage', $event)"
|
|
592
|
+
/>
|
|
593
|
+
</UFormField>
|
|
594
|
+
</section>
|
|
595
|
+
|
|
596
|
+
<!-- Navigation -->
|
|
597
|
+
<section class="jun-card space-y-5 rounded-2xl p-6">
|
|
598
|
+
<header class="flex items-start gap-3">
|
|
599
|
+
<span class="flex size-9 flex-none items-center justify-center rounded-lg bg-black/5 dark:bg-white/10">
|
|
600
|
+
<UIcon
|
|
601
|
+
name="i-lucide-navigation"
|
|
602
|
+
class="size-4.5"
|
|
603
|
+
/>
|
|
604
|
+
</span>
|
|
605
|
+
<div>
|
|
606
|
+
<h2 class="text-sm font-semibold text-highlighted">
|
|
607
|
+
Navigation
|
|
608
|
+
</h2>
|
|
609
|
+
<p class="text-xs text-muted">
|
|
610
|
+
The navbar above restyles itself as you pick.
|
|
611
|
+
</p>
|
|
612
|
+
</div>
|
|
613
|
+
</header>
|
|
614
|
+
|
|
615
|
+
<UFormField
|
|
616
|
+
label="Placement"
|
|
617
|
+
help="Every placement floats over the page, so switching one never reflows content. A page type that docks the bar full-width still wins."
|
|
618
|
+
>
|
|
619
|
+
<div class="grid grid-cols-2 gap-2 sm:grid-cols-5">
|
|
620
|
+
<button
|
|
621
|
+
v-for="opt in placementOptions"
|
|
622
|
+
:key="opt.value"
|
|
623
|
+
type="button"
|
|
624
|
+
:disabled="!editing"
|
|
625
|
+
:class="[cardBase, placement === opt.value ? cardOn : cardOff]"
|
|
626
|
+
:title="opt.hint"
|
|
627
|
+
@click="placement = opt.value"
|
|
628
|
+
>
|
|
629
|
+
<UIcon
|
|
630
|
+
:name="opt.icon"
|
|
631
|
+
class="size-4.5 opacity-80"
|
|
632
|
+
/>
|
|
633
|
+
<span class="text-xs">{{ opt.label }}</span>
|
|
634
|
+
</button>
|
|
635
|
+
</div>
|
|
636
|
+
</UFormField>
|
|
637
|
+
|
|
638
|
+
<UFormField label="Item style">
|
|
639
|
+
<div class="grid grid-cols-2 gap-2 sm:grid-cols-5">
|
|
640
|
+
<button
|
|
641
|
+
v-for="opt in itemModeOptions"
|
|
642
|
+
:key="opt.value"
|
|
643
|
+
type="button"
|
|
644
|
+
:disabled="!editing"
|
|
645
|
+
:class="[cardBase, itemMode === opt.value ? cardOn : cardOff]"
|
|
646
|
+
:title="opt.hint"
|
|
647
|
+
@click="itemMode = opt.value"
|
|
648
|
+
>
|
|
649
|
+
<UIcon
|
|
650
|
+
:name="opt.icon"
|
|
651
|
+
class="size-4.5 opacity-80"
|
|
652
|
+
/>
|
|
653
|
+
<span class="text-xs">{{ opt.label }}</span>
|
|
654
|
+
</button>
|
|
655
|
+
</div>
|
|
656
|
+
</UFormField>
|
|
657
|
+
|
|
658
|
+
<UFormField label="Active page marker">
|
|
659
|
+
<div class="grid grid-cols-2 gap-2 sm:grid-cols-4 lg:grid-cols-7">
|
|
660
|
+
<button
|
|
661
|
+
v-for="opt in activeStyleOptions"
|
|
662
|
+
:key="opt.value"
|
|
663
|
+
type="button"
|
|
664
|
+
:disabled="!editing"
|
|
665
|
+
:class="[cardBase, activeStyle === opt.value ? cardOn : cardOff]"
|
|
666
|
+
@click="activeStyle = opt.value"
|
|
667
|
+
>
|
|
668
|
+
<UIcon
|
|
669
|
+
:name="opt.icon"
|
|
670
|
+
class="size-4.5 opacity-80"
|
|
671
|
+
/>
|
|
672
|
+
<span class="text-xs">{{ opt.label }}</span>
|
|
673
|
+
</button>
|
|
674
|
+
</div>
|
|
675
|
+
</UFormField>
|
|
676
|
+
|
|
677
|
+
<div class="grid gap-4 sm:grid-cols-2">
|
|
678
|
+
<UFormField
|
|
679
|
+
label="Shape"
|
|
680
|
+
help="Ghost drops the panel — border, ring and frosting."
|
|
681
|
+
>
|
|
682
|
+
<div class="grid grid-cols-4 gap-2">
|
|
683
|
+
<button
|
|
684
|
+
v-for="opt in shapeOptions"
|
|
685
|
+
:key="opt.value"
|
|
686
|
+
type="button"
|
|
687
|
+
:disabled="!editing"
|
|
688
|
+
:class="[cardBase, navShape === opt.value ? cardOn : cardOff]"
|
|
689
|
+
@click="navShape = opt.value"
|
|
690
|
+
>
|
|
691
|
+
<span
|
|
692
|
+
class="h-4 w-7 border-2 border-current opacity-70"
|
|
693
|
+
:style="{
|
|
694
|
+
borderRadius: opt.radius,
|
|
695
|
+
borderStyle: opt.bare ? 'dashed' : 'solid',
|
|
696
|
+
opacity: opt.bare ? 0.35 : void 0
|
|
697
|
+
}"
|
|
698
|
+
/>
|
|
699
|
+
<span class="text-xs">{{ opt.label }}</span>
|
|
700
|
+
</button>
|
|
701
|
+
</div>
|
|
702
|
+
</UFormField>
|
|
703
|
+
|
|
704
|
+
<UFormField label="Size">
|
|
705
|
+
<div class="grid grid-cols-3 gap-2">
|
|
706
|
+
<button
|
|
707
|
+
v-for="opt in navSizeOptions"
|
|
708
|
+
:key="opt.value"
|
|
709
|
+
type="button"
|
|
710
|
+
:disabled="!editing"
|
|
711
|
+
:class="[cardBase, navSize === opt.value ? cardOn : cardOff]"
|
|
712
|
+
@click="navSize = opt.value"
|
|
713
|
+
>
|
|
714
|
+
<span
|
|
715
|
+
class="w-8 rounded-full bg-current opacity-60"
|
|
716
|
+
:class="opt.bar"
|
|
717
|
+
/>
|
|
718
|
+
<span class="text-xs">{{ opt.label }}</span>
|
|
719
|
+
</button>
|
|
720
|
+
</div>
|
|
721
|
+
</UFormField>
|
|
722
|
+
</div>
|
|
723
|
+
|
|
724
|
+
<div class="grid gap-x-8 gap-y-3 pt-1 sm:grid-cols-3">
|
|
725
|
+
<div class="flex items-center justify-between gap-3">
|
|
726
|
+
<div class="min-w-0">
|
|
727
|
+
<p class="text-xs font-medium">
|
|
728
|
+
Index chips
|
|
729
|
+
</p>
|
|
730
|
+
<p class="text-[11px] text-muted">
|
|
731
|
+
Little 1–9 numbers
|
|
732
|
+
</p>
|
|
733
|
+
</div>
|
|
734
|
+
<USwitch
|
|
735
|
+
v-model="showIndices"
|
|
736
|
+
:disabled="!editing"
|
|
737
|
+
color="neutral"
|
|
738
|
+
/>
|
|
739
|
+
</div>
|
|
740
|
+
<div class="flex items-center justify-between gap-3">
|
|
741
|
+
<div class="min-w-0">
|
|
742
|
+
<p class="text-xs font-medium">
|
|
743
|
+
Keyboard nav
|
|
744
|
+
</p>
|
|
745
|
+
<p class="text-[11px] text-muted">
|
|
746
|
+
Digits 0–9 jump
|
|
747
|
+
</p>
|
|
748
|
+
</div>
|
|
749
|
+
<USwitch
|
|
750
|
+
v-model="keyboardNav"
|
|
751
|
+
:disabled="!editing"
|
|
752
|
+
color="neutral"
|
|
753
|
+
/>
|
|
754
|
+
</div>
|
|
755
|
+
<div class="flex items-center justify-between gap-3">
|
|
756
|
+
<div class="min-w-0">
|
|
757
|
+
<p class="text-xs font-medium">
|
|
758
|
+
Freshness dots
|
|
759
|
+
</p>
|
|
760
|
+
<p class="text-[11px] text-muted">
|
|
761
|
+
"Changed since your visit"
|
|
762
|
+
</p>
|
|
763
|
+
</div>
|
|
764
|
+
<USwitch
|
|
765
|
+
v-model="freshnessDots"
|
|
766
|
+
:disabled="!editing"
|
|
767
|
+
color="neutral"
|
|
768
|
+
/>
|
|
769
|
+
</div>
|
|
770
|
+
</div>
|
|
771
|
+
<div class="grid gap-x-8 gap-y-3 sm:grid-cols-3">
|
|
772
|
+
<div class="flex items-center justify-between gap-3">
|
|
773
|
+
<div class="min-w-0">
|
|
774
|
+
<p class="text-xs font-medium">
|
|
775
|
+
Auto-hide
|
|
776
|
+
</p>
|
|
777
|
+
<p class="text-[11px] text-muted">
|
|
778
|
+
Slides away going down
|
|
779
|
+
</p>
|
|
780
|
+
</div>
|
|
781
|
+
<USwitch
|
|
782
|
+
v-model="navAutoHide"
|
|
783
|
+
:disabled="!editing"
|
|
784
|
+
color="neutral"
|
|
785
|
+
/>
|
|
786
|
+
</div>
|
|
787
|
+
<div class="flex items-center justify-between gap-3">
|
|
788
|
+
<div class="min-w-0">
|
|
789
|
+
<p class="text-xs font-medium">
|
|
790
|
+
Frosted panel
|
|
791
|
+
</p>
|
|
792
|
+
<p class="text-[11px] text-muted">
|
|
793
|
+
Blur behind the bar
|
|
794
|
+
</p>
|
|
795
|
+
</div>
|
|
796
|
+
<USwitch
|
|
797
|
+
v-model="navBlur"
|
|
798
|
+
:disabled="!editing"
|
|
799
|
+
color="neutral"
|
|
800
|
+
/>
|
|
801
|
+
</div>
|
|
802
|
+
<div class="flex items-center justify-between gap-3">
|
|
803
|
+
<div class="min-w-0">
|
|
804
|
+
<p class="text-xs font-medium">
|
|
805
|
+
Centre active
|
|
806
|
+
</p>
|
|
807
|
+
<p class="text-[11px] text-muted">
|
|
808
|
+
Scrolls it into the middle
|
|
809
|
+
</p>
|
|
810
|
+
</div>
|
|
811
|
+
<USwitch
|
|
812
|
+
v-model="navCenterActive"
|
|
813
|
+
:disabled="!editing"
|
|
814
|
+
color="neutral"
|
|
815
|
+
/>
|
|
816
|
+
</div>
|
|
817
|
+
<div class="flex items-center justify-between gap-3">
|
|
818
|
+
<div class="min-w-0">
|
|
819
|
+
<p class="text-xs font-medium">
|
|
820
|
+
Show logo
|
|
821
|
+
</p>
|
|
822
|
+
<p class="text-[11px] text-muted">
|
|
823
|
+
The mark in the bar
|
|
824
|
+
</p>
|
|
825
|
+
</div>
|
|
826
|
+
<USwitch
|
|
827
|
+
v-model="navShowLogo"
|
|
828
|
+
:disabled="!editing"
|
|
829
|
+
color="neutral"
|
|
830
|
+
/>
|
|
831
|
+
</div>
|
|
832
|
+
<!-- What the mark DOES. Offered next to "Show logo" because the two
|
|
833
|
+
answer one question between them, and hidden when there is no
|
|
834
|
+
logo to press or no palette to open. -->
|
|
835
|
+
<div
|
|
836
|
+
v-if="navShowLogo && opts.features.search"
|
|
837
|
+
class="flex items-center justify-between gap-3"
|
|
838
|
+
>
|
|
839
|
+
<div class="min-w-0">
|
|
840
|
+
<p class="text-xs font-medium">
|
|
841
|
+
Logo opens
|
|
842
|
+
</p>
|
|
843
|
+
<p class="text-[11px] text-muted">
|
|
844
|
+
What pressing the mark does
|
|
845
|
+
</p>
|
|
846
|
+
</div>
|
|
847
|
+
<USelect
|
|
848
|
+
v-model="navLogoAction"
|
|
849
|
+
:items="[
|
|
850
|
+
{ label: 'Home', value: 'home' },
|
|
851
|
+
{ label: 'Command palette', value: 'palette' }
|
|
852
|
+
]"
|
|
853
|
+
:disabled="!editing"
|
|
854
|
+
size="xs"
|
|
855
|
+
class="w-40"
|
|
856
|
+
/>
|
|
857
|
+
</div>
|
|
858
|
+
<!-- Switchable because the logo can be the way into search instead.
|
|
859
|
+
Off never removes search: ⌘K stays bound either way, which is
|
|
860
|
+
what the hint says so an owner is not left guessing. -->
|
|
861
|
+
<div
|
|
862
|
+
v-if="opts.features.search"
|
|
863
|
+
class="flex items-center justify-between gap-3"
|
|
864
|
+
>
|
|
865
|
+
<div class="min-w-0">
|
|
866
|
+
<p class="text-xs font-medium">
|
|
867
|
+
Search button
|
|
868
|
+
</p>
|
|
869
|
+
<p class="text-[11px] text-muted">
|
|
870
|
+
⌘K works either way
|
|
871
|
+
</p>
|
|
872
|
+
</div>
|
|
873
|
+
<USwitch
|
|
874
|
+
v-model="navSearchButton"
|
|
875
|
+
:disabled="!editing"
|
|
876
|
+
color="neutral"
|
|
877
|
+
/>
|
|
878
|
+
</div>
|
|
879
|
+
<!-- Both off by default. The dots say how many people are here; the
|
|
880
|
+
roster says who they are and what each is reading — different
|
|
881
|
+
disclosures, so they are different switches. -->
|
|
882
|
+
<div class="flex items-center justify-between gap-3">
|
|
883
|
+
<div class="min-w-0">
|
|
884
|
+
<p class="text-xs font-medium">
|
|
885
|
+
Traveller dots
|
|
886
|
+
</p>
|
|
887
|
+
<p class="text-[11px] text-muted">
|
|
888
|
+
Who else is on the site
|
|
889
|
+
</p>
|
|
890
|
+
</div>
|
|
891
|
+
<USwitch
|
|
892
|
+
v-model="navTravellers"
|
|
893
|
+
:disabled="!editing"
|
|
894
|
+
color="neutral"
|
|
895
|
+
/>
|
|
896
|
+
</div>
|
|
897
|
+
<div
|
|
898
|
+
class="flex items-center justify-between gap-3 transition-opacity"
|
|
899
|
+
:class="navTravellers ? '' : 'opacity-50'"
|
|
900
|
+
>
|
|
901
|
+
<div class="min-w-0">
|
|
902
|
+
<p class="text-xs font-medium">
|
|
903
|
+
Name them
|
|
904
|
+
</p>
|
|
905
|
+
<p class="text-[11px] text-muted">
|
|
906
|
+
Hover lists each traveller
|
|
907
|
+
</p>
|
|
908
|
+
</div>
|
|
909
|
+
<USwitch
|
|
910
|
+
v-model="navTravellersList"
|
|
911
|
+
:disabled="!editing || !navTravellers"
|
|
912
|
+
color="neutral"
|
|
913
|
+
/>
|
|
914
|
+
</div>
|
|
915
|
+
<!-- Presence as LIGHT rather than as a list. Its own switch because
|
|
916
|
+
it is a different disclosure again: the dots say how many people
|
|
917
|
+
are here, the roster says who — this says what each of them is
|
|
918
|
+
looking at, right now, on this page. -->
|
|
919
|
+
<div class="flex items-center justify-between gap-3">
|
|
920
|
+
<div class="min-w-0">
|
|
921
|
+
<p class="text-xs font-medium">
|
|
922
|
+
Cursor glow
|
|
923
|
+
</p>
|
|
924
|
+
<p class="text-[11px] text-muted">
|
|
925
|
+
{{ presenceBlobsAvailable ? "A soft light where each visitor is pointing" : "Not in this build (jun.features.awareBlobs)" }}
|
|
926
|
+
</p>
|
|
927
|
+
</div>
|
|
928
|
+
<USwitch
|
|
929
|
+
v-model="presenceBlobs"
|
|
930
|
+
:disabled="!editing || !presenceBlobsAvailable"
|
|
931
|
+
color="neutral"
|
|
932
|
+
/>
|
|
933
|
+
</div>
|
|
934
|
+
<div class="flex items-center justify-between gap-3">
|
|
935
|
+
<div class="min-w-0">
|
|
936
|
+
<p class="text-xs font-medium">
|
|
937
|
+
Home item
|
|
938
|
+
</p>
|
|
939
|
+
<p class="text-[11px] text-muted">
|
|
940
|
+
An explicit way home
|
|
941
|
+
</p>
|
|
942
|
+
</div>
|
|
943
|
+
<USwitch
|
|
944
|
+
v-model="navHomeItem"
|
|
945
|
+
:disabled="!editing"
|
|
946
|
+
color="neutral"
|
|
947
|
+
/>
|
|
948
|
+
</div>
|
|
949
|
+
</div>
|
|
950
|
+
|
|
951
|
+
<p class="text-[11px] text-muted">
|
|
952
|
+
A page's item can carry a short <span class="font-medium">nav label</span> separate from
|
|
953
|
+
its title — right-click the item while editing.
|
|
954
|
+
</p>
|
|
955
|
+
</section>
|
|
956
|
+
|
|
957
|
+
<!-- Brand mark -->
|
|
958
|
+
<section class="jun-card space-y-5 rounded-2xl p-6">
|
|
959
|
+
<header class="flex items-start gap-3">
|
|
960
|
+
<span class="flex size-9 flex-none items-center justify-center rounded-lg bg-black/5 dark:bg-white/10">
|
|
961
|
+
<UIcon
|
|
962
|
+
name="i-lucide-hexagon"
|
|
963
|
+
class="size-4.5"
|
|
964
|
+
/>
|
|
965
|
+
</span>
|
|
966
|
+
<div>
|
|
967
|
+
<h2 class="text-sm font-semibold text-highlighted">
|
|
968
|
+
Mark
|
|
969
|
+
</h2>
|
|
970
|
+
<p class="text-xs text-muted">
|
|
971
|
+
The logo in the navbar — and the one the first-load intro draws.
|
|
972
|
+
Replace it entirely by declaring your own <code>JunLogo.vue</code>.
|
|
973
|
+
</p>
|
|
974
|
+
</div>
|
|
975
|
+
</header>
|
|
976
|
+
|
|
977
|
+
<UFormField label="Symbol">
|
|
978
|
+
<div class="grid grid-cols-2 gap-2 sm:grid-cols-4">
|
|
979
|
+
<button
|
|
980
|
+
v-for="opt in logoOptions"
|
|
981
|
+
:key="opt.value"
|
|
982
|
+
type="button"
|
|
983
|
+
:disabled="!editing"
|
|
984
|
+
:title="opt.hint"
|
|
985
|
+
:class="[cardBase, brandLogo === opt.value ? cardOn : cardOff]"
|
|
986
|
+
@click="brandLogo = opt.value"
|
|
987
|
+
>
|
|
988
|
+
<JunLogo
|
|
989
|
+
:mark="opt.value"
|
|
990
|
+
variant="mark"
|
|
991
|
+
class="h-8 w-auto"
|
|
992
|
+
:title="opt.label"
|
|
993
|
+
/>
|
|
994
|
+
<span class="text-xs">{{ opt.label }}</span>
|
|
995
|
+
</button>
|
|
996
|
+
</div>
|
|
997
|
+
</UFormField>
|
|
998
|
+
|
|
999
|
+
<UFormField
|
|
1000
|
+
label="Lockup"
|
|
1001
|
+
help="The navbar and the intro must render the same thing — the first-load morph only lands invisibly if they match, so this changes both."
|
|
1002
|
+
>
|
|
1003
|
+
<div class="grid grid-cols-3 gap-2">
|
|
1004
|
+
<button
|
|
1005
|
+
v-for="opt in logoVariantOptions"
|
|
1006
|
+
:key="opt.value"
|
|
1007
|
+
type="button"
|
|
1008
|
+
:disabled="!editing"
|
|
1009
|
+
:class="[cardBase, brandLogoVariant === opt.value ? cardOn : cardOff]"
|
|
1010
|
+
@click="brandLogoVariant = opt.value"
|
|
1011
|
+
>
|
|
1012
|
+
<UIcon
|
|
1013
|
+
:name="opt.icon"
|
|
1014
|
+
class="size-4.5 opacity-80"
|
|
1015
|
+
/>
|
|
1016
|
+
<span class="text-xs">{{ opt.label }}</span>
|
|
1017
|
+
</button>
|
|
1018
|
+
</div>
|
|
1019
|
+
</UFormField>
|
|
1020
|
+
</section>
|
|
1021
|
+
|
|
1022
|
+
<!-- Theme -->
|
|
1023
|
+
<section class="jun-card space-y-5 rounded-2xl p-6">
|
|
1024
|
+
<header class="flex items-start gap-3">
|
|
1025
|
+
<span class="flex size-9 flex-none items-center justify-center rounded-lg bg-black/5 dark:bg-white/10">
|
|
1026
|
+
<UIcon
|
|
1027
|
+
name="i-lucide-palette"
|
|
1028
|
+
class="size-4.5"
|
|
1029
|
+
/>
|
|
1030
|
+
</span>
|
|
1031
|
+
<div>
|
|
1032
|
+
<h2 class="text-sm font-semibold text-highlighted">
|
|
1033
|
+
Theme
|
|
1034
|
+
</h2>
|
|
1035
|
+
<p class="text-xs text-muted">
|
|
1036
|
+
Applied live — accents, corner rounding, the grayscale tint and the backdrop.
|
|
1037
|
+
Served with the first byte, so there is no flash.
|
|
1038
|
+
</p>
|
|
1039
|
+
</div>
|
|
1040
|
+
</header>
|
|
1041
|
+
|
|
1042
|
+
<UFormField
|
|
1043
|
+
label="Accent"
|
|
1044
|
+
help="Links, buttons, focus rings, the loading bar. Monochrome is the house style."
|
|
1045
|
+
>
|
|
1046
|
+
<div class="flex flex-wrap items-center gap-2.5">
|
|
1047
|
+
<button
|
|
1048
|
+
v-for="opt in accentOptions"
|
|
1049
|
+
:key="opt.value"
|
|
1050
|
+
type="button"
|
|
1051
|
+
:disabled="!editing"
|
|
1052
|
+
class="relative flex size-9 cursor-pointer items-center justify-center rounded-full ring-1 transition-all disabled:pointer-events-none disabled:opacity-50"
|
|
1053
|
+
:class="themeAccent === opt.value && !customActive ? 'scale-110 ring-2 ring-black dark:ring-white' : 'ring-black/15 hover:scale-105 dark:ring-white/20'"
|
|
1054
|
+
:title="opt.label"
|
|
1055
|
+
:aria-label="opt.label"
|
|
1056
|
+
@click="pickPresetAccent(opt.value)"
|
|
1057
|
+
>
|
|
1058
|
+
<span
|
|
1059
|
+
v-if="opt.swatch"
|
|
1060
|
+
class="size-5 rounded-full"
|
|
1061
|
+
:style="{ background: opt.swatch }"
|
|
1062
|
+
/>
|
|
1063
|
+
<span
|
|
1064
|
+
v-else
|
|
1065
|
+
class="size-5 rounded-full"
|
|
1066
|
+
style="background: linear-gradient(135deg, #000 50%, #fff 50%); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.2)"
|
|
1067
|
+
/>
|
|
1068
|
+
</button>
|
|
1069
|
+
|
|
1070
|
+
<UPopover>
|
|
1071
|
+
<button
|
|
1072
|
+
type="button"
|
|
1073
|
+
:disabled="!editing"
|
|
1074
|
+
class="relative flex size-9 cursor-pointer items-center justify-center rounded-full ring-1 transition-all disabled:pointer-events-none disabled:opacity-50"
|
|
1075
|
+
:class="customActive ? 'scale-110 ring-2 ring-black dark:ring-white' : 'ring-black/15 hover:scale-105 dark:ring-white/20'"
|
|
1076
|
+
title="Custom"
|
|
1077
|
+
aria-label="Custom accent"
|
|
1078
|
+
>
|
|
1079
|
+
<span
|
|
1080
|
+
class="size-5 rounded-full"
|
|
1081
|
+
:style="customActive && (customLight || customDark) ? { background: `linear-gradient(135deg, ${customLight || customDark} 50%, ${customDark || customLight} 50%)` } : { background: 'conic-gradient(#f87171, #fbbf24, #34d399, #60a5fa, #a78bfa, #f87171)' }"
|
|
1082
|
+
/>
|
|
1083
|
+
</button>
|
|
1084
|
+
<template #content>
|
|
1085
|
+
<div class="w-64 space-y-4 p-4">
|
|
1086
|
+
<UFormField label="Light mode">
|
|
1087
|
+
<UColorPicker
|
|
1088
|
+
:model-value="pickerLightValue"
|
|
1089
|
+
size="sm"
|
|
1090
|
+
@update:model-value="onPick('light', $event)"
|
|
1091
|
+
/>
|
|
1092
|
+
<UInput
|
|
1093
|
+
v-model="customLight"
|
|
1094
|
+
size="xs"
|
|
1095
|
+
class="mt-2 w-28 font-mono"
|
|
1096
|
+
placeholder="#7c3aed"
|
|
1097
|
+
@change="commitCustomAccent"
|
|
1098
|
+
/>
|
|
1099
|
+
</UFormField>
|
|
1100
|
+
<UFormField
|
|
1101
|
+
label="Dark mode"
|
|
1102
|
+
help="Usually a lighter cousin of the light one."
|
|
1103
|
+
>
|
|
1104
|
+
<UColorPicker
|
|
1105
|
+
:model-value="pickerDarkValue"
|
|
1106
|
+
size="sm"
|
|
1107
|
+
@update:model-value="onPick('dark', $event)"
|
|
1108
|
+
/>
|
|
1109
|
+
<UInput
|
|
1110
|
+
v-model="customDark"
|
|
1111
|
+
size="xs"
|
|
1112
|
+
class="mt-2 w-28 font-mono"
|
|
1113
|
+
placeholder="#a78bfa"
|
|
1114
|
+
@change="commitCustomAccent"
|
|
1115
|
+
/>
|
|
1116
|
+
</UFormField>
|
|
1117
|
+
<UButton
|
|
1118
|
+
size="xs"
|
|
1119
|
+
color="neutral"
|
|
1120
|
+
variant="soft"
|
|
1121
|
+
icon="i-lucide-x"
|
|
1122
|
+
label="Clear custom"
|
|
1123
|
+
:disabled="!customActive"
|
|
1124
|
+
@click="clearCustomAccent"
|
|
1125
|
+
/>
|
|
1126
|
+
</div>
|
|
1127
|
+
</template>
|
|
1128
|
+
</UPopover>
|
|
1129
|
+
</div>
|
|
1130
|
+
</UFormField>
|
|
1131
|
+
|
|
1132
|
+
<UFormField
|
|
1133
|
+
label="Typeface"
|
|
1134
|
+
help="Faces are self-hosted; visitors only download the one in use."
|
|
1135
|
+
>
|
|
1136
|
+
<div class="grid grid-cols-2 gap-2 sm:grid-cols-4">
|
|
1137
|
+
<button
|
|
1138
|
+
v-for="opt in fontOptions"
|
|
1139
|
+
:key="opt.value"
|
|
1140
|
+
type="button"
|
|
1141
|
+
:disabled="!editing"
|
|
1142
|
+
:class="[cardBase, themeFont === opt.value ? cardOn : cardOff]"
|
|
1143
|
+
@click="themeFont = opt.value"
|
|
1144
|
+
>
|
|
1145
|
+
<span
|
|
1146
|
+
class="text-xl leading-none"
|
|
1147
|
+
:style="{ fontFamily: opt.family }"
|
|
1148
|
+
>Ag</span>
|
|
1149
|
+
<span class="text-[11px]">{{ opt.label }}</span>
|
|
1150
|
+
</button>
|
|
1151
|
+
</div>
|
|
1152
|
+
</UFormField>
|
|
1153
|
+
|
|
1154
|
+
<UFormField label="Corner rounding">
|
|
1155
|
+
<div class="grid grid-cols-3 gap-2 sm:grid-cols-6">
|
|
1156
|
+
<button
|
|
1157
|
+
v-for="opt in radiusOptions"
|
|
1158
|
+
:key="opt.value"
|
|
1159
|
+
type="button"
|
|
1160
|
+
:disabled="!editing"
|
|
1161
|
+
:class="[cardBase, themeRadius === opt.value ? cardOn : cardOff]"
|
|
1162
|
+
@click="themeRadius = opt.value"
|
|
1163
|
+
>
|
|
1164
|
+
<span
|
|
1165
|
+
class="size-6 border-2 border-current opacity-70"
|
|
1166
|
+
:style="{ borderRadius: opt.px, borderBottomWidth: '0', borderRightWidth: '0' }"
|
|
1167
|
+
/>
|
|
1168
|
+
<span class="text-xs">{{ opt.label }}</span>
|
|
1169
|
+
</button>
|
|
1170
|
+
</div>
|
|
1171
|
+
</UFormField>
|
|
1172
|
+
|
|
1173
|
+
<div class="grid gap-4 sm:grid-cols-2">
|
|
1174
|
+
<UFormField
|
|
1175
|
+
label="Grayscale tint"
|
|
1176
|
+
help="The neutral family everything grey is mixed from."
|
|
1177
|
+
>
|
|
1178
|
+
<div class="grid grid-cols-3 gap-2">
|
|
1179
|
+
<button
|
|
1180
|
+
v-for="opt in neutralOptions"
|
|
1181
|
+
:key="opt.value"
|
|
1182
|
+
type="button"
|
|
1183
|
+
:disabled="!editing"
|
|
1184
|
+
:class="[cardBase, themeNeutral === opt.value ? cardOn : cardOff]"
|
|
1185
|
+
@click="themeNeutral = opt.value"
|
|
1186
|
+
>
|
|
1187
|
+
<span class="flex gap-1">
|
|
1188
|
+
<span
|
|
1189
|
+
v-for="s in opt.shades"
|
|
1190
|
+
:key="s"
|
|
1191
|
+
class="size-3.5 rounded-full"
|
|
1192
|
+
:style="{ background: s }"
|
|
1193
|
+
/>
|
|
1194
|
+
</span>
|
|
1195
|
+
<span class="text-xs">{{ opt.label }}</span>
|
|
1196
|
+
</button>
|
|
1197
|
+
</div>
|
|
1198
|
+
</UFormField>
|
|
1199
|
+
|
|
1200
|
+
<UFormField
|
|
1201
|
+
label="Backdrop intensity"
|
|
1202
|
+
help="How strongly the ambient field reads, whichever kind it is."
|
|
1203
|
+
>
|
|
1204
|
+
<div class="grid grid-cols-4 gap-2">
|
|
1205
|
+
<button
|
|
1206
|
+
v-for="opt in blobOptions"
|
|
1207
|
+
:key="opt.value"
|
|
1208
|
+
type="button"
|
|
1209
|
+
:disabled="!editing"
|
|
1210
|
+
:class="[cardBase, themeBlobs === opt.value ? cardOn : cardOff]"
|
|
1211
|
+
@click="themeBlobs = opt.value"
|
|
1212
|
+
>
|
|
1213
|
+
<UIcon
|
|
1214
|
+
:name="opt.icon"
|
|
1215
|
+
class="size-4.5 opacity-80"
|
|
1216
|
+
/>
|
|
1217
|
+
<span class="text-xs">{{ opt.label }}</span>
|
|
1218
|
+
</button>
|
|
1219
|
+
</div>
|
|
1220
|
+
</UFormField>
|
|
1221
|
+
</div>
|
|
1222
|
+
|
|
1223
|
+
<UFormField
|
|
1224
|
+
label="Surface"
|
|
1225
|
+
help="How much of the site is frosted glass. This is the biggest performance control here — a backdrop blur re-reads everything behind it, and this page has one on the navbar, every card and the user center."
|
|
1226
|
+
>
|
|
1227
|
+
<div class="grid grid-cols-3 gap-2">
|
|
1228
|
+
<button
|
|
1229
|
+
v-for="opt in surfaceOptions"
|
|
1230
|
+
:key="opt.value"
|
|
1231
|
+
type="button"
|
|
1232
|
+
:disabled="!editing"
|
|
1233
|
+
:title="opt.hint"
|
|
1234
|
+
:class="[cardBase, themeSurface === opt.value ? cardOn : cardOff]"
|
|
1235
|
+
@click="themeSurface = opt.value"
|
|
1236
|
+
>
|
|
1237
|
+
<UIcon
|
|
1238
|
+
:name="opt.icon"
|
|
1239
|
+
class="size-4.5 opacity-80"
|
|
1240
|
+
/>
|
|
1241
|
+
<span class="text-xs">{{ opt.label }}</span>
|
|
1242
|
+
<span class="text-[10px] leading-tight text-muted">{{ opt.hint }}</span>
|
|
1243
|
+
</button>
|
|
1244
|
+
</div>
|
|
1245
|
+
<p
|
|
1246
|
+
v-if="backgroundSettings.active && themeSurface === 'glass'"
|
|
1247
|
+
class="mt-2 text-[11px] text-muted"
|
|
1248
|
+
>
|
|
1249
|
+
With a background image behind it, <span class="font-medium">Soft</span> or
|
|
1250
|
+
<span class="font-medium">Solid</span> will feel noticeably quicker.
|
|
1251
|
+
</p>
|
|
1252
|
+
</UFormField>
|
|
1253
|
+
|
|
1254
|
+
<UFormField
|
|
1255
|
+
label="Backdrop"
|
|
1256
|
+
help="The ambient field behind flowing pages. Every kind here is pure CSS — no canvas, no blur filter — which is why it can change live."
|
|
1257
|
+
>
|
|
1258
|
+
<p
|
|
1259
|
+
v-if="isShader"
|
|
1260
|
+
class="mb-2 text-[11px] text-muted"
|
|
1261
|
+
>
|
|
1262
|
+
This build ships the <span class="font-medium">shader</span> backdrop, which is chosen at
|
|
1263
|
+
build time and cannot be switched from here. Set <code>jun.features.backdrop</code> to
|
|
1264
|
+
something else to unlock this.
|
|
1265
|
+
</p>
|
|
1266
|
+
<div
|
|
1267
|
+
class="grid grid-cols-3 gap-2 sm:grid-cols-5"
|
|
1268
|
+
:class="isShader ? 'pointer-events-none opacity-40' : ''"
|
|
1269
|
+
>
|
|
1270
|
+
<button
|
|
1271
|
+
v-for="kind in backdropChoices"
|
|
1272
|
+
:key="kind"
|
|
1273
|
+
type="button"
|
|
1274
|
+
:disabled="!editing || isShader"
|
|
1275
|
+
:title="backdropOptions[kind].hint"
|
|
1276
|
+
:class="[cardBase, themeBackdrop === kind ? cardOn : cardOff]"
|
|
1277
|
+
@click="themeBackdrop = kind"
|
|
1278
|
+
>
|
|
1279
|
+
<UIcon
|
|
1280
|
+
:name="backdropOptions[kind].icon"
|
|
1281
|
+
class="size-4.5 opacity-80"
|
|
1282
|
+
/>
|
|
1283
|
+
<span class="text-xs">{{ backdropOptions[kind].label }}</span>
|
|
1284
|
+
</button>
|
|
1285
|
+
</div>
|
|
1286
|
+
</UFormField>
|
|
1287
|
+
|
|
1288
|
+
<!-- Background image. UNDER the backdrop, not instead of it — the
|
|
1289
|
+
kind above keeps drifting across whatever is dropped here. -->
|
|
1290
|
+
<UFormField
|
|
1291
|
+
label="Background image"
|
|
1292
|
+
help="Drop a photograph or a texture here. It becomes the page's base and the backdrop above keeps moving across it."
|
|
1293
|
+
>
|
|
1294
|
+
<div
|
|
1295
|
+
class="jun-bg-drop flex flex-col gap-3 rounded-xl p-3 ring-1 transition-colors sm:flex-row sm:items-center"
|
|
1296
|
+
:class="backgroundOver ? 'bg-black/[0.04] ring-black/25 dark:bg-white/[0.06] dark:ring-white/25' : 'ring-black/10 dark:ring-white/10'"
|
|
1297
|
+
@dragover.prevent="backgroundOver = editing"
|
|
1298
|
+
@dragleave="backgroundOver = false"
|
|
1299
|
+
@drop.prevent="onBackgroundDrop"
|
|
1300
|
+
>
|
|
1301
|
+
<!-- The preview is the checkerboard's own child so a transparent
|
|
1302
|
+
or part-faded image reads as transparent rather than as grey. -->
|
|
1303
|
+
<div class="jun-bg-preview relative size-24 flex-none overflow-hidden rounded-lg">
|
|
1304
|
+
<div
|
|
1305
|
+
v-if="backgroundSettings.active"
|
|
1306
|
+
class="absolute inset-0"
|
|
1307
|
+
:style="backgroundPreview"
|
|
1308
|
+
/>
|
|
1309
|
+
<span
|
|
1310
|
+
v-else
|
|
1311
|
+
class="absolute inset-0 flex items-center justify-center text-muted"
|
|
1312
|
+
>
|
|
1313
|
+
<UIcon
|
|
1314
|
+
name="i-lucide-image"
|
|
1315
|
+
class="size-5"
|
|
1316
|
+
/>
|
|
1317
|
+
</span>
|
|
1318
|
+
</div>
|
|
1319
|
+
|
|
1320
|
+
<div class="min-w-0 flex-1 space-y-2">
|
|
1321
|
+
<p class="text-xs text-muted">
|
|
1322
|
+
{{ backgroundSettings.active ? "Drop another image to replace it." : "Drop an image, or choose one." }}
|
|
1323
|
+
</p>
|
|
1324
|
+
<div class="flex flex-wrap items-center gap-2">
|
|
1325
|
+
<label
|
|
1326
|
+
class="inline-flex cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1.5 text-xs ring-1 ring-black/10 transition-colors hover:bg-black/[0.04] dark:ring-white/15 dark:hover:bg-white/[0.06]"
|
|
1327
|
+
:class="editing ? '' : 'pointer-events-none opacity-50'"
|
|
1328
|
+
>
|
|
1329
|
+
<UIcon
|
|
1330
|
+
:name="backgroundBusy ? 'i-lucide-loader-circle' : 'i-lucide-upload'"
|
|
1331
|
+
class="size-3.5"
|
|
1332
|
+
:class="backgroundBusy ? 'animate-spin' : ''"
|
|
1333
|
+
/>
|
|
1334
|
+
{{ backgroundBusy ? "Uploading\u2026" : "Choose image" }}
|
|
1335
|
+
<input
|
|
1336
|
+
type="file"
|
|
1337
|
+
accept="image/*"
|
|
1338
|
+
class="hidden"
|
|
1339
|
+
:disabled="!editing || backgroundBusy"
|
|
1340
|
+
@change="onBackgroundPick"
|
|
1341
|
+
>
|
|
1342
|
+
</label>
|
|
1343
|
+
<UButton
|
|
1344
|
+
v-if="backgroundSettings.active"
|
|
1345
|
+
size="xs"
|
|
1346
|
+
color="neutral"
|
|
1347
|
+
variant="ghost"
|
|
1348
|
+
icon="i-lucide-x"
|
|
1349
|
+
:disabled="!editing"
|
|
1350
|
+
@click="clearBackground"
|
|
1351
|
+
>
|
|
1352
|
+
Remove
|
|
1353
|
+
</UButton>
|
|
1354
|
+
</div>
|
|
1355
|
+
</div>
|
|
1356
|
+
</div>
|
|
1357
|
+
|
|
1358
|
+
<!-- The modifiers only exist once there is something to modify. -->
|
|
1359
|
+
<div
|
|
1360
|
+
v-if="backgroundSettings.active"
|
|
1361
|
+
class="mt-4 grid gap-4 sm:grid-cols-[auto_1fr_auto]"
|
|
1362
|
+
>
|
|
1363
|
+
<div>
|
|
1364
|
+
<p class="mb-1.5 text-[11px] text-muted">
|
|
1365
|
+
How it sits
|
|
1366
|
+
</p>
|
|
1367
|
+
<div class="flex gap-2">
|
|
1368
|
+
<button
|
|
1369
|
+
v-for="opt in backgroundFitOptions"
|
|
1370
|
+
:key="opt.value"
|
|
1371
|
+
type="button"
|
|
1372
|
+
:disabled="!editing"
|
|
1373
|
+
:title="opt.hint"
|
|
1374
|
+
class="w-20"
|
|
1375
|
+
:class="[cardBase, themeBackgroundFit === opt.value ? cardOn : cardOff]"
|
|
1376
|
+
@click="themeBackgroundFit = opt.value"
|
|
1377
|
+
>
|
|
1378
|
+
<UIcon
|
|
1379
|
+
:name="opt.icon"
|
|
1380
|
+
class="size-4.5 opacity-80"
|
|
1381
|
+
/>
|
|
1382
|
+
<span class="text-xs">{{ opt.label }}</span>
|
|
1383
|
+
</button>
|
|
1384
|
+
</div>
|
|
1385
|
+
</div>
|
|
1386
|
+
|
|
1387
|
+
<div class="min-w-0">
|
|
1388
|
+
<p class="mb-1.5 text-[11px] text-muted">
|
|
1389
|
+
Strength — {{ backgroundOpacityPct }}%
|
|
1390
|
+
</p>
|
|
1391
|
+
<USlider
|
|
1392
|
+
:model-value="backgroundOpacityPct"
|
|
1393
|
+
:min="Math.round(JUN_BACKGROUND_VOCAB.OPACITY_MIN * 100)"
|
|
1394
|
+
:max="100"
|
|
1395
|
+
:step="5"
|
|
1396
|
+
:disabled="!editing"
|
|
1397
|
+
color="neutral"
|
|
1398
|
+
class="mt-3"
|
|
1399
|
+
@update:model-value="commitBackgroundOpacity(Number($event))"
|
|
1400
|
+
/>
|
|
1401
|
+
</div>
|
|
1402
|
+
|
|
1403
|
+
<div>
|
|
1404
|
+
<p class="mb-1.5 text-[11px] text-muted">
|
|
1405
|
+
Soften
|
|
1406
|
+
</p>
|
|
1407
|
+
<USwitch
|
|
1408
|
+
v-model="themeBackgroundBlur"
|
|
1409
|
+
:disabled="!editing || themeBackgroundFit === 'tile'"
|
|
1410
|
+
color="neutral"
|
|
1411
|
+
/>
|
|
1412
|
+
<p class="mt-1.5 text-[11px] leading-snug text-muted">
|
|
1413
|
+
{{ themeBackgroundFit === "tile" ? "A tile keeps its own scale." : "Renders a low-resolution copy \u2014 no blur filter, so it costs nothing." }}
|
|
1414
|
+
</p>
|
|
1415
|
+
</div>
|
|
1416
|
+
</div>
|
|
1417
|
+
</UFormField>
|
|
1418
|
+
</section>
|
|
1419
|
+
|
|
1420
|
+
<!-- Announcement -->
|
|
1421
|
+
<section class="jun-card space-y-5 rounded-2xl p-6">
|
|
1422
|
+
<header class="flex items-start gap-3">
|
|
1423
|
+
<span class="flex size-9 flex-none items-center justify-center rounded-lg bg-black/5 dark:bg-white/10">
|
|
1424
|
+
<UIcon
|
|
1425
|
+
name="i-lucide-megaphone"
|
|
1426
|
+
class="size-4.5"
|
|
1427
|
+
/>
|
|
1428
|
+
</span>
|
|
1429
|
+
<div class="flex-1">
|
|
1430
|
+
<h2 class="text-sm font-semibold text-highlighted">
|
|
1431
|
+
Announcement
|
|
1432
|
+
</h2>
|
|
1433
|
+
<p class="text-xs text-muted">
|
|
1434
|
+
A slim ribbon under the navbar — it appears for every visitor the moment you save it
|
|
1435
|
+
and vanishes when you clear it. Each visitor can dismiss it; changed text returns.
|
|
1436
|
+
</p>
|
|
1437
|
+
</div>
|
|
1438
|
+
<USwitch
|
|
1439
|
+
v-model="announceEnabled"
|
|
1440
|
+
:disabled="!editing"
|
|
1441
|
+
color="neutral"
|
|
1442
|
+
/>
|
|
1443
|
+
</header>
|
|
1444
|
+
|
|
1445
|
+
<div
|
|
1446
|
+
class="grid gap-4 transition-opacity sm:grid-cols-[2fr_1fr]"
|
|
1447
|
+
:class="announceEnabled ? '' : 'opacity-50'"
|
|
1448
|
+
>
|
|
1449
|
+
<UFormField label="Text">
|
|
1450
|
+
<UInput
|
|
1451
|
+
:model-value="config.announceText ?? ''"
|
|
1452
|
+
:disabled="!editing"
|
|
1453
|
+
class="w-full"
|
|
1454
|
+
@change="setText('announceText', $event)"
|
|
1455
|
+
/>
|
|
1456
|
+
</UFormField>
|
|
1457
|
+
<UFormField
|
|
1458
|
+
label="Link"
|
|
1459
|
+
help="Optional — /a-page or https://…"
|
|
1460
|
+
>
|
|
1461
|
+
<UInput
|
|
1462
|
+
:model-value="config.announceHref ?? ''"
|
|
1463
|
+
:disabled="!editing"
|
|
1464
|
+
class="w-full"
|
|
1465
|
+
@change="setText('announceHref', $event)"
|
|
1466
|
+
/>
|
|
1467
|
+
</UFormField>
|
|
1468
|
+
</div>
|
|
1469
|
+
</section>
|
|
1470
|
+
|
|
1471
|
+
<!-- User Center -->
|
|
1472
|
+
<section class="jun-card space-y-5 rounded-2xl p-6">
|
|
1473
|
+
<header class="flex items-start gap-3">
|
|
1474
|
+
<!-- The section wears the site's own name and mark for it: this is
|
|
1475
|
+
the one place both are edited, so it doubles as their preview. -->
|
|
1476
|
+
<span class="flex size-9 flex-none items-center justify-center rounded-lg bg-black/5 dark:bg-white/10">
|
|
1477
|
+
<UIcon
|
|
1478
|
+
:name="campfireIconPreview"
|
|
1479
|
+
class="size-4.5"
|
|
1480
|
+
/>
|
|
1481
|
+
</span>
|
|
1482
|
+
<div class="flex-1">
|
|
1483
|
+
<h2 class="text-sm font-semibold text-highlighted">
|
|
1484
|
+
{{ config.campfireTitle || fire.title }}
|
|
1485
|
+
</h2>
|
|
1486
|
+
<p class="text-xs text-muted">
|
|
1487
|
+
The user center — who is here, a shared fire to talk around, and each visitor's own
|
|
1488
|
+
handle. It floats in one corner and follows the reader from page to page.
|
|
1489
|
+
</p>
|
|
1490
|
+
</div>
|
|
1491
|
+
<USwitch
|
|
1492
|
+
v-model="campfireEnabled"
|
|
1493
|
+
:disabled="!editing"
|
|
1494
|
+
color="neutral"
|
|
1495
|
+
/>
|
|
1496
|
+
</header>
|
|
1497
|
+
|
|
1498
|
+
<div
|
|
1499
|
+
class="space-y-5 transition-opacity"
|
|
1500
|
+
:class="campfireEnabled ? '' : 'pointer-events-none opacity-50'"
|
|
1501
|
+
>
|
|
1502
|
+
<!-- Name and mark -->
|
|
1503
|
+
<div class="grid gap-4 sm:grid-cols-[2fr_1fr]">
|
|
1504
|
+
<UFormField
|
|
1505
|
+
label="Name"
|
|
1506
|
+
help="Shown in the panel header and read out by screen readers. Renaming it also drops the two strings that only make sense around a fire."
|
|
1507
|
+
>
|
|
1508
|
+
<UInput
|
|
1509
|
+
:model-value="config.campfireTitle ?? ''"
|
|
1510
|
+
:disabled="!editing"
|
|
1511
|
+
:maxlength="JUN_CAMPFIRE_VOCAB.TITLE_MAX"
|
|
1512
|
+
:placeholder="fire.title"
|
|
1513
|
+
class="w-full"
|
|
1514
|
+
@change="setText('campfireTitle', $event)"
|
|
1515
|
+
/>
|
|
1516
|
+
</UFormField>
|
|
1517
|
+
<UFormField
|
|
1518
|
+
label="Mark"
|
|
1519
|
+
help="The icon on the pill, its panel and its tab."
|
|
1520
|
+
>
|
|
1521
|
+
<div class="flex items-center gap-2">
|
|
1522
|
+
<!-- Bound ONE-WAY with an explicit setter, like the colour
|
|
1523
|
+
pickers: `AIconPicker` emits `undefined` to mean "clear",
|
|
1524
|
+
and a v-model would write that straight into the CRDT as a
|
|
1525
|
+
stored value rather than as the absence of one. -->
|
|
1526
|
+
<AIconPicker
|
|
1527
|
+
:model-value="campfireIconValue"
|
|
1528
|
+
:placeholder="fire.icon.replace('i-lucide-', '')"
|
|
1529
|
+
@update:model-value="setCampfireIcon"
|
|
1530
|
+
/>
|
|
1531
|
+
<UIcon
|
|
1532
|
+
:name="campfireIconPreview"
|
|
1533
|
+
class="size-4 shrink-0 text-muted"
|
|
1534
|
+
/>
|
|
1535
|
+
</div>
|
|
1536
|
+
</UFormField>
|
|
1537
|
+
</div>
|
|
1538
|
+
|
|
1539
|
+
<!-- What it offers -->
|
|
1540
|
+
<UFormField
|
|
1541
|
+
label="What it offers"
|
|
1542
|
+
help="Each panel is a tab. Switch them all off and the pill becomes a read-only presence badge."
|
|
1543
|
+
>
|
|
1544
|
+
<div class="grid gap-x-8 gap-y-3 sm:grid-cols-3">
|
|
1545
|
+
<div class="flex items-center justify-between gap-3">
|
|
1546
|
+
<div class="min-w-0">
|
|
1547
|
+
<p class="text-xs font-medium">
|
|
1548
|
+
Here
|
|
1549
|
+
</p>
|
|
1550
|
+
<p class="text-[11px] text-muted">
|
|
1551
|
+
Who is here
|
|
1552
|
+
</p>
|
|
1553
|
+
</div>
|
|
1554
|
+
<USwitch
|
|
1555
|
+
v-model="campfireRoster"
|
|
1556
|
+
:disabled="!editing"
|
|
1557
|
+
color="neutral"
|
|
1558
|
+
/>
|
|
1559
|
+
</div>
|
|
1560
|
+
<div class="flex items-center justify-between gap-3">
|
|
1561
|
+
<div class="min-w-0">
|
|
1562
|
+
<p class="text-xs font-medium">
|
|
1563
|
+
Chat
|
|
1564
|
+
</p>
|
|
1565
|
+
<p class="text-[11px] text-muted">
|
|
1566
|
+
One shared channel
|
|
1567
|
+
</p>
|
|
1568
|
+
</div>
|
|
1569
|
+
<USwitch
|
|
1570
|
+
v-model="campfireChat"
|
|
1571
|
+
:disabled="!editing"
|
|
1572
|
+
color="neutral"
|
|
1573
|
+
/>
|
|
1574
|
+
</div>
|
|
1575
|
+
<div class="flex items-center justify-between gap-3">
|
|
1576
|
+
<div class="min-w-0">
|
|
1577
|
+
<p class="text-xs font-medium">
|
|
1578
|
+
You
|
|
1579
|
+
</p>
|
|
1580
|
+
<p class="text-[11px] text-muted">
|
|
1581
|
+
Their own handle
|
|
1582
|
+
</p>
|
|
1583
|
+
</div>
|
|
1584
|
+
<USwitch
|
|
1585
|
+
v-model="campfireIdentity"
|
|
1586
|
+
:disabled="!editing"
|
|
1587
|
+
color="neutral"
|
|
1588
|
+
/>
|
|
1589
|
+
</div>
|
|
1590
|
+
</div>
|
|
1591
|
+
<p
|
|
1592
|
+
v-if="campfireNoPanels"
|
|
1593
|
+
class="mt-2 text-[11px] text-muted"
|
|
1594
|
+
>
|
|
1595
|
+
With all three off the pill still shows who is here, but it no longer opens.
|
|
1596
|
+
</p>
|
|
1597
|
+
</UFormField>
|
|
1598
|
+
|
|
1599
|
+
<!-- Chat detail. `v-show`, not `v-if`: a switched-off tab whose settings
|
|
1600
|
+
VANISH gives no clue that the numbers underneath survived. -->
|
|
1601
|
+
<div
|
|
1602
|
+
v-show="campfireChat"
|
|
1603
|
+
class="grid gap-4 sm:grid-cols-2"
|
|
1604
|
+
>
|
|
1605
|
+
<UFormField
|
|
1606
|
+
label="Messages kept on screen"
|
|
1607
|
+
:help="`Between ${JUN_CAMPFIRE_VOCAB.HISTORY_MIN} and ${JUN_CAMPFIRE_VOCAB.HISTORY_MAX}. Older ones stay on the server.`"
|
|
1608
|
+
>
|
|
1609
|
+
<UInput
|
|
1610
|
+
v-model.number="campfireHistoryLimit"
|
|
1611
|
+
type="number"
|
|
1612
|
+
:min="JUN_CAMPFIRE_VOCAB.HISTORY_MIN"
|
|
1613
|
+
:max="JUN_CAMPFIRE_VOCAB.HISTORY_MAX"
|
|
1614
|
+
:disabled="!editing"
|
|
1615
|
+
class="w-32"
|
|
1616
|
+
/>
|
|
1617
|
+
</UFormField>
|
|
1618
|
+
<div class="flex items-end pb-1.5">
|
|
1619
|
+
<p class="text-[11px] leading-relaxed text-muted">
|
|
1620
|
+
Visitors can only speak here because the site opens one chat document to them.
|
|
1621
|
+
Switching the chat off closes it again, server side — not just in this panel.
|
|
1622
|
+
</p>
|
|
1623
|
+
</div>
|
|
1624
|
+
</div>
|
|
1625
|
+
|
|
1626
|
+
<!-- Roster detail -->
|
|
1627
|
+
<div
|
|
1628
|
+
v-show="campfireRoster"
|
|
1629
|
+
class="grid gap-x-8 gap-y-3 sm:grid-cols-3"
|
|
1630
|
+
>
|
|
1631
|
+
<div class="flex items-center justify-between gap-3">
|
|
1632
|
+
<div class="min-w-0">
|
|
1633
|
+
<p class="text-xs font-medium">
|
|
1634
|
+
Show pages
|
|
1635
|
+
</p>
|
|
1636
|
+
<p class="text-[11px] text-muted">
|
|
1637
|
+
What each person is reading
|
|
1638
|
+
</p>
|
|
1639
|
+
</div>
|
|
1640
|
+
<USwitch
|
|
1641
|
+
v-model="campfireShowPages"
|
|
1642
|
+
:disabled="!editing"
|
|
1643
|
+
color="neutral"
|
|
1644
|
+
/>
|
|
1645
|
+
</div>
|
|
1646
|
+
<div class="flex items-center justify-between gap-3">
|
|
1647
|
+
<div class="min-w-0">
|
|
1648
|
+
<p class="text-xs font-medium">
|
|
1649
|
+
Follow
|
|
1650
|
+
</p>
|
|
1651
|
+
<p class="text-[11px] text-muted">
|
|
1652
|
+
Tap someone to travel with them
|
|
1653
|
+
</p>
|
|
1654
|
+
</div>
|
|
1655
|
+
<USwitch
|
|
1656
|
+
v-model="campfireFollow"
|
|
1657
|
+
:disabled="!editing"
|
|
1658
|
+
color="neutral"
|
|
1659
|
+
/>
|
|
1660
|
+
</div>
|
|
1661
|
+
<div class="flex items-center justify-between gap-3">
|
|
1662
|
+
<div class="min-w-0">
|
|
1663
|
+
<p class="text-xs font-medium">
|
|
1664
|
+
Show services
|
|
1665
|
+
</p>
|
|
1666
|
+
<p class="text-[11px] text-muted">
|
|
1667
|
+
Runners and agents, not people
|
|
1668
|
+
</p>
|
|
1669
|
+
</div>
|
|
1670
|
+
<USwitch
|
|
1671
|
+
v-model="campfireShowBots"
|
|
1672
|
+
:disabled="!editing"
|
|
1673
|
+
color="neutral"
|
|
1674
|
+
/>
|
|
1675
|
+
</div>
|
|
1676
|
+
</div>
|
|
1677
|
+
|
|
1678
|
+
<UFormField
|
|
1679
|
+
v-show="campfireRoster"
|
|
1680
|
+
label="How people are shown"
|
|
1681
|
+
help="From a full row each down to anonymous dots. The privacy of the choice matters as much as the look."
|
|
1682
|
+
>
|
|
1683
|
+
<div class="grid grid-cols-2 gap-2 sm:grid-cols-4">
|
|
1684
|
+
<button
|
|
1685
|
+
v-for="opt in campfireRosterOptions"
|
|
1686
|
+
:key="opt.value"
|
|
1687
|
+
type="button"
|
|
1688
|
+
:disabled="!editing"
|
|
1689
|
+
:title="opt.hint"
|
|
1690
|
+
:class="[cardBase, campfireRosterStyle === opt.value ? cardOn : cardOff]"
|
|
1691
|
+
@click="campfireRosterStyle = opt.value"
|
|
1692
|
+
>
|
|
1693
|
+
<UIcon
|
|
1694
|
+
:name="opt.icon"
|
|
1695
|
+
class="size-4.5 opacity-80"
|
|
1696
|
+
/>
|
|
1697
|
+
<span class="text-xs">{{ opt.label }}</span>
|
|
1698
|
+
</button>
|
|
1699
|
+
</div>
|
|
1700
|
+
</UFormField>
|
|
1701
|
+
|
|
1702
|
+
<!-- Identity detail -->
|
|
1703
|
+
<div
|
|
1704
|
+
v-show="campfireIdentity"
|
|
1705
|
+
class="flex items-center justify-between gap-3 sm:max-w-sm"
|
|
1706
|
+
>
|
|
1707
|
+
<div class="min-w-0">
|
|
1708
|
+
<p class="text-xs font-medium">
|
|
1709
|
+
Let visitors rename themselves
|
|
1710
|
+
</p>
|
|
1711
|
+
<p class="text-[11px] text-muted">
|
|
1712
|
+
Off keeps everyone on their generated handle.
|
|
1713
|
+
</p>
|
|
1714
|
+
</div>
|
|
1715
|
+
<USwitch
|
|
1716
|
+
v-model="campfireAllowRename"
|
|
1717
|
+
:disabled="!editing"
|
|
1718
|
+
color="neutral"
|
|
1719
|
+
/>
|
|
1720
|
+
</div>
|
|
1721
|
+
|
|
1722
|
+
<!-- Reactions -->
|
|
1723
|
+
<div class="grid items-start gap-4 sm:grid-cols-[1fr_auto]">
|
|
1724
|
+
<UFormField
|
|
1725
|
+
label="Reactions"
|
|
1726
|
+
help="Emoji that rise from the pill. Type them in the order you want them; spaces optional."
|
|
1727
|
+
>
|
|
1728
|
+
<div class="flex items-center gap-3">
|
|
1729
|
+
<UInput
|
|
1730
|
+
:model-value="campfireReactionsText"
|
|
1731
|
+
:disabled="!editing || !campfireReactions"
|
|
1732
|
+
class="w-full max-w-56"
|
|
1733
|
+
placeholder="🔥 ❤️ 👋 ☕"
|
|
1734
|
+
@change="setCampfireReactions"
|
|
1735
|
+
/>
|
|
1736
|
+
<span
|
|
1737
|
+
class="flex gap-1 text-lg leading-none"
|
|
1738
|
+
:class="campfireReactions ? '' : 'opacity-40'"
|
|
1739
|
+
>
|
|
1740
|
+
<span
|
|
1741
|
+
v-for="(r, i) in campfireReactionsPreview"
|
|
1742
|
+
:key="`${r}-${i}`"
|
|
1743
|
+
>{{ r }}</span>
|
|
1744
|
+
</span>
|
|
1745
|
+
</div>
|
|
1746
|
+
</UFormField>
|
|
1747
|
+
<div class="flex items-center justify-between gap-3 pb-1.5 sm:pt-7">
|
|
1748
|
+
<p class="text-xs font-medium sm:hidden">
|
|
1749
|
+
Reactions
|
|
1750
|
+
</p>
|
|
1751
|
+
<USwitch
|
|
1752
|
+
v-model="campfireReactions"
|
|
1753
|
+
:disabled="!editing"
|
|
1754
|
+
color="neutral"
|
|
1755
|
+
/>
|
|
1756
|
+
</div>
|
|
1757
|
+
</div>
|
|
1758
|
+
|
|
1759
|
+
<div class="border-t border-black/5 pt-5 dark:border-white/10">
|
|
1760
|
+
<p class="mb-4 text-[10px] tracking-[0.22em] text-muted uppercase">
|
|
1761
|
+
Appearance
|
|
1762
|
+
</p>
|
|
1763
|
+
|
|
1764
|
+
<div class="space-y-5">
|
|
1765
|
+
<UFormField
|
|
1766
|
+
label="Corner"
|
|
1767
|
+
help="The top corners sit below the navbar, so they never cover it."
|
|
1768
|
+
>
|
|
1769
|
+
<div class="grid grid-cols-2 gap-2 sm:grid-cols-4">
|
|
1770
|
+
<button
|
|
1771
|
+
v-for="opt in campfirePlacementOptions"
|
|
1772
|
+
:key="opt.value"
|
|
1773
|
+
type="button"
|
|
1774
|
+
:disabled="!editing"
|
|
1775
|
+
:title="opt.hint"
|
|
1776
|
+
:class="[cardBase, campfirePlacement === opt.value ? cardOn : cardOff]"
|
|
1777
|
+
@click="campfirePlacement = opt.value"
|
|
1778
|
+
>
|
|
1779
|
+
<UIcon
|
|
1780
|
+
:name="opt.icon"
|
|
1781
|
+
class="size-4.5 opacity-80"
|
|
1782
|
+
/>
|
|
1783
|
+
<span class="text-[11px]">{{ opt.label }}</span>
|
|
1784
|
+
</button>
|
|
1785
|
+
</div>
|
|
1786
|
+
</UFormField>
|
|
1787
|
+
|
|
1788
|
+
<UFormField
|
|
1789
|
+
label="What the closed pill says"
|
|
1790
|
+
help="How loudly it announces the company before anyone opens it."
|
|
1791
|
+
>
|
|
1792
|
+
<div class="grid grid-cols-2 gap-2 sm:grid-cols-4">
|
|
1793
|
+
<button
|
|
1794
|
+
v-for="opt in campfirePillOptions"
|
|
1795
|
+
:key="opt.value"
|
|
1796
|
+
type="button"
|
|
1797
|
+
:disabled="!editing"
|
|
1798
|
+
:class="[cardBase, campfirePillMode === opt.value ? cardOn : cardOff]"
|
|
1799
|
+
@click="campfirePillMode = opt.value"
|
|
1800
|
+
>
|
|
1801
|
+
<span class="text-xs">{{ opt.label }}</span>
|
|
1802
|
+
<span class="text-[10px] text-muted">{{ opt.hint }}</span>
|
|
1803
|
+
</button>
|
|
1804
|
+
</div>
|
|
1805
|
+
</UFormField>
|
|
1806
|
+
|
|
1807
|
+
<div class="grid gap-4 sm:grid-cols-2">
|
|
1808
|
+
<UFormField
|
|
1809
|
+
label="Panel size"
|
|
1810
|
+
help="Every size clamps to the viewport on a phone."
|
|
1811
|
+
>
|
|
1812
|
+
<div class="grid grid-cols-3 gap-2">
|
|
1813
|
+
<button
|
|
1814
|
+
v-for="opt in campfireSizeOptions"
|
|
1815
|
+
:key="opt.value"
|
|
1816
|
+
type="button"
|
|
1817
|
+
:disabled="!editing"
|
|
1818
|
+
:class="[cardBase, campfireSize === opt.value ? cardOn : cardOff]"
|
|
1819
|
+
@click="campfireSize = opt.value"
|
|
1820
|
+
>
|
|
1821
|
+
<span
|
|
1822
|
+
class="w-3.5 rounded-sm border-2 border-current opacity-70"
|
|
1823
|
+
:class="opt.bar"
|
|
1824
|
+
/>
|
|
1825
|
+
<span class="text-xs">{{ opt.label }}</span>
|
|
1826
|
+
</button>
|
|
1827
|
+
</div>
|
|
1828
|
+
</UFormField>
|
|
1829
|
+
|
|
1830
|
+
<UFormField
|
|
1831
|
+
label="Opens on"
|
|
1832
|
+
help="Which panel a tap shows first."
|
|
1833
|
+
>
|
|
1834
|
+
<div class="grid grid-cols-2 gap-2">
|
|
1835
|
+
<button
|
|
1836
|
+
v-for="opt in campfireTabOptions"
|
|
1837
|
+
:key="opt.value"
|
|
1838
|
+
type="button"
|
|
1839
|
+
:disabled="!editing"
|
|
1840
|
+
:class="[cardBase, campfireOpenTab === opt.value ? cardOn : cardOff]"
|
|
1841
|
+
@click="campfireOpenTab = opt.value"
|
|
1842
|
+
>
|
|
1843
|
+
<span class="text-xs">{{ opt.label }}</span>
|
|
1844
|
+
</button>
|
|
1845
|
+
</div>
|
|
1846
|
+
</UFormField>
|
|
1847
|
+
</div>
|
|
1848
|
+
|
|
1849
|
+
<div class="grid items-end gap-4 sm:grid-cols-2">
|
|
1850
|
+
<UFormField
|
|
1851
|
+
label="Label"
|
|
1852
|
+
:help="`Leave empty for the house wording. {n} becomes the count \u2014 now reading \u201C${campfireLabelPreview}\u201D.`"
|
|
1853
|
+
>
|
|
1854
|
+
<UInput
|
|
1855
|
+
:model-value="config.campfireLabel ?? ''"
|
|
1856
|
+
:disabled="!editing"
|
|
1857
|
+
class="w-full"
|
|
1858
|
+
placeholder="{n} others warming here"
|
|
1859
|
+
@change="setText('campfireLabel', $event)"
|
|
1860
|
+
/>
|
|
1861
|
+
</UFormField>
|
|
1862
|
+
<div class="grid grid-cols-2 gap-x-6">
|
|
1863
|
+
<div class="flex items-center justify-between gap-3 pb-1.5">
|
|
1864
|
+
<div class="min-w-0">
|
|
1865
|
+
<p class="text-xs font-medium">
|
|
1866
|
+
Frosted
|
|
1867
|
+
</p>
|
|
1868
|
+
<p class="text-[11px] text-muted">
|
|
1869
|
+
Blur behind
|
|
1870
|
+
</p>
|
|
1871
|
+
</div>
|
|
1872
|
+
<USwitch
|
|
1873
|
+
v-model="campfireBlur"
|
|
1874
|
+
:disabled="!editing"
|
|
1875
|
+
color="neutral"
|
|
1876
|
+
/>
|
|
1877
|
+
</div>
|
|
1878
|
+
<div class="flex items-center justify-between gap-3 pb-1.5">
|
|
1879
|
+
<div class="min-w-0">
|
|
1880
|
+
<p class="text-xs font-medium">
|
|
1881
|
+
Warm ember
|
|
1882
|
+
</p>
|
|
1883
|
+
<p class="text-[11px] text-muted">
|
|
1884
|
+
Or keep it grey
|
|
1885
|
+
</p>
|
|
1886
|
+
</div>
|
|
1887
|
+
<USwitch
|
|
1888
|
+
v-model="campfireEmber"
|
|
1889
|
+
:disabled="!editing"
|
|
1890
|
+
color="neutral"
|
|
1891
|
+
/>
|
|
1892
|
+
</div>
|
|
1893
|
+
</div>
|
|
1894
|
+
</div>
|
|
1895
|
+
</div>
|
|
1896
|
+
</div>
|
|
1897
|
+
</div>
|
|
1898
|
+
</section>
|
|
1899
|
+
|
|
1900
|
+
<!-- Footer -->
|
|
1901
|
+
<section class="jun-card space-y-5 rounded-2xl p-6">
|
|
1902
|
+
<header class="flex items-start gap-3">
|
|
1903
|
+
<span class="flex size-9 flex-none items-center justify-center rounded-lg bg-black/5 dark:bg-white/10">
|
|
1904
|
+
<UIcon
|
|
1905
|
+
name="i-lucide-panel-bottom"
|
|
1906
|
+
class="size-4.5"
|
|
1907
|
+
/>
|
|
1908
|
+
</span>
|
|
1909
|
+
<div>
|
|
1910
|
+
<h2 class="text-sm font-semibold text-highlighted">
|
|
1911
|
+
Footer
|
|
1912
|
+
</h2>
|
|
1913
|
+
<p class="text-xs text-muted">
|
|
1914
|
+
A quiet line at the end of flowing pages.
|
|
1915
|
+
</p>
|
|
1916
|
+
</div>
|
|
1917
|
+
</header>
|
|
1918
|
+
|
|
1919
|
+
<div class="grid items-end gap-4 sm:grid-cols-2">
|
|
1920
|
+
<UFormField label="Text">
|
|
1921
|
+
<UInput
|
|
1922
|
+
:model-value="config.footerText ?? ''"
|
|
1923
|
+
:disabled="!editing"
|
|
1924
|
+
class="w-full"
|
|
1925
|
+
@change="setText('footerText', $event)"
|
|
1926
|
+
/>
|
|
1927
|
+
</UFormField>
|
|
1928
|
+
<div class="flex items-center justify-between gap-3 pb-1.5">
|
|
1929
|
+
<div class="min-w-0">
|
|
1930
|
+
<p class="text-xs font-medium">
|
|
1931
|
+
Show "Updated …"
|
|
1932
|
+
</p>
|
|
1933
|
+
<p class="text-[11px] text-muted">
|
|
1934
|
+
Newest change anywhere in the tree, ticking live.
|
|
1935
|
+
</p>
|
|
1936
|
+
</div>
|
|
1937
|
+
<USwitch
|
|
1938
|
+
v-model="footerShowUpdated"
|
|
1939
|
+
:disabled="!editing"
|
|
1940
|
+
color="neutral"
|
|
1941
|
+
/>
|
|
1942
|
+
</div>
|
|
1943
|
+
</div>
|
|
1944
|
+
</section>
|
|
1945
|
+
|
|
1946
|
+
<!-- Visitors -->
|
|
1947
|
+
<section class="jun-card space-y-5 rounded-2xl p-6">
|
|
1948
|
+
<header class="flex items-start gap-3">
|
|
1949
|
+
<span class="flex size-9 flex-none items-center justify-center rounded-lg bg-black/5 dark:bg-white/10">
|
|
1950
|
+
<UIcon
|
|
1951
|
+
name="i-lucide-users"
|
|
1952
|
+
class="size-4.5"
|
|
1953
|
+
/>
|
|
1954
|
+
</span>
|
|
1955
|
+
<div>
|
|
1956
|
+
<h2 class="text-sm font-semibold text-highlighted">
|
|
1957
|
+
Visitors
|
|
1958
|
+
</h2>
|
|
1959
|
+
<p class="text-xs text-muted">
|
|
1960
|
+
What passers-by can do, and how the site describes itself to readers and their feed
|
|
1961
|
+
readers. Switches apply immediately, server side included.
|
|
1962
|
+
</p>
|
|
1963
|
+
</div>
|
|
1964
|
+
</header>
|
|
1965
|
+
|
|
1966
|
+
<div class="grid gap-x-8 gap-y-3 sm:grid-cols-3">
|
|
1967
|
+
<div class="flex items-center justify-between gap-3">
|
|
1968
|
+
<div class="min-w-0">
|
|
1969
|
+
<p class="text-xs font-medium">
|
|
1970
|
+
Guestbook
|
|
1971
|
+
</p>
|
|
1972
|
+
<p class="text-[11px] text-muted">
|
|
1973
|
+
Visitors can sign
|
|
1974
|
+
</p>
|
|
1975
|
+
</div>
|
|
1976
|
+
<USwitch
|
|
1977
|
+
v-model="guestbookEnabled"
|
|
1978
|
+
:disabled="!editing"
|
|
1979
|
+
color="neutral"
|
|
1980
|
+
/>
|
|
1981
|
+
</div>
|
|
1982
|
+
<div class="flex items-center justify-between gap-3">
|
|
1983
|
+
<div class="min-w-0">
|
|
1984
|
+
<p class="text-xs font-medium">
|
|
1985
|
+
Appreciations
|
|
1986
|
+
</p>
|
|
1987
|
+
<p class="text-[11px] text-muted">
|
|
1988
|
+
The heart on posts
|
|
1989
|
+
</p>
|
|
1990
|
+
</div>
|
|
1991
|
+
<USwitch
|
|
1992
|
+
v-model="reactionsEnabled"
|
|
1993
|
+
:disabled="!editing"
|
|
1994
|
+
color="neutral"
|
|
1995
|
+
/>
|
|
1996
|
+
</div>
|
|
1997
|
+
<div class="flex items-center justify-between gap-3">
|
|
1998
|
+
<div class="min-w-0">
|
|
1999
|
+
<p class="text-xs font-medium">
|
|
2000
|
+
Feeds
|
|
2001
|
+
</p>
|
|
2002
|
+
<p class="text-[11px] text-muted">
|
|
2003
|
+
/feed.xml and /feed.json
|
|
2004
|
+
</p>
|
|
2005
|
+
</div>
|
|
2006
|
+
<USwitch
|
|
2007
|
+
v-model="feedsEnabled"
|
|
2008
|
+
:disabled="!editing"
|
|
2009
|
+
color="neutral"
|
|
2010
|
+
/>
|
|
2011
|
+
</div>
|
|
2012
|
+
</div>
|
|
2013
|
+
|
|
2014
|
+
<div class="grid gap-4 sm:grid-cols-2">
|
|
2015
|
+
<UFormField
|
|
2016
|
+
label="Author name"
|
|
2017
|
+
help="Feeds and structured data."
|
|
2018
|
+
>
|
|
2019
|
+
<UInput
|
|
2020
|
+
:model-value="config.authorName ?? ''"
|
|
2021
|
+
:disabled="!editing"
|
|
2022
|
+
class="w-full"
|
|
2023
|
+
@change="setText('authorName', $event)"
|
|
2024
|
+
/>
|
|
2025
|
+
</UFormField>
|
|
2026
|
+
<UFormField
|
|
2027
|
+
label="404 message"
|
|
2028
|
+
help="The line on the not-found page."
|
|
2029
|
+
>
|
|
2030
|
+
<UInput
|
|
2031
|
+
:model-value="config.notFoundText ?? ''"
|
|
2032
|
+
:disabled="!editing"
|
|
2033
|
+
class="w-full"
|
|
2034
|
+
@change="setText('notFoundText', $event)"
|
|
2035
|
+
/>
|
|
2036
|
+
</UFormField>
|
|
2037
|
+
</div>
|
|
2038
|
+
</section>
|
|
2039
|
+
</div>
|
|
2040
|
+
</div>
|
|
2041
|
+
</template>
|
|
2042
|
+
|
|
2043
|
+
<style scoped>
|
|
2044
|
+
.jun-bg-preview{background-color:#fff;background-image:linear-gradient(45deg,rgba(0,0,0,.07) 25%,transparent 0),linear-gradient(-45deg,rgba(0,0,0,.07) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.07) 0),linear-gradient(-45deg,transparent 75%,rgba(0,0,0,.07) 0);background-position:0 0,0 6px,6px -6px,-6px 0;background-size:12px 12px}:root.dark .jun-bg-preview{background-color:#18181b;background-image:linear-gradient(45deg,hsla(0,0%,100%,.07) 25%,transparent 0),linear-gradient(-45deg,hsla(0,0%,100%,.07) 25%,transparent 0),linear-gradient(45deg,transparent 75%,hsla(0,0%,100%,.07) 0),linear-gradient(-45deg,transparent 75%,hsla(0,0%,100%,.07) 0)}
|
|
2045
|
+
</style>
|