@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,94 @@
|
|
|
1
|
+
const GITHUB_RESERVED = /* @__PURE__ */ new Set([
|
|
2
|
+
"orgs",
|
|
3
|
+
"settings",
|
|
4
|
+
"notifications",
|
|
5
|
+
"explore",
|
|
6
|
+
"topics",
|
|
7
|
+
"collections",
|
|
8
|
+
"sponsors",
|
|
9
|
+
"marketplace",
|
|
10
|
+
"pulls",
|
|
11
|
+
"issues",
|
|
12
|
+
"codespaces",
|
|
13
|
+
"about",
|
|
14
|
+
"features",
|
|
15
|
+
"pricing",
|
|
16
|
+
"login",
|
|
17
|
+
"join",
|
|
18
|
+
"search"
|
|
19
|
+
]);
|
|
20
|
+
export function junServiceRef(raw) {
|
|
21
|
+
const input = (raw ?? "").trim();
|
|
22
|
+
if (!input) return null;
|
|
23
|
+
if (/^[\w.-]+\/[\w.-]+$/.test(input) && !input.includes("://")) {
|
|
24
|
+
return { provider: "github-repo", ref: input };
|
|
25
|
+
}
|
|
26
|
+
let u;
|
|
27
|
+
try {
|
|
28
|
+
u = new URL(input.includes("://") ? input : `https://${input}`);
|
|
29
|
+
} catch {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
if (u.protocol !== "http:" && u.protocol !== "https:") return null;
|
|
33
|
+
const host = u.hostname.replace(/^www\./, "").toLowerCase();
|
|
34
|
+
const seg = u.pathname.split("/").filter(Boolean);
|
|
35
|
+
if (host === "github.com") {
|
|
36
|
+
if (seg.length >= 2 && !GITHUB_RESERVED.has(seg[0].toLowerCase())) {
|
|
37
|
+
return { provider: "github-repo", ref: `${seg[0]}/${seg[1].replace(/\.git$/, "")}` };
|
|
38
|
+
}
|
|
39
|
+
if (seg.length === 1 && !GITHUB_RESERVED.has(seg[0].toLowerCase())) {
|
|
40
|
+
return { provider: "github-user", ref: seg[0] };
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
if (host === "npmjs.com" && seg[0] === "package") {
|
|
44
|
+
const name = seg.slice(1).join("/");
|
|
45
|
+
if (name) return { provider: "npm", ref: name };
|
|
46
|
+
}
|
|
47
|
+
if (host === "crates.io" && seg[0] === "crates" && seg[1]) {
|
|
48
|
+
return { provider: "crates", ref: seg[1] };
|
|
49
|
+
}
|
|
50
|
+
if (/\.(?:xml|rss|atom)$/i.test(u.pathname) || /\/(?:feed|rss|atom)\/?$/i.test(u.pathname)) {
|
|
51
|
+
return { provider: "rss", ref: u.toString() };
|
|
52
|
+
}
|
|
53
|
+
return { provider: "og", ref: u.toString() };
|
|
54
|
+
}
|
|
55
|
+
export function junServiceLabel(provider) {
|
|
56
|
+
switch (provider) {
|
|
57
|
+
case "github-repo":
|
|
58
|
+
return "GitHub repository";
|
|
59
|
+
case "github-user":
|
|
60
|
+
return "GitHub profile";
|
|
61
|
+
case "npm":
|
|
62
|
+
return "npm package";
|
|
63
|
+
case "crates":
|
|
64
|
+
return "Crate";
|
|
65
|
+
case "rss":
|
|
66
|
+
return "Feed";
|
|
67
|
+
case "http":
|
|
68
|
+
return "Uptime";
|
|
69
|
+
case "og":
|
|
70
|
+
return "Link";
|
|
71
|
+
default:
|
|
72
|
+
return provider;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
export function junServiceIcon(provider) {
|
|
76
|
+
switch (provider) {
|
|
77
|
+
case "github-repo":
|
|
78
|
+
return "i-lucide-git-branch";
|
|
79
|
+
case "github-user":
|
|
80
|
+
return "i-lucide-user-round";
|
|
81
|
+
case "npm":
|
|
82
|
+
return "i-lucide-package";
|
|
83
|
+
case "crates":
|
|
84
|
+
return "i-lucide-box";
|
|
85
|
+
case "rss":
|
|
86
|
+
return "i-lucide-rss";
|
|
87
|
+
case "http":
|
|
88
|
+
return "i-lucide-activity";
|
|
89
|
+
case "og":
|
|
90
|
+
return "i-lucide-link";
|
|
91
|
+
default:
|
|
92
|
+
return "i-lucide-radar";
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Douglas–Peucker polyline simplification for route geometries.
|
|
3
|
+
*
|
|
4
|
+
* Mapbox Directions (`overview=full`) returns every road vertex — a long car
|
|
5
|
+
* leg easily carries thousands of points. Left alone that bloats the
|
|
6
|
+
* waypoint's `meta.routeGeo`, which lives in the ROOT document's tree and is
|
|
7
|
+
* therefore synced by every visitor on every page load. One janis.io waypoint
|
|
8
|
+
* had **36,167 coordinate pairs**; the tree carried 85,162 (~1.3 MB of
|
|
9
|
+
* numbers). At globe zoom the shape survives aggressive simplification
|
|
10
|
+
* untouched to the eye.
|
|
11
|
+
*
|
|
12
|
+
* Used in BOTH places: `useJunRouting.directions()` so new legs store slim
|
|
13
|
+
* geometry, and `JunGlobeMap` so existing fat legs render slim without
|
|
14
|
+
* rewriting the document.
|
|
15
|
+
*
|
|
16
|
+
* The tolerance is adaptive — it starts from the path's bounding-box diagonal
|
|
17
|
+
* and doubles until the result fits `maxPoints`, so long routes shed more
|
|
18
|
+
* detail while short hops keep theirs.
|
|
19
|
+
*/
|
|
20
|
+
type Pt = [number, number];
|
|
21
|
+
/** Simplify a `[lng, lat]` polyline to at most `maxPoints` vertices. */
|
|
22
|
+
export declare function junSimplifyPath(coords: Pt[], maxPoints?: number): Pt[];
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
function perpDist(p, a, b) {
|
|
2
|
+
const dx = b[0] - a[0];
|
|
3
|
+
const dy = b[1] - a[1];
|
|
4
|
+
const lenSq = dx * dx + dy * dy;
|
|
5
|
+
if (lenSq === 0) return Math.hypot(p[0] - a[0], p[1] - a[1]);
|
|
6
|
+
const t = Math.max(0, Math.min(1, ((p[0] - a[0]) * dx + (p[1] - a[1]) * dy) / lenSq));
|
|
7
|
+
return Math.hypot(p[0] - (a[0] + t * dx), p[1] - (a[1] + t * dy));
|
|
8
|
+
}
|
|
9
|
+
function douglasPeucker(pts, tolerance) {
|
|
10
|
+
if (pts.length <= 2) return pts;
|
|
11
|
+
const keep = new Uint8Array(pts.length);
|
|
12
|
+
keep[0] = 1;
|
|
13
|
+
keep[pts.length - 1] = 1;
|
|
14
|
+
const stack = [[0, pts.length - 1]];
|
|
15
|
+
while (stack.length) {
|
|
16
|
+
const [first, last] = stack.pop();
|
|
17
|
+
let maxDist = 0;
|
|
18
|
+
let index = -1;
|
|
19
|
+
for (let i = first + 1; i < last; i++) {
|
|
20
|
+
const d = perpDist(pts[i], pts[first], pts[last]);
|
|
21
|
+
if (d > maxDist) {
|
|
22
|
+
maxDist = d;
|
|
23
|
+
index = i;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
if (index > 0 && maxDist > tolerance) {
|
|
27
|
+
keep[index] = 1;
|
|
28
|
+
stack.push([first, index], [index, last]);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
const out = [];
|
|
32
|
+
for (let i = 0; i < pts.length; i++) if (keep[i]) out.push(pts[i]);
|
|
33
|
+
return out;
|
|
34
|
+
}
|
|
35
|
+
export function junSimplifyPath(coords, maxPoints = 200) {
|
|
36
|
+
if (!Array.isArray(coords) || coords.length <= Math.max(2, maxPoints)) {
|
|
37
|
+
return coords;
|
|
38
|
+
}
|
|
39
|
+
let minX = Infinity;
|
|
40
|
+
let minY = Infinity;
|
|
41
|
+
let maxX = -Infinity;
|
|
42
|
+
let maxY = -Infinity;
|
|
43
|
+
for (const [x, y] of coords) {
|
|
44
|
+
if (x < minX) minX = x;
|
|
45
|
+
if (x > maxX) maxX = x;
|
|
46
|
+
if (y < minY) minY = y;
|
|
47
|
+
if (y > maxY) maxY = y;
|
|
48
|
+
}
|
|
49
|
+
const diag = Math.hypot(maxX - minX, maxY - minY) || 1e-6;
|
|
50
|
+
let tolerance = diag / 2048;
|
|
51
|
+
let out = douglasPeucker(coords, tolerance);
|
|
52
|
+
while (out.length > maxPoints) {
|
|
53
|
+
tolerance *= 2;
|
|
54
|
+
out = douglasPeucker(out, tolerance);
|
|
55
|
+
}
|
|
56
|
+
return out;
|
|
57
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transport modes for a globe's travel legs.
|
|
3
|
+
*
|
|
4
|
+
* A "leg" is the journey that ARRIVES at a waypoint, so its mode lives on that
|
|
5
|
+
* waypoint's `meta.transport` and the first waypoint is simply the start.
|
|
6
|
+
*
|
|
7
|
+
* walk / bike / car snap to real paths through the Mapbox Directions API via
|
|
8
|
+
* their `profile`; plane has none and renders as a great-circle arc. Each mode
|
|
9
|
+
* carries a default line colour (overridable per waypoint with `meta.color`)
|
|
10
|
+
* and a timeline dash style.
|
|
11
|
+
*/
|
|
12
|
+
export declare const JUN_TRANSPORT: {
|
|
13
|
+
readonly walk: {
|
|
14
|
+
readonly label: "Walk";
|
|
15
|
+
readonly profile: "walking";
|
|
16
|
+
readonly icon: "i-lucide-footprints";
|
|
17
|
+
readonly color: "#3b82f6";
|
|
18
|
+
readonly dash: "dot";
|
|
19
|
+
};
|
|
20
|
+
readonly bike: {
|
|
21
|
+
readonly label: "Bike";
|
|
22
|
+
readonly profile: "cycling";
|
|
23
|
+
readonly icon: "i-lucide-bike";
|
|
24
|
+
readonly color: "#10b981";
|
|
25
|
+
readonly dash: "short";
|
|
26
|
+
};
|
|
27
|
+
readonly car: {
|
|
28
|
+
readonly label: "Car";
|
|
29
|
+
readonly profile: "driving";
|
|
30
|
+
readonly icon: "i-lucide-car";
|
|
31
|
+
readonly color: "#f97316";
|
|
32
|
+
readonly dash: "long";
|
|
33
|
+
};
|
|
34
|
+
readonly plane: {
|
|
35
|
+
readonly label: "Plane";
|
|
36
|
+
readonly profile: null;
|
|
37
|
+
readonly icon: "i-lucide-plane";
|
|
38
|
+
readonly color: "#ef4444";
|
|
39
|
+
readonly dash: "solid";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export type JunTransportMode = keyof typeof JUN_TRANSPORT;
|
|
43
|
+
export declare const JUN_TRANSPORT_MODES: JunTransportMode[];
|
|
44
|
+
/** Normalise any stored or legacy transport string to a current mode. */
|
|
45
|
+
export declare function normalizeTransport(v?: string | null): JunTransportMode;
|
|
46
|
+
/** The Mapbox Directions profile for a mode, or `null` for great-circle modes. */
|
|
47
|
+
export declare function profileFor(mode: JunTransportMode): string | null;
|
|
48
|
+
/** Default line colour for a mode. `meta.color` overrides it. */
|
|
49
|
+
export declare function colorFor(mode: JunTransportMode): string;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export const JUN_TRANSPORT = {
|
|
2
|
+
walk: { label: "Walk", profile: "walking", icon: "i-lucide-footprints", color: "#3b82f6", dash: "dot" },
|
|
3
|
+
bike: { label: "Bike", profile: "cycling", icon: "i-lucide-bike", color: "#10b981", dash: "short" },
|
|
4
|
+
car: { label: "Car", profile: "driving", icon: "i-lucide-car", color: "#f97316", dash: "long" },
|
|
5
|
+
plane: { label: "Plane", profile: null, icon: "i-lucide-plane", color: "#ef4444", dash: "solid" }
|
|
6
|
+
};
|
|
7
|
+
export const JUN_TRANSPORT_MODES = Object.keys(JUN_TRANSPORT);
|
|
8
|
+
export function normalizeTransport(v) {
|
|
9
|
+
switch (String(v ?? "").toLowerCase()) {
|
|
10
|
+
case "walk":
|
|
11
|
+
case "walking":
|
|
12
|
+
case "foot":
|
|
13
|
+
case "hike":
|
|
14
|
+
return "walk";
|
|
15
|
+
case "bike":
|
|
16
|
+
case "cycle":
|
|
17
|
+
case "cycling":
|
|
18
|
+
case "bicycle":
|
|
19
|
+
return "bike";
|
|
20
|
+
case "car":
|
|
21
|
+
case "drive":
|
|
22
|
+
case "driving":
|
|
23
|
+
case "auto":
|
|
24
|
+
return "car";
|
|
25
|
+
// Anything else — train, boat, an empty value — has no routing profile, so
|
|
26
|
+
// it falls through to plane and still renders as a clean arc rather than
|
|
27
|
+
// failing a Directions call.
|
|
28
|
+
default:
|
|
29
|
+
return "plane";
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export function profileFor(mode) {
|
|
33
|
+
return JUN_TRANSPORT[mode].profile;
|
|
34
|
+
}
|
|
35
|
+
export function colorFor(mode) {
|
|
36
|
+
return JUN_TRANSPORT[mode].color;
|
|
37
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* junVideoSource — what is this URL, and how do we play it?
|
|
3
|
+
*
|
|
4
|
+
* A pure parser, deliberately: it is the only thing standing between an
|
|
5
|
+
* owner-typed string and an `<iframe>`, so it must be trivially testable and
|
|
6
|
+
* must never guess. **An unrecognised URL is `unknown`**, which every caller
|
|
7
|
+
* renders as a link card. Nothing here ever builds an embed out of a host it
|
|
8
|
+
* does not know — "it looks like a video URL, let's try it in an iframe" is how
|
|
9
|
+
* a page-type becomes an HTML-injection surface.
|
|
10
|
+
*
|
|
11
|
+
* Recognised:
|
|
12
|
+
* youtube youtube.com/watch?v=, /embed/, /shorts/, /live/, youtu.be/
|
|
13
|
+
* vimeo vimeo.com/<id>, player.vimeo.com/video/<id>, /<id>/<hash> (unlisted)
|
|
14
|
+
* file a direct .mp4/.webm/.ogv/.mov/.m3u8 URL — plays in <video>, no iframe
|
|
15
|
+
*
|
|
16
|
+
* Start offsets (`?t=90`, `#t=1m30s`, `&start=90`) are parsed into seconds, so a
|
|
17
|
+
* chapter link and a pasted "start here" URL mean the same thing downstream.
|
|
18
|
+
*/
|
|
19
|
+
export type JunVideoKind = 'youtube' | 'vimeo' | 'file' | 'unknown';
|
|
20
|
+
export interface JunVideoSource {
|
|
21
|
+
kind: JunVideoKind;
|
|
22
|
+
/** Provider id — the YouTube/Vimeo video id. Empty for `file`/`unknown`. */
|
|
23
|
+
id: string;
|
|
24
|
+
/** Vimeo unlisted-video hash, which must ride along in the embed URL. */
|
|
25
|
+
hash?: string;
|
|
26
|
+
/** Seconds into the video, from `t`/`start`. `0` when unspecified. */
|
|
27
|
+
start: number;
|
|
28
|
+
/** The URL as given, always — the link card and "open original" use it. */
|
|
29
|
+
href: string;
|
|
30
|
+
/**
|
|
31
|
+
* Privacy-preserving embed URL, or `''` for kinds that need no iframe.
|
|
32
|
+
* YouTube goes through `youtube-nocookie.com`; Vimeo carries `dnt=1`.
|
|
33
|
+
* Only ever constructed AFTER the visitor has clicked play.
|
|
34
|
+
*/
|
|
35
|
+
embedUrl: string;
|
|
36
|
+
/**
|
|
37
|
+
* Provider-hosted poster image, or `''`.
|
|
38
|
+
*
|
|
39
|
+
* **A third-party request in its own right** — fetching it tells YouTube who
|
|
40
|
+
* is reading the page just as reliably as the player would. Callers must gate
|
|
41
|
+
* it on the site's embed policy rather than treating it as a free image.
|
|
42
|
+
*/
|
|
43
|
+
remoteThumbUrl: string;
|
|
44
|
+
}
|
|
45
|
+
/** `90`, `1m30s`, `1h2m3s`, `01:30` → seconds. Anything else → 0. */
|
|
46
|
+
export declare function junParseTimecode(raw: string | null | undefined): number;
|
|
47
|
+
/** Seconds → `1:04:05` / `4:05`. Used by every media surface for durations too. */
|
|
48
|
+
export declare function junFormatTime(seconds: number | undefined | null): string;
|
|
49
|
+
export declare function junVideoSource(raw: string | null | undefined): JunVideoSource;
|
|
50
|
+
/** Human label for a source kind — used in link cards and owner hints. */
|
|
51
|
+
export declare function junVideoProviderLabel(kind: JunVideoKind): string;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
const EMPTY = {
|
|
2
|
+
kind: "unknown",
|
|
3
|
+
id: "",
|
|
4
|
+
start: 0,
|
|
5
|
+
href: "",
|
|
6
|
+
embedUrl: "",
|
|
7
|
+
remoteThumbUrl: ""
|
|
8
|
+
};
|
|
9
|
+
const FILE_EXTENSIONS = [".mp4", ".webm", ".ogv", ".ogg", ".mov", ".m4v", ".m3u8"];
|
|
10
|
+
export function junParseTimecode(raw) {
|
|
11
|
+
if (!raw) return 0;
|
|
12
|
+
const v = String(raw).trim().toLowerCase();
|
|
13
|
+
if (!v) return 0;
|
|
14
|
+
if (/^\d+$/.test(v)) return Number(v);
|
|
15
|
+
const units = v.match(/^(?:(\d+)h)?(?:(\d+)m)?(?:(\d+)s)?$/);
|
|
16
|
+
if (units && (units[1] || units[2] || units[3])) {
|
|
17
|
+
return Number(units[1] ?? 0) * 3600 + Number(units[2] ?? 0) * 60 + Number(units[3] ?? 0);
|
|
18
|
+
}
|
|
19
|
+
if (/^\d{1,2}(?::\d{1,2}){1,2}$/.test(v)) {
|
|
20
|
+
return v.split(":").reduce((acc, part) => acc * 60 + Number(part), 0);
|
|
21
|
+
}
|
|
22
|
+
return 0;
|
|
23
|
+
}
|
|
24
|
+
export function junFormatTime(seconds) {
|
|
25
|
+
const total = Math.max(0, Math.floor(Number(seconds) || 0));
|
|
26
|
+
const h = Math.floor(total / 3600);
|
|
27
|
+
const m = Math.floor(total % 3600 / 60);
|
|
28
|
+
const s = total % 60;
|
|
29
|
+
const pad = (n) => String(n).padStart(2, "0");
|
|
30
|
+
return h ? `${h}:${pad(m)}:${pad(s)}` : `${m}:${pad(s)}`;
|
|
31
|
+
}
|
|
32
|
+
function youtubeId(candidate) {
|
|
33
|
+
return candidate && /^[\w-]{11}$/.test(candidate) ? candidate : "";
|
|
34
|
+
}
|
|
35
|
+
export function junVideoSource(raw) {
|
|
36
|
+
const href = (raw ?? "").trim();
|
|
37
|
+
if (!href) return { ...EMPTY };
|
|
38
|
+
let u;
|
|
39
|
+
try {
|
|
40
|
+
u = new URL(href);
|
|
41
|
+
} catch {
|
|
42
|
+
return { ...EMPTY, href };
|
|
43
|
+
}
|
|
44
|
+
if (u.protocol !== "http:" && u.protocol !== "https:") return { ...EMPTY, href };
|
|
45
|
+
const host = u.hostname.replace(/^www\./, "").toLowerCase();
|
|
46
|
+
const segments = u.pathname.split("/").filter(Boolean);
|
|
47
|
+
const start = junParseTimecode(u.searchParams.get("t") ?? u.searchParams.get("start")) || junParseTimecode(u.hash.replace(/^#t=/, ""));
|
|
48
|
+
if (host === "youtu.be") {
|
|
49
|
+
const id = youtubeId(segments[0]);
|
|
50
|
+
if (id) return youtube(id, start, href);
|
|
51
|
+
}
|
|
52
|
+
if (host === "youtube.com" || host === "m.youtube.com" || host === "youtube-nocookie.com") {
|
|
53
|
+
const fromQuery = youtubeId(u.searchParams.get("v") ?? void 0);
|
|
54
|
+
const fromPath = ["embed", "shorts", "live", "v"].includes(segments[0] ?? "") ? youtubeId(segments[1]) : "";
|
|
55
|
+
const id = fromQuery || fromPath;
|
|
56
|
+
if (id) return youtube(id, start, href);
|
|
57
|
+
}
|
|
58
|
+
if (host === "vimeo.com" || host === "player.vimeo.com") {
|
|
59
|
+
const numeric = segments.findIndex((s) => /^\d+$/.test(s));
|
|
60
|
+
if (numeric !== -1) {
|
|
61
|
+
const id = segments[numeric];
|
|
62
|
+
const next = segments[numeric + 1];
|
|
63
|
+
const hash = next && /^[a-z0-9]{6,}$/i.test(next) ? next : void 0;
|
|
64
|
+
return {
|
|
65
|
+
kind: "vimeo",
|
|
66
|
+
id,
|
|
67
|
+
hash,
|
|
68
|
+
start,
|
|
69
|
+
href,
|
|
70
|
+
embedUrl: `https://player.vimeo.com/video/${id}?${new URLSearchParams({
|
|
71
|
+
dnt: "1",
|
|
72
|
+
...hash ? { h: hash } : {}
|
|
73
|
+
})}${start ? `#t=${start}s` : ""}`,
|
|
74
|
+
// Vimeo's poster needs an oEmbed round trip to discover; there is no
|
|
75
|
+
// guessable URL, so there is nothing to offer here.
|
|
76
|
+
remoteThumbUrl: ""
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
const path = u.pathname.toLowerCase();
|
|
81
|
+
if (FILE_EXTENSIONS.some((ext) => path.endsWith(ext))) {
|
|
82
|
+
return { kind: "file", id: "", start, href, embedUrl: "", remoteThumbUrl: "" };
|
|
83
|
+
}
|
|
84
|
+
return { ...EMPTY, href };
|
|
85
|
+
}
|
|
86
|
+
function youtube(id, start, href) {
|
|
87
|
+
const params = new URLSearchParams({
|
|
88
|
+
// The visitor pressed play; start playing.
|
|
89
|
+
autoplay: "1",
|
|
90
|
+
// No "more videos from around the web" grid on pause.
|
|
91
|
+
rel: "0",
|
|
92
|
+
modestbranding: "1",
|
|
93
|
+
playsinline: "1"
|
|
94
|
+
});
|
|
95
|
+
if (start) params.set("start", String(start));
|
|
96
|
+
return {
|
|
97
|
+
kind: "youtube",
|
|
98
|
+
id,
|
|
99
|
+
start,
|
|
100
|
+
href,
|
|
101
|
+
embedUrl: `https://www.youtube-nocookie.com/embed/${id}?${params}`,
|
|
102
|
+
remoteThumbUrl: `https://i.ytimg.com/vi/${id}/hqdefault.jpg`
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
export function junVideoProviderLabel(kind) {
|
|
106
|
+
if (kind === "youtube") return "YouTube";
|
|
107
|
+
if (kind === "vimeo") return "Vimeo";
|
|
108
|
+
if (kind === "file") return "Video file";
|
|
109
|
+
return "Link";
|
|
110
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Client-side twin of `server/utils/junVisibility.ts` — **keep the two in
|
|
3
|
+
* step.** Nitro's server utils and the app's auto-imported utils are separate
|
|
4
|
+
* bundles; a shared file would have to live outside both and be imported by
|
|
5
|
+
* path, which buys nothing for a four-line predicate.
|
|
6
|
+
*
|
|
7
|
+
* See the server copy for why `meta.hidden` is not a sufficient rule.
|
|
8
|
+
*/
|
|
9
|
+
export interface JunVisibilityEntry {
|
|
10
|
+
type?: string;
|
|
11
|
+
meta?: Record<string, unknown>;
|
|
12
|
+
}
|
|
13
|
+
/** True for documents only the signed-in owner may see. */
|
|
14
|
+
export declare function isJunOwnerOnlyDoc(entry: JunVisibilityEntry | undefined | null): boolean;
|
package/dist/types.d.mts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { type JunBackdropKind, type JunBrand, type JunCampfireOptions, type JunCampfirePillMode, type JunCampfirePlacement, type JunCampfireRosterStyle, type JunCampfireSize, type JunCampfireTab, type JunContextMenuOptions, type JunEmbedOptions, type JunFeatures, type JunGuestNames, type JunJanitorBaselineMode, type JunJanitorIdentity, type JunJanitorIdentityMode, type JunJanitorMode, type JunJanitorOptions, type JunJsonLdSpec, type JunLayoutPolicy, type JunMosaicOptions, type JunNavActiveStyle, type JunNavItemMode, type JunNavPlacement, type JunNavShape, type JunNavSize, type JunNavigationOptions, type JunPageTypeKey, type JunPageTypeOverride, type JunPageTypesOption, type JunPalette, type JunPaletteSet, type JunRuntimeOptions, type JunSeedNode, type JunSeedOptions, type JunServicesOptions, type JunSiteConfigDefaults } from '../dist/runtime/types.js'
|
|
2
|
+
|
|
3
|
+
export { default } from './module.mjs'
|
|
4
|
+
|
|
5
|
+
export { type ModuleOptions } from './module.mjs'
|
package/package.json
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@abraca/junis",
|
|
3
|
+
"version": "2.80.0",
|
|
4
|
+
"description": "Website-builder Nuxt module for the Abracadabra CRDT platform — page-type renderers, presence chrome, studio editing and SSR, all driven by documents",
|
|
5
|
+
"repository": "abracadabra/jun-is",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/types.d.mts",
|
|
11
|
+
"import": "./dist/module.mjs"
|
|
12
|
+
},
|
|
13
|
+
"./css": "./dist/runtime/assets/css/jun.css"
|
|
14
|
+
},
|
|
15
|
+
"main": "./dist/module.mjs",
|
|
16
|
+
"typesVersions": {
|
|
17
|
+
"*": {
|
|
18
|
+
".": [
|
|
19
|
+
"./dist/types.d.mts"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@nuxt/kit": "^4.4.6",
|
|
31
|
+
"@vueuse/core": "^14.3.0",
|
|
32
|
+
"defu": "^6.1.7"
|
|
33
|
+
},
|
|
34
|
+
"//deps": "SINGLETONS ARE PEERS, NEVER DEPENDENCIES. @abraca/convert was a dependency until 2.79.0 and had to move: it peers on yjs, and a nested second copy of it means a Y.XmlElement built by one yjs crossing into a fragment owned by another — 'Unexpected content type in insert operation', which no bundler config fixes. Same reason @tiptap/core, vue and yjs are peers. Anything holding global identity or editor/CRDT state belongs here so the app resolves exactly one copy; wand.toml [pins] + `wand doctor` enforce the versions.",
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"@abraca/convert": "^2.78.0",
|
|
37
|
+
"@abraca/dabra": "^2.74.0",
|
|
38
|
+
"@abraca/nuxt": "^2.74.0",
|
|
39
|
+
"@nuxt/fonts": "^0.14.0",
|
|
40
|
+
"@nuxt/icon": "^2.0.0",
|
|
41
|
+
"@nuxt/image": "^2.0.0",
|
|
42
|
+
"@nuxt/ui": "^4.0.0",
|
|
43
|
+
"@nuxtjs/color-mode": "^3.5.0",
|
|
44
|
+
"@tiptap/core": "^3.0.0",
|
|
45
|
+
"@vueuse/motion": "^3.0.0",
|
|
46
|
+
"mapbox-gl": "^3.0.0",
|
|
47
|
+
"nuxt": "^4.0.0",
|
|
48
|
+
"shaders": "^3.0.0",
|
|
49
|
+
"vue": "^3.5.0",
|
|
50
|
+
"yjs": "^13.0.0"
|
|
51
|
+
},
|
|
52
|
+
"peerDependenciesMeta": {
|
|
53
|
+
"mapbox-gl": {
|
|
54
|
+
"optional": true
|
|
55
|
+
},
|
|
56
|
+
"shaders": {
|
|
57
|
+
"optional": true
|
|
58
|
+
},
|
|
59
|
+
"@nuxt/fonts": {
|
|
60
|
+
"optional": true
|
|
61
|
+
},
|
|
62
|
+
"@nuxt/image": {
|
|
63
|
+
"optional": true
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@abraca/convert": "^2.79.0",
|
|
68
|
+
"@abraca/dabra": "^2.79.0",
|
|
69
|
+
"@abraca/nuxt": "^2.79.0",
|
|
70
|
+
"@iconify-json/lucide": "^1.2.108",
|
|
71
|
+
"@iconify-json/simple-icons": "^1.2.83",
|
|
72
|
+
"@nuxt/eslint-config": "^1.15.2",
|
|
73
|
+
"@nuxt/fonts": "^0.14.0",
|
|
74
|
+
"@nuxt/icon": "^2.0.0",
|
|
75
|
+
"@nuxt/image": "^2.0.0",
|
|
76
|
+
"@nuxt/module-builder": "^1.0.2",
|
|
77
|
+
"@nuxt/schema": "^4.4.6",
|
|
78
|
+
"@nuxt/ui": "^4.7.1",
|
|
79
|
+
"@nuxtjs/color-mode": "^3.5.0",
|
|
80
|
+
"@tiptap/core": "^3.23.5",
|
|
81
|
+
"@types/node": "latest",
|
|
82
|
+
"@vueuse/motion": "^3.0.3",
|
|
83
|
+
"@vueuse/nuxt": "^14.3.0",
|
|
84
|
+
"eslint": "^10.4.0",
|
|
85
|
+
"mapbox-gl": "^3.24.0",
|
|
86
|
+
"nuxt": "^4.4.6",
|
|
87
|
+
"tailwindcss": "^4.3.0",
|
|
88
|
+
"typescript": "^6.0.3",
|
|
89
|
+
"vue-tsc": "^3.3.1",
|
|
90
|
+
"yjs": "^13.6.30"
|
|
91
|
+
},
|
|
92
|
+
"scripts": {
|
|
93
|
+
"dev": "npm run dev:prepare && node scripts/dev.mjs",
|
|
94
|
+
"dev:backend": "node scripts/dev-backend.mjs",
|
|
95
|
+
"dev:nuxt": "nuxt dev playground --port 3003",
|
|
96
|
+
"dev:build": "nuxt build playground",
|
|
97
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground",
|
|
98
|
+
"dev:clean": "node scripts/dev-clean.mjs",
|
|
99
|
+
"lint": "eslint .",
|
|
100
|
+
"janitor:watch": "node scripts/janitor-watch.mjs",
|
|
101
|
+
"test": "node scripts/test.mjs",
|
|
102
|
+
"parity": "node scripts/parity-ssr.mjs",
|
|
103
|
+
"parity:nav": "node scripts/parity-nav.mjs",
|
|
104
|
+
"typecheck": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit",
|
|
105
|
+
"release": "npm run lint && npm run prepack",
|
|
106
|
+
"docker:up": "docker compose up -d --build",
|
|
107
|
+
"docker:down": "docker compose down",
|
|
108
|
+
"docker:logs": "docker compose logs -f",
|
|
109
|
+
"docker:reset": "node scripts/docker-reset.mjs"
|
|
110
|
+
}
|
|
111
|
+
}
|