@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,585 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, ref } from "vue";
|
|
3
|
+
import {
|
|
4
|
+
junDateShort,
|
|
5
|
+
junMotion,
|
|
6
|
+
junStagger,
|
|
7
|
+
useAbracadabra,
|
|
8
|
+
useChildTree,
|
|
9
|
+
useDocSlugs,
|
|
10
|
+
useDocTree,
|
|
11
|
+
useJunDocIcon,
|
|
12
|
+
useJunOpenDoc,
|
|
13
|
+
useJunOptions,
|
|
14
|
+
useJunPageType,
|
|
15
|
+
useJunRename,
|
|
16
|
+
useJunStudio,
|
|
17
|
+
useJunViewingAccent
|
|
18
|
+
} from "#imports";
|
|
19
|
+
const props = defineProps({
|
|
20
|
+
docId: { type: String, required: true },
|
|
21
|
+
docLabel: { type: String, required: false },
|
|
22
|
+
docMeta: { type: Object, required: false },
|
|
23
|
+
childProvider: { type: null, required: false },
|
|
24
|
+
editable: { type: Boolean, required: false }
|
|
25
|
+
});
|
|
26
|
+
const abra = useAbracadabra();
|
|
27
|
+
const tree = useChildTree(abra.doc, props.docId);
|
|
28
|
+
const { entries, getEntry } = useDocTree();
|
|
29
|
+
const { getDocUrl } = useDocSlugs();
|
|
30
|
+
const { editing } = useJunStudio();
|
|
31
|
+
const { renameDoc } = useJunRename();
|
|
32
|
+
const { typeIdFor, resolveType } = useJunPageType();
|
|
33
|
+
const { brand } = useJunOptions();
|
|
34
|
+
const docIcon = useJunDocIcon();
|
|
35
|
+
const { onActivate } = useJunOpenDoc();
|
|
36
|
+
const { accentInsetStyle, accentTitle } = useJunViewingAccent();
|
|
37
|
+
const pageMeta = computed(
|
|
38
|
+
() => getEntry(props.docId)?.meta ?? props.docMeta ?? {}
|
|
39
|
+
);
|
|
40
|
+
const pageTitle = computed(() => getEntry(props.docId)?.label ?? props.docLabel ?? brand.name);
|
|
41
|
+
const tagline = computed(() => {
|
|
42
|
+
const ex = pageMeta.value.excerpt;
|
|
43
|
+
return typeof ex === "string" && ex.trim() ? ex : brand.tagline;
|
|
44
|
+
});
|
|
45
|
+
function renamePage(t) {
|
|
46
|
+
renameDoc(props.docId, t);
|
|
47
|
+
}
|
|
48
|
+
function renameTagline(s) {
|
|
49
|
+
tree.updateMeta(props.docId, { excerpt: s || void 0 });
|
|
50
|
+
}
|
|
51
|
+
const SECTION_META = {
|
|
52
|
+
hero: { label: "Hero", icon: "i-lucide-user-round" },
|
|
53
|
+
latest: { label: "Latest writing", icon: "i-lucide-feather" },
|
|
54
|
+
projects: { label: "Projects", icon: "i-lucide-box" },
|
|
55
|
+
now: { label: "Now", icon: "i-lucide-radio" },
|
|
56
|
+
links: { label: "Links", icon: "i-lucide-link" },
|
|
57
|
+
pages: { label: "Pages", icon: "i-lucide-layout-grid" },
|
|
58
|
+
prose: { label: "Page content", icon: "i-lucide-text" }
|
|
59
|
+
};
|
|
60
|
+
const DEFAULT_SECTIONS = ["hero", "latest", "projects", "pages"];
|
|
61
|
+
const ALL_SECTIONS = Object.keys(SECTION_META);
|
|
62
|
+
const sections = computed(() => {
|
|
63
|
+
const stored = pageMeta.value.homeSections;
|
|
64
|
+
if (!Array.isArray(stored)) return DEFAULT_SECTIONS;
|
|
65
|
+
const valid = stored.filter((s) => ALL_SECTIONS.includes(s));
|
|
66
|
+
return valid.length ? valid : DEFAULT_SECTIONS;
|
|
67
|
+
});
|
|
68
|
+
function toggleSection(id) {
|
|
69
|
+
const current = sections.value;
|
|
70
|
+
tree.updateMeta(props.docId, {
|
|
71
|
+
homeSections: current.includes(id) ? current.filter((s) => s !== id) : [...current, id]
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
function moveSection(id, delta) {
|
|
75
|
+
const current = [...sections.value];
|
|
76
|
+
const i = current.indexOf(id);
|
|
77
|
+
const j = i + delta;
|
|
78
|
+
if (i < 0 || j < 0 || j >= current.length) return;
|
|
79
|
+
[current[i], current[j]] = [current[j], current[i]];
|
|
80
|
+
tree.updateMeta(props.docId, { homeSections: current });
|
|
81
|
+
}
|
|
82
|
+
const LAYOUTS = [
|
|
83
|
+
{ value: "stack", label: "Stack", icon: "i-lucide-rows-3", hint: "One column, generous" },
|
|
84
|
+
{ value: "split", label: "Split", icon: "i-lucide-columns-2", hint: "Hero beside the rest" },
|
|
85
|
+
{ value: "magazine", label: "Magazine", icon: "i-lucide-layout-panel-top", hint: "Wide, denser sections" },
|
|
86
|
+
{ value: "minimal", label: "Minimal", icon: "i-lucide-minus", hint: "Centred hero, little else" }
|
|
87
|
+
];
|
|
88
|
+
const layout = computed(() => {
|
|
89
|
+
const l = pageMeta.value.homeLayout;
|
|
90
|
+
return l === "split" || l === "magazine" || l === "minimal" ? l : "stack";
|
|
91
|
+
});
|
|
92
|
+
function setLayout(l) {
|
|
93
|
+
tree.updateMeta(props.docId, { homeLayout: l === "stack" ? void 0 : l });
|
|
94
|
+
}
|
|
95
|
+
const shellClass = computed(() => {
|
|
96
|
+
switch (layout.value) {
|
|
97
|
+
case "magazine":
|
|
98
|
+
return "max-w-6xl";
|
|
99
|
+
case "split":
|
|
100
|
+
return "max-w-6xl";
|
|
101
|
+
case "minimal":
|
|
102
|
+
return "max-w-2xl";
|
|
103
|
+
default:
|
|
104
|
+
return "max-w-3xl";
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
function childrenOf(parentId) {
|
|
108
|
+
if (!parentId) return [];
|
|
109
|
+
return entries.value.filter(
|
|
110
|
+
(e) => e.parentId === parentId && e.id !== parentId && !!e.label && e.meta?.hidden !== true
|
|
111
|
+
).sort((a, b) => (a.order ?? 0) - (b.order ?? 0));
|
|
112
|
+
}
|
|
113
|
+
const topLevel = computed(() => childrenOf(abra.spaceDocId.value ?? null));
|
|
114
|
+
function pageOfType(key) {
|
|
115
|
+
const type = typeIdFor(key);
|
|
116
|
+
if (!type) return null;
|
|
117
|
+
return topLevel.value.find((e) => resolveType(e.type) === type) ?? null;
|
|
118
|
+
}
|
|
119
|
+
function dateOf(e) {
|
|
120
|
+
const d = e.meta?.date;
|
|
121
|
+
if (typeof d === "string") {
|
|
122
|
+
const t = Date.parse(d);
|
|
123
|
+
if (!Number.isNaN(t)) return t;
|
|
124
|
+
}
|
|
125
|
+
return e.updatedAt ?? 0;
|
|
126
|
+
}
|
|
127
|
+
function newestChildrenOf(page, limit) {
|
|
128
|
+
if (!page) return [];
|
|
129
|
+
return [...childrenOf(page.id)].sort((a, b) => dateOf(b) - dateOf(a)).slice(0, limit);
|
|
130
|
+
}
|
|
131
|
+
const journalPage = computed(() => pageOfType("journal"));
|
|
132
|
+
const appsPage = computed(() => pageOfType("apps"));
|
|
133
|
+
const livePage = computed(() => pageOfType("live"));
|
|
134
|
+
const linksPage = computed(() => pageOfType("links"));
|
|
135
|
+
const latest = computed(() => newestChildrenOf(journalPage.value, layout.value === "magazine" ? 6 : 3));
|
|
136
|
+
const projects = computed(() => childrenOf(appsPage.value?.id ?? null).slice(0, 8));
|
|
137
|
+
const nowPost = computed(() => newestChildrenOf(livePage.value, 1)[0] ?? null);
|
|
138
|
+
const linkRows = computed(() => childrenOf(linksPage.value?.id ?? null).slice(0, 6));
|
|
139
|
+
function hasContent(id) {
|
|
140
|
+
switch (id) {
|
|
141
|
+
case "latest":
|
|
142
|
+
return latest.value.length > 0;
|
|
143
|
+
case "projects":
|
|
144
|
+
return projects.value.length > 0;
|
|
145
|
+
case "now":
|
|
146
|
+
return !!nowPost.value;
|
|
147
|
+
case "links":
|
|
148
|
+
return linkRows.value.length > 0;
|
|
149
|
+
case "pages":
|
|
150
|
+
return topLevel.value.length > 0;
|
|
151
|
+
default:
|
|
152
|
+
return true;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
const visibleSections = computed(() => sections.value.filter(hasContent));
|
|
156
|
+
const showHero = computed(() => visibleSections.value.includes("hero"));
|
|
157
|
+
const bodySections = computed(() => visibleSections.value.filter((s) => s !== "hero"));
|
|
158
|
+
const excerptOf = (e) => {
|
|
159
|
+
const x = e.meta?.excerpt;
|
|
160
|
+
return typeof x === "string" && x.trim() ? x : void 0;
|
|
161
|
+
};
|
|
162
|
+
const dateTextOf = (e) => {
|
|
163
|
+
const d = e.meta?.date;
|
|
164
|
+
return typeof d === "string" ? junDateShort(d) : "";
|
|
165
|
+
};
|
|
166
|
+
const hrefOf = (e) => getDocUrl(e.id);
|
|
167
|
+
const titleOfSection = (id, fallback) => (id === "latest" ? journalPage.value?.label : id === "projects" ? appsPage.value?.label : null) ?? fallback;
|
|
168
|
+
const studioOpen = ref(false);
|
|
169
|
+
</script>
|
|
170
|
+
|
|
171
|
+
<template>
|
|
172
|
+
<div :class="['relative mx-auto w-full px-4 pt-12 pb-16 sm:px-8', shellClass]">
|
|
173
|
+
<!-- Owner controls. A compact bar rather than a settings page: the home
|
|
174
|
+
page is the one document whose layout you want to judge while you
|
|
175
|
+
change it. -->
|
|
176
|
+
<div
|
|
177
|
+
v-if="editing"
|
|
178
|
+
class="jun-card mb-8 rounded-xl p-3"
|
|
179
|
+
>
|
|
180
|
+
<div class="flex flex-wrap items-center gap-2">
|
|
181
|
+
<UButton
|
|
182
|
+
:icon="studioOpen ? 'i-lucide-chevron-down' : 'i-lucide-chevron-right'"
|
|
183
|
+
size="xs"
|
|
184
|
+
color="neutral"
|
|
185
|
+
variant="ghost"
|
|
186
|
+
label="Home layout"
|
|
187
|
+
@click="studioOpen = !studioOpen"
|
|
188
|
+
/>
|
|
189
|
+
<span class="text-xs text-dimmed">
|
|
190
|
+
{{ LAYOUTS.find((l2) => l2.value === layout)?.label }} · {{ visibleSections.length }} section(s)
|
|
191
|
+
</span>
|
|
192
|
+
</div>
|
|
193
|
+
|
|
194
|
+
<div
|
|
195
|
+
v-if="studioOpen"
|
|
196
|
+
class="mt-3 space-y-3"
|
|
197
|
+
>
|
|
198
|
+
<div class="flex flex-wrap gap-2">
|
|
199
|
+
<button
|
|
200
|
+
v-for="l in LAYOUTS"
|
|
201
|
+
:key="l.value"
|
|
202
|
+
type="button"
|
|
203
|
+
:title="l.hint"
|
|
204
|
+
class="flex cursor-pointer items-center gap-1.5 rounded-lg px-2.5 py-1.5 text-xs ring-1 transition-all"
|
|
205
|
+
:class="layout === l.value ? 'ring-2 ring-black bg-black/[0.04] dark:ring-white dark:bg-white/[0.06]' : 'ring-black/10 hover:ring-black/25 dark:ring-white/10 dark:hover:ring-white/25'"
|
|
206
|
+
@click="setLayout(l.value)"
|
|
207
|
+
>
|
|
208
|
+
<UIcon
|
|
209
|
+
:name="l.icon"
|
|
210
|
+
class="size-4 opacity-80"
|
|
211
|
+
/>
|
|
212
|
+
{{ l.label }}
|
|
213
|
+
</button>
|
|
214
|
+
</div>
|
|
215
|
+
|
|
216
|
+
<ul class="flex flex-col gap-1">
|
|
217
|
+
<li
|
|
218
|
+
v-for="id in ALL_SECTIONS"
|
|
219
|
+
:key="id"
|
|
220
|
+
class="flex items-center gap-2 rounded-md px-2 py-1 text-xs hover:bg-black/[0.03] dark:hover:bg-white/[0.04]"
|
|
221
|
+
>
|
|
222
|
+
<UIcon
|
|
223
|
+
:name="SECTION_META[id].icon"
|
|
224
|
+
class="size-3.5 opacity-70"
|
|
225
|
+
/>
|
|
226
|
+
<span class="flex-1">{{ SECTION_META[id].label }}</span>
|
|
227
|
+
<span
|
|
228
|
+
v-if="sections.includes(id) && !hasContent(id)"
|
|
229
|
+
class="text-[10px] text-dimmed italic"
|
|
230
|
+
>nothing to show yet</span>
|
|
231
|
+
<template v-if="sections.includes(id)">
|
|
232
|
+
<UButton
|
|
233
|
+
icon="i-lucide-chevron-up"
|
|
234
|
+
size="xs"
|
|
235
|
+
color="neutral"
|
|
236
|
+
variant="ghost"
|
|
237
|
+
aria-label="Move up"
|
|
238
|
+
@click="moveSection(id, -1)"
|
|
239
|
+
/>
|
|
240
|
+
<UButton
|
|
241
|
+
icon="i-lucide-chevron-down"
|
|
242
|
+
size="xs"
|
|
243
|
+
color="neutral"
|
|
244
|
+
variant="ghost"
|
|
245
|
+
aria-label="Move down"
|
|
246
|
+
@click="moveSection(id, 1)"
|
|
247
|
+
/>
|
|
248
|
+
</template>
|
|
249
|
+
<USwitch
|
|
250
|
+
:model-value="sections.includes(id)"
|
|
251
|
+
size="xs"
|
|
252
|
+
color="neutral"
|
|
253
|
+
@update:model-value="toggleSection(id)"
|
|
254
|
+
/>
|
|
255
|
+
</li>
|
|
256
|
+
</ul>
|
|
257
|
+
</div>
|
|
258
|
+
</div>
|
|
259
|
+
|
|
260
|
+
<div :class="layout === 'split' ? 'grid gap-12 lg:grid-cols-[minmax(0,19rem)_minmax(0,1fr)]' : ''">
|
|
261
|
+
<!-- ── Hero ───────────────────────────────────────────────────────── -->
|
|
262
|
+
<header
|
|
263
|
+
v-if="showHero"
|
|
264
|
+
v-motion="junMotion(junStagger(0))"
|
|
265
|
+
:class="[
|
|
266
|
+
layout === 'split' ? 'lg:sticky lg:top-28 lg:self-start' : 'mb-12',
|
|
267
|
+
layout === 'minimal' ? 'py-14 text-center' : ''
|
|
268
|
+
]"
|
|
269
|
+
>
|
|
270
|
+
<NuxtImg
|
|
271
|
+
v-if="brand.avatar"
|
|
272
|
+
:src="brand.avatar"
|
|
273
|
+
:alt="pageTitle"
|
|
274
|
+
class="mb-5 size-16 rounded-2xl object-cover shadow-lg shadow-black/10 ring-1 ring-black/5 dark:ring-white/10"
|
|
275
|
+
:class="layout === 'minimal' ? 'mx-auto' : ''"
|
|
276
|
+
/>
|
|
277
|
+
<JunPageHero
|
|
278
|
+
:title="pageTitle"
|
|
279
|
+
:subtitle="tagline"
|
|
280
|
+
:editable="editing"
|
|
281
|
+
@rename="renamePage"
|
|
282
|
+
@rename-subtitle="renameTagline"
|
|
283
|
+
/>
|
|
284
|
+
<!-- In the compact layouts the links live in the hero rather than as
|
|
285
|
+
their own section — a row of six chips under a heading is more
|
|
286
|
+
chrome than content when the page is this short. -->
|
|
287
|
+
<div
|
|
288
|
+
v-if="linkRows.length && (layout === 'minimal' || layout === 'split')"
|
|
289
|
+
class="mt-6 flex flex-wrap gap-2"
|
|
290
|
+
:class="layout === 'minimal' ? 'justify-center' : ''"
|
|
291
|
+
>
|
|
292
|
+
<JunItemMenu
|
|
293
|
+
v-for="link in linkRows"
|
|
294
|
+
:key="link.id"
|
|
295
|
+
:entry="link"
|
|
296
|
+
:tree="tree"
|
|
297
|
+
surface="card"
|
|
298
|
+
>
|
|
299
|
+
<NuxtLink
|
|
300
|
+
:to="hrefOf(link)"
|
|
301
|
+
class="jun-chrome inline-flex items-center gap-1.5 rounded-full px-3 py-1 text-xs transition-transform hover:scale-105"
|
|
302
|
+
>
|
|
303
|
+
<UIcon
|
|
304
|
+
:name="docIcon(link.type, link.meta?.icon)"
|
|
305
|
+
class="size-3.5"
|
|
306
|
+
/>
|
|
307
|
+
{{ link.label }}
|
|
308
|
+
</NuxtLink>
|
|
309
|
+
</JunItemMenu>
|
|
310
|
+
</div>
|
|
311
|
+
</header>
|
|
312
|
+
|
|
313
|
+
<!-- ── Body sections ──────────────────────────────────────────────── -->
|
|
314
|
+
<div class="space-y-14">
|
|
315
|
+
<template
|
|
316
|
+
v-for="(id, si) in bodySections"
|
|
317
|
+
:key="id"
|
|
318
|
+
>
|
|
319
|
+
<!-- Latest writing -->
|
|
320
|
+
<section
|
|
321
|
+
v-if="id === 'latest'"
|
|
322
|
+
v-motion="junMotion(junStagger(si))"
|
|
323
|
+
>
|
|
324
|
+
<div class="mb-4 flex items-baseline gap-3">
|
|
325
|
+
<h2 class="text-xs font-medium tracking-[0.22em] text-dimmed uppercase">
|
|
326
|
+
{{ titleOfSection("latest", "Latest") }}
|
|
327
|
+
</h2>
|
|
328
|
+
<div class="h-px flex-1 bg-black/10 dark:bg-white/10" />
|
|
329
|
+
<NuxtLink
|
|
330
|
+
v-if="journalPage"
|
|
331
|
+
:to="hrefOf(journalPage)"
|
|
332
|
+
class="text-xs text-muted transition-colors hover:text-default"
|
|
333
|
+
>All →</NuxtLink>
|
|
334
|
+
</div>
|
|
335
|
+
<ul :class="layout === 'magazine' ? 'grid gap-3 sm:grid-cols-2' : 'flex flex-col gap-3'">
|
|
336
|
+
<li
|
|
337
|
+
v-for="entry in latest"
|
|
338
|
+
:key="entry.id"
|
|
339
|
+
>
|
|
340
|
+
<JunItemMenu
|
|
341
|
+
:entry="entry"
|
|
342
|
+
:tree="tree"
|
|
343
|
+
surface="card"
|
|
344
|
+
no-open
|
|
345
|
+
>
|
|
346
|
+
<NuxtLink
|
|
347
|
+
:to="hrefOf(entry)"
|
|
348
|
+
class="jun-card group relative block rounded-xl px-4 py-3.5 transition-all duration-300 hover:scale-[1.01] hover:shadow-xl"
|
|
349
|
+
:title="accentTitle(entry.id)"
|
|
350
|
+
@click="onActivate($event, entry.id, entry.label)"
|
|
351
|
+
>
|
|
352
|
+
<span
|
|
353
|
+
v-if="accentInsetStyle(entry.id)"
|
|
354
|
+
aria-hidden="true"
|
|
355
|
+
class="pointer-events-none absolute inset-0 rounded-[inherit]"
|
|
356
|
+
:style="accentInsetStyle(entry.id)"
|
|
357
|
+
/>
|
|
358
|
+
<span class="flex items-baseline gap-3">
|
|
359
|
+
<span class="min-w-0 flex-1 truncate text-sm font-medium text-highlighted sm:text-base">
|
|
360
|
+
{{ entry.label }}
|
|
361
|
+
</span>
|
|
362
|
+
<span
|
|
363
|
+
v-if="dateTextOf(entry)"
|
|
364
|
+
class="shrink-0 text-xs text-dimmed tabular-nums"
|
|
365
|
+
>{{ dateTextOf(entry) }}</span>
|
|
366
|
+
</span>
|
|
367
|
+
<span
|
|
368
|
+
v-if="excerptOf(entry)"
|
|
369
|
+
class="mt-1 block line-clamp-2 text-xs text-muted sm:text-sm"
|
|
370
|
+
>{{ excerptOf(entry) }}</span>
|
|
371
|
+
</NuxtLink>
|
|
372
|
+
</JunItemMenu>
|
|
373
|
+
</li>
|
|
374
|
+
</ul>
|
|
375
|
+
</section>
|
|
376
|
+
|
|
377
|
+
<!-- Projects -->
|
|
378
|
+
<section
|
|
379
|
+
v-else-if="id === 'projects'"
|
|
380
|
+
v-motion="junMotion(junStagger(si))"
|
|
381
|
+
>
|
|
382
|
+
<div class="mb-4 flex items-baseline gap-3">
|
|
383
|
+
<h2 class="text-xs font-medium tracking-[0.22em] text-dimmed uppercase">
|
|
384
|
+
{{ titleOfSection("projects", "Projects") }}
|
|
385
|
+
</h2>
|
|
386
|
+
<div class="h-px flex-1 bg-black/10 dark:bg-white/10" />
|
|
387
|
+
<NuxtLink
|
|
388
|
+
v-if="appsPage"
|
|
389
|
+
:to="hrefOf(appsPage)"
|
|
390
|
+
class="text-xs text-muted transition-colors hover:text-default"
|
|
391
|
+
>All →</NuxtLink>
|
|
392
|
+
</div>
|
|
393
|
+
<div class="grid grid-cols-3 gap-3 sm:grid-cols-4 sm:gap-4">
|
|
394
|
+
<JunItemMenu
|
|
395
|
+
v-for="app in projects"
|
|
396
|
+
:key="app.id"
|
|
397
|
+
:entry="app"
|
|
398
|
+
:tree="tree"
|
|
399
|
+
surface="card"
|
|
400
|
+
no-open
|
|
401
|
+
>
|
|
402
|
+
<NuxtLink
|
|
403
|
+
:to="hrefOf(app)"
|
|
404
|
+
class="group block text-center"
|
|
405
|
+
@click="onActivate($event, app.id, app.label)"
|
|
406
|
+
>
|
|
407
|
+
<span
|
|
408
|
+
class="relative flex aspect-square items-center justify-center rounded-2xl transition-all duration-300 group-hover:scale-[1.04] group-hover:bg-black/5 dark:group-hover:bg-white/5"
|
|
409
|
+
>
|
|
410
|
+
<JunMedia
|
|
411
|
+
v-if="app.meta?.iconUploadId"
|
|
412
|
+
:doc-id="app.id"
|
|
413
|
+
:upload-id="app.meta.iconUploadId"
|
|
414
|
+
:mime-type="app.meta.iconMimeType || 'image/png'"
|
|
415
|
+
:alt="app.label"
|
|
416
|
+
:size="192"
|
|
417
|
+
media-class="h-[68%] w-[68%] rounded-2xl object-cover shadow-lg shadow-black/20"
|
|
418
|
+
/>
|
|
419
|
+
<span
|
|
420
|
+
v-else
|
|
421
|
+
class="flex h-[60%] w-[60%] items-center justify-center rounded-xl bg-linear-to-br from-zinc-100 to-zinc-300 shadow-lg shadow-black/20 ring-1 ring-zinc-200 dark:from-zinc-700 dark:to-zinc-900 dark:ring-white/10"
|
|
422
|
+
>
|
|
423
|
+
<UIcon
|
|
424
|
+
name="i-lucide-box"
|
|
425
|
+
class="size-6 text-zinc-400 dark:text-zinc-500"
|
|
426
|
+
/>
|
|
427
|
+
</span>
|
|
428
|
+
</span>
|
|
429
|
+
<span class="mt-2 block truncate text-xs font-medium text-highlighted">{{ app.label }}</span>
|
|
430
|
+
</NuxtLink>
|
|
431
|
+
</JunItemMenu>
|
|
432
|
+
</div>
|
|
433
|
+
</section>
|
|
434
|
+
|
|
435
|
+
<!-- Now -->
|
|
436
|
+
<section
|
|
437
|
+
v-else-if="id === 'now' && nowPost"
|
|
438
|
+
v-motion="junMotion(junStagger(si))"
|
|
439
|
+
>
|
|
440
|
+
<div class="mb-4 flex items-baseline gap-3">
|
|
441
|
+
<h2 class="text-xs font-medium tracking-[0.22em] text-dimmed uppercase">
|
|
442
|
+
Now
|
|
443
|
+
</h2>
|
|
444
|
+
<div class="h-px flex-1 bg-black/10 dark:bg-white/10" />
|
|
445
|
+
</div>
|
|
446
|
+
<JunItemMenu
|
|
447
|
+
:entry="nowPost"
|
|
448
|
+
:tree="tree"
|
|
449
|
+
surface="card"
|
|
450
|
+
no-open
|
|
451
|
+
>
|
|
452
|
+
<NuxtLink
|
|
453
|
+
:to="hrefOf(nowPost)"
|
|
454
|
+
class="jun-card block rounded-xl px-4 py-4 transition-all duration-300 hover:shadow-xl"
|
|
455
|
+
@click="onActivate($event, nowPost.id, nowPost.label)"
|
|
456
|
+
>
|
|
457
|
+
<span class="flex items-center gap-2 text-xs text-dimmed">
|
|
458
|
+
<span class="size-1.5 animate-pulse rounded-full bg-emerald-500" />
|
|
459
|
+
{{ dateTextOf(nowPost) || "Latest" }}
|
|
460
|
+
</span>
|
|
461
|
+
<span class="mt-1.5 block text-sm text-default sm:text-base">
|
|
462
|
+
{{ excerptOf(nowPost) ?? nowPost.label }}
|
|
463
|
+
</span>
|
|
464
|
+
</NuxtLink>
|
|
465
|
+
</JunItemMenu>
|
|
466
|
+
</section>
|
|
467
|
+
|
|
468
|
+
<!-- Links -->
|
|
469
|
+
<section
|
|
470
|
+
v-else-if="id === 'links'"
|
|
471
|
+
v-motion="junMotion(junStagger(si))"
|
|
472
|
+
>
|
|
473
|
+
<div class="mb-4 flex items-baseline gap-3">
|
|
474
|
+
<h2 class="text-xs font-medium tracking-[0.22em] text-dimmed uppercase">
|
|
475
|
+
{{ linksPage?.label ?? "Links" }}
|
|
476
|
+
</h2>
|
|
477
|
+
<div class="h-px flex-1 bg-black/10 dark:bg-white/10" />
|
|
478
|
+
</div>
|
|
479
|
+
<div class="flex flex-wrap gap-2">
|
|
480
|
+
<JunItemMenu
|
|
481
|
+
v-for="link in linkRows"
|
|
482
|
+
:key="link.id"
|
|
483
|
+
:entry="link"
|
|
484
|
+
:tree="tree"
|
|
485
|
+
surface="card"
|
|
486
|
+
>
|
|
487
|
+
<NuxtLink
|
|
488
|
+
:to="hrefOf(link)"
|
|
489
|
+
class="jun-chrome inline-flex items-center gap-1.5 rounded-full px-3 py-1.5 text-xs transition-transform hover:scale-105"
|
|
490
|
+
>
|
|
491
|
+
<UIcon
|
|
492
|
+
:name="docIcon(link.type, link.meta?.icon)"
|
|
493
|
+
class="size-3.5"
|
|
494
|
+
/>
|
|
495
|
+
{{ link.label }}
|
|
496
|
+
</NuxtLink>
|
|
497
|
+
</JunItemMenu>
|
|
498
|
+
</div>
|
|
499
|
+
</section>
|
|
500
|
+
|
|
501
|
+
<!-- Pages — the site's own top level, as cards. The one section that
|
|
502
|
+
works on a brand-new site with nothing else in it. -->
|
|
503
|
+
<section
|
|
504
|
+
v-else-if="id === 'pages'"
|
|
505
|
+
v-motion="junMotion(junStagger(si))"
|
|
506
|
+
>
|
|
507
|
+
<div class="mb-4 flex items-baseline gap-3">
|
|
508
|
+
<h2 class="text-xs font-medium tracking-[0.22em] text-dimmed uppercase">
|
|
509
|
+
Pages
|
|
510
|
+
</h2>
|
|
511
|
+
<div class="h-px flex-1 bg-black/10 dark:bg-white/10" />
|
|
512
|
+
</div>
|
|
513
|
+
<div class="grid gap-3 sm:grid-cols-2">
|
|
514
|
+
<JunItemMenu
|
|
515
|
+
v-for="page in topLevel"
|
|
516
|
+
:key="page.id"
|
|
517
|
+
:entry="page"
|
|
518
|
+
:tree="tree"
|
|
519
|
+
surface="card"
|
|
520
|
+
:siblings="topLevel.map((p) => p.id)"
|
|
521
|
+
no-open
|
|
522
|
+
>
|
|
523
|
+
<NuxtLink
|
|
524
|
+
:to="hrefOf(page)"
|
|
525
|
+
class="jun-card group flex items-center gap-3 rounded-xl px-4 py-3 transition-all duration-300 hover:scale-[1.01] hover:shadow-xl"
|
|
526
|
+
>
|
|
527
|
+
<span class="flex size-8 flex-none items-center justify-center rounded-lg bg-black/5 dark:bg-white/10">
|
|
528
|
+
<UIcon
|
|
529
|
+
:name="docIcon(page.type, page.meta?.icon)"
|
|
530
|
+
class="size-4"
|
|
531
|
+
/>
|
|
532
|
+
</span>
|
|
533
|
+
<span class="min-w-0 flex-1">
|
|
534
|
+
<span class="block truncate text-sm font-medium text-highlighted">{{ page.label }}</span>
|
|
535
|
+
<span
|
|
536
|
+
v-if="excerptOf(page)"
|
|
537
|
+
class="block truncate text-xs text-muted"
|
|
538
|
+
>{{ excerptOf(page) }}</span>
|
|
539
|
+
</span>
|
|
540
|
+
<UIcon
|
|
541
|
+
name="i-lucide-arrow-right"
|
|
542
|
+
class="size-3.5 shrink-0 text-dimmed transition-transform group-hover:translate-x-0.5"
|
|
543
|
+
/>
|
|
544
|
+
</NuxtLink>
|
|
545
|
+
</JunItemMenu>
|
|
546
|
+
</div>
|
|
547
|
+
</section>
|
|
548
|
+
|
|
549
|
+
<!-- The document's own prose. Last by default: a front page that
|
|
550
|
+
opens with an editor is a document, not a home page. -->
|
|
551
|
+
<section
|
|
552
|
+
v-else-if="id === 'prose'"
|
|
553
|
+
class="jun-home-body"
|
|
554
|
+
>
|
|
555
|
+
<AEditor
|
|
556
|
+
:doc-id="props.docId"
|
|
557
|
+
:doc-label="pageTitle"
|
|
558
|
+
:doc-meta="pageMeta"
|
|
559
|
+
:editable="editing"
|
|
560
|
+
:show-toolbar="editing"
|
|
561
|
+
:show-suggestion-menu="editing"
|
|
562
|
+
:show-drag-handle="editing"
|
|
563
|
+
:show-breadcrumb="false"
|
|
564
|
+
placeholder="Nothing written yet."
|
|
565
|
+
/>
|
|
566
|
+
</section>
|
|
567
|
+
</template>
|
|
568
|
+
</div>
|
|
569
|
+
</div>
|
|
570
|
+
|
|
571
|
+
<!-- A brand-new home page has nothing to compose yet. Say so, rather than
|
|
572
|
+
rendering headings over emptiness. -->
|
|
573
|
+
<p
|
|
574
|
+
v-if="!bodySections.length && editing"
|
|
575
|
+
class="py-10 text-center text-xs text-dimmed italic"
|
|
576
|
+
>
|
|
577
|
+
Nothing to compose yet — add a journal, a projects page or some links, and
|
|
578
|
+
their sections appear here.
|
|
579
|
+
</p>
|
|
580
|
+
</div>
|
|
581
|
+
</template>
|
|
582
|
+
|
|
583
|
+
<style scoped>
|
|
584
|
+
.jun-home-body :deep(.document-header){display:none}.jun-home-body :deep([data-meta-key=excerpt]),.jun-home-body :deep([data-meta-key=homeLayout]),.jun-home-body :deep([data-meta-key=homeSections]){display:none}.jun-home-body :deep(.ProseMirror),.jun-home-body :deep(.aeditor-canvas){padding:0}
|
|
585
|
+
</style>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
docId: string;
|
|
3
|
+
docLabel?: string;
|
|
4
|
+
docMeta?: Record<string, unknown>;
|
|
5
|
+
childProvider?: unknown;
|
|
6
|
+
editable?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
docId: string;
|
|
3
|
+
docLabel?: string;
|
|
4
|
+
docMeta?: Record<string, unknown>;
|
|
5
|
+
childProvider?: unknown;
|
|
6
|
+
editable?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|