@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,495 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from "vue";
|
|
3
|
+
import { useColorMode, useJunStudio } from "#imports";
|
|
4
|
+
import mapboxgl from "mapbox-gl";
|
|
5
|
+
import "mapbox-gl/dist/mapbox-gl.css";
|
|
6
|
+
import { normalizeTransport, colorFor } from "../utils/junTransportModes";
|
|
7
|
+
import { junMapboxToken } from "../utils/junMapboxToken";
|
|
8
|
+
import { junSimplifyPath as simplifyPath } from "../utils/junSimplifyPath";
|
|
9
|
+
const props = defineProps({
|
|
10
|
+
waypoints: { type: Array, required: true },
|
|
11
|
+
selectedId: { type: [String, null], required: false },
|
|
12
|
+
adding: { type: Boolean, required: false },
|
|
13
|
+
awareness: { type: [Object, null], required: false }
|
|
14
|
+
});
|
|
15
|
+
const emit = defineEmits(["ready", "select", "mapadd"]);
|
|
16
|
+
const colorMode = useColorMode();
|
|
17
|
+
const isDark = computed(() => {
|
|
18
|
+
if (colorMode.value === "dark") return true;
|
|
19
|
+
if (colorMode.value === "light") return false;
|
|
20
|
+
return import.meta.client && document.documentElement.classList.contains("dark");
|
|
21
|
+
});
|
|
22
|
+
const { editing } = useJunStudio();
|
|
23
|
+
const reducedMotion = import.meta.client && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
24
|
+
const NEUTRAL_MARKER = "#e4e4e7";
|
|
25
|
+
const mapContainer = ref(null);
|
|
26
|
+
let map = null;
|
|
27
|
+
let ro = null;
|
|
28
|
+
const markerInstances = /* @__PURE__ */ new Map();
|
|
29
|
+
const showLabels = ref(false);
|
|
30
|
+
const popupId = ref(null);
|
|
31
|
+
const popupWp = computed(() => props.waypoints.find((w) => w.id === popupId.value) ?? null);
|
|
32
|
+
const popupAnchor = ref(null);
|
|
33
|
+
function locOf(wp) {
|
|
34
|
+
const m = wp.meta;
|
|
35
|
+
if (m && typeof m.geoLat === "number" && typeof m.geoLng === "number") {
|
|
36
|
+
return { lat: m.geoLat, lng: m.geoLng };
|
|
37
|
+
}
|
|
38
|
+
if (m) {
|
|
39
|
+
for (const key of Object.keys(m)) {
|
|
40
|
+
if (key.startsWith("_lat_")) {
|
|
41
|
+
const lat = m[key];
|
|
42
|
+
const lng = m["_lng_" + key.slice(5)];
|
|
43
|
+
if (typeof lat === "number" && typeof lng === "number") return { lat, lng };
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
const popupColor = computed(() => popupWp.value?.meta?.color || NEUTRAL_MARKER);
|
|
50
|
+
const getLightPreset = () => isDark.value ? "night" : "day";
|
|
51
|
+
function buildMarkerEl(wp) {
|
|
52
|
+
const color = wp.meta?.color || NEUTRAL_MARKER;
|
|
53
|
+
const container = document.createElement("div");
|
|
54
|
+
container.className = "jun-map-marker";
|
|
55
|
+
container.dataset.id = wp.id;
|
|
56
|
+
const orb = document.createElement("div");
|
|
57
|
+
orb.className = "jun-map-orb";
|
|
58
|
+
orb.style.setProperty("--c", color);
|
|
59
|
+
const core = document.createElement("div");
|
|
60
|
+
core.className = "jun-map-core";
|
|
61
|
+
orb.appendChild(core);
|
|
62
|
+
const label = document.createElement("div");
|
|
63
|
+
label.className = "jun-map-label";
|
|
64
|
+
label.textContent = wp.label;
|
|
65
|
+
container.appendChild(orb);
|
|
66
|
+
container.appendChild(label);
|
|
67
|
+
return container;
|
|
68
|
+
}
|
|
69
|
+
function syncMarkers() {
|
|
70
|
+
if (!map) return;
|
|
71
|
+
const seen = /* @__PURE__ */ new Set();
|
|
72
|
+
for (const wp of props.waypoints) {
|
|
73
|
+
const loc = locOf(wp);
|
|
74
|
+
if (!loc) continue;
|
|
75
|
+
seen.add(wp.id);
|
|
76
|
+
const existing = markerInstances.get(wp.id);
|
|
77
|
+
if (existing) {
|
|
78
|
+
existing.setLngLat([loc.lng, loc.lat]);
|
|
79
|
+
const orb = existing.getElement().querySelector(".jun-map-orb");
|
|
80
|
+
if (orb) orb.style.setProperty("--c", wp.meta?.color || NEUTRAL_MARKER);
|
|
81
|
+
} else {
|
|
82
|
+
const el = buildMarkerEl(wp);
|
|
83
|
+
el.addEventListener("click", (ev) => {
|
|
84
|
+
ev.stopPropagation();
|
|
85
|
+
emit("select", wp);
|
|
86
|
+
popupId.value = wp.id;
|
|
87
|
+
updatePopupPos();
|
|
88
|
+
});
|
|
89
|
+
const m = new mapboxgl.Marker({ element: el, anchor: "center" }).setLngLat([loc.lng, loc.lat]).addTo(map);
|
|
90
|
+
markerInstances.set(wp.id, m);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
for (const [id, m] of [...markerInstances]) {
|
|
94
|
+
if (!seen.has(id)) {
|
|
95
|
+
m.remove();
|
|
96
|
+
markerInstances.delete(id);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
applySelectionClass();
|
|
100
|
+
}
|
|
101
|
+
function applySelectionClass() {
|
|
102
|
+
const hasSel = !!props.selectedId;
|
|
103
|
+
for (const [id, m] of markerInstances) {
|
|
104
|
+
const el = m.getElement();
|
|
105
|
+
el.classList.toggle("is-selected", id === props.selectedId);
|
|
106
|
+
el.classList.toggle("is-dimmed", hasSel && id !== props.selectedId);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
function greatCircle(a, b, steps = 48) {
|
|
110
|
+
const toR = Math.PI / 180;
|
|
111
|
+
const lat1 = a.lat * toR, lon1 = a.lng * toR, lat2 = b.lat * toR, lon2 = b.lng * toR;
|
|
112
|
+
const d = 2 * Math.asin(Math.sqrt(
|
|
113
|
+
Math.sin((lat2 - lat1) / 2) ** 2 + Math.cos(lat1) * Math.cos(lat2) * Math.sin((lon2 - lon1) / 2) ** 2
|
|
114
|
+
));
|
|
115
|
+
if (d === 0) return [[a.lng, a.lat], [b.lng, b.lat]];
|
|
116
|
+
const pts = [];
|
|
117
|
+
let prevLng = null;
|
|
118
|
+
for (let i = 0; i <= steps; i++) {
|
|
119
|
+
const f = i / steps;
|
|
120
|
+
const A = Math.sin((1 - f) * d) / Math.sin(d);
|
|
121
|
+
const B = Math.sin(f * d) / Math.sin(d);
|
|
122
|
+
const x = A * Math.cos(lat1) * Math.cos(lon1) + B * Math.cos(lat2) * Math.cos(lon2);
|
|
123
|
+
const y = A * Math.cos(lat1) * Math.sin(lon1) + B * Math.cos(lat2) * Math.sin(lon2);
|
|
124
|
+
const z = A * Math.sin(lat1) + B * Math.sin(lat2);
|
|
125
|
+
const lat = Math.atan2(z, Math.sqrt(x * x + y * y)) / toR;
|
|
126
|
+
let lng = Math.atan2(y, x) / toR;
|
|
127
|
+
if (prevLng !== null) {
|
|
128
|
+
while (lng - prevLng > 180) lng -= 360;
|
|
129
|
+
while (lng - prevLng < -180) lng += 360;
|
|
130
|
+
}
|
|
131
|
+
prevLng = lng;
|
|
132
|
+
pts.push([lng, lat]);
|
|
133
|
+
}
|
|
134
|
+
return pts;
|
|
135
|
+
}
|
|
136
|
+
function connectorFeatures() {
|
|
137
|
+
const feats = [];
|
|
138
|
+
const pts = props.waypoints.map((w) => ({ wp: w, loc: locOf(w) })).filter((p) => p.loc);
|
|
139
|
+
for (let i = 1; i < pts.length; i++) {
|
|
140
|
+
const a = pts[i - 1];
|
|
141
|
+
const b = pts[i];
|
|
142
|
+
const mode = normalizeTransport(b.wp.meta?.transport);
|
|
143
|
+
const snapped = b.wp.meta?.routeGeo;
|
|
144
|
+
const coords = Array.isArray(snapped) && snapped.length >= 2 ? simplifyPath(snapped) : greatCircle(a.loc, b.loc);
|
|
145
|
+
feats.push({
|
|
146
|
+
type: "Feature",
|
|
147
|
+
geometry: { type: "LineString", coordinates: coords },
|
|
148
|
+
properties: {
|
|
149
|
+
color: b.wp.meta?.color || colorFor(mode),
|
|
150
|
+
mode,
|
|
151
|
+
fromId: a.wp.id,
|
|
152
|
+
toId: b.wp.id
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
return feats;
|
|
157
|
+
}
|
|
158
|
+
function syncLines() {
|
|
159
|
+
if (!map || !map.getSource("jun-lines")) return;
|
|
160
|
+
map.getSource("jun-lines").setData({
|
|
161
|
+
type: "FeatureCollection",
|
|
162
|
+
features: connectorFeatures()
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
function flyParams(loc) {
|
|
166
|
+
return {
|
|
167
|
+
center: [loc.lng, loc.lat],
|
|
168
|
+
zoom: 15,
|
|
169
|
+
pitch: 55,
|
|
170
|
+
bearing: 0,
|
|
171
|
+
curve: 1.6,
|
|
172
|
+
duration: 6e3,
|
|
173
|
+
essential: true
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
function flyTo(wp) {
|
|
177
|
+
const loc = locOf(wp);
|
|
178
|
+
if (!loc || !map) return;
|
|
179
|
+
map.flyTo(flyParams(loc));
|
|
180
|
+
popupId.value = wp.id;
|
|
181
|
+
updatePopupPos();
|
|
182
|
+
props.awareness?.setLocalStateField("globeFocus", {
|
|
183
|
+
center: [loc.lng, loc.lat],
|
|
184
|
+
zoom: 15,
|
|
185
|
+
pitch: 55,
|
|
186
|
+
bearing: 0,
|
|
187
|
+
t: Date.now()
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
function fitRoute(a, b) {
|
|
191
|
+
const la = locOf(a);
|
|
192
|
+
const lb = locOf(b);
|
|
193
|
+
if (!la || !lb || !map) return;
|
|
194
|
+
const bounds = new mapboxgl.LngLatBounds();
|
|
195
|
+
bounds.extend([la.lng, la.lat]);
|
|
196
|
+
bounds.extend([lb.lng, lb.lat]);
|
|
197
|
+
map.fitBounds(bounds, { padding: 140, maxZoom: 13, pitch: 45, duration: 3e3 });
|
|
198
|
+
}
|
|
199
|
+
defineExpose({ flyTo, fitRoute });
|
|
200
|
+
function updatePopupPos() {
|
|
201
|
+
const el = popupAnchor.value;
|
|
202
|
+
if (!map || !el || !popupWp.value) return;
|
|
203
|
+
const loc = locOf(popupWp.value);
|
|
204
|
+
if (!loc) {
|
|
205
|
+
el.style.visibility = "hidden";
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
const p = map.project([loc.lng, loc.lat]);
|
|
209
|
+
const c = map.getCanvas();
|
|
210
|
+
const onScreen = p.x >= -40 && p.y >= -40 && p.x <= c.clientWidth + 40 && p.y <= c.clientHeight + 40;
|
|
211
|
+
el.style.transform = `translate3d(${p.x}px, ${p.y}px, 0)`;
|
|
212
|
+
el.style.visibility = onScreen ? "visible" : "hidden";
|
|
213
|
+
}
|
|
214
|
+
function closePopup() {
|
|
215
|
+
popupId.value = null;
|
|
216
|
+
}
|
|
217
|
+
watch(popupWp, (wp) => {
|
|
218
|
+
if (!wp) return;
|
|
219
|
+
void nextTick(updatePopupPos);
|
|
220
|
+
});
|
|
221
|
+
const lastSeen = /* @__PURE__ */ new Map();
|
|
222
|
+
function onAwareness() {
|
|
223
|
+
if (!map || !props.awareness) return;
|
|
224
|
+
const self = props.awareness.clientID;
|
|
225
|
+
for (const [clientId, state] of props.awareness.getStates()) {
|
|
226
|
+
if (clientId === self) continue;
|
|
227
|
+
const focus = state?.globeFocus;
|
|
228
|
+
if (!focus?.t) continue;
|
|
229
|
+
if ((lastSeen.get(clientId) ?? 0) >= focus.t) continue;
|
|
230
|
+
lastSeen.set(clientId, focus.t);
|
|
231
|
+
map.flyTo({ center: focus.center, zoom: focus.zoom, pitch: focus.pitch, bearing: focus.bearing, curve: 1.6, duration: 6e3, essential: true });
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
const lineWidthCore = ["interpolate", ["linear"], ["zoom"], 2, 1.5, 6, 2.5, 12, 5, 18, 8];
|
|
235
|
+
const lineWidthGlow = ["interpolate", ["linear"], ["zoom"], 2, 6, 6, 10, 12, 16, 18, 22];
|
|
236
|
+
const DASH_SEQ = [
|
|
237
|
+
[0, 4, 3],
|
|
238
|
+
[0.5, 4, 2.5],
|
|
239
|
+
[1, 4, 2],
|
|
240
|
+
[1.5, 4, 1.5],
|
|
241
|
+
[2, 4, 1],
|
|
242
|
+
[2.5, 4, 0.5],
|
|
243
|
+
[3, 4, 0],
|
|
244
|
+
[0, 0.5, 3, 3.5],
|
|
245
|
+
[0, 1, 3, 3],
|
|
246
|
+
[0, 1.5, 3, 2.5],
|
|
247
|
+
[0, 2, 3, 2],
|
|
248
|
+
[0, 2.5, 3, 1.5],
|
|
249
|
+
[0, 3, 3, 1],
|
|
250
|
+
[0, 3.5, 3, 0.5]
|
|
251
|
+
];
|
|
252
|
+
let dashStep = 0;
|
|
253
|
+
let dashRaf = 0;
|
|
254
|
+
let dashLast = 0;
|
|
255
|
+
function animateDash(ts) {
|
|
256
|
+
dashRaf = requestAnimationFrame(animateDash);
|
|
257
|
+
if (document.hidden) return;
|
|
258
|
+
if (ts - dashLast < 70) return;
|
|
259
|
+
dashLast = ts;
|
|
260
|
+
const next = Math.floor(ts / 70 % DASH_SEQ.length);
|
|
261
|
+
if (next !== dashStep) {
|
|
262
|
+
dashStep = next;
|
|
263
|
+
if (map?.getLayer("jun-lines-flow")) {
|
|
264
|
+
map.setPaintProperty("jun-lines-flow", "line-dasharray", DASH_SEQ[dashStep]);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
onMounted(() => {
|
|
269
|
+
if (!mapContainer.value) return;
|
|
270
|
+
mapboxgl.accessToken = junMapboxToken() || mapboxgl.accessToken;
|
|
271
|
+
map = new mapboxgl.Map({
|
|
272
|
+
container: mapContainer.value,
|
|
273
|
+
style: "mapbox://styles/mapbox/standard",
|
|
274
|
+
projection: "globe",
|
|
275
|
+
center: [0, 20],
|
|
276
|
+
zoom: reducedMotion ? 2 : 0.9,
|
|
277
|
+
// intro settles from far out
|
|
278
|
+
pitch: 0,
|
|
279
|
+
bearing: 0,
|
|
280
|
+
antialias: true,
|
|
281
|
+
attributionControl: false
|
|
282
|
+
});
|
|
283
|
+
map.on("style.load", () => {
|
|
284
|
+
map.setConfigProperty("basemap", "lightPreset", getLightPreset());
|
|
285
|
+
map.setFog({
|
|
286
|
+
"color": isDark.value ? "rgba(20,22,30,0.9)" : "rgba(220,228,240,0.9)",
|
|
287
|
+
"high-color": isDark.value ? "rgba(36,42,66,1)" : "rgba(150,180,220,1)",
|
|
288
|
+
"horizon-blend": 0.06,
|
|
289
|
+
"space-color": isDark.value ? "#05060a" : "#0a1020",
|
|
290
|
+
"star-intensity": isDark.value ? 0.5 : 0.05
|
|
291
|
+
});
|
|
292
|
+
if (!map.getSource("jun-lines")) {
|
|
293
|
+
map.addSource("jun-lines", { type: "geojson", data: { type: "FeatureCollection", features: [] } });
|
|
294
|
+
map.addLayer({
|
|
295
|
+
id: "jun-lines-glow",
|
|
296
|
+
type: "line",
|
|
297
|
+
source: "jun-lines",
|
|
298
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
299
|
+
paint: {
|
|
300
|
+
"line-color": ["get", "color"],
|
|
301
|
+
"line-width": lineWidthGlow,
|
|
302
|
+
"line-opacity": 0.22,
|
|
303
|
+
"line-blur": 8,
|
|
304
|
+
"line-emissive-strength": 1
|
|
305
|
+
}
|
|
306
|
+
});
|
|
307
|
+
map.addLayer({
|
|
308
|
+
id: "jun-lines-core",
|
|
309
|
+
type: "line",
|
|
310
|
+
source: "jun-lines",
|
|
311
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
312
|
+
paint: {
|
|
313
|
+
"line-color": ["get", "color"],
|
|
314
|
+
"line-width": lineWidthCore,
|
|
315
|
+
"line-opacity": 0.85,
|
|
316
|
+
"line-emissive-strength": 1
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
map.addLayer({
|
|
320
|
+
id: "jun-lines-flow",
|
|
321
|
+
type: "line",
|
|
322
|
+
source: "jun-lines",
|
|
323
|
+
filter: ["==", ["get", "mode"], "plane"],
|
|
324
|
+
layout: { "line-cap": "butt", "line-join": "round" },
|
|
325
|
+
paint: {
|
|
326
|
+
"line-color": "#ffffff",
|
|
327
|
+
"line-width": lineWidthCore,
|
|
328
|
+
"line-opacity": 0.9,
|
|
329
|
+
"line-dasharray": [0, 4, 3],
|
|
330
|
+
"line-emissive-strength": 1
|
|
331
|
+
}
|
|
332
|
+
});
|
|
333
|
+
const wpById = () => new Map(props.waypoints.map((w) => [w.id, w]));
|
|
334
|
+
const onLineClick = (e) => {
|
|
335
|
+
const f = e.features?.[0];
|
|
336
|
+
if (!f) return;
|
|
337
|
+
e.originalEvent.stopPropagation();
|
|
338
|
+
const by = wpById();
|
|
339
|
+
const a = by.get(f.properties?.fromId);
|
|
340
|
+
const b = by.get(f.properties?.toId);
|
|
341
|
+
if (a && b) fitRoute(a, b);
|
|
342
|
+
};
|
|
343
|
+
map.on("click", "jun-lines-core", onLineClick);
|
|
344
|
+
map.on("click", "jun-lines-flow", onLineClick);
|
|
345
|
+
for (const layer of ["jun-lines-core", "jun-lines-flow", "jun-lines-glow"]) {
|
|
346
|
+
map.on("mouseenter", layer, () => {
|
|
347
|
+
map.getCanvas().style.cursor = "pointer";
|
|
348
|
+
map.setPaintProperty("jun-lines-glow", "line-opacity", 0.4);
|
|
349
|
+
});
|
|
350
|
+
map.on("mouseleave", layer, () => {
|
|
351
|
+
map.getCanvas().style.cursor = "";
|
|
352
|
+
map.setPaintProperty("jun-lines-glow", "line-opacity", 0.22);
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
syncLines();
|
|
357
|
+
syncMarkers();
|
|
358
|
+
});
|
|
359
|
+
map.on("click", (e) => {
|
|
360
|
+
const t = e.originalEvent.target;
|
|
361
|
+
if (t?.closest(".jun-map-marker")) return;
|
|
362
|
+
if (props.adding) {
|
|
363
|
+
emit("mapadd", { lng: e.lngLat.lng, lat: e.lngLat.lat });
|
|
364
|
+
return;
|
|
365
|
+
}
|
|
366
|
+
closePopup();
|
|
367
|
+
});
|
|
368
|
+
map.on("render", updatePopupPos);
|
|
369
|
+
map.on("zoom", () => {
|
|
370
|
+
if (map) showLabels.value = map.getZoom() >= 3.5;
|
|
371
|
+
});
|
|
372
|
+
let introDone = false;
|
|
373
|
+
const finishIntro = () => {
|
|
374
|
+
if (introDone) return;
|
|
375
|
+
introDone = true;
|
|
376
|
+
emit("ready");
|
|
377
|
+
};
|
|
378
|
+
map.on("load", () => {
|
|
379
|
+
map.resize();
|
|
380
|
+
showLabels.value = map.getZoom() >= 3.5;
|
|
381
|
+
if (!reducedMotion) {
|
|
382
|
+
map.easeTo({ center: [0, 20], zoom: 2, duration: 2600, essential: true });
|
|
383
|
+
map.once("moveend", finishIntro);
|
|
384
|
+
setTimeout(finishIntro, 3200);
|
|
385
|
+
} else {
|
|
386
|
+
finishIntro();
|
|
387
|
+
}
|
|
388
|
+
if (!dashRaf && !reducedMotion) dashRaf = requestAnimationFrame(animateDash);
|
|
389
|
+
});
|
|
390
|
+
ro = new ResizeObserver(() => map?.resize());
|
|
391
|
+
ro.observe(mapContainer.value);
|
|
392
|
+
props.awareness?.on("change", onAwareness);
|
|
393
|
+
});
|
|
394
|
+
watch(() => props.waypoints, () => {
|
|
395
|
+
syncMarkers();
|
|
396
|
+
syncLines();
|
|
397
|
+
}, { deep: true });
|
|
398
|
+
watch(() => props.selectedId, applySelectionClass);
|
|
399
|
+
watch(() => props.adding, (on) => {
|
|
400
|
+
const c = map?.getCanvas();
|
|
401
|
+
if (c) c.style.cursor = on ? "crosshair" : "";
|
|
402
|
+
});
|
|
403
|
+
watch(isDark, () => {
|
|
404
|
+
if (!map?.isStyleLoaded()) return;
|
|
405
|
+
map.setConfigProperty("basemap", "lightPreset", getLightPreset());
|
|
406
|
+
map.setFog({
|
|
407
|
+
"color": isDark.value ? "rgba(20,22,30,0.9)" : "rgba(220,228,240,0.9)",
|
|
408
|
+
"high-color": isDark.value ? "rgba(36,42,66,1)" : "rgba(150,180,220,1)",
|
|
409
|
+
"horizon-blend": 0.06,
|
|
410
|
+
"space-color": isDark.value ? "#05060a" : "#0a1020",
|
|
411
|
+
"star-intensity": isDark.value ? 0.5 : 0.05
|
|
412
|
+
});
|
|
413
|
+
});
|
|
414
|
+
onBeforeUnmount(() => {
|
|
415
|
+
props.awareness?.off("change", onAwareness);
|
|
416
|
+
if (dashRaf) cancelAnimationFrame(dashRaf);
|
|
417
|
+
dashRaf = 0;
|
|
418
|
+
ro?.disconnect();
|
|
419
|
+
ro = null;
|
|
420
|
+
for (const m of markerInstances.values()) m.remove();
|
|
421
|
+
markerInstances.clear();
|
|
422
|
+
map?.remove();
|
|
423
|
+
map = null;
|
|
424
|
+
});
|
|
425
|
+
</script>
|
|
426
|
+
|
|
427
|
+
<template>
|
|
428
|
+
<div
|
|
429
|
+
class="jun-globe-wrap"
|
|
430
|
+
:class="{ 'labels-on': showLabels }"
|
|
431
|
+
>
|
|
432
|
+
<div
|
|
433
|
+
ref="mapContainer"
|
|
434
|
+
class="jun-globe-map"
|
|
435
|
+
/>
|
|
436
|
+
|
|
437
|
+
<!-- Doc-content popup that tracks the marker. The ANCHOR carries the
|
|
438
|
+
screen position (written imperatively by updatePopupPos — never
|
|
439
|
+
through Vue, see the comment there); the card inside it keeps the
|
|
440
|
+
static "sit above the orb" offset. -->
|
|
441
|
+
<Transition name="jun-mappop-fade">
|
|
442
|
+
<div
|
|
443
|
+
v-if="popupWp"
|
|
444
|
+
ref="popupAnchor"
|
|
445
|
+
class="jun-mappop-anchor"
|
|
446
|
+
>
|
|
447
|
+
<div class="jun-mappop jun-chrome">
|
|
448
|
+
<header class="jun-mappop-head">
|
|
449
|
+
<span
|
|
450
|
+
class="jun-mappop-dot"
|
|
451
|
+
:style="{ '--c': popupColor }"
|
|
452
|
+
/>
|
|
453
|
+
<span class="jun-mappop-title">{{ popupWp.label }}</span>
|
|
454
|
+
<span
|
|
455
|
+
v-if="popupWp.meta?.date || popupWp.meta?.transport"
|
|
456
|
+
class="jun-mappop-meta"
|
|
457
|
+
>
|
|
458
|
+
{{ [popupWp.meta?.date && new Date(popupWp.meta.date).toLocaleDateString("en-US", { year: "numeric", month: "short", day: "numeric" }), popupWp.meta?.transport].filter(Boolean).join(" \xB7 ") }}
|
|
459
|
+
</span>
|
|
460
|
+
<UButton
|
|
461
|
+
icon="i-lucide-x"
|
|
462
|
+
size="xs"
|
|
463
|
+
color="neutral"
|
|
464
|
+
variant="ghost"
|
|
465
|
+
class="jun-mappop-close"
|
|
466
|
+
aria-label="Close"
|
|
467
|
+
@click="closePopup"
|
|
468
|
+
/>
|
|
469
|
+
</header>
|
|
470
|
+
<div class="jun-mappop-body">
|
|
471
|
+
<!-- KEYED BY DOC ID — do not remove.
|
|
472
|
+
`<ADocRenderer>`/`<AEditor>` are built to be mounted FOR a
|
|
473
|
+
document, not to have one swapped underneath them: AEditor's
|
|
474
|
+
child-provider watcher keys off `ownerProvider` (unchanged by a
|
|
475
|
+
docId swap), so the TipTap/Yjs binding stays attached to the old
|
|
476
|
+
doc while the tree entry, meta, title sync and suggestions all
|
|
477
|
+
jump to the new one. Clicking a second marker then wedged the
|
|
478
|
+
main thread hard enough that the tab could not even navigate
|
|
479
|
+
away. The key makes marker→marker a clean unmount + mount. -->
|
|
480
|
+
<ADocRenderer
|
|
481
|
+
:key="popupWp.id"
|
|
482
|
+
:doc-id="popupWp.id"
|
|
483
|
+
:editable="editing"
|
|
484
|
+
/>
|
|
485
|
+
</div>
|
|
486
|
+
<span class="jun-mappop-tip" />
|
|
487
|
+
</div>
|
|
488
|
+
</div>
|
|
489
|
+
</Transition>
|
|
490
|
+
</div>
|
|
491
|
+
</template>
|
|
492
|
+
|
|
493
|
+
<style>
|
|
494
|
+
.jun-globe-wrap{position:relative}.jun-globe-map,.jun-globe-wrap{height:100%;width:100%}.jun-map-marker{cursor:pointer;height:0;position:relative;width:0}.jun-map-orb{background:radial-gradient(circle,color-mix(in srgb,var(--c,#e4e4e7) 90%,transparent),transparent 72%);border-radius:50%;display:grid;filter:drop-shadow(0 0 6px color-mix(in srgb,var(--c,#e4e4e7) 70%,transparent));height:22px;left:0;place-items:center;position:absolute;top:0;transform:translate(-50%,-50%);transition:transform .3s cubic-bezier(.22,1,.36,1),opacity .3s ease;width:22px}.jun-map-core{background:#fff;border-radius:50%;box-shadow:0 0 0 1.5px color-mix(in srgb,var(--c,#e4e4e7) 80%,#fff),0 1px 4px rgba(0,0,0,.5);height:9px;width:9px}.jun-map-marker:hover{z-index:5}.jun-map-marker:hover .jun-map-orb{transform:translate(-50%,-50%) scale(1.3)}.jun-map-marker.is-selected .jun-map-orb{transform:translate(-50%,-50%) scale(1.5)}.jun-map-marker.is-dimmed .jun-map-orb{opacity:.45}.jun-map-label{color:#fff;font-size:11px;font-weight:700;left:0;letter-spacing:.01em;opacity:0;padding:1px 7px;pointer-events:none;position:absolute;text-shadow:0 1px 5px rgba(0,0,0,.6),0 0 18px rgba(0,0,0,.5);top:14px;transform:translate(-50%,-2px);transition:opacity .25s ease,transform .25s ease;white-space:nowrap}.jun-globe-wrap.labels-on .jun-map-label{opacity:.9}.jun-map-marker.is-selected .jun-map-label,.jun-map-marker:hover .jun-map-label{opacity:1;transform:translate(-50%)}.jun-map-marker.is-dimmed .jun-map-label{opacity:0}.jun-mappop-anchor{height:0;left:0;position:absolute;top:0;width:0;will-change:transform;z-index:20}.jun-mappop{border-radius:14px;max-width:78vw;overflow:clip;overflow-clip-margin:12px;position:absolute;transform:translate(-50%,calc(-100% - 16px));width:300px}.jun-mappop-head{align-items:center;border-bottom:1px solid var(--ui-border,hsla(0,0%,100%,.07));display:flex;gap:7px;padding:8px 8px 8px 12px}.jun-mappop-dot{background:var(--c,#e4e4e7);border-radius:50%;box-shadow:0 0 8px color-mix(in srgb,var(--c,#e4e4e7) 80%,transparent);flex:none;height:9px;width:9px}.jun-mappop-title{font-size:13px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jun-mappop-meta{color:var(--ui-text-muted,#a1a1aa);font-size:10px;margin-left:auto;white-space:nowrap}.jun-mappop-close{flex:none;margin-left:2px}.jun-mappop-body{font-size:13px;line-height:1.5;max-height:340px;overflow-y:auto;padding:6px 12px 12px}.jun-mappop-body .aeditor-breadcrumb{display:none!important}.jun-mappop-body .ProseMirror,.jun-mappop-body .aeditor-canvas{min-height:0;padding:0}.jun-mappop-body .document-header,.jun-mappop-body .tiptap .document-header{font-size:15px!important;margin:0 0 6px!important}.jun-mappop-body :where(h1,h2,h3){font-size:14px;margin:6px 0 4px}.jun-mappop-body :where(p){margin:4px 0}.jun-mappop-body img{border-radius:8px}.jun-mappop-tip{border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid hsla(0,0%,100%,.82);bottom:-9px;filter:drop-shadow(0 2px 1px rgba(0,0,0,.06));height:0;left:50%;position:absolute;transform:translateX(-50%);width:0}.dark .jun-mappop-tip{border-top-color:rgba(24,24,27,.88);filter:drop-shadow(0 2px 1px rgba(0,0,0,.25))}.jun-mappop-fade-enter-active,.jun-mappop-fade-leave-active{transition:opacity .2s ease}.jun-mappop-fade-enter-from,.jun-mappop-fade-leave-to{opacity:0}
|
|
495
|
+
</style>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import 'mapbox-gl/dist/mapbox-gl.css';
|
|
2
|
+
interface Waypoint {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
meta?: {
|
|
6
|
+
date?: string;
|
|
7
|
+
geoLat?: number;
|
|
8
|
+
geoLng?: number;
|
|
9
|
+
transport?: string;
|
|
10
|
+
color?: string;
|
|
11
|
+
icon?: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
/** Snapped polyline [[lng,lat],…] for the leg arriving here (walk/bike/car). */
|
|
14
|
+
routeGeo?: [number, number][];
|
|
15
|
+
routeKm?: number;
|
|
16
|
+
routeMin?: number;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
type __VLS_Props = {
|
|
20
|
+
waypoints: Waypoint[];
|
|
21
|
+
selectedId?: string | null;
|
|
22
|
+
adding?: boolean;
|
|
23
|
+
awareness?: {
|
|
24
|
+
clientID?: number;
|
|
25
|
+
setLocalStateField: (k: string, v: unknown) => void;
|
|
26
|
+
getStates: () => Map<number, Record<string, unknown>>;
|
|
27
|
+
on: (e: string, cb: () => void) => void;
|
|
28
|
+
off: (e: string, cb: () => void) => void;
|
|
29
|
+
} | null;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Public: fly to a waypoint and tell peers (called by the renderer on select).
|
|
33
|
+
* Also opens the doc popup so selecting from the timeline behaves EXACTLY like
|
|
34
|
+
* clicking the marker on the map (the popup is local-only — peers just fly).
|
|
35
|
+
*/
|
|
36
|
+
declare function flyTo(wp: Waypoint): void;
|
|
37
|
+
/** Public: frame both endpoints of a connector (called on connector click). */
|
|
38
|
+
declare function fitRoute(a: Waypoint, b: Waypoint): void;
|
|
39
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
40
|
+
flyTo: typeof flyTo;
|
|
41
|
+
fitRoute: typeof fitRoute;
|
|
42
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
43
|
+
select: (wp: Waypoint) => any;
|
|
44
|
+
ready: () => any;
|
|
45
|
+
mapadd: (at: {
|
|
46
|
+
lng: number;
|
|
47
|
+
lat: number;
|
|
48
|
+
}) => any;
|
|
49
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
50
|
+
onSelect?: ((wp: Waypoint) => any) | undefined;
|
|
51
|
+
onReady?: (() => any) | undefined;
|
|
52
|
+
onMapadd?: ((at: {
|
|
53
|
+
lng: number;
|
|
54
|
+
lat: number;
|
|
55
|
+
}) => any) | undefined;
|
|
56
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
57
|
+
declare const _default: typeof __VLS_export;
|
|
58
|
+
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,79 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import { useHead, useSeoMeta } from "#app";
|
|
4
|
+
import { useJunOptions } from "../composables/useJunOptions";
|
|
5
|
+
import { junConfigOn, junConfigStr, useJunSiteConfigValues } from "../composables/useJunSiteConfigValues";
|
|
6
|
+
const { brand, features } = useJunOptions();
|
|
7
|
+
const site = await useJunSiteConfigValues();
|
|
8
|
+
const str = (key) => junConfigStr(site.value[key]);
|
|
9
|
+
const title = computed(() => str("seoTitle") ?? brand.name);
|
|
10
|
+
const description = computed(() => str("seoDescription") ?? brand.tagline);
|
|
11
|
+
const author = computed(() => str("authorName") ?? brand.name);
|
|
12
|
+
const ogImage = computed(() => str("seoOgImage"));
|
|
13
|
+
const feedsEnabled = computed(() => features.feeds && junConfigOn(site.value.feedsEnabled));
|
|
14
|
+
const titleTemplate = computed(() => {
|
|
15
|
+
const tpl = str("seoTitleTemplate");
|
|
16
|
+
return (pageTitle) => {
|
|
17
|
+
if (!pageTitle || pageTitle === title.value || pageTitle === brand.name) return title.value;
|
|
18
|
+
return tpl ? tpl.replace("%s", pageTitle) : `${pageTitle} \u2014 ${brand.name}`;
|
|
19
|
+
};
|
|
20
|
+
});
|
|
21
|
+
const identityJsonLd = computed(() => {
|
|
22
|
+
if (!brand.schemaType) return null;
|
|
23
|
+
return JSON.stringify({
|
|
24
|
+
"@context": "https://schema.org",
|
|
25
|
+
"@type": brand.schemaType,
|
|
26
|
+
"name": author.value,
|
|
27
|
+
"description": description.value
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
useHead(() => ({
|
|
31
|
+
titleTemplate: titleTemplate.value,
|
|
32
|
+
htmlAttrs: { lang: "en" },
|
|
33
|
+
meta: [
|
|
34
|
+
{ charset: "utf-8" },
|
|
35
|
+
// App-like viewport: the site is installable and its locked page types own
|
|
36
|
+
// their own scroll, so browser pinch-zoom would drift every fixed layer.
|
|
37
|
+
{
|
|
38
|
+
name: "viewport",
|
|
39
|
+
content: "width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"
|
|
40
|
+
},
|
|
41
|
+
{ name: "description", content: description.value },
|
|
42
|
+
{ name: "author", content: author.value },
|
|
43
|
+
// Browser chrome follows the SCHEME, via two media-scoped metas rather
|
|
44
|
+
// than a reactive one. A light page under a dark status bar reads as a
|
|
45
|
+
// rendering bug on mobile, and the JS form gets it wrong for the first
|
|
46
|
+
// paint — before hydration there is no colour mode to read.
|
|
47
|
+
{ key: "theme-color-light", name: "theme-color", media: "(prefers-color-scheme: light)", content: "#ffffff" },
|
|
48
|
+
{ key: "theme-color-dark", name: "theme-color", media: "(prefers-color-scheme: dark)", content: brand.themeColor },
|
|
49
|
+
// PWA app chrome.
|
|
50
|
+
{ name: "mobile-web-app-capable", content: "yes" },
|
|
51
|
+
{ name: "apple-mobile-web-app-capable", content: "yes" },
|
|
52
|
+
{ name: "apple-touch-fullscreen", content: "yes" },
|
|
53
|
+
{ name: "apple-mobile-web-app-status-bar-style", content: "black-translucent" },
|
|
54
|
+
{ name: "apple-mobile-web-app-title", content: brand.name }
|
|
55
|
+
],
|
|
56
|
+
link: feedsEnabled.value ? [
|
|
57
|
+
{ rel: "alternate", type: "application/atom+xml", title: "Atom feed", href: "/feed.xml" },
|
|
58
|
+
{ rel: "alternate", type: "application/feed+json", title: "JSON feed", href: "/feed.json" }
|
|
59
|
+
] : [],
|
|
60
|
+
script: identityJsonLd.value ? [{ key: "jun-identity-ld", type: "application/ld+json", innerHTML: identityJsonLd.value }] : []
|
|
61
|
+
}));
|
|
62
|
+
useSeoMeta({
|
|
63
|
+
ogTitle: title,
|
|
64
|
+
ogDescription: description,
|
|
65
|
+
ogType: "website",
|
|
66
|
+
ogImage,
|
|
67
|
+
twitterCard: "summary_large_image",
|
|
68
|
+
twitterImage: ogImage
|
|
69
|
+
});
|
|
70
|
+
</script>
|
|
71
|
+
|
|
72
|
+
<template>
|
|
73
|
+
<!-- The monochrome progress bar. `--ui-primary` is black in light and white
|
|
74
|
+
in dark (jun.css); the default Nuxt gradient is off-brand everywhere. -->
|
|
75
|
+
<NuxtLoadingIndicator
|
|
76
|
+
color="var(--ui-primary)"
|
|
77
|
+
:height="2"
|
|
78
|
+
/>
|
|
79
|
+
</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;
|
|
File without changes
|