@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,420 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, ref } from "vue";
|
|
3
|
+
import { useRouter } from "vue-router";
|
|
4
|
+
import {
|
|
5
|
+
junDateLong,
|
|
6
|
+
junDateShort,
|
|
7
|
+
junDateSortDesc,
|
|
8
|
+
junMotion,
|
|
9
|
+
junStagger,
|
|
10
|
+
useAbracadabra,
|
|
11
|
+
useChildTree,
|
|
12
|
+
useDocSlugs,
|
|
13
|
+
useDocTree,
|
|
14
|
+
useJunListDnD,
|
|
15
|
+
useJunPageType,
|
|
16
|
+
useJunRename,
|
|
17
|
+
useJunStudio,
|
|
18
|
+
useJunUpload,
|
|
19
|
+
useJunViewingAccent
|
|
20
|
+
} from "#imports";
|
|
21
|
+
const props = defineProps({
|
|
22
|
+
docId: { type: String, required: true },
|
|
23
|
+
docLabel: { type: String, required: false },
|
|
24
|
+
docMeta: { type: Object, required: false },
|
|
25
|
+
childProvider: { type: null, required: false },
|
|
26
|
+
editable: { type: Boolean, required: false }
|
|
27
|
+
});
|
|
28
|
+
const abra = useAbracadabra();
|
|
29
|
+
const tree = useChildTree(abra.doc, props.docId);
|
|
30
|
+
const router = useRouter();
|
|
31
|
+
const { getDocUrl } = useDocSlugs();
|
|
32
|
+
const { getEntry } = useDocTree();
|
|
33
|
+
const { editing } = useJunStudio();
|
|
34
|
+
const { renameDoc } = useJunRename();
|
|
35
|
+
const { uploadTo, imageFiles } = useJunUpload();
|
|
36
|
+
const { typeIdFor } = useJunPageType();
|
|
37
|
+
const { accentInsetStyle, accentTitle } = useJunViewingAccent();
|
|
38
|
+
const entryType = computed(() => typeIdFor("entry"));
|
|
39
|
+
const pageTitle = computed(() => getEntry(props.docId)?.label ?? props.docLabel ?? "Journal");
|
|
40
|
+
const pageSubtitle = computed(() => {
|
|
41
|
+
const meta = getEntry(props.docId)?.meta;
|
|
42
|
+
const ex = meta?.excerpt ?? props.docMeta?.excerpt;
|
|
43
|
+
return typeof ex === "string" && ex.trim() ? ex : void 0;
|
|
44
|
+
});
|
|
45
|
+
function renamePage(t) {
|
|
46
|
+
renameDoc(props.docId, t);
|
|
47
|
+
}
|
|
48
|
+
function renameSubtitle(s) {
|
|
49
|
+
tree.updateMeta(props.docId, { excerpt: s || void 0 });
|
|
50
|
+
}
|
|
51
|
+
const sorted = computed(() => {
|
|
52
|
+
const arr = (tree.childrenOf(null) ?? []).filter((e) => !!e.label);
|
|
53
|
+
return [...arr].sort((a, b) => junDateSortDesc(a.meta?.date, b.meta?.date));
|
|
54
|
+
});
|
|
55
|
+
const published = computed(() => sorted.value.filter((e) => !e.meta?.draft));
|
|
56
|
+
const drafts = computed(() => editing.value ? sorted.value.filter((e) => !!e.meta?.draft) : []);
|
|
57
|
+
const hero = computed(() => published.value[0] ?? null);
|
|
58
|
+
const rest = computed(() => [...drafts.value, ...published.value.slice(1)]);
|
|
59
|
+
function createEntry() {
|
|
60
|
+
if (!entryType.value) return;
|
|
61
|
+
const id = tree.createChild(null, "New entry", entryType.value);
|
|
62
|
+
tree.updateMeta(id, { draft: true });
|
|
63
|
+
const to = getDocUrl(id);
|
|
64
|
+
if (to) void router.push(to);
|
|
65
|
+
}
|
|
66
|
+
const dropTargetId = ref(null);
|
|
67
|
+
const feedDropActive = ref(false);
|
|
68
|
+
function hasFileDrag(e) {
|
|
69
|
+
return !!e.dataTransfer?.types.includes("Files");
|
|
70
|
+
}
|
|
71
|
+
function onCardDragOver(entry, e) {
|
|
72
|
+
if (!editing.value || !hasFileDrag(e)) return;
|
|
73
|
+
e.preventDefault();
|
|
74
|
+
e.stopPropagation();
|
|
75
|
+
if (e.dataTransfer) e.dataTransfer.dropEffect = "copy";
|
|
76
|
+
dropTargetId.value = entry.id;
|
|
77
|
+
feedDropActive.value = false;
|
|
78
|
+
}
|
|
79
|
+
function onCardDragLeave(entry) {
|
|
80
|
+
if (dropTargetId.value === entry.id) dropTargetId.value = null;
|
|
81
|
+
}
|
|
82
|
+
async function onCardDrop(entry, e) {
|
|
83
|
+
if (!editing.value) return;
|
|
84
|
+
e.preventDefault();
|
|
85
|
+
e.stopPropagation();
|
|
86
|
+
dropTargetId.value = null;
|
|
87
|
+
const img = imageFiles(e.dataTransfer)[0];
|
|
88
|
+
if (!img) return;
|
|
89
|
+
const res = await uploadTo(entry.id, img);
|
|
90
|
+
if (res) tree.updateMeta(entry.id, { coverUploadId: res.id, coverMimeType: res.mimeType });
|
|
91
|
+
}
|
|
92
|
+
function onFeedDragOver(e) {
|
|
93
|
+
if (!editing.value || !hasFileDrag(e)) return;
|
|
94
|
+
e.preventDefault();
|
|
95
|
+
feedDropActive.value = true;
|
|
96
|
+
}
|
|
97
|
+
function onFeedDragLeave(e) {
|
|
98
|
+
const related = e.relatedTarget;
|
|
99
|
+
if (related && e.currentTarget.contains(related)) return;
|
|
100
|
+
feedDropActive.value = false;
|
|
101
|
+
}
|
|
102
|
+
async function onFeedDrop(e) {
|
|
103
|
+
if (!editing.value || !entryType.value) return;
|
|
104
|
+
e.preventDefault();
|
|
105
|
+
feedDropActive.value = false;
|
|
106
|
+
const img = imageFiles(e.dataTransfer)[0];
|
|
107
|
+
if (!img) return;
|
|
108
|
+
const id = tree.createChild(null, "New entry", entryType.value);
|
|
109
|
+
tree.updateMeta(id, { draft: true });
|
|
110
|
+
const res = await uploadTo(id, img);
|
|
111
|
+
if (res) tree.updateMeta(id, { coverUploadId: res.id, coverMimeType: res.mimeType });
|
|
112
|
+
const to = getDocUrl(id);
|
|
113
|
+
if (to) void router.push(to);
|
|
114
|
+
}
|
|
115
|
+
const feedEl = ref(null);
|
|
116
|
+
const {
|
|
117
|
+
dragId,
|
|
118
|
+
externalHover,
|
|
119
|
+
onItemDragStart,
|
|
120
|
+
onItemDragEnd,
|
|
121
|
+
onContainerDragOver,
|
|
122
|
+
onContainerDragLeave,
|
|
123
|
+
onContainerDrop
|
|
124
|
+
} = useJunListDnD({
|
|
125
|
+
tree,
|
|
126
|
+
containerDocId: props.docId,
|
|
127
|
+
items: sorted,
|
|
128
|
+
containerEl: feedEl,
|
|
129
|
+
reorderable: false,
|
|
130
|
+
ghostIconFor: () => "i-lucide-feather"
|
|
131
|
+
});
|
|
132
|
+
function corners(i) {
|
|
133
|
+
return i % 2 === 0 ? "rounded-tl-3xl rounded-br-3xl rounded-tr-md rounded-bl-md" : "rounded-tr-3xl rounded-bl-3xl rounded-tl-md rounded-br-md";
|
|
134
|
+
}
|
|
135
|
+
</script>
|
|
136
|
+
|
|
137
|
+
<template>
|
|
138
|
+
<div
|
|
139
|
+
ref="feedEl"
|
|
140
|
+
class="relative mx-auto w-full max-w-5xl rounded-xl px-4 pt-12 pb-16 transition-shadow duration-200 sm:px-8"
|
|
141
|
+
:class="feedDropActive || externalHover ? 'ring-2 ring-inset ring-black/20 dark:ring-white/25' : ''"
|
|
142
|
+
@dragover="onFeedDragOver($event);
|
|
143
|
+
onContainerDragOver($event)"
|
|
144
|
+
@dragleave="onFeedDragLeave($event);
|
|
145
|
+
onContainerDragLeave($event)"
|
|
146
|
+
@drop="onFeedDrop($event);
|
|
147
|
+
onContainerDrop($event)"
|
|
148
|
+
>
|
|
149
|
+
<JunPageHero
|
|
150
|
+
:title="pageTitle"
|
|
151
|
+
:subtitle="pageSubtitle"
|
|
152
|
+
:editable="editing"
|
|
153
|
+
@rename="renamePage"
|
|
154
|
+
@rename-subtitle="renameSubtitle"
|
|
155
|
+
/>
|
|
156
|
+
|
|
157
|
+
<div
|
|
158
|
+
v-if="editing && entryType"
|
|
159
|
+
class="mb-6"
|
|
160
|
+
>
|
|
161
|
+
<UButton
|
|
162
|
+
icon="i-lucide-plus"
|
|
163
|
+
size="sm"
|
|
164
|
+
color="neutral"
|
|
165
|
+
variant="soft"
|
|
166
|
+
label="New entry"
|
|
167
|
+
@click="createEntry"
|
|
168
|
+
/>
|
|
169
|
+
</div>
|
|
170
|
+
|
|
171
|
+
<!-- Empty state. Visitors see it even while owner drafts exist. -->
|
|
172
|
+
<div
|
|
173
|
+
v-if="!hero && !rest.length"
|
|
174
|
+
class="py-16 text-center"
|
|
175
|
+
>
|
|
176
|
+
<UIcon
|
|
177
|
+
name="i-lucide-feather"
|
|
178
|
+
class="mb-3 size-10 text-dimmed"
|
|
179
|
+
/>
|
|
180
|
+
<p class="text-sm text-muted">
|
|
181
|
+
No entries yet.
|
|
182
|
+
</p>
|
|
183
|
+
</div>
|
|
184
|
+
|
|
185
|
+
<template v-else>
|
|
186
|
+
<!-- Featured -->
|
|
187
|
+
<JunItemMenu
|
|
188
|
+
v-if="hero"
|
|
189
|
+
:entry="hero"
|
|
190
|
+
:tree="tree"
|
|
191
|
+
no-open
|
|
192
|
+
>
|
|
193
|
+
<NuxtLink
|
|
194
|
+
v-motion="junMotion({
|
|
195
|
+
initial: { opacity: 0, y: 24 },
|
|
196
|
+
enter: { opacity: 1, y: 0, transition: { duration: 700 } }
|
|
197
|
+
})"
|
|
198
|
+
:to="getDocUrl(hero.id)"
|
|
199
|
+
:class="[
|
|
200
|
+
corners(0),
|
|
201
|
+
'group relative mb-8 block overflow-hidden',
|
|
202
|
+
'ring-1 ring-zinc-200/70 dark:ring-white/15',
|
|
203
|
+
'shadow-lg shadow-black/20',
|
|
204
|
+
'transition-all duration-300 hover:scale-[1.01] hover:shadow-xl',
|
|
205
|
+
dropTargetId === hero.id ? 'ring-2 ring-black/40 dark:ring-white/50' : '',
|
|
206
|
+
editing ? dragId === hero.id ? 'cursor-grabbing opacity-70' : 'cursor-grab' : ''
|
|
207
|
+
]"
|
|
208
|
+
:title="accentTitle(hero.id)"
|
|
209
|
+
:draggable="editing ? true : void 0"
|
|
210
|
+
@dragstart="onItemDragStart(hero, $event)"
|
|
211
|
+
@dragend="onItemDragEnd($event)"
|
|
212
|
+
@dragover="onCardDragOver(hero, $event)"
|
|
213
|
+
@dragleave="onCardDragLeave(hero)"
|
|
214
|
+
@drop="onCardDrop(hero, $event)"
|
|
215
|
+
>
|
|
216
|
+
<span
|
|
217
|
+
v-if="accentInsetStyle(hero.id)"
|
|
218
|
+
aria-hidden="true"
|
|
219
|
+
class="pointer-events-none absolute inset-0 z-10 rounded-[inherit] transition-opacity duration-700"
|
|
220
|
+
:style="accentInsetStyle(hero.id)"
|
|
221
|
+
/>
|
|
222
|
+
|
|
223
|
+
<div class="relative h-48 overflow-hidden sm:h-56 md:h-64">
|
|
224
|
+
<NuxtImg
|
|
225
|
+
v-if="hero.meta?.coverUrl"
|
|
226
|
+
:src="hero.meta.coverUrl"
|
|
227
|
+
:alt="hero.label"
|
|
228
|
+
class="h-full w-full object-cover grayscale transition-transform duration-500 group-hover:scale-105 group-hover:grayscale-0"
|
|
229
|
+
/>
|
|
230
|
+
<AGalleryCoverImage
|
|
231
|
+
v-else-if="hero.meta?.coverUploadId"
|
|
232
|
+
:doc-id="hero.id"
|
|
233
|
+
:upload-id="hero.meta.coverUploadId"
|
|
234
|
+
:mime-type="hero.meta.coverMimeType"
|
|
235
|
+
:size="1600"
|
|
236
|
+
class="h-full w-full grayscale transition-transform duration-500 group-hover:scale-105 group-hover:grayscale-0"
|
|
237
|
+
/>
|
|
238
|
+
<div
|
|
239
|
+
v-else
|
|
240
|
+
class="flex h-full w-full items-center justify-center bg-linear-to-br from-zinc-200 to-zinc-400 dark:from-zinc-800 dark:to-zinc-950"
|
|
241
|
+
>
|
|
242
|
+
<UIcon
|
|
243
|
+
name="i-lucide-feather"
|
|
244
|
+
class="size-12 text-zinc-400/60 dark:text-zinc-600/70"
|
|
245
|
+
/>
|
|
246
|
+
</div>
|
|
247
|
+
<div class="absolute inset-0 bg-linear-to-t from-black/70 via-black/10 to-transparent" />
|
|
248
|
+
|
|
249
|
+
<div
|
|
250
|
+
v-if="hero.meta?.tags?.length"
|
|
251
|
+
class="absolute top-3 left-3 flex flex-wrap gap-1"
|
|
252
|
+
>
|
|
253
|
+
<span
|
|
254
|
+
v-for="t in hero.meta.tags.slice(0, 4)"
|
|
255
|
+
:key="t"
|
|
256
|
+
class="rounded bg-white/15 px-2 py-0.5 text-[10px] tracking-widest text-white/90 uppercase ring-1 ring-white/20 backdrop-blur-md"
|
|
257
|
+
>{{ t }}</span>
|
|
258
|
+
</div>
|
|
259
|
+
</div>
|
|
260
|
+
|
|
261
|
+
<div
|
|
262
|
+
class="border-t border-default bg-gradient-to-b from-white/75 to-white/55 px-5 py-6 backdrop-blur-xl sm:px-8 sm:py-8 dark:from-zinc-900/70 dark:to-zinc-900/55"
|
|
263
|
+
>
|
|
264
|
+
<!-- Owner: the date edits in place through the same chip
|
|
265
|
+
vocabulary as the editor's meta header. The wrapper stops the
|
|
266
|
+
card link navigating while the popover is open. -->
|
|
267
|
+
<div
|
|
268
|
+
v-if="editing"
|
|
269
|
+
class="mb-2"
|
|
270
|
+
@click.stop.prevent
|
|
271
|
+
@dragstart.stop.prevent
|
|
272
|
+
>
|
|
273
|
+
<AMetaChip
|
|
274
|
+
field-type="datetime"
|
|
275
|
+
label="Date"
|
|
276
|
+
:meta="hero.meta ?? {}"
|
|
277
|
+
meta-key="date"
|
|
278
|
+
@patch="tree.updateMeta(hero.id, $event)"
|
|
279
|
+
/>
|
|
280
|
+
</div>
|
|
281
|
+
<p
|
|
282
|
+
v-else
|
|
283
|
+
class="mb-2 text-[10px] font-medium tracking-[0.22em] text-dimmed uppercase"
|
|
284
|
+
>
|
|
285
|
+
{{ junDateLong(hero.meta?.date) || "Latest" }}
|
|
286
|
+
</p>
|
|
287
|
+
|
|
288
|
+
<h2 class="text-2xl leading-[1.1] font-semibold tracking-tight text-highlighted sm:text-3xl lg:text-4xl">
|
|
289
|
+
{{ hero.label }}
|
|
290
|
+
</h2>
|
|
291
|
+
<p
|
|
292
|
+
v-if="hero.meta?.excerpt"
|
|
293
|
+
class="mt-3 line-clamp-3 max-w-prose text-base text-muted italic sm:text-lg"
|
|
294
|
+
>
|
|
295
|
+
{{ hero.meta.excerpt }}
|
|
296
|
+
</p>
|
|
297
|
+
<span
|
|
298
|
+
class="mt-4 inline-flex items-center gap-1.5 text-sm font-medium text-highlighted decoration-1 underline-offset-4 group-hover:underline"
|
|
299
|
+
>
|
|
300
|
+
Read entry
|
|
301
|
+
<UIcon
|
|
302
|
+
name="i-lucide-arrow-right"
|
|
303
|
+
class="size-4 transition-transform duration-300 group-hover:translate-x-1"
|
|
304
|
+
/>
|
|
305
|
+
</span>
|
|
306
|
+
</div>
|
|
307
|
+
</NuxtLink>
|
|
308
|
+
</JunItemMenu>
|
|
309
|
+
|
|
310
|
+
<!-- The rest. Owner drafts lead, badged. -->
|
|
311
|
+
<section
|
|
312
|
+
v-if="rest.length"
|
|
313
|
+
class="grid grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-5 lg:grid-cols-3"
|
|
314
|
+
>
|
|
315
|
+
<JunItemMenu
|
|
316
|
+
v-for="(entry, i) in rest"
|
|
317
|
+
:key="entry.id"
|
|
318
|
+
:entry="entry"
|
|
319
|
+
:tree="tree"
|
|
320
|
+
no-open
|
|
321
|
+
>
|
|
322
|
+
<NuxtLink
|
|
323
|
+
v-motion="junMotion(junStagger(i + 1, { delayMs: 100 }))"
|
|
324
|
+
:to="getDocUrl(entry.id)"
|
|
325
|
+
:class="[
|
|
326
|
+
corners(i + 1),
|
|
327
|
+
'jun-card group relative block overflow-hidden',
|
|
328
|
+
'transition-all duration-300 hover:scale-[1.02] hover:shadow-xl',
|
|
329
|
+
dropTargetId === entry.id ? 'ring-2 ring-black/40 dark:ring-white/50' : '',
|
|
330
|
+
editing ? dragId === entry.id ? 'cursor-grabbing opacity-70' : 'cursor-grab' : ''
|
|
331
|
+
]"
|
|
332
|
+
:title="accentTitle(entry.id)"
|
|
333
|
+
:draggable="editing ? true : void 0"
|
|
334
|
+
@dragstart="onItemDragStart(entry, $event)"
|
|
335
|
+
@dragend="onItemDragEnd($event)"
|
|
336
|
+
@dragover="onCardDragOver(entry, $event)"
|
|
337
|
+
@dragleave="onCardDragLeave(entry)"
|
|
338
|
+
@drop="onCardDrop(entry, $event)"
|
|
339
|
+
>
|
|
340
|
+
<span
|
|
341
|
+
v-if="accentInsetStyle(entry.id)"
|
|
342
|
+
aria-hidden="true"
|
|
343
|
+
class="pointer-events-none absolute inset-0 z-10 rounded-[inherit] transition-opacity duration-700"
|
|
344
|
+
:style="accentInsetStyle(entry.id)"
|
|
345
|
+
/>
|
|
346
|
+
|
|
347
|
+
<div class="relative h-36 overflow-hidden">
|
|
348
|
+
<NuxtImg
|
|
349
|
+
v-if="entry.meta?.coverUrl"
|
|
350
|
+
:src="entry.meta.coverUrl"
|
|
351
|
+
:alt="entry.label"
|
|
352
|
+
class="h-full w-full object-cover grayscale transition-transform duration-500 group-hover:scale-105 group-hover:grayscale-0"
|
|
353
|
+
/>
|
|
354
|
+
<AGalleryCoverImage
|
|
355
|
+
v-else-if="entry.meta?.coverUploadId"
|
|
356
|
+
:doc-id="entry.id"
|
|
357
|
+
:upload-id="entry.meta.coverUploadId"
|
|
358
|
+
:mime-type="entry.meta.coverMimeType"
|
|
359
|
+
:size="800"
|
|
360
|
+
class="h-full w-full grayscale transition-transform duration-500 group-hover:scale-105 group-hover:grayscale-0"
|
|
361
|
+
/>
|
|
362
|
+
<div
|
|
363
|
+
v-else
|
|
364
|
+
class="flex h-full w-full items-center justify-center bg-linear-to-br from-zinc-200 to-zinc-300 dark:from-zinc-800 dark:to-zinc-950"
|
|
365
|
+
>
|
|
366
|
+
<UIcon
|
|
367
|
+
name="i-lucide-feather"
|
|
368
|
+
class="size-8 text-zinc-400/60 dark:text-zinc-600/70"
|
|
369
|
+
/>
|
|
370
|
+
</div>
|
|
371
|
+
</div>
|
|
372
|
+
|
|
373
|
+
<div class="border-t border-default px-4 py-3.5">
|
|
374
|
+
<div
|
|
375
|
+
v-if="editing"
|
|
376
|
+
class="mb-1.5"
|
|
377
|
+
@click.stop.prevent
|
|
378
|
+
@dragstart.stop.prevent
|
|
379
|
+
>
|
|
380
|
+
<AMetaChip
|
|
381
|
+
field-type="datetime"
|
|
382
|
+
label="Date"
|
|
383
|
+
:meta="entry.meta ?? {}"
|
|
384
|
+
meta-key="date"
|
|
385
|
+
@patch="tree.updateMeta(entry.id, $event)"
|
|
386
|
+
/>
|
|
387
|
+
</div>
|
|
388
|
+
<p
|
|
389
|
+
v-else
|
|
390
|
+
class="mb-1.5 text-[10px] font-medium tracking-[0.22em] text-dimmed uppercase"
|
|
391
|
+
>
|
|
392
|
+
{{ junDateShort(entry.meta?.date) }}
|
|
393
|
+
</p>
|
|
394
|
+
<h3 class="line-clamp-2 text-base leading-snug font-semibold tracking-tight text-highlighted sm:text-lg">
|
|
395
|
+
{{ entry.label }}
|
|
396
|
+
</h3>
|
|
397
|
+
<p
|
|
398
|
+
v-if="entry.meta?.excerpt"
|
|
399
|
+
class="mt-1.5 line-clamp-2 text-xs text-muted"
|
|
400
|
+
>
|
|
401
|
+
{{ entry.meta.excerpt }}
|
|
402
|
+
</p>
|
|
403
|
+
</div>
|
|
404
|
+
|
|
405
|
+
<span
|
|
406
|
+
v-if="entry.meta?.draft"
|
|
407
|
+
class="absolute top-3 right-3 z-10 inline-flex items-center gap-1 rounded bg-black/60 px-2 py-0.5 text-[10px] tracking-widest text-white/90 uppercase backdrop-blur-sm"
|
|
408
|
+
>
|
|
409
|
+
<UIcon
|
|
410
|
+
name="i-lucide-file-pen-line"
|
|
411
|
+
class="size-3"
|
|
412
|
+
/>
|
|
413
|
+
Draft
|
|
414
|
+
</span>
|
|
415
|
+
</NuxtLink>
|
|
416
|
+
</JunItemMenu>
|
|
417
|
+
</section>
|
|
418
|
+
</template>
|
|
419
|
+
</div>
|
|
420
|
+
</template>
|
|
@@ -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;
|