@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,111 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, resolveComponent } from "vue";
|
|
3
|
+
import { useAbracadabra, useDocSlugs, useDocTree } from "#imports";
|
|
4
|
+
import { useJunTravellers } from "../composables/useJunPresence";
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
list: { type: Boolean, required: false, default: false }
|
|
7
|
+
});
|
|
8
|
+
const NuxtLink = resolveComponent("NuxtLink");
|
|
9
|
+
const { travellers } = useJunTravellers();
|
|
10
|
+
const { getDocUrl } = useDocSlugs();
|
|
11
|
+
const { getEntry } = useDocTree();
|
|
12
|
+
const abra = useAbracadabra();
|
|
13
|
+
const MAX_DOTS = 3;
|
|
14
|
+
const dots = computed(() => travellers.value.slice(0, MAX_DOTS));
|
|
15
|
+
const overflow = computed(() => Math.max(0, travellers.value.length - MAX_DOTS));
|
|
16
|
+
const travellerCountLabel = computed(
|
|
17
|
+
() => `${travellers.value.length} fellow ${travellers.value.length === 1 ? "traveller" : "travellers"} here`
|
|
18
|
+
);
|
|
19
|
+
function placeFor(t) {
|
|
20
|
+
if (t.docId) {
|
|
21
|
+
if (t.docId === abra.spaceDocId.value) return { label: "Home", to: "/" };
|
|
22
|
+
const entry = getEntry(t.docId);
|
|
23
|
+
if (entry?.label) return { label: entry.label, to: getDocUrl(t.docId) };
|
|
24
|
+
}
|
|
25
|
+
if (t.page) return { label: t.page === "/" ? "Home" : t.page.slice(1), to: t.page };
|
|
26
|
+
return { label: "somewhere", to: null };
|
|
27
|
+
}
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<template>
|
|
31
|
+
<!-- With the roster off the dots are a READOUT, not a control: a `span`, no
|
|
32
|
+
popover, nothing focusable. A button that opens nothing is a promise the
|
|
33
|
+
chip cannot keep — least of all to a keyboard or a screen reader. -->
|
|
34
|
+
<span
|
|
35
|
+
v-if="travellers.length && !props.list"
|
|
36
|
+
class="flex h-8 items-center gap-1.5 rounded-full px-2 text-black/55 dark:text-white/55"
|
|
37
|
+
:aria-label="travellerCountLabel"
|
|
38
|
+
>
|
|
39
|
+
<span class="flex -space-x-1">
|
|
40
|
+
<span
|
|
41
|
+
v-for="t in dots"
|
|
42
|
+
:key="t.clientId"
|
|
43
|
+
class="jun-traveller-dot inline-block size-2 rounded-full ring-1 ring-white/70 dark:ring-black/50"
|
|
44
|
+
:class="t.idle ? 'opacity-40' : ''"
|
|
45
|
+
:style="{ background: t.color }"
|
|
46
|
+
/>
|
|
47
|
+
</span>
|
|
48
|
+
<span class="text-xs tabular-nums">{{ overflow ? travellers.length : "" }}</span>
|
|
49
|
+
</span>
|
|
50
|
+
|
|
51
|
+
<UPopover
|
|
52
|
+
v-else-if="travellers.length"
|
|
53
|
+
mode="hover"
|
|
54
|
+
:content="{ side: 'bottom', align: 'end', sideOffset: 10 }"
|
|
55
|
+
:ui="{ content: 'jun-chrome rounded-lg p-0 ring-0 border-0' }"
|
|
56
|
+
>
|
|
57
|
+
<button
|
|
58
|
+
type="button"
|
|
59
|
+
class="flex h-8 items-center gap-1.5 px-2 rounded-full text-black/55 dark:text-white/55 hover:text-black dark:hover:text-white transition-colors duration-200"
|
|
60
|
+
style="pointer-events: auto"
|
|
61
|
+
:aria-label="travellerCountLabel"
|
|
62
|
+
>
|
|
63
|
+
<span class="flex -space-x-1">
|
|
64
|
+
<span
|
|
65
|
+
v-for="t in dots"
|
|
66
|
+
:key="t.clientId"
|
|
67
|
+
class="jun-traveller-dot inline-block size-2 rounded-full ring-1 ring-white/70 dark:ring-black/50"
|
|
68
|
+
:class="t.idle ? 'opacity-40' : ''"
|
|
69
|
+
:style="{ background: t.color }"
|
|
70
|
+
/>
|
|
71
|
+
</span>
|
|
72
|
+
<span class="text-xs tabular-nums">{{ overflow ? travellers.length : "" }}</span>
|
|
73
|
+
</button>
|
|
74
|
+
|
|
75
|
+
<template #content>
|
|
76
|
+
<div class="w-56 py-1.5">
|
|
77
|
+
<p class="px-3.5 pt-1.5 pb-1 text-[10px] tracking-[0.22em] uppercase text-black/35 dark:text-white/35">
|
|
78
|
+
{{ travellers.length === 1 ? "Fellow traveller" : "Fellow travellers" }}
|
|
79
|
+
</p>
|
|
80
|
+
<ul>
|
|
81
|
+
<li
|
|
82
|
+
v-for="t in travellers"
|
|
83
|
+
:key="t.clientId"
|
|
84
|
+
:class="t.idle ? 'opacity-50' : ''"
|
|
85
|
+
>
|
|
86
|
+
<component
|
|
87
|
+
:is="placeFor(t).to ? NuxtLink : 'div'"
|
|
88
|
+
:to="placeFor(t).to ?? void 0"
|
|
89
|
+
class="flex items-center gap-2.5 px-3.5 py-2 transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.05]"
|
|
90
|
+
>
|
|
91
|
+
<span
|
|
92
|
+
class="inline-block size-2 shrink-0 rounded-full"
|
|
93
|
+
:style="{ background: t.color }"
|
|
94
|
+
/>
|
|
95
|
+
<span class="min-w-0 flex-1">
|
|
96
|
+
<span class="block text-sm text-black/80 dark:text-white/85 truncate">{{ t.name }}</span>
|
|
97
|
+
<span class="block text-[11px] text-black/40 dark:text-white/40 truncate">
|
|
98
|
+
{{ t.idle ? "resting on" : "reading" }} {{ placeFor(t).label }}
|
|
99
|
+
</span>
|
|
100
|
+
</span>
|
|
101
|
+
</component>
|
|
102
|
+
</li>
|
|
103
|
+
</ul>
|
|
104
|
+
</div>
|
|
105
|
+
</template>
|
|
106
|
+
</UPopover>
|
|
107
|
+
</template>
|
|
108
|
+
|
|
109
|
+
<style scoped>
|
|
110
|
+
.jun-traveller-dot{animation:jun-dot-breathe 5s ease-in-out infinite}@keyframes jun-dot-breathe{0%,to{transform:scale(1)}50%{transform:scale(1.15)}}@media (prefers-reduced-motion:reduce){.jun-traveller-dot{animation:none}}
|
|
111
|
+
</style>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** Open the named roster on hover. Off leaves the dots as a bare count. */
|
|
3
|
+
list?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
6
|
+
list: boolean;
|
|
7
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** The URL as the owner typed it. */
|
|
3
|
+
url: string;
|
|
4
|
+
/** Local poster image URL — the document's own cover, normally. */
|
|
5
|
+
poster?: string;
|
|
6
|
+
/** Accessible name, and the label on the link-card fallback. */
|
|
7
|
+
title?: string;
|
|
8
|
+
/** Seconds to start at; overrides any offset in the URL (chapter clicks). */
|
|
9
|
+
start?: number;
|
|
10
|
+
/** Aspect-ratio box. Turn off when the caller sizes the player itself. */
|
|
11
|
+
ratio?: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare function play(): void;
|
|
14
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
15
|
+
play: typeof play;
|
|
16
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
17
|
+
title: string;
|
|
18
|
+
start: number;
|
|
19
|
+
poster: string;
|
|
20
|
+
ratio: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, ref } from "vue";
|
|
3
|
+
import { junVideoProviderLabel, junVideoSource, useJunOptions } from "#imports";
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
url: { type: String, required: true },
|
|
6
|
+
poster: { type: String, required: false, default: "" },
|
|
7
|
+
title: { type: String, required: false, default: "" },
|
|
8
|
+
start: { type: Number, required: false, default: 0 },
|
|
9
|
+
ratio: { type: Boolean, required: false, default: true }
|
|
10
|
+
});
|
|
11
|
+
const opts = useJunOptions();
|
|
12
|
+
const source = computed(() => junVideoSource(props.url));
|
|
13
|
+
const providerLabel = computed(() => junVideoProviderLabel(source.value.kind));
|
|
14
|
+
const isThirdParty = computed(() => source.value.kind === "youtube" || source.value.kind === "vimeo");
|
|
15
|
+
const embedsAllowed = computed(() => opts.features.thirdPartyEmbeds !== false);
|
|
16
|
+
const posterUrl = computed(() => {
|
|
17
|
+
if (props.poster) return props.poster;
|
|
18
|
+
if (opts.embeds?.remoteThumbnails && source.value.remoteThumbUrl) return source.value.remoteThumbUrl;
|
|
19
|
+
return "";
|
|
20
|
+
});
|
|
21
|
+
const playUrl = computed(() => {
|
|
22
|
+
const src = source.value;
|
|
23
|
+
if (!src.embedUrl) return "";
|
|
24
|
+
const at = props.start || src.start;
|
|
25
|
+
if (!at) return src.embedUrl;
|
|
26
|
+
const u = new URL(src.embedUrl);
|
|
27
|
+
if (src.kind === "youtube") u.searchParams.set("start", String(at));
|
|
28
|
+
else u.hash = `t=${at}s`;
|
|
29
|
+
return u.toString();
|
|
30
|
+
});
|
|
31
|
+
const playing = ref(false);
|
|
32
|
+
const playKey = ref(0);
|
|
33
|
+
function play() {
|
|
34
|
+
playing.value = true;
|
|
35
|
+
playKey.value++;
|
|
36
|
+
}
|
|
37
|
+
defineExpose({ play });
|
|
38
|
+
</script>
|
|
39
|
+
|
|
40
|
+
<template>
|
|
41
|
+
<!-- A direct file: our own server (or the owner's), no facade needed. -->
|
|
42
|
+
<video
|
|
43
|
+
v-if="source.kind === 'file'"
|
|
44
|
+
:src="source.href"
|
|
45
|
+
:poster="posterUrl || void 0"
|
|
46
|
+
class="h-full w-full bg-black"
|
|
47
|
+
:class="ratio ? 'aspect-video' : ''"
|
|
48
|
+
controls
|
|
49
|
+
playsinline
|
|
50
|
+
preload="metadata"
|
|
51
|
+
/>
|
|
52
|
+
|
|
53
|
+
<!-- Recognised provider, embeds allowed: facade until the visitor clicks. -->
|
|
54
|
+
<div
|
|
55
|
+
v-else-if="isThirdParty && embedsAllowed"
|
|
56
|
+
class="relative w-full overflow-hidden rounded-xl bg-black"
|
|
57
|
+
:class="ratio ? 'aspect-video' : 'h-full'"
|
|
58
|
+
>
|
|
59
|
+
<iframe
|
|
60
|
+
v-if="playing"
|
|
61
|
+
:key="playKey"
|
|
62
|
+
:src="playUrl"
|
|
63
|
+
:title="title || providerLabel"
|
|
64
|
+
class="absolute inset-0 h-full w-full"
|
|
65
|
+
frameborder="0"
|
|
66
|
+
referrerpolicy="strict-origin-when-cross-origin"
|
|
67
|
+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
|
68
|
+
allowfullscreen
|
|
69
|
+
/>
|
|
70
|
+
|
|
71
|
+
<button
|
|
72
|
+
v-else
|
|
73
|
+
type="button"
|
|
74
|
+
class="group absolute inset-0 flex h-full w-full cursor-pointer items-center justify-center"
|
|
75
|
+
:aria-label="`Play ${title || providerLabel}`"
|
|
76
|
+
@click="play"
|
|
77
|
+
>
|
|
78
|
+
<img
|
|
79
|
+
v-if="posterUrl"
|
|
80
|
+
:src="posterUrl"
|
|
81
|
+
alt=""
|
|
82
|
+
class="absolute inset-0 h-full w-full object-cover opacity-80 transition-opacity duration-300 group-hover:opacity-95"
|
|
83
|
+
loading="lazy"
|
|
84
|
+
>
|
|
85
|
+
<span
|
|
86
|
+
aria-hidden="true"
|
|
87
|
+
class="absolute inset-0 bg-gradient-to-t from-black/70 via-black/20 to-black/40"
|
|
88
|
+
/>
|
|
89
|
+
<span
|
|
90
|
+
class="relative flex size-16 items-center justify-center rounded-full bg-white/90 text-black shadow-xl transition-transform duration-300 group-hover:scale-110"
|
|
91
|
+
>
|
|
92
|
+
<UIcon
|
|
93
|
+
name="i-lucide-play"
|
|
94
|
+
class="size-7 translate-x-0.5"
|
|
95
|
+
/>
|
|
96
|
+
</span>
|
|
97
|
+
<span
|
|
98
|
+
class="absolute right-3 bottom-3 rounded-full bg-black/60 px-2 py-0.5 text-[11px] tracking-wide text-white/80"
|
|
99
|
+
>
|
|
100
|
+
{{ providerLabel }}
|
|
101
|
+
</span>
|
|
102
|
+
</button>
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
<!-- Unknown host, or embeds switched off site-wide. Never an iframe. -->
|
|
106
|
+
<a
|
|
107
|
+
v-else-if="source.href"
|
|
108
|
+
:href="source.href"
|
|
109
|
+
target="_blank"
|
|
110
|
+
rel="noopener noreferrer"
|
|
111
|
+
class="jun-card flex items-center gap-3 rounded-xl px-4 py-3 transition-all duration-300 hover:scale-[1.01]"
|
|
112
|
+
>
|
|
113
|
+
<UIcon
|
|
114
|
+
name="i-lucide-external-link"
|
|
115
|
+
class="size-4 shrink-0 text-dimmed"
|
|
116
|
+
/>
|
|
117
|
+
<span class="min-w-0 flex-1">
|
|
118
|
+
<span class="block truncate text-sm font-medium text-highlighted">
|
|
119
|
+
{{ title || "Watch" }}
|
|
120
|
+
</span>
|
|
121
|
+
<span class="block truncate text-xs text-muted">{{ source.href }}</span>
|
|
122
|
+
</span>
|
|
123
|
+
</a>
|
|
124
|
+
</template>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** The URL as the owner typed it. */
|
|
3
|
+
url: string;
|
|
4
|
+
/** Local poster image URL — the document's own cover, normally. */
|
|
5
|
+
poster?: string;
|
|
6
|
+
/** Accessible name, and the label on the link-card fallback. */
|
|
7
|
+
title?: string;
|
|
8
|
+
/** Seconds to start at; overrides any offset in the URL (chapter clicks). */
|
|
9
|
+
start?: number;
|
|
10
|
+
/** Aspect-ratio box. Turn off when the caller sizes the player itself. */
|
|
11
|
+
ratio?: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare function play(): void;
|
|
14
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
15
|
+
play: typeof play;
|
|
16
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
17
|
+
title: string;
|
|
18
|
+
start: number;
|
|
19
|
+
poster: string;
|
|
20
|
+
ratio: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Side-effect CSS imports have no type declarations of their own, and the two
|
|
3
|
+
* tsconfigs in this repo disagree about whether that is an error — so a
|
|
4
|
+
* `@ts-expect-error` is unused in one and required in the other. Declaring the
|
|
5
|
+
* shape once satisfies both.
|
|
6
|
+
*/
|
|
7
|
+
declare module '*.css'
|
|
File without changes
|
|
@@ -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,271 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, ref } from "vue";
|
|
3
|
+
import { useRouter } from "vue-router";
|
|
4
|
+
import {
|
|
5
|
+
junMotion,
|
|
6
|
+
junStagger,
|
|
7
|
+
useAbracadabra,
|
|
8
|
+
useChildTree,
|
|
9
|
+
useDocSlugs,
|
|
10
|
+
useDocTree,
|
|
11
|
+
useJunListDnD,
|
|
12
|
+
useJunOpenDoc,
|
|
13
|
+
useJunPageType,
|
|
14
|
+
useJunRename,
|
|
15
|
+
useJunStudio,
|
|
16
|
+
useJunUpload,
|
|
17
|
+
useJunViewingAccent
|
|
18
|
+
} from "#imports";
|
|
19
|
+
const props = defineProps({
|
|
20
|
+
docId: { type: String, required: true },
|
|
21
|
+
docLabel: { type: String, required: false },
|
|
22
|
+
docMeta: { type: Object, required: false },
|
|
23
|
+
childProvider: { type: null, required: false },
|
|
24
|
+
editable: { type: Boolean, required: false }
|
|
25
|
+
});
|
|
26
|
+
const abra = useAbracadabra();
|
|
27
|
+
const tree = useChildTree(abra.doc, props.docId);
|
|
28
|
+
const router = useRouter();
|
|
29
|
+
const { getDocUrl } = useDocSlugs();
|
|
30
|
+
const { getEntry } = useDocTree();
|
|
31
|
+
const { editing } = useJunStudio();
|
|
32
|
+
const { renameDoc } = useJunRename();
|
|
33
|
+
const { uploadTo, imageFiles } = useJunUpload();
|
|
34
|
+
const { typeIdFor } = useJunPageType();
|
|
35
|
+
const { open: openDoc } = useJunOpenDoc();
|
|
36
|
+
const { accentStyle, accentTitle } = useJunViewingAccent();
|
|
37
|
+
const appType = computed(() => typeIdFor("app"));
|
|
38
|
+
const pageTitle = computed(() => getEntry(props.docId)?.label ?? props.docLabel ?? "Apps");
|
|
39
|
+
const pageSubtitle = computed(() => {
|
|
40
|
+
const meta = getEntry(props.docId)?.meta;
|
|
41
|
+
const ex = meta?.excerpt ?? props.docMeta?.excerpt;
|
|
42
|
+
return typeof ex === "string" && ex.trim() ? ex : void 0;
|
|
43
|
+
});
|
|
44
|
+
function renamePage(t) {
|
|
45
|
+
renameDoc(props.docId, t);
|
|
46
|
+
}
|
|
47
|
+
function renameSubtitle(s) {
|
|
48
|
+
tree.updateMeta(props.docId, { excerpt: s || void 0 });
|
|
49
|
+
}
|
|
50
|
+
const items = computed(
|
|
51
|
+
() => (tree.childrenOf(null) ?? []).filter((e) => !!e.label)
|
|
52
|
+
);
|
|
53
|
+
const gridEl = ref(null);
|
|
54
|
+
const {
|
|
55
|
+
orderedItems,
|
|
56
|
+
dragId,
|
|
57
|
+
externalHover,
|
|
58
|
+
onItemDragStart,
|
|
59
|
+
onItemDragEnd,
|
|
60
|
+
onContainerDragOver,
|
|
61
|
+
onContainerDragLeave,
|
|
62
|
+
onContainerDrop
|
|
63
|
+
} = useJunListDnD({
|
|
64
|
+
tree,
|
|
65
|
+
containerDocId: props.docId,
|
|
66
|
+
items,
|
|
67
|
+
containerEl: gridEl,
|
|
68
|
+
reorderable: true,
|
|
69
|
+
ghostIconFor: () => "i-lucide-box"
|
|
70
|
+
});
|
|
71
|
+
const clickedId = ref(null);
|
|
72
|
+
function open(item) {
|
|
73
|
+
if (dragId.value) return;
|
|
74
|
+
clickedId.value = item.id;
|
|
75
|
+
setTimeout(() => openDoc(item.id, item.label), 200);
|
|
76
|
+
}
|
|
77
|
+
function createApp() {
|
|
78
|
+
if (!appType.value) return;
|
|
79
|
+
const id = tree.createChild(null, "New project", appType.value);
|
|
80
|
+
const to = getDocUrl(id);
|
|
81
|
+
if (to) void router.push(to);
|
|
82
|
+
}
|
|
83
|
+
const iconDropId = ref(null);
|
|
84
|
+
function onTileFileDragOver(item, e) {
|
|
85
|
+
if (!editing.value || dragId.value || !e.dataTransfer?.types.includes("Files")) return;
|
|
86
|
+
e.preventDefault();
|
|
87
|
+
e.stopPropagation();
|
|
88
|
+
e.dataTransfer.dropEffect = "copy";
|
|
89
|
+
iconDropId.value = item.id;
|
|
90
|
+
}
|
|
91
|
+
async function onTileFileDrop(item, e) {
|
|
92
|
+
if (!editing.value || dragId.value) return;
|
|
93
|
+
e.preventDefault();
|
|
94
|
+
e.stopPropagation();
|
|
95
|
+
iconDropId.value = null;
|
|
96
|
+
const img = imageFiles(e.dataTransfer)[0];
|
|
97
|
+
if (!img) return;
|
|
98
|
+
const res = await uploadTo(item.id, img);
|
|
99
|
+
if (res) {
|
|
100
|
+
tree.updateMeta(item.id, {
|
|
101
|
+
iconUploadId: res.id,
|
|
102
|
+
iconMimeType: res.mimeType,
|
|
103
|
+
// An uploaded icon supersedes any legacy URL one.
|
|
104
|
+
iconUrl: void 0
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
</script>
|
|
109
|
+
|
|
110
|
+
<template>
|
|
111
|
+
<div class="relative mx-auto w-full max-w-5xl px-4 pt-12 pb-16 sm:px-8">
|
|
112
|
+
<JunPageHero
|
|
113
|
+
:title="pageTitle"
|
|
114
|
+
:subtitle="pageSubtitle"
|
|
115
|
+
:editable="editing"
|
|
116
|
+
@rename="renamePage"
|
|
117
|
+
@rename-subtitle="renameSubtitle"
|
|
118
|
+
/>
|
|
119
|
+
|
|
120
|
+
<section
|
|
121
|
+
ref="gridEl"
|
|
122
|
+
class="rounded-4xl transition-shadow duration-200"
|
|
123
|
+
:class="externalHover ? 'ring-2 ring-inset ring-black/20 dark:ring-white/25' : ''"
|
|
124
|
+
@dragover="onContainerDragOver"
|
|
125
|
+
@dragleave="onContainerDragLeave"
|
|
126
|
+
@drop="onContainerDrop"
|
|
127
|
+
>
|
|
128
|
+
<TransitionGroup
|
|
129
|
+
tag="div"
|
|
130
|
+
name="jun-apps"
|
|
131
|
+
class="grid grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 md:grid-cols-4 lg:gap-5"
|
|
132
|
+
>
|
|
133
|
+
<!-- This wrapper is the TransitionGroup child on purpose: the context
|
|
134
|
+
menu renders a non-element root, which Vue cannot FLIP-animate.
|
|
135
|
+
The wrapper gives every tile one real element to move. -->
|
|
136
|
+
<div
|
|
137
|
+
v-for="(app, i) in orderedItems"
|
|
138
|
+
:key="app.id"
|
|
139
|
+
v-motion="junMotion(junStagger(i))"
|
|
140
|
+
:data-dnd-id="app.id"
|
|
141
|
+
>
|
|
142
|
+
<JunItemMenu
|
|
143
|
+
:entry="app"
|
|
144
|
+
:tree="tree"
|
|
145
|
+
>
|
|
146
|
+
<button
|
|
147
|
+
type="button"
|
|
148
|
+
:draggable="editing ? true : void 0"
|
|
149
|
+
class="group relative w-full text-left focus:outline-none"
|
|
150
|
+
:class="editing ? dragId === app.id ? 'cursor-grabbing' : 'cursor-grab' : ''"
|
|
151
|
+
@click="open(app)"
|
|
152
|
+
@dragstart="onItemDragStart(app, $event)"
|
|
153
|
+
@dragend="onItemDragEnd($event)"
|
|
154
|
+
@dragover="onTileFileDragOver(app, $event)"
|
|
155
|
+
@dragleave="iconDropId === app.id && (iconDropId = null)"
|
|
156
|
+
@drop="onTileFileDrop(app, $event)"
|
|
157
|
+
>
|
|
158
|
+
<div
|
|
159
|
+
class="relative flex aspect-square items-center justify-center rounded-3xl transition-all duration-300 group-hover:scale-[1.04] group-hover:bg-black/5 group-active:scale-95 group-active:bg-black/10 dark:group-hover:bg-white/5 dark:group-active:bg-white/10"
|
|
160
|
+
:class="[
|
|
161
|
+
iconDropId === app.id ? 'rounded-xl ring-2 ring-black/40 dark:ring-white/50' : '',
|
|
162
|
+
dragId === app.id ? 'scale-105 bg-black/5 shadow-xl dark:bg-white/10' : ''
|
|
163
|
+
]"
|
|
164
|
+
:style="accentStyle(app.id)"
|
|
165
|
+
:title="accentTitle(app.id)"
|
|
166
|
+
>
|
|
167
|
+
<div
|
|
168
|
+
v-if="app.meta?.iconUploadId"
|
|
169
|
+
class="h-[68%] w-[68%] overflow-hidden rounded-3xl shadow-lg shadow-black/20 transition-transform duration-300 group-hover:scale-110"
|
|
170
|
+
>
|
|
171
|
+
<JunMedia
|
|
172
|
+
:doc-id="app.id"
|
|
173
|
+
:upload-id="app.meta.iconUploadId"
|
|
174
|
+
:mime-type="app.meta.iconMimeType || 'image/png'"
|
|
175
|
+
:alt="app.label"
|
|
176
|
+
:size="192"
|
|
177
|
+
media-class="h-full w-full object-cover"
|
|
178
|
+
/>
|
|
179
|
+
</div>
|
|
180
|
+
<NuxtImg
|
|
181
|
+
v-else-if="app.meta?.iconUrl"
|
|
182
|
+
:src="app.meta.iconUrl"
|
|
183
|
+
:alt="app.label"
|
|
184
|
+
class="h-[68%] w-[68%] rounded-xl object-contain shadow-lg shadow-black/20 transition-transform duration-300 group-hover:scale-110 sm:rounded-2xl"
|
|
185
|
+
/>
|
|
186
|
+
<div
|
|
187
|
+
v-else
|
|
188
|
+
class="flex h-[60%] w-[60%] items-center justify-center rounded-xl bg-linear-to-br from-zinc-100 to-zinc-300 shadow-lg shadow-black/20 ring-1 ring-zinc-200 transition-transform duration-300 group-hover:scale-110 sm:rounded-2xl dark:from-zinc-700 dark:to-zinc-900 dark:ring-white/10"
|
|
189
|
+
>
|
|
190
|
+
<UIcon
|
|
191
|
+
name="i-lucide-box"
|
|
192
|
+
class="size-7 text-zinc-400 sm:size-8 dark:text-zinc-500"
|
|
193
|
+
/>
|
|
194
|
+
</div>
|
|
195
|
+
|
|
196
|
+
<span
|
|
197
|
+
v-if="clickedId === app.id"
|
|
198
|
+
aria-hidden="true"
|
|
199
|
+
class="absolute inset-0 animate-ping rounded-xl ring-2 ring-zinc-900/40 sm:rounded-2xl dark:ring-white/40"
|
|
200
|
+
/>
|
|
201
|
+
|
|
202
|
+
<UIcon
|
|
203
|
+
v-if="app.meta?.location"
|
|
204
|
+
name="i-lucide-map-pin"
|
|
205
|
+
class="absolute bottom-2 left-2 size-4 text-zinc-500 opacity-70 dark:text-zinc-400"
|
|
206
|
+
/>
|
|
207
|
+
</div>
|
|
208
|
+
|
|
209
|
+
<div class="mt-2 flex items-center justify-center sm:mt-3">
|
|
210
|
+
<span
|
|
211
|
+
class="inline-block max-w-full truncate rounded-md px-2 py-0.5 text-sm font-semibold text-highlighted transition-all duration-300 group-hover:bg-zinc-900 group-hover:text-white sm:text-base dark:group-hover:bg-zinc-100 dark:group-hover:text-zinc-900"
|
|
212
|
+
>{{ app.label }}</span>
|
|
213
|
+
</div>
|
|
214
|
+
|
|
215
|
+
<div
|
|
216
|
+
v-if="app.meta?.status"
|
|
217
|
+
class="mt-1 flex justify-center"
|
|
218
|
+
>
|
|
219
|
+
<UBadge
|
|
220
|
+
:label="String(app.meta.status)"
|
|
221
|
+
color="neutral"
|
|
222
|
+
variant="subtle"
|
|
223
|
+
size="xs"
|
|
224
|
+
class="opacity-80"
|
|
225
|
+
/>
|
|
226
|
+
</div>
|
|
227
|
+
</button>
|
|
228
|
+
</JunItemMenu>
|
|
229
|
+
</div>
|
|
230
|
+
|
|
231
|
+
<button
|
|
232
|
+
v-if="editing && appType"
|
|
233
|
+
key="__new__"
|
|
234
|
+
type="button"
|
|
235
|
+
class="group relative text-left focus:outline-none"
|
|
236
|
+
aria-label="New project"
|
|
237
|
+
@click="createApp"
|
|
238
|
+
>
|
|
239
|
+
<div
|
|
240
|
+
class="relative flex aspect-square items-center justify-center rounded-xl border border-dashed border-default text-dimmed transition-all duration-300 group-hover:scale-[1.04] group-hover:bg-black/5 group-hover:text-default sm:rounded-2xl dark:group-hover:bg-white/5"
|
|
241
|
+
>
|
|
242
|
+
<UIcon
|
|
243
|
+
name="i-lucide-plus"
|
|
244
|
+
class="size-7 sm:size-8"
|
|
245
|
+
/>
|
|
246
|
+
</div>
|
|
247
|
+
<div class="mt-2 flex items-center justify-center sm:mt-3">
|
|
248
|
+
<span class="inline-block rounded-md px-2 py-0.5 text-sm font-semibold text-muted sm:text-base">New</span>
|
|
249
|
+
</div>
|
|
250
|
+
</button>
|
|
251
|
+
</TransitionGroup>
|
|
252
|
+
</section>
|
|
253
|
+
|
|
254
|
+
<div
|
|
255
|
+
v-if="!orderedItems.length && !editing"
|
|
256
|
+
class="py-16 text-center"
|
|
257
|
+
>
|
|
258
|
+
<UIcon
|
|
259
|
+
name="i-lucide-box"
|
|
260
|
+
class="mb-3 size-10 text-dimmed"
|
|
261
|
+
/>
|
|
262
|
+
<p class="text-sm text-muted">
|
|
263
|
+
Nothing here yet.
|
|
264
|
+
</p>
|
|
265
|
+
</div>
|
|
266
|
+
</div>
|
|
267
|
+
</template>
|
|
268
|
+
|
|
269
|
+
<style scoped>
|
|
270
|
+
.jun-apps-move{transition:transform .32s cubic-bezier(.22,1,.36,1)}.jun-apps-enter-active{transition:opacity .3s ease,transform .3s cubic-bezier(.22,1,.36,1)}.jun-apps-leave-active{position:absolute;transition:opacity .2s ease}.jun-apps-enter-from,.jun-apps-leave-to{opacity:0;transform:translateY(-6px)}@media (prefers-reduced-motion:reduce){.jun-apps-enter-active,.jun-apps-leave-active,.jun-apps-move{transition:none}}
|
|
271
|
+
</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;
|