@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,26 @@
|
|
|
1
|
+
interface NavigationItem {
|
|
2
|
+
id?: string;
|
|
3
|
+
name: string;
|
|
4
|
+
href: string;
|
|
5
|
+
type?: string;
|
|
6
|
+
icon?: string;
|
|
7
|
+
current: boolean;
|
|
8
|
+
}
|
|
9
|
+
type __VLS_Props = {
|
|
10
|
+
navigation: NavigationItem[];
|
|
11
|
+
};
|
|
12
|
+
declare var __VLS_9: {}, __VLS_83: {};
|
|
13
|
+
type __VLS_Slots = {} & {
|
|
14
|
+
logo?: (props: typeof __VLS_9) => any;
|
|
15
|
+
} & {
|
|
16
|
+
actions?: (props: typeof __VLS_83) => any;
|
|
17
|
+
};
|
|
18
|
+
declare const __VLS_base: 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>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -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,23 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useJunNodePanelHost } from "../composables/useJunNodePanel";
|
|
3
|
+
import { useJunStudio } from "../composables/useJunStudio";
|
|
4
|
+
const {
|
|
5
|
+
openNodeId,
|
|
6
|
+
openNodeLabel,
|
|
7
|
+
openNodeProvider,
|
|
8
|
+
isLoading,
|
|
9
|
+
closePanel
|
|
10
|
+
} = useJunNodePanelHost();
|
|
11
|
+
const { editing } = useJunStudio();
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<ANodePanel
|
|
16
|
+
:node-id="openNodeId"
|
|
17
|
+
:node-label="openNodeLabel"
|
|
18
|
+
:child-provider="openNodeProvider"
|
|
19
|
+
:is-loading="isLoading"
|
|
20
|
+
:editable="editing"
|
|
21
|
+
@close="closePanel"
|
|
22
|
+
/>
|
|
23
|
+
</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,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** The path that missed — seeds the "did you mean" suggestions. */
|
|
3
|
+
path?: string;
|
|
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,137 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, onMounted, onUnmounted, ref, watch } from "vue";
|
|
3
|
+
import { $fetch } from "ofetch";
|
|
4
|
+
import { useNuxtData } from "#app";
|
|
5
|
+
import { useJunOptions, junConfigStr } from "#imports";
|
|
6
|
+
const props = defineProps({
|
|
7
|
+
path: { type: String, required: false }
|
|
8
|
+
});
|
|
9
|
+
const { apiBase, features } = useJunOptions();
|
|
10
|
+
const { data: ssrConfig } = useNuxtData("jun-site-config");
|
|
11
|
+
const message = computed(
|
|
12
|
+
() => junConfigStr(ssrConfig.value?.notFoundText) ?? "Nothing grows here \u2014 yet."
|
|
13
|
+
);
|
|
14
|
+
const suggestions = ref([]);
|
|
15
|
+
const hits = ref([]);
|
|
16
|
+
const q = ref("");
|
|
17
|
+
async function search(term) {
|
|
18
|
+
if (!features.search) return [];
|
|
19
|
+
try {
|
|
20
|
+
const res = await $fetch(`${apiBase}/search`, { query: { q: term } });
|
|
21
|
+
return Array.isArray(res) ? res : [];
|
|
22
|
+
} catch {
|
|
23
|
+
return [];
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
onMounted(async () => {
|
|
27
|
+
const terms = (props.path ?? "").split(/[/\-_.\s]+/).map((s) => s.trim()).filter((s) => s.length >= 2).slice(0, 3);
|
|
28
|
+
for (const term of terms) {
|
|
29
|
+
const results = await search(term);
|
|
30
|
+
if (results.length) {
|
|
31
|
+
suggestions.value = results.slice(0, 4);
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
let timer = null;
|
|
37
|
+
watch(q, (value) => {
|
|
38
|
+
if (timer) clearTimeout(timer);
|
|
39
|
+
const query = value.trim();
|
|
40
|
+
if (query.length < 2) {
|
|
41
|
+
hits.value = [];
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
timer = setTimeout(async () => {
|
|
45
|
+
hits.value = (await search(query)).slice(0, 6);
|
|
46
|
+
}, 200);
|
|
47
|
+
});
|
|
48
|
+
onUnmounted(() => {
|
|
49
|
+
if (timer) clearTimeout(timer);
|
|
50
|
+
});
|
|
51
|
+
</script>
|
|
52
|
+
|
|
53
|
+
<template>
|
|
54
|
+
<div class="flex min-h-[70vh] items-center justify-center px-4">
|
|
55
|
+
<div class="w-full max-w-md text-center">
|
|
56
|
+
<p
|
|
57
|
+
class="select-none text-[80px] leading-none font-semibold tracking-tight
|
|
58
|
+
text-black/10 dark:text-white/10"
|
|
59
|
+
aria-hidden="true"
|
|
60
|
+
>
|
|
61
|
+
404
|
|
62
|
+
</p>
|
|
63
|
+
<p class="mt-2 text-lg text-toned">
|
|
64
|
+
{{ message }}
|
|
65
|
+
</p>
|
|
66
|
+
<p
|
|
67
|
+
v-if="props.path"
|
|
68
|
+
class="mt-1 truncate font-mono text-xs text-dimmed"
|
|
69
|
+
>
|
|
70
|
+
{{ props.path }}
|
|
71
|
+
</p>
|
|
72
|
+
|
|
73
|
+
<!-- Only when the site actually has search. Offering a box that cannot
|
|
74
|
+
search is worse than offering nothing. -->
|
|
75
|
+
<div
|
|
76
|
+
v-if="features.search"
|
|
77
|
+
class="mt-8"
|
|
78
|
+
>
|
|
79
|
+
<UInput
|
|
80
|
+
v-model="q"
|
|
81
|
+
icon="i-lucide-search"
|
|
82
|
+
size="lg"
|
|
83
|
+
variant="soft"
|
|
84
|
+
color="neutral"
|
|
85
|
+
placeholder="Search the site…"
|
|
86
|
+
class="w-full"
|
|
87
|
+
aria-label="Search the site"
|
|
88
|
+
/>
|
|
89
|
+
<ul
|
|
90
|
+
v-if="hits.length"
|
|
91
|
+
class="jun-card mt-2 overflow-hidden rounded-xl text-left"
|
|
92
|
+
>
|
|
93
|
+
<li
|
|
94
|
+
v-for="h in hits"
|
|
95
|
+
:key="h.id"
|
|
96
|
+
>
|
|
97
|
+
<NuxtLink
|
|
98
|
+
:to="h.href"
|
|
99
|
+
class="block px-4 py-2.5 text-sm transition-colors hover:bg-black/5 dark:hover:bg-white/10"
|
|
100
|
+
>
|
|
101
|
+
{{ h.title || "Untitled" }}
|
|
102
|
+
</NuxtLink>
|
|
103
|
+
</li>
|
|
104
|
+
</ul>
|
|
105
|
+
</div>
|
|
106
|
+
|
|
107
|
+
<div
|
|
108
|
+
v-if="suggestions.length && !q"
|
|
109
|
+
class="mt-6"
|
|
110
|
+
>
|
|
111
|
+
<p class="mb-2 text-[11px] uppercase tracking-wider text-dimmed">
|
|
112
|
+
Did you mean
|
|
113
|
+
</p>
|
|
114
|
+
<div class="flex flex-wrap justify-center gap-2">
|
|
115
|
+
<UButton
|
|
116
|
+
v-for="s in suggestions"
|
|
117
|
+
:key="s.id"
|
|
118
|
+
:to="s.href"
|
|
119
|
+
size="xs"
|
|
120
|
+
color="neutral"
|
|
121
|
+
variant="soft"
|
|
122
|
+
:label="s.title || 'Untitled'"
|
|
123
|
+
/>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
|
|
127
|
+
<UButton
|
|
128
|
+
to="/"
|
|
129
|
+
icon="i-lucide-arrow-left"
|
|
130
|
+
color="neutral"
|
|
131
|
+
variant="ghost"
|
|
132
|
+
label="Back home"
|
|
133
|
+
class="mt-8"
|
|
134
|
+
/>
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
</template>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** The path that missed — seeds the "did you mean" suggestions. */
|
|
3
|
+
path?: string;
|
|
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,25 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title: string;
|
|
3
|
+
subtitle?: string;
|
|
4
|
+
/** Owner edit mode: headline + subtitle become inline-editable. */
|
|
5
|
+
editable?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_1: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
right?: (props: typeof __VLS_1) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
rename: (title: string) => any;
|
|
13
|
+
"rename-subtitle": (subtitle: string) => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onRename?: ((title: string) => any) | undefined;
|
|
16
|
+
"onRename-subtitle"?: ((subtitle: string) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref } from "vue";
|
|
3
|
+
import { junMotion } from "#imports";
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
title: { type: String, required: true },
|
|
6
|
+
subtitle: { type: String, required: false },
|
|
7
|
+
editable: { type: Boolean, required: false }
|
|
8
|
+
});
|
|
9
|
+
const emit = defineEmits(["rename", "rename-subtitle"]);
|
|
10
|
+
const h1El = ref(null);
|
|
11
|
+
const subEl = ref(null);
|
|
12
|
+
function commit() {
|
|
13
|
+
const t = h1El.value?.textContent?.trim();
|
|
14
|
+
if (t && t !== props.title) {
|
|
15
|
+
emit("rename", t);
|
|
16
|
+
} else if (h1El.value) {
|
|
17
|
+
h1El.value.textContent = props.title;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function onKeydown(e) {
|
|
21
|
+
if (e.key === "Enter") {
|
|
22
|
+
e.preventDefault();
|
|
23
|
+
e.target.blur();
|
|
24
|
+
} else if (e.key === "Escape") {
|
|
25
|
+
if (h1El.value) h1El.value.textContent = props.title;
|
|
26
|
+
e.target.blur();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function commitSubtitle() {
|
|
30
|
+
const t = subEl.value?.textContent?.trim() ?? "";
|
|
31
|
+
if (t !== (props.subtitle ?? "")) emit("rename-subtitle", t);
|
|
32
|
+
else if (subEl.value) subEl.value.textContent = props.subtitle ?? "";
|
|
33
|
+
}
|
|
34
|
+
function onSubtitleKeydown(e) {
|
|
35
|
+
if (e.key === "Enter") {
|
|
36
|
+
e.preventDefault();
|
|
37
|
+
e.target.blur();
|
|
38
|
+
} else if (e.key === "Escape") {
|
|
39
|
+
if (subEl.value) subEl.value.textContent = props.subtitle ?? "";
|
|
40
|
+
e.target.blur();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
const editableRing = "cursor-text rounded-md px-1 -mx-1 transition-shadow hover:ring-1 hover:ring-black/15 dark:hover:ring-white/20 focus:ring-1 focus:ring-black/25 dark:focus:ring-white/30";
|
|
44
|
+
</script>
|
|
45
|
+
|
|
46
|
+
<template>
|
|
47
|
+
<header
|
|
48
|
+
v-motion="junMotion({
|
|
49
|
+
initial: { opacity: 0, y: 12 },
|
|
50
|
+
enter: { opacity: 1, y: 0, transition: { duration: 700 } }
|
|
51
|
+
})"
|
|
52
|
+
class="mb-8 flex items-end justify-between gap-4 sm:mb-10 sm:gap-6"
|
|
53
|
+
>
|
|
54
|
+
<div class="min-w-0">
|
|
55
|
+
<h1
|
|
56
|
+
ref="h1El"
|
|
57
|
+
:contenteditable="editable ? 'plaintext-only' : void 0"
|
|
58
|
+
spellcheck="false"
|
|
59
|
+
class="text-3xl leading-[1.05] font-semibold tracking-tight text-highlighted
|
|
60
|
+
outline-none sm:text-4xl lg:text-5xl"
|
|
61
|
+
:class="editable ? editableRing : ''"
|
|
62
|
+
@blur="editable && commit()"
|
|
63
|
+
@keydown="editable && onKeydown($event)"
|
|
64
|
+
>
|
|
65
|
+
{{ title }}
|
|
66
|
+
</h1>
|
|
67
|
+
<p
|
|
68
|
+
v-if="subtitle || editable"
|
|
69
|
+
ref="subEl"
|
|
70
|
+
:contenteditable="editable ? 'plaintext-only' : void 0"
|
|
71
|
+
spellcheck="false"
|
|
72
|
+
data-placeholder="Add a subtitle…"
|
|
73
|
+
class="jun-hero-subtitle mt-2 text-base font-light tracking-wider
|
|
74
|
+
text-(--ui-text-muted) outline-none sm:text-lg lg:text-xl"
|
|
75
|
+
:class="editable ? editableRing : ''"
|
|
76
|
+
@blur="editable && commitSubtitle()"
|
|
77
|
+
@keydown="editable && onSubtitleKeydown($event)"
|
|
78
|
+
>
|
|
79
|
+
{{ subtitle }}
|
|
80
|
+
</p>
|
|
81
|
+
</div>
|
|
82
|
+
<div class="hidden shrink-0 sm:block">
|
|
83
|
+
<slot name="right" />
|
|
84
|
+
</div>
|
|
85
|
+
</header>
|
|
86
|
+
</template>
|
|
87
|
+
|
|
88
|
+
<style scoped>
|
|
89
|
+
.jun-hero-subtitle[contenteditable]:empty:before{content:attr(data-placeholder);opacity:.35;pointer-events:none}
|
|
90
|
+
</style>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title: string;
|
|
3
|
+
subtitle?: string;
|
|
4
|
+
/** Owner edit mode: headline + subtitle become inline-editable. */
|
|
5
|
+
editable?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_1: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
right?: (props: typeof __VLS_1) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
rename: (title: string) => any;
|
|
13
|
+
"rename-subtitle": (subtitle: string) => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onRename?: ((title: string) => any) | undefined;
|
|
16
|
+
"onRename-subtitle"?: ((subtitle: string) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { JunBackdropKind } from '../types.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
kind: JunBackdropKind;
|
|
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,95 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, onBeforeUnmount, onMounted, ref } from "vue";
|
|
3
|
+
import { useDocTree, useSlugRoute } from "#imports";
|
|
4
|
+
import { useJunLayoutPolicy, useJunPageType } from "../composables/useJunOptions";
|
|
5
|
+
import { useJunPalette } from "../composables/useJunPalette";
|
|
6
|
+
const props = defineProps({
|
|
7
|
+
kind: { type: String, required: true }
|
|
8
|
+
});
|
|
9
|
+
const { isLockedType } = useJunLayoutPolicy();
|
|
10
|
+
const { resolveType } = useJunPageType();
|
|
11
|
+
const { docId } = useSlugRoute();
|
|
12
|
+
const { getEntry } = useDocTree();
|
|
13
|
+
const pageType = () => docId.value ? resolveType(getEntry(docId.value)?.type) : null;
|
|
14
|
+
const { blobA, fogA, fogB } = useJunPalette(pageType);
|
|
15
|
+
const quiet = computed(() => {
|
|
16
|
+
if (!docId.value) return false;
|
|
17
|
+
return isLockedType(resolveType(getEntry(docId.value)?.type));
|
|
18
|
+
});
|
|
19
|
+
const vars = computed(() => ({
|
|
20
|
+
"--jun-bd-a": blobA.value,
|
|
21
|
+
"--jun-bd-b": fogA.value,
|
|
22
|
+
"--jun-bd-c": fogB.value
|
|
23
|
+
}));
|
|
24
|
+
const parallaxEl = ref(null);
|
|
25
|
+
let praf = 0;
|
|
26
|
+
let target = { x: 0, y: 0 };
|
|
27
|
+
const cur = { x: 0, y: 0 };
|
|
28
|
+
const PARALLAX = 14;
|
|
29
|
+
const wantsParallax = computed(() => props.kind !== "noise" && props.kind !== "solid");
|
|
30
|
+
function onPointer(e) {
|
|
31
|
+
if (!wantsParallax.value) return;
|
|
32
|
+
target = {
|
|
33
|
+
x: (e.clientX / window.innerWidth - 0.5) * 2 * PARALLAX,
|
|
34
|
+
y: (e.clientY / window.innerHeight - 0.5) * 2 * PARALLAX
|
|
35
|
+
};
|
|
36
|
+
if (!praf) praf = requestAnimationFrame(parallaxLoop);
|
|
37
|
+
}
|
|
38
|
+
function parallaxLoop() {
|
|
39
|
+
cur.x += (target.x - cur.x) * 0.06;
|
|
40
|
+
cur.y += (target.y - cur.y) * 0.06;
|
|
41
|
+
if (parallaxEl.value) {
|
|
42
|
+
parallaxEl.value.style.setProperty("--px", `${cur.x.toFixed(2)}px`);
|
|
43
|
+
parallaxEl.value.style.setProperty("--py", `${cur.y.toFixed(2)}px`);
|
|
44
|
+
}
|
|
45
|
+
if (Math.abs(target.x - cur.x) > 0.1 || Math.abs(target.y - cur.y) > 0.1) {
|
|
46
|
+
praf = requestAnimationFrame(parallaxLoop);
|
|
47
|
+
} else {
|
|
48
|
+
praf = 0;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
const hidden = ref(false);
|
|
52
|
+
function onVis() {
|
|
53
|
+
hidden.value = typeof document !== "undefined" && document.hidden;
|
|
54
|
+
}
|
|
55
|
+
onMounted(() => {
|
|
56
|
+
onVis();
|
|
57
|
+
document.addEventListener("visibilitychange", onVis);
|
|
58
|
+
window.addEventListener("pointermove", onPointer, { passive: true });
|
|
59
|
+
});
|
|
60
|
+
onBeforeUnmount(() => {
|
|
61
|
+
document.removeEventListener("visibilitychange", onVis);
|
|
62
|
+
window.removeEventListener("pointermove", onPointer);
|
|
63
|
+
if (praf) cancelAnimationFrame(praf);
|
|
64
|
+
});
|
|
65
|
+
</script>
|
|
66
|
+
|
|
67
|
+
<template>
|
|
68
|
+
<div
|
|
69
|
+
aria-hidden="true"
|
|
70
|
+
class="jun-pattern-backdrop pointer-events-none fixed inset-0 -z-10 overflow-hidden"
|
|
71
|
+
:class="[`is-${props.kind}`, { 'is-paused': hidden, 'is-quiet': quiet }]"
|
|
72
|
+
:style="vars"
|
|
73
|
+
>
|
|
74
|
+
<!-- The site's background image, when it has one. FIRST child, so every
|
|
75
|
+
kind that multiplies or screens does it against the photograph — see
|
|
76
|
+
the component's own header. -->
|
|
77
|
+
<JunBackgroundPhoto />
|
|
78
|
+
|
|
79
|
+
<div
|
|
80
|
+
ref="parallaxEl"
|
|
81
|
+
class="pattern-parallax"
|
|
82
|
+
>
|
|
83
|
+
<!-- Three stacked layers. Each kind uses as many as it needs and leaves
|
|
84
|
+
the rest transparent, so there is never a layer count to keep in
|
|
85
|
+
step between the script and the styles. -->
|
|
86
|
+
<div class="layer layer--1" />
|
|
87
|
+
<div class="layer layer--2" />
|
|
88
|
+
<div class="layer layer--3" />
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
</template>
|
|
92
|
+
|
|
93
|
+
<style scoped>
|
|
94
|
+
.jun-pattern-backdrop{background:#f5f5f7}:root.dark .jun-pattern-backdrop{background:#0e0f11}.pattern-parallax{inset:-3%;opacity:var(--jun-blob-opacity,1);position:absolute;transform:translate3d(var(--px,0),var(--py,0),0);transition:opacity .6s ease;will-change:transform}.is-quiet .pattern-parallax{opacity:0}.layer{inset:0;position:absolute;will-change:transform,opacity}.is-paused .layer{animation-play-state:paused}.is-dots .layer--1{animation:pattern-drift-dots 60s linear infinite;background-image:radial-gradient(circle at center,var(--jun-bd-a) 1.1px,transparent 1.2px);background-size:26px 26px;opacity:.18}.is-dots .layer--2{background:radial-gradient(ellipse 70% 60% at 50% 0,var(--jun-bd-c) 0,transparent 70%);opacity:.22}:root.dark .is-dots .layer--1{opacity:.4}:root.dark .is-dots .layer--2{opacity:.34}.is-grid .layer--1{animation:pattern-drift-grid 90s linear infinite;background-size:64px 64px;-webkit-mask-image:radial-gradient(ellipse 80% 70% at 50% 40%,#000 20%,transparent 78%);mask-image:radial-gradient(ellipse 80% 70% at 50% 40%,#000 20%,transparent 78%);opacity:.13}.is-grid .layer--1,.is-grid .layer--2{background-image:linear-gradient(to right,var(--jun-bd-a) 1px,transparent 1px),linear-gradient(to bottom,var(--jun-bd-a) 1px,transparent 1px)}.is-grid .layer--2{background-size:16px 16px;-webkit-mask-image:radial-gradient(ellipse 60% 50% at 50% 40%,#000 10%,transparent 70%);mask-image:radial-gradient(ellipse 60% 50% at 50% 40%,#000 10%,transparent 70%);opacity:.06}:root.dark .is-grid .layer--1{opacity:.32}:root.dark .is-grid .layer--2{opacity:.14}.is-aurora .layer--1{animation:pattern-aurora-a 38s ease-in-out infinite;background:linear-gradient(115deg,transparent 12%,var(--jun-bd-a) 38%,transparent 62%);mix-blend-mode:multiply;opacity:.3}.is-aurora .layer--2{animation:pattern-aurora-b 52s ease-in-out infinite;background:linear-gradient(-70deg,transparent 20%,var(--jun-bd-c) 50%,transparent 80%);mix-blend-mode:multiply;opacity:.26}:root.dark .is-aurora .layer--1,:root.dark .is-aurora .layer--2{mix-blend-mode:screen;opacity:.55}.is-mesh .layer--1{animation:pattern-mesh-a 44s ease-in-out infinite;background:radial-gradient(closest-side at 12% 18%,var(--jun-bd-a) 0,transparent 70%),radial-gradient(closest-side at 88% 12%,var(--jun-bd-c) 0,transparent 72%);background-repeat:no-repeat;background-size:70% 70%,65% 65%;mix-blend-mode:multiply;opacity:.5}.is-mesh .layer--2{animation:pattern-mesh-b 57s ease-in-out infinite;background:radial-gradient(closest-side at 20% 88%,var(--jun-bd-b) 0,transparent 72%),radial-gradient(closest-side at 82% 82%,var(--jun-bd-a) 0,transparent 68%);background-repeat:no-repeat;background-size:68% 68%,62% 62%;mix-blend-mode:multiply;opacity:.42}:root.dark .is-mesh .layer--1{mix-blend-mode:screen;opacity:.62}:root.dark .is-mesh .layer--2{mix-blend-mode:screen;opacity:.55}.is-rings .layer--1{animation:pattern-rings 26s ease-out infinite;background:repeating-radial-gradient(circle at 50% 42%,var(--jun-bd-a) 0 1px,transparent 1px 84px);-webkit-mask-image:radial-gradient(circle at 50% 42%,#000 5%,transparent 72%);mask-image:radial-gradient(circle at 50% 42%,#000 5%,transparent 72%);opacity:.16}.is-rings .layer--2{background:radial-gradient(circle at 50% 42%,var(--jun-bd-c) 0,transparent 55%);mix-blend-mode:multiply;opacity:.3}:root.dark .is-rings .layer--1{--jun-ring-o:0.34}:root.dark .is-rings .layer--2{mix-blend-mode:screen;opacity:.4}.is-waves .layer--1{animation:pattern-wave-a 30s ease-in-out infinite;background:radial-gradient(ellipse 120% 60% at 50% 118%,var(--jun-bd-a) 0,transparent 70%);mix-blend-mode:multiply;opacity:.34}.is-waves .layer--2{animation:pattern-wave-b 43s ease-in-out infinite;background:radial-gradient(ellipse 150% 55% at 30% 126%,var(--jun-bd-c) 0,transparent 68%);mix-blend-mode:multiply;opacity:.3}.is-waves .layer--3{animation:pattern-wave-c 37s ease-in-out infinite;background:radial-gradient(ellipse 100% 70% at 78% 132%,var(--jun-bd-b) 0,transparent 65%);mix-blend-mode:multiply;opacity:.24}:root.dark .is-waves .layer--1,:root.dark .is-waves .layer--2,:root.dark .is-waves .layer--3{mix-blend-mode:screen;opacity:.56}.is-noise .layer--1{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='a'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='3' type='fractalNoise'/%3E%3C/filter%3E%3Cpath d='M0 0h120v120H0z' filter='url(%23a)' opacity='.5'/%3E%3C/svg%3E");opacity:.055}.is-noise .layer--2{background:radial-gradient(ellipse 90% 70% at 50% 0,var(--jun-bd-c) 0,transparent 72%);mix-blend-mode:multiply;opacity:.28}:root.dark .is-noise .layer--1{opacity:.13}:root.dark .is-noise .layer--2{mix-blend-mode:screen;opacity:.36}@keyframes pattern-drift-dots{0%{transform:translate(0)}to{transform:translate(26px,26px)}}@keyframes pattern-drift-grid{0%{transform:translate(0)}to{transform:translate(64px)}}@keyframes pattern-aurora-a{0%,to{transform:translate(-6%,-4%) scale(1.15)}50%{transform:translate(8%,6%) scale(1.3)}}@keyframes pattern-aurora-b{0%,to{transform:translate(7%,5%) scale(1.25)}50%{transform:translate(-8%,-6%) scale(1.1)}}@keyframes pattern-mesh-a{0%,to{transform:translate(0) scale(1)}50%{transform:translate(5%,4%) scale(1.12)}}@keyframes pattern-mesh-b{0%,to{transform:translate(0) scale(1.06)}50%{transform:translate(-6%,-3%) scale(.96)}}@keyframes pattern-rings{0%{opacity:var(--jun-ring-o,.16);transform:scale(1)}to{opacity:0;transform:scale(1.9)}}@keyframes pattern-wave-a{0%,to{transform:translate(0)}50%{transform:translate(-4%,-3%)}}@keyframes pattern-wave-b{0%,to{transform:translate(0)}50%{transform:translate(5%,-2%)}}@keyframes pattern-wave-c{0%,to{transform:translate(0)}50%{transform:translate(-3%,-4%)}}@media (prefers-reduced-motion:reduce){.layer{animation:none!important}.pattern-parallax{transform:none!important}}
|
|
95
|
+
</style>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { JunBackdropKind } from '../types.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
kind: JunBackdropKind;
|
|
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,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,123 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { onBeforeUnmount, onMounted, ref } from "vue";
|
|
3
|
+
import { useAAEphemeral } from "#imports";
|
|
4
|
+
const { peers, setLocal } = useAAEphemeral("site:pointer");
|
|
5
|
+
const EASE = 0.22;
|
|
6
|
+
const TRAIL_LEN = 6;
|
|
7
|
+
let raf = 0;
|
|
8
|
+
let pending = null;
|
|
9
|
+
function flush() {
|
|
10
|
+
raf = 0;
|
|
11
|
+
if (pending) setLocal(pending);
|
|
12
|
+
}
|
|
13
|
+
function onMove(e) {
|
|
14
|
+
pending = {
|
|
15
|
+
x: e.clientX / window.innerWidth,
|
|
16
|
+
y: e.clientY / window.innerHeight,
|
|
17
|
+
vis: true
|
|
18
|
+
};
|
|
19
|
+
if (!raf) raf = requestAnimationFrame(flush);
|
|
20
|
+
}
|
|
21
|
+
function onLeave() {
|
|
22
|
+
pending = { x: 0, y: 0, vis: false };
|
|
23
|
+
if (!raf) raf = requestAnimationFrame(flush);
|
|
24
|
+
}
|
|
25
|
+
const smooth = /* @__PURE__ */ new Map();
|
|
26
|
+
const rendered = ref([]);
|
|
27
|
+
let frame = 0;
|
|
28
|
+
function loop() {
|
|
29
|
+
const w = window.innerWidth;
|
|
30
|
+
const h = window.innerHeight;
|
|
31
|
+
const live = peers.value.filter((p) => p.value?.vis);
|
|
32
|
+
const seen = /* @__PURE__ */ new Set();
|
|
33
|
+
const out = [];
|
|
34
|
+
for (const p of live) {
|
|
35
|
+
seen.add(p.clientId);
|
|
36
|
+
const tx = p.value.x * w;
|
|
37
|
+
const ty = p.value.y * h;
|
|
38
|
+
let s = smooth.get(p.clientId);
|
|
39
|
+
if (!s) {
|
|
40
|
+
s = { x: tx, y: ty, trail: [] };
|
|
41
|
+
smooth.set(p.clientId, s);
|
|
42
|
+
}
|
|
43
|
+
s.x += (tx - s.x) * EASE;
|
|
44
|
+
s.y += (ty - s.y) * EASE;
|
|
45
|
+
s.trail.push({ x: s.x, y: s.y });
|
|
46
|
+
if (s.trail.length > TRAIL_LEN) s.trail.shift();
|
|
47
|
+
const trailLen = s.trail.length;
|
|
48
|
+
out.push({
|
|
49
|
+
clientId: p.clientId,
|
|
50
|
+
name: p.user?.name || "traveller",
|
|
51
|
+
color: p.user?.color || "var(--ui-text-muted)",
|
|
52
|
+
x: s.x,
|
|
53
|
+
y: s.y,
|
|
54
|
+
trail: s.trail.map((pt, i) => ({
|
|
55
|
+
x: pt.x,
|
|
56
|
+
y: pt.y,
|
|
57
|
+
o: (i + 1) / trailLen * 0.4
|
|
58
|
+
}))
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
for (const id of [...smooth.keys()]) if (!seen.has(id)) smooth.delete(id);
|
|
62
|
+
rendered.value = out;
|
|
63
|
+
frame = requestAnimationFrame(loop);
|
|
64
|
+
}
|
|
65
|
+
onMounted(() => {
|
|
66
|
+
window.addEventListener("pointermove", onMove, { passive: true });
|
|
67
|
+
document.addEventListener("pointerleave", onLeave);
|
|
68
|
+
frame = requestAnimationFrame(loop);
|
|
69
|
+
});
|
|
70
|
+
onBeforeUnmount(() => {
|
|
71
|
+
window.removeEventListener("pointermove", onMove);
|
|
72
|
+
document.removeEventListener("pointerleave", onLeave);
|
|
73
|
+
if (raf) cancelAnimationFrame(raf);
|
|
74
|
+
if (frame) cancelAnimationFrame(frame);
|
|
75
|
+
setLocal(null);
|
|
76
|
+
});
|
|
77
|
+
</script>
|
|
78
|
+
|
|
79
|
+
<template>
|
|
80
|
+
<div
|
|
81
|
+
class="jun-cursors"
|
|
82
|
+
aria-hidden="true"
|
|
83
|
+
>
|
|
84
|
+
<template
|
|
85
|
+
v-for="c in rendered"
|
|
86
|
+
:key="c.clientId"
|
|
87
|
+
>
|
|
88
|
+
<span
|
|
89
|
+
v-for="(t, i) in c.trail"
|
|
90
|
+
:key="i"
|
|
91
|
+
class="jun-cursors__trail"
|
|
92
|
+
:style="{ left: `${t.x}px`, top: `${t.y}px`, background: c.color, opacity: t.o }"
|
|
93
|
+
/>
|
|
94
|
+
<div
|
|
95
|
+
class="jun-cursors__cursor"
|
|
96
|
+
:style="{ left: `${c.x}px`, top: `${c.y}px`, color: c.color }"
|
|
97
|
+
>
|
|
98
|
+
<svg
|
|
99
|
+
width="18"
|
|
100
|
+
height="20"
|
|
101
|
+
viewBox="0 0 12 16"
|
|
102
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
103
|
+
>
|
|
104
|
+
<path
|
|
105
|
+
d="M0 0 L0 12 L3.5 8.5 L5.5 13.5 L7 13 L5 8 L9 8 Z"
|
|
106
|
+
fill="currentColor"
|
|
107
|
+
stroke="white"
|
|
108
|
+
stroke-width="0.6"
|
|
109
|
+
stroke-linejoin="round"
|
|
110
|
+
/>
|
|
111
|
+
</svg>
|
|
112
|
+
<span
|
|
113
|
+
class="jun-cursors__label"
|
|
114
|
+
:style="{ background: c.color }"
|
|
115
|
+
>{{ c.name }}</span>
|
|
116
|
+
</div>
|
|
117
|
+
</template>
|
|
118
|
+
</div>
|
|
119
|
+
</template>
|
|
120
|
+
|
|
121
|
+
<style scoped>
|
|
122
|
+
.jun-cursors{inset:0;overflow:hidden;pointer-events:none;position:fixed;z-index:45}.jun-cursors__trail{border-radius:999px;filter:blur(1px);height:7px;position:absolute;transform:translate(-50%,-50%);width:7px}.jun-cursors__cursor{align-items:flex-start;display:flex;gap:.15rem;position:absolute;transform:translate(-2px,-2px);will-change:left,top}.jun-cursors__label{border-radius:.25rem .5rem .5rem .5rem;box-shadow:0 1px 3px rgba(0,0,0,.22);color:#fff;font-size:.6875rem;font-weight:500;line-height:1;margin-left:-2px;margin-top:11px;padding:.2rem .45rem;text-shadow:0 1px 1px rgba(0,0,0,.25);white-space:nowrap}
|
|
123
|
+
</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;
|