@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,97 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, nextTick, ref } from "vue";
|
|
3
|
+
import {
|
|
4
|
+
useJunDocMenu
|
|
5
|
+
} from "../composables/useJunDocMenu";
|
|
6
|
+
import { useJunRename } from "../composables/useJunRename";
|
|
7
|
+
import { useJunStudio } from "../composables/useJunStudio";
|
|
8
|
+
const props = defineProps({
|
|
9
|
+
entry: { type: Object, required: true },
|
|
10
|
+
tree: { type: Object, required: false },
|
|
11
|
+
disabled: { type: Boolean, required: false },
|
|
12
|
+
noOpen: { type: Boolean, required: false },
|
|
13
|
+
surface: { type: String, required: false, default: "list" },
|
|
14
|
+
siblings: { type: Array, required: false },
|
|
15
|
+
extra: { type: Array, required: false },
|
|
16
|
+
noRename: { type: Boolean, required: false }
|
|
17
|
+
});
|
|
18
|
+
const emit = defineEmits(["deleted", "renamed"]);
|
|
19
|
+
const { editing } = useJunStudio();
|
|
20
|
+
const { itemsFor } = useJunDocMenu();
|
|
21
|
+
const { renameDoc } = useJunRename();
|
|
22
|
+
const renaming = ref(false);
|
|
23
|
+
const renameDraft = ref("");
|
|
24
|
+
const renameInput = ref(null);
|
|
25
|
+
function startRename() {
|
|
26
|
+
renameDraft.value = props.entry.label;
|
|
27
|
+
renaming.value = true;
|
|
28
|
+
void nextTick(() => renameInput.value?.inputRef?.select());
|
|
29
|
+
}
|
|
30
|
+
function commitRename() {
|
|
31
|
+
if (!renaming.value) return;
|
|
32
|
+
renaming.value = false;
|
|
33
|
+
const label = renameDraft.value.trim();
|
|
34
|
+
if (!label || label === props.entry.label) return;
|
|
35
|
+
renameDoc(props.entry.id, label);
|
|
36
|
+
emit("renamed", props.entry.id, label);
|
|
37
|
+
}
|
|
38
|
+
function cancelRename() {
|
|
39
|
+
renaming.value = false;
|
|
40
|
+
}
|
|
41
|
+
const items = computed(() => {
|
|
42
|
+
if (props.disabled) return [];
|
|
43
|
+
return itemsFor(
|
|
44
|
+
{
|
|
45
|
+
docId: props.entry.id,
|
|
46
|
+
label: props.entry.label,
|
|
47
|
+
type: props.entry.type,
|
|
48
|
+
meta: props.entry.meta,
|
|
49
|
+
surface: props.surface,
|
|
50
|
+
editing: editing.value
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
tree: props.tree,
|
|
54
|
+
noOpen: props.noOpen,
|
|
55
|
+
siblings: props.siblings,
|
|
56
|
+
extra: props.extra,
|
|
57
|
+
onRename: props.noRename ? void 0 : startRename,
|
|
58
|
+
onDeleted: (id) => emit("deleted", id)
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
});
|
|
62
|
+
const active = computed(() => items.value.length > 0);
|
|
63
|
+
</script>
|
|
64
|
+
|
|
65
|
+
<template>
|
|
66
|
+
<UContextMenu
|
|
67
|
+
v-if="active"
|
|
68
|
+
:items="items"
|
|
69
|
+
>
|
|
70
|
+
<div class="relative">
|
|
71
|
+
<slot />
|
|
72
|
+
|
|
73
|
+
<!-- Rename overlay — floats over the item so no renderer needs its own
|
|
74
|
+
inline-rename plumbing. Clicks are swallowed so the row underneath
|
|
75
|
+
does not navigate while you are typing in it. -->
|
|
76
|
+
<div
|
|
77
|
+
v-if="renaming"
|
|
78
|
+
class="absolute inset-x-2 top-1/2 z-20 -translate-y-1/2"
|
|
79
|
+
@click.stop.prevent
|
|
80
|
+
@dblclick.stop
|
|
81
|
+
>
|
|
82
|
+
<UInput
|
|
83
|
+
ref="renameInput"
|
|
84
|
+
v-model="renameDraft"
|
|
85
|
+
size="sm"
|
|
86
|
+
class="w-full max-w-xs shadow-lg"
|
|
87
|
+
placeholder="Name"
|
|
88
|
+
autofocus
|
|
89
|
+
@blur="commitRename"
|
|
90
|
+
@keydown.enter.prevent="commitRename"
|
|
91
|
+
@keydown.escape.prevent="cancelRename"
|
|
92
|
+
/>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</UContextMenu>
|
|
96
|
+
<slot v-else />
|
|
97
|
+
</template>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type JunMenuGroups, type JunMenuSurface, type JunMenuTree } from '../composables/useJunDocMenu.js';
|
|
2
|
+
interface ItemEntry {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
type?: string;
|
|
6
|
+
meta?: Record<string, unknown>;
|
|
7
|
+
}
|
|
8
|
+
type __VLS_Props = {
|
|
9
|
+
entry: ItemEntry;
|
|
10
|
+
/** `useChildTree(...)` for the container. Owner items need it; omit for a read-only menu. */
|
|
11
|
+
tree?: JunMenuTree;
|
|
12
|
+
/**
|
|
13
|
+
* Force the menu off entirely. Left over from the owner-only era and now
|
|
14
|
+
* rarely wanted — pass it only where a surface genuinely must not offer one.
|
|
15
|
+
*/
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/** Hide "Open" when the whole row already links there. */
|
|
18
|
+
noOpen?: boolean;
|
|
19
|
+
/** Which surface this is, so a builder can branch on it. */
|
|
20
|
+
surface?: JunMenuSurface;
|
|
21
|
+
/** Sibling ids in display order — enables "Pin to top". */
|
|
22
|
+
siblings?: string[];
|
|
23
|
+
/** One-off groups, appended after the built ones. */
|
|
24
|
+
extra?: JunMenuGroups;
|
|
25
|
+
/** Suppress the built-in rename overlay when the surface has its own. */
|
|
26
|
+
noRename?: boolean;
|
|
27
|
+
};
|
|
28
|
+
declare var __VLS_8: {}, __VLS_21: {};
|
|
29
|
+
type __VLS_Slots = {} & {
|
|
30
|
+
default?: (props: typeof __VLS_8) => any;
|
|
31
|
+
} & {
|
|
32
|
+
default?: (props: typeof __VLS_21) => any;
|
|
33
|
+
};
|
|
34
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
35
|
+
deleted: (id: string) => any;
|
|
36
|
+
renamed: (id: string, label: string) => any;
|
|
37
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
38
|
+
onDeleted?: ((id: string) => any) | undefined;
|
|
39
|
+
onRenamed?: ((id: string, label: string) => any) | undefined;
|
|
40
|
+
}>, {
|
|
41
|
+
surface: JunMenuSurface;
|
|
42
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
43
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
44
|
+
declare const _default: typeof __VLS_export;
|
|
45
|
+
export default _default;
|
|
46
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
47
|
+
new (): {
|
|
48
|
+
$slots: S;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
entry: {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
meta?: {
|
|
6
|
+
url?: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
/** Inset halo style when a traveller is on this link's page. */
|
|
12
|
+
accent?: Record<string, string>;
|
|
13
|
+
accentTitle?: string;
|
|
14
|
+
/** Owner edit mode: always link to the entry's own document page. */
|
|
15
|
+
forceInternal?: boolean;
|
|
16
|
+
};
|
|
17
|
+
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>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, ref, watch } from "vue";
|
|
3
|
+
import { NuxtLink } from "#components";
|
|
4
|
+
import { useDocSlugs, useJunDocIcon } from "#imports";
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
entry: { type: Object, required: true },
|
|
7
|
+
accent: { type: Object, required: false },
|
|
8
|
+
accentTitle: { type: String, required: false },
|
|
9
|
+
forceInternal: { type: Boolean, required: false }
|
|
10
|
+
});
|
|
11
|
+
const { getDocUrl } = useDocSlugs();
|
|
12
|
+
const docIcon = useJunDocIcon();
|
|
13
|
+
const hasUrl = computed(() => !!props.entry.meta?.url);
|
|
14
|
+
const external = computed(() => hasUrl.value && !props.forceInternal);
|
|
15
|
+
const host = computed(() => {
|
|
16
|
+
const url = props.entry.meta?.url;
|
|
17
|
+
if (!url) return null;
|
|
18
|
+
try {
|
|
19
|
+
return new URL(url).hostname.replace(/^www\./, "");
|
|
20
|
+
} catch {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
const icon = computed(
|
|
25
|
+
() => props.entry.meta?.icon ? docIcon(void 0, props.entry.meta.icon) : hasUrl.value ? "i-lucide-link" : "i-lucide-file-text"
|
|
26
|
+
);
|
|
27
|
+
const faviconFailed = ref(false);
|
|
28
|
+
watch(host, () => {
|
|
29
|
+
faviconFailed.value = false;
|
|
30
|
+
});
|
|
31
|
+
const faviconSrc = computed(
|
|
32
|
+
() => !props.entry.meta?.icon && host.value && !faviconFailed.value ? `https://icons.duckduckgo.com/ip3/${host.value}.ico` : null
|
|
33
|
+
);
|
|
34
|
+
</script>
|
|
35
|
+
|
|
36
|
+
<template>
|
|
37
|
+
<component
|
|
38
|
+
:is="external ? 'a' : NuxtLink"
|
|
39
|
+
v-bind="external ? { href: entry.meta.url, target: '_blank', rel: 'noopener noreferrer' } : { to: getDocUrl(entry.id) }"
|
|
40
|
+
class="jun-card group relative flex items-center gap-4 rounded-xl px-4 py-3.5
|
|
41
|
+
transition-all duration-300 hover:scale-[1.01] hover:shadow-xl"
|
|
42
|
+
:title="accentTitle"
|
|
43
|
+
>
|
|
44
|
+
<!-- Presence halo — a traveller is reading this link's page right now. -->
|
|
45
|
+
<span
|
|
46
|
+
v-if="accent"
|
|
47
|
+
aria-hidden="true"
|
|
48
|
+
class="pointer-events-none absolute inset-0 rounded-[inherit]"
|
|
49
|
+
:style="accent"
|
|
50
|
+
/>
|
|
51
|
+
|
|
52
|
+
<span
|
|
53
|
+
class="flex size-10 shrink-0 items-center justify-center rounded-lg bg-black/5
|
|
54
|
+
text-black/60 ring-1 ring-black/5 transition-transform duration-300
|
|
55
|
+
group-hover:scale-110 dark:bg-white/10 dark:text-white/70 dark:ring-white/10"
|
|
56
|
+
>
|
|
57
|
+
<img
|
|
58
|
+
v-if="faviconSrc"
|
|
59
|
+
:src="faviconSrc"
|
|
60
|
+
alt=""
|
|
61
|
+
class="size-4.5 rounded-sm"
|
|
62
|
+
loading="lazy"
|
|
63
|
+
@error="faviconFailed = true"
|
|
64
|
+
>
|
|
65
|
+
<UIcon
|
|
66
|
+
v-else
|
|
67
|
+
:name="icon"
|
|
68
|
+
class="size-4.5"
|
|
69
|
+
/>
|
|
70
|
+
</span>
|
|
71
|
+
|
|
72
|
+
<span class="min-w-0 flex-1">
|
|
73
|
+
<span class="block truncate text-sm font-medium tracking-wide text-highlighted sm:text-base">
|
|
74
|
+
{{ entry.label }}
|
|
75
|
+
</span>
|
|
76
|
+
<span
|
|
77
|
+
v-if="entry.meta?.description"
|
|
78
|
+
class="block truncate text-xs text-muted sm:text-sm"
|
|
79
|
+
>
|
|
80
|
+
{{ entry.meta.description }}
|
|
81
|
+
</span>
|
|
82
|
+
</span>
|
|
83
|
+
|
|
84
|
+
<span class="flex shrink-0 items-center gap-1.5 text-xs text-dimmed">
|
|
85
|
+
<span
|
|
86
|
+
v-if="host"
|
|
87
|
+
class="hidden tracking-wide sm:inline"
|
|
88
|
+
>{{ host }}</span>
|
|
89
|
+
<UIcon
|
|
90
|
+
:name="external ? 'i-lucide-arrow-up-right' : 'i-lucide-arrow-right'"
|
|
91
|
+
class="size-3.5 transition-transform duration-300 group-hover:translate-x-0.5"
|
|
92
|
+
:class="external ? 'group-hover:-translate-y-0.5' : ''"
|
|
93
|
+
/>
|
|
94
|
+
</span>
|
|
95
|
+
</component>
|
|
96
|
+
</template>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
entry: {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
meta?: {
|
|
6
|
+
url?: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
/** Inset halo style when a traveller is on this link's page. */
|
|
12
|
+
accent?: Record<string, string>;
|
|
13
|
+
accentTitle?: string;
|
|
14
|
+
/** Owner edit mode: always link to the entry's own document page. */
|
|
15
|
+
forceInternal?: boolean;
|
|
16
|
+
};
|
|
17
|
+
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>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { JunLogoMark, JunLogoVariant } from '../types.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
title?: string;
|
|
4
|
+
/** Override the configured mark. Leave unset so the config wins. */
|
|
5
|
+
mark?: JunLogoMark;
|
|
6
|
+
/** `mark` (default), `lockup` (mark + name) or `wordmark` (name only). */
|
|
7
|
+
variant?: JunLogoVariant;
|
|
8
|
+
/** Wordmark text. Defaults to `jun.brand.name`. */
|
|
9
|
+
text?: string;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
|
+
title: string;
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, useId } from "vue";
|
|
3
|
+
import { useJunOptions } from "../composables/useJunOptions";
|
|
4
|
+
import { useJunEffectiveConfig } from "../composables/useJunSiteConfig";
|
|
5
|
+
const KNOWN_MARKS = ["sprout", "node", "page", "sun"];
|
|
6
|
+
const MARKS = {
|
|
7
|
+
// The j/bang tree. The stem is centred on x=24 so the mark is optically
|
|
8
|
+
// centred in the box at every size, and the shoot leaves it at the same
|
|
9
|
+
// angle the hook exits — the two arms balance instead of one out-weighing
|
|
10
|
+
// the other, which is what made the old draw lean right.
|
|
11
|
+
sprout: {
|
|
12
|
+
paths: [
|
|
13
|
+
{ d: "M24 18v12.2c0 7.4-3.6 11.1-9.8 9", w: 3.4 },
|
|
14
|
+
{ d: "M24 25.4 32.6 18.6", w: 3.4 }
|
|
15
|
+
],
|
|
16
|
+
dots: [
|
|
17
|
+
{ cx: 24, cy: 9.6, r: 3.4 },
|
|
18
|
+
{ cx: 35.4, cy: 16.4, r: 2.8 },
|
|
19
|
+
{ cx: 11.2, cy: 38.2, r: 2.8 }
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
// The graph. Edges stop SHORT of each node and tuck under it, so the joins
|
|
23
|
+
// stay clean when the stroke is only a couple of device pixels wide.
|
|
24
|
+
node: {
|
|
25
|
+
paths: [
|
|
26
|
+
{ d: "M31.5 13.5V24.5", w: 3.2 },
|
|
27
|
+
{ d: "M29.2 28.6 18.9 35.2", w: 3.2 }
|
|
28
|
+
],
|
|
29
|
+
dots: [
|
|
30
|
+
{ cx: 31.5, cy: 10.8, r: 3.5 },
|
|
31
|
+
{ cx: 31.5, cy: 27.2, r: 3.5 },
|
|
32
|
+
{ cx: 16.6, cy: 36.6, r: 3.5 }
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
// The document, with the bang set inside it. The old three-stroke mini-tree
|
|
36
|
+
// in there turned to mush below ~20px; one stem and one dot survive it.
|
|
37
|
+
page: {
|
|
38
|
+
paths: [
|
|
39
|
+
{ d: "M13 6h14l8 8v28H13z", w: 3, join: true },
|
|
40
|
+
{ d: "M27 6v8h8", w: 3, join: true },
|
|
41
|
+
{ d: "M24 18v8.6", w: 3.2 }
|
|
42
|
+
],
|
|
43
|
+
dots: [
|
|
44
|
+
{ cx: 24, cy: 31.8, r: 2.2 }
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
const SUN = {
|
|
49
|
+
body: { from: "var(--jun-sun-from)", to: "var(--jun-sun-to)" },
|
|
50
|
+
core: "var(--jun-sun-core)",
|
|
51
|
+
glow: { color: "var(--jun-sun-glow)", cx: 45, cy: 45, r: 46.67 },
|
|
52
|
+
/**
|
|
53
|
+
* The core's soft ring — the blob's `box-shadow: 0 0 20px rgba(0,0,0,.2)`,
|
|
54
|
+
* drawn as GEOMETRY rather than as a CSS `drop-shadow`.
|
|
55
|
+
*
|
|
56
|
+
* A filter rasterises the subtree it applies to. Inside a composited layer
|
|
57
|
+
* (the intro parks one on the flying logo) that raster is taken once, at
|
|
58
|
+
* that layer's scale, and reused — so the 112px loading sun came out soft
|
|
59
|
+
* and stair-stepped on a HiDPI screen while the rest of the page stayed
|
|
60
|
+
* sharp. A radial gradient has no raster: it resolves at whatever size the
|
|
61
|
+
* SVG is painted, every time, and it costs nothing to animate.
|
|
62
|
+
*
|
|
63
|
+
* `r` 17 against the core's 12 is the old 10-unit blur radius, and the two
|
|
64
|
+
* inner stops reproduce its falloff — flat to the core's edge, then out.
|
|
65
|
+
*/
|
|
66
|
+
halo: { r: 17, color: "#000000", inner: 0.22, mid: 0.1 }
|
|
67
|
+
};
|
|
68
|
+
const props = defineProps({
|
|
69
|
+
title: { type: String, required: false, default: "Home" },
|
|
70
|
+
mark: { type: String, required: false },
|
|
71
|
+
variant: { type: String, required: false },
|
|
72
|
+
text: { type: String, required: false }
|
|
73
|
+
});
|
|
74
|
+
const opts = useJunOptions();
|
|
75
|
+
const config = useJunEffectiveConfig();
|
|
76
|
+
const uid = useId();
|
|
77
|
+
function configured(key, allowed, fallback) {
|
|
78
|
+
const v = config.value[key];
|
|
79
|
+
return typeof v === "string" && allowed.includes(v) ? v : fallback;
|
|
80
|
+
}
|
|
81
|
+
const mark = computed(
|
|
82
|
+
() => props.mark ?? configured("brandLogo", KNOWN_MARKS, opts.brand.logoMark)
|
|
83
|
+
);
|
|
84
|
+
const variant = computed(
|
|
85
|
+
() => props.variant ?? configured(
|
|
86
|
+
"brandLogoVariant",
|
|
87
|
+
["mark", "lockup", "wordmark"],
|
|
88
|
+
opts.brand.logoVariant
|
|
89
|
+
)
|
|
90
|
+
);
|
|
91
|
+
const geom = computed(() => MARKS[mark.value] ?? MARKS.sprout);
|
|
92
|
+
const wordmark = computed(() => props.text ?? opts.brand.name ?? "Jun!s");
|
|
93
|
+
const word = computed(() => {
|
|
94
|
+
const w = wordmark.value;
|
|
95
|
+
const i = w.indexOf("!");
|
|
96
|
+
return i < 0 ? { head: w, bang: "", tail: "" } : { head: w.slice(0, i), bang: "!", tail: w.slice(i + 1) };
|
|
97
|
+
});
|
|
98
|
+
</script>
|
|
99
|
+
|
|
100
|
+
<template>
|
|
101
|
+
<span
|
|
102
|
+
v-if="variant === 'lockup' || variant === 'wordmark'"
|
|
103
|
+
class="jun-logo-lockup inline-flex items-center gap-2"
|
|
104
|
+
:class="`is-${mark}`"
|
|
105
|
+
role="img"
|
|
106
|
+
:aria-label="title"
|
|
107
|
+
>
|
|
108
|
+
<!-- Same geometry as the standalone mark below, from the same data. Kept
|
|
109
|
+
inline in both branches rather than extracted into a child: the
|
|
110
|
+
intro's FLIP morph compares the rendered SVG, and an extra wrapper
|
|
111
|
+
element around one of them is enough to shift the measured rect. -->
|
|
112
|
+
<svg
|
|
113
|
+
v-if="variant === 'lockup'"
|
|
114
|
+
viewBox="0 0 48 48"
|
|
115
|
+
fill="none"
|
|
116
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
117
|
+
class="jun-logo h-full w-auto"
|
|
118
|
+
:class="`jun-logo--${mark}`"
|
|
119
|
+
aria-hidden="true"
|
|
120
|
+
>
|
|
121
|
+
<!-- The hit area. An SVG only answers the pointer where it is PAINTED,
|
|
122
|
+
so without this a monoline mark is hoverable on its strokes and
|
|
123
|
+
nowhere between them, and the hover reads as broken. -->
|
|
124
|
+
<rect
|
|
125
|
+
width="48"
|
|
126
|
+
height="48"
|
|
127
|
+
fill="transparent"
|
|
128
|
+
/>
|
|
129
|
+
|
|
130
|
+
<template v-if="mark === 'sun'">
|
|
131
|
+
<defs>
|
|
132
|
+
<linearGradient
|
|
133
|
+
:id="`${uid}-body`"
|
|
134
|
+
x1="0"
|
|
135
|
+
y1="0"
|
|
136
|
+
x2="1"
|
|
137
|
+
y2="1"
|
|
138
|
+
>
|
|
139
|
+
<stop
|
|
140
|
+
offset="0"
|
|
141
|
+
:style="{ stopColor: SUN.body.from }"
|
|
142
|
+
/>
|
|
143
|
+
<stop
|
|
144
|
+
offset="1"
|
|
145
|
+
:style="{ stopColor: SUN.body.to }"
|
|
146
|
+
/>
|
|
147
|
+
</linearGradient>
|
|
148
|
+
<radialGradient
|
|
149
|
+
:id="`${uid}-glow`"
|
|
150
|
+
gradientUnits="userSpaceOnUse"
|
|
151
|
+
:cx="SUN.glow.cx"
|
|
152
|
+
:cy="SUN.glow.cy"
|
|
153
|
+
:r="SUN.glow.r"
|
|
154
|
+
>
|
|
155
|
+
<stop
|
|
156
|
+
offset="0"
|
|
157
|
+
:style="{ stopColor: SUN.glow.color }"
|
|
158
|
+
/>
|
|
159
|
+
<stop
|
|
160
|
+
offset="1"
|
|
161
|
+
:style="{ stopColor: SUN.glow.color }"
|
|
162
|
+
stop-opacity="0"
|
|
163
|
+
/>
|
|
164
|
+
</radialGradient>
|
|
165
|
+
</defs>
|
|
166
|
+
<circle
|
|
167
|
+
cx="24"
|
|
168
|
+
cy="24"
|
|
169
|
+
r="24"
|
|
170
|
+
:fill="`url(#${uid}-body)`"
|
|
171
|
+
/>
|
|
172
|
+
<g class="jun-sun-core">
|
|
173
|
+
<circle
|
|
174
|
+
cx="24"
|
|
175
|
+
cy="24"
|
|
176
|
+
r="12"
|
|
177
|
+
:style="{ fill: SUN.core }"
|
|
178
|
+
/>
|
|
179
|
+
<circle
|
|
180
|
+
cx="24"
|
|
181
|
+
cy="24"
|
|
182
|
+
r="12"
|
|
183
|
+
:fill="`url(#${uid}-glow)`"
|
|
184
|
+
/>
|
|
185
|
+
</g>
|
|
186
|
+
</template>
|
|
187
|
+
|
|
188
|
+
<template v-else>
|
|
189
|
+
<path
|
|
190
|
+
v-for="(p, i) in geom.paths"
|
|
191
|
+
:key="`p${i}`"
|
|
192
|
+
:d="p.d"
|
|
193
|
+
pathLength="1"
|
|
194
|
+
stroke="currentColor"
|
|
195
|
+
:stroke-width="p.w"
|
|
196
|
+
:stroke-linecap="p.join ? void 0 : 'round'"
|
|
197
|
+
stroke-linejoin="round"
|
|
198
|
+
fill="none"
|
|
199
|
+
/>
|
|
200
|
+
<circle
|
|
201
|
+
v-for="(c, i) in geom.dots"
|
|
202
|
+
:key="`c${i}`"
|
|
203
|
+
class="jun-logo-dot"
|
|
204
|
+
:cx="c.cx"
|
|
205
|
+
:cy="c.cy"
|
|
206
|
+
:r="c.r"
|
|
207
|
+
fill="currentColor"
|
|
208
|
+
/>
|
|
209
|
+
</template>
|
|
210
|
+
</svg>
|
|
211
|
+
<!-- One line, and the bang's span is unconditional, both deliberately.
|
|
212
|
+
Vue's `condense` whitespace mode turns the newline between an
|
|
213
|
+
interpolation and the next tag into a SPACE — `Jun !s` — and a `v-if`
|
|
214
|
+
here would need a second attribute, which the template style then
|
|
215
|
+
wraps onto its own line and reintroduces exactly that newline. An
|
|
216
|
+
empty bang collapses in CSS instead. -->
|
|
217
|
+
<span class="jun-logo-word leading-none font-medium tracking-tight">{{ word.head }}<span class="jun-logo-bang">{{ word.bang }}</span>{{ word.tail }}</span>
|
|
218
|
+
</span>
|
|
219
|
+
|
|
220
|
+
<svg
|
|
221
|
+
v-else
|
|
222
|
+
viewBox="0 0 48 48"
|
|
223
|
+
fill="none"
|
|
224
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
225
|
+
class="jun-logo"
|
|
226
|
+
:class="`jun-logo--${mark}`"
|
|
227
|
+
role="img"
|
|
228
|
+
:aria-label="title"
|
|
229
|
+
>
|
|
230
|
+
<title>{{ title }}</title>
|
|
231
|
+
|
|
232
|
+
<!-- The hit area — see the lockup branch. -->
|
|
233
|
+
<rect
|
|
234
|
+
width="48"
|
|
235
|
+
height="48"
|
|
236
|
+
fill="transparent"
|
|
237
|
+
/>
|
|
238
|
+
|
|
239
|
+
<!-- sun — the dock orb, 1:1. The one mark that carries chroma, and it
|
|
240
|
+
takes it from the site's accent: see SUN. -->
|
|
241
|
+
<template v-if="mark === 'sun'">
|
|
242
|
+
<defs>
|
|
243
|
+
<linearGradient
|
|
244
|
+
:id="`${uid}-body`"
|
|
245
|
+
x1="0"
|
|
246
|
+
y1="0"
|
|
247
|
+
x2="1"
|
|
248
|
+
y2="1"
|
|
249
|
+
>
|
|
250
|
+
<stop
|
|
251
|
+
offset="0"
|
|
252
|
+
:style="{ stopColor: SUN.body.from }"
|
|
253
|
+
/>
|
|
254
|
+
<stop
|
|
255
|
+
offset="1"
|
|
256
|
+
:style="{ stopColor: SUN.body.to }"
|
|
257
|
+
/>
|
|
258
|
+
</linearGradient>
|
|
259
|
+
<radialGradient
|
|
260
|
+
:id="`${uid}-glow`"
|
|
261
|
+
gradientUnits="userSpaceOnUse"
|
|
262
|
+
:cx="SUN.glow.cx"
|
|
263
|
+
:cy="SUN.glow.cy"
|
|
264
|
+
:r="SUN.glow.r"
|
|
265
|
+
>
|
|
266
|
+
<stop
|
|
267
|
+
offset="0"
|
|
268
|
+
:style="{ stopColor: SUN.glow.color }"
|
|
269
|
+
/>
|
|
270
|
+
<stop
|
|
271
|
+
offset="1"
|
|
272
|
+
:style="{ stopColor: SUN.glow.color }"
|
|
273
|
+
stop-opacity="0"
|
|
274
|
+
/>
|
|
275
|
+
</radialGradient>
|
|
276
|
+
<radialGradient
|
|
277
|
+
:id="`${uid}-halo`"
|
|
278
|
+
gradientUnits="userSpaceOnUse"
|
|
279
|
+
cx="24"
|
|
280
|
+
cy="24"
|
|
281
|
+
:r="SUN.halo.r"
|
|
282
|
+
>
|
|
283
|
+
<stop
|
|
284
|
+
:offset="12 / SUN.halo.r"
|
|
285
|
+
:stop-color="SUN.halo.color"
|
|
286
|
+
:stop-opacity="SUN.halo.inner"
|
|
287
|
+
/>
|
|
288
|
+
<stop
|
|
289
|
+
offset="0.84"
|
|
290
|
+
:stop-color="SUN.halo.color"
|
|
291
|
+
:stop-opacity="SUN.halo.mid"
|
|
292
|
+
/>
|
|
293
|
+
<stop
|
|
294
|
+
offset="1"
|
|
295
|
+
:stop-color="SUN.halo.color"
|
|
296
|
+
stop-opacity="0"
|
|
297
|
+
/>
|
|
298
|
+
</radialGradient>
|
|
299
|
+
</defs>
|
|
300
|
+
<circle
|
|
301
|
+
class="jun-sun-body"
|
|
302
|
+
cx="24"
|
|
303
|
+
cy="24"
|
|
304
|
+
r="24"
|
|
305
|
+
:fill="`url(#${uid}-body)`"
|
|
306
|
+
/>
|
|
307
|
+
<g class="jun-sun-core">
|
|
308
|
+
<circle
|
|
309
|
+
class="jun-sun-halo"
|
|
310
|
+
cx="24"
|
|
311
|
+
cy="24"
|
|
312
|
+
:r="SUN.halo.r"
|
|
313
|
+
:fill="`url(#${uid}-halo)`"
|
|
314
|
+
/>
|
|
315
|
+
<circle
|
|
316
|
+
class="jun-sun-disc"
|
|
317
|
+
cx="24"
|
|
318
|
+
cy="24"
|
|
319
|
+
r="12"
|
|
320
|
+
:style="{ fill: SUN.core }"
|
|
321
|
+
/>
|
|
322
|
+
<circle
|
|
323
|
+
class="jun-sun-glow"
|
|
324
|
+
cx="24"
|
|
325
|
+
cy="24"
|
|
326
|
+
r="12"
|
|
327
|
+
:fill="`url(#${uid}-glow)`"
|
|
328
|
+
/>
|
|
329
|
+
</g>
|
|
330
|
+
</template>
|
|
331
|
+
|
|
332
|
+
<!-- sprout / node / page — one monoline, drawn from MARKS. -->
|
|
333
|
+
<template v-else>
|
|
334
|
+
<path
|
|
335
|
+
v-for="(p, i) in geom.paths"
|
|
336
|
+
:key="`p${i}`"
|
|
337
|
+
:d="p.d"
|
|
338
|
+
pathLength="1"
|
|
339
|
+
stroke="currentColor"
|
|
340
|
+
:stroke-width="p.w"
|
|
341
|
+
:stroke-linecap="p.join ? void 0 : 'round'"
|
|
342
|
+
stroke-linejoin="round"
|
|
343
|
+
fill="none"
|
|
344
|
+
/>
|
|
345
|
+
<circle
|
|
346
|
+
v-for="(c, i) in geom.dots"
|
|
347
|
+
:key="`c${i}`"
|
|
348
|
+
class="jun-logo-dot"
|
|
349
|
+
:cx="c.cx"
|
|
350
|
+
:cy="c.cy"
|
|
351
|
+
:r="c.r"
|
|
352
|
+
fill="currentColor"
|
|
353
|
+
/>
|
|
354
|
+
</template>
|
|
355
|
+
</svg>
|
|
356
|
+
</template>
|
|
357
|
+
|
|
358
|
+
<style scoped>
|
|
359
|
+
.jun-logo-lockup{flex:none}.jun-logo-word{flex:none;font-size:.95em;white-space:nowrap}
|
|
360
|
+
</style>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { JunLogoMark, JunLogoVariant } from '../types.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
title?: string;
|
|
4
|
+
/** Override the configured mark. Leave unset so the config wins. */
|
|
5
|
+
mark?: JunLogoMark;
|
|
6
|
+
/** `mark` (default), `lockup` (mark + name) or `wordmark` (name only). */
|
|
7
|
+
variant?: JunLogoVariant;
|
|
8
|
+
/** Wordmark text. Defaults to `jun.brand.name`. */
|
|
9
|
+
text?: string;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
|
+
title: string;
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|