@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,471 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, onBeforeUnmount, ref, watch } from "vue";
|
|
3
|
+
import {
|
|
4
|
+
junFormatTime,
|
|
5
|
+
useAwareness,
|
|
6
|
+
useFileBlobStore,
|
|
7
|
+
useJunPlayer
|
|
8
|
+
} from "#imports";
|
|
9
|
+
const player = useJunPlayer();
|
|
10
|
+
const { getBlobUrl, getStreamUrl, getThumbUrl } = useFileBlobStore();
|
|
11
|
+
const { setField } = useAwareness();
|
|
12
|
+
const audio = ref(null);
|
|
13
|
+
const src = ref("");
|
|
14
|
+
const artwork = ref("");
|
|
15
|
+
let srcRetried = false;
|
|
16
|
+
watch(audio, (node) => player.attach(node), { immediate: true });
|
|
17
|
+
watch(
|
|
18
|
+
() => player.current.value,
|
|
19
|
+
async (track) => {
|
|
20
|
+
srcRetried = false;
|
|
21
|
+
if (!track) {
|
|
22
|
+
src.value = "";
|
|
23
|
+
artwork.value = "";
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
const wanted = track.id;
|
|
27
|
+
let next = track.url ?? "";
|
|
28
|
+
if (!next && track.uploadId) {
|
|
29
|
+
next = await getStreamUrl(track.id, track.uploadId) ?? await getBlobUrl(track.id, track.uploadId) ?? "";
|
|
30
|
+
}
|
|
31
|
+
if (player.current.value?.id !== wanted) return;
|
|
32
|
+
src.value = next;
|
|
33
|
+
artwork.value = track.coverUploadId ? await getThumbUrl(track.id, track.coverUploadId, { w: 512 }) ?? "" : "";
|
|
34
|
+
if (player.current.value?.id !== wanted) artwork.value = "";
|
|
35
|
+
},
|
|
36
|
+
{ immediate: true }
|
|
37
|
+
);
|
|
38
|
+
watch(
|
|
39
|
+
() => [player.playing.value, src.value],
|
|
40
|
+
([wantsPlay, source]) => {
|
|
41
|
+
const node = audio.value;
|
|
42
|
+
if (!node || !source) return;
|
|
43
|
+
if (wantsPlay && node.paused) void attemptPlay(node);
|
|
44
|
+
if (!wantsPlay && !node.paused) node.pause();
|
|
45
|
+
},
|
|
46
|
+
{ flush: "post" }
|
|
47
|
+
);
|
|
48
|
+
async function attemptPlay(node) {
|
|
49
|
+
try {
|
|
50
|
+
await node.play();
|
|
51
|
+
} catch {
|
|
52
|
+
if (node.readyState < 2) {
|
|
53
|
+
node.addEventListener("canplay", () => {
|
|
54
|
+
if (!player.playing.value) return;
|
|
55
|
+
void node.play().catch(() => {
|
|
56
|
+
player.playing.value = false;
|
|
57
|
+
});
|
|
58
|
+
}, { once: true });
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
player.playing.value = false;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
async function onError() {
|
|
65
|
+
const track = player.current.value;
|
|
66
|
+
if (!track?.uploadId || srcRetried) return;
|
|
67
|
+
srcRetried = true;
|
|
68
|
+
const fresh = await getStreamUrl(track.id, track.uploadId) ?? await getBlobUrl(track.id, track.uploadId);
|
|
69
|
+
if (fresh && player.current.value?.id === track.id) src.value = fresh;
|
|
70
|
+
}
|
|
71
|
+
watch(
|
|
72
|
+
() => [player.current.value, artwork.value],
|
|
73
|
+
([track, art]) => {
|
|
74
|
+
setField("junTrack", track ? { id: track.id, label: track.label, artist: track.artist ?? "" } : null);
|
|
75
|
+
const ms = typeof navigator !== "undefined" ? navigator.mediaSession : void 0;
|
|
76
|
+
if (!ms) return;
|
|
77
|
+
if (!track) {
|
|
78
|
+
ms.metadata = null;
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
ms.metadata = new MediaMetadata({
|
|
82
|
+
title: track.label,
|
|
83
|
+
artist: track.artist ?? "",
|
|
84
|
+
album: track.album ?? "",
|
|
85
|
+
// A blob/object URL is fine here; the OS reads it through the page.
|
|
86
|
+
artwork: art ? [{ src: art, sizes: "512x512" }] : []
|
|
87
|
+
});
|
|
88
|
+
ms.setActionHandler("play", () => player.play());
|
|
89
|
+
ms.setActionHandler("pause", () => player.pause());
|
|
90
|
+
ms.setActionHandler("previoustrack", () => player.prev());
|
|
91
|
+
ms.setActionHandler("nexttrack", () => {
|
|
92
|
+
player.next();
|
|
93
|
+
});
|
|
94
|
+
ms.setActionHandler("seekto", (d) => {
|
|
95
|
+
if (typeof d.seekTime === "number") {
|
|
96
|
+
player.seek(d.seekTime);
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
watch(
|
|
102
|
+
() => player.playing.value,
|
|
103
|
+
(isPlaying) => {
|
|
104
|
+
if (typeof navigator !== "undefined" && navigator.mediaSession) {
|
|
105
|
+
navigator.mediaSession.playbackState = isPlaying ? "playing" : "paused";
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
);
|
|
109
|
+
onBeforeUnmount(() => setField("junTrack", null));
|
|
110
|
+
const showPill = computed(() => player.hasQueue.value && !!player.current.value && !player.dismissed.value);
|
|
111
|
+
watch(
|
|
112
|
+
showPill,
|
|
113
|
+
(has) => {
|
|
114
|
+
if (!import.meta.client) return;
|
|
115
|
+
if (has) document.documentElement.setAttribute("data-jun-player", "");
|
|
116
|
+
else document.documentElement.removeAttribute("data-jun-player");
|
|
117
|
+
},
|
|
118
|
+
{ immediate: true }
|
|
119
|
+
);
|
|
120
|
+
onBeforeUnmount(() => {
|
|
121
|
+
if (import.meta.client) document.documentElement.removeAttribute("data-jun-player");
|
|
122
|
+
});
|
|
123
|
+
const pillEl = ref(null);
|
|
124
|
+
function publishPillHeight() {
|
|
125
|
+
if (!import.meta.client) return;
|
|
126
|
+
const root = document.documentElement;
|
|
127
|
+
const node = pillEl.value;
|
|
128
|
+
if (!node) {
|
|
129
|
+
root.style.removeProperty("--jun-player-h");
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
root.style.setProperty("--jun-player-h", `${Math.round(node.getBoundingClientRect().height)}px`);
|
|
133
|
+
}
|
|
134
|
+
let pillRo = null;
|
|
135
|
+
watch(pillEl, (node) => {
|
|
136
|
+
pillRo?.disconnect();
|
|
137
|
+
pillRo = null;
|
|
138
|
+
publishPillHeight();
|
|
139
|
+
if (!node || typeof ResizeObserver === "undefined") return;
|
|
140
|
+
pillRo = new ResizeObserver(publishPillHeight);
|
|
141
|
+
pillRo.observe(node);
|
|
142
|
+
}, { immediate: true, flush: "post" });
|
|
143
|
+
onBeforeUnmount(() => {
|
|
144
|
+
pillRo?.disconnect();
|
|
145
|
+
if (import.meta.client) document.documentElement.style.removeProperty("--jun-player-h");
|
|
146
|
+
});
|
|
147
|
+
function onDocumentPointerDown(e) {
|
|
148
|
+
if (!player.expanded.value) return;
|
|
149
|
+
const target = e.target;
|
|
150
|
+
if (!target) return;
|
|
151
|
+
if (pillEl.value?.contains(target)) return;
|
|
152
|
+
if (target.closest?.(".jun-player-sheet")) return;
|
|
153
|
+
player.expanded.value = false;
|
|
154
|
+
}
|
|
155
|
+
if (import.meta.client) {
|
|
156
|
+
window.addEventListener("pointerdown", onDocumentPointerDown, true);
|
|
157
|
+
onBeforeUnmount(() => window.removeEventListener("pointerdown", onDocumentPointerDown, true));
|
|
158
|
+
}
|
|
159
|
+
const scrubbing = ref(false);
|
|
160
|
+
const scrubValue = ref(0);
|
|
161
|
+
const progress = computed(
|
|
162
|
+
() => scrubbing.value ? scrubValue.value : player.duration.value ? player.currentTime.value / player.duration.value * 100 : 0
|
|
163
|
+
);
|
|
164
|
+
function onScrubInput(e) {
|
|
165
|
+
scrubbing.value = true;
|
|
166
|
+
scrubValue.value = Number(e.target.value);
|
|
167
|
+
}
|
|
168
|
+
function onScrubCommit() {
|
|
169
|
+
if (!scrubbing.value) return;
|
|
170
|
+
player.seek(scrubValue.value / 100 * player.duration.value);
|
|
171
|
+
scrubbing.value = false;
|
|
172
|
+
}
|
|
173
|
+
const remaining = computed(
|
|
174
|
+
() => junFormatTime(Math.max(0, player.duration.value - player.currentTime.value))
|
|
175
|
+
);
|
|
176
|
+
const repeatIcon = computed(
|
|
177
|
+
() => player.repeat.value === "one" ? "i-lucide-repeat-1" : "i-lucide-repeat"
|
|
178
|
+
);
|
|
179
|
+
function onKeydown(e) {
|
|
180
|
+
if (e.key === "Escape" && player.expanded.value) {
|
|
181
|
+
player.expanded.value = false;
|
|
182
|
+
e.stopPropagation();
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
if (e.code !== "Space" || !player.hasQueue.value) return;
|
|
186
|
+
const t = e.target;
|
|
187
|
+
if (!t) return;
|
|
188
|
+
if (t.isContentEditable) return;
|
|
189
|
+
if (["INPUT", "TEXTAREA", "SELECT", "BUTTON"].includes(t.tagName)) return;
|
|
190
|
+
e.preventDefault();
|
|
191
|
+
player.toggle();
|
|
192
|
+
}
|
|
193
|
+
if (import.meta.client) window.addEventListener("keydown", onKeydown);
|
|
194
|
+
onBeforeUnmount(() => {
|
|
195
|
+
if (import.meta.client) window.removeEventListener("keydown", onKeydown);
|
|
196
|
+
});
|
|
197
|
+
</script>
|
|
198
|
+
|
|
199
|
+
<template>
|
|
200
|
+
<div>
|
|
201
|
+
<audio
|
|
202
|
+
ref="audio"
|
|
203
|
+
:src="src || void 0"
|
|
204
|
+
preload="metadata"
|
|
205
|
+
@play="player.playing.value = true"
|
|
206
|
+
@pause="player.playing.value = false"
|
|
207
|
+
@timeupdate="player.currentTime.value = $event.target.currentTime"
|
|
208
|
+
@loadedmetadata="player.duration.value = $event.target.duration || 0"
|
|
209
|
+
@ended="player.onEnded()"
|
|
210
|
+
@error="onError"
|
|
211
|
+
/>
|
|
212
|
+
|
|
213
|
+
<!-- The pill. Positioning is `jun.css`'s: `.jun-player` centres it and
|
|
214
|
+
`html[data-jun-nav='bottom']` moves it to the top, so the placement rule
|
|
215
|
+
is stated once, next to the rest of the site's chrome geometry, rather
|
|
216
|
+
than as a class list here that would have to duplicate the navbar's
|
|
217
|
+
fallback logic. -->
|
|
218
|
+
<Transition name="jun-player">
|
|
219
|
+
<div
|
|
220
|
+
v-if="showPill"
|
|
221
|
+
ref="pillEl"
|
|
222
|
+
class="jun-player jun-chrome fixed z-40 overflow-hidden rounded-2xl"
|
|
223
|
+
>
|
|
224
|
+
<div class="flex items-center gap-2 py-1.5 pr-1.5 pl-2">
|
|
225
|
+
<!-- Artwork + title. The whole block opens the sheet — a bigger
|
|
226
|
+
target than a chevron, and the sheet is where the rest lives. -->
|
|
227
|
+
<button
|
|
228
|
+
type="button"
|
|
229
|
+
class="flex min-w-0 flex-1 cursor-pointer items-center gap-2.5 rounded-xl px-1 py-0.5 text-left transition-colors hover:bg-black/5 dark:hover:bg-white/10"
|
|
230
|
+
:aria-label="`Now playing: ${player.current.value.label}. Open the player.`"
|
|
231
|
+
@click="player.expanded.value = true"
|
|
232
|
+
>
|
|
233
|
+
<span class="relative flex size-9 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-black/5 ring-1 ring-black/5 dark:bg-white/10 dark:ring-white/10">
|
|
234
|
+
<img
|
|
235
|
+
v-if="artwork"
|
|
236
|
+
:src="artwork"
|
|
237
|
+
alt=""
|
|
238
|
+
class="h-full w-full object-cover"
|
|
239
|
+
>
|
|
240
|
+
<UIcon
|
|
241
|
+
v-else
|
|
242
|
+
name="i-lucide-music-2"
|
|
243
|
+
class="size-4 text-dimmed"
|
|
244
|
+
/>
|
|
245
|
+
</span>
|
|
246
|
+
<span class="min-w-0 flex-1">
|
|
247
|
+
<span class="block truncate text-[13px] leading-tight font-medium text-highlighted">
|
|
248
|
+
{{ player.current.value.label }}
|
|
249
|
+
</span>
|
|
250
|
+
<span class="block truncate text-[11px] leading-tight text-muted">
|
|
251
|
+
{{ player.current.value.artist || player.current.value.stage || "\u2014" }}
|
|
252
|
+
</span>
|
|
253
|
+
</span>
|
|
254
|
+
</button>
|
|
255
|
+
|
|
256
|
+
<!-- Transport. The same four controls at every width — the pill is
|
|
257
|
+
short enough to carry them, and a breakpoint-hidden control is
|
|
258
|
+
how the old ✕ became unreachable on a phone. -->
|
|
259
|
+
<div class="flex shrink-0 items-center gap-0.5">
|
|
260
|
+
<UButton
|
|
261
|
+
icon="i-lucide-skip-back"
|
|
262
|
+
size="xs"
|
|
263
|
+
color="neutral"
|
|
264
|
+
variant="ghost"
|
|
265
|
+
aria-label="Previous"
|
|
266
|
+
@click="player.prev()"
|
|
267
|
+
/>
|
|
268
|
+
<UButton
|
|
269
|
+
:icon="player.playing.value ? 'i-lucide-pause' : 'i-lucide-play'"
|
|
270
|
+
size="sm"
|
|
271
|
+
color="neutral"
|
|
272
|
+
variant="soft"
|
|
273
|
+
:aria-label="player.playing.value ? 'Pause' : 'Play'"
|
|
274
|
+
@click="player.toggle()"
|
|
275
|
+
/>
|
|
276
|
+
<UButton
|
|
277
|
+
icon="i-lucide-skip-forward"
|
|
278
|
+
size="xs"
|
|
279
|
+
color="neutral"
|
|
280
|
+
variant="ghost"
|
|
281
|
+
aria-label="Next"
|
|
282
|
+
@click="player.next()"
|
|
283
|
+
/>
|
|
284
|
+
<!-- Put it off. On the PILL, at every width — the old ✕ lived in a
|
|
285
|
+
`sm:flex` cluster, so on a phone there was no way to stop the
|
|
286
|
+
player at all. -->
|
|
287
|
+
<UButton
|
|
288
|
+
icon="i-lucide-x"
|
|
289
|
+
size="xs"
|
|
290
|
+
color="neutral"
|
|
291
|
+
variant="ghost"
|
|
292
|
+
aria-label="Close player"
|
|
293
|
+
@click="player.stop()"
|
|
294
|
+
/>
|
|
295
|
+
</div>
|
|
296
|
+
</div>
|
|
297
|
+
|
|
298
|
+
<!-- Hairline progress along the pill's foot. The scrubber itself is in
|
|
299
|
+
the sheet; this is the glance. -->
|
|
300
|
+
<div class="h-0.5 w-full bg-black/10 dark:bg-white/10">
|
|
301
|
+
<div
|
|
302
|
+
class="h-full bg-highlighted/80 transition-[width] duration-200 ease-linear"
|
|
303
|
+
:style="{ width: `${progress}%` }"
|
|
304
|
+
/>
|
|
305
|
+
</div>
|
|
306
|
+
</div>
|
|
307
|
+
</Transition>
|
|
308
|
+
|
|
309
|
+
<!-- The "now playing" POPOVER — the scrubber, shuffle/repeat and volume,
|
|
310
|
+
i.e. exactly what the pill has no room for, in a panel the same width
|
|
311
|
+
as the pill and sitting directly on top of it.
|
|
312
|
+
|
|
313
|
+
It used to be `fixed inset-0`: a full-viewport sheet, with cover art
|
|
314
|
+
blown up to `max-w-xs` and the transport floating in the middle of an
|
|
315
|
+
otherwise empty screen. That is a phone idiom, and it was covering the
|
|
316
|
+
whole site to expose five controls. A popover keeps the page visible
|
|
317
|
+
and the controls where the thing they control already is.
|
|
318
|
+
|
|
319
|
+
`z-[70]` clears the navbar's `z-50` and the studio dock's `z-60`; at
|
|
320
|
+
`z-50` it opened underneath both. Its position is `jun.css`'s, off the
|
|
321
|
+
measured pill height, for the same reason the pill's own is. -->
|
|
322
|
+
<Transition name="jun-sheet">
|
|
323
|
+
<div
|
|
324
|
+
v-if="player.expanded.value && player.current.value"
|
|
325
|
+
class="jun-player-sheet jun-chrome fixed z-[70] overflow-hidden rounded-2xl"
|
|
326
|
+
role="dialog"
|
|
327
|
+
aria-label="Now playing"
|
|
328
|
+
>
|
|
329
|
+
<div class="flex flex-col gap-3 p-3">
|
|
330
|
+
<!-- Identity: small artwork beside the title, not a poster. -->
|
|
331
|
+
<div class="flex items-center gap-3">
|
|
332
|
+
<span class="relative flex size-11 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-black/5 ring-1 ring-black/5 dark:bg-white/10 dark:ring-white/10">
|
|
333
|
+
<img
|
|
334
|
+
v-if="artwork"
|
|
335
|
+
:src="artwork"
|
|
336
|
+
alt=""
|
|
337
|
+
class="h-full w-full object-cover"
|
|
338
|
+
>
|
|
339
|
+
<UIcon
|
|
340
|
+
v-else
|
|
341
|
+
name="i-lucide-music-2"
|
|
342
|
+
class="size-5 text-dimmed"
|
|
343
|
+
/>
|
|
344
|
+
</span>
|
|
345
|
+
<div class="min-w-0 flex-1">
|
|
346
|
+
<p class="truncate text-sm font-medium text-highlighted">
|
|
347
|
+
{{ player.current.value.label }}
|
|
348
|
+
</p>
|
|
349
|
+
<p class="truncate text-xs text-muted">
|
|
350
|
+
{{ player.current.value.artist || player.current.value.stage || "\u2014" }}
|
|
351
|
+
</p>
|
|
352
|
+
</div>
|
|
353
|
+
<UButton
|
|
354
|
+
icon="i-lucide-chevron-down"
|
|
355
|
+
size="xs"
|
|
356
|
+
color="neutral"
|
|
357
|
+
variant="ghost"
|
|
358
|
+
aria-label="Close"
|
|
359
|
+
@click="player.expanded.value = false"
|
|
360
|
+
/>
|
|
361
|
+
</div>
|
|
362
|
+
|
|
363
|
+
<!-- Scrubber. The times flank it rather than sitting under it: two
|
|
364
|
+
more stacked rows is what made the old sheet need a screen. -->
|
|
365
|
+
<div class="flex items-center gap-2">
|
|
366
|
+
<span class="w-9 text-right text-[11px] tabular-nums text-dimmed">
|
|
367
|
+
{{ junFormatTime(player.currentTime.value) }}
|
|
368
|
+
</span>
|
|
369
|
+
<input
|
|
370
|
+
type="range"
|
|
371
|
+
min="0"
|
|
372
|
+
max="100"
|
|
373
|
+
step="0.1"
|
|
374
|
+
:value="progress"
|
|
375
|
+
class="jun-player-range h-1 min-w-0 flex-1"
|
|
376
|
+
aria-label="Seek"
|
|
377
|
+
@input="onScrubInput"
|
|
378
|
+
@change="onScrubCommit"
|
|
379
|
+
@pointerup="onScrubCommit"
|
|
380
|
+
>
|
|
381
|
+
<span class="w-9 text-[11px] tabular-nums text-dimmed">-{{ remaining }}</span>
|
|
382
|
+
</div>
|
|
383
|
+
|
|
384
|
+
<!-- Transport. The pill already carries prev/play/next, so what earns
|
|
385
|
+
its place here is what the pill cannot show: shuffle and repeat,
|
|
386
|
+
with the transport between them for reach. -->
|
|
387
|
+
<div class="flex items-center justify-center gap-2">
|
|
388
|
+
<UButton
|
|
389
|
+
icon="i-lucide-shuffle"
|
|
390
|
+
size="xs"
|
|
391
|
+
color="neutral"
|
|
392
|
+
:variant="player.shuffle.value ? 'soft' : 'ghost'"
|
|
393
|
+
aria-label="Shuffle"
|
|
394
|
+
@click="player.toggleShuffle()"
|
|
395
|
+
/>
|
|
396
|
+
<UButton
|
|
397
|
+
icon="i-lucide-skip-back"
|
|
398
|
+
size="sm"
|
|
399
|
+
color="neutral"
|
|
400
|
+
variant="ghost"
|
|
401
|
+
aria-label="Previous"
|
|
402
|
+
@click="player.prev()"
|
|
403
|
+
/>
|
|
404
|
+
<UButton
|
|
405
|
+
:icon="player.playing.value ? 'i-lucide-pause' : 'i-lucide-play'"
|
|
406
|
+
size="md"
|
|
407
|
+
color="neutral"
|
|
408
|
+
variant="soft"
|
|
409
|
+
:aria-label="player.playing.value ? 'Pause' : 'Play'"
|
|
410
|
+
@click="player.toggle()"
|
|
411
|
+
/>
|
|
412
|
+
<UButton
|
|
413
|
+
icon="i-lucide-skip-forward"
|
|
414
|
+
size="sm"
|
|
415
|
+
color="neutral"
|
|
416
|
+
variant="ghost"
|
|
417
|
+
aria-label="Next"
|
|
418
|
+
@click="player.next()"
|
|
419
|
+
/>
|
|
420
|
+
<UButton
|
|
421
|
+
:icon="repeatIcon"
|
|
422
|
+
size="xs"
|
|
423
|
+
color="neutral"
|
|
424
|
+
:variant="player.repeat.value === 'off' ? 'ghost' : 'soft'"
|
|
425
|
+
aria-label="Repeat"
|
|
426
|
+
@click="player.cycleRepeat()"
|
|
427
|
+
/>
|
|
428
|
+
</div>
|
|
429
|
+
|
|
430
|
+
<!-- Volume. The mute button and the slider are one control: dragging
|
|
431
|
+
to zero mutes, and un-muting restores the level rather than
|
|
432
|
+
jumping to full — `setVolume`/`setMuted` already agree on that.
|
|
433
|
+
`Stop` sits at the far end because it is the destructive one and
|
|
434
|
+
the pill's own ✕ is the discoverable route to it. -->
|
|
435
|
+
<div class="flex items-center gap-2">
|
|
436
|
+
<UButton
|
|
437
|
+
:icon="player.muted.value || !player.volume.value ? 'i-lucide-volume-x' : 'i-lucide-volume-2'"
|
|
438
|
+
size="xs"
|
|
439
|
+
color="neutral"
|
|
440
|
+
variant="ghost"
|
|
441
|
+
:aria-label="player.muted.value ? 'Unmute' : 'Mute'"
|
|
442
|
+
@click="player.setMuted(!player.muted.value)"
|
|
443
|
+
/>
|
|
444
|
+
<input
|
|
445
|
+
type="range"
|
|
446
|
+
min="0"
|
|
447
|
+
max="1"
|
|
448
|
+
step="0.01"
|
|
449
|
+
:value="player.muted.value ? 0 : player.volume.value"
|
|
450
|
+
class="jun-player-range h-1 min-w-0 flex-1 cursor-pointer"
|
|
451
|
+
aria-label="Volume"
|
|
452
|
+
@input="player.setVolume(Number($event.target.value))"
|
|
453
|
+
>
|
|
454
|
+
<UButton
|
|
455
|
+
icon="i-lucide-x"
|
|
456
|
+
size="xs"
|
|
457
|
+
color="neutral"
|
|
458
|
+
variant="ghost"
|
|
459
|
+
aria-label="Stop"
|
|
460
|
+
@click="player.stop()"
|
|
461
|
+
/>
|
|
462
|
+
</div>
|
|
463
|
+
</div>
|
|
464
|
+
</div>
|
|
465
|
+
</Transition>
|
|
466
|
+
</div>
|
|
467
|
+
</template>
|
|
468
|
+
|
|
469
|
+
<style scoped>
|
|
470
|
+
.jun-player-enter-active,.jun-player-leave-active{transition:transform .32s cubic-bezier(.22,1,.36,1),opacity .2s ease}.jun-player-enter-from,.jun-player-leave-to{opacity:0;transform:translateY(1.5rem)}.jun-sheet-enter-active,.jun-sheet-leave-active{transition:transform .36s cubic-bezier(.22,1,.36,1),opacity .24s ease}.jun-sheet-enter-from,.jun-sheet-leave-to{opacity:0;transform:translateY(4%)}@media (prefers-reduced-motion:reduce){.jun-player-enter-active,.jun-player-leave-active,.jun-sheet-enter-active,.jun-sheet-leave-active{transition:opacity .15s ease}.jun-player-enter-from,.jun-player-leave-to,.jun-sheet-enter-from,.jun-sheet-leave-to{transform:none}}.jun-player-range{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent}.jun-player-range::-webkit-slider-runnable-track{background:color-mix(in oklab,currentColor 18%,transparent);border-radius:999px;height:3px}.jun-player-range::-moz-range-track{background:color-mix(in oklab,currentColor 18%,transparent);border-radius:999px;height:3px}.jun-player-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:currentColor;border-radius:999px;height:11px;margin-top:-4px;-webkit-transition:transform .15s ease;transition:transform .15s ease;width:11px}.jun-player-range::-moz-range-thumb{background:currentColor;border:0;border-radius:999px;height:11px;width:11px}.jun-player-range:hover::-webkit-slider-thumb{transform:scale(1.2)}
|
|
471
|
+
</style>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, onMounted, onUnmounted, ref } from "vue";
|
|
3
|
+
import { useNuxtData } from "#app";
|
|
4
|
+
import { useAbracadabra, useDocTree, useRoute, useSlugRoute } from "#imports";
|
|
5
|
+
import { useJunLayoutPolicy, useJunPageType } from "../composables/useJunOptions";
|
|
6
|
+
import { useJunEffectiveConfig } from "../composables/useJunSiteConfig";
|
|
7
|
+
const { data: ssrCfg } = useNuxtData("jun-site-config");
|
|
8
|
+
const config = useJunEffectiveConfig();
|
|
9
|
+
const { isLockedType } = useJunLayoutPolicy();
|
|
10
|
+
const { resolveType } = useJunPageType();
|
|
11
|
+
const merged = computed(
|
|
12
|
+
() => Object.keys(config.value).length ? config.value : ssrCfg.value ?? {}
|
|
13
|
+
);
|
|
14
|
+
const text = computed(() => {
|
|
15
|
+
const t = merged.value.footerText;
|
|
16
|
+
return typeof t === "string" && t.trim() ? t.trim() : null;
|
|
17
|
+
});
|
|
18
|
+
const showUpdated = computed(() => merged.value.footerShowUpdated === true);
|
|
19
|
+
const feedsEnabled = computed(() => merged.value.feedsEnabled !== false);
|
|
20
|
+
const route = useRoute();
|
|
21
|
+
const { docId } = useSlugRoute();
|
|
22
|
+
const { entries, getEntry } = useDocTree();
|
|
23
|
+
const abra = useAbracadabra();
|
|
24
|
+
const docType = computed(() => {
|
|
25
|
+
if (docId.value) return getEntry(docId.value)?.type;
|
|
26
|
+
if (route.path === "/" && abra.spaceDocId.value) {
|
|
27
|
+
return getEntry(abra.spaceDocId.value)?.type ?? "doc";
|
|
28
|
+
}
|
|
29
|
+
return null;
|
|
30
|
+
});
|
|
31
|
+
const onFlowingPage = computed(() => !isLockedType(resolveType(docType.value)));
|
|
32
|
+
const newestUpdate = computed(() => {
|
|
33
|
+
let max = 0;
|
|
34
|
+
for (const e of entries.value) {
|
|
35
|
+
if ((e.updatedAt ?? 0) > max) max = e.updatedAt ?? 0;
|
|
36
|
+
}
|
|
37
|
+
return max;
|
|
38
|
+
});
|
|
39
|
+
const now = ref(Date.now());
|
|
40
|
+
let tick = null;
|
|
41
|
+
onMounted(() => {
|
|
42
|
+
tick = setInterval(() => {
|
|
43
|
+
now.value = Date.now();
|
|
44
|
+
}, 6e4);
|
|
45
|
+
});
|
|
46
|
+
onUnmounted(() => {
|
|
47
|
+
if (tick) clearInterval(tick);
|
|
48
|
+
});
|
|
49
|
+
const rtf = new Intl.RelativeTimeFormat("en", { numeric: "auto" });
|
|
50
|
+
const updatedLabel = computed(() => {
|
|
51
|
+
if (!newestUpdate.value) return null;
|
|
52
|
+
const diff = Math.max(0, now.value - newestUpdate.value);
|
|
53
|
+
const min = Math.floor(diff / 6e4);
|
|
54
|
+
if (min < 1) return "just now";
|
|
55
|
+
if (min < 60) return rtf.format(-min, "minute");
|
|
56
|
+
const h = Math.floor(min / 60);
|
|
57
|
+
if (h < 24) return rtf.format(-h, "hour");
|
|
58
|
+
return rtf.format(-Math.floor(h / 24), "day");
|
|
59
|
+
});
|
|
60
|
+
const visible = computed(
|
|
61
|
+
() => onFlowingPage.value && (!!text.value || showUpdated.value && !!updatedLabel.value)
|
|
62
|
+
);
|
|
63
|
+
</script>
|
|
64
|
+
|
|
65
|
+
<template>
|
|
66
|
+
<footer
|
|
67
|
+
v-if="visible"
|
|
68
|
+
class="relative z-10 flex flex-wrap items-center justify-center gap-x-3 gap-y-1 px-6 pb-10 pt-16 text-center text-xs tracking-wide text-black/40 dark:text-white/35"
|
|
69
|
+
>
|
|
70
|
+
<span v-if="text">{{ text }}</span>
|
|
71
|
+
<span
|
|
72
|
+
v-if="text && showUpdated && updatedLabel"
|
|
73
|
+
class="opacity-60"
|
|
74
|
+
aria-hidden="true"
|
|
75
|
+
>·</span>
|
|
76
|
+
|
|
77
|
+
<!-- Client-only: the relative label depends on the local clock, so
|
|
78
|
+
rendering it on the server guarantees a hydration mismatch. -->
|
|
79
|
+
<ClientOnly>
|
|
80
|
+
<span
|
|
81
|
+
v-if="showUpdated && updatedLabel"
|
|
82
|
+
:title="newestUpdate ? new Date(newestUpdate).toLocaleString() : void 0"
|
|
83
|
+
>
|
|
84
|
+
Updated {{ updatedLabel }}
|
|
85
|
+
</span>
|
|
86
|
+
</ClientOnly>
|
|
87
|
+
|
|
88
|
+
<a
|
|
89
|
+
v-if="feedsEnabled"
|
|
90
|
+
href="/feed.xml"
|
|
91
|
+
class="inline-flex items-center gap-1 underline-offset-4 hover:underline"
|
|
92
|
+
title="Atom feed"
|
|
93
|
+
>
|
|
94
|
+
<UIcon
|
|
95
|
+
name="i-lucide-rss"
|
|
96
|
+
class="size-3"
|
|
97
|
+
aria-hidden="true"
|
|
98
|
+
/>
|
|
99
|
+
Feed
|
|
100
|
+
</a>
|
|
101
|
+
</footer>
|
|
102
|
+
</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,43 @@
|
|
|
1
|
+
interface Waypoint {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
meta?: {
|
|
5
|
+
date?: string;
|
|
6
|
+
geoLat?: number;
|
|
7
|
+
geoLng?: number;
|
|
8
|
+
transport?: string;
|
|
9
|
+
color?: string;
|
|
10
|
+
routeKm?: number;
|
|
11
|
+
routeMin?: number;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
interface Tree {
|
|
15
|
+
createChild: (parentId: string | null, label: string, type?: string) => string;
|
|
16
|
+
updateMeta: (id: string, patch: Record<string, unknown>) => void;
|
|
17
|
+
renameEntry: (id: string, label: string) => void;
|
|
18
|
+
deleteEntry: (id: string) => void;
|
|
19
|
+
}
|
|
20
|
+
type __VLS_Props = {
|
|
21
|
+
tree: Tree;
|
|
22
|
+
waypoints: Waypoint[];
|
|
23
|
+
adding?: boolean;
|
|
24
|
+
map?: {
|
|
25
|
+
flyTo: (wp: Waypoint) => void;
|
|
26
|
+
fitRoute: (a: Waypoint, b: Waypoint) => void;
|
|
27
|
+
} | null;
|
|
28
|
+
};
|
|
29
|
+
declare function addAt(at: {
|
|
30
|
+
lng: number;
|
|
31
|
+
lat: number;
|
|
32
|
+
}): Promise<void>;
|
|
33
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
34
|
+
addAt: typeof addAt;
|
|
35
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
36
|
+
select: (wp: Waypoint) => any;
|
|
37
|
+
"update:adding": (v: boolean) => any;
|
|
38
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
39
|
+
onSelect?: ((wp: Waypoint) => any) | undefined;
|
|
40
|
+
"onUpdate:adding"?: ((v: boolean) => any) | undefined;
|
|
41
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
42
|
+
declare const _default: typeof __VLS_export;
|
|
43
|
+
export default _default;
|