@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,142 @@
|
|
|
1
|
+
import * as Y from "yjs";
|
|
2
|
+
import { AbracadabraProvider } from "@abraca/dabra";
|
|
3
|
+
import { Node } from "@tiptap/core";
|
|
4
|
+
import { defineNitroPlugin, useRuntimeConfig } from "nitropack/runtime";
|
|
5
|
+
const MAX_DOCS = 300;
|
|
6
|
+
const CONCURRENCY = 6;
|
|
7
|
+
const SYNC_TIMEOUT_MS = 8e3;
|
|
8
|
+
const REFRESH_INTERVAL_MS = 12e4;
|
|
9
|
+
const DocumentHeaderStub = Node.create({
|
|
10
|
+
name: "documentHeader",
|
|
11
|
+
group: "block",
|
|
12
|
+
content: "inline*",
|
|
13
|
+
renderHTML: () => ["h1", 0]
|
|
14
|
+
});
|
|
15
|
+
const DocumentMetaStub = Node.create({
|
|
16
|
+
name: "documentMeta",
|
|
17
|
+
group: "block",
|
|
18
|
+
atom: true,
|
|
19
|
+
renderHTML: () => ["div", { "data-document-meta": "", "style": "display:none" }]
|
|
20
|
+
});
|
|
21
|
+
const CalloutStub = Node.create({
|
|
22
|
+
name: "callout",
|
|
23
|
+
group: "block",
|
|
24
|
+
content: "block+",
|
|
25
|
+
renderHTML: () => ["div", { class: "callout" }, 0]
|
|
26
|
+
});
|
|
27
|
+
function createLimiter(concurrency) {
|
|
28
|
+
let active = 0;
|
|
29
|
+
const queue = [];
|
|
30
|
+
const pump = () => {
|
|
31
|
+
while (active < concurrency && queue.length) {
|
|
32
|
+
active++;
|
|
33
|
+
const run = queue.shift();
|
|
34
|
+
run();
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
return function limit(fn) {
|
|
38
|
+
return new Promise((resolve, reject) => {
|
|
39
|
+
queue.push(() => {
|
|
40
|
+
fn().then(resolve, reject).finally(() => {
|
|
41
|
+
active--;
|
|
42
|
+
pump();
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
pump();
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export default defineNitroPlugin((nitroApp) => {
|
|
50
|
+
nitroApp.hooks.hook("abracadabra:before-runners", () => {
|
|
51
|
+
registerServerPlugin({
|
|
52
|
+
name: "jun:doc-cache",
|
|
53
|
+
serverExtensions: () => [DocumentHeaderStub, DocumentMetaStub, CalloutStub],
|
|
54
|
+
serverRunners: [
|
|
55
|
+
{
|
|
56
|
+
name: "jun:doc-cache",
|
|
57
|
+
start(ctx) {
|
|
58
|
+
const { client, rootDoc } = ctx;
|
|
59
|
+
const treeMap = rootDoc.getMap("doc-tree");
|
|
60
|
+
const entryDocId = useRuntimeConfig().public.abracadabra?.entryDocId || ctx.rootDocId;
|
|
61
|
+
if (entryDocId) observeDoc(entryDocId, rootDoc);
|
|
62
|
+
const docs = /* @__PURE__ */ new Map();
|
|
63
|
+
const timers = /* @__PURE__ */ new Set();
|
|
64
|
+
const limit = createLimiter(CONCURRENCY);
|
|
65
|
+
async function renderDoc(docId, ydoc) {
|
|
66
|
+
const provider = new AbracadabraProvider({
|
|
67
|
+
name: docId,
|
|
68
|
+
// See jun-bootstrap for why these casts exist (two yjs copies
|
|
69
|
+
// at the TYPE level; pinned to one at runtime).
|
|
70
|
+
document: ydoc,
|
|
71
|
+
client,
|
|
72
|
+
disableOfflineStore: true,
|
|
73
|
+
subdocLoading: "lazy"
|
|
74
|
+
});
|
|
75
|
+
try {
|
|
76
|
+
if (!provider.isSynced) {
|
|
77
|
+
await new Promise((resolve) => {
|
|
78
|
+
const done = () => {
|
|
79
|
+
provider.off("synced", done);
|
|
80
|
+
resolve();
|
|
81
|
+
};
|
|
82
|
+
const t = setTimeout(done, SYNC_TIMEOUT_MS);
|
|
83
|
+
timers.add(t);
|
|
84
|
+
provider.on("synced", () => {
|
|
85
|
+
clearTimeout(t);
|
|
86
|
+
timers.delete(t);
|
|
87
|
+
done();
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
unobserveDoc(docId);
|
|
92
|
+
observeDoc(docId, ydoc);
|
|
93
|
+
} finally {
|
|
94
|
+
try {
|
|
95
|
+
provider.destroy();
|
|
96
|
+
} catch {
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
function track(docId) {
|
|
101
|
+
if (docId === entryDocId) return;
|
|
102
|
+
if (docs.has(docId) || docs.size >= MAX_DOCS) return;
|
|
103
|
+
const entry = treeMap.get(docId);
|
|
104
|
+
if (!entry || entry.trashed) return;
|
|
105
|
+
const doc = new Y.Doc({ guid: docId });
|
|
106
|
+
docs.set(docId, doc);
|
|
107
|
+
void limit(() => renderDoc(docId, doc)).catch((e) => {
|
|
108
|
+
docs.delete(docId);
|
|
109
|
+
console.warn(`[jun:doc-cache] failed to track ${docId}:`, e);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
function untrack(docId) {
|
|
113
|
+
if (!docs.delete(docId)) return;
|
|
114
|
+
unobserveDoc(docId);
|
|
115
|
+
}
|
|
116
|
+
treeMap.forEach((_v, docId) => track(docId));
|
|
117
|
+
const sweep = setInterval(() => {
|
|
118
|
+
for (const [docId, ydoc] of docs) {
|
|
119
|
+
void limit(() => renderDoc(docId, ydoc)).catch(() => {
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
}, REFRESH_INTERVAL_MS);
|
|
123
|
+
const observer = (event) => {
|
|
124
|
+
event.keysChanged.forEach((docId) => {
|
|
125
|
+
const entry = treeMap.get(docId);
|
|
126
|
+
if (entry && !entry.trashed) track(docId);
|
|
127
|
+
else untrack(docId);
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
treeMap.observe(observer);
|
|
131
|
+
return () => {
|
|
132
|
+
clearInterval(sweep);
|
|
133
|
+
treeMap.unobserve(observer);
|
|
134
|
+
for (const t of timers) clearTimeout(t);
|
|
135
|
+
for (const id of [...docs.keys()]) untrack(id);
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
]
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
});
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { defineNitroPlugin, useRuntimeConfig } from "nitropack/runtime";
|
|
2
|
+
import { JunJanitorActor } from "../janitor/junJanitorActor.js";
|
|
3
|
+
import { createJunJanitorMachine } from "../janitor/junJanitorMachine.js";
|
|
4
|
+
import {
|
|
5
|
+
createJunTreeWriter,
|
|
6
|
+
junCloseBaseline,
|
|
7
|
+
junOpenBaseline,
|
|
8
|
+
plain
|
|
9
|
+
} from "../janitor/junJanitorStore.js";
|
|
10
|
+
import { junSiteConfigMeta, junSlugMap } from "../utils/junCache.js";
|
|
11
|
+
const BOOT_DELAY_MS = 2e4;
|
|
12
|
+
export default defineNitroPlugin((nitroApp) => {
|
|
13
|
+
const runtime = useRuntimeConfig();
|
|
14
|
+
const jun = runtime.public.jun;
|
|
15
|
+
const options = runtime.jun?.janitor;
|
|
16
|
+
if (!jun?.features?.janitor || !options?.enabled) return;
|
|
17
|
+
const log = (message) => console.log(`[jun:janitor] ${message}`);
|
|
18
|
+
nitroApp.hooks.hook("abracadabra:before-runners", () => {
|
|
19
|
+
registerServerPlugin({
|
|
20
|
+
name: "jun:janitor",
|
|
21
|
+
serverRunners: [
|
|
22
|
+
{
|
|
23
|
+
name: "jun:janitor",
|
|
24
|
+
start(ctx) {
|
|
25
|
+
let stopped = false;
|
|
26
|
+
let shutdown = null;
|
|
27
|
+
const boot = setTimeout(() => {
|
|
28
|
+
void (async () => {
|
|
29
|
+
try {
|
|
30
|
+
shutdown = await hire(ctx, options, log);
|
|
31
|
+
} catch (error) {
|
|
32
|
+
log(`could not start: ${error?.message ?? error}`);
|
|
33
|
+
}
|
|
34
|
+
if (stopped && shutdown) await shutdown();
|
|
35
|
+
})();
|
|
36
|
+
}, BOOT_DELAY_MS);
|
|
37
|
+
return () => {
|
|
38
|
+
stopped = true;
|
|
39
|
+
clearTimeout(boot);
|
|
40
|
+
void shutdown?.();
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
async function hire(ctx, options, log) {
|
|
49
|
+
const runtime = useRuntimeConfig();
|
|
50
|
+
const abra = runtime.public.abracadabra ?? {};
|
|
51
|
+
const url = abra.service?.serverUrl || abra.url || "http://localhost:3011";
|
|
52
|
+
const actor = new JunJanitorActor({
|
|
53
|
+
name: options.name ?? "janitor",
|
|
54
|
+
color: options.color ?? "#8b8b8b",
|
|
55
|
+
rootDocId: ctx.rootDocId,
|
|
56
|
+
identity: {
|
|
57
|
+
mode: options.identity?.mode ?? "own",
|
|
58
|
+
seed: options.identity?.seed,
|
|
59
|
+
keyFile: options.identity?.keyFile
|
|
60
|
+
},
|
|
61
|
+
url,
|
|
62
|
+
serviceClient: ctx.client,
|
|
63
|
+
log: (message) => log(message.replace("[jun:janitor] ", ""))
|
|
64
|
+
});
|
|
65
|
+
await actor.connect();
|
|
66
|
+
const tree = createJunTreeWriter({
|
|
67
|
+
rootDocId: ctx.rootDocId,
|
|
68
|
+
sharedRoot: ctx.rootDoc,
|
|
69
|
+
client: actor.httpClient ?? ctx.client,
|
|
70
|
+
log
|
|
71
|
+
});
|
|
72
|
+
let baselineHandle = null;
|
|
73
|
+
let baselineFailed = false;
|
|
74
|
+
const baseline = async () => {
|
|
75
|
+
if (baselineHandle || baselineFailed) return baselineHandle;
|
|
76
|
+
if (options.baseline === "off") return null;
|
|
77
|
+
try {
|
|
78
|
+
const docId = await ensureBaselineDoc(ctx, actor, tree, log);
|
|
79
|
+
if (!docId) {
|
|
80
|
+
baselineFailed = true;
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
83
|
+
baselineHandle = await junOpenBaseline(docId, actor.httpClient ?? ctx.client);
|
|
84
|
+
return baselineHandle;
|
|
85
|
+
} catch (error) {
|
|
86
|
+
baselineFailed = true;
|
|
87
|
+
log(`baseline document unavailable: ${error?.message ?? error}`);
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
const machine = createJunJanitorMachine(
|
|
92
|
+
{
|
|
93
|
+
mode: options.mode ?? "observe",
|
|
94
|
+
baselineMode: options.baseline ?? "after-seed",
|
|
95
|
+
name: options.name ?? "janitor",
|
|
96
|
+
rootDocId: ctx.rootDocId,
|
|
97
|
+
shiftHours: options.shiftHours ?? [0, 24],
|
|
98
|
+
budget: {
|
|
99
|
+
choresPerHour: options.budget?.choresPerHour ?? 40,
|
|
100
|
+
linesPerHour: options.budget?.linesPerHour ?? 20,
|
|
101
|
+
maxDocRemovalRatio: options.budget?.maxDocRemovalRatio ?? 0.5,
|
|
102
|
+
choresPerShift: options.budget?.choresPerShift ?? 12
|
|
103
|
+
},
|
|
104
|
+
// The baseline document is the janitor's own notebook. Reverting it would
|
|
105
|
+
// be a snake eating its tail, and it is hidden from every reader anyway.
|
|
106
|
+
ignoreDocIds: [...options.ignoreDocIds ?? []],
|
|
107
|
+
motor: options.tuning?.motor,
|
|
108
|
+
patrol: options.tuning?.patrol,
|
|
109
|
+
chores: options.tuning?.chores,
|
|
110
|
+
voice: options.tuning?.voice,
|
|
111
|
+
phrases: options.phrases
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
actor,
|
|
115
|
+
tree,
|
|
116
|
+
baseline,
|
|
117
|
+
slugFor: async (docId) => {
|
|
118
|
+
const slugs = await junSlugMap();
|
|
119
|
+
const slug = slugs[docId];
|
|
120
|
+
return slug ? `/${slug}` : null;
|
|
121
|
+
},
|
|
122
|
+
siteConfig: () => junSiteConfigMeta(),
|
|
123
|
+
log
|
|
124
|
+
}
|
|
125
|
+
);
|
|
126
|
+
machine.start();
|
|
127
|
+
log(`on duty \u2014 mode: ${options.mode ?? "observe"}`);
|
|
128
|
+
return async () => {
|
|
129
|
+
await machine.stop();
|
|
130
|
+
await actor.destroy();
|
|
131
|
+
if (baselineHandle) await junCloseBaseline(baselineHandle);
|
|
132
|
+
log("off duty");
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
async function ensureBaselineDoc(ctx, actor, tree, log) {
|
|
136
|
+
const map = actor.tree;
|
|
137
|
+
if (!map) return null;
|
|
138
|
+
let found = null;
|
|
139
|
+
map.forEach((value, id2) => {
|
|
140
|
+
const entry = plain(value);
|
|
141
|
+
if (entry?.meta?.janitorBaseline === true && !entry.trashed) found = id2;
|
|
142
|
+
});
|
|
143
|
+
if (found) return found;
|
|
144
|
+
const id = crypto.randomUUID();
|
|
145
|
+
const now = Date.now();
|
|
146
|
+
await tree.restore(id, {
|
|
147
|
+
label: "Janitor",
|
|
148
|
+
type: "doc",
|
|
149
|
+
parentId: ctx.rootDocId,
|
|
150
|
+
order: now,
|
|
151
|
+
createdAt: now,
|
|
152
|
+
updatedAt: now,
|
|
153
|
+
meta: {
|
|
154
|
+
janitorBaseline: true,
|
|
155
|
+
// Out of navigation, out of search, out of the way. `hidden` alone is
|
|
156
|
+
// not a permission — `ownerOnly` is what keeps it off a visitor's radar.
|
|
157
|
+
hidden: true,
|
|
158
|
+
ownerOnly: true,
|
|
159
|
+
icon: "i-lucide-spray-can"
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
try {
|
|
163
|
+
await ctx.client.createChild(ctx.rootDocId, {
|
|
164
|
+
child_id: id,
|
|
165
|
+
label: "Janitor",
|
|
166
|
+
doc_type: "doc"
|
|
167
|
+
});
|
|
168
|
+
} catch (error) {
|
|
169
|
+
const message = error?.message ?? String(error);
|
|
170
|
+
if (!/409|already exists|conflict/i.test(message)) {
|
|
171
|
+
log(`could not register the baseline document: ${message}`);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
log(`created the baseline document (${id})`);
|
|
175
|
+
return id;
|
|
176
|
+
}
|