@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,13 @@
|
|
|
1
|
+
@source "../../components/**/*.vue";@source "../../pages/**/*.vue";@source "../../layouts/**/*.vue";html.jun-font-serif{--font-sans:"Newsreader","Georgia",serif;font-family:Newsreader,Georgia,serif}html.jun-font-grotesk{--font-sans:"Space Grotesk",system-ui,sans-serif;font-family:Space Grotesk,system-ui,sans-serif}html.jun-font-mono{--font-sans:"JetBrains Mono",ui-monospace,monospace;font-family:JetBrains Mono,ui-monospace,monospace}@theme{--font-sans:"Outfit",system-ui,sans-serif;--font-serif:"Instrument Serif","Georgia",serif;--color-neutral-50:#fafaf9;--color-neutral-100:#f5f5f4;--color-neutral-200:#e7e5e4;--color-neutral-300:#d6d3d1;--color-neutral-400:#a8a29e;--color-neutral-500:#78716c;--color-neutral-600:#57534e;--color-neutral-700:#44403c;--color-neutral-800:#292524;--color-neutral-900:#1c1917;--color-neutral-950:#0c0a09}@layer components{.jun-blur{@apply bg-neutral-50/40 text-neutral-950 backdrop-blur-sm
|
|
2
|
+
dark:bg-neutral-900/70 dark:text-neutral-100/90}.jun-blur-inverted{@apply bg-gradient-to-t from-neutral-50 via-neutral-50/40 to-neutral-50/10
|
|
3
|
+
text-neutral-100/90 backdrop-blur-sm
|
|
4
|
+
dark:from-neutral-950/10 dark:to-neutral-950/20 dark:via-transparent
|
|
5
|
+
dark:text-neutral-950}.jun-blur-gradient{@apply bg-gradient-to-b from-neutral-50 to-neutral-50/40 text-neutral-950 backdrop-blur-sm
|
|
6
|
+
dark:from-neutral-900 dark:to-neutral-900/70 dark:text-neutral-100/90}.jun-chrome{@apply bg-gradient-to-b from-neutral-50 to-neutral-50/40 text-neutral-950 backdrop-blur-sm
|
|
7
|
+
dark:from-neutral-900 dark:to-neutral-900/70 dark:text-neutral-100/90
|
|
8
|
+
shadow-xl border border-white/10 dark:border-black/5
|
|
9
|
+
ring-1 ring-black/5 dark:ring-white/10}.jun-card{@apply bg-gradient-to-b from-neutral-50/70 to-neutral-50/40 text-default backdrop-blur-md
|
|
10
|
+
dark:from-neutral-900/65 dark:to-neutral-900/45
|
|
11
|
+
border border-white/10 dark:border-white/5
|
|
12
|
+
ring-1 ring-black/5 dark:ring-white/10
|
|
13
|
+
shadow-lg shadow-black/10}}@layer base{.jun-flow-page{padding-top:6rem}html[data-jun-nav=bottom] .jun-flow-page,html[data-jun-nav=rail-left] .jun-flow-page,html[data-jun-nav=rail-right] .jun-flow-page{padding-top:2rem}html[data-jun-nav=rail-left] .jun-flow-page{padding-left:var(--jun-nav-rail-w,0)}html[data-jun-nav=rail-right] .jun-flow-page{padding-right:var(--jun-nav-rail-w,0)}html[data-jun-nav=bottom] .jun-flow-page{padding-bottom:7rem}body,html{color-scheme:light dark;overscroll-behavior-y:none;scroll-behavior:smooth}body{-webkit-tap-highlight-color:transparent;padding-top:env(safe-area-inset-top);touch-action:manipulation}html{overflow-y:scroll;scrollbar-gutter:stable}:root[style*="--scrollbar-width"] body,body[data-scroll-locked]{margin-right:0!important;padding-right:0!important}html.jun-viewport-bound,html.jun-viewport-bound body{height:100vh;overflow:hidden}::-webkit-scrollbar{height:10px;width:10px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:var(--ui-border);border:2px solid transparent;border-radius:9999px}::-webkit-scrollbar-thumb:hover{background-color:var(--ui-border-accented)}::-webkit-scrollbar-corner{background:transparent}*{scrollbar-color:var(--ui-border) transparent;scrollbar-width:thin}.jun-scrollbar-hide::-webkit-scrollbar{display:none}.jun-scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}.ProseMirror[contenteditable=false] .meta-field-chip,.ProseMirror[contenteditable=false] [data-type=document-meta],.aeditor-breadcrumb{display:none!important}html[data-jun-player] body{padding-bottom:calc(4rem + env(safe-area-inset-bottom, 0px))}html[data-jun-player][data-jun-nav=bottom] body{padding-bottom:0}.jun-player{bottom:calc(1rem + env(safe-area-inset-bottom, 0px));left:50%;max-width:min(22rem,calc(100vw - 10rem));translate:-50% 0;width:-moz-max-content;width:max-content}html[data-jun-nav=bottom] .jun-player{bottom:auto;max-width:min(22rem,calc(100vw - 2rem));top:calc(1rem + env(safe-area-inset-top, 0px))}.jun-player-sheet{bottom:calc(1.5rem + env(safe-area-inset-bottom, 0px) + var(--jun-player-h, 0px));left:50%;translate:-50% 0;width:min(22rem,calc(100vw - 10rem))}html[data-jun-nav=bottom] .jun-player-sheet{bottom:auto;top:calc(1.5rem + env(safe-area-inset-top, 0px) + var(--jun-player-h, 0px));width:min(22rem,calc(100vw - 2rem))}}:root{--ui-primary:#000;--ui-container:70rem;--jun-nav-h:3rem;--jun-nav-offset:calc(var(--jun-nav-h) + env(safe-area-inset-top, 0px));--jun-chrome-top:0px;--jun-chrome-bottom:0px;--jun-chrome-left-top:0px;--jun-chrome-left-bottom:0px;--jun-chrome-right-top:0px;--jun-chrome-right-bottom:0px;--jun-sun-from:#24242a;--jun-sun-to:#0f0f12;--jun-sun-core:#fff;--jun-sun-glow:#18181b}.dark{--ui-primary:#fff;--jun-sun-from:#fafafa;--jun-sun-to:#e4e4e7;--jun-sun-core:#101013;--jun-sun-glow:#f4f4f5}.jun-nav-docked{border-left-color:transparent;border-radius:0;border-right-color:transparent;border-top-color:transparent;height:var(--jun-nav-offset);max-width:none;padding-top:env(safe-area-inset-top,0)}.jun-panel-page{top:var(--jun-nav-offset)}.a-map-toolbar-bar,.graph-toolbar-bar{backdrop-filter:blur(8px)!important;background:linear-gradient(180deg,#fff,hsla(0,0%,100%,.4))!important;border:1px solid hsla(0,0%,100%,.1)!important;border-radius:9999px!important;bottom:calc(1.5rem + env(safe-area-inset-bottom, 0px))!important;box-shadow:0 20px 25px -5px rgba(0,0,0,.12),0 8px 10px -6px rgba(0,0,0,.1),0 0 0 1px rgba(0,0,0,.05)!important;gap:4px!important;padding:4px 10px!important}.dark .a-map-toolbar-bar,.dark .graph-toolbar-bar{background:linear-gradient(180deg,#18181b,rgba(24,24,27,.7))!important;border-color:rgba(0,0,0,.05)!important;box-shadow:0 20px 25px -5px rgba(0,0,0,.4),0 8px 10px -6px rgba(0,0,0,.3),0 0 0 1px hsla(0,0%,100%,.1)!important}.a-map-toolbar-bar .toolbar-divider,.graph-toolbar-bar .toolbar-divider{background:rgba(0,0,0,.12)!important}.dark .a-map-toolbar-bar .toolbar-divider,.dark .graph-toolbar-bar .toolbar-divider{background:hsla(0,0%,100%,.15)!important}.graph-minimap{top:6rem!important}.jun-fade-enter-active,.jun-fade-leave-active{transition:opacity .22s ease}.jun-fade-enter-from,.jun-fade-leave-to{opacity:0}html[data-jun-restore] .jun-fade-enter-active,html[data-jun-restore] .jun-fade-leave-active{transition:none}.aa-presence-blobs__blob{filter:none;-webkit-mask-image:radial-gradient(closest-side,#000 0,rgba(0,0,0,.62) 42%,rgba(0,0,0,.22) 68%,transparent 100%);mask-image:radial-gradient(closest-side,#000 0,rgba(0,0,0,.62) 42%,rgba(0,0,0,.22) 68%,transparent 100%);opacity:.3}:root:not(.dark) .aa-presence-blobs__blob{opacity:.2}:root:not(.dark) .jun-presence-blobs{mix-blend-mode:multiply}:root:not(.dark) .jun-presence-blobs__blob{opacity:.24}:root:not(.dark) .jun-presence-blobs__blob:not(.is-anchored){opacity:.15}.jun-logo{transition:transform .4s cubic-bezier(.22,1,.36,1),filter .4s ease,opacity .5s ease}.jun-logo-dot,.jun-sun-core{transform-box:fill-box;transform-origin:center;transition:transform .4s cubic-bezier(.22,1,.36,1)}.jun-logo-dot:nth-of-type(2){transition-delay:.04s}.jun-logo-dot:nth-of-type(3){transition-delay:.08s}.jun-sun-halo{transform-box:fill-box;transform-origin:center;transition:opacity .4s ease,transform .4s cubic-bezier(.22,1,.36,1)}:is(.jun-logo:hover,:is(a,button,summary,.jun-logo-lockup):hover .jun-logo):not(.jun-logo--sun){transform:scale(1.04)}:is(.jun-logo:hover,:is(a,button,summary,.jun-logo-lockup):hover .jun-logo) .jun-logo-dot{transform:scale(1.18)}:is(.jun-logo--sun:hover,:is(a,button,summary,.jun-logo-lockup):hover .jun-logo--sun) .jun-sun-halo{opacity:.8;transform:scale(1.14)}:is(.jun-logo--sun:hover,:is(a,button,summary,.jun-logo-lockup):hover .jun-logo--sun) .jun-sun-core{transform:scale(1.1)}:is(.jun-logo:active,:is(a,button,summary):active .jun-logo):not(.jun-logo--sun){transform:scale(.96)}:is(.jun-logo--sun:active,:is(a,button,summary):active .jun-logo--sun) .jun-sun-core{transform:scale(.9)}.jun-logo-bang:empty{display:none}.jun-logo-bang{display:inline-block;font-weight:700;padding-inline:.02em;transition:transform .4s cubic-bezier(.22,1,.36,1)}:is(a,button,summary,.jun-logo-lockup):hover .jun-logo-bang{transform:translateY(-.06em)}.jun-logo-lockup.is-sun .jun-logo-bang{color:var(--jun-sun-glow)}@media (prefers-reduced-motion:reduce){.jun-logo,.jun-logo-bang,.jun-logo-dot,.jun-sun-core,.jun-sun-halo{transition:none}}html.doc-dragging .ProseMirror{border-radius:8px;outline:2px dashed rgba(0,0,0,.18);outline-offset:8px;transition:outline-color .2s ease}html.dark.doc-dragging .ProseMirror,html.doc-dragging.dark .ProseMirror{outline-color:hsla(0,0%,100%,.22)}html.doc-dragging [data-doc-drop-zone]{border-radius:10px;outline:2px dashed rgba(0,0,0,.14);outline-offset:4px}html.dark.doc-dragging [data-doc-drop-zone],html.doc-dragging.dark [data-doc-drop-zone]{outline-color:hsla(0,0%,100%,.18)}html.theme-switching,html.theme-switching *{transition:background-color .45s ease,color .45s ease,border-color .45s ease,fill .45s ease,stroke .45s ease!important}@media (prefers-reduced-motion:reduce){.jun-fade-enter-active,.jun-fade-leave-active{transition:none}html.theme-switching,html.theme-switching *{transition:none!important}}html.jun-surface-soft *,html.jun-surface-soft :after,html.jun-surface-soft :before,html.jun-surface-solid *,html.jun-surface-solid :after,html.jun-surface-solid :before{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}html.jun-surface-soft .jun-blur,html.jun-surface-soft .jun-blur-gradient,html.jun-surface-soft .jun-blur-inverted,html.jun-surface-soft .jun-campfire-banner,html.jun-surface-soft .jun-campfire-panel,html.jun-surface-soft .jun-campfire-pill,html.jun-surface-soft .jun-chrome{backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important}html.jun-surface-solid .jun-blur,html.jun-surface-solid .jun-blur-gradient,html.jun-surface-solid .jun-card,html.jun-surface-solid .jun-chrome{background-color:rgba(250,250,252,.97)!important;background-image:none!important}html.jun-surface-solid.dark .jun-blur,html.jun-surface-solid.dark .jun-blur-gradient,html.jun-surface-solid.dark .jun-card,html.jun-surface-solid.dark .jun-chrome{background-color:rgba(24,24,27,.97)!important}html.jun-surface-solid .jun-campfire-banner,html.jun-surface-solid .jun-campfire-panel,html.jun-surface-solid .jun-campfire-pill{background:hsla(0,0%,100%,.97)!important}html.jun-surface-solid.dark .jun-campfire-banner,html.jun-surface-solid.dark .jun-campfire-panel,html.jun-surface-solid.dark .jun-campfire-pill{background:rgba(24,24,27,.97)!important}html.jun-surface-solid .jun-blur-inverted{background-color:rgba(250,250,252,.92)!important;background-image:none!important}html.jun-surface-solid.dark .jun-blur-inverted{background-color:rgba(14,15,17,.92)!important}.jun-palette-panel{display:flex;flex-direction:column;left:var(--jun-palette-left,50vw);max-height:var(--jun-palette-max-h,min(60vh,34rem));max-width:none;overflow:hidden;position:fixed;top:var(--jun-palette-top,5.5rem);transform-origin:var(--jun-palette-origin,top center);translate:var(--jun-palette-tx,-50%) var(--jun-palette-ty,0);width:var(--jun-palette-w,min(42rem,calc(100vw - 2rem)))}.jun-palette-panel[data-state=open]{animation:jun-palette-in .26s cubic-bezier(.22,1,.36,1) both}.jun-palette-panel[data-state=closed]{animation:jun-palette-out .13s ease-in both}@keyframes jun-palette-in{0%{opacity:0;transform:var(--jun-palette-from,translateY(-8px)) scale(.97)}to{opacity:1;transform:none}}@keyframes jun-palette-out{0%{opacity:1;transform:none}to{opacity:0;transform:var(--jun-palette-from,translateY(-8px)) scale(.98)}}.jun-palette-cursor{border-radius:.375rem;left:.5rem;pointer-events:none;position:absolute;right:.5rem;top:0;transition:transform .26s cubic-bezier(.22,1,.36,1),height .26s cubic-bezier(.22,1,.36,1),opacity .16s ease}.jun-palette-cursor.is-placing{transition:none}.jun-palette-stagger>*{animation:jun-palette-row-in .32s cubic-bezier(.22,1,.36,1) both}@keyframes jun-palette-row-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.jun-pal-move{transition:transform .28s cubic-bezier(.22,1,.36,1)}.jun-pal-enter-active{transition:opacity .2s ease,transform .2s cubic-bezier(.22,1,.36,1)}.jun-pal-leave-active{left:0;position:absolute;right:0;transition:opacity .12s ease,transform .12s ease}.jun-pal-enter-from,.jun-pal-leave-to{opacity:0;transform:translateY(-4px)}.jun-palette-snippet mark{background:transparent;color:inherit;font-weight:600;text-decoration:underline;text-underline-offset:2px}@media (prefers-reduced-motion:reduce){.jun-palette-panel[data-state=closed],.jun-palette-panel[data-state=open],.jun-palette-stagger>*{animation:none}.jun-pal-enter-active,.jun-pal-leave-active,.jun-pal-move,.jun-palette-cursor{transition:none}}html[data-jun-nav=bottom] .jun-player-enter-from,html[data-jun-nav=bottom] .jun-player-leave-to{transform:translateY(-1.5rem)}@media (prefers-reduced-motion:reduce){html[data-jun-nav=bottom] .jun-player-enter-from,html[data-jun-nav=bottom] .jun-player-leave-to{transform:none}}.jun-bar{--jun-bar-stack:0px;--jun-bar-inset:0px;position:fixed;transition:top .45s cubic-bezier(.22,1,.36,1),right .45s cubic-bezier(.22,1,.36,1),bottom .45s cubic-bezier(.22,1,.36,1),left .45s cubic-bezier(.22,1,.36,1),box-shadow .35s ease;z-index:60}.jun-bar-pill{align-items:center;display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none}.jun-bar[data-jun-corner=top-left]{left:calc(var(--jun-chrome-left-top, 0px) + var(--jun-bar-inset) + var(--jun-chrome-x-left, 1rem) + env(safe-area-inset-left, 0px))}.jun-bar[data-jun-corner=bottom-left]{left:calc(var(--jun-chrome-left-bottom, 0px) + var(--jun-bar-inset) + var(--jun-chrome-x-left, 1rem) + env(safe-area-inset-left, 0px))}.jun-bar[data-jun-corner=top-right]{right:calc(var(--jun-chrome-right-top, 0px) + var(--jun-bar-inset) + var(--jun-chrome-x-right, 1rem) + env(safe-area-inset-right, 0px))}.jun-bar[data-jun-corner=bottom-right]{right:calc(var(--jun-chrome-right-bottom, 0px) + var(--jun-bar-inset) + var(--jun-chrome-x-right, 1rem) + env(safe-area-inset-right, 0px))}.jun-bar[data-jun-corner^=bottom]{bottom:calc(var(--jun-chrome-bottom, 0px) + var(--jun-bar-stack) + var(--jun-chrome-y-bottom, 1rem) + env(safe-area-inset-bottom, 0px))}.jun-bar[data-jun-corner^=top]{top:calc(var(--jun-chrome-top, 0px) + var(--jun-bar-stack) + var(--jun-chrome-y-top, 1rem) + env(safe-area-inset-top, 0px))}.jun-bar-pill,.jun-bar-trigger{border-radius:var(--jun-chrome-radius,9999px)}.jun-hearth-embers{height:1px;pointer-events:none;width:1px;z-index:61}.jun-bar.is-opaque{backdrop-filter:none;-webkit-backdrop-filter:none;background-color:rgba(250,250,252,.97);background-image:none}:root.dark .jun-bar.is-opaque{background-color:rgba(24,24,27,.97)}.jun-bar-trigger{touch-action:none;-webkit-touch-callout:none}.jun-bar.is-pressing{box-shadow:0 12px 32px -8px rgba(0,0,0,.28)}.jun-bar.is-on{background-color:var(--color-neutral-900);background-image:none;border-color:transparent;color:var(--color-neutral-50)}:root.dark .jun-bar.is-on{background-color:var(--color-neutral-100);color:var(--color-neutral-900)}.jun-studio-bar{min-height:2.375rem;min-width:4rem}.jun-bar-knob{background-color:var(--color-neutral-900);bottom:1px;box-shadow:0 1px 3px rgba(0,0,0,.2);color:var(--color-neutral-50);left:1px;position:absolute;top:1px;transition:left .42s cubic-bezier(.22,1,.36,1),translate .42s cubic-bezier(.22,1,.36,1),background-color .3s ease,color .3s ease,box-shadow .3s ease;translate:0 0;width:2.25rem}:root.dark .jun-bar-knob{background-color:var(--color-neutral-100);color:var(--color-neutral-900)}.jun-bar.is-on .jun-bar-knob{background-color:var(--color-neutral-50);box-shadow:0 1px 4px rgba(0,0,0,.3);color:var(--color-neutral-900);left:calc(100% - 1px);translate:-100% 0}:root.dark .jun-bar.is-on .jun-bar-knob{background-color:var(--color-neutral-900);color:var(--color-neutral-100)}.jun-bar-row{padding:0;transition:padding .42s cubic-bezier(.22,1,.36,1)}.jun-bar.is-expanded .jun-bar-row{padding-left:2.5rem;padding-right:.5rem}.jun-bar.is-expanded.is-on .jun-bar-row{padding-left:.625rem;padding-right:2.625rem}.jun-bar-sep{background:currentColor;flex:none;height:1rem;margin-inline:.125rem;opacity:.18;width:1px}.jun-bar-title{border-bottom:1px solid color-mix(in srgb,currentColor 22%,transparent);color:inherit}.jun-bar-title::-moz-placeholder{color:currentColor;opacity:.45}.jun-bar-title::placeholder{color:currentColor;opacity:.45}.jun-bar-title:focus{border-bottom-color:color-mix(in srgb,currentColor 55%,transparent)}.jun-bar-health{box-shadow:0 0 0 2px var(--color-neutral-50)}.jun-bar.is-on .jun-bar-health,:root.dark .jun-bar-health{box-shadow:0 0 0 2px var(--color-neutral-900)}:root.dark .jun-bar.is-on .jun-bar-health{box-shadow:0 0 0 2px var(--color-neutral-100)}.jun-bar .jun-bar-trigger:hover,.jun-bar [data-jun-action]:hover{background-color:color-mix(in srgb,currentColor 10%,transparent)}[data-jun-action].is-hot{background-color:color-mix(in srgb,currentColor 18%,transparent);transform:scale(1.06)}[data-jun-action]{transition:background-color .15s ease,transform .15s cubic-bezier(.22,1,.36,1)}@media (prefers-reduced-motion:reduce){.jun-bar,.jun-bar-knob,.jun-bar-row,[data-jun-action]{transition:none}[data-jun-action].is-hot{transform:none}}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, onMounted, ref, resolveComponent } from "vue";
|
|
3
|
+
import { useNuxtData } from "#app";
|
|
4
|
+
import { useJunEffectiveConfig } from "../composables/useJunSiteConfig";
|
|
5
|
+
const { data: ssrCfg } = useNuxtData("jun-site-config");
|
|
6
|
+
const config = useJunEffectiveConfig();
|
|
7
|
+
const merged = computed(
|
|
8
|
+
() => Object.keys(config.value).length ? config.value : ssrCfg.value ?? {}
|
|
9
|
+
);
|
|
10
|
+
const text = computed(() => {
|
|
11
|
+
const t = merged.value.announceText;
|
|
12
|
+
return typeof t === "string" && t.trim() ? t.trim() : null;
|
|
13
|
+
});
|
|
14
|
+
const href = computed(() => {
|
|
15
|
+
const h = merged.value.announceHref;
|
|
16
|
+
return typeof h === "string" && h.trim() ? h.trim() : null;
|
|
17
|
+
});
|
|
18
|
+
const enabled = computed(() => merged.value.announceEnabled === true && !!text.value);
|
|
19
|
+
const external = computed(() => !!href.value && /^https?:\/\//i.test(href.value));
|
|
20
|
+
const NuxtLinkC = resolveComponent("NuxtLink");
|
|
21
|
+
function hashOf(s) {
|
|
22
|
+
let h = 5381;
|
|
23
|
+
for (let i = 0; i < s.length; i++) h = (h * 33 ^ s.charCodeAt(i)) >>> 0;
|
|
24
|
+
return h.toString(36);
|
|
25
|
+
}
|
|
26
|
+
const DISMISS_KEY = "jun_announce_dismissed";
|
|
27
|
+
const dismissedHash = ref(null);
|
|
28
|
+
onMounted(() => {
|
|
29
|
+
dismissedHash.value = localStorage.getItem(DISMISS_KEY);
|
|
30
|
+
});
|
|
31
|
+
const visible = computed(
|
|
32
|
+
() => enabled.value && (!text.value || dismissedHash.value !== hashOf(text.value))
|
|
33
|
+
);
|
|
34
|
+
function dismiss() {
|
|
35
|
+
if (!text.value) return;
|
|
36
|
+
dismissedHash.value = hashOf(text.value);
|
|
37
|
+
try {
|
|
38
|
+
localStorage.setItem(DISMISS_KEY, dismissedHash.value);
|
|
39
|
+
} catch {
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
<template>
|
|
45
|
+
<Transition name="jun-announce">
|
|
46
|
+
<div
|
|
47
|
+
v-if="visible"
|
|
48
|
+
class="fixed top-24 inset-x-0 z-40 flex justify-center px-4 pointer-events-none"
|
|
49
|
+
>
|
|
50
|
+
<div class="jun-chrome pointer-events-auto flex items-center gap-2 rounded-full py-1.5 pl-4 pr-1.5 text-xs tracking-wide max-w-full">
|
|
51
|
+
<UIcon
|
|
52
|
+
name="i-lucide-megaphone"
|
|
53
|
+
class="size-3.5 flex-none opacity-60"
|
|
54
|
+
aria-hidden="true"
|
|
55
|
+
/>
|
|
56
|
+
<component
|
|
57
|
+
:is="href ? external ? 'a' : NuxtLinkC : 'span'"
|
|
58
|
+
v-bind="href ? external ? { href, target: '_blank', rel: 'noopener noreferrer' } : { to: href } : {}"
|
|
59
|
+
class="truncate"
|
|
60
|
+
:class="href ? 'underline-offset-4 hover:underline' : ''"
|
|
61
|
+
>
|
|
62
|
+
{{ text }}
|
|
63
|
+
</component>
|
|
64
|
+
<UIcon
|
|
65
|
+
v-if="external"
|
|
66
|
+
name="i-lucide-arrow-up-right"
|
|
67
|
+
class="size-3 flex-none opacity-60 -ml-1"
|
|
68
|
+
aria-hidden="true"
|
|
69
|
+
/>
|
|
70
|
+
<button
|
|
71
|
+
type="button"
|
|
72
|
+
class="flex size-5 flex-none items-center justify-center rounded-full opacity-50 hover:opacity-100 hover:bg-black/10 dark:hover:bg-white/10 transition"
|
|
73
|
+
aria-label="Dismiss announcement"
|
|
74
|
+
@click="dismiss"
|
|
75
|
+
>
|
|
76
|
+
<UIcon
|
|
77
|
+
name="i-lucide-x"
|
|
78
|
+
class="size-3"
|
|
79
|
+
/>
|
|
80
|
+
</button>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
</Transition>
|
|
84
|
+
</template>
|
|
85
|
+
|
|
86
|
+
<style scoped>
|
|
87
|
+
.jun-announce-enter-active,.jun-announce-leave-active{transition:opacity .3s ease,transform .3s cubic-bezier(.22,1,.36,1)}.jun-announce-enter-from,.jun-announce-leave-to{opacity:0;transform:translateY(-8px)}@media (prefers-reduced-motion:reduce){.jun-announce-enter-active,.jun-announce-leave-active{transition:none}}
|
|
88
|
+
</style>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
docId: string;
|
|
3
|
+
};
|
|
4
|
+
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>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, ref } from "vue";
|
|
3
|
+
import {
|
|
4
|
+
useAbracadabra,
|
|
5
|
+
useDocTree,
|
|
6
|
+
useJunOptions,
|
|
7
|
+
useJunSelfId,
|
|
8
|
+
useJunSiteConfigValues,
|
|
9
|
+
useToast
|
|
10
|
+
} from "#imports";
|
|
11
|
+
const props = defineProps({
|
|
12
|
+
docId: { type: String, required: true }
|
|
13
|
+
});
|
|
14
|
+
const abra = useAbracadabra();
|
|
15
|
+
const { getEntry } = useDocTree();
|
|
16
|
+
const { features } = useJunOptions();
|
|
17
|
+
const siteConfig = await useJunSiteConfigValues();
|
|
18
|
+
const enabled = computed(() => features.rpc && siteConfig.value.reactionsEnabled !== false);
|
|
19
|
+
const b64u = (s) => s.replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
20
|
+
const selfId = useJunSelfId();
|
|
21
|
+
const myId = computed(() => b64u(selfId.value));
|
|
22
|
+
const list = computed(() => {
|
|
23
|
+
const raw = getEntry(props.docId)?.meta?.appreciatedBy;
|
|
24
|
+
return Array.isArray(raw) ? raw.filter((s) => typeof s === "string") : [];
|
|
25
|
+
});
|
|
26
|
+
const count = computed(() => list.value.length);
|
|
27
|
+
const active = computed(() => !!myId.value && list.value.some((s) => b64u(s) === myId.value));
|
|
28
|
+
const busy = ref(false);
|
|
29
|
+
const toast = useToast();
|
|
30
|
+
async function toggle() {
|
|
31
|
+
const provider = abra.provider.value;
|
|
32
|
+
if (!provider || busy.value) return;
|
|
33
|
+
busy.value = true;
|
|
34
|
+
try {
|
|
35
|
+
await provider.rpc.call("jun.react@1", { docId: props.docId });
|
|
36
|
+
} catch (err) {
|
|
37
|
+
const e = err;
|
|
38
|
+
toast.add({
|
|
39
|
+
title: e?.message || "Could not do that right now.",
|
|
40
|
+
icon: "i-lucide-circle-alert",
|
|
41
|
+
color: "neutral",
|
|
42
|
+
duration: 5e3
|
|
43
|
+
});
|
|
44
|
+
} finally {
|
|
45
|
+
busy.value = false;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
</script>
|
|
49
|
+
|
|
50
|
+
<template>
|
|
51
|
+
<button
|
|
52
|
+
v-if="enabled"
|
|
53
|
+
type="button"
|
|
54
|
+
class="group/heart inline-flex items-center gap-1.5 rounded-full px-2.5 py-1.5
|
|
55
|
+
text-xs tabular-nums text-black/50 transition
|
|
56
|
+
hover:bg-black/5 disabled:opacity-60
|
|
57
|
+
dark:text-white/45 dark:hover:bg-white/10"
|
|
58
|
+
:aria-label="active ? 'Remove appreciation' : 'Appreciate'"
|
|
59
|
+
:aria-pressed="active"
|
|
60
|
+
:disabled="busy"
|
|
61
|
+
@click="toggle"
|
|
62
|
+
>
|
|
63
|
+
<UIcon
|
|
64
|
+
name="i-lucide-heart"
|
|
65
|
+
class="size-4 transition-transform group-active/heart:scale-90"
|
|
66
|
+
:style="active ? { color: abra.userColor.value, fill: 'currentColor' } : void 0"
|
|
67
|
+
aria-hidden="true"
|
|
68
|
+
/>
|
|
69
|
+
<span v-if="count">{{ count }}</span>
|
|
70
|
+
</button>
|
|
71
|
+
</template>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
docId: string;
|
|
3
|
+
};
|
|
4
|
+
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>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import { useJunBackgroundImage } from "../composables/useJunBackground";
|
|
4
|
+
const { settings, url, size, repeat } = useJunBackgroundImage();
|
|
5
|
+
const style = computed(() => ({
|
|
6
|
+
backgroundImage: url.value,
|
|
7
|
+
backgroundSize: size.value,
|
|
8
|
+
backgroundRepeat: repeat.value,
|
|
9
|
+
opacity: url.value ? String(settings.value.opacity) : "0"
|
|
10
|
+
}));
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<div
|
|
15
|
+
v-if="settings.active"
|
|
16
|
+
class="jun-bg-photo"
|
|
17
|
+
:style="style"
|
|
18
|
+
/>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<style scoped>
|
|
22
|
+
.jun-bg-photo{background-position:50%;inset:0;position:absolute;transition:opacity .7s ease}
|
|
23
|
+
</style>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, onBeforeUnmount, onMounted, ref, watch } from "vue";
|
|
3
|
+
import { useDocTree, useRoute, useSlugRoute } from "#imports";
|
|
4
|
+
import { useJunLayoutPolicy, useJunPageType } from "../composables/useJunOptions";
|
|
5
|
+
import { useJunPalette } from "../composables/useJunPalette";
|
|
6
|
+
const route = useRoute();
|
|
7
|
+
const { isLockedType } = useJunLayoutPolicy();
|
|
8
|
+
const { resolveType } = useJunPageType();
|
|
9
|
+
const { docId } = useSlugRoute();
|
|
10
|
+
const { getEntry } = useDocTree();
|
|
11
|
+
const pageType = () => docId.value ? resolveType(getEntry(docId.value)?.type) : null;
|
|
12
|
+
const { blobA, fogA, fogB, paletteName } = useJunPalette(pageType);
|
|
13
|
+
const quiet = computed(() => {
|
|
14
|
+
if (!docId.value) return false;
|
|
15
|
+
return isLockedType(resolveType(getEntry(docId.value)?.type));
|
|
16
|
+
});
|
|
17
|
+
const ARRANGEMENTS = {
|
|
18
|
+
home: [{ t: -12, l: 4, s: 42 }, { t: 30, l: 62, s: 34 }, { t: 62, l: -8, s: 30 }],
|
|
19
|
+
journal: [{ t: -8, l: 56, s: 38 }, { t: 48, l: 6, s: 34 }, { t: 70, l: 66, s: 26 }],
|
|
20
|
+
apps: [{ t: -10, l: 30, s: 40 }, { t: 52, l: 72, s: 30 }, { t: 58, l: 8, s: 28 }],
|
|
21
|
+
live: [{ t: 6, l: -10, s: 38 }, { t: 40, l: 66, s: 34 }, { t: 76, l: 24, s: 26 }],
|
|
22
|
+
globe: [{ t: 44, l: 12, s: 40 }, { t: -8, l: 60, s: 32 }, { t: 66, l: 62, s: 28 }],
|
|
23
|
+
subtle: [{ t: -10, l: 10, s: 38 }, { t: 36, l: 64, s: 32 }, { t: 66, l: 16, s: 26 }]
|
|
24
|
+
};
|
|
25
|
+
const arrangement = computed(
|
|
26
|
+
() => ARRANGEMENTS[paletteName.value] ?? ARRANGEMENTS.subtle
|
|
27
|
+
);
|
|
28
|
+
const ambientColors = computed(() => [blobA.value, fogB.value, fogA.value]);
|
|
29
|
+
function blobGradient(color) {
|
|
30
|
+
return `radial-gradient(closest-side, color-mix(in srgb, ${color} var(--jun-blob-core, 18%), transparent) 0%, color-mix(in srgb, ${color} var(--jun-blob-mid, 11%), transparent) 45%, ${color}00 72%)`;
|
|
31
|
+
}
|
|
32
|
+
const fieldEl = ref(null);
|
|
33
|
+
watch(() => route.path, () => {
|
|
34
|
+
const el = fieldEl.value;
|
|
35
|
+
if (!el) return;
|
|
36
|
+
el.classList.remove("is-nav");
|
|
37
|
+
void el.offsetWidth;
|
|
38
|
+
el.classList.add("is-nav");
|
|
39
|
+
});
|
|
40
|
+
const parallaxEl = ref(null);
|
|
41
|
+
let praf = 0;
|
|
42
|
+
let target = { x: 0, y: 0 };
|
|
43
|
+
const cur = { x: 0, y: 0 };
|
|
44
|
+
const PARALLAX = 14;
|
|
45
|
+
function onPointer(e) {
|
|
46
|
+
target = {
|
|
47
|
+
x: (e.clientX / window.innerWidth - 0.5) * 2 * PARALLAX,
|
|
48
|
+
y: (e.clientY / window.innerHeight - 0.5) * 2 * PARALLAX
|
|
49
|
+
};
|
|
50
|
+
if (!praf) praf = requestAnimationFrame(parallaxLoop);
|
|
51
|
+
}
|
|
52
|
+
function parallaxLoop() {
|
|
53
|
+
cur.x += (target.x - cur.x) * 0.06;
|
|
54
|
+
cur.y += (target.y - cur.y) * 0.06;
|
|
55
|
+
if (parallaxEl.value) {
|
|
56
|
+
parallaxEl.value.style.setProperty("--px", `${cur.x.toFixed(2)}px`);
|
|
57
|
+
parallaxEl.value.style.setProperty("--py", `${cur.y.toFixed(2)}px`);
|
|
58
|
+
}
|
|
59
|
+
if (Math.abs(target.x - cur.x) > 0.1 || Math.abs(target.y - cur.y) > 0.1) {
|
|
60
|
+
praf = requestAnimationFrame(parallaxLoop);
|
|
61
|
+
} else {
|
|
62
|
+
praf = 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
const hidden = ref(false);
|
|
66
|
+
function onVis() {
|
|
67
|
+
hidden.value = typeof document !== "undefined" && document.hidden;
|
|
68
|
+
}
|
|
69
|
+
onMounted(() => {
|
|
70
|
+
onVis();
|
|
71
|
+
document.addEventListener("visibilitychange", onVis);
|
|
72
|
+
window.addEventListener("pointermove", onPointer, { passive: true });
|
|
73
|
+
});
|
|
74
|
+
onBeforeUnmount(() => {
|
|
75
|
+
document.removeEventListener("visibilitychange", onVis);
|
|
76
|
+
window.removeEventListener("pointermove", onPointer);
|
|
77
|
+
if (praf) cancelAnimationFrame(praf);
|
|
78
|
+
});
|
|
79
|
+
</script>
|
|
80
|
+
|
|
81
|
+
<template>
|
|
82
|
+
<div
|
|
83
|
+
aria-hidden="true"
|
|
84
|
+
class="jun-blob-backdrop pointer-events-none fixed inset-0 -z-10 overflow-hidden"
|
|
85
|
+
:class="{ 'is-paused': hidden, 'is-quiet': quiet }"
|
|
86
|
+
>
|
|
87
|
+
<!-- The site's background image, when it has one. FIRST child, so the
|
|
88
|
+
blobs blend against the photograph rather than replacing it — see the
|
|
89
|
+
component's own header for why it lives inside here. -->
|
|
90
|
+
<JunBackgroundPhoto />
|
|
91
|
+
|
|
92
|
+
<div
|
|
93
|
+
ref="parallaxEl"
|
|
94
|
+
class="blob-parallax"
|
|
95
|
+
>
|
|
96
|
+
<div
|
|
97
|
+
ref="fieldEl"
|
|
98
|
+
class="blob-field"
|
|
99
|
+
>
|
|
100
|
+
<div
|
|
101
|
+
v-for="(a, i) in arrangement"
|
|
102
|
+
:key="i"
|
|
103
|
+
class="blob"
|
|
104
|
+
:class="`blob--${i + 1}`"
|
|
105
|
+
:style="{
|
|
106
|
+
top: a.t + '%',
|
|
107
|
+
left: a.l + '%',
|
|
108
|
+
width: a.s + 'vmax',
|
|
109
|
+
height: a.s + 'vmax',
|
|
110
|
+
background: blobGradient(ambientColors[i])
|
|
111
|
+
}"
|
|
112
|
+
/>
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
</template>
|
|
117
|
+
|
|
118
|
+
<style scoped>
|
|
119
|
+
.jun-blob-backdrop{background:#f5f5f7;--jun-blob-core:18%;--jun-blob-mid:11%}:root.dark .jun-blob-backdrop{background:#0e0f11;--jun-blob-core:34%;--jun-blob-mid:21%}.blob-parallax{inset:-3%;opacity:var(--jun-blob-opacity,1);position:absolute;transform:translate3d(var(--px,0),var(--py,0),0);transition:opacity .6s ease;will-change:transform}.is-quiet .blob-parallax{opacity:0}.blob-field{inset:0;position:absolute;transform-origin:50% 50%}.blob-field.is-nav{animation:nav-breath 1.2s cubic-bezier(.22,1,.36,1)}.blob{border-radius:50%;mix-blend-mode:multiply;position:absolute;transform:translateZ(0);transition:top 1.2s cubic-bezier(.22,1,.36,1),left 1.2s cubic-bezier(.22,1,.36,1),width 1.2s cubic-bezier(.22,1,.36,1),height 1.2s cubic-bezier(.22,1,.36,1);will-change:transform}:root.dark .blob{mix-blend-mode:screen}.blob--1{animation:blob-drift-a 34s ease-in-out infinite}.blob--2{animation:blob-drift-b 41s ease-in-out infinite}.blob--3{animation:blob-drift-c 47s ease-in-out infinite}.is-paused .blob,.is-paused .blob-field{animation-play-state:paused}@keyframes nav-breath{0%{transform:scale(1.03)}60%{transform:scale(.995)}to{transform:scale(1)}}@keyframes blob-drift-a{0%,to{transform:translate(0) scale(1)}33%{transform:translate(7vw,6vh) scale(1.1)}66%{transform:translate(-5vw,9vh) scale(.94)}}@keyframes blob-drift-b{0%,to{transform:translate(0) scale(1)}33%{transform:translate(-8vw,-5vh) scale(.9)}66%{transform:translate(6vw,7vh) scale(1.12)}}@keyframes blob-drift-c{0%,to{transform:translate(0) scale(1.04)}50%{transform:translate(9vw,-7vh) scale(.92)}}@media (prefers-reduced-motion:reduce){.blob,.blob-field{animation:none!important}.blob{transition:none!important}.blob-parallax{transform:none!important}}
|
|
120
|
+
</style>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
docId: string;
|
|
3
|
+
/**
|
|
4
|
+
* Float as a chrome pill, for viewport-bound pages that have no document flow
|
|
5
|
+
* to sit in. Still self-hides on top-level documents.
|
|
6
|
+
*/
|
|
7
|
+
floating?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* The navbar is docked full-width at the top edge (panel page types), so the
|
|
10
|
+
* pill tucks just below IT rather than below the floating pill nav.
|
|
11
|
+
*/
|
|
12
|
+
dockedNav?: boolean;
|
|
13
|
+
};
|
|
14
|
+
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>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import { useAbracadabra, useDocSlugs, useDocTree } from "#imports";
|
|
4
|
+
import { useJunDocIcon } from "../composables/useJunOptions";
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
docId: { type: String, required: true },
|
|
7
|
+
floating: { type: Boolean, required: false },
|
|
8
|
+
dockedNav: { type: Boolean, required: false }
|
|
9
|
+
});
|
|
10
|
+
const { getEntry } = useDocTree();
|
|
11
|
+
const { getDocUrl } = useDocSlugs();
|
|
12
|
+
const { spaceDocId } = useAbracadabra();
|
|
13
|
+
const docIcon = useJunDocIcon();
|
|
14
|
+
const items = computed(() => {
|
|
15
|
+
const chain = [];
|
|
16
|
+
const cursor = getEntry(props.docId);
|
|
17
|
+
let parentId = cursor?.parentId ?? null;
|
|
18
|
+
const seen = /* @__PURE__ */ new Set();
|
|
19
|
+
while (parentId && parentId !== spaceDocId.value && !seen.has(parentId)) {
|
|
20
|
+
seen.add(parentId);
|
|
21
|
+
const entry = getEntry(parentId);
|
|
22
|
+
if (!entry) break;
|
|
23
|
+
chain.unshift({
|
|
24
|
+
label: entry.label || "Untitled",
|
|
25
|
+
icon: docIcon(entry.type, entry.meta?.icon),
|
|
26
|
+
to: getDocUrl(entry.id)
|
|
27
|
+
});
|
|
28
|
+
parentId = entry.parentId ?? null;
|
|
29
|
+
}
|
|
30
|
+
if (cursor) {
|
|
31
|
+
chain.push({
|
|
32
|
+
label: cursor.label || "Untitled",
|
|
33
|
+
icon: docIcon(cursor.type, cursor.meta?.icon)
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
return chain;
|
|
37
|
+
});
|
|
38
|
+
</script>
|
|
39
|
+
|
|
40
|
+
<template>
|
|
41
|
+
<!-- Floating pill — under the docked nav on viewport-bound pages. -->
|
|
42
|
+
<div
|
|
43
|
+
v-if="items.length > 1 && floating"
|
|
44
|
+
class="jun-chrome fixed left-2 sm:left-8 z-40 max-w-[min(90vw,42rem)] rounded-full px-3 py-1.5 overflow-hidden"
|
|
45
|
+
:class="dockedNav ? 'top-[calc(var(--jun-nav-offset)+0.5rem)]' : 'top-20'"
|
|
46
|
+
>
|
|
47
|
+
<UBreadcrumb
|
|
48
|
+
:items="items"
|
|
49
|
+
class="text-xs sm:text-sm"
|
|
50
|
+
/>
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
<!-- Inline — centred above flowing content. -->
|
|
54
|
+
<div
|
|
55
|
+
v-else-if="items.length > 1"
|
|
56
|
+
class="max-w-6xl w-full mx-auto pt-4 pb-6 px-4 sm:px-8"
|
|
57
|
+
>
|
|
58
|
+
<UBreadcrumb
|
|
59
|
+
:items="items"
|
|
60
|
+
class="text-sm"
|
|
61
|
+
/>
|
|
62
|
+
</div>
|
|
63
|
+
</template>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
docId: string;
|
|
3
|
+
/**
|
|
4
|
+
* Float as a chrome pill, for viewport-bound pages that have no document flow
|
|
5
|
+
* to sit in. Still self-hides on top-level documents.
|
|
6
|
+
*/
|
|
7
|
+
floating?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* The navbar is docked full-width at the top edge (panel page types), so the
|
|
10
|
+
* pill tucks just below IT rather than below the floating pill nav.
|
|
11
|
+
*/
|
|
12
|
+
dockedNav?: boolean;
|
|
13
|
+
};
|
|
14
|
+
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>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type JunCampfirePerson } from '../composables/useJunCampfire.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
docId: string;
|
|
4
|
+
/** How many messages to keep on screen. */
|
|
5
|
+
historyLimit: number;
|
|
6
|
+
/** The roster, as the source of live handles for `@mention` and bylines. */
|
|
7
|
+
people: JunCampfirePerson[];
|
|
8
|
+
/** What the site calls this place, and its mark. */
|
|
9
|
+
place: string;
|
|
10
|
+
icon: string;
|
|
11
|
+
};
|
|
12
|
+
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>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from "vue";
|
|
3
|
+
import { useAbracadabra, useChatChannel } from "#imports";
|
|
4
|
+
import { useJunCampfireNames } from "../composables/useJunCampfire";
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
docId: { type: String, required: true },
|
|
7
|
+
historyLimit: { type: Number, required: true },
|
|
8
|
+
people: { type: Array, required: true },
|
|
9
|
+
place: { type: String, required: true },
|
|
10
|
+
icon: { type: String, required: true }
|
|
11
|
+
});
|
|
12
|
+
const { publicKeyB64, provider } = useAbracadabra();
|
|
13
|
+
const { remember, flush, nameFor } = useJunCampfireNames();
|
|
14
|
+
const { messages, typingUsers, send, typing, focus, blur } = useChatChannel(props.docId);
|
|
15
|
+
watch(
|
|
16
|
+
() => props.people,
|
|
17
|
+
(people) => {
|
|
18
|
+
for (const p of people) remember(p.publicKey, p.name);
|
|
19
|
+
flush();
|
|
20
|
+
},
|
|
21
|
+
{ immediate: true, deep: true }
|
|
22
|
+
);
|
|
23
|
+
const rendered = computed(() => {
|
|
24
|
+
const mine = publicKeyB64.value;
|
|
25
|
+
return messages.value.slice(-props.historyLimit).map((m) => ({
|
|
26
|
+
...m,
|
|
27
|
+
senderName: m.senderName || (m.senderId === mine ? "You" : nameFor(m.senderId))
|
|
28
|
+
}));
|
|
29
|
+
});
|
|
30
|
+
const typingUserObjs = computed(() => typingUsers.value.map((name) => ({ name })));
|
|
31
|
+
const mentionUsers = computed(
|
|
32
|
+
() => props.people.filter((p) => !p.isSelf && p.publicKey).map((p) => ({ id: p.publicKey, name: p.name, isAgent: p.isBot }))
|
|
33
|
+
);
|
|
34
|
+
const sendError = ref("");
|
|
35
|
+
let errorClear = null;
|
|
36
|
+
function onStateless(data) {
|
|
37
|
+
const payload = data?.payload;
|
|
38
|
+
if (typeof payload !== "string" || !payload.includes('"messages:send"')) return;
|
|
39
|
+
try {
|
|
40
|
+
const frame = JSON.parse(payload);
|
|
41
|
+
if (frame.type !== "error" || frame.source !== "messages:send") return;
|
|
42
|
+
sendError.value = frame.message || "that one did not go through";
|
|
43
|
+
if (errorClear) clearTimeout(errorClear);
|
|
44
|
+
errorClear = setTimeout(() => {
|
|
45
|
+
sendError.value = "";
|
|
46
|
+
}, 8e3);
|
|
47
|
+
} catch {
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function onSend(content) {
|
|
51
|
+
const c = content.trim();
|
|
52
|
+
if (!c) return;
|
|
53
|
+
sendError.value = "";
|
|
54
|
+
send(c);
|
|
55
|
+
}
|
|
56
|
+
const scroller = ref(null);
|
|
57
|
+
const STICK_SLACK_PX = 80;
|
|
58
|
+
let stick = true;
|
|
59
|
+
function onScroll() {
|
|
60
|
+
const el = scroller.value;
|
|
61
|
+
if (!el) return;
|
|
62
|
+
stick = el.scrollHeight - el.scrollTop - el.clientHeight < STICK_SLACK_PX;
|
|
63
|
+
}
|
|
64
|
+
function toBottom(smooth = false) {
|
|
65
|
+
const el = scroller.value;
|
|
66
|
+
if (!el) return;
|
|
67
|
+
el.scrollTo({ top: el.scrollHeight, behavior: smooth ? "smooth" : "auto" });
|
|
68
|
+
}
|
|
69
|
+
watch(
|
|
70
|
+
() => rendered.value.length,
|
|
71
|
+
async () => {
|
|
72
|
+
if (!stick) return;
|
|
73
|
+
await nextTick();
|
|
74
|
+
toBottom(true);
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
onMounted(() => {
|
|
78
|
+
focus();
|
|
79
|
+
const p = provider.value;
|
|
80
|
+
p?.on?.("stateless", onStateless);
|
|
81
|
+
void nextTick(() => toBottom());
|
|
82
|
+
});
|
|
83
|
+
onBeforeUnmount(() => {
|
|
84
|
+
blur();
|
|
85
|
+
if (errorClear) clearTimeout(errorClear);
|
|
86
|
+
const p = provider.value;
|
|
87
|
+
p?.off?.("stateless", onStateless);
|
|
88
|
+
});
|
|
89
|
+
</script>
|
|
90
|
+
|
|
91
|
+
<template>
|
|
92
|
+
<div class="flex min-h-0 flex-1 flex-col">
|
|
93
|
+
<div
|
|
94
|
+
ref="scroller"
|
|
95
|
+
class="min-h-0 flex-1 overflow-y-auto px-2 py-1"
|
|
96
|
+
@scroll.passive="onScroll"
|
|
97
|
+
>
|
|
98
|
+
<AChatMessages
|
|
99
|
+
:messages="rendered"
|
|
100
|
+
:current-user-id="publicKeyB64"
|
|
101
|
+
:empty-icon="icon"
|
|
102
|
+
:empty-text="`${place} is quiet`"
|
|
103
|
+
empty-subtext="say hello to the people here"
|
|
104
|
+
/>
|
|
105
|
+
</div>
|
|
106
|
+
|
|
107
|
+
<AChatTypingIndicator
|
|
108
|
+
:users="typingUserObjs"
|
|
109
|
+
class="px-4"
|
|
110
|
+
/>
|
|
111
|
+
|
|
112
|
+
<p
|
|
113
|
+
v-if="sendError"
|
|
114
|
+
class="mx-3 mb-1 flex items-start gap-1.5 rounded-lg bg-black/[0.04] px-2.5 py-1.5
|
|
115
|
+
text-[11px] text-zinc-500 dark:bg-white/[0.06] dark:text-zinc-400"
|
|
116
|
+
role="status"
|
|
117
|
+
>
|
|
118
|
+
<UIcon
|
|
119
|
+
name="i-lucide-circle-alert"
|
|
120
|
+
class="mt-px size-3.5 shrink-0"
|
|
121
|
+
/>
|
|
122
|
+
<span>{{ sendError }}</span>
|
|
123
|
+
</p>
|
|
124
|
+
|
|
125
|
+
<div class="p-2">
|
|
126
|
+
<AChatInput
|
|
127
|
+
:autofocus="true"
|
|
128
|
+
:can-send="true"
|
|
129
|
+
:mention-users="mentionUsers"
|
|
130
|
+
:placeholder="`send to ${place}\u2026`"
|
|
131
|
+
@send="onSend"
|
|
132
|
+
@typing="typing()"
|
|
133
|
+
/>
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
</template>
|