@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,315 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, ref, watch } from "vue";
|
|
3
|
+
import { useLocalStorage } from "@vueuse/core";
|
|
4
|
+
import { useJunRename, useJunRouting, useToast } from "#imports";
|
|
5
|
+
import { JUN_TRANSPORT as TRANSPORT, JUN_TRANSPORT_MODES as TRANSPORT_MODES, normalizeTransport } from "../utils/junTransportModes";
|
|
6
|
+
const props = defineProps({
|
|
7
|
+
tree: { type: Object, required: true },
|
|
8
|
+
waypoints: { type: Array, required: true },
|
|
9
|
+
adding: { type: Boolean, required: false },
|
|
10
|
+
map: { type: [Object, null], required: false }
|
|
11
|
+
});
|
|
12
|
+
const emit = defineEmits(["update:adding", "select"]);
|
|
13
|
+
const { geocode, reverseGeocode, directions } = useJunRouting();
|
|
14
|
+
const { renameDoc } = useJunRename();
|
|
15
|
+
const toast = useToast();
|
|
16
|
+
const COLOR_SWATCHES = ["", "#ef4444", "#f97316", "#eab308", "#10b981", "#3b82f6", "#8b5cf6", "#ec4899"];
|
|
17
|
+
const defaultMode = ref("plane");
|
|
18
|
+
const busyId = ref(null);
|
|
19
|
+
const collapsed = useLocalStorage("jun_globe_routes_collapsed", false);
|
|
20
|
+
const query = ref("");
|
|
21
|
+
const results = ref([]);
|
|
22
|
+
const searching = ref(false);
|
|
23
|
+
let searchTimer = null;
|
|
24
|
+
let searchSeq = 0;
|
|
25
|
+
watch(query, (q) => {
|
|
26
|
+
if (searchTimer) clearTimeout(searchTimer);
|
|
27
|
+
if (!q.trim()) {
|
|
28
|
+
results.value = [];
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
searchTimer = setTimeout(async () => {
|
|
32
|
+
const seq = ++searchSeq;
|
|
33
|
+
searching.value = true;
|
|
34
|
+
const r = await geocode(q);
|
|
35
|
+
if (seq === searchSeq) {
|
|
36
|
+
results.value = r;
|
|
37
|
+
searching.value = false;
|
|
38
|
+
}
|
|
39
|
+
}, 320);
|
|
40
|
+
});
|
|
41
|
+
function locOf(wp) {
|
|
42
|
+
if (typeof wp.meta?.geoLat === "number" && typeof wp.meta?.geoLng === "number") {
|
|
43
|
+
return { lng: wp.meta.geoLng, lat: wp.meta.geoLat };
|
|
44
|
+
}
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
const today = () => (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
48
|
+
async function addWaypoint(label, lng, lat) {
|
|
49
|
+
const prev = props.waypoints[props.waypoints.length - 1] ?? null;
|
|
50
|
+
const id = props.tree.createChild(null, label || "Waypoint", "doc");
|
|
51
|
+
props.tree.updateMeta(id, { geoLat: lat, geoLng: lng, date: today(), transport: defaultMode.value });
|
|
52
|
+
if (prev) {
|
|
53
|
+
await generateLeg({ id, label, meta: { geoLat: lat, geoLng: lng } }, defaultMode.value, prev);
|
|
54
|
+
}
|
|
55
|
+
emit("select", { id, label, meta: { geoLat: lat, geoLng: lng } });
|
|
56
|
+
}
|
|
57
|
+
function pickResult(r) {
|
|
58
|
+
void addWaypoint(r.label.split(",")[0].trim(), r.lng, r.lat);
|
|
59
|
+
query.value = "";
|
|
60
|
+
results.value = [];
|
|
61
|
+
}
|
|
62
|
+
async function addAt(at) {
|
|
63
|
+
const name = await reverseGeocode(at.lng, at.lat);
|
|
64
|
+
await addWaypoint(name || "Waypoint", at.lng, at.lat);
|
|
65
|
+
}
|
|
66
|
+
defineExpose({ addAt });
|
|
67
|
+
async function generateLeg(wp, mode, prev) {
|
|
68
|
+
const to = locOf(wp);
|
|
69
|
+
const from = prev ? locOf(prev) : null;
|
|
70
|
+
if (!to) return;
|
|
71
|
+
busyId.value = wp.id;
|
|
72
|
+
try {
|
|
73
|
+
if (!from) {
|
|
74
|
+
props.tree.updateMeta(wp.id, { transport: mode, routeGeo: [], routeKm: 0, routeMin: 0 });
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
const res = await directions(mode, from, to);
|
|
78
|
+
props.tree.updateMeta(wp.id, {
|
|
79
|
+
transport: mode,
|
|
80
|
+
// plane / great-circle is drawn from endpoints by the map, so store [].
|
|
81
|
+
routeGeo: res.snapped ? res.coords : [],
|
|
82
|
+
routeKm: Math.round(res.km),
|
|
83
|
+
routeMin: Math.round(res.min)
|
|
84
|
+
});
|
|
85
|
+
if (!res.snapped && mode !== "plane") {
|
|
86
|
+
toast.add({ title: "No road route", description: `Couldn't snap a ${TRANSPORT[mode].label.toLowerCase()} route \u2014 drawn as a direct line. Try Plane for long hops.`, color: "warning" });
|
|
87
|
+
}
|
|
88
|
+
} finally {
|
|
89
|
+
busyId.value = null;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
function setMode(wp, i, mode) {
|
|
93
|
+
defaultMode.value = mode;
|
|
94
|
+
const prev = i > 0 ? props.waypoints[i - 1] : null;
|
|
95
|
+
void generateLeg(wp, mode, prev);
|
|
96
|
+
}
|
|
97
|
+
function regenerate(wp, i) {
|
|
98
|
+
setMode(wp, i, normalizeTransport(wp.meta?.transport));
|
|
99
|
+
}
|
|
100
|
+
function setColor(wp, c) {
|
|
101
|
+
props.tree.updateMeta(wp.id, { color: c || "" });
|
|
102
|
+
}
|
|
103
|
+
function rename(wp, v) {
|
|
104
|
+
if (v.trim()) renameDoc(wp.id, v.trim());
|
|
105
|
+
}
|
|
106
|
+
function remove(wp) {
|
|
107
|
+
props.tree.deleteEntry(wp.id);
|
|
108
|
+
}
|
|
109
|
+
const addingModel = computed({
|
|
110
|
+
get: () => !!props.adding,
|
|
111
|
+
set: (v) => emit("update:adding", v)
|
|
112
|
+
});
|
|
113
|
+
</script>
|
|
114
|
+
|
|
115
|
+
<template>
|
|
116
|
+
<!-- Collapsed: a quiet chip in the panel's corner — click to unfold. -->
|
|
117
|
+
<button
|
|
118
|
+
v-if="collapsed"
|
|
119
|
+
type="button"
|
|
120
|
+
class="jun-globe-editor-chip jun-chrome"
|
|
121
|
+
aria-label="Open routes panel"
|
|
122
|
+
title="Routes"
|
|
123
|
+
@click="collapsed = false"
|
|
124
|
+
>
|
|
125
|
+
<UIcon
|
|
126
|
+
name="i-lucide-route"
|
|
127
|
+
class="size-4 text-muted"
|
|
128
|
+
/>
|
|
129
|
+
<span class="text-sm font-medium text-highlighted tabular-nums">{{ waypoints.length }}</span>
|
|
130
|
+
<UIcon
|
|
131
|
+
name="i-lucide-chevrons-up-down"
|
|
132
|
+
class="size-3.5 text-dimmed"
|
|
133
|
+
/>
|
|
134
|
+
</button>
|
|
135
|
+
|
|
136
|
+
<div
|
|
137
|
+
v-else
|
|
138
|
+
class="jun-globe-editor jun-chrome"
|
|
139
|
+
>
|
|
140
|
+
<header class="flex items-center gap-2 px-3 py-2 border-b border-default">
|
|
141
|
+
<UIcon
|
|
142
|
+
name="i-lucide-route"
|
|
143
|
+
class="size-4 text-muted"
|
|
144
|
+
/>
|
|
145
|
+
<span class="text-sm font-semibold text-highlighted">Routes</span>
|
|
146
|
+
<UBadge
|
|
147
|
+
size="xs"
|
|
148
|
+
color="neutral"
|
|
149
|
+
variant="subtle"
|
|
150
|
+
class="ml-auto"
|
|
151
|
+
>
|
|
152
|
+
{{ waypoints.length }}
|
|
153
|
+
</UBadge>
|
|
154
|
+
<UButton
|
|
155
|
+
icon="i-lucide-chevrons-down-up"
|
|
156
|
+
size="xs"
|
|
157
|
+
color="neutral"
|
|
158
|
+
variant="ghost"
|
|
159
|
+
aria-label="Collapse routes panel"
|
|
160
|
+
@click="collapsed = true"
|
|
161
|
+
/>
|
|
162
|
+
</header>
|
|
163
|
+
|
|
164
|
+
<!-- Add by search -->
|
|
165
|
+
<div class="p-3 border-b border-default space-y-2">
|
|
166
|
+
<UInput
|
|
167
|
+
v-model="query"
|
|
168
|
+
icon="i-lucide-search"
|
|
169
|
+
size="sm"
|
|
170
|
+
placeholder="Search a place to add…"
|
|
171
|
+
:loading="searching"
|
|
172
|
+
class="w-full"
|
|
173
|
+
/>
|
|
174
|
+
<ul
|
|
175
|
+
v-if="results.length"
|
|
176
|
+
class="rounded-lg bg-default border border-default overflow-hidden"
|
|
177
|
+
>
|
|
178
|
+
<li
|
|
179
|
+
v-for="r in results"
|
|
180
|
+
:key="`${r.lng},${r.lat}`"
|
|
181
|
+
class="px-2.5 py-1.5 text-xs text-default hover:bg-elevated cursor-pointer truncate"
|
|
182
|
+
@click="pickResult(r)"
|
|
183
|
+
>
|
|
184
|
+
{{ r.label }}
|
|
185
|
+
</li>
|
|
186
|
+
</ul>
|
|
187
|
+
<UButton
|
|
188
|
+
:icon="addingModel ? 'i-lucide-map-pin-check' : 'i-lucide-map-pin-plus'"
|
|
189
|
+
size="sm"
|
|
190
|
+
block
|
|
191
|
+
:color="addingModel ? 'primary' : 'neutral'"
|
|
192
|
+
:variant="addingModel ? 'solid' : 'soft'"
|
|
193
|
+
@click="addingModel = !addingModel"
|
|
194
|
+
>
|
|
195
|
+
{{ addingModel ? "Click the globe to drop\u2026" : "Drop on map" }}
|
|
196
|
+
</UButton>
|
|
197
|
+
</div>
|
|
198
|
+
|
|
199
|
+
<!-- Waypoint list -->
|
|
200
|
+
<div class="flex-1 min-h-0 overflow-y-auto p-2 space-y-1.5">
|
|
201
|
+
<p
|
|
202
|
+
v-if="!waypoints.length"
|
|
203
|
+
class="text-xs text-muted text-center py-6"
|
|
204
|
+
>
|
|
205
|
+
No waypoints yet. Search a place or drop one on the globe.
|
|
206
|
+
</p>
|
|
207
|
+
|
|
208
|
+
<div
|
|
209
|
+
v-for="(wp, i) in waypoints"
|
|
210
|
+
:key="wp.id"
|
|
211
|
+
class="rounded-lg bg-muted border border-default p-2 space-y-2"
|
|
212
|
+
>
|
|
213
|
+
<!-- Label + fly + delete -->
|
|
214
|
+
<div class="flex items-center gap-1.5">
|
|
215
|
+
<span
|
|
216
|
+
class="size-2.5 rounded-full flex-none"
|
|
217
|
+
:style="{ background: wp.meta?.color || TRANSPORT[normalizeTransport(wp.meta?.transport)].color }"
|
|
218
|
+
/>
|
|
219
|
+
<input
|
|
220
|
+
:value="wp.label"
|
|
221
|
+
class="flex-1 min-w-0 bg-transparent text-sm font-medium text-highlighted outline-none border-b border-transparent focus:border-accented"
|
|
222
|
+
@change="rename(wp, $event.target.value)"
|
|
223
|
+
>
|
|
224
|
+
<UButton
|
|
225
|
+
icon="i-lucide-locate"
|
|
226
|
+
size="xs"
|
|
227
|
+
color="neutral"
|
|
228
|
+
variant="ghost"
|
|
229
|
+
aria-label="Fly here"
|
|
230
|
+
@click="emit('select', wp)"
|
|
231
|
+
/>
|
|
232
|
+
<UButton
|
|
233
|
+
icon="i-lucide-trash-2"
|
|
234
|
+
size="xs"
|
|
235
|
+
color="error"
|
|
236
|
+
variant="ghost"
|
|
237
|
+
aria-label="Delete"
|
|
238
|
+
@click="remove(wp)"
|
|
239
|
+
/>
|
|
240
|
+
</div>
|
|
241
|
+
|
|
242
|
+
<!-- Date + colour. Date rides the module's meta-chip vocabulary
|
|
243
|
+
(the same component the editor meta header uses). -->
|
|
244
|
+
<div class="flex items-center gap-2">
|
|
245
|
+
<AMetaChip
|
|
246
|
+
field-type="date"
|
|
247
|
+
label="Date"
|
|
248
|
+
:meta="wp.meta ?? {}"
|
|
249
|
+
meta-key="date"
|
|
250
|
+
@patch="tree.updateMeta(wp.id, $event)"
|
|
251
|
+
/>
|
|
252
|
+
<div class="flex items-center gap-1 ml-auto">
|
|
253
|
+
<button
|
|
254
|
+
v-for="c in COLOR_SWATCHES"
|
|
255
|
+
:key="c || 'none'"
|
|
256
|
+
type="button"
|
|
257
|
+
class="size-3.5 rounded-full border border-default"
|
|
258
|
+
:class="{ 'ring-2 ring-inverted': (wp.meta?.color || '') === c }"
|
|
259
|
+
:style="{ background: c || 'transparent' }"
|
|
260
|
+
:aria-label="c || 'mode colour'"
|
|
261
|
+
@click="setColor(wp, c)"
|
|
262
|
+
>
|
|
263
|
+
<UIcon
|
|
264
|
+
v-if="!c"
|
|
265
|
+
name="i-lucide-slash"
|
|
266
|
+
class="size-3 text-muted"
|
|
267
|
+
/>
|
|
268
|
+
</button>
|
|
269
|
+
</div>
|
|
270
|
+
</div>
|
|
271
|
+
|
|
272
|
+
<!-- Transport mode for the leg arriving here (skip for first waypoint) -->
|
|
273
|
+
<div
|
|
274
|
+
v-if="i > 0"
|
|
275
|
+
class="flex items-center gap-1"
|
|
276
|
+
>
|
|
277
|
+
<UButton
|
|
278
|
+
v-for="m in TRANSPORT_MODES"
|
|
279
|
+
:key="m"
|
|
280
|
+
:icon="TRANSPORT[m].icon"
|
|
281
|
+
size="xs"
|
|
282
|
+
:color="normalizeTransport(wp.meta?.transport) === m ? 'primary' : 'neutral'"
|
|
283
|
+
:variant="normalizeTransport(wp.meta?.transport) === m ? 'solid' : 'ghost'"
|
|
284
|
+
:aria-label="TRANSPORT[m].label"
|
|
285
|
+
@click="setMode(wp, i, m)"
|
|
286
|
+
/>
|
|
287
|
+
<UButton
|
|
288
|
+
:icon="busyId === wp.id ? 'i-lucide-loader-circle' : 'i-lucide-refresh-cw'"
|
|
289
|
+
:class="{ 'animate-spin': busyId === wp.id }"
|
|
290
|
+
size="xs"
|
|
291
|
+
color="neutral"
|
|
292
|
+
variant="ghost"
|
|
293
|
+
class="ml-auto"
|
|
294
|
+
aria-label="Regenerate route"
|
|
295
|
+
@click="regenerate(wp, i)"
|
|
296
|
+
/>
|
|
297
|
+
<span
|
|
298
|
+
v-if="wp.meta?.routeKm"
|
|
299
|
+
class="text-[10px] text-muted tabular-nums"
|
|
300
|
+
>{{ wp.meta.routeKm }} km</span>
|
|
301
|
+
</div>
|
|
302
|
+
<p
|
|
303
|
+
v-else
|
|
304
|
+
class="text-[10px] text-dimmed uppercase tracking-wider"
|
|
305
|
+
>
|
|
306
|
+
Start
|
|
307
|
+
</p>
|
|
308
|
+
</div>
|
|
309
|
+
</div>
|
|
310
|
+
</div>
|
|
311
|
+
</template>
|
|
312
|
+
|
|
313
|
+
<style scoped>
|
|
314
|
+
.jun-globe-editor{border-radius:14px;flex-direction:column;max-height:calc(100vh - 7rem - 64px);max-width:calc(100vw - 2rem);width:20rem}.jun-globe-editor,.jun-globe-editor-chip{display:flex;position:fixed;right:1rem;top:5rem;z-index:40}.jun-globe-editor-chip{align-items:center;border-radius:9999px;cursor:pointer;gap:.375rem;padding:.375rem .75rem}
|
|
315
|
+
</style>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
interface Waypoint {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
meta?: {
|
|
5
|
+
date?: string;
|
|
6
|
+
geoLat?: number;
|
|
7
|
+
geoLng?: number;
|
|
8
|
+
transport?: string;
|
|
9
|
+
color?: string;
|
|
10
|
+
routeKm?: number;
|
|
11
|
+
routeMin?: number;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
interface Tree {
|
|
15
|
+
createChild: (parentId: string | null, label: string, type?: string) => string;
|
|
16
|
+
updateMeta: (id: string, patch: Record<string, unknown>) => void;
|
|
17
|
+
renameEntry: (id: string, label: string) => void;
|
|
18
|
+
deleteEntry: (id: string) => void;
|
|
19
|
+
}
|
|
20
|
+
type __VLS_Props = {
|
|
21
|
+
tree: Tree;
|
|
22
|
+
waypoints: Waypoint[];
|
|
23
|
+
adding?: boolean;
|
|
24
|
+
map?: {
|
|
25
|
+
flyTo: (wp: Waypoint) => void;
|
|
26
|
+
fitRoute: (a: Waypoint, b: Waypoint) => void;
|
|
27
|
+
} | null;
|
|
28
|
+
};
|
|
29
|
+
declare function addAt(at: {
|
|
30
|
+
lng: number;
|
|
31
|
+
lat: number;
|
|
32
|
+
}): Promise<void>;
|
|
33
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
34
|
+
addAt: typeof addAt;
|
|
35
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
36
|
+
select: (wp: Waypoint) => any;
|
|
37
|
+
"update:adding": (v: boolean) => any;
|
|
38
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
39
|
+
onSelect?: ((wp: Waypoint) => any) | undefined;
|
|
40
|
+
"onUpdate:adding"?: ((v: boolean) => any) | undefined;
|
|
41
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
42
|
+
declare const _default: typeof __VLS_export;
|
|
43
|
+
export default _default;
|
|
@@ -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;
|