@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,462 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, ref, shallowRef, watch, onUnmounted } from "vue";
|
|
3
|
+
import { useRouter } from "vue-router";
|
|
4
|
+
import { useEventListener } from "@vueuse/core";
|
|
5
|
+
import {
|
|
6
|
+
useAbracadabra,
|
|
7
|
+
useChildTree,
|
|
8
|
+
useDocSlugs,
|
|
9
|
+
useDocTree,
|
|
10
|
+
useDocumentPermissions,
|
|
11
|
+
useJunBrand,
|
|
12
|
+
junMirrorCorner,
|
|
13
|
+
useJunChromeInsets,
|
|
14
|
+
useJunChromeSlot,
|
|
15
|
+
useJunCreatePage,
|
|
16
|
+
useJunCurrentDoc,
|
|
17
|
+
useJunOptions,
|
|
18
|
+
useJunPressDrag,
|
|
19
|
+
useJunRename,
|
|
20
|
+
useJunSearch,
|
|
21
|
+
useJunSiteConfig,
|
|
22
|
+
useJunStudio,
|
|
23
|
+
usePluginRegistry,
|
|
24
|
+
useProviderRole,
|
|
25
|
+
useToast
|
|
26
|
+
} from "#imports";
|
|
27
|
+
const { canEdit, editMode, toggleEdit, setEditMode } = useJunStudio();
|
|
28
|
+
const { logout, status, synced, unsyncedChanges, effectiveRole, provider, spaceDocId } = useAbracadabra();
|
|
29
|
+
const toast = useToast();
|
|
30
|
+
const brand = useJunBrand();
|
|
31
|
+
const opts = useJunOptions();
|
|
32
|
+
const abra = useAbracadabra();
|
|
33
|
+
const { getEntry } = useDocTree();
|
|
34
|
+
const registry = usePluginRegistry();
|
|
35
|
+
const typeTree = useChildTree(abra.doc, "jun-studio-type-switch");
|
|
36
|
+
const normalizeIcon = (raw) => {
|
|
37
|
+
if (!raw) return "i-lucide-file";
|
|
38
|
+
if (raw.startsWith("i-") || raw.includes(":")) return raw;
|
|
39
|
+
return `i-lucide-${raw}`;
|
|
40
|
+
};
|
|
41
|
+
const CORE_TYPES = [
|
|
42
|
+
{ key: "doc", label: "Document", icon: "i-lucide-file-text" },
|
|
43
|
+
{ key: "prose", label: "Prose", icon: "i-lucide-text" },
|
|
44
|
+
{ key: "kanban", label: "Board", icon: "i-lucide-kanban" },
|
|
45
|
+
{ key: "table", label: "Table", icon: "i-lucide-table" },
|
|
46
|
+
{ key: "sheets", label: "Sheet", icon: "i-lucide-grid-3x3" },
|
|
47
|
+
{ key: "gallery", label: "Gallery", icon: "i-lucide-images" },
|
|
48
|
+
{ key: "outline", label: "Outline", icon: "i-lucide-list-tree" },
|
|
49
|
+
{ key: "calendar", label: "Calendar", icon: "i-lucide-calendar" },
|
|
50
|
+
{ key: "checklist", label: "Checklist", icon: "i-lucide-check-square" },
|
|
51
|
+
{ key: "timeline", label: "Timeline", icon: "i-lucide-gantt-chart" },
|
|
52
|
+
{ key: "graph", label: "Graph", icon: "i-lucide-git-fork" },
|
|
53
|
+
{ key: "chart", label: "Chart", icon: "i-lucide-chart-line" },
|
|
54
|
+
{ key: "dashboard", label: "Dashboard", icon: "i-lucide-layout-dashboard" },
|
|
55
|
+
{ key: "map", label: "Map", icon: "i-lucide-map" },
|
|
56
|
+
{ key: "slides", label: "Slides", icon: "i-lucide-presentation" },
|
|
57
|
+
{ key: "media", label: "Media", icon: "i-lucide-play" },
|
|
58
|
+
{ key: "call", label: "Call", icon: "i-lucide-phone" },
|
|
59
|
+
{ key: "code", label: "Code", icon: "i-lucide-code" },
|
|
60
|
+
{ key: "spatial", label: "Spatial", icon: "i-lucide-box" }
|
|
61
|
+
];
|
|
62
|
+
const docTypes = computed(() => {
|
|
63
|
+
const merged = /* @__PURE__ */ new Map();
|
|
64
|
+
for (const t of CORE_TYPES) merged.set(t.key, t);
|
|
65
|
+
const reg = registry?.getAllPageTypes?.() ?? {};
|
|
66
|
+
for (const [key, pt] of Object.entries(reg)) {
|
|
67
|
+
merged.set(key, {
|
|
68
|
+
key,
|
|
69
|
+
label: pt.label ?? merged.get(key)?.label ?? key,
|
|
70
|
+
icon: normalizeIcon(pt.icon ?? merged.get(key)?.icon)
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
return [...merged.values()];
|
|
74
|
+
});
|
|
75
|
+
const { currentDocId: targetDocId, isRoot: isRootTarget } = useJunCurrentDoc();
|
|
76
|
+
const currentType = computed(
|
|
77
|
+
() => (targetDocId.value ? getEntry(targetDocId.value)?.type : void 0) ?? "doc"
|
|
78
|
+
);
|
|
79
|
+
const currentTypeDef = computed(() => docTypes.value.find((t) => t.key === currentType.value));
|
|
80
|
+
const typeMenuOpen = ref(false);
|
|
81
|
+
const typeMenuItems = computed(() => [
|
|
82
|
+
docTypes.value.map((t) => ({
|
|
83
|
+
label: t.label,
|
|
84
|
+
icon: normalizeIcon(t.icon),
|
|
85
|
+
active: t.key === currentType.value,
|
|
86
|
+
onSelect: () => changeType(t.key, t.label)
|
|
87
|
+
}))
|
|
88
|
+
]);
|
|
89
|
+
function changeType(key, label) {
|
|
90
|
+
const id = targetDocId.value;
|
|
91
|
+
if (!id) return;
|
|
92
|
+
const entry = typeTree.treeMap.get(id);
|
|
93
|
+
if (entry?.type === key) return;
|
|
94
|
+
if (!entry) {
|
|
95
|
+
if (!isRootTarget.value) return;
|
|
96
|
+
const now = Date.now();
|
|
97
|
+
typeTree.treeMap.set(id, {
|
|
98
|
+
label: brand.value.name,
|
|
99
|
+
parentId: null,
|
|
100
|
+
order: 0,
|
|
101
|
+
type: key,
|
|
102
|
+
createdAt: now,
|
|
103
|
+
updatedAt: now
|
|
104
|
+
});
|
|
105
|
+
} else {
|
|
106
|
+
typeTree.treeMap.set(id, { ...entry, type: key, updatedAt: Date.now() });
|
|
107
|
+
}
|
|
108
|
+
toast.add({ title: `Page type \u2192 ${label}`, icon: "i-lucide-repeat", color: "neutral" });
|
|
109
|
+
}
|
|
110
|
+
const selfTitledTypes = computed(() => new Set(opts.pageTypes));
|
|
111
|
+
const showTitleEditor = computed(
|
|
112
|
+
() => editMode.value && !!targetDocId.value && !!getEntry(targetDocId.value) && !selfTitledTypes.value.has(currentType.value)
|
|
113
|
+
);
|
|
114
|
+
const currentLabel = computed(
|
|
115
|
+
() => targetDocId.value ? getEntry(targetDocId.value)?.label ?? "" : ""
|
|
116
|
+
);
|
|
117
|
+
const titleDraft = ref("");
|
|
118
|
+
const titleFocused = ref(false);
|
|
119
|
+
watch(
|
|
120
|
+
[currentLabel, showTitleEditor],
|
|
121
|
+
() => {
|
|
122
|
+
if (!titleFocused.value) titleDraft.value = currentLabel.value;
|
|
123
|
+
},
|
|
124
|
+
{ immediate: true }
|
|
125
|
+
);
|
|
126
|
+
const { renameDoc } = useJunRename();
|
|
127
|
+
function commitTitle() {
|
|
128
|
+
const t = titleDraft.value.trim();
|
|
129
|
+
if (targetDocId.value && t && t !== currentLabel.value) {
|
|
130
|
+
renameDoc(targetDocId.value, t);
|
|
131
|
+
} else {
|
|
132
|
+
titleDraft.value = currentLabel.value;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
function onTitleKeydown(e) {
|
|
136
|
+
if (e.key === "Enter") {
|
|
137
|
+
e.preventDefault();
|
|
138
|
+
e.target.blur();
|
|
139
|
+
} else if (e.key === "Escape") {
|
|
140
|
+
titleDraft.value = currentLabel.value;
|
|
141
|
+
e.target.blur();
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
const pageProvider = shallowRef(null);
|
|
145
|
+
watch(
|
|
146
|
+
[targetDocId, provider, spaceDocId],
|
|
147
|
+
async ([id, rootProvider, rootId]) => {
|
|
148
|
+
pageProvider.value = null;
|
|
149
|
+
if (!id || !rootProvider) return;
|
|
150
|
+
if (id === rootId) {
|
|
151
|
+
pageProvider.value = rootProvider;
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
try {
|
|
155
|
+
const child = await rootProvider.loadChild(id);
|
|
156
|
+
if (targetDocId.value === id) pageProvider.value = child;
|
|
157
|
+
} catch {
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
{ immediate: true }
|
|
161
|
+
);
|
|
162
|
+
const pageRole = useProviderRole(() => pageProvider.value);
|
|
163
|
+
const { canWrite: pageCanWrite } = useDocumentPermissions(pageRole);
|
|
164
|
+
const shownRole = computed(
|
|
165
|
+
() => String(pageRole.value ?? effectiveRole.value ?? "").toLowerCase() || "unknown"
|
|
166
|
+
);
|
|
167
|
+
const pageReadOnly = computed(() => !!pageRole.value && !pageCanWrite.value);
|
|
168
|
+
const health = computed(() => {
|
|
169
|
+
if (status.value !== "connected") return status.value === "connecting" ? "busy" : "down";
|
|
170
|
+
if (pageReadOnly.value) return "down";
|
|
171
|
+
if (!synced.value || unsyncedChanges.value > 0) return "busy";
|
|
172
|
+
return "ok";
|
|
173
|
+
});
|
|
174
|
+
const healthDotClass = computed(() => ({
|
|
175
|
+
ok: "bg-emerald-500",
|
|
176
|
+
busy: "bg-amber-500",
|
|
177
|
+
down: "bg-red-500"
|
|
178
|
+
})[health.value]);
|
|
179
|
+
const healthTitle = computed(() => {
|
|
180
|
+
const parts = [`Connection: ${status.value}`, `Role: ${shownRole.value}`];
|
|
181
|
+
if (pageReadOnly.value) parts.push("This page is READ-ONLY for your role");
|
|
182
|
+
if (!synced.value) parts.push("Not synced");
|
|
183
|
+
if (unsyncedChanges.value > 0) parts.push(`${unsyncedChanges.value} unsynced change(s)`);
|
|
184
|
+
return parts.join(" \xB7 ");
|
|
185
|
+
});
|
|
186
|
+
const BASE_CORNER = "bottom-left";
|
|
187
|
+
const barEl = ref(null);
|
|
188
|
+
const { navPlacement } = useJunChromeInsets();
|
|
189
|
+
useJunChromeSlot("studio", barEl);
|
|
190
|
+
const corner = computed(() => junMirrorCorner(BASE_CORNER, navPlacement.value));
|
|
191
|
+
const proximityExpanded = ref(false);
|
|
192
|
+
const touchExpanded = ref(false);
|
|
193
|
+
const EXPAND_PX = 90;
|
|
194
|
+
const COLLAPSE_PX = 170;
|
|
195
|
+
let proximityRaf = 0;
|
|
196
|
+
useEventListener("pointermove", (e) => {
|
|
197
|
+
if (!canEdit.value || proximityRaf) return;
|
|
198
|
+
const x = e.clientX;
|
|
199
|
+
const y = e.clientY;
|
|
200
|
+
proximityRaf = requestAnimationFrame(() => {
|
|
201
|
+
proximityRaf = 0;
|
|
202
|
+
const el = barEl.value;
|
|
203
|
+
if (!el) return;
|
|
204
|
+
const r = el.getBoundingClientRect();
|
|
205
|
+
const dx = Math.max(r.left - x, 0, x - r.right);
|
|
206
|
+
const dy = Math.max(r.top - y, 0, y - r.bottom);
|
|
207
|
+
const d = Math.hypot(dx, dy);
|
|
208
|
+
if (d < EXPAND_PX) proximityExpanded.value = true;
|
|
209
|
+
else if (d > COLLAPSE_PX) {
|
|
210
|
+
proximityExpanded.value = false;
|
|
211
|
+
touchExpanded.value = false;
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
onUnmounted(() => {
|
|
216
|
+
if (proximityRaf) cancelAnimationFrame(proximityRaf);
|
|
217
|
+
});
|
|
218
|
+
const { start: pressStart, pressing, hot } = useJunPressDrag({
|
|
219
|
+
enabled: () => canEdit.value,
|
|
220
|
+
onOpen: () => {
|
|
221
|
+
touchExpanded.value = true;
|
|
222
|
+
},
|
|
223
|
+
onTap: () => toggleEdit(),
|
|
224
|
+
onPick: (key) => runAction(key)
|
|
225
|
+
});
|
|
226
|
+
function onTriggerClick(e) {
|
|
227
|
+
if (e.detail !== 0) return;
|
|
228
|
+
toggleEdit();
|
|
229
|
+
}
|
|
230
|
+
const pinnedOpen = computed(() => typeMenuOpen.value || titleFocused.value);
|
|
231
|
+
const expanded = computed(
|
|
232
|
+
() => proximityExpanded.value || touchExpanded.value || pinnedOpen.value || pressing.value
|
|
233
|
+
);
|
|
234
|
+
async function onLogout() {
|
|
235
|
+
setEditMode(false);
|
|
236
|
+
try {
|
|
237
|
+
await logout();
|
|
238
|
+
} catch {
|
|
239
|
+
}
|
|
240
|
+
toast.add({ title: "Signed out", icon: "i-lucide-log-out", color: "neutral" });
|
|
241
|
+
}
|
|
242
|
+
const siteConfig = useJunSiteConfig();
|
|
243
|
+
const { getDocUrl: configDocUrl } = useDocSlugs();
|
|
244
|
+
const router = useRouter();
|
|
245
|
+
function openSiteSettings() {
|
|
246
|
+
const id = siteConfig.ensure();
|
|
247
|
+
const to = id ? configDocUrl(id) : null;
|
|
248
|
+
if (to) void router.push(to);
|
|
249
|
+
else {
|
|
250
|
+
toast.add({
|
|
251
|
+
title: "Still syncing \u2014 try again in a moment",
|
|
252
|
+
icon: "i-lucide-loader",
|
|
253
|
+
color: "neutral"
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
const { openSearch } = useJunSearch();
|
|
258
|
+
const { createPage } = useJunCreatePage();
|
|
259
|
+
const titleEl = ref(null);
|
|
260
|
+
const ACTIONS = {
|
|
261
|
+
edit: () => toggleEdit(),
|
|
262
|
+
type: () => {
|
|
263
|
+
typeMenuOpen.value = true;
|
|
264
|
+
},
|
|
265
|
+
title: () => titleEl.value?.focus(),
|
|
266
|
+
// A child of the page in front of you, which is the one relationship the
|
|
267
|
+
// navbar's own "new page" cannot express — it only ever makes top-level ones.
|
|
268
|
+
new: () => {
|
|
269
|
+
createPage({ parentId: targetDocId.value });
|
|
270
|
+
},
|
|
271
|
+
palette: () => openSearch(),
|
|
272
|
+
settings: () => openSiteSettings(),
|
|
273
|
+
logout: () => void onLogout()
|
|
274
|
+
};
|
|
275
|
+
function runAction(key) {
|
|
276
|
+
ACTIONS[key]?.();
|
|
277
|
+
}
|
|
278
|
+
const iconActions = computed(() => {
|
|
279
|
+
const list = [
|
|
280
|
+
{ key: "new", icon: "i-lucide-file-plus-2", label: "New page here" }
|
|
281
|
+
];
|
|
282
|
+
if (opts.features.search) {
|
|
283
|
+
list.push({ key: "palette", icon: "i-lucide-command", label: "Search and commands" });
|
|
284
|
+
}
|
|
285
|
+
if (editMode.value) {
|
|
286
|
+
list.push({ key: "settings", icon: "i-lucide-settings-2", label: "Site settings" });
|
|
287
|
+
}
|
|
288
|
+
list.push({ key: "logout", icon: "i-lucide-log-out", label: "Sign out" });
|
|
289
|
+
return list;
|
|
290
|
+
});
|
|
291
|
+
</script>
|
|
292
|
+
|
|
293
|
+
<template>
|
|
294
|
+
<ClientOnly>
|
|
295
|
+
<Transition name="jun-studio-rise">
|
|
296
|
+
<div
|
|
297
|
+
v-if="canEdit"
|
|
298
|
+
ref="barEl"
|
|
299
|
+
class="jun-bar jun-bar-pill jun-chrome jun-studio-bar text-xs"
|
|
300
|
+
:data-jun-corner="corner"
|
|
301
|
+
:class="[
|
|
302
|
+
expanded ? 'cursor-default is-expanded' : '',
|
|
303
|
+
pressing ? 'is-pressing' : '',
|
|
304
|
+
editMode ? 'is-on' : ''
|
|
305
|
+
]"
|
|
306
|
+
>
|
|
307
|
+
<!-- The KNOB. The bar is the track and this slides end to end along it:
|
|
308
|
+
left when editing is off, right when it is on, and the track fills
|
|
309
|
+
behind it. Collapsed, the bar IS the knob — the track has no width,
|
|
310
|
+
so `left: 100%` and `translate: -100%` cancel and it stays put.
|
|
311
|
+
|
|
312
|
+
Absolutely positioned rather than ordered in the flex row, because
|
|
313
|
+
`order` does not animate and the whole point is that it travels.
|
|
314
|
+
|
|
315
|
+
The health dot rides it so a broken session — offline, unsynced, or
|
|
316
|
+
a read-only page — is visible without expanding anything. -->
|
|
317
|
+
<button
|
|
318
|
+
type="button"
|
|
319
|
+
class="jun-bar-knob jun-bar-trigger flex cursor-pointer items-center justify-center"
|
|
320
|
+
:aria-pressed="editMode"
|
|
321
|
+
:aria-label="editMode ? 'Stop editing' : 'Start editing'"
|
|
322
|
+
:title="editMode ? 'Editing \u2014 press to stop, drag for more' : 'Studio \u2014 press to edit, drag for more'"
|
|
323
|
+
@pointerdown="pressStart"
|
|
324
|
+
@click="onTriggerClick"
|
|
325
|
+
>
|
|
326
|
+
<UIcon
|
|
327
|
+
name="i-lucide-pen-line"
|
|
328
|
+
class="h-3.5 w-3.5 transition-transform duration-300"
|
|
329
|
+
:class="expanded ? '' : 'scale-110'"
|
|
330
|
+
/>
|
|
331
|
+
<span
|
|
332
|
+
v-if="!expanded && health !== 'ok'"
|
|
333
|
+
class="jun-bar-health absolute top-1.5 right-1.5 size-1.5 rounded-full"
|
|
334
|
+
:class="healthDotClass"
|
|
335
|
+
:title="healthTitle"
|
|
336
|
+
/>
|
|
337
|
+
</button>
|
|
338
|
+
|
|
339
|
+
<!-- The 0fr→1fr grid-column trick: a smooth width animation with no
|
|
340
|
+
content measuring and no fixed widths. -->
|
|
341
|
+
<div
|
|
342
|
+
class="grid transition-[grid-template-columns,opacity] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]"
|
|
343
|
+
:style="{ gridTemplateColumns: expanded ? '1fr' : '0fr' }"
|
|
344
|
+
:class="expanded ? 'opacity-100' : 'opacity-0'"
|
|
345
|
+
:inert="!expanded"
|
|
346
|
+
>
|
|
347
|
+
<div class="jun-bar-row flex min-w-0 items-center gap-1 overflow-hidden">
|
|
348
|
+
<!-- The mode, and a second way to change it: releasing a drag here
|
|
349
|
+
toggles, so the gesture still reaches it now the switch is
|
|
350
|
+
gone. The bar's own fill is what REPORTS the state. -->
|
|
351
|
+
<button
|
|
352
|
+
type="button"
|
|
353
|
+
data-jun-action="edit"
|
|
354
|
+
class="rounded px-1.5 py-0.5 font-medium tracking-wide whitespace-nowrap"
|
|
355
|
+
:class="hot === 'edit' ? 'is-hot' : ''"
|
|
356
|
+
:aria-label="editMode ? 'Stop editing' : 'Start editing'"
|
|
357
|
+
@click="toggleEdit()"
|
|
358
|
+
>
|
|
359
|
+
{{ editMode ? "Editing" : "Studio" }}
|
|
360
|
+
</button>
|
|
361
|
+
|
|
362
|
+
<!-- Only when something is WRONG. A permanent green dot beside a
|
|
363
|
+
permanent label is two elements saying nothing; this component
|
|
364
|
+
exists to make a silently read-only editor loud, and that is
|
|
365
|
+
the only state worth the space. -->
|
|
366
|
+
<span
|
|
367
|
+
v-if="health !== 'ok'"
|
|
368
|
+
class="flex shrink-0 items-center gap-1 whitespace-nowrap"
|
|
369
|
+
:title="healthTitle"
|
|
370
|
+
>
|
|
371
|
+
<span
|
|
372
|
+
class="size-1.5 shrink-0 rounded-full"
|
|
373
|
+
:class="healthDotClass"
|
|
374
|
+
/>
|
|
375
|
+
<span
|
|
376
|
+
v-if="pageReadOnly"
|
|
377
|
+
class="font-medium"
|
|
378
|
+
>read-only</span>
|
|
379
|
+
<span
|
|
380
|
+
v-else-if="unsyncedChanges > 0"
|
|
381
|
+
class="tabular-nums"
|
|
382
|
+
>{{ unsyncedChanges }}↑</span>
|
|
383
|
+
</span>
|
|
384
|
+
|
|
385
|
+
<template v-if="editMode && targetDocId">
|
|
386
|
+
<span class="jun-bar-sep" />
|
|
387
|
+
<UDropdownMenu
|
|
388
|
+
v-model:open="typeMenuOpen"
|
|
389
|
+
:items="typeMenuItems"
|
|
390
|
+
:content="{ side: 'top', align: 'start' }"
|
|
391
|
+
:ui="{ content: 'max-h-72 overflow-y-auto' }"
|
|
392
|
+
>
|
|
393
|
+
<button
|
|
394
|
+
type="button"
|
|
395
|
+
data-jun-action="type"
|
|
396
|
+
class="flex items-center gap-1.5 rounded px-1.5 py-0.5 whitespace-nowrap"
|
|
397
|
+
:class="hot === 'type' ? 'is-hot' : ''"
|
|
398
|
+
aria-label="Change page type"
|
|
399
|
+
>
|
|
400
|
+
<UIcon
|
|
401
|
+
:name="normalizeIcon(currentTypeDef?.icon)"
|
|
402
|
+
class="size-3.5 opacity-70"
|
|
403
|
+
/>
|
|
404
|
+
<span class="max-w-28 truncate">{{ currentTypeDef?.label ?? currentType }}</span>
|
|
405
|
+
<UIcon
|
|
406
|
+
name="i-lucide-chevron-down"
|
|
407
|
+
class="size-3 opacity-50"
|
|
408
|
+
/>
|
|
409
|
+
</button>
|
|
410
|
+
</UDropdownMenu>
|
|
411
|
+
</template>
|
|
412
|
+
|
|
413
|
+
<template v-if="showTitleEditor">
|
|
414
|
+
<span class="jun-bar-sep" />
|
|
415
|
+
<input
|
|
416
|
+
ref="titleEl"
|
|
417
|
+
v-model="titleDraft"
|
|
418
|
+
type="text"
|
|
419
|
+
spellcheck="false"
|
|
420
|
+
placeholder="Page title"
|
|
421
|
+
aria-label="Page title"
|
|
422
|
+
data-jun-action="title"
|
|
423
|
+
class="jun-bar-title w-32 bg-transparent pb-0.5 text-xs focus:outline-none"
|
|
424
|
+
:class="hot === 'title' ? 'is-hot' : ''"
|
|
425
|
+
@focus="titleFocused = true"
|
|
426
|
+
@blur="titleFocused = false;
|
|
427
|
+
commitTitle()"
|
|
428
|
+
@keydown="onTitleKeydown"
|
|
429
|
+
>
|
|
430
|
+
</template>
|
|
431
|
+
|
|
432
|
+
<span class="jun-bar-sep" />
|
|
433
|
+
|
|
434
|
+
<!-- The icon cluster. Plain buttons rather than `UButton`, so
|
|
435
|
+
`data-jun-action` and the drag highlight land on the element
|
|
436
|
+
the hit test actually returns. -->
|
|
437
|
+
<button
|
|
438
|
+
v-for="a in iconActions"
|
|
439
|
+
:key="a.key"
|
|
440
|
+
type="button"
|
|
441
|
+
:data-jun-action="a.key"
|
|
442
|
+
class="flex size-7 shrink-0 items-center justify-center rounded"
|
|
443
|
+
:class="hot === a.key ? 'is-hot' : ''"
|
|
444
|
+
:aria-label="a.label"
|
|
445
|
+
:title="a.label"
|
|
446
|
+
@click="runAction(a.key)"
|
|
447
|
+
>
|
|
448
|
+
<UIcon
|
|
449
|
+
:name="a.icon"
|
|
450
|
+
class="size-3.5"
|
|
451
|
+
/>
|
|
452
|
+
</button>
|
|
453
|
+
</div>
|
|
454
|
+
</div>
|
|
455
|
+
</div>
|
|
456
|
+
</Transition>
|
|
457
|
+
</ClientOnly>
|
|
458
|
+
</template>
|
|
459
|
+
|
|
460
|
+
<style scoped>
|
|
461
|
+
.jun-studio-rise-enter-active,.jun-studio-rise-leave-active{transition:opacity .3s ease,transform .3s cubic-bezier(.22,1,.36,1)}.jun-studio-rise-enter-from,.jun-studio-rise-leave-to{opacity:0;transform:translateY(10px)}
|
|
462
|
+
</style>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref } from "vue";
|
|
3
|
+
import { useEventListener } from "@vueuse/core";
|
|
4
|
+
import { useAbracadabra, useToast } from "#imports";
|
|
5
|
+
import { useJunOptions } from "../composables/useJunOptions";
|
|
6
|
+
import { useJunStudio } from "../composables/useJunStudio";
|
|
7
|
+
const { brand } = useJunOptions();
|
|
8
|
+
const { loginWithPassword } = useAbracadabra();
|
|
9
|
+
const { loginOpen, closeLogin, openLogin, toggleEdit, setEditMode, canEdit } = useJunStudio();
|
|
10
|
+
const toast = useToast();
|
|
11
|
+
useEventListener(window, "keydown", (e) => {
|
|
12
|
+
if (!(e.metaKey || e.ctrlKey) || !e.shiftKey || e.key.toLowerCase() !== "j") return;
|
|
13
|
+
e.preventDefault();
|
|
14
|
+
if (canEdit.value) toggleEdit();
|
|
15
|
+
else openLogin();
|
|
16
|
+
});
|
|
17
|
+
const loading = ref(false);
|
|
18
|
+
const error = ref(null);
|
|
19
|
+
async function onSubmit(opts) {
|
|
20
|
+
loading.value = true;
|
|
21
|
+
error.value = null;
|
|
22
|
+
try {
|
|
23
|
+
await loginWithPassword(opts);
|
|
24
|
+
closeLogin();
|
|
25
|
+
setEditMode(true);
|
|
26
|
+
toast.add({
|
|
27
|
+
title: `Welcome back, ${opts.username}`,
|
|
28
|
+
description: canEdit.value ? "Studio unlocked \u2014 you can edit every page." : "Signed in.",
|
|
29
|
+
icon: "i-lucide-flame",
|
|
30
|
+
color: "neutral"
|
|
31
|
+
});
|
|
32
|
+
} catch (e) {
|
|
33
|
+
error.value = humanError(e);
|
|
34
|
+
} finally {
|
|
35
|
+
loading.value = false;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function humanError(e) {
|
|
39
|
+
const msg = e instanceof Error ? e.message : String(e);
|
|
40
|
+
if (/invalid|credential|password|unauthorized|401/i.test(msg)) return "Those credentials didn't match.";
|
|
41
|
+
if (/rate|too many|429/i.test(msg)) return "Too many attempts \u2014 give it a moment.";
|
|
42
|
+
return "Couldn't sign in. Check the connection and try again.";
|
|
43
|
+
}
|
|
44
|
+
</script>
|
|
45
|
+
|
|
46
|
+
<template>
|
|
47
|
+
<APasswordLoginModal
|
|
48
|
+
:open="loginOpen"
|
|
49
|
+
:loading="loading"
|
|
50
|
+
:error="error"
|
|
51
|
+
title="Studio"
|
|
52
|
+
:subtitle="`Sign in to tend ${brand.name}.`"
|
|
53
|
+
:show-register-link="false"
|
|
54
|
+
:show-forgot-link="false"
|
|
55
|
+
@update:open="(v) => v ? null : closeLogin()"
|
|
56
|
+
@submit="onSubmit"
|
|
57
|
+
/>
|
|
58
|
+
</template>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useJunThemeTransition } from "#imports";
|
|
3
|
+
const { toggle, isDark } = useJunThemeTransition();
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<template>
|
|
7
|
+
<ClientOnly>
|
|
8
|
+
<!-- Mirrors the navbar search button exactly — same box, same hover — so
|
|
9
|
+
the trailing button cluster reads as one consistent set. -->
|
|
10
|
+
<button
|
|
11
|
+
type="button"
|
|
12
|
+
class="flex h-8 w-8 items-center justify-center rounded-full
|
|
13
|
+
text-black/55 transition-colors duration-200
|
|
14
|
+
hover:scale-110 hover:text-black active:scale-95
|
|
15
|
+
dark:text-white/55 dark:hover:text-white"
|
|
16
|
+
style="pointer-events: auto"
|
|
17
|
+
:aria-label="isDark ? 'Switch to light mode' : 'Switch to dark mode'"
|
|
18
|
+
:title="isDark ? 'Switch to light mode' : 'Switch to dark mode'"
|
|
19
|
+
@click="toggle"
|
|
20
|
+
>
|
|
21
|
+
<UIcon
|
|
22
|
+
:name="isDark ? 'i-lucide-moon' : 'i-lucide-sun'"
|
|
23
|
+
class="size-4"
|
|
24
|
+
/>
|
|
25
|
+
</button>
|
|
26
|
+
<template #fallback>
|
|
27
|
+
<!-- Same box, so the cluster doesn't reflow when the real button
|
|
28
|
+
replaces it. -->
|
|
29
|
+
<div class="h-8 w-8" />
|
|
30
|
+
</template>
|
|
31
|
+
</ClientOnly>
|
|
32
|
+
</template>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** Open the named roster on hover. Off leaves the dots as a bare count. */
|
|
3
|
+
list?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
6
|
+
list: boolean;
|
|
7
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|