@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,422 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { nextTick, ref, watch } from "vue";
|
|
3
|
+
import { useEventListener } from "@vueuse/core";
|
|
4
|
+
import { useFileBlobStore, useJunImagePopup } from "#imports";
|
|
5
|
+
const { state, closeImagePopup } = useJunImagePopup();
|
|
6
|
+
const { getBlobUrl, getThumbUrl } = useFileBlobStore();
|
|
7
|
+
const visible = ref(false);
|
|
8
|
+
const backdropOn = ref(false);
|
|
9
|
+
const showChrome = ref(false);
|
|
10
|
+
const kind = ref("image");
|
|
11
|
+
const src = ref(null);
|
|
12
|
+
const alt = ref("");
|
|
13
|
+
const index = ref(0);
|
|
14
|
+
const count = ref(0);
|
|
15
|
+
const morphEl = ref(null);
|
|
16
|
+
const stageStyle = ref({});
|
|
17
|
+
let openToken = 0;
|
|
18
|
+
let closingInternally = false;
|
|
19
|
+
let lastState = null;
|
|
20
|
+
let currentAnim = null;
|
|
21
|
+
const reducedMotion = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
22
|
+
const MORPH_MS = () => reducedMotion() ? 0 : 420;
|
|
23
|
+
const STEP_MS = () => reducedMotion() ? 0 : 320;
|
|
24
|
+
const MORPH_EASE = "cubic-bezier(0.22, 1, 0.36, 1)";
|
|
25
|
+
const STAGE_RADIUS = "0.75rem";
|
|
26
|
+
function kindOf(item) {
|
|
27
|
+
return item.mime?.startsWith("video/") ? "video" : "image";
|
|
28
|
+
}
|
|
29
|
+
async function resolveSrc(item) {
|
|
30
|
+
if (item.url) return item.url;
|
|
31
|
+
if (item.docId && item.uploadId) {
|
|
32
|
+
try {
|
|
33
|
+
return await getBlobUrl(item.docId, item.uploadId);
|
|
34
|
+
} catch {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
async function resolveThumbSrc(item) {
|
|
41
|
+
if (item.url || !item.docId || !item.uploadId) return null;
|
|
42
|
+
try {
|
|
43
|
+
return await getThumbUrl(item.docId, item.uploadId, { w: 1280 });
|
|
44
|
+
} catch {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function imgReady(img) {
|
|
49
|
+
if (img.complete && img.naturalWidth > 0) return Promise.resolve();
|
|
50
|
+
return new Promise((resolve) => {
|
|
51
|
+
const done = () => resolve();
|
|
52
|
+
img.addEventListener("load", done, { once: true });
|
|
53
|
+
img.addEventListener("error", done, { once: true });
|
|
54
|
+
setTimeout(done, 3e3);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
function preload(url) {
|
|
58
|
+
return new Promise((resolve) => {
|
|
59
|
+
const im = new Image();
|
|
60
|
+
im.onload = () => resolve({ w: im.naturalWidth, h: im.naturalHeight });
|
|
61
|
+
im.onerror = () => resolve(null);
|
|
62
|
+
im.src = url;
|
|
63
|
+
window.setTimeout(() => resolve(null), 4e3);
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
function toDocRect(r) {
|
|
67
|
+
return {
|
|
68
|
+
left: r.left + window.scrollX,
|
|
69
|
+
top: r.top + window.scrollY,
|
|
70
|
+
width: r.width,
|
|
71
|
+
height: r.height
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function targetRect(nw, nh) {
|
|
75
|
+
const vw = window.innerWidth;
|
|
76
|
+
const vh = window.innerHeight;
|
|
77
|
+
const maxW = Math.min(vw * 0.92, 1200);
|
|
78
|
+
const maxH = vh * 0.86;
|
|
79
|
+
const scale = Math.min(maxW / (nw || 1), maxH / (nh || 1), 2);
|
|
80
|
+
const w = (nw || 1) * scale;
|
|
81
|
+
const h = (nh || 1) * scale;
|
|
82
|
+
return {
|
|
83
|
+
left: (vw - w) / 2 + window.scrollX,
|
|
84
|
+
top: (vh - h) / 2 + window.scrollY,
|
|
85
|
+
width: w,
|
|
86
|
+
height: h
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
function rectStyles(r, radius) {
|
|
90
|
+
return {
|
|
91
|
+
left: `${r.left}px`,
|
|
92
|
+
top: `${r.top}px`,
|
|
93
|
+
width: `${r.width}px`,
|
|
94
|
+
height: `${r.height}px`,
|
|
95
|
+
borderRadius: radius
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
function animateRect(el, from, fromRadius, to, toRadius) {
|
|
99
|
+
currentAnim?.cancel();
|
|
100
|
+
if (MORPH_MS() === 0) return Promise.resolve();
|
|
101
|
+
currentAnim = el.animate(
|
|
102
|
+
[rectStyles(from, fromRadius), rectStyles(to, toRadius)],
|
|
103
|
+
{ duration: MORPH_MS(), easing: MORPH_EASE }
|
|
104
|
+
);
|
|
105
|
+
return currentAnim.finished.catch(() => {
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
function sourceRadius(s) {
|
|
109
|
+
return s?.sourceEl ? getComputedStyle(s.sourceEl).borderRadius || "0px" : "0px";
|
|
110
|
+
}
|
|
111
|
+
watch(state, (s) => {
|
|
112
|
+
if (s) {
|
|
113
|
+
const isStep = visible.value && lastState?.items === s.items && lastState?.sourceEl === s.sourceEl;
|
|
114
|
+
lastState = s;
|
|
115
|
+
if (!isStep) void openSeq(s);
|
|
116
|
+
} else if (visible.value && !closingInternally) {
|
|
117
|
+
visible.value = false;
|
|
118
|
+
backdropOn.value = false;
|
|
119
|
+
showChrome.value = false;
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
async function openSeq(s) {
|
|
123
|
+
const my = ++openToken;
|
|
124
|
+
const item = s.items[s.index];
|
|
125
|
+
index.value = s.index;
|
|
126
|
+
count.value = s.items.length;
|
|
127
|
+
kind.value = kindOf(item);
|
|
128
|
+
alt.value = item.alt ?? "";
|
|
129
|
+
const instant = kind.value === "image" ? s.sourceEl?.currentSrc || null : null;
|
|
130
|
+
src.value = instant ?? await resolveSrc(item);
|
|
131
|
+
if (my !== openToken) return;
|
|
132
|
+
const srcRadius = sourceRadius(s);
|
|
133
|
+
const fromRect = s.sourceRect ? toDocRect(s.sourceRect) : null;
|
|
134
|
+
stageStyle.value = fromRect ? rectStyles(fromRect, srcRadius) : {};
|
|
135
|
+
visible.value = true;
|
|
136
|
+
await nextTick();
|
|
137
|
+
if (my !== openToken) return;
|
|
138
|
+
backdropOn.value = true;
|
|
139
|
+
const el = morphEl.value;
|
|
140
|
+
if (kind.value === "image" && el && src.value) {
|
|
141
|
+
await imgReady(el);
|
|
142
|
+
if (my !== openToken) return;
|
|
143
|
+
const target = targetRect(el.naturalWidth, el.naturalHeight);
|
|
144
|
+
stageStyle.value = rectStyles(target, STAGE_RADIUS);
|
|
145
|
+
if (fromRect) await animateRect(el, fromRect, srcRadius, target, STAGE_RADIUS);
|
|
146
|
+
if (my !== openToken) return;
|
|
147
|
+
if (instant) {
|
|
148
|
+
const full = await resolveSrc(item);
|
|
149
|
+
if (my === openToken && full && full !== src.value) src.value = full;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
if (my !== openToken) return;
|
|
153
|
+
showChrome.value = true;
|
|
154
|
+
}
|
|
155
|
+
async function dismiss() {
|
|
156
|
+
if (!visible.value || closingInternally) return;
|
|
157
|
+
closingInternally = true;
|
|
158
|
+
const my = ++openToken;
|
|
159
|
+
showChrome.value = false;
|
|
160
|
+
backdropOn.value = false;
|
|
161
|
+
const el = morphEl.value;
|
|
162
|
+
const s = lastState;
|
|
163
|
+
const source = s?.sourceEl;
|
|
164
|
+
if (kind.value === "image" && el) {
|
|
165
|
+
const from = toDocRect(el.getBoundingClientRect());
|
|
166
|
+
const backView = source?.isConnected ? source.getBoundingClientRect() : null;
|
|
167
|
+
const usable = backView && backView.width > 4 && backView.height > 4;
|
|
168
|
+
if (usable && backView && MORPH_MS() > 0) {
|
|
169
|
+
const back = toDocRect(backView);
|
|
170
|
+
const radius = sourceRadius(s);
|
|
171
|
+
stageStyle.value = rectStyles(back, radius);
|
|
172
|
+
await animateRect(el, from, STAGE_RADIUS, back, radius);
|
|
173
|
+
} else if (MORPH_MS() > 0) {
|
|
174
|
+
await el.animate(
|
|
175
|
+
[{ opacity: 1, transform: "scale(1)" }, { opacity: 0, transform: "scale(0.96)" }],
|
|
176
|
+
{ duration: 200, easing: "ease-out", fill: "forwards" }
|
|
177
|
+
).finished.catch(() => {
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
if (my !== openToken) {
|
|
182
|
+
closingInternally = false;
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
visible.value = false;
|
|
186
|
+
closeImagePopup();
|
|
187
|
+
closingInternally = false;
|
|
188
|
+
}
|
|
189
|
+
let stepToken = 0;
|
|
190
|
+
let stepping = false;
|
|
191
|
+
function departingGhost(el, from, to, driftPx) {
|
|
192
|
+
const ghost = el.cloneNode(true);
|
|
193
|
+
ghost.style.pointerEvents = "none";
|
|
194
|
+
Object.assign(ghost.style, rectStyles(from, STAGE_RADIUS));
|
|
195
|
+
document.body.appendChild(ghost);
|
|
196
|
+
ghost.animate(
|
|
197
|
+
[
|
|
198
|
+
{ ...rectStyles(from, STAGE_RADIUS), opacity: "1", transform: "translateX(0)" },
|
|
199
|
+
{ ...rectStyles(to, STAGE_RADIUS), opacity: "0", transform: `translateX(${-driftPx}px)` }
|
|
200
|
+
],
|
|
201
|
+
{ duration: STEP_MS(), easing: MORPH_EASE, fill: "forwards" }
|
|
202
|
+
).finished.catch(() => {
|
|
203
|
+
}).finally(() => ghost.remove());
|
|
204
|
+
}
|
|
205
|
+
async function step(delta) {
|
|
206
|
+
const s = state.value;
|
|
207
|
+
if (!s || s.items.length < 2 || closingInternally || stepping) return;
|
|
208
|
+
stepping = true;
|
|
209
|
+
const my = ++stepToken;
|
|
210
|
+
try {
|
|
211
|
+
const ni = (s.index + delta + s.items.length) % s.items.length;
|
|
212
|
+
const item = s.items[ni];
|
|
213
|
+
const nextKind = kindOf(item);
|
|
214
|
+
const thumb = nextKind === "image" ? await resolveThumbSrc(item) : null;
|
|
215
|
+
if (my !== stepToken) return;
|
|
216
|
+
const nextSrc = thumb ?? await resolveSrc(item);
|
|
217
|
+
if (my !== stepToken) return;
|
|
218
|
+
let natural = null;
|
|
219
|
+
if (nextKind === "image" && nextSrc) {
|
|
220
|
+
natural = await preload(nextSrc);
|
|
221
|
+
if (my !== stepToken) return;
|
|
222
|
+
}
|
|
223
|
+
const el = morphEl.value;
|
|
224
|
+
const fromRect = el ? toDocRect(el.getBoundingClientRect()) : null;
|
|
225
|
+
const toRect = natural ? targetRect(natural.w, natural.h) : fromRect;
|
|
226
|
+
const drift = Math.min(72, window.innerWidth * 0.06) * delta;
|
|
227
|
+
const animate = STEP_MS() > 0 && !!el && !!fromRect && !!toRect && kind.value === "image";
|
|
228
|
+
if (animate) departingGhost(el, fromRect, toRect, drift);
|
|
229
|
+
state.value = { ...s, index: ni };
|
|
230
|
+
lastState = state.value;
|
|
231
|
+
index.value = ni;
|
|
232
|
+
kind.value = nextKind;
|
|
233
|
+
alt.value = item.alt ?? "";
|
|
234
|
+
src.value = nextSrc;
|
|
235
|
+
if (toRect) stageStyle.value = rectStyles(toRect, STAGE_RADIUS);
|
|
236
|
+
await nextTick();
|
|
237
|
+
if (my !== stepToken) return;
|
|
238
|
+
const next = morphEl.value;
|
|
239
|
+
if (animate && next && nextSrc) {
|
|
240
|
+
await next.animate(
|
|
241
|
+
[
|
|
242
|
+
{ ...rectStyles(fromRect, STAGE_RADIUS), opacity: "0", transform: `translateX(${drift}px)` },
|
|
243
|
+
{ ...rectStyles(toRect, STAGE_RADIUS), opacity: "1", transform: "translateX(0)" }
|
|
244
|
+
],
|
|
245
|
+
{ duration: STEP_MS(), easing: MORPH_EASE }
|
|
246
|
+
).finished.catch(() => {
|
|
247
|
+
});
|
|
248
|
+
if (my !== stepToken) return;
|
|
249
|
+
}
|
|
250
|
+
if (thumb && nextKind === "image") {
|
|
251
|
+
const full = await resolveSrc(item);
|
|
252
|
+
if (my === stepToken && full && full !== src.value) src.value = full;
|
|
253
|
+
}
|
|
254
|
+
} finally {
|
|
255
|
+
stepping = false;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
useEventListener("keydown", (e) => {
|
|
259
|
+
if (!visible.value) return;
|
|
260
|
+
if (e.key === "Escape") {
|
|
261
|
+
e.preventDefault();
|
|
262
|
+
void dismiss();
|
|
263
|
+
} else if (e.key === "ArrowRight") void step(1);
|
|
264
|
+
else if (e.key === "ArrowLeft") void step(-1);
|
|
265
|
+
});
|
|
266
|
+
let wheelStepAt = 0;
|
|
267
|
+
useEventListener("wheel", (e) => {
|
|
268
|
+
if (!visible.value) return;
|
|
269
|
+
const horizontal = Math.abs(e.deltaX) > Math.abs(e.deltaY) * 1.5 && Math.abs(e.deltaX) > 10;
|
|
270
|
+
if (horizontal && count.value > 1) {
|
|
271
|
+
const now = Date.now();
|
|
272
|
+
if (now - wheelStepAt > 350) {
|
|
273
|
+
wheelStepAt = now;
|
|
274
|
+
void step(e.deltaX > 0 ? 1 : -1);
|
|
275
|
+
}
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
if (Math.abs(e.deltaY) > 2) void dismiss();
|
|
279
|
+
}, { passive: true });
|
|
280
|
+
useEventListener("scroll", () => {
|
|
281
|
+
if (visible.value) void dismiss();
|
|
282
|
+
}, { passive: true });
|
|
283
|
+
let touchStartX = 0;
|
|
284
|
+
let touchStartY = 0;
|
|
285
|
+
let touchDx = 0;
|
|
286
|
+
let touchAxis = null;
|
|
287
|
+
useEventListener("touchstart", (e) => {
|
|
288
|
+
if (!visible.value) return;
|
|
289
|
+
touchStartX = e.touches[0]?.clientX ?? 0;
|
|
290
|
+
touchStartY = e.touches[0]?.clientY ?? 0;
|
|
291
|
+
touchDx = 0;
|
|
292
|
+
touchAxis = null;
|
|
293
|
+
}, { passive: true });
|
|
294
|
+
useEventListener("touchmove", (e) => {
|
|
295
|
+
if (!visible.value) return;
|
|
296
|
+
const dx = (e.touches[0]?.clientX ?? 0) - touchStartX;
|
|
297
|
+
const dy = (e.touches[0]?.clientY ?? 0) - touchStartY;
|
|
298
|
+
if (!touchAxis) {
|
|
299
|
+
if (Math.abs(dx) < 10 && Math.abs(dy) < 10) return;
|
|
300
|
+
touchAxis = Math.abs(dx) > Math.abs(dy) && count.value > 1 ? "x" : "y";
|
|
301
|
+
}
|
|
302
|
+
if (touchAxis === "y") {
|
|
303
|
+
if (Math.abs(dy) > 24) void dismiss();
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
306
|
+
touchDx = dx;
|
|
307
|
+
if (morphEl.value && kind.value === "image") {
|
|
308
|
+
morphEl.value.style.transform = `translateX(${dx}px)`;
|
|
309
|
+
}
|
|
310
|
+
}, { passive: true });
|
|
311
|
+
useEventListener("touchend", () => {
|
|
312
|
+
if (!visible.value || touchAxis !== "x") {
|
|
313
|
+
touchAxis = null;
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
316
|
+
const el = morphEl.value;
|
|
317
|
+
if (el && kind.value === "image") {
|
|
318
|
+
el.style.transform = "";
|
|
319
|
+
if (Math.abs(touchDx) > 60) {
|
|
320
|
+
void step(touchDx < 0 ? 1 : -1);
|
|
321
|
+
} else if (touchDx !== 0 && MORPH_MS() > 0) {
|
|
322
|
+
el.animate(
|
|
323
|
+
[{ transform: `translateX(${touchDx}px)` }, { transform: "translateX(0)" }],
|
|
324
|
+
{ duration: 200, easing: MORPH_EASE }
|
|
325
|
+
);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
touchAxis = null;
|
|
329
|
+
touchDx = 0;
|
|
330
|
+
}, { passive: true });
|
|
331
|
+
</script>
|
|
332
|
+
|
|
333
|
+
<template>
|
|
334
|
+
<Teleport to="body">
|
|
335
|
+
<template v-if="visible">
|
|
336
|
+
<div
|
|
337
|
+
class="fixed inset-0 z-[80] cursor-zoom-out"
|
|
338
|
+
role="dialog"
|
|
339
|
+
aria-modal="true"
|
|
340
|
+
aria-label="Image viewer"
|
|
341
|
+
@click="dismiss"
|
|
342
|
+
>
|
|
343
|
+
<div
|
|
344
|
+
class="absolute inset-0 bg-white/85 backdrop-blur-md transition-opacity duration-300 dark:bg-zinc-950/85"
|
|
345
|
+
:class="backdropOn ? 'opacity-100' : 'opacity-0'"
|
|
346
|
+
/>
|
|
347
|
+
|
|
348
|
+
<!-- Video gets a centred player and no morph — a morphing video
|
|
349
|
+
element restarts decoding on every geometry change. -->
|
|
350
|
+
<div
|
|
351
|
+
v-if="kind === 'video' && src"
|
|
352
|
+
class="absolute inset-0 flex items-center justify-center p-6 transition-opacity duration-300"
|
|
353
|
+
:class="backdropOn ? 'opacity-100' : 'opacity-0'"
|
|
354
|
+
>
|
|
355
|
+
<video
|
|
356
|
+
:src="src"
|
|
357
|
+
controls
|
|
358
|
+
playsinline
|
|
359
|
+
preload="metadata"
|
|
360
|
+
class="max-h-[86vh] max-w-[92vw] cursor-auto rounded-xl shadow-2xl shadow-black/25"
|
|
361
|
+
@click.stop
|
|
362
|
+
/>
|
|
363
|
+
</div>
|
|
364
|
+
</div>
|
|
365
|
+
|
|
366
|
+
<!-- Chrome on its OWN fixed layer above the stage. The stage is z-[81]
|
|
367
|
+
and outside the overlay's stacking context, so chrome placed inside
|
|
368
|
+
the z-[80] overlay sat underneath it and was unclickable. -->
|
|
369
|
+
<div
|
|
370
|
+
v-if="showChrome && count > 1"
|
|
371
|
+
class="pointer-events-none fixed inset-0 z-[82]"
|
|
372
|
+
>
|
|
373
|
+
<button
|
|
374
|
+
type="button"
|
|
375
|
+
class="jun-chrome pointer-events-auto absolute top-1/2 left-3 flex h-11 w-11 -translate-y-1/2
|
|
376
|
+
cursor-pointer items-center justify-center rounded-full text-black/60
|
|
377
|
+
transition-colors hover:text-black dark:text-white/60 dark:hover:text-white"
|
|
378
|
+
aria-label="Previous"
|
|
379
|
+
@click.stop="step(-1)"
|
|
380
|
+
>
|
|
381
|
+
<UIcon
|
|
382
|
+
name="i-lucide-chevron-left"
|
|
383
|
+
class="size-5"
|
|
384
|
+
/>
|
|
385
|
+
</button>
|
|
386
|
+
<button
|
|
387
|
+
type="button"
|
|
388
|
+
class="jun-chrome pointer-events-auto absolute top-1/2 right-3 flex h-11 w-11 -translate-y-1/2
|
|
389
|
+
cursor-pointer items-center justify-center rounded-full text-black/60
|
|
390
|
+
transition-colors hover:text-black dark:text-white/60 dark:hover:text-white"
|
|
391
|
+
aria-label="Next"
|
|
392
|
+
@click.stop="step(1)"
|
|
393
|
+
>
|
|
394
|
+
<UIcon
|
|
395
|
+
name="i-lucide-chevron-right"
|
|
396
|
+
class="size-5"
|
|
397
|
+
/>
|
|
398
|
+
</button>
|
|
399
|
+
<span
|
|
400
|
+
class="jun-chrome pointer-events-auto absolute bottom-4 left-1/2 -translate-x-1/2 rounded-full
|
|
401
|
+
px-3 py-1 text-xs tracking-widest tabular-nums text-black/60 dark:text-white/60"
|
|
402
|
+
@click.stop
|
|
403
|
+
>{{ index + 1 }} / {{ count }}</span>
|
|
404
|
+
</div>
|
|
405
|
+
|
|
406
|
+
<!-- The stage: DOCUMENT coordinates, absolute under <body> and
|
|
407
|
+
deliberately OUTSIDE the fixed overlay, so it scrolls with the page
|
|
408
|
+
and the reverse morph lands on the tile exactly. -->
|
|
409
|
+
<img
|
|
410
|
+
v-if="kind === 'image' && src"
|
|
411
|
+
ref="morphEl"
|
|
412
|
+
:src="src"
|
|
413
|
+
:alt="alt"
|
|
414
|
+
draggable="false"
|
|
415
|
+
class="absolute z-[81] cursor-zoom-out object-cover shadow-2xl
|
|
416
|
+
shadow-black/25 select-none will-change-[left,top,width,height]"
|
|
417
|
+
:style="stageStyle"
|
|
418
|
+
@click="dismiss"
|
|
419
|
+
>
|
|
420
|
+
</template>
|
|
421
|
+
</Teleport>
|
|
422
|
+
</template>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, onMounted, ref, watch } from "vue";
|
|
3
|
+
import { useDocTree, useJunIntro } from "#imports";
|
|
4
|
+
const { phase, navVeiled, contentVeiled, navLogoVeiled } = useJunIntro();
|
|
5
|
+
const NOSCRIPT_CSS = `<style>
|
|
6
|
+
.jun-intro { display: none !important; }
|
|
7
|
+
.jun-nav-intro-hidden { translate: 0 0 !important; }
|
|
8
|
+
.jun-content-veiled { opacity: 1 !important; }
|
|
9
|
+
.jun-nav-logo { opacity: 1 !important; }
|
|
10
|
+
</style>`;
|
|
11
|
+
const logoEl = ref(null);
|
|
12
|
+
const holding = ref(false);
|
|
13
|
+
const logoFading = ref(false);
|
|
14
|
+
const { topLevelDocs } = useDocTree();
|
|
15
|
+
const treeReady = computed(() => topLevelDocs.value.length > 0);
|
|
16
|
+
const DRAW_MS = 1900;
|
|
17
|
+
const DRAW_DELAY_MS = 120;
|
|
18
|
+
const READY_CAP_MS = 2500;
|
|
19
|
+
const HARD_CAP_MS = 8e3;
|
|
20
|
+
const FAST_TAIL_MS = 480;
|
|
21
|
+
const MAX_FAST_RATE = 7;
|
|
22
|
+
let revealed = false;
|
|
23
|
+
function fastForwardEntrance(tailMs) {
|
|
24
|
+
const el = logoEl.value;
|
|
25
|
+
if (!el || typeof el.getAnimations !== "function") return 0;
|
|
26
|
+
let longest = 0;
|
|
27
|
+
for (const anim of el.getAnimations({ subtree: true })) {
|
|
28
|
+
const endTime = Number(anim.effect?.getComputedTiming().endTime ?? 0);
|
|
29
|
+
if (!Number.isFinite(endTime)) continue;
|
|
30
|
+
const remaining = endTime - Number(anim.currentTime ?? 0);
|
|
31
|
+
if (remaining <= tailMs) {
|
|
32
|
+
longest = Math.max(longest, Math.max(remaining, 0));
|
|
33
|
+
continue;
|
|
34
|
+
}
|
|
35
|
+
const rate = Math.min(remaining / tailMs, MAX_FAST_RATE);
|
|
36
|
+
if (typeof anim.updatePlaybackRate === "function") anim.updatePlaybackRate(rate);
|
|
37
|
+
else anim.playbackRate = rate;
|
|
38
|
+
longest = Math.max(longest, remaining / rate);
|
|
39
|
+
}
|
|
40
|
+
return longest;
|
|
41
|
+
}
|
|
42
|
+
function measureNavLogoTarget() {
|
|
43
|
+
const navRoot = document.querySelector(".jun-nav-root");
|
|
44
|
+
const navLogo = document.querySelector(".jun-nav-logo");
|
|
45
|
+
if (!navRoot || !navLogo) return null;
|
|
46
|
+
const prev = {
|
|
47
|
+
transition: navRoot.style.transition,
|
|
48
|
+
transform: navRoot.style.transform,
|
|
49
|
+
translate: navRoot.style.translate
|
|
50
|
+
};
|
|
51
|
+
navRoot.style.transition = "none";
|
|
52
|
+
navRoot.style.transform = "none";
|
|
53
|
+
navRoot.style.translate = "0 0";
|
|
54
|
+
void navRoot.getBoundingClientRect();
|
|
55
|
+
const rect = navLogo.getBoundingClientRect();
|
|
56
|
+
navRoot.style.transform = prev.transform;
|
|
57
|
+
navRoot.style.translate = prev.translate;
|
|
58
|
+
void navRoot.getBoundingClientRect();
|
|
59
|
+
navRoot.style.transition = prev.transition;
|
|
60
|
+
return rect.height > 0 ? rect : null;
|
|
61
|
+
}
|
|
62
|
+
function reveal() {
|
|
63
|
+
if (revealed || phase.value === "done") return;
|
|
64
|
+
revealed = true;
|
|
65
|
+
holding.value = false;
|
|
66
|
+
phase.value = "reveal";
|
|
67
|
+
const reduced = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
68
|
+
let morph = false;
|
|
69
|
+
if (!reduced && logoEl.value) {
|
|
70
|
+
const target = measureNavLogoTarget();
|
|
71
|
+
if (target) {
|
|
72
|
+
const el = logoEl.value;
|
|
73
|
+
const src = el.getBoundingClientRect();
|
|
74
|
+
const scale = target.height / src.height;
|
|
75
|
+
el.style.transformOrigin = "top left";
|
|
76
|
+
window.setTimeout(() => {
|
|
77
|
+
el.style.transform = `translate(${target.left - src.left}px, ${target.top - src.top}px) scale(${scale})`;
|
|
78
|
+
}, 150);
|
|
79
|
+
morph = true;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
if (!morph) logoFading.value = true;
|
|
83
|
+
const landMs = morph ? 850 : 250;
|
|
84
|
+
const doneMs = morph ? 1400 : 700;
|
|
85
|
+
const at = (ms, fn) => window.setTimeout(fn, reduced ? 0 : ms);
|
|
86
|
+
at(120, () => navVeiled.value = false);
|
|
87
|
+
at(240, () => contentVeiled.value = false);
|
|
88
|
+
at(landMs, () => navLogoVeiled.value = false);
|
|
89
|
+
window.setTimeout(() => phase.value = "done", reduced ? 350 : doneMs);
|
|
90
|
+
}
|
|
91
|
+
onMounted(() => {
|
|
92
|
+
if (phase.value !== "intro") return;
|
|
93
|
+
const cap = window.setTimeout(reveal, HARD_CAP_MS);
|
|
94
|
+
const reduced = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
95
|
+
const minMs = reduced ? 350 : DRAW_DELAY_MS + DRAW_MS;
|
|
96
|
+
const t0 = performance.now();
|
|
97
|
+
const fontsReady = document.fonts?.ready ?? Promise.resolve();
|
|
98
|
+
const treeSynced = new Promise((resolve) => {
|
|
99
|
+
if (treeReady.value) return resolve();
|
|
100
|
+
const stop = watch(treeReady, (v) => {
|
|
101
|
+
if (v) {
|
|
102
|
+
stop();
|
|
103
|
+
resolve();
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
const holdTimer = window.setTimeout(() => {
|
|
108
|
+
if (!revealed) holding.value = true;
|
|
109
|
+
}, minMs);
|
|
110
|
+
void Promise.race([
|
|
111
|
+
Promise.all([treeSynced, fontsReady]),
|
|
112
|
+
new Promise((r) => setTimeout(r, minMs + READY_CAP_MS))
|
|
113
|
+
]).then(() => {
|
|
114
|
+
if (revealed) return;
|
|
115
|
+
window.clearTimeout(cap);
|
|
116
|
+
window.clearTimeout(holdTimer);
|
|
117
|
+
const remainingFloor = minMs - (performance.now() - t0);
|
|
118
|
+
if (!reduced && remainingFloor > FAST_TAIL_MS) {
|
|
119
|
+
const tail = fastForwardEntrance(FAST_TAIL_MS);
|
|
120
|
+
window.setTimeout(reveal, Math.min(tail || remainingFloor, FAST_TAIL_MS));
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
if (remainingFloor > 0) window.setTimeout(reveal, remainingFloor);
|
|
124
|
+
else reveal();
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
</script>
|
|
128
|
+
|
|
129
|
+
<template>
|
|
130
|
+
<div
|
|
131
|
+
v-if="phase !== 'done'"
|
|
132
|
+
class="jun-intro fixed inset-0 z-[80] flex items-center justify-center"
|
|
133
|
+
:class="{ 'is-revealing': phase === 'reveal', 'is-holding': holding }"
|
|
134
|
+
aria-hidden="true"
|
|
135
|
+
>
|
|
136
|
+
<!-- eslint-disable-next-line vue/no-v-html -->
|
|
137
|
+
<noscript v-html="NOSCRIPT_CSS" />
|
|
138
|
+
|
|
139
|
+
<!-- Plain theme background — dissolves at reveal; the page is beneath. -->
|
|
140
|
+
<div class="jun-intro-bg absolute inset-0" />
|
|
141
|
+
|
|
142
|
+
<!-- The logo, and nothing else. Same component as the navbar's, so the
|
|
143
|
+
morph clone lands pixel-identical on the real one. -->
|
|
144
|
+
<div
|
|
145
|
+
ref="logoEl"
|
|
146
|
+
class="jun-intro-logo relative text-black dark:text-white"
|
|
147
|
+
:class="{ 'is-fading': logoFading }"
|
|
148
|
+
>
|
|
149
|
+
<JunLogo class="h-24 w-auto sm:h-28" />
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
152
|
+
</template>
|
|
153
|
+
|
|
154
|
+
<style scoped>
|
|
155
|
+
.jun-intro-bg{background:#f5f5f7;transition:opacity .6s ease}:root.dark .jun-intro-bg{background:#0e0f11}.is-revealing .jun-intro-bg{opacity:0}.jun-intro{pointer-events:auto}.jun-intro.is-revealing{pointer-events:none}.jun-intro-logo :deep(path){animation:jun-intro-draw 1.9s ease .12s forwards;stroke-dasharray:1;stroke-dashoffset:1}@keyframes jun-intro-draw{to{stroke-dashoffset:0}}.jun-intro-logo :deep(circle){animation:jun-intro-node .46s cubic-bezier(.22,1,.36,1) forwards;opacity:0;transform-box:fill-box;transform-origin:center}.jun-intro-logo :deep(circle:first-of-type){animation-delay:1.25s}.jun-intro-logo :deep(circle:nth-of-type(2)){animation-delay:1.62s}.jun-intro-logo :deep(circle:nth-of-type(3)){animation-delay:1.81s}.jun-intro-logo :deep(.jun-sun-body){animation:jun-intro-node .46s cubic-bezier(.22,1,.36,1) .14s forwards}.jun-intro-logo :deep(.jun-sun-halo){animation:jun-intro-node .46s cubic-bezier(.22,1,.36,1) .56s forwards,jun-sun-breathe-halo 2.6s ease-in-out 1.02s infinite}.jun-intro-logo :deep(.jun-sun-disc){animation:jun-intro-node .46s cubic-bezier(.22,1,.36,1) .64s forwards}.jun-intro-logo :deep(.jun-sun-glow){animation:jun-intro-node .46s cubic-bezier(.22,1,.36,1) 1s forwards}.jun-intro-logo :deep(.jun-sun-core){animation:jun-sun-breathe-core 2.6s ease-in-out 1.02s infinite}@keyframes jun-intro-node{0%{opacity:0;transform:scale(.2)}to{opacity:1;transform:scale(1)}}.jun-intro-logo{transition:transform .7s cubic-bezier(.22,1,.36,1),opacity .3s ease}.is-revealing .jun-intro-logo{will-change:transform}.jun-intro-logo.is-fading{opacity:0}.is-holding .jun-intro-logo :deep(.jun-logo:not(.jun-logo--sun)){animation:jun-intro-pulse 1.8s ease-in-out infinite}@keyframes jun-intro-pulse{0%,to{opacity:1}50%{opacity:.72}}@keyframes jun-sun-breathe-halo{0%,to{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(1.16)}}@keyframes jun-sun-breathe-core{0%,to{transform:scale(1)}50%{transform:scale(1.06)}}@media (prefers-reduced-motion:reduce){.jun-intro-logo :deep(path){animation:none;stroke-dashoffset:0}.jun-intro-logo :deep(.jun-sun-body),.jun-intro-logo :deep(.jun-sun-core),.jun-intro-logo :deep(.jun-sun-disc),.jun-intro-logo :deep(.jun-sun-glow),.jun-intro-logo :deep(.jun-sun-halo),.jun-intro-logo :deep(circle){animation:none;opacity:1}.is-revealing .jun-intro-logo,.jun-intro-logo{transition:opacity .3s ease;will-change:auto}.is-holding .jun-intro-logo,.is-holding .jun-intro-logo :deep(.jun-logo:not(.jun-logo--sun)){animation:none}}
|
|
156
|
+
</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,50 @@
|
|
|
1
|
+
import { type JunMenuGroups, type JunMenuSurface, type JunMenuTree } from '../composables/useJunDocMenu.js';
|
|
2
|
+
interface ItemEntry {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
type?: string;
|
|
6
|
+
meta?: Record<string, unknown>;
|
|
7
|
+
}
|
|
8
|
+
type __VLS_Props = {
|
|
9
|
+
entry: ItemEntry;
|
|
10
|
+
/** `useChildTree(...)` for the container. Owner items need it; omit for a read-only menu. */
|
|
11
|
+
tree?: JunMenuTree;
|
|
12
|
+
/**
|
|
13
|
+
* Force the menu off entirely. Left over from the owner-only era and now
|
|
14
|
+
* rarely wanted — pass it only where a surface genuinely must not offer one.
|
|
15
|
+
*/
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/** Hide "Open" when the whole row already links there. */
|
|
18
|
+
noOpen?: boolean;
|
|
19
|
+
/** Which surface this is, so a builder can branch on it. */
|
|
20
|
+
surface?: JunMenuSurface;
|
|
21
|
+
/** Sibling ids in display order — enables "Pin to top". */
|
|
22
|
+
siblings?: string[];
|
|
23
|
+
/** One-off groups, appended after the built ones. */
|
|
24
|
+
extra?: JunMenuGroups;
|
|
25
|
+
/** Suppress the built-in rename overlay when the surface has its own. */
|
|
26
|
+
noRename?: boolean;
|
|
27
|
+
};
|
|
28
|
+
declare var __VLS_8: {}, __VLS_21: {};
|
|
29
|
+
type __VLS_Slots = {} & {
|
|
30
|
+
default?: (props: typeof __VLS_8) => any;
|
|
31
|
+
} & {
|
|
32
|
+
default?: (props: typeof __VLS_21) => any;
|
|
33
|
+
};
|
|
34
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
35
|
+
deleted: (id: string) => any;
|
|
36
|
+
renamed: (id: string, label: string) => any;
|
|
37
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
38
|
+
onDeleted?: ((id: string) => any) | undefined;
|
|
39
|
+
onRenamed?: ((id: string, label: string) => any) | undefined;
|
|
40
|
+
}>, {
|
|
41
|
+
surface: JunMenuSurface;
|
|
42
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
43
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
44
|
+
declare const _default: typeof __VLS_export;
|
|
45
|
+
export default _default;
|
|
46
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
47
|
+
new (): {
|
|
48
|
+
$slots: S;
|
|
49
|
+
};
|
|
50
|
+
};
|