@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,51 @@
|
|
|
1
|
+
import { computed, getCurrentInstance, onMounted, ref } from "vue";
|
|
2
|
+
import { useAbracadabra } from "#imports";
|
|
3
|
+
import { useJunOptions } from "./useJunOptions.js";
|
|
4
|
+
const loginOpen = ref(false);
|
|
5
|
+
const editMode = ref(false);
|
|
6
|
+
let hydrated = false;
|
|
7
|
+
const mounted = ref(false);
|
|
8
|
+
const EDIT_KEY = "jun_edit_mode";
|
|
9
|
+
const WRITE_ROLES = /* @__PURE__ */ new Set(["editor", "owner", "admin", "service"]);
|
|
10
|
+
export function useJunStudio() {
|
|
11
|
+
const { effectiveRole, hasPassword } = useAbracadabra();
|
|
12
|
+
const openEditing = useJunOptions().features?.openEditing === true;
|
|
13
|
+
const canEdit = computed(() => {
|
|
14
|
+
if (!openEditing && !hasPassword.value) return false;
|
|
15
|
+
return WRITE_ROLES.has(String(effectiveRole.value ?? "").toLowerCase());
|
|
16
|
+
});
|
|
17
|
+
const editing = computed(() => (import.meta.server || mounted.value) && canEdit.value && editMode.value);
|
|
18
|
+
if (import.meta.client && !hydrated) {
|
|
19
|
+
hydrated = true;
|
|
20
|
+
editMode.value = localStorage.getItem(EDIT_KEY) === "1";
|
|
21
|
+
if (getCurrentInstance()) {
|
|
22
|
+
onMounted(() => {
|
|
23
|
+
mounted.value = true;
|
|
24
|
+
});
|
|
25
|
+
} else {
|
|
26
|
+
mounted.value = true;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function persist() {
|
|
30
|
+
if (import.meta.client) localStorage.setItem(EDIT_KEY, editMode.value ? "1" : "0");
|
|
31
|
+
}
|
|
32
|
+
function setEditMode(on) {
|
|
33
|
+
editMode.value = on;
|
|
34
|
+
persist();
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
loginOpen,
|
|
38
|
+
editMode,
|
|
39
|
+
editing,
|
|
40
|
+
canEdit,
|
|
41
|
+
effectiveRole,
|
|
42
|
+
openLogin: () => {
|
|
43
|
+
loginOpen.value = true;
|
|
44
|
+
},
|
|
45
|
+
closeLogin: () => {
|
|
46
|
+
loginOpen.value = false;
|
|
47
|
+
},
|
|
48
|
+
setEditMode,
|
|
49
|
+
toggleEdit: () => setEditMode(!editMode.value)
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Is this renderer mounted inside a bounded container — a slideover, a floating
|
|
3
|
+
* window — rather than owning the viewport?
|
|
4
|
+
*
|
|
5
|
+
* A thin wrapper over @abraca/nuxt's `useRendererSurface()`, which only exists
|
|
6
|
+
* from 2.62 onwards. Deploys resolve the module from npm, so an image built
|
|
7
|
+
* before that release has no such auto-import — and **an auto-import that never
|
|
8
|
+
* resolved compiles to a free identifier, which throws a ReferenceError on call
|
|
9
|
+
* and takes the whole renderer down with it.** (That is exactly how janis.io's
|
|
10
|
+
* globe went blank on the 2.61.0 image.) `typeof` is the one operator that is
|
|
11
|
+
* safe on an undeclared name, so probe with it and degrade to "page": the
|
|
12
|
+
* renderer keeps working, it just doesn't know it is embedded.
|
|
13
|
+
*
|
|
14
|
+
* Once every deploy is on ≥ 2.62 this can collapse into a direct call.
|
|
15
|
+
*/
|
|
16
|
+
import { type ComputedRef } from 'vue';
|
|
17
|
+
export declare function useJunSurface(): {
|
|
18
|
+
isEmbedded: ComputedRef<boolean>;
|
|
19
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { JunSiteConfig } from './useJunSiteConfig.js';
|
|
2
|
+
/**
|
|
3
|
+
* The `<html>` classes for a config — fonts and frosting.
|
|
4
|
+
*
|
|
5
|
+
* Both are static classes rather than emitted CSS, and for the same reason:
|
|
6
|
+
* @nuxt/fonts has to see the families at build time to self-host them, and the
|
|
7
|
+
* surface rules use a universal selector that has no business being rebuilt on
|
|
8
|
+
* every config change. Stamped through `useHead`'s `htmlAttrs`, so SSR carries
|
|
9
|
+
* them and the first paint is already right.
|
|
10
|
+
*/
|
|
11
|
+
export declare function junFontClass(cfg: JunSiteConfig): string;
|
|
12
|
+
/** Pure config → CSS. Empty string when everything sits at its default. */
|
|
13
|
+
export declare function junThemeCss(cfg: JunSiteConfig): string;
|
|
14
|
+
/**
|
|
15
|
+
* Mount once, in the layout.
|
|
16
|
+
*
|
|
17
|
+
* SSR themes from the cached config that `<JunHead>` fetched under the shared
|
|
18
|
+
* `jun-site-config` key; on the client the live CRDT config wins, so edits
|
|
19
|
+
* restyle every open tab immediately.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useJunThemeApply(): void;
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { computed } from "vue";
|
|
2
|
+
import { useHead, useNuxtData } from "#app";
|
|
3
|
+
import { useJunSiteConfig } from "./useJunSiteConfig.js";
|
|
4
|
+
const RADIUS = {
|
|
5
|
+
none: "0px",
|
|
6
|
+
xs: "0.125rem",
|
|
7
|
+
sm: "0.25rem",
|
|
8
|
+
md: "0.375rem",
|
|
9
|
+
lg: "0.625rem",
|
|
10
|
+
xl: "1rem"
|
|
11
|
+
};
|
|
12
|
+
const ACCENT = {
|
|
13
|
+
sun: {
|
|
14
|
+
light: "#e08a00",
|
|
15
|
+
dark: "#ffb800",
|
|
16
|
+
orb: {
|
|
17
|
+
light: { from: "#ffb800", to: "#ff9f00", glow: "#ff9f00", core: "#ffffff" },
|
|
18
|
+
dark: { from: "#ffb800", to: "#ff9f00", glow: "#ff9f00", core: "#ffffff" }
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
blue: { light: "#2563eb", dark: "#60a5fa" },
|
|
22
|
+
emerald: { light: "#059669", dark: "#34d399" },
|
|
23
|
+
violet: { light: "#7c3aed", dark: "#a78bfa" },
|
|
24
|
+
amber: { light: "#d97706", dark: "#fbbf24" },
|
|
25
|
+
rose: { light: "#e11d48", dark: "#fb7185" },
|
|
26
|
+
teal: { light: "#0d9488", dark: "#2dd4bf" }
|
|
27
|
+
};
|
|
28
|
+
const NEUTRAL = {
|
|
29
|
+
slate: ["#f8fafc", "#f1f5f9", "#e2e8f0", "#cbd5e1", "#94a3b8", "#64748b", "#475569", "#334155", "#1e293b", "#0f172a", "#020617"],
|
|
30
|
+
zinc: ["#fafafa", "#f4f4f5", "#e4e4e7", "#d4d4d8", "#a1a1aa", "#71717a", "#52525b", "#3f3f46", "#27272a", "#18181b", "#09090b"],
|
|
31
|
+
stone: ["#fafaf9", "#f5f5f4", "#e7e5e4", "#d6d3d1", "#a8a29e", "#78716c", "#57534e", "#44403c", "#292524", "#1c1917", "#0c0a09"]
|
|
32
|
+
};
|
|
33
|
+
const NEUTRAL_STEPS = ["50", "100", "200", "300", "400", "500", "600", "700", "800", "900", "950"];
|
|
34
|
+
const BLOBS = {
|
|
35
|
+
off: "0",
|
|
36
|
+
quiet: "0.5",
|
|
37
|
+
normal: null,
|
|
38
|
+
// the stylesheet default
|
|
39
|
+
bold: "1.45"
|
|
40
|
+
};
|
|
41
|
+
const FONT_CLASS = {
|
|
42
|
+
serif: "jun-font-serif",
|
|
43
|
+
grotesk: "jun-font-grotesk",
|
|
44
|
+
mono: "jun-font-mono"
|
|
45
|
+
};
|
|
46
|
+
const SURFACE_CLASS = {
|
|
47
|
+
glass: "",
|
|
48
|
+
soft: "jun-surface-soft",
|
|
49
|
+
solid: "jun-surface-solid"
|
|
50
|
+
};
|
|
51
|
+
const HEX_RE = /^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
52
|
+
function shade(hex, amount) {
|
|
53
|
+
const h = hex.replace("#", "");
|
|
54
|
+
const full = h.length === 3 ? h.split("").map((c) => c + c).join("") : h;
|
|
55
|
+
const n = Number.parseInt(full, 16);
|
|
56
|
+
const to = amount > 0 ? 255 : 0;
|
|
57
|
+
const t = Math.abs(amount);
|
|
58
|
+
const mix = (v) => Math.round(v + (to - v) * t);
|
|
59
|
+
const r = mix(n >> 16 & 255);
|
|
60
|
+
const g = mix(n >> 8 & 255);
|
|
61
|
+
const b = mix(n & 255);
|
|
62
|
+
return `#${[r, g, b].map((v) => v.toString(16).padStart(2, "0")).join("")}`;
|
|
63
|
+
}
|
|
64
|
+
function luminance(hex) {
|
|
65
|
+
const h = hex.replace("#", "");
|
|
66
|
+
const full = h.length === 3 ? h.split("").map((c) => c + c).join("") : h;
|
|
67
|
+
const n = Number.parseInt(full, 16);
|
|
68
|
+
return ((n >> 16 & 255) * 0.299 + (n >> 8 & 255) * 0.587 + (n & 255) * 0.114) / 255;
|
|
69
|
+
}
|
|
70
|
+
function sunVars(hex, orb) {
|
|
71
|
+
if (orb) {
|
|
72
|
+
return [
|
|
73
|
+
`--jun-sun-from:${orb.from}`,
|
|
74
|
+
`--jun-sun-to:${orb.to}`,
|
|
75
|
+
`--jun-sun-core:${orb.core ?? (luminance(orb.from) > 0.62 ? "#101013" : "#ffffff")}`,
|
|
76
|
+
`--jun-sun-glow:${orb.glow}`
|
|
77
|
+
];
|
|
78
|
+
}
|
|
79
|
+
if (!hex) return [];
|
|
80
|
+
return [
|
|
81
|
+
`--jun-sun-from:${shade(hex, 0.12)}`,
|
|
82
|
+
`--jun-sun-to:${shade(hex, -0.08)}`,
|
|
83
|
+
`--jun-sun-core:${luminance(hex) > 0.62 ? "#101013" : "#ffffff"}`,
|
|
84
|
+
`--jun-sun-glow:${hex}`
|
|
85
|
+
];
|
|
86
|
+
}
|
|
87
|
+
export function junFontClass(cfg) {
|
|
88
|
+
const font = cfg.themeFont;
|
|
89
|
+
const surface = cfg.themeSurface ?? "soft";
|
|
90
|
+
return [
|
|
91
|
+
font && font !== "default" && FONT_CLASS[font] || "",
|
|
92
|
+
SURFACE_CLASS[surface] || ""
|
|
93
|
+
].filter(Boolean).join(" ");
|
|
94
|
+
}
|
|
95
|
+
export function junThemeCss(cfg) {
|
|
96
|
+
const root = [];
|
|
97
|
+
const dark = [];
|
|
98
|
+
const radius = cfg.themeRadius && RADIUS[cfg.themeRadius];
|
|
99
|
+
if (radius) root.push(`--ui-radius:${radius}`);
|
|
100
|
+
const customLight = typeof cfg.themeAccentCustomLight === "string" && HEX_RE.test(cfg.themeAccentCustomLight) ? cfg.themeAccentCustomLight : void 0;
|
|
101
|
+
const customDark = typeof cfg.themeAccentCustomDark === "string" && HEX_RE.test(cfg.themeAccentCustomDark) ? cfg.themeAccentCustomDark : void 0;
|
|
102
|
+
const accent = cfg.themeAccent;
|
|
103
|
+
const preset = accent && accent !== "mono" ? ACCENT[accent] : void 0;
|
|
104
|
+
const lightHex = customLight ?? preset?.light;
|
|
105
|
+
const darkHex = customDark ?? preset?.dark;
|
|
106
|
+
if (lightHex) root.push(`--ui-primary:${lightHex}`);
|
|
107
|
+
if (darkHex) dark.push(`--ui-primary:${darkHex}`);
|
|
108
|
+
root.push(...sunVars(lightHex, customLight ? void 0 : preset?.orb?.light));
|
|
109
|
+
dark.push(...sunVars(darkHex, customDark ? void 0 : preset?.orb?.dark));
|
|
110
|
+
const neutral = cfg.themeNeutral ?? "stone";
|
|
111
|
+
const ramp = NEUTRAL[neutral] ?? NEUTRAL.stone;
|
|
112
|
+
ramp.forEach((hex, i) => {
|
|
113
|
+
root.push(`--color-neutral-${NEUTRAL_STEPS[i]}:${hex}`);
|
|
114
|
+
root.push(`--ui-color-neutral-${NEUTRAL_STEPS[i]}:${hex}`);
|
|
115
|
+
});
|
|
116
|
+
const blobs = cfg.themeBlobs;
|
|
117
|
+
const blobVal = blobs ? BLOBS[blobs] : null;
|
|
118
|
+
if (blobVal !== null && blobVal !== void 0) root.push(`--jun-blob-opacity:${blobVal}`);
|
|
119
|
+
let css = "";
|
|
120
|
+
if (root.length) css += `html:root{${root.join(";")}}`;
|
|
121
|
+
if (dark.length) css += `html:root.dark{${dark.join(";")}}`;
|
|
122
|
+
return css;
|
|
123
|
+
}
|
|
124
|
+
export function useJunThemeApply() {
|
|
125
|
+
const { data: ssrCfg } = useNuxtData("jun-site-config");
|
|
126
|
+
const { config } = useJunSiteConfig();
|
|
127
|
+
const merged = computed(
|
|
128
|
+
() => Object.keys(config.value).length ? config.value : ssrCfg.value ?? {}
|
|
129
|
+
);
|
|
130
|
+
useHead({
|
|
131
|
+
style: [{ key: "jun-theme", textContent: computed(() => junThemeCss(merged.value)) }],
|
|
132
|
+
// The font preset class is SSR-stamped on <html>, so the first paint
|
|
133
|
+
// already uses the configured face — the faces themselves are static
|
|
134
|
+
// @font-face rules in jun.css, which is what lets @nuxt/fonts self-host
|
|
135
|
+
// them. A runtime-injected sheet would be invisible to it.
|
|
136
|
+
htmlAttrs: { class: computed(() => junFontClass(merged.value)) }
|
|
137
|
+
});
|
|
138
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { computed, ref } from "vue";
|
|
2
|
+
import { useJunColorMode } from "./useJunColorMode.js";
|
|
3
|
+
import { LERP_DURATION_MS, themeTarget } from "./useJunPalette.js";
|
|
4
|
+
const inFlight = ref(false);
|
|
5
|
+
const CHROME_EASE_MS = 450;
|
|
6
|
+
export function useJunThemeTransition() {
|
|
7
|
+
const colorMode = useJunColorMode();
|
|
8
|
+
const isDark = computed(() => colorMode.value === "dark");
|
|
9
|
+
function commit(next) {
|
|
10
|
+
const html = document.documentElement;
|
|
11
|
+
html.classList.add("theme-switching");
|
|
12
|
+
colorMode.preference = next;
|
|
13
|
+
window.setTimeout(() => {
|
|
14
|
+
html.classList.remove("theme-switching");
|
|
15
|
+
themeTarget.value = null;
|
|
16
|
+
inFlight.value = false;
|
|
17
|
+
}, CHROME_EASE_MS);
|
|
18
|
+
}
|
|
19
|
+
function toggle() {
|
|
20
|
+
if (inFlight.value) return;
|
|
21
|
+
const next = isDark.value ? "light" : "dark";
|
|
22
|
+
const reduce = typeof window !== "undefined" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;
|
|
23
|
+
if (reduce) {
|
|
24
|
+
colorMode.preference = next;
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
inFlight.value = true;
|
|
28
|
+
themeTarget.value = next;
|
|
29
|
+
window.setTimeout(() => commit(next), LERP_DURATION_MS);
|
|
30
|
+
}
|
|
31
|
+
return { toggle, isDark, inFlight: computed(() => inFlight.value) };
|
|
32
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface JunUploadResult {
|
|
2
|
+
/** Upload id — a content hash server-side, a temp UUID while offline-queued. */
|
|
3
|
+
id: string;
|
|
4
|
+
/** The document the file is attached to. */
|
|
5
|
+
docId: string;
|
|
6
|
+
filename: string;
|
|
7
|
+
mimeType: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function useJunUpload(): {
|
|
10
|
+
uploadTo: (docId: string, file: File) => Promise<JunUploadResult | null>;
|
|
11
|
+
imageFiles: (source: DataTransfer | FileList | null | undefined) => File[];
|
|
12
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { useAbracadabra, useOfflineUploadQueue, useToast } from "#imports";
|
|
2
|
+
export function useJunUpload() {
|
|
3
|
+
const abra = useAbracadabra();
|
|
4
|
+
const toast = useToast();
|
|
5
|
+
const { enqueue } = useOfflineUploadQueue();
|
|
6
|
+
async function uploadTo(docId, file) {
|
|
7
|
+
const mimeType = file.type || "application/octet-stream";
|
|
8
|
+
try {
|
|
9
|
+
const client = abra.client.value;
|
|
10
|
+
if (!client?.upload) throw new Error("offline");
|
|
11
|
+
const meta = await client.upload(docId, file);
|
|
12
|
+
return { id: meta.id, docId: meta.doc_id, filename: file.name, mimeType };
|
|
13
|
+
} catch (err) {
|
|
14
|
+
const status = err?.status;
|
|
15
|
+
if (status && status >= 400 && status < 500) {
|
|
16
|
+
toast.add({
|
|
17
|
+
title: "Upload failed",
|
|
18
|
+
description: err.message || "The server rejected this file.",
|
|
19
|
+
color: "error",
|
|
20
|
+
icon: "i-lucide-circle-x"
|
|
21
|
+
});
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
try {
|
|
25
|
+
const meta = await enqueue(docId, file);
|
|
26
|
+
toast.add({
|
|
27
|
+
title: "Upload queued",
|
|
28
|
+
description: "Will upload when you reconnect.",
|
|
29
|
+
color: "warning",
|
|
30
|
+
icon: "i-lucide-cloud-off"
|
|
31
|
+
});
|
|
32
|
+
return { id: meta.id, docId: meta.doc_id, filename: file.name, mimeType };
|
|
33
|
+
} catch {
|
|
34
|
+
toast.add({ title: "Upload failed", color: "error", icon: "i-lucide-circle-x" });
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
function imageFiles(source) {
|
|
40
|
+
const files = source instanceof DataTransfer ? source.files : source;
|
|
41
|
+
return files ? Array.from(files).filter((f) => f.type.startsWith("image/")) : [];
|
|
42
|
+
}
|
|
43
|
+
return { uploadTo, imageFiles };
|
|
44
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare function useJunViewingAccent(): {
|
|
2
|
+
getViewers: (itemId: string | undefined | null) => import("#imports").PresenceUser[];
|
|
3
|
+
accentStyle: (id: string | undefined | null) => Record<string, string> | undefined;
|
|
4
|
+
accentInsetStyle: (id: string | undefined | null) => Record<string, string> | undefined;
|
|
5
|
+
accentTitle: (id: string | undefined | null) => string | undefined;
|
|
6
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { useItemPresence } from "#imports";
|
|
2
|
+
export function useJunViewingAccent() {
|
|
3
|
+
const { getViewers } = useItemPresence();
|
|
4
|
+
const tint = (color, pct) => `color-mix(in oklab, ${color} ${pct}%, transparent)`;
|
|
5
|
+
function accentStyle(id) {
|
|
6
|
+
const color = getViewers(id)[0]?.color;
|
|
7
|
+
if (!color) return void 0;
|
|
8
|
+
return {
|
|
9
|
+
boxShadow: `0 0 0 1.5px ${tint(color, 35)}, 0 4px 28px -6px ${tint(color, 25)}`
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function accentInsetStyle(id) {
|
|
13
|
+
const color = getViewers(id)[0]?.color;
|
|
14
|
+
if (!color) return void 0;
|
|
15
|
+
return {
|
|
16
|
+
boxShadow: `inset 0 0 0 1.5px ${tint(color, 40)}, inset 0 0 32px -12px ${tint(color, 25)}`
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function accentTitle(id) {
|
|
20
|
+
const viewers = getViewers(id);
|
|
21
|
+
if (!viewers.length) return void 0;
|
|
22
|
+
const first = viewers[0].name;
|
|
23
|
+
if (viewers.length === 1) return `${first} is reading this`;
|
|
24
|
+
const others = viewers.length - 1;
|
|
25
|
+
return `${first} and ${others} ${others === 1 ? "other" : "others"} are reading this`;
|
|
26
|
+
}
|
|
27
|
+
return { getViewers, accentStyle, accentInsetStyle, accentTitle };
|
|
28
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { NuxtError } from '#app';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
error: NuxtError;
|
|
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<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import { clearError, useHead, useSeoMeta } from "#app";
|
|
4
|
+
import { useRoute } from "vue-router";
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
error: { type: Object, required: true }
|
|
7
|
+
});
|
|
8
|
+
const route = useRoute();
|
|
9
|
+
const is404 = computed(() => props.error.statusCode === 404);
|
|
10
|
+
useHead({ htmlAttrs: { lang: "en" } });
|
|
11
|
+
useSeoMeta({
|
|
12
|
+
title: () => is404.value ? "Page not found" : "Something went wrong",
|
|
13
|
+
// An error page must never enter an index, whatever its status code.
|
|
14
|
+
robots: "noindex"
|
|
15
|
+
});
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<UApp>
|
|
20
|
+
<div class="relative min-h-screen">
|
|
21
|
+
<!-- The plain theme base. The backdrop is a layout concern and the
|
|
22
|
+
layout is exactly what may not have mounted. -->
|
|
23
|
+
<div
|
|
24
|
+
aria-hidden="true"
|
|
25
|
+
class="jun-error-bg pointer-events-none fixed inset-0 -z-10"
|
|
26
|
+
/>
|
|
27
|
+
|
|
28
|
+
<UMain class="pt-16">
|
|
29
|
+
<JunNotFound
|
|
30
|
+
v-if="is404"
|
|
31
|
+
:path="route.fullPath"
|
|
32
|
+
/>
|
|
33
|
+
|
|
34
|
+
<div
|
|
35
|
+
v-else
|
|
36
|
+
class="flex min-h-[70vh] items-center justify-center px-4"
|
|
37
|
+
>
|
|
38
|
+
<div class="w-full max-w-md text-center">
|
|
39
|
+
<p
|
|
40
|
+
class="select-none text-[80px] leading-none font-semibold tracking-tight
|
|
41
|
+
text-black/10 dark:text-white/10"
|
|
42
|
+
aria-hidden="true"
|
|
43
|
+
>
|
|
44
|
+
{{ props.error.statusCode }}
|
|
45
|
+
</p>
|
|
46
|
+
<p class="mt-2 text-lg text-toned">
|
|
47
|
+
Something went wrong.
|
|
48
|
+
</p>
|
|
49
|
+
<p
|
|
50
|
+
v-if="props.error.statusMessage"
|
|
51
|
+
class="mt-1 font-mono text-xs text-dimmed"
|
|
52
|
+
>
|
|
53
|
+
{{ props.error.statusMessage }}
|
|
54
|
+
</p>
|
|
55
|
+
<UButton
|
|
56
|
+
icon="i-lucide-rotate-ccw"
|
|
57
|
+
color="neutral"
|
|
58
|
+
variant="ghost"
|
|
59
|
+
label="Try again"
|
|
60
|
+
class="mt-8"
|
|
61
|
+
@click="clearError({ redirect: '/' })"
|
|
62
|
+
/>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
</UMain>
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
<UToaster />
|
|
69
|
+
</UApp>
|
|
70
|
+
</template>
|
|
71
|
+
|
|
72
|
+
<style scoped>
|
|
73
|
+
.jun-error-bg{background:#f5f5f7}:root.dark .jun-error-bg{background:#0e0f11}
|
|
74
|
+
</style>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { NuxtError } from '#app';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
error: NuxtError;
|
|
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<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_36: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_36) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, resolveComponent } from "vue";
|
|
3
|
+
import { useEventListener } from "@vueuse/core";
|
|
4
|
+
import {
|
|
5
|
+
useJunBackdrop,
|
|
6
|
+
useJunCampfireSettings,
|
|
7
|
+
useJunEffectiveConfig,
|
|
8
|
+
useJunIntro,
|
|
9
|
+
useJunOptions,
|
|
10
|
+
useJunPresenceBroadcast,
|
|
11
|
+
useJunRouteGeoHeal,
|
|
12
|
+
useJunSiteConfigHeal,
|
|
13
|
+
useJunSlugAliasTracker,
|
|
14
|
+
useJunStudio,
|
|
15
|
+
useJunThemeApply
|
|
16
|
+
} from "#imports";
|
|
17
|
+
const { features, contextMenu } = useJunOptions();
|
|
18
|
+
const { kind: backdropKind } = useJunBackdrop();
|
|
19
|
+
const backdropComponent = computed(() => {
|
|
20
|
+
if (backdropKind.value === "shader") return resolveComponent("JunShaderBackdrop");
|
|
21
|
+
if (backdropKind.value === "blobs") return resolveComponent("JunBlobBackdrop");
|
|
22
|
+
return resolveComponent("JunPatternBackdrop");
|
|
23
|
+
});
|
|
24
|
+
const backdropProps = computed(
|
|
25
|
+
() => backdropKind.value === "shader" || backdropKind.value === "blobs" ? {} : { kind: backdropKind.value }
|
|
26
|
+
);
|
|
27
|
+
const { editing } = useJunStudio();
|
|
28
|
+
const campfireSettings = useJunCampfireSettings();
|
|
29
|
+
const campfireLit = computed(() => campfireSettings.value.enabled);
|
|
30
|
+
const { contentVeiled } = useJunIntro();
|
|
31
|
+
if (features.presence) useJunPresenceBroadcast();
|
|
32
|
+
const effectiveConfig = useJunEffectiveConfig();
|
|
33
|
+
const presenceBlobsLit = computed(() => {
|
|
34
|
+
if (!features.presence || !features.awareBlobs) return false;
|
|
35
|
+
const stored = effectiveConfig.value.presenceBlobs;
|
|
36
|
+
return typeof stored === "boolean" ? stored : true;
|
|
37
|
+
});
|
|
38
|
+
useJunSiteConfigHeal();
|
|
39
|
+
useJunSlugAliasTracker();
|
|
40
|
+
useJunRouteGeoHeal();
|
|
41
|
+
useJunThemeApply();
|
|
42
|
+
if (import.meta.client && contextMenu.suppressNative) {
|
|
43
|
+
useEventListener(
|
|
44
|
+
document,
|
|
45
|
+
"contextmenu",
|
|
46
|
+
(e) => {
|
|
47
|
+
if (editing.value) return;
|
|
48
|
+
if (!window.getSelection()?.isCollapsed) return;
|
|
49
|
+
e.preventDefault();
|
|
50
|
+
},
|
|
51
|
+
{ capture: true }
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
</script>
|
|
55
|
+
|
|
56
|
+
<template>
|
|
57
|
+
<div class="relative min-h-screen">
|
|
58
|
+
<!-- The persistent ambient backdrop. Always present; it quiets itself on
|
|
59
|
+
locked page types. The page base stays the plain theme background —
|
|
60
|
+
the backdrop paints ONLY the blobs. -->
|
|
61
|
+
<ClientOnly v-if="features.backdrop">
|
|
62
|
+
<!-- `<component :is>` with a RESOLVED component, not a name string.
|
|
63
|
+
`<JunShaderBackdrop v-if=…>` warns "Failed to resolve component" on
|
|
64
|
+
every render even when the branch is dead, because Vue's compiler
|
|
65
|
+
hoists `resolveComponent` above the `v-if` — and when the shader
|
|
66
|
+
backdrop is off, the module deliberately keeps that file out of the
|
|
67
|
+
component graph entirely, so it genuinely does not exist. -->
|
|
68
|
+
<component
|
|
69
|
+
:is="backdropComponent"
|
|
70
|
+
v-bind="backdropProps"
|
|
71
|
+
/>
|
|
72
|
+
<template #fallback>
|
|
73
|
+
<div
|
|
74
|
+
aria-hidden="true"
|
|
75
|
+
class="jun-fallback-bg pointer-events-none fixed inset-0 -z-10"
|
|
76
|
+
/>
|
|
77
|
+
</template>
|
|
78
|
+
</ClientOnly>
|
|
79
|
+
|
|
80
|
+
<!-- The cross-surface drag ghost, mounted once so every surface shares it. -->
|
|
81
|
+
<ClientOnly>
|
|
82
|
+
<ADocDragGhost />
|
|
83
|
+
</ClientOnly>
|
|
84
|
+
|
|
85
|
+
<!-- Page content — veiled until the intro reveals. The fade is opacity
|
|
86
|
+
only; never add a transform here. -->
|
|
87
|
+
<div
|
|
88
|
+
class="transition-opacity duration-700 ease-out"
|
|
89
|
+
:class="contentVeiled ? 'jun-content-veiled' : ''"
|
|
90
|
+
>
|
|
91
|
+
<JunShell>
|
|
92
|
+
<UMain>
|
|
93
|
+
<slot />
|
|
94
|
+
</UMain>
|
|
95
|
+
|
|
96
|
+
<JunFooter v-if="features.footer" />
|
|
97
|
+
</JunShell>
|
|
98
|
+
</div>
|
|
99
|
+
|
|
100
|
+
<!-- Outside the veiled div: visible before the intro reveal is fine. -->
|
|
101
|
+
<JunAnnouncement v-if="features.announcement" />
|
|
102
|
+
|
|
103
|
+
<JunIntro v-if="features.intro" />
|
|
104
|
+
|
|
105
|
+
<!-- Route-scoped ambient presence: peers on the SAME page as soft
|
|
106
|
+
colour-tinted blobs over whatever their cursor is on.
|
|
107
|
+
|
|
108
|
+
This was `<APresenceBlobs>` from `@abraca/nuxt`, and preferring the
|
|
109
|
+
platform's component to a local copy is normally the right instinct.
|
|
110
|
+
It is the wrong one HERE, and for a reason specific to this module
|
|
111
|
+
rather than a defect in that one: it anchors a peer's pointer to an
|
|
112
|
+
array of child INDICES from `#__nuxt`, which is exact when both peers
|
|
113
|
+
render the same tree and silently wrong when they do not. jun-is
|
|
114
|
+
renderers are owner-aware by design, so they never do — measured, the
|
|
115
|
+
same card is `[…,2,2,1,…]` for an owner and `[…,1,1,1,…]` for a
|
|
116
|
+
visitor. `JunPresenceBlobs` anchors on a key both peers agree on (an
|
|
117
|
+
explicit `data-jun-anchor`, else the enclosing link's href) and falls
|
|
118
|
+
back to viewport-normalised rather than to a mis-resolved element.
|
|
119
|
+
Its header has the full argument. -->
|
|
120
|
+
<JunPresenceBlobs v-if="presenceBlobsLit" />
|
|
121
|
+
|
|
122
|
+
<!-- Off by default. Named site-wide cursors showed everyone on every page
|
|
123
|
+
and read as surveillance rather than company. -->
|
|
124
|
+
<JunPeerCursors v-if="features.presence && features.peerCursors" />
|
|
125
|
+
|
|
126
|
+
<!-- The user center. Off by default — "too much for now" on the reference
|
|
127
|
+
site — but the gate is the EFFECTIVE setting, not the build flag, so an
|
|
128
|
+
owner can light the fire from the settings page without a redeploy.
|
|
129
|
+
`features.campfire` is what that setting defaults to. -->
|
|
130
|
+
<JunCampfirePresence v-if="features.presence && campfireLit" />
|
|
131
|
+
|
|
132
|
+
<JunSearch v-if="features.search" />
|
|
133
|
+
|
|
134
|
+
<!-- Every renderer's media taps route here. Mounted once. -->
|
|
135
|
+
<JunImagePopup v-if="features.lightbox" />
|
|
136
|
+
|
|
137
|
+
<!-- The audio element and its bar. Mounted HERE and nowhere else: inside
|
|
138
|
+
the festival renderer it would unmount on the first click through to
|
|
139
|
+
another page, and music that stops when you read something else is not
|
|
140
|
+
a player. Renders nothing until something is queued. -->
|
|
141
|
+
<ClientOnly v-if="features.player">
|
|
142
|
+
<JunFestivalPlayer />
|
|
143
|
+
</ClientOnly>
|
|
144
|
+
|
|
145
|
+
<!-- The document slideover — a PEEK, opened from any context menu and from
|
|
146
|
+
list clicks under `nodePanel: 'slideover'`. Mounted once, here, so it
|
|
147
|
+
survives the navigation it is deliberately avoiding. -->
|
|
148
|
+
<ClientOnly v-if="features.slideover">
|
|
149
|
+
<JunNodePanel />
|
|
150
|
+
</ClientOnly>
|
|
151
|
+
|
|
152
|
+
<!-- The owner studio: login modal and edit-mode dock. Invisible to visitors. -->
|
|
153
|
+
<template v-if="features.studio">
|
|
154
|
+
<JunStudioLogin />
|
|
155
|
+
<JunStudioBar />
|
|
156
|
+
</template>
|
|
157
|
+
</div>
|
|
158
|
+
</template>
|
|
159
|
+
|
|
160
|
+
<style scoped>
|
|
161
|
+
.jun-fallback-bg{background:#f5f5f7}:root.dark .jun-fallback-bg{background:#0e0f11}.jun-content-veiled{opacity:0}
|
|
162
|
+
</style>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_36: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_36) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -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;
|