@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,259 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, onMounted, resolveComponent } from "vue";
|
|
3
|
+
import { useDocSlugs, useDocTree, useJunPeopleAdmin } from "#imports";
|
|
4
|
+
import { JUN_PERSON_ROLES } from "../composables/useJunPeopleAdmin";
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
people: { type: Array, required: true },
|
|
7
|
+
style: { type: String, required: true },
|
|
8
|
+
showPages: { type: Boolean, required: true },
|
|
9
|
+
follow: { type: Boolean, required: true },
|
|
10
|
+
followingClientId: { type: [Number, null], required: false },
|
|
11
|
+
homeDocId: { type: [String, null], required: false }
|
|
12
|
+
});
|
|
13
|
+
const emit = defineEmits(["follow"]);
|
|
14
|
+
const NuxtLink = resolveComponent("NuxtLink");
|
|
15
|
+
const { getDocUrl } = useDocSlugs();
|
|
16
|
+
const { getEntry } = useDocTree();
|
|
17
|
+
function placeFor(p) {
|
|
18
|
+
if (p.isSelf) return { label: "here, with you", to: null };
|
|
19
|
+
if (p.docId) {
|
|
20
|
+
if (p.docId === props.homeDocId) return { label: "the front page", to: "/" };
|
|
21
|
+
const entry = getEntry(p.docId);
|
|
22
|
+
if (entry?.label) return { label: entry.label, to: getDocUrl(p.docId) };
|
|
23
|
+
}
|
|
24
|
+
if (p.page) return { label: p.page === "/" ? "the front page" : p.page.slice(1), to: p.page };
|
|
25
|
+
return { label: "somewhere", to: null };
|
|
26
|
+
}
|
|
27
|
+
function initial(name) {
|
|
28
|
+
return [...name.trim()][0]?.toUpperCase() ?? "\xB7";
|
|
29
|
+
}
|
|
30
|
+
function isFollowed(p) {
|
|
31
|
+
return props.followingClientId != null && props.followingClientId === p.clientId;
|
|
32
|
+
}
|
|
33
|
+
function canFollow(p) {
|
|
34
|
+
return props.follow && !p.isSelf && !p.isBot && p.clientId >= 0;
|
|
35
|
+
}
|
|
36
|
+
const FACEPILE_MAX = 7;
|
|
37
|
+
const faces = computed(() => props.people.slice(0, FACEPILE_MAX));
|
|
38
|
+
const overflow = computed(() => Math.max(0, props.people.length - FACEPILE_MAX));
|
|
39
|
+
const { canAdmin, grants, busy, setRole, revoke, refresh } = useJunPeopleAdmin();
|
|
40
|
+
onMounted(() => {
|
|
41
|
+
void refresh();
|
|
42
|
+
});
|
|
43
|
+
function canManage(p) {
|
|
44
|
+
return canAdmin.value && !p.isSelf && !p.isBot && !!p.publicKey;
|
|
45
|
+
}
|
|
46
|
+
function grantFor(p) {
|
|
47
|
+
return grants.value[p.publicKey]?.role ?? "";
|
|
48
|
+
}
|
|
49
|
+
function roleMenu(p) {
|
|
50
|
+
const current = grantFor(p);
|
|
51
|
+
const roleItems = JUN_PERSON_ROLES.map((r) => ({
|
|
52
|
+
label: r.label,
|
|
53
|
+
icon: r.icon,
|
|
54
|
+
// A checkmark reflects a STORED grant. Someone inheriting the site's
|
|
55
|
+
// default viewer role shows nothing ticked, which is the truth: there is
|
|
56
|
+
// no row for them, and "Viewer" would claim there is.
|
|
57
|
+
checked: current === r.value,
|
|
58
|
+
type: "checkbox",
|
|
59
|
+
onSelect: () => {
|
|
60
|
+
if (current !== r.value) void setRole(p.publicKey, r.value);
|
|
61
|
+
}
|
|
62
|
+
}));
|
|
63
|
+
const groups = [
|
|
64
|
+
[{ label: p.name, type: "label" }],
|
|
65
|
+
roleItems
|
|
66
|
+
];
|
|
67
|
+
if (current) {
|
|
68
|
+
groups.push([{
|
|
69
|
+
label: "Remove access",
|
|
70
|
+
icon: "i-lucide-user-minus",
|
|
71
|
+
color: "error",
|
|
72
|
+
onSelect: () => void revoke(p.publicKey)
|
|
73
|
+
}]);
|
|
74
|
+
}
|
|
75
|
+
groups.push([{
|
|
76
|
+
label: "Copy public key",
|
|
77
|
+
icon: "i-lucide-key-round",
|
|
78
|
+
onSelect: () => {
|
|
79
|
+
void navigator.clipboard?.writeText(p.publicKey);
|
|
80
|
+
}
|
|
81
|
+
}]);
|
|
82
|
+
return groups;
|
|
83
|
+
}
|
|
84
|
+
</script>
|
|
85
|
+
|
|
86
|
+
<template>
|
|
87
|
+
<!-- LIST — the full user center row. -->
|
|
88
|
+
<ul
|
|
89
|
+
v-if="style === 'list'"
|
|
90
|
+
class="space-y-0.5 px-1.5 py-1"
|
|
91
|
+
>
|
|
92
|
+
<li
|
|
93
|
+
v-for="p in people"
|
|
94
|
+
:key="p.publicKey || p.clientId"
|
|
95
|
+
class="jun-campfire-person group flex items-center gap-2.5 rounded-lg px-2 py-1.5"
|
|
96
|
+
:class="p.idle ? 'opacity-55' : ''"
|
|
97
|
+
>
|
|
98
|
+
<span
|
|
99
|
+
class="jun-campfire-mark relative flex size-6 flex-none items-center justify-center
|
|
100
|
+
rounded-full text-[10px] font-medium"
|
|
101
|
+
:style="{ color: p.color, boxShadow: `inset 0 0 0 1.5px ${p.color}` }"
|
|
102
|
+
>
|
|
103
|
+
{{ initial(p.name) }}
|
|
104
|
+
<span
|
|
105
|
+
v-if="!p.idle"
|
|
106
|
+
class="jun-campfire-alive absolute -right-0.5 -bottom-0.5 size-2 rounded-full ring-2
|
|
107
|
+
ring-white dark:ring-zinc-900"
|
|
108
|
+
:style="{ background: p.color }"
|
|
109
|
+
/>
|
|
110
|
+
</span>
|
|
111
|
+
|
|
112
|
+
<span class="min-w-0 flex-1">
|
|
113
|
+
<span class="flex items-baseline gap-1.5">
|
|
114
|
+
<span class="truncate text-sm text-zinc-800 dark:text-zinc-100">{{ p.name }}</span>
|
|
115
|
+
<span
|
|
116
|
+
v-if="p.isSelf"
|
|
117
|
+
class="text-[10px] tracking-wide text-zinc-400 dark:text-zinc-500"
|
|
118
|
+
>you</span>
|
|
119
|
+
<span
|
|
120
|
+
v-else-if="p.isBot"
|
|
121
|
+
class="text-[10px] tracking-wide text-zinc-400 dark:text-zinc-500"
|
|
122
|
+
>service</span>
|
|
123
|
+
<span
|
|
124
|
+
v-if="p.sessions > 1"
|
|
125
|
+
class="text-[10px] tabular-nums text-zinc-400 dark:text-zinc-500"
|
|
126
|
+
>×{{ p.sessions }}</span>
|
|
127
|
+
<!-- The stored grant, owner's eyes only. Absent means "inherits the
|
|
128
|
+
site default", which is not the same as being a viewer by name. -->
|
|
129
|
+
<span
|
|
130
|
+
v-if="canAdmin && grantFor(p)"
|
|
131
|
+
class="jun-campfire-grant"
|
|
132
|
+
>{{ grantFor(p) }}</span>
|
|
133
|
+
</span>
|
|
134
|
+
<span class="flex items-center gap-1 text-[11px] text-zinc-400 dark:text-zinc-500">
|
|
135
|
+
<UIcon
|
|
136
|
+
v-if="p.statusIcon"
|
|
137
|
+
:name="`i-lucide-${p.statusIcon}`"
|
|
138
|
+
class="size-3 shrink-0"
|
|
139
|
+
/>
|
|
140
|
+
<span
|
|
141
|
+
v-if="p.statusText"
|
|
142
|
+
class="truncate"
|
|
143
|
+
>{{ p.statusText }}</span>
|
|
144
|
+
<component
|
|
145
|
+
:is="placeFor(p).to ? NuxtLink : 'span'"
|
|
146
|
+
v-else-if="showPages"
|
|
147
|
+
:to="placeFor(p).to ?? void 0"
|
|
148
|
+
class="truncate"
|
|
149
|
+
:class="placeFor(p).to ? 'hover:text-zinc-600 dark:hover:text-zinc-300' : ''"
|
|
150
|
+
>{{ p.idle ? "resting on" : "reading" }} {{ placeFor(p).label }}</component>
|
|
151
|
+
</span>
|
|
152
|
+
</span>
|
|
153
|
+
|
|
154
|
+
<button
|
|
155
|
+
v-if="canFollow(p)"
|
|
156
|
+
type="button"
|
|
157
|
+
class="jun-campfire-follow flex size-7 flex-none items-center justify-center rounded-md
|
|
158
|
+
text-zinc-400 dark:text-zinc-500"
|
|
159
|
+
:class="isFollowed(p) ? 'is-on' : ''"
|
|
160
|
+
:aria-pressed="isFollowed(p)"
|
|
161
|
+
:aria-label="isFollowed(p) ? `Stop following ${p.name}` : `Follow ${p.name}`"
|
|
162
|
+
@click="emit('follow', p.clientId)"
|
|
163
|
+
>
|
|
164
|
+
<UIcon
|
|
165
|
+
:name="isFollowed(p) ? 'i-lucide-eye' : 'i-lucide-eye-off'"
|
|
166
|
+
class="size-3.5"
|
|
167
|
+
/>
|
|
168
|
+
</button>
|
|
169
|
+
|
|
170
|
+
<!-- Owner only. Stays VISIBLE once open (`is-on`) rather than following
|
|
171
|
+
hover, or moving the pointer onto the menu would hide its trigger. -->
|
|
172
|
+
<UDropdownMenu
|
|
173
|
+
v-if="canManage(p)"
|
|
174
|
+
:items="roleMenu(p)"
|
|
175
|
+
:content="{ side: 'bottom', align: 'end' }"
|
|
176
|
+
>
|
|
177
|
+
<button
|
|
178
|
+
type="button"
|
|
179
|
+
class="jun-campfire-follow flex size-7 flex-none items-center justify-center rounded-md
|
|
180
|
+
text-zinc-400 dark:text-zinc-500"
|
|
181
|
+
:class="busy === p.publicKey ? 'is-on' : ''"
|
|
182
|
+
:aria-label="`Manage ${p.name}`"
|
|
183
|
+
>
|
|
184
|
+
<UIcon
|
|
185
|
+
:name="busy === p.publicKey ? 'i-lucide-loader-circle' : 'i-lucide-ellipsis'"
|
|
186
|
+
class="size-3.5"
|
|
187
|
+
:class="busy === p.publicKey ? 'animate-spin' : ''"
|
|
188
|
+
/>
|
|
189
|
+
</button>
|
|
190
|
+
</UDropdownMenu>
|
|
191
|
+
</li>
|
|
192
|
+
</ul>
|
|
193
|
+
|
|
194
|
+
<!-- GRID — a room of tiles. -->
|
|
195
|
+
<div
|
|
196
|
+
v-else-if="style === 'grid'"
|
|
197
|
+
class="grid grid-cols-4 gap-1.5 p-2.5"
|
|
198
|
+
>
|
|
199
|
+
<component
|
|
200
|
+
:is="canFollow(p) ? 'button' : 'div'"
|
|
201
|
+
v-for="p in people"
|
|
202
|
+
:key="p.publicKey || p.clientId"
|
|
203
|
+
:type="canFollow(p) ? 'button' : void 0"
|
|
204
|
+
class="jun-campfire-tile flex flex-col items-center gap-1 rounded-lg px-1 py-2"
|
|
205
|
+
:class="[p.idle ? 'opacity-55' : '', isFollowed(p) ? 'is-on' : '']"
|
|
206
|
+
:title="showPages ? `${p.name} \u2014 ${placeFor(p).label}` : p.name"
|
|
207
|
+
@click="canFollow(p) && emit('follow', p.clientId)"
|
|
208
|
+
>
|
|
209
|
+
<span
|
|
210
|
+
class="jun-campfire-mark flex size-8 items-center justify-center rounded-full text-xs font-medium"
|
|
211
|
+
:style="{ color: p.color, boxShadow: `inset 0 0 0 1.5px ${p.color}` }"
|
|
212
|
+
>{{ initial(p.name) }}</span>
|
|
213
|
+
<span class="w-full truncate text-center text-[10px] text-zinc-500 dark:text-zinc-400">
|
|
214
|
+
{{ p.isSelf ? "you" : p.name }}
|
|
215
|
+
</span>
|
|
216
|
+
</component>
|
|
217
|
+
</div>
|
|
218
|
+
|
|
219
|
+
<!-- FACEPILE — one stack, one count. -->
|
|
220
|
+
<div
|
|
221
|
+
v-else-if="style === 'facepile'"
|
|
222
|
+
class="flex flex-wrap items-center gap-2 px-3.5 py-4"
|
|
223
|
+
>
|
|
224
|
+
<span class="flex -space-x-2">
|
|
225
|
+
<span
|
|
226
|
+
v-for="p in faces"
|
|
227
|
+
:key="p.publicKey || p.clientId"
|
|
228
|
+
class="jun-campfire-mark flex size-7 items-center justify-center rounded-full bg-white
|
|
229
|
+
text-[10px] font-medium ring-2 ring-white dark:bg-zinc-900 dark:ring-zinc-900"
|
|
230
|
+
:class="p.idle ? 'opacity-55' : ''"
|
|
231
|
+
:style="{ color: p.color, boxShadow: `inset 0 0 0 1.5px ${p.color}` }"
|
|
232
|
+
:title="p.name"
|
|
233
|
+
>{{ initial(p.name) }}</span>
|
|
234
|
+
</span>
|
|
235
|
+
<span
|
|
236
|
+
v-if="overflow"
|
|
237
|
+
class="text-xs tabular-nums text-zinc-400 dark:text-zinc-500"
|
|
238
|
+
>+{{ overflow }}</span>
|
|
239
|
+
</div>
|
|
240
|
+
|
|
241
|
+
<!-- DOTS — presence, and nothing else. -->
|
|
242
|
+
<div
|
|
243
|
+
v-else
|
|
244
|
+
class="flex flex-wrap items-center gap-2 px-4 py-5"
|
|
245
|
+
>
|
|
246
|
+
<span
|
|
247
|
+
v-for="p in people"
|
|
248
|
+
:key="p.publicKey || p.clientId"
|
|
249
|
+
class="jun-campfire-pulse size-2.5 rounded-full"
|
|
250
|
+
:class="p.idle ? 'opacity-40' : ''"
|
|
251
|
+
:style="{ background: p.color }"
|
|
252
|
+
:title="p.isSelf ? 'you' : p.name"
|
|
253
|
+
/>
|
|
254
|
+
</div>
|
|
255
|
+
</template>
|
|
256
|
+
|
|
257
|
+
<style scoped>
|
|
258
|
+
.jun-campfire-person{transition:background-color .2s ease}.jun-campfire-person:hover{background:rgba(0,0,0,.035)}:root.dark .jun-campfire-person:hover{background:hsla(0,0%,100%,.05)}.jun-campfire-mark{transition:transform .25s cubic-bezier(.22,1,.36,1)}.jun-campfire-person:hover .jun-campfire-mark,.jun-campfire-tile:hover .jun-campfire-mark{transform:scale(1.08)}.jun-campfire-tile{transition:background-color .2s ease}.jun-campfire-tile:hover{background:rgba(0,0,0,.035)}:root.dark .jun-campfire-tile:hover{background:hsla(0,0%,100%,.05)}.jun-campfire-tile.is-on{background:rgba(0,0,0,.07)}:root.dark .jun-campfire-tile.is-on{background:hsla(0,0%,100%,.1)}.jun-campfire-follow{opacity:0;transition:opacity .2s ease,color .2s ease,background-color .2s ease}.jun-campfire-follow.is-on,.jun-campfire-follow:focus-visible,.jun-campfire-person:hover .jun-campfire-follow{opacity:1}.jun-campfire-follow:hover{background:rgba(0,0,0,.06);color:#3f3f46}:root.dark .jun-campfire-follow:hover{background:hsla(0,0%,100%,.08);color:#e4e4e7}.jun-campfire-follow.is-on{color:#3f3f46}:root.dark .jun-campfire-follow.is-on{color:#e4e4e7}.jun-campfire-grant{background:rgba(0,0,0,.07);border-radius:999px;color:#52525b;font-size:9px;letter-spacing:.04em;line-height:.95rem;padding:0 .3rem;text-transform:uppercase}:root.dark .jun-campfire-grant{background:hsla(0,0%,100%,.1);color:#d4d4d8}.jun-campfire-alive,.jun-campfire-pulse{animation:jun-campfire-pulse 5s ease-in-out infinite}@keyframes jun-campfire-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.18)}}@media (prefers-reduced-motion:reduce){.jun-campfire-alive,.jun-campfire-mark,.jun-campfire-pulse{animation:none;transition:none}}
|
|
259
|
+
</style>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { JunCampfirePerson } from '../composables/useJunCampfire.js';
|
|
2
|
+
import type { JunCampfireRosterStyle } from '../types.js';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
people: JunCampfirePerson[];
|
|
5
|
+
style: JunCampfireRosterStyle;
|
|
6
|
+
showPages: boolean;
|
|
7
|
+
/** Offer the follow action. Off leaves the roster purely informational. */
|
|
8
|
+
follow: boolean;
|
|
9
|
+
followingClientId?: number | null;
|
|
10
|
+
/** The space root, so "the front page" reads as itself rather than as a uuid. */
|
|
11
|
+
homeDocId?: string | null;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
follow: (clientId: number) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
onFollow?: ((clientId: number) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { JunCampfirePerson } from '../composables/useJunCampfire.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
self: JunCampfirePerson;
|
|
4
|
+
allowRename: boolean;
|
|
5
|
+
/** How many other people are here — the one number worth repeating. */
|
|
6
|
+
others: number;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, ref, watch } from "vue";
|
|
3
|
+
import { useAbracadabra } from "#imports";
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
self: { type: Object, required: true },
|
|
6
|
+
allowRename: { type: Boolean, required: true },
|
|
7
|
+
others: { type: Number, required: true }
|
|
8
|
+
});
|
|
9
|
+
const abra = useAbracadabra();
|
|
10
|
+
const MAX_NAME = 32;
|
|
11
|
+
const MAX_STATUS = 80;
|
|
12
|
+
const MOODS = [
|
|
13
|
+
{ icon: "coffee", label: "Coffee" },
|
|
14
|
+
{ icon: "book-open", label: "Reading" },
|
|
15
|
+
{ icon: "headphones", label: "Listening" },
|
|
16
|
+
{ icon: "pen-line", label: "Writing" },
|
|
17
|
+
{ icon: "moon", label: "Away" },
|
|
18
|
+
{ icon: "sparkle", label: "Around" }
|
|
19
|
+
];
|
|
20
|
+
const nameDraft = ref("");
|
|
21
|
+
const statusDraft = ref("");
|
|
22
|
+
watch(
|
|
23
|
+
() => abra.userName.value,
|
|
24
|
+
(v) => {
|
|
25
|
+
nameDraft.value = v ?? "";
|
|
26
|
+
},
|
|
27
|
+
{ immediate: true }
|
|
28
|
+
);
|
|
29
|
+
watch(
|
|
30
|
+
() => abra.userStatusText.value,
|
|
31
|
+
(v) => {
|
|
32
|
+
statusDraft.value = v ?? "";
|
|
33
|
+
},
|
|
34
|
+
{ immediate: true }
|
|
35
|
+
);
|
|
36
|
+
function commitName() {
|
|
37
|
+
const next = nameDraft.value.trim().slice(0, MAX_NAME);
|
|
38
|
+
if (!next) {
|
|
39
|
+
nameDraft.value = abra.userName.value ?? "";
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
if (next === abra.userName.value) return;
|
|
43
|
+
abra.setUserName(next);
|
|
44
|
+
}
|
|
45
|
+
function commitStatus() {
|
|
46
|
+
const next = statusDraft.value.trim().slice(0, MAX_STATUS);
|
|
47
|
+
if (next === (abra.userStatusText.value ?? "")) return;
|
|
48
|
+
abra.setUserStatusText(next);
|
|
49
|
+
}
|
|
50
|
+
function pickMood(icon) {
|
|
51
|
+
abra.setUserStatusIcon(abra.userStatusIcon.value === icon ? "" : icon);
|
|
52
|
+
}
|
|
53
|
+
const initial = computed(() => [...(props.self.name ?? "").trim()][0]?.toUpperCase() ?? "\xB7");
|
|
54
|
+
const shortKey = computed(() => {
|
|
55
|
+
const k = props.self.publicKey;
|
|
56
|
+
return k ? `${k.slice(0, 6)}\u2026${k.slice(-4)}` : "";
|
|
57
|
+
});
|
|
58
|
+
const connected = computed(() => abra.isReady.value === true);
|
|
59
|
+
</script>
|
|
60
|
+
|
|
61
|
+
<template>
|
|
62
|
+
<div class="space-y-5 px-4 py-4">
|
|
63
|
+
<!-- Who you are here -->
|
|
64
|
+
<div class="flex items-center gap-3">
|
|
65
|
+
<span
|
|
66
|
+
class="flex size-11 flex-none items-center justify-center rounded-full text-sm font-medium"
|
|
67
|
+
:style="{ color: self.color, boxShadow: `inset 0 0 0 2px ${self.color}` }"
|
|
68
|
+
>{{ initial }}</span>
|
|
69
|
+
<div class="min-w-0 flex-1">
|
|
70
|
+
<p class="truncate text-sm font-medium text-zinc-800 dark:text-zinc-100">
|
|
71
|
+
{{ self.name }}
|
|
72
|
+
</p>
|
|
73
|
+
<p class="flex items-center gap-1.5 text-[11px] text-zinc-400 dark:text-zinc-500">
|
|
74
|
+
<span
|
|
75
|
+
class="size-1.5 rounded-full"
|
|
76
|
+
:class="connected ? 'bg-emerald-500' : 'bg-current opacity-40'"
|
|
77
|
+
/>
|
|
78
|
+
{{ connected ? "here, connected" : "connecting" }}
|
|
79
|
+
<span v-if="others">· with {{ others }} {{ others === 1 ? "other" : "others" }}</span>
|
|
80
|
+
</p>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
|
|
84
|
+
<!-- Handle -->
|
|
85
|
+
<div v-if="allowRename">
|
|
86
|
+
<label
|
|
87
|
+
class="mb-1.5 block text-[10px] tracking-[0.18em] text-zinc-400 uppercase dark:text-zinc-500"
|
|
88
|
+
for="jun-campfire-name"
|
|
89
|
+
>Your name here</label>
|
|
90
|
+
<UInput
|
|
91
|
+
id="jun-campfire-name"
|
|
92
|
+
v-model="nameDraft"
|
|
93
|
+
:maxlength="MAX_NAME"
|
|
94
|
+
size="sm"
|
|
95
|
+
class="w-full"
|
|
96
|
+
placeholder="a name to be known by"
|
|
97
|
+
@blur="commitName"
|
|
98
|
+
@keydown.enter="commitName"
|
|
99
|
+
/>
|
|
100
|
+
<p class="mt-1.5 text-[11px] text-zinc-400 dark:text-zinc-500">
|
|
101
|
+
Kept in this browser and shown to everyone here.
|
|
102
|
+
</p>
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
<!-- Mood -->
|
|
106
|
+
<div>
|
|
107
|
+
<p class="mb-1.5 text-[10px] tracking-[0.18em] text-zinc-400 uppercase dark:text-zinc-500">
|
|
108
|
+
What you are up to
|
|
109
|
+
</p>
|
|
110
|
+
<div class="flex flex-wrap gap-1.5">
|
|
111
|
+
<button
|
|
112
|
+
v-for="m in MOODS"
|
|
113
|
+
:key="m.icon"
|
|
114
|
+
type="button"
|
|
115
|
+
class="jun-campfire-mood inline-flex items-center gap-1.5 rounded-full px-2.5 py-1 text-[11px]"
|
|
116
|
+
:class="abra.userStatusIcon.value === m.icon ? 'is-on' : ''"
|
|
117
|
+
:aria-pressed="abra.userStatusIcon.value === m.icon"
|
|
118
|
+
@click="pickMood(m.icon)"
|
|
119
|
+
>
|
|
120
|
+
<UIcon
|
|
121
|
+
:name="`i-lucide-${m.icon}`"
|
|
122
|
+
class="size-3.5"
|
|
123
|
+
/>
|
|
124
|
+
{{ m.label }}
|
|
125
|
+
</button>
|
|
126
|
+
</div>
|
|
127
|
+
<UInput
|
|
128
|
+
v-model="statusDraft"
|
|
129
|
+
:maxlength="MAX_STATUS"
|
|
130
|
+
size="sm"
|
|
131
|
+
class="mt-2 w-full"
|
|
132
|
+
placeholder="say a little more (optional)"
|
|
133
|
+
@blur="commitStatus"
|
|
134
|
+
@keydown.enter="commitStatus"
|
|
135
|
+
/>
|
|
136
|
+
</div>
|
|
137
|
+
|
|
138
|
+
<!-- The durable part -->
|
|
139
|
+
<div class="border-t border-zinc-900/5 pt-3 dark:border-white/10">
|
|
140
|
+
<p class="flex items-center gap-1.5 text-[11px] text-zinc-400 dark:text-zinc-500">
|
|
141
|
+
<UIcon
|
|
142
|
+
name="i-lucide-key-round"
|
|
143
|
+
class="size-3.5 shrink-0"
|
|
144
|
+
/>
|
|
145
|
+
<span class="font-mono">{{ shortKey || "no key yet" }}</span>
|
|
146
|
+
</p>
|
|
147
|
+
<p class="mt-1 text-[11px] leading-relaxed text-zinc-400 dark:text-zinc-500">
|
|
148
|
+
This browser holds a key that is your account on this site. Clear its data and you
|
|
149
|
+
arrive as someone new.
|
|
150
|
+
</p>
|
|
151
|
+
</div>
|
|
152
|
+
</div>
|
|
153
|
+
</template>
|
|
154
|
+
|
|
155
|
+
<style scoped>
|
|
156
|
+
.jun-campfire-mood{box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);color:#71717a;transition:box-shadow .2s ease,background-color .2s ease,color .2s ease}:root.dark .jun-campfire-mood{box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.12);color:#a1a1aa}.jun-campfire-mood:hover{background:rgba(0,0,0,.04)}:root.dark .jun-campfire-mood:hover{background:hsla(0,0%,100%,.06)}.jun-campfire-mood.is-on{background:rgba(0,0,0,.06);box-shadow:inset 0 0 0 1.5px rgba(0,0,0,.55);color:#27272a}:root.dark .jun-campfire-mood.is-on{background:hsla(0,0%,100%,.09);box-shadow:inset 0 0 0 1.5px hsla(0,0%,100%,.6);color:#f4f4f5}@media (prefers-reduced-motion:reduce){.jun-campfire-mood{transition:none}}
|
|
157
|
+
</style>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { JunCampfirePerson } from '../composables/useJunCampfire.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
self: JunCampfirePerson;
|
|
4
|
+
allowRename: boolean;
|
|
5
|
+
/** How many other people are here — the one number worth repeating. */
|
|
6
|
+
others: number;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { JunLayoutBucket } from '../composables/useJunDocPage.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
docId: string;
|
|
4
|
+
bucket: JunLayoutBucket;
|
|
5
|
+
/** Wrapper width + padding for the flowing bucket. Empty for self-padded types. */
|
|
6
|
+
flowMaxW: string;
|
|
7
|
+
renderKey: string;
|
|
8
|
+
editable: boolean;
|
|
9
|
+
/** Server-cache stand-in until the live tree entry arrives. */
|
|
10
|
+
entry?: {
|
|
11
|
+
label: string;
|
|
12
|
+
type: string;
|
|
13
|
+
meta: Record<string, unknown>;
|
|
14
|
+
} | null;
|
|
15
|
+
/** Cached document HTML from the Nitro doc cache. */
|
|
16
|
+
html?: string;
|
|
17
|
+
/** Show the breadcrumb trail. Off on the index, which has no parent chain. */
|
|
18
|
+
breadcrumbs?: boolean;
|
|
19
|
+
};
|
|
20
|
+
declare var __VLS_37: {
|
|
21
|
+
feed: boolean;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_Slots = {} & {
|
|
24
|
+
footer?: (props: typeof __VLS_37) => any;
|
|
25
|
+
};
|
|
26
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useJunLayoutPolicy } from "#imports";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
docId: { type: String, required: true },
|
|
5
|
+
bucket: { type: String, required: true },
|
|
6
|
+
flowMaxW: { type: String, required: true },
|
|
7
|
+
renderKey: { type: String, required: true },
|
|
8
|
+
editable: { type: Boolean, required: true },
|
|
9
|
+
entry: { type: [Object, null], required: false },
|
|
10
|
+
html: { type: String, required: false },
|
|
11
|
+
breadcrumbs: { type: Boolean, required: false }
|
|
12
|
+
});
|
|
13
|
+
const { isFeedType } = useJunLayoutPolicy();
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<!-- IMMERSIVE — edge-to-edge canvas behind the floating navbar pill. -->
|
|
18
|
+
<div
|
|
19
|
+
v-if="bucket === 'immersive'"
|
|
20
|
+
class="fixed inset-0"
|
|
21
|
+
>
|
|
22
|
+
<JunBreadcrumbs
|
|
23
|
+
v-if="breadcrumbs"
|
|
24
|
+
:doc-id="props.docId"
|
|
25
|
+
floating
|
|
26
|
+
/>
|
|
27
|
+
<ADocRenderer
|
|
28
|
+
:key="props.renderKey"
|
|
29
|
+
:doc-id="props.docId"
|
|
30
|
+
:entry="props.entry"
|
|
31
|
+
:editable="props.editable"
|
|
32
|
+
editor-class="w-full h-full"
|
|
33
|
+
renderer-class="w-full h-full"
|
|
34
|
+
>
|
|
35
|
+
<template #loading>
|
|
36
|
+
<div
|
|
37
|
+
v-if="props.html"
|
|
38
|
+
class="prose dark:prose-invert max-w-none"
|
|
39
|
+
v-html="props.html"
|
|
40
|
+
/>
|
|
41
|
+
<span v-else />
|
|
42
|
+
</template>
|
|
43
|
+
</ADocRenderer>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<!-- PANEL — navbar docks full width, renderer fills the viewport BELOW it.
|
|
47
|
+
`jun-panel-page` supplies the top offset (nav height + safe area); an
|
|
48
|
+
`inset-0` here would put the renderer underneath the nav instead. -->
|
|
49
|
+
<div
|
|
50
|
+
v-else-if="bucket === 'panel'"
|
|
51
|
+
class="jun-panel-page fixed inset-x-0 bottom-0"
|
|
52
|
+
>
|
|
53
|
+
<JunBreadcrumbs
|
|
54
|
+
v-if="breadcrumbs"
|
|
55
|
+
:doc-id="props.docId"
|
|
56
|
+
floating
|
|
57
|
+
docked-nav
|
|
58
|
+
/>
|
|
59
|
+
<ADocRenderer
|
|
60
|
+
:key="props.renderKey"
|
|
61
|
+
:doc-id="props.docId"
|
|
62
|
+
:entry="props.entry"
|
|
63
|
+
:editable="props.editable"
|
|
64
|
+
editor-class="w-full h-full"
|
|
65
|
+
renderer-class="w-full h-full"
|
|
66
|
+
>
|
|
67
|
+
<template #loading>
|
|
68
|
+
<div
|
|
69
|
+
v-if="props.html"
|
|
70
|
+
class="prose dark:prose-invert max-w-none"
|
|
71
|
+
v-html="props.html"
|
|
72
|
+
/>
|
|
73
|
+
<span v-else />
|
|
74
|
+
</template>
|
|
75
|
+
</ADocRenderer>
|
|
76
|
+
</div>
|
|
77
|
+
|
|
78
|
+
<!-- FLOWING — page scroll, navbar auto-hides.
|
|
79
|
+
`jun-flow-page` carries the navbar inset: the top clearance a top bar
|
|
80
|
+
needs, or the side clearance a rail needs, from the geometry the navbar
|
|
81
|
+
publishes onto <html>. It is PADDING, so hover lifts and shadows still
|
|
82
|
+
travel over the navbar rather than being clipped by it. -->
|
|
83
|
+
<div
|
|
84
|
+
v-else
|
|
85
|
+
class="jun-flow-page flex min-h-screen flex-col"
|
|
86
|
+
>
|
|
87
|
+
<JunBreadcrumbs
|
|
88
|
+
v-if="breadcrumbs"
|
|
89
|
+
:doc-id="props.docId"
|
|
90
|
+
/>
|
|
91
|
+
<div :class="['mx-auto flex w-full flex-1 flex-col', props.flowMaxW]">
|
|
92
|
+
<ADocRenderer
|
|
93
|
+
:key="props.renderKey"
|
|
94
|
+
:doc-id="props.docId"
|
|
95
|
+
:entry="props.entry"
|
|
96
|
+
:editable="props.editable"
|
|
97
|
+
editor-class="w-full rounded-md"
|
|
98
|
+
renderer-class="w-full flex-1"
|
|
99
|
+
>
|
|
100
|
+
<template #loading>
|
|
101
|
+
<div
|
|
102
|
+
v-if="props.html"
|
|
103
|
+
class="prose dark:prose-invert max-w-none"
|
|
104
|
+
v-html="props.html"
|
|
105
|
+
/>
|
|
106
|
+
<span v-else />
|
|
107
|
+
</template>
|
|
108
|
+
</ADocRenderer>
|
|
109
|
+
|
|
110
|
+
<!-- Owner affordances belong to the page, not the surface. -->
|
|
111
|
+
<slot
|
|
112
|
+
name="footer"
|
|
113
|
+
:feed="isFeedType(props.entry?.type)"
|
|
114
|
+
/>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
</template>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { JunLayoutBucket } from '../composables/useJunDocPage.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
docId: string;
|
|
4
|
+
bucket: JunLayoutBucket;
|
|
5
|
+
/** Wrapper width + padding for the flowing bucket. Empty for self-padded types. */
|
|
6
|
+
flowMaxW: string;
|
|
7
|
+
renderKey: string;
|
|
8
|
+
editable: boolean;
|
|
9
|
+
/** Server-cache stand-in until the live tree entry arrives. */
|
|
10
|
+
entry?: {
|
|
11
|
+
label: string;
|
|
12
|
+
type: string;
|
|
13
|
+
meta: Record<string, unknown>;
|
|
14
|
+
} | null;
|
|
15
|
+
/** Cached document HTML from the Nitro doc cache. */
|
|
16
|
+
html?: string;
|
|
17
|
+
/** Show the breadcrumb trail. Off on the index, which has no parent chain. */
|
|
18
|
+
breadcrumbs?: boolean;
|
|
19
|
+
};
|
|
20
|
+
declare var __VLS_37: {
|
|
21
|
+
feed: boolean;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_Slots = {} & {
|
|
24
|
+
footer?: (props: typeof __VLS_37) => any;
|
|
25
|
+
};
|
|
26
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -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;
|