@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,380 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, ref, watch } from "vue";
|
|
3
|
+
import {
|
|
4
|
+
junFormatTime,
|
|
5
|
+
junMotion,
|
|
6
|
+
junStagger,
|
|
7
|
+
useAbracadabra,
|
|
8
|
+
useChildTree,
|
|
9
|
+
useDocSlugs,
|
|
10
|
+
useDocTree,
|
|
11
|
+
useFileBlobStore,
|
|
12
|
+
useJunMediaImport,
|
|
13
|
+
useJunPlayer,
|
|
14
|
+
useJunRename,
|
|
15
|
+
useJunStudio,
|
|
16
|
+
useJunUpload
|
|
17
|
+
} from "#imports";
|
|
18
|
+
const props = defineProps({
|
|
19
|
+
docId: { type: String, required: true },
|
|
20
|
+
docLabel: { type: String, required: false },
|
|
21
|
+
docMeta: { type: Object, required: false },
|
|
22
|
+
childProvider: { type: null, required: false },
|
|
23
|
+
editable: { type: Boolean, required: false }
|
|
24
|
+
});
|
|
25
|
+
const abra = useAbracadabra();
|
|
26
|
+
const tree = useChildTree(abra.doc, props.docId);
|
|
27
|
+
const { entries, getEntry } = useDocTree();
|
|
28
|
+
const { getDocUrl } = useDocSlugs();
|
|
29
|
+
const { editing } = useJunStudio();
|
|
30
|
+
const { renameDoc } = useJunRename();
|
|
31
|
+
const { uploadTo, imageFiles } = useJunUpload();
|
|
32
|
+
const { audioFiles } = useJunMediaImport();
|
|
33
|
+
const { getThumbUrl } = useFileBlobStore();
|
|
34
|
+
const player = useJunPlayer();
|
|
35
|
+
const entry = computed(() => getEntry(props.docId));
|
|
36
|
+
const meta = computed(() => entry.value?.meta ?? props.docMeta ?? {});
|
|
37
|
+
const metaRecord = computed(() => meta.value);
|
|
38
|
+
const title = computed(() => entry.value?.label ?? props.docLabel ?? "Track");
|
|
39
|
+
function patchMeta(p) {
|
|
40
|
+
tree.updateMeta(props.docId, p);
|
|
41
|
+
}
|
|
42
|
+
const titleEl = ref(null);
|
|
43
|
+
function commitTitle() {
|
|
44
|
+
const t = titleEl.value?.textContent?.trim();
|
|
45
|
+
if (t && t !== title.value) renameDoc(props.docId, t);
|
|
46
|
+
else if (titleEl.value) titleEl.value.textContent = title.value;
|
|
47
|
+
}
|
|
48
|
+
function onTitleKeydown(e) {
|
|
49
|
+
if (e.key === "Enter") {
|
|
50
|
+
e.preventDefault();
|
|
51
|
+
e.target.blur();
|
|
52
|
+
} else if (e.key === "Escape") {
|
|
53
|
+
if (titleEl.value) titleEl.value.textContent = title.value;
|
|
54
|
+
e.target.blur();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
const artwork = ref("");
|
|
58
|
+
watch(
|
|
59
|
+
() => [props.docId, meta.value.coverUploadId],
|
|
60
|
+
async ([docId, cover]) => {
|
|
61
|
+
artwork.value = cover ? await getThumbUrl(docId, cover, { w: 512 }) ?? "" : "";
|
|
62
|
+
},
|
|
63
|
+
{ immediate: true }
|
|
64
|
+
);
|
|
65
|
+
const artInput = ref(null);
|
|
66
|
+
async function onArtPicked(e) {
|
|
67
|
+
const file = e.target.files?.[0];
|
|
68
|
+
e.target.value = "";
|
|
69
|
+
if (!file) return;
|
|
70
|
+
const res = await uploadTo(props.docId, file);
|
|
71
|
+
if (res) patchMeta({ coverUploadId: res.id, coverMimeType: res.mimeType });
|
|
72
|
+
}
|
|
73
|
+
const audioInput = ref(null);
|
|
74
|
+
const attaching = ref(false);
|
|
75
|
+
const audioDrop = ref(false);
|
|
76
|
+
async function setAudio(file) {
|
|
77
|
+
attaching.value = true;
|
|
78
|
+
try {
|
|
79
|
+
const res = await uploadTo(props.docId, file);
|
|
80
|
+
if (res) patchMeta({ mediaUploadId: res.id, mediaMimeType: res.mimeType, mediaDuration: void 0 });
|
|
81
|
+
} finally {
|
|
82
|
+
attaching.value = false;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
async function onAudioPicked(e) {
|
|
86
|
+
const input = e.target;
|
|
87
|
+
const file = input.files?.[0];
|
|
88
|
+
input.value = "";
|
|
89
|
+
if (file) await setAudio(file);
|
|
90
|
+
}
|
|
91
|
+
function onPageDragOver(e) {
|
|
92
|
+
if (!editing.value || !e.dataTransfer?.types.includes("Files")) return;
|
|
93
|
+
e.preventDefault();
|
|
94
|
+
e.dataTransfer.dropEffect = "copy";
|
|
95
|
+
audioDrop.value = true;
|
|
96
|
+
}
|
|
97
|
+
function onPageDragLeave(e) {
|
|
98
|
+
const related = e.relatedTarget;
|
|
99
|
+
if (related && e.currentTarget.contains(related)) return;
|
|
100
|
+
audioDrop.value = false;
|
|
101
|
+
}
|
|
102
|
+
async function onPageDrop(e) {
|
|
103
|
+
if (!editing.value) return;
|
|
104
|
+
const audio = audioFiles(e.dataTransfer)[0];
|
|
105
|
+
const img = imageFiles(e.dataTransfer)[0];
|
|
106
|
+
if (!audio && !img) return;
|
|
107
|
+
e.preventDefault();
|
|
108
|
+
audioDrop.value = false;
|
|
109
|
+
if (audio) await setAudio(audio);
|
|
110
|
+
if (img) {
|
|
111
|
+
const res = await uploadTo(props.docId, img);
|
|
112
|
+
if (res) patchMeta({ coverUploadId: res.id, coverMimeType: res.mimeType });
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
const parentId = computed(() => entry.value?.parentId ?? null);
|
|
116
|
+
const siblingEntries = computed(() => {
|
|
117
|
+
const parent = parentId.value;
|
|
118
|
+
if (!parent) return [];
|
|
119
|
+
return entries.value.filter(
|
|
120
|
+
(e) => e.parentId === parent && e.id !== parent && !!e.label
|
|
121
|
+
).sort((a, b) => (a.order ?? 0) - (b.order ?? 0));
|
|
122
|
+
});
|
|
123
|
+
const queue = computed(() => {
|
|
124
|
+
const stage = meta.value.stage;
|
|
125
|
+
const pool = siblingEntries.value.filter((s) => (s.meta?.stage ?? void 0) === stage);
|
|
126
|
+
const list = pool.length ? pool : [{ id: props.docId, label: title.value, meta: meta.value }];
|
|
127
|
+
return list.filter((s) => s.meta?.mediaUploadId || s.meta?.audioUrl).map((s) => ({
|
|
128
|
+
id: s.id,
|
|
129
|
+
label: s.label,
|
|
130
|
+
artist: s.meta?.mediaArtist,
|
|
131
|
+
album: s.meta?.mediaAlbum,
|
|
132
|
+
duration: s.meta?.mediaDuration,
|
|
133
|
+
uploadId: s.meta?.mediaUploadId,
|
|
134
|
+
mimeType: s.meta?.mediaMimeType,
|
|
135
|
+
url: s.meta?.audioUrl,
|
|
136
|
+
coverUploadId: s.meta?.coverUploadId,
|
|
137
|
+
coverMimeType: s.meta?.coverMimeType,
|
|
138
|
+
href: getDocUrl(s.id),
|
|
139
|
+
stage: s.meta?.stage
|
|
140
|
+
}));
|
|
141
|
+
});
|
|
142
|
+
const playable = computed(() => !!(meta.value.mediaUploadId || meta.value.audioUrl));
|
|
143
|
+
const isCurrent = computed(() => player.isCurrent(props.docId));
|
|
144
|
+
function play() {
|
|
145
|
+
if (!playable.value) return;
|
|
146
|
+
const at = queue.value.findIndex((t) => t.id === props.docId);
|
|
147
|
+
player.playQueue(queue.value, at < 0 ? 0 : at);
|
|
148
|
+
}
|
|
149
|
+
const upNext = computed(() => {
|
|
150
|
+
const at = queue.value.findIndex((t) => t.id === props.docId);
|
|
151
|
+
return at < 0 ? queue.value.slice(0, 5) : queue.value.slice(at + 1, at + 6);
|
|
152
|
+
});
|
|
153
|
+
const factLine = computed(
|
|
154
|
+
() => [
|
|
155
|
+
meta.value.mediaArtist,
|
|
156
|
+
meta.value.mediaAlbum,
|
|
157
|
+
meta.value.mediaDuration ? junFormatTime(meta.value.mediaDuration) : "",
|
|
158
|
+
meta.value.stage
|
|
159
|
+
].filter(Boolean).join(" \xB7 ")
|
|
160
|
+
);
|
|
161
|
+
</script>
|
|
162
|
+
|
|
163
|
+
<template>
|
|
164
|
+
<div
|
|
165
|
+
class="relative mx-auto w-full max-w-3xl rounded-xl px-4 pt-12 pb-16 transition-shadow duration-200 sm:px-8"
|
|
166
|
+
:class="audioDrop ? 'ring-2 ring-inset ring-black/20 dark:ring-white/25' : ''"
|
|
167
|
+
@dragover="onPageDragOver"
|
|
168
|
+
@dragleave="onPageDragLeave"
|
|
169
|
+
@drop="onPageDrop"
|
|
170
|
+
>
|
|
171
|
+
<div
|
|
172
|
+
v-motion="junMotion(junStagger(0, { delayMs: 0 }))"
|
|
173
|
+
class="flex flex-col gap-6 sm:flex-row sm:items-end"
|
|
174
|
+
>
|
|
175
|
+
<div class="group relative aspect-square w-full max-w-56 shrink-0 overflow-hidden rounded-2xl bg-black/5 shadow-xl ring-1 ring-black/5 dark:bg-white/10 dark:ring-white/10">
|
|
176
|
+
<img
|
|
177
|
+
v-if="artwork"
|
|
178
|
+
:src="artwork"
|
|
179
|
+
:alt="title"
|
|
180
|
+
class="h-full w-full object-cover"
|
|
181
|
+
>
|
|
182
|
+
<div
|
|
183
|
+
v-else
|
|
184
|
+
class="flex h-full w-full items-center justify-center"
|
|
185
|
+
>
|
|
186
|
+
<UIcon
|
|
187
|
+
name="i-lucide-music-2"
|
|
188
|
+
class="size-10 text-dimmed"
|
|
189
|
+
/>
|
|
190
|
+
</div>
|
|
191
|
+
|
|
192
|
+
<button
|
|
193
|
+
v-if="editing"
|
|
194
|
+
type="button"
|
|
195
|
+
class="absolute inset-0 flex cursor-pointer items-center justify-center bg-black/45 text-white opacity-0 transition-opacity group-hover:opacity-100"
|
|
196
|
+
aria-label="Change artwork"
|
|
197
|
+
@click="artInput?.click()"
|
|
198
|
+
>
|
|
199
|
+
<UIcon
|
|
200
|
+
name="i-lucide-image-up"
|
|
201
|
+
class="size-6"
|
|
202
|
+
/>
|
|
203
|
+
</button>
|
|
204
|
+
<input
|
|
205
|
+
ref="artInput"
|
|
206
|
+
type="file"
|
|
207
|
+
accept="image/*"
|
|
208
|
+
class="hidden"
|
|
209
|
+
@change="onArtPicked"
|
|
210
|
+
>
|
|
211
|
+
</div>
|
|
212
|
+
|
|
213
|
+
<div class="min-w-0 flex-1">
|
|
214
|
+
<p class="text-xs tracking-[0.22em] text-dimmed uppercase">
|
|
215
|
+
Track
|
|
216
|
+
</p>
|
|
217
|
+
<h1
|
|
218
|
+
ref="titleEl"
|
|
219
|
+
:contenteditable="editing ? 'plaintext-only' : void 0"
|
|
220
|
+
spellcheck="false"
|
|
221
|
+
class="mt-1 text-3xl leading-tight font-semibold tracking-tight text-highlighted outline-none sm:text-4xl"
|
|
222
|
+
: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' : ''"
|
|
223
|
+
@blur="editing && commitTitle()"
|
|
224
|
+
@keydown="editing && onTitleKeydown($event)"
|
|
225
|
+
>
|
|
226
|
+
{{ title }}
|
|
227
|
+
</h1>
|
|
228
|
+
<p
|
|
229
|
+
v-if="factLine"
|
|
230
|
+
class="mt-2 text-sm text-muted"
|
|
231
|
+
>
|
|
232
|
+
{{ factLine }}
|
|
233
|
+
</p>
|
|
234
|
+
|
|
235
|
+
<div class="mt-4 flex flex-wrap items-center gap-2">
|
|
236
|
+
<UButton
|
|
237
|
+
:icon="isCurrent && player.playing.value ? 'i-lucide-pause' : 'i-lucide-play'"
|
|
238
|
+
size="sm"
|
|
239
|
+
color="neutral"
|
|
240
|
+
variant="soft"
|
|
241
|
+
:label="isCurrent && player.playing.value ? 'Pause' : 'Play'"
|
|
242
|
+
:disabled="!playable"
|
|
243
|
+
@click="play"
|
|
244
|
+
/>
|
|
245
|
+
<UButton
|
|
246
|
+
v-if="playable"
|
|
247
|
+
icon="i-lucide-list-plus"
|
|
248
|
+
size="sm"
|
|
249
|
+
color="neutral"
|
|
250
|
+
variant="ghost"
|
|
251
|
+
label="Queue"
|
|
252
|
+
@click="player.enqueue(queue.find((t2) => t2.id === docId) ?? queue[0])"
|
|
253
|
+
/>
|
|
254
|
+
<UButton
|
|
255
|
+
v-if="meta.url"
|
|
256
|
+
:to="meta.url"
|
|
257
|
+
target="_blank"
|
|
258
|
+
icon="i-lucide-arrow-up-right"
|
|
259
|
+
size="sm"
|
|
260
|
+
color="neutral"
|
|
261
|
+
variant="ghost"
|
|
262
|
+
label="Listen elsewhere"
|
|
263
|
+
/>
|
|
264
|
+
<UButton
|
|
265
|
+
v-if="editing"
|
|
266
|
+
icon="i-lucide-music-4"
|
|
267
|
+
size="sm"
|
|
268
|
+
color="neutral"
|
|
269
|
+
:variant="playable ? 'ghost' : 'soft'"
|
|
270
|
+
:loading="attaching"
|
|
271
|
+
:label="playable ? 'Replace audio' : 'Add audio'"
|
|
272
|
+
@click="audioInput?.click()"
|
|
273
|
+
/>
|
|
274
|
+
<input
|
|
275
|
+
ref="audioInput"
|
|
276
|
+
type="file"
|
|
277
|
+
accept="audio/*"
|
|
278
|
+
class="hidden"
|
|
279
|
+
@change="onAudioPicked"
|
|
280
|
+
>
|
|
281
|
+
<span
|
|
282
|
+
v-if="!playable"
|
|
283
|
+
class="text-xs text-dimmed"
|
|
284
|
+
>
|
|
285
|
+
{{ editing ? "No audio yet \u2014 drop a file anywhere on this page." : "No audio attached yet." }}
|
|
286
|
+
</span>
|
|
287
|
+
</div>
|
|
288
|
+
</div>
|
|
289
|
+
</div>
|
|
290
|
+
|
|
291
|
+
<div
|
|
292
|
+
v-if="editing"
|
|
293
|
+
class="mt-5 flex flex-wrap items-center gap-2"
|
|
294
|
+
>
|
|
295
|
+
<AMetaChip
|
|
296
|
+
field-type="text"
|
|
297
|
+
label="Artist"
|
|
298
|
+
icon="i-lucide-user-round"
|
|
299
|
+
:meta="metaRecord"
|
|
300
|
+
meta-key="mediaArtist"
|
|
301
|
+
@patch="patchMeta"
|
|
302
|
+
/>
|
|
303
|
+
<AMetaChip
|
|
304
|
+
field-type="text"
|
|
305
|
+
label="Album"
|
|
306
|
+
icon="i-lucide-disc-3"
|
|
307
|
+
:meta="metaRecord"
|
|
308
|
+
meta-key="mediaAlbum"
|
|
309
|
+
@patch="patchMeta"
|
|
310
|
+
/>
|
|
311
|
+
<AMetaChip
|
|
312
|
+
field-type="text"
|
|
313
|
+
label="Stage"
|
|
314
|
+
icon="i-lucide-map-pin"
|
|
315
|
+
:meta="metaRecord"
|
|
316
|
+
meta-key="stage"
|
|
317
|
+
@patch="patchMeta"
|
|
318
|
+
/>
|
|
319
|
+
<AMetaChip
|
|
320
|
+
field-type="url"
|
|
321
|
+
label="Audio URL"
|
|
322
|
+
:meta="metaRecord"
|
|
323
|
+
meta-key="audioUrl"
|
|
324
|
+
@patch="patchMeta"
|
|
325
|
+
/>
|
|
326
|
+
</div>
|
|
327
|
+
|
|
328
|
+
<section
|
|
329
|
+
v-if="upNext.length"
|
|
330
|
+
class="mt-10"
|
|
331
|
+
>
|
|
332
|
+
<div class="mb-3 flex items-baseline gap-3">
|
|
333
|
+
<h2 class="text-xs font-medium tracking-[0.22em] text-dimmed uppercase">
|
|
334
|
+
Next on this stage
|
|
335
|
+
</h2>
|
|
336
|
+
<div class="h-px flex-1 bg-black/10 dark:bg-white/10" />
|
|
337
|
+
</div>
|
|
338
|
+
<ul class="flex flex-col">
|
|
339
|
+
<li
|
|
340
|
+
v-for="(t, i) in upNext"
|
|
341
|
+
:key="t.id"
|
|
342
|
+
>
|
|
343
|
+
<NuxtLink
|
|
344
|
+
:to="t.href"
|
|
345
|
+
class="flex items-center gap-3 rounded-lg px-2 py-2 transition-colors hover:bg-black/5 dark:hover:bg-white/5"
|
|
346
|
+
>
|
|
347
|
+
<span class="w-5 text-center text-xs tabular-nums text-dimmed">{{ i + 1 }}</span>
|
|
348
|
+
<span class="min-w-0 flex-1">
|
|
349
|
+
<span class="block truncate text-sm text-default">{{ t.label }}</span>
|
|
350
|
+
<span class="block truncate text-xs text-muted">{{ t.artist || "\u2014" }}</span>
|
|
351
|
+
</span>
|
|
352
|
+
<span class="text-xs tabular-nums text-dimmed">
|
|
353
|
+
{{ t.duration ? junFormatTime(t.duration) : "\u2014" }}
|
|
354
|
+
</span>
|
|
355
|
+
</NuxtLink>
|
|
356
|
+
</li>
|
|
357
|
+
</ul>
|
|
358
|
+
</section>
|
|
359
|
+
|
|
360
|
+
<hr class="my-8 border-default">
|
|
361
|
+
|
|
362
|
+
<div class="jun-track-body">
|
|
363
|
+
<AEditor
|
|
364
|
+
:doc-id="docId"
|
|
365
|
+
:doc-label="title"
|
|
366
|
+
:doc-meta="metaRecord"
|
|
367
|
+
:editable="editing"
|
|
368
|
+
:show-toolbar="editing"
|
|
369
|
+
:show-suggestion-menu="editing"
|
|
370
|
+
:show-drag-handle="editing"
|
|
371
|
+
:show-breadcrumb="false"
|
|
372
|
+
placeholder="No notes on this one yet."
|
|
373
|
+
/>
|
|
374
|
+
</div>
|
|
375
|
+
</div>
|
|
376
|
+
</template>
|
|
377
|
+
|
|
378
|
+
<style scoped>
|
|
379
|
+
.jun-track-body :deep(.document-header){display:none}.jun-track-body :deep([data-meta-key=audioUrl]),.jun-track-body :deep([data-meta-key=mediaAlbum]),.jun-track-body :deep([data-meta-key=mediaArtist]),.jun-track-body :deep([data-meta-key=stage]){display:none}.jun-track-body :deep(.ProseMirror),.jun-track-body :deep(.aeditor-canvas){padding:0}
|
|
380
|
+
</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;
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, ref } from "vue";
|
|
3
|
+
import {
|
|
4
|
+
JUN_USES_DEFAULT_CATEGORIES,
|
|
5
|
+
junMotion,
|
|
6
|
+
junStagger,
|
|
7
|
+
useAbracadabra,
|
|
8
|
+
useChildTree,
|
|
9
|
+
useDocTree,
|
|
10
|
+
useJunGroupedDnD,
|
|
11
|
+
useJunRename,
|
|
12
|
+
useJunStudio,
|
|
13
|
+
useJunViewingAccent
|
|
14
|
+
} from "#imports";
|
|
15
|
+
const props = defineProps({
|
|
16
|
+
docId: { type: String, required: true },
|
|
17
|
+
docLabel: { type: String, required: false },
|
|
18
|
+
docMeta: { type: Object, required: false },
|
|
19
|
+
childProvider: { type: null, required: false },
|
|
20
|
+
editable: { type: Boolean, required: false }
|
|
21
|
+
});
|
|
22
|
+
const abra = useAbracadabra();
|
|
23
|
+
const tree = useChildTree(abra.doc, props.docId);
|
|
24
|
+
const { getEntry } = useDocTree();
|
|
25
|
+
const { editing } = useJunStudio();
|
|
26
|
+
const { renameDoc } = useJunRename();
|
|
27
|
+
const { accentInsetStyle, accentTitle } = useJunViewingAccent();
|
|
28
|
+
const pageMeta = computed(
|
|
29
|
+
() => getEntry(props.docId)?.meta ?? props.docMeta ?? {}
|
|
30
|
+
);
|
|
31
|
+
const pageTitle = computed(() => getEntry(props.docId)?.label ?? props.docLabel ?? "Uses");
|
|
32
|
+
const subtitle = computed(() => {
|
|
33
|
+
const ex = pageMeta.value.excerpt;
|
|
34
|
+
return typeof ex === "string" && ex.trim() ? ex : void 0;
|
|
35
|
+
});
|
|
36
|
+
function renamePage(t) {
|
|
37
|
+
renameDoc(props.docId, t);
|
|
38
|
+
}
|
|
39
|
+
function renameSubtitle(s) {
|
|
40
|
+
tree.updateMeta(props.docId, { excerpt: s || void 0 });
|
|
41
|
+
}
|
|
42
|
+
const categories = computed(() => {
|
|
43
|
+
const c = pageMeta.value.categories;
|
|
44
|
+
return Array.isArray(c) && c.length ? c.filter((x) => typeof x === "string" && x.trim()) : [...JUN_USES_DEFAULT_CATEGORIES];
|
|
45
|
+
});
|
|
46
|
+
function onCategoriesPatch(p) {
|
|
47
|
+
const raw = p.categories;
|
|
48
|
+
const list = typeof raw === "string" ? raw.split(",").map((t) => t.trim()).filter(Boolean) : void 0;
|
|
49
|
+
tree.updateMeta(props.docId, { categories: list?.length ? list : void 0 });
|
|
50
|
+
}
|
|
51
|
+
const items = computed(
|
|
52
|
+
() => (tree.childrenOf(null) ?? []).filter((e) => !!e.label)
|
|
53
|
+
);
|
|
54
|
+
const listEl = ref(null);
|
|
55
|
+
const {
|
|
56
|
+
orderedItems,
|
|
57
|
+
dragId,
|
|
58
|
+
hoverGroup,
|
|
59
|
+
onItemDragStart,
|
|
60
|
+
onItemDragEnd,
|
|
61
|
+
onGroupDragOver,
|
|
62
|
+
onGroupDragLeave,
|
|
63
|
+
onGroupDrop
|
|
64
|
+
} = useJunGroupedDnD({
|
|
65
|
+
tree,
|
|
66
|
+
containerDocId: props.docId,
|
|
67
|
+
items,
|
|
68
|
+
containerEl: listEl,
|
|
69
|
+
groupKey: "category",
|
|
70
|
+
// "Other" is the presentation name of "no category", not a real one — so
|
|
71
|
+
// dropping into it CLEARS the key rather than storing the word.
|
|
72
|
+
groupValueFor: (section) => section === "Other" ? void 0 : section,
|
|
73
|
+
ghostIconFor: () => "i-lucide-wrench"
|
|
74
|
+
});
|
|
75
|
+
const sections = computed(() => {
|
|
76
|
+
const byCat = /* @__PURE__ */ new Map();
|
|
77
|
+
for (const item of orderedItems.value) {
|
|
78
|
+
const cat = item.meta?.category?.trim() || "";
|
|
79
|
+
if (!byCat.has(cat)) byCat.set(cat, []);
|
|
80
|
+
byCat.get(cat).push(item);
|
|
81
|
+
}
|
|
82
|
+
const out = [];
|
|
83
|
+
for (const cat of categories.value) {
|
|
84
|
+
const list = byCat.get(cat);
|
|
85
|
+
if (list?.length || editing.value) out.push({ category: cat, items: list ?? [] });
|
|
86
|
+
byCat.delete(cat);
|
|
87
|
+
}
|
|
88
|
+
for (const [cat, list] of byCat) {
|
|
89
|
+
if (cat) out.push({ category: cat, items: list });
|
|
90
|
+
}
|
|
91
|
+
const rest = byCat.get("");
|
|
92
|
+
if (rest?.length) out.push({ category: "Other", items: rest });
|
|
93
|
+
return out;
|
|
94
|
+
});
|
|
95
|
+
function addItem(category) {
|
|
96
|
+
const id = tree.createChild(null, "New item", "doc");
|
|
97
|
+
tree.updateMeta(id, {
|
|
98
|
+
// "Other" is the presentation name of "no category", not a real one.
|
|
99
|
+
category: category === "Other" ? void 0 : category,
|
|
100
|
+
url: "",
|
|
101
|
+
icon: "wrench"
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
</script>
|
|
105
|
+
|
|
106
|
+
<template>
|
|
107
|
+
<div class="relative mx-auto w-full max-w-3xl px-4 pt-12 pb-16 sm:px-8">
|
|
108
|
+
<JunPageHero
|
|
109
|
+
:title="pageTitle"
|
|
110
|
+
:subtitle="subtitle"
|
|
111
|
+
:editable="editing"
|
|
112
|
+
@rename="renamePage"
|
|
113
|
+
@rename-subtitle="renameSubtitle"
|
|
114
|
+
/>
|
|
115
|
+
|
|
116
|
+
<!-- The section list is meta, so it edits like any other field. -->
|
|
117
|
+
<div
|
|
118
|
+
v-if="editing"
|
|
119
|
+
class="mb-6 flex flex-wrap items-center gap-1.5"
|
|
120
|
+
>
|
|
121
|
+
<AMetaChip
|
|
122
|
+
field-type="text"
|
|
123
|
+
label="Categories (comma-separated)"
|
|
124
|
+
icon="i-lucide-layout-list"
|
|
125
|
+
:meta="pageMeta"
|
|
126
|
+
meta-key="categories"
|
|
127
|
+
@patch="onCategoriesPatch"
|
|
128
|
+
/>
|
|
129
|
+
</div>
|
|
130
|
+
|
|
131
|
+
<div
|
|
132
|
+
v-if="!items.length && !editing"
|
|
133
|
+
class="py-16 text-center"
|
|
134
|
+
>
|
|
135
|
+
<UIcon
|
|
136
|
+
name="i-lucide-wrench"
|
|
137
|
+
class="mb-3 size-10 text-dimmed"
|
|
138
|
+
/>
|
|
139
|
+
<p class="text-sm text-muted">
|
|
140
|
+
Nothing listed yet.
|
|
141
|
+
</p>
|
|
142
|
+
</div>
|
|
143
|
+
|
|
144
|
+
<div ref="listEl">
|
|
145
|
+
<section
|
|
146
|
+
v-for="(section, si) in sections"
|
|
147
|
+
:key="section.category"
|
|
148
|
+
class="mb-8 rounded-xl transition-shadow duration-200 last:mb-0"
|
|
149
|
+
:class="hoverGroup === section.category ? 'ring-2 ring-inset ring-black/20 dark:ring-white/25' : ''"
|
|
150
|
+
@dragover="onGroupDragOver(section.category, $event)"
|
|
151
|
+
@dragleave="onGroupDragLeave($event)"
|
|
152
|
+
@drop="onGroupDrop(section.category, $event)"
|
|
153
|
+
>
|
|
154
|
+
<div class="mb-3 flex items-baseline gap-3 px-1">
|
|
155
|
+
<h2 class="text-xs font-medium tracking-[0.22em] text-dimmed uppercase">
|
|
156
|
+
{{ section.category }}
|
|
157
|
+
</h2>
|
|
158
|
+
<div class="h-px flex-1 bg-black/10 dark:bg-white/10" />
|
|
159
|
+
<UButton
|
|
160
|
+
v-if="editing"
|
|
161
|
+
icon="i-lucide-plus"
|
|
162
|
+
size="xs"
|
|
163
|
+
color="neutral"
|
|
164
|
+
variant="ghost"
|
|
165
|
+
aria-label="Add item"
|
|
166
|
+
@click="addItem(section.category)"
|
|
167
|
+
/>
|
|
168
|
+
</div>
|
|
169
|
+
|
|
170
|
+
<TransitionGroup
|
|
171
|
+
tag="ul"
|
|
172
|
+
name="jun-uses"
|
|
173
|
+
class="flex flex-col gap-3 px-1"
|
|
174
|
+
>
|
|
175
|
+
<li
|
|
176
|
+
v-for="(entry, i) in section.items"
|
|
177
|
+
:key="entry.id"
|
|
178
|
+
v-motion="junMotion(junStagger(Math.min(si * 2 + i, 8), { delayMs: 60 }))"
|
|
179
|
+
:data-dnd-id="entry.id"
|
|
180
|
+
:draggable="editing ? true : void 0"
|
|
181
|
+
:class="[
|
|
182
|
+
'rounded-lg transition-[transform,box-shadow,opacity] duration-200',
|
|
183
|
+
editing ? dragId === entry.id ? 'cursor-grabbing' : 'cursor-grab' : '',
|
|
184
|
+
dragId === entry.id ? 'scale-[1.02] opacity-90 shadow-lg shadow-black/20' : ''
|
|
185
|
+
]"
|
|
186
|
+
@dragstart="onItemDragStart(entry, $event)"
|
|
187
|
+
@dragend="onItemDragEnd($event)"
|
|
188
|
+
>
|
|
189
|
+
<JunItemMenu
|
|
190
|
+
:entry="entry"
|
|
191
|
+
:tree="tree"
|
|
192
|
+
:siblings="section.items.map((e) => e.id)"
|
|
193
|
+
>
|
|
194
|
+
<JunLinksRow
|
|
195
|
+
:entry="entry"
|
|
196
|
+
:accent="accentInsetStyle(entry.id)"
|
|
197
|
+
:accent-title="accentTitle(entry.id)"
|
|
198
|
+
:force-internal="editing"
|
|
199
|
+
/>
|
|
200
|
+
</JunItemMenu>
|
|
201
|
+
|
|
202
|
+
<div
|
|
203
|
+
v-if="editing"
|
|
204
|
+
class="mt-1.5 flex flex-wrap gap-1.5 pr-2 pl-14"
|
|
205
|
+
>
|
|
206
|
+
<AMetaChip
|
|
207
|
+
field-type="select"
|
|
208
|
+
label="Category"
|
|
209
|
+
icon="i-lucide-layout-list"
|
|
210
|
+
:options="categories"
|
|
211
|
+
:meta="entry.meta ?? {}"
|
|
212
|
+
meta-key="category"
|
|
213
|
+
@patch="tree.updateMeta(entry.id, $event)"
|
|
214
|
+
/>
|
|
215
|
+
<AMetaChip
|
|
216
|
+
field-type="url"
|
|
217
|
+
label="URL"
|
|
218
|
+
:meta="entry.meta ?? {}"
|
|
219
|
+
meta-key="url"
|
|
220
|
+
@patch="tree.updateMeta(entry.id, $event)"
|
|
221
|
+
/>
|
|
222
|
+
<AMetaChip
|
|
223
|
+
field-type="icon"
|
|
224
|
+
label="Icon"
|
|
225
|
+
:meta="entry.meta ?? {}"
|
|
226
|
+
meta-key="icon"
|
|
227
|
+
@patch="tree.updateMeta(entry.id, $event)"
|
|
228
|
+
/>
|
|
229
|
+
<AMetaChip
|
|
230
|
+
field-type="text"
|
|
231
|
+
label="Description"
|
|
232
|
+
icon="i-lucide-text"
|
|
233
|
+
:meta="entry.meta ?? {}"
|
|
234
|
+
meta-key="description"
|
|
235
|
+
@patch="tree.updateMeta(entry.id, $event)"
|
|
236
|
+
/>
|
|
237
|
+
</div>
|
|
238
|
+
</li>
|
|
239
|
+
</TransitionGroup>
|
|
240
|
+
|
|
241
|
+
<p
|
|
242
|
+
v-if="editing && !section.items.length"
|
|
243
|
+
class="px-1 text-xs text-dimmed italic"
|
|
244
|
+
>
|
|
245
|
+
Empty — add an item, drag one here, or drop the category from the list above.
|
|
246
|
+
</p>
|
|
247
|
+
</section>
|
|
248
|
+
</div>
|
|
249
|
+
</div>
|
|
250
|
+
</template>
|
|
251
|
+
|
|
252
|
+
<style scoped>
|
|
253
|
+
.jun-uses-move{transition:transform .32s cubic-bezier(.22,1,.36,1)}.jun-uses-enter-active{transition:opacity .3s ease,transform .3s cubic-bezier(.22,1,.36,1)}.jun-uses-leave-active{position:absolute;transition:opacity .2s ease}.jun-uses-enter-from,.jun-uses-leave-to{opacity:0;transform:translateY(-6px)}@media (prefers-reduced-motion:reduce){.jun-uses-enter-active,.jun-uses-leave-active,.jun-uses-move{transition:none}}
|
|
254
|
+
</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;
|