@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,429 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, onUnmounted, ref, watch } from "vue";
|
|
3
|
+
import {
|
|
4
|
+
junDateIso,
|
|
5
|
+
junDateLong,
|
|
6
|
+
junEditorBodyText,
|
|
7
|
+
junMotion,
|
|
8
|
+
useAbracadabra,
|
|
9
|
+
useChildTree,
|
|
10
|
+
useDocTree,
|
|
11
|
+
useJunImagePopup,
|
|
12
|
+
useJunRename,
|
|
13
|
+
useJunStudio,
|
|
14
|
+
useJunUpload
|
|
15
|
+
} from "#imports";
|
|
16
|
+
const props = defineProps({
|
|
17
|
+
docId: { type: String, required: true },
|
|
18
|
+
docLabel: { type: String, required: false },
|
|
19
|
+
docMeta: { type: Object, required: false },
|
|
20
|
+
childProvider: { type: null, required: false },
|
|
21
|
+
editable: { type: Boolean, required: false }
|
|
22
|
+
});
|
|
23
|
+
const abra = useAbracadabra();
|
|
24
|
+
const tree = useChildTree(abra.doc, props.docId);
|
|
25
|
+
const { getEntry } = useDocTree();
|
|
26
|
+
const { editing } = useJunStudio();
|
|
27
|
+
const { renameDoc } = useJunRename();
|
|
28
|
+
const { uploadTo, imageFiles } = useJunUpload();
|
|
29
|
+
const { openImagePopup } = useJunImagePopup();
|
|
30
|
+
const entry = computed(() => getEntry(props.docId));
|
|
31
|
+
const meta = computed(() => entry.value?.meta ?? props.docMeta ?? {});
|
|
32
|
+
const metaRecord = computed(() => meta.value);
|
|
33
|
+
const title = computed(() => entry.value?.label ?? props.docLabel ?? "Untitled");
|
|
34
|
+
function patchMeta(p) {
|
|
35
|
+
tree.updateMeta(props.docId, p);
|
|
36
|
+
}
|
|
37
|
+
const titleEl = ref(null);
|
|
38
|
+
function commitTitle() {
|
|
39
|
+
const t = titleEl.value?.textContent?.trim();
|
|
40
|
+
if (t && t !== title.value) renameDoc(props.docId, t);
|
|
41
|
+
else if (titleEl.value) titleEl.value.textContent = title.value;
|
|
42
|
+
}
|
|
43
|
+
function onTitleKeydown(e) {
|
|
44
|
+
if (e.key === "Enter") {
|
|
45
|
+
e.preventDefault();
|
|
46
|
+
e.target.blur();
|
|
47
|
+
} else if (e.key === "Escape") {
|
|
48
|
+
if (titleEl.value) titleEl.value.textContent = title.value;
|
|
49
|
+
e.target.blur();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
const EXCERPT_PLACEHOLDER = "Add an excerpt\u2026";
|
|
53
|
+
const excerptEl = ref(null);
|
|
54
|
+
function commitExcerpt() {
|
|
55
|
+
let v = excerptEl.value?.textContent?.trim() ?? "";
|
|
56
|
+
if (v === EXCERPT_PLACEHOLDER) v = "";
|
|
57
|
+
if (v === (meta.value.excerpt ?? "")) return;
|
|
58
|
+
patchMeta({ excerpt: v || void 0 });
|
|
59
|
+
}
|
|
60
|
+
function onExcerptFocus() {
|
|
61
|
+
if (meta.value.excerpt || !excerptEl.value) return;
|
|
62
|
+
const range = document.createRange();
|
|
63
|
+
range.selectNodeContents(excerptEl.value);
|
|
64
|
+
const sel = window.getSelection();
|
|
65
|
+
sel?.removeAllRanges();
|
|
66
|
+
sel?.addRange(range);
|
|
67
|
+
}
|
|
68
|
+
function onTagsPatch(p) {
|
|
69
|
+
const raw = p.tags;
|
|
70
|
+
const tags = typeof raw === "string" ? raw.split(",").map((t) => t.trim()).filter(Boolean) : void 0;
|
|
71
|
+
patchMeta({ tags: tags?.length ? tags : void 0 });
|
|
72
|
+
}
|
|
73
|
+
const isDraft = computed(() => !!meta.value.draft);
|
|
74
|
+
function publish() {
|
|
75
|
+
patchMeta({
|
|
76
|
+
draft: void 0,
|
|
77
|
+
publishAt: void 0,
|
|
78
|
+
// Respect a backdated chip rather than stamping over it.
|
|
79
|
+
date: meta.value.date ?? (/* @__PURE__ */ new Date()).toISOString()
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
const publishAtMs = computed(() => {
|
|
83
|
+
const v = meta.value.publishAt;
|
|
84
|
+
const t = typeof v === "string" ? Date.parse(v) : typeof v === "number" ? v : Number.NaN;
|
|
85
|
+
return Number.isFinite(t) ? t : null;
|
|
86
|
+
});
|
|
87
|
+
const scheduleInput = ref("");
|
|
88
|
+
function schedule(close) {
|
|
89
|
+
const t = Date.parse(scheduleInput.value);
|
|
90
|
+
if (!Number.isFinite(t)) return;
|
|
91
|
+
patchMeta({ publishAt: new Date(t).toISOString() });
|
|
92
|
+
close?.();
|
|
93
|
+
}
|
|
94
|
+
function cancelSchedule() {
|
|
95
|
+
patchMeta({ publishAt: void 0 });
|
|
96
|
+
}
|
|
97
|
+
const schedNow = ref(Date.now());
|
|
98
|
+
let schedTick = null;
|
|
99
|
+
watch(publishAtMs, (at) => {
|
|
100
|
+
if (at && !schedTick) {
|
|
101
|
+
schedTick = setInterval(() => {
|
|
102
|
+
schedNow.value = Date.now();
|
|
103
|
+
}, 6e4);
|
|
104
|
+
} else if (!at && schedTick) {
|
|
105
|
+
clearInterval(schedTick);
|
|
106
|
+
schedTick = null;
|
|
107
|
+
}
|
|
108
|
+
}, { immediate: true });
|
|
109
|
+
onUnmounted(() => {
|
|
110
|
+
if (schedTick) clearInterval(schedTick);
|
|
111
|
+
});
|
|
112
|
+
const scheduleLabel = computed(() => {
|
|
113
|
+
if (!publishAtMs.value) return "";
|
|
114
|
+
const diff = publishAtMs.value - schedNow.value;
|
|
115
|
+
if (diff <= 0) return "any minute now";
|
|
116
|
+
const min = Math.round(diff / 6e4);
|
|
117
|
+
if (min < 60) return `in ${min} min`;
|
|
118
|
+
const h = Math.round(min / 60);
|
|
119
|
+
if (h < 48) return `in ${h}h`;
|
|
120
|
+
return `on ${new Date(publishAtMs.value).toLocaleDateString()}`;
|
|
121
|
+
});
|
|
122
|
+
const bodyEditor = ref(null);
|
|
123
|
+
const readingMin = ref(0);
|
|
124
|
+
function recalcReadingTime() {
|
|
125
|
+
const words = junEditorBodyText(bodyEditor.value?.editor).split(/\s+/).filter(Boolean).length;
|
|
126
|
+
readingMin.value = words ? Math.max(1, Math.round(words / 200)) : 0;
|
|
127
|
+
}
|
|
128
|
+
const coverInput = ref(null);
|
|
129
|
+
const coverDropActive = ref(false);
|
|
130
|
+
const uploadingCover = ref(false);
|
|
131
|
+
function openCover(e) {
|
|
132
|
+
if (e.target?.closest("button")) return;
|
|
133
|
+
const m = meta.value;
|
|
134
|
+
const item = m.coverUploadId ? { docId: props.docId, uploadId: m.coverUploadId, mime: m.coverMimeType, alt: title.value } : m.coverUrl ? { url: m.coverUrl, alt: title.value } : null;
|
|
135
|
+
if (item) openImagePopup(e, [item]);
|
|
136
|
+
}
|
|
137
|
+
async function setCover(file) {
|
|
138
|
+
if (uploadingCover.value) return;
|
|
139
|
+
uploadingCover.value = true;
|
|
140
|
+
try {
|
|
141
|
+
const res = await uploadTo(props.docId, file);
|
|
142
|
+
if (res) {
|
|
143
|
+
patchMeta({
|
|
144
|
+
coverUploadId: res.id,
|
|
145
|
+
coverMimeType: res.mimeType,
|
|
146
|
+
// An uploaded cover supersedes any legacy URL one.
|
|
147
|
+
coverUrl: void 0
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
} finally {
|
|
151
|
+
uploadingCover.value = false;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
function onCoverPicked(e) {
|
|
155
|
+
const input = e.target;
|
|
156
|
+
const file = input.files?.[0];
|
|
157
|
+
if (file?.type.startsWith("image/")) void setCover(file);
|
|
158
|
+
input.value = "";
|
|
159
|
+
}
|
|
160
|
+
function onCoverDragOver(e) {
|
|
161
|
+
if (!editing.value || !e.dataTransfer?.types.includes("Files")) return;
|
|
162
|
+
e.preventDefault();
|
|
163
|
+
e.dataTransfer.dropEffect = "copy";
|
|
164
|
+
coverDropActive.value = true;
|
|
165
|
+
}
|
|
166
|
+
function onCoverDrop(e) {
|
|
167
|
+
if (!editing.value) return;
|
|
168
|
+
e.preventDefault();
|
|
169
|
+
coverDropActive.value = false;
|
|
170
|
+
const img = imageFiles(e.dataTransfer)[0];
|
|
171
|
+
if (img) void setCover(img);
|
|
172
|
+
}
|
|
173
|
+
function removeCover() {
|
|
174
|
+
patchMeta({ coverUploadId: void 0, coverMimeType: void 0, coverUrl: void 0 });
|
|
175
|
+
}
|
|
176
|
+
</script>
|
|
177
|
+
|
|
178
|
+
<template>
|
|
179
|
+
<article class="mx-auto w-full max-w-3xl px-4 pt-8 pb-20 sm:px-6">
|
|
180
|
+
<header
|
|
181
|
+
v-motion="junMotion({
|
|
182
|
+
initial: { opacity: 0, y: 16 },
|
|
183
|
+
enter: { opacity: 1, y: 0, transition: { duration: 500 } }
|
|
184
|
+
})"
|
|
185
|
+
>
|
|
186
|
+
<!-- Owner: draft state and typed chips. Visitors: the plain date line. -->
|
|
187
|
+
<div
|
|
188
|
+
v-if="editing"
|
|
189
|
+
class="mb-3 flex flex-wrap items-center gap-1.5"
|
|
190
|
+
>
|
|
191
|
+
<UBadge
|
|
192
|
+
v-if="isDraft"
|
|
193
|
+
color="neutral"
|
|
194
|
+
variant="soft"
|
|
195
|
+
icon="i-lucide-file-pen-line"
|
|
196
|
+
label="Draft"
|
|
197
|
+
/>
|
|
198
|
+
<AMetaChip
|
|
199
|
+
field-type="date"
|
|
200
|
+
label="Date"
|
|
201
|
+
:meta="metaRecord"
|
|
202
|
+
meta-key="date"
|
|
203
|
+
@patch="patchMeta"
|
|
204
|
+
/>
|
|
205
|
+
<AMetaChip
|
|
206
|
+
field-type="text"
|
|
207
|
+
label="Tags (comma-separated)"
|
|
208
|
+
icon="i-lucide-tags"
|
|
209
|
+
:meta="metaRecord"
|
|
210
|
+
meta-key="tags"
|
|
211
|
+
@patch="onTagsPatch"
|
|
212
|
+
/>
|
|
213
|
+
|
|
214
|
+
<div class="flex-1" />
|
|
215
|
+
|
|
216
|
+
<template v-if="isDraft">
|
|
217
|
+
<UBadge
|
|
218
|
+
v-if="publishAtMs"
|
|
219
|
+
color="neutral"
|
|
220
|
+
variant="soft"
|
|
221
|
+
icon="i-lucide-clock"
|
|
222
|
+
:label="`Publishes ${scheduleLabel}`"
|
|
223
|
+
/>
|
|
224
|
+
<UButton
|
|
225
|
+
v-if="publishAtMs"
|
|
226
|
+
icon="i-lucide-x"
|
|
227
|
+
size="xs"
|
|
228
|
+
color="neutral"
|
|
229
|
+
variant="ghost"
|
|
230
|
+
aria-label="Cancel schedule"
|
|
231
|
+
@click="cancelSchedule"
|
|
232
|
+
/>
|
|
233
|
+
<UPopover v-else>
|
|
234
|
+
<UButton
|
|
235
|
+
icon="i-lucide-clock"
|
|
236
|
+
size="xs"
|
|
237
|
+
color="neutral"
|
|
238
|
+
variant="soft"
|
|
239
|
+
label="Schedule"
|
|
240
|
+
/>
|
|
241
|
+
<template #content="{ close }">
|
|
242
|
+
<div class="w-60 space-y-2 p-3">
|
|
243
|
+
<p class="text-[11px] text-muted">
|
|
244
|
+
Publishes itself server-side — no tab needed.
|
|
245
|
+
</p>
|
|
246
|
+
<UInput
|
|
247
|
+
v-model="scheduleInput"
|
|
248
|
+
type="datetime-local"
|
|
249
|
+
size="sm"
|
|
250
|
+
class="w-full"
|
|
251
|
+
/>
|
|
252
|
+
<UButton
|
|
253
|
+
size="xs"
|
|
254
|
+
color="neutral"
|
|
255
|
+
icon="i-lucide-clock"
|
|
256
|
+
label="Schedule publish"
|
|
257
|
+
:disabled="!scheduleInput"
|
|
258
|
+
@click="schedule(close)"
|
|
259
|
+
/>
|
|
260
|
+
</div>
|
|
261
|
+
</template>
|
|
262
|
+
</UPopover>
|
|
263
|
+
<UButton
|
|
264
|
+
label="Publish"
|
|
265
|
+
icon="i-lucide-send"
|
|
266
|
+
size="xs"
|
|
267
|
+
color="neutral"
|
|
268
|
+
@click="publish"
|
|
269
|
+
/>
|
|
270
|
+
</template>
|
|
271
|
+
</div>
|
|
272
|
+
<p
|
|
273
|
+
v-else-if="meta.date || readingMin"
|
|
274
|
+
class="mb-3 text-[10px] font-medium tracking-[0.22em] text-dimmed uppercase"
|
|
275
|
+
>
|
|
276
|
+
<time
|
|
277
|
+
v-if="meta.date"
|
|
278
|
+
:datetime="junDateIso(meta.date)"
|
|
279
|
+
>{{ junDateLong(meta.date) }}</time>
|
|
280
|
+
<template v-if="readingMin">
|
|
281
|
+
<span v-if="meta.date"> · </span>{{ readingMin }} min read
|
|
282
|
+
</template>
|
|
283
|
+
</p>
|
|
284
|
+
|
|
285
|
+
<h1
|
|
286
|
+
ref="titleEl"
|
|
287
|
+
:contenteditable="editing ? 'plaintext-only' : void 0"
|
|
288
|
+
spellcheck="false"
|
|
289
|
+
class="text-3xl leading-[1.1] font-semibold tracking-tight text-highlighted outline-none sm:text-4xl lg:text-5xl"
|
|
290
|
+
:class="editing ? 'cursor-text rounded-md px-1 -mx-1 transition-shadow hover:ring-1 hover:ring-black/15 focus:ring-1 focus:ring-black/25 dark:hover:ring-white/20 dark:focus:ring-white/30' : ''"
|
|
291
|
+
@blur="editing && commitTitle()"
|
|
292
|
+
@keydown="editing && onTitleKeydown($event)"
|
|
293
|
+
>
|
|
294
|
+
{{ title }}
|
|
295
|
+
</h1>
|
|
296
|
+
|
|
297
|
+
<p
|
|
298
|
+
v-if="meta.excerpt || editing"
|
|
299
|
+
ref="excerptEl"
|
|
300
|
+
:contenteditable="editing ? 'plaintext-only' : void 0"
|
|
301
|
+
spellcheck="false"
|
|
302
|
+
class="mt-4 max-w-prose text-lg leading-relaxed text-muted italic outline-none sm:text-xl"
|
|
303
|
+
:class="[
|
|
304
|
+
editing ? 'cursor-text rounded-md px-1 -mx-1 transition-shadow hover:ring-1 hover:ring-black/15 focus:ring-1 focus:ring-black/25 dark:hover:ring-white/20 dark:focus:ring-white/30' : '',
|
|
305
|
+
!meta.excerpt ? 'text-dimmed' : ''
|
|
306
|
+
]"
|
|
307
|
+
@focus="editing && onExcerptFocus()"
|
|
308
|
+
@blur="editing && commitExcerpt()"
|
|
309
|
+
>{{ meta.excerpt ?? EXCERPT_PLACEHOLDER }}</p>
|
|
310
|
+
|
|
311
|
+
<div
|
|
312
|
+
v-if="meta.tags?.length"
|
|
313
|
+
class="mt-4 flex flex-wrap items-center gap-1.5"
|
|
314
|
+
>
|
|
315
|
+
<span
|
|
316
|
+
v-for="t in meta.tags"
|
|
317
|
+
:key="t"
|
|
318
|
+
class="rounded bg-black/5 px-2 py-0.5 text-[10px] tracking-widest text-muted uppercase ring-1 ring-black/5 dark:bg-white/10 dark:ring-white/10"
|
|
319
|
+
>{{ t }}</span>
|
|
320
|
+
</div>
|
|
321
|
+
|
|
322
|
+
<!-- Appreciate — one per visitor, written by the RPC runner. -->
|
|
323
|
+
<ClientOnly>
|
|
324
|
+
<div class="mt-4 -ml-2.5">
|
|
325
|
+
<JunAppreciate :doc-id="docId" />
|
|
326
|
+
</div>
|
|
327
|
+
</ClientOnly>
|
|
328
|
+
</header>
|
|
329
|
+
|
|
330
|
+
<!-- Cover -->
|
|
331
|
+
<div
|
|
332
|
+
v-if="meta.coverUrl || meta.coverUploadId"
|
|
333
|
+
class="group/cover relative mt-7 cursor-zoom-in overflow-hidden rounded-xl shadow-lg shadow-black/15 ring-1 ring-zinc-200/70 dark:ring-white/10"
|
|
334
|
+
:class="coverDropActive ? 'ring-2 ring-black/40 dark:ring-white/50' : ''"
|
|
335
|
+
@dragover="onCoverDragOver"
|
|
336
|
+
@dragleave="coverDropActive = false"
|
|
337
|
+
@drop="onCoverDrop"
|
|
338
|
+
@click="openCover"
|
|
339
|
+
>
|
|
340
|
+
<NuxtImg
|
|
341
|
+
v-if="meta.coverUrl"
|
|
342
|
+
:src="meta.coverUrl"
|
|
343
|
+
:alt="title"
|
|
344
|
+
class="max-h-[28rem] w-full object-cover"
|
|
345
|
+
/>
|
|
346
|
+
<AGalleryCoverImage
|
|
347
|
+
v-else-if="meta.coverUploadId"
|
|
348
|
+
:doc-id="docId"
|
|
349
|
+
:upload-id="meta.coverUploadId"
|
|
350
|
+
:mime-type="meta.coverMimeType"
|
|
351
|
+
:size="1600"
|
|
352
|
+
class="max-h-[28rem] w-full"
|
|
353
|
+
/>
|
|
354
|
+
|
|
355
|
+
<div
|
|
356
|
+
v-if="editing"
|
|
357
|
+
class="absolute top-2 right-2 flex gap-1 opacity-0 transition-opacity group-hover/cover:opacity-100"
|
|
358
|
+
>
|
|
359
|
+
<UButton
|
|
360
|
+
icon="i-lucide-image-up"
|
|
361
|
+
size="xs"
|
|
362
|
+
color="neutral"
|
|
363
|
+
variant="solid"
|
|
364
|
+
:loading="uploadingCover"
|
|
365
|
+
label="Replace"
|
|
366
|
+
@click="coverInput?.click()"
|
|
367
|
+
/>
|
|
368
|
+
<UButton
|
|
369
|
+
icon="i-lucide-x"
|
|
370
|
+
size="xs"
|
|
371
|
+
color="neutral"
|
|
372
|
+
variant="solid"
|
|
373
|
+
aria-label="Remove cover"
|
|
374
|
+
@click="removeCover"
|
|
375
|
+
/>
|
|
376
|
+
</div>
|
|
377
|
+
</div>
|
|
378
|
+
|
|
379
|
+
<!-- Owner: add a cover when there is none -->
|
|
380
|
+
<button
|
|
381
|
+
v-else-if="editing"
|
|
382
|
+
type="button"
|
|
383
|
+
class="mt-7 flex h-28 w-full flex-col items-center justify-center gap-1.5 rounded-xl border border-dashed border-default text-dimmed transition-colors hover:bg-black/5 hover:text-default dark:hover:bg-white/5"
|
|
384
|
+
:class="coverDropActive ? 'ring-2 ring-black/40 dark:ring-white/50' : ''"
|
|
385
|
+
@dragover="onCoverDragOver"
|
|
386
|
+
@dragleave="coverDropActive = false"
|
|
387
|
+
@drop="onCoverDrop"
|
|
388
|
+
@click="coverInput?.click()"
|
|
389
|
+
>
|
|
390
|
+
<UIcon
|
|
391
|
+
name="i-lucide-image-plus"
|
|
392
|
+
class="size-5"
|
|
393
|
+
/>
|
|
394
|
+
<span class="text-xs">Add a cover — click or drop an image</span>
|
|
395
|
+
</button>
|
|
396
|
+
<input
|
|
397
|
+
ref="coverInput"
|
|
398
|
+
type="file"
|
|
399
|
+
accept="image/*"
|
|
400
|
+
class="hidden"
|
|
401
|
+
@change="onCoverPicked"
|
|
402
|
+
>
|
|
403
|
+
|
|
404
|
+
<hr class="my-8 border-default">
|
|
405
|
+
|
|
406
|
+
<!-- The entry's own prose. Read-only for visitors; the owner gets the full
|
|
407
|
+
editor — toolbar, slash menu, drag handles — while editing. -->
|
|
408
|
+
<div class="jun-entry-body">
|
|
409
|
+
<AEditor
|
|
410
|
+
ref="bodyEditor"
|
|
411
|
+
:doc-id="docId"
|
|
412
|
+
:doc-label="title"
|
|
413
|
+
:doc-meta="meta"
|
|
414
|
+
:editable="editing"
|
|
415
|
+
:show-toolbar="editing"
|
|
416
|
+
:show-suggestion-menu="editing"
|
|
417
|
+
:show-drag-handle="editing"
|
|
418
|
+
:show-breadcrumb="false"
|
|
419
|
+
placeholder="Nothing written yet."
|
|
420
|
+
@ready="recalcReadingTime"
|
|
421
|
+
@update="recalcReadingTime"
|
|
422
|
+
/>
|
|
423
|
+
</div>
|
|
424
|
+
</article>
|
|
425
|
+
</template>
|
|
426
|
+
|
|
427
|
+
<style scoped>
|
|
428
|
+
.jun-entry-body :deep(.document-header){display:none}.jun-entry-body :deep([data-meta-key=date]),.jun-entry-body :deep([data-meta-key=excerpt]),.jun-entry-body :deep([data-meta-key=tags]){display:none}.jun-entry-body :deep(.ProseMirror),.jun-entry-body :deep(.aeditor-canvas){padding:0}
|
|
429
|
+
</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;
|