@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,539 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, onBeforeUnmount, ref, watch } from "vue";
|
|
3
|
+
import {
|
|
4
|
+
junFormatTime,
|
|
5
|
+
junMotion,
|
|
6
|
+
junStagger,
|
|
7
|
+
junVideoSource,
|
|
8
|
+
useAwareness,
|
|
9
|
+
useAwarenessPeers,
|
|
10
|
+
useAbracadabra,
|
|
11
|
+
useChildTree,
|
|
12
|
+
useDocSlugs,
|
|
13
|
+
useDocTree,
|
|
14
|
+
useFileBlobStore,
|
|
15
|
+
useJunMediaImport,
|
|
16
|
+
useJunOptions,
|
|
17
|
+
useJunRename,
|
|
18
|
+
useJunStudio,
|
|
19
|
+
useJunUpload
|
|
20
|
+
} from "#imports";
|
|
21
|
+
const props = defineProps({
|
|
22
|
+
docId: { type: String, required: true },
|
|
23
|
+
docLabel: { type: String, required: false },
|
|
24
|
+
docMeta: { type: Object, required: false },
|
|
25
|
+
childProvider: { type: null, required: false },
|
|
26
|
+
editable: { type: Boolean, required: false }
|
|
27
|
+
});
|
|
28
|
+
const abra = useAbracadabra();
|
|
29
|
+
const tree = useChildTree(abra.doc, props.docId);
|
|
30
|
+
const { getEntry } = useDocTree();
|
|
31
|
+
const { getDocUrl } = useDocSlugs();
|
|
32
|
+
const { editing } = useJunStudio();
|
|
33
|
+
const { renameDoc } = useJunRename();
|
|
34
|
+
const { uploadTo, imageFiles } = useJunUpload();
|
|
35
|
+
const { videoFiles } = useJunMediaImport();
|
|
36
|
+
const { getThumbUrl } = useFileBlobStore();
|
|
37
|
+
const { features } = useJunOptions();
|
|
38
|
+
const { setField } = useAwareness();
|
|
39
|
+
const { peers } = useAwarenessPeers();
|
|
40
|
+
const entry = computed(() => getEntry(props.docId));
|
|
41
|
+
const meta = computed(() => entry.value?.meta ?? props.docMeta ?? {});
|
|
42
|
+
const metaRecord = computed(() => meta.value);
|
|
43
|
+
const title = computed(() => entry.value?.label ?? props.docLabel ?? "Film");
|
|
44
|
+
function patchMeta(p) {
|
|
45
|
+
tree.updateMeta(props.docId, p);
|
|
46
|
+
}
|
|
47
|
+
const titleEl = ref(null);
|
|
48
|
+
function commitTitle() {
|
|
49
|
+
const t = titleEl.value?.textContent?.trim();
|
|
50
|
+
if (t && t !== title.value) renameDoc(props.docId, t);
|
|
51
|
+
else if (titleEl.value) titleEl.value.textContent = title.value;
|
|
52
|
+
}
|
|
53
|
+
function onTitleKeydown(e) {
|
|
54
|
+
if (e.key === "Enter") {
|
|
55
|
+
e.preventDefault();
|
|
56
|
+
e.target.blur();
|
|
57
|
+
} else if (e.key === "Escape") {
|
|
58
|
+
if (titleEl.value) titleEl.value.textContent = title.value;
|
|
59
|
+
e.target.blur();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
const source = computed(() => junVideoSource(meta.value.videoUrl));
|
|
63
|
+
const hasUpload = computed(() => !!meta.value.mediaUploadId);
|
|
64
|
+
const hasEmbed = computed(() => !hasUpload.value && !!meta.value.videoUrl);
|
|
65
|
+
const posterUrl = ref("");
|
|
66
|
+
watch(
|
|
67
|
+
() => [props.docId, meta.value.coverUploadId],
|
|
68
|
+
async ([docId, cover]) => {
|
|
69
|
+
posterUrl.value = cover ? await getThumbUrl(docId, cover, { w: 1024 }) ?? "" : "";
|
|
70
|
+
},
|
|
71
|
+
{ immediate: true }
|
|
72
|
+
);
|
|
73
|
+
const videoEl = ref(null);
|
|
74
|
+
const embedStart = ref(0);
|
|
75
|
+
let detachTimeUpdate = null;
|
|
76
|
+
function onMediaReady(el) {
|
|
77
|
+
videoEl.value = el;
|
|
78
|
+
detachTimeUpdate?.();
|
|
79
|
+
const handler = () => onTimeUpdate(el);
|
|
80
|
+
el.addEventListener("timeupdate", handler);
|
|
81
|
+
detachTimeUpdate = () => el.removeEventListener("timeupdate", handler);
|
|
82
|
+
if (editing.value && el.duration && !meta.value.mediaDuration) {
|
|
83
|
+
patchMeta({ mediaDuration: Math.round(el.duration) });
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
const children = computed(
|
|
87
|
+
() => (tree.childrenOf(null) ?? []).filter((e) => !!e.label)
|
|
88
|
+
);
|
|
89
|
+
const chapters = computed(
|
|
90
|
+
() => children.value.filter((c) => typeof c.meta?.t === "number").sort((a, b) => a.meta.t - b.meta.t)
|
|
91
|
+
);
|
|
92
|
+
const otherChildren = computed(() => children.value.filter((c) => typeof c.meta?.t !== "number"));
|
|
93
|
+
function jumpTo(seconds) {
|
|
94
|
+
if (videoEl.value) {
|
|
95
|
+
videoEl.value.currentTime = seconds;
|
|
96
|
+
void videoEl.value.play().catch(() => {
|
|
97
|
+
});
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
embedStart.value = seconds;
|
|
101
|
+
}
|
|
102
|
+
function addChapter() {
|
|
103
|
+
const at = Math.round(videoEl.value?.currentTime ?? 0);
|
|
104
|
+
const id = tree.createChild(null, `Chapter at ${junFormatTime(at)}`, "doc");
|
|
105
|
+
tree.updateMeta(id, { t: at });
|
|
106
|
+
}
|
|
107
|
+
const lightsOut = ref(false);
|
|
108
|
+
const playerEl = ref(null);
|
|
109
|
+
async function toggleFullscreen() {
|
|
110
|
+
const el = playerEl.value;
|
|
111
|
+
if (!el) return;
|
|
112
|
+
if (document.fullscreenElement) await document.exitFullscreen().catch(() => {
|
|
113
|
+
});
|
|
114
|
+
else await el.requestFullscreen?.().catch(() => {
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
let lastBroadcast = 0;
|
|
118
|
+
function onTimeUpdate(el) {
|
|
119
|
+
if (!features.watchTogether) return;
|
|
120
|
+
const now = Date.now();
|
|
121
|
+
if (now - lastBroadcast < 2e3) return;
|
|
122
|
+
lastBroadcast = now;
|
|
123
|
+
setField("junWatch", { docId: props.docId, t: Math.round(el.currentTime) });
|
|
124
|
+
}
|
|
125
|
+
onBeforeUnmount(() => {
|
|
126
|
+
detachTimeUpdate?.();
|
|
127
|
+
if (features.watchTogether) setField("junWatch", null);
|
|
128
|
+
});
|
|
129
|
+
const watchers = computed(() => {
|
|
130
|
+
if (!features.watchTogether) return [];
|
|
131
|
+
const out = [];
|
|
132
|
+
for (const p of peers.value) {
|
|
133
|
+
const state = p;
|
|
134
|
+
const w = state.junWatch;
|
|
135
|
+
if (!w || w.docId !== props.docId || typeof w.t !== "number") continue;
|
|
136
|
+
out.push({
|
|
137
|
+
clientId: p.clientId,
|
|
138
|
+
name: p.user?.name || "Traveller",
|
|
139
|
+
color: p.user?.color || "var(--ui-text-muted)",
|
|
140
|
+
t: w.t
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
return out.sort((a, b) => a.t - b.t);
|
|
144
|
+
});
|
|
145
|
+
const posterInput = ref(null);
|
|
146
|
+
const filmInput = ref(null);
|
|
147
|
+
const screenDrop = ref(false);
|
|
148
|
+
const attaching = ref(false);
|
|
149
|
+
async function setPoster(file) {
|
|
150
|
+
const res = await uploadTo(props.docId, file);
|
|
151
|
+
if (res) patchMeta({ coverUploadId: res.id, coverMimeType: res.mimeType });
|
|
152
|
+
}
|
|
153
|
+
async function setFilm(file) {
|
|
154
|
+
attaching.value = true;
|
|
155
|
+
try {
|
|
156
|
+
const res = await uploadTo(props.docId, file);
|
|
157
|
+
if (res) patchMeta({ mediaUploadId: res.id, mediaMimeType: res.mimeType, mediaDuration: void 0 });
|
|
158
|
+
} finally {
|
|
159
|
+
attaching.value = false;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
async function onPosterPicked(e) {
|
|
163
|
+
const input = e.target;
|
|
164
|
+
const file = input.files?.[0];
|
|
165
|
+
input.value = "";
|
|
166
|
+
if (file) await setPoster(file);
|
|
167
|
+
}
|
|
168
|
+
async function onFilmPicked(e) {
|
|
169
|
+
const input = e.target;
|
|
170
|
+
const file = input.files?.[0];
|
|
171
|
+
input.value = "";
|
|
172
|
+
if (file) await setFilm(file);
|
|
173
|
+
}
|
|
174
|
+
function onScreenDragOver(e) {
|
|
175
|
+
if (!editing.value || !e.dataTransfer?.types.includes("Files")) return;
|
|
176
|
+
e.preventDefault();
|
|
177
|
+
e.dataTransfer.dropEffect = "copy";
|
|
178
|
+
screenDrop.value = true;
|
|
179
|
+
}
|
|
180
|
+
function onScreenDragLeave(e) {
|
|
181
|
+
const related = e.relatedTarget;
|
|
182
|
+
if (related && e.currentTarget.contains(related)) return;
|
|
183
|
+
screenDrop.value = false;
|
|
184
|
+
}
|
|
185
|
+
async function onScreenDrop(e) {
|
|
186
|
+
if (!editing.value) return;
|
|
187
|
+
const img = imageFiles(e.dataTransfer)[0];
|
|
188
|
+
const video = videoFiles(e.dataTransfer)[0];
|
|
189
|
+
if (!img && !video) return;
|
|
190
|
+
e.preventDefault();
|
|
191
|
+
screenDrop.value = false;
|
|
192
|
+
if (video) await setFilm(video);
|
|
193
|
+
if (img) await setPoster(img);
|
|
194
|
+
}
|
|
195
|
+
const factLine = computed(
|
|
196
|
+
() => [
|
|
197
|
+
meta.value.year,
|
|
198
|
+
meta.value.director,
|
|
199
|
+
meta.value.mediaDuration ? junFormatTime(meta.value.mediaDuration) : ""
|
|
200
|
+
].filter(Boolean).join(" \xB7 ")
|
|
201
|
+
);
|
|
202
|
+
</script>
|
|
203
|
+
|
|
204
|
+
<template>
|
|
205
|
+
<div class="relative mx-auto w-full max-w-4xl px-4 pt-12 pb-16 sm:px-8">
|
|
206
|
+
<!-- Lights out: a full-viewport scrim UNDER the player, so the page around
|
|
207
|
+
it recedes without the player having to move. `fixed` is safe here —
|
|
208
|
+
no ancestor of this renderer carries a transform. -->
|
|
209
|
+
<Transition name="jun-lights">
|
|
210
|
+
<div
|
|
211
|
+
v-if="lightsOut"
|
|
212
|
+
class="fixed inset-0 z-20 bg-black/85"
|
|
213
|
+
aria-hidden="true"
|
|
214
|
+
@click="lightsOut = false"
|
|
215
|
+
/>
|
|
216
|
+
</Transition>
|
|
217
|
+
|
|
218
|
+
<header class="mb-6">
|
|
219
|
+
<h1
|
|
220
|
+
ref="titleEl"
|
|
221
|
+
:contenteditable="editing ? 'plaintext-only' : void 0"
|
|
222
|
+
spellcheck="false"
|
|
223
|
+
class="text-3xl leading-tight font-semibold tracking-tight text-highlighted outline-none sm:text-4xl"
|
|
224
|
+
: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' : ''"
|
|
225
|
+
@blur="editing && commitTitle()"
|
|
226
|
+
@keydown="editing && onTitleKeydown($event)"
|
|
227
|
+
>
|
|
228
|
+
{{ title }}
|
|
229
|
+
</h1>
|
|
230
|
+
|
|
231
|
+
<div class="mt-2 flex flex-wrap items-center gap-3">
|
|
232
|
+
<p
|
|
233
|
+
v-if="factLine"
|
|
234
|
+
class="text-sm text-muted"
|
|
235
|
+
>
|
|
236
|
+
{{ factLine }}
|
|
237
|
+
</p>
|
|
238
|
+
<span
|
|
239
|
+
v-if="meta.rating"
|
|
240
|
+
class="flex items-center gap-0.5"
|
|
241
|
+
>
|
|
242
|
+
<UIcon
|
|
243
|
+
v-for="star in 5"
|
|
244
|
+
:key="star"
|
|
245
|
+
name="i-lucide-star"
|
|
246
|
+
class="size-3.5"
|
|
247
|
+
:class="star <= (meta.rating ?? 0) ? 'fill-current text-highlighted' : 'text-dimmed opacity-40'"
|
|
248
|
+
/>
|
|
249
|
+
</span>
|
|
250
|
+
</div>
|
|
251
|
+
|
|
252
|
+
<div
|
|
253
|
+
v-if="editing"
|
|
254
|
+
class="mt-3 flex flex-wrap items-center gap-2"
|
|
255
|
+
>
|
|
256
|
+
<AMetaChip
|
|
257
|
+
field-type="text"
|
|
258
|
+
label="Year"
|
|
259
|
+
icon="i-lucide-calendar"
|
|
260
|
+
:meta="metaRecord"
|
|
261
|
+
meta-key="year"
|
|
262
|
+
@patch="patchMeta"
|
|
263
|
+
/>
|
|
264
|
+
<AMetaChip
|
|
265
|
+
field-type="text"
|
|
266
|
+
label="Director"
|
|
267
|
+
icon="i-lucide-user-round"
|
|
268
|
+
:meta="metaRecord"
|
|
269
|
+
meta-key="director"
|
|
270
|
+
@patch="patchMeta"
|
|
271
|
+
/>
|
|
272
|
+
<AMetaChip
|
|
273
|
+
field-type="url"
|
|
274
|
+
label="Video URL"
|
|
275
|
+
:meta="metaRecord"
|
|
276
|
+
meta-key="videoUrl"
|
|
277
|
+
@patch="patchMeta"
|
|
278
|
+
/>
|
|
279
|
+
<UButton
|
|
280
|
+
icon="i-lucide-film"
|
|
281
|
+
size="xs"
|
|
282
|
+
color="neutral"
|
|
283
|
+
variant="soft"
|
|
284
|
+
:loading="attaching"
|
|
285
|
+
:label="hasUpload ? 'Replace film' : 'Add film'"
|
|
286
|
+
@click="filmInput?.click()"
|
|
287
|
+
/>
|
|
288
|
+
<input
|
|
289
|
+
ref="filmInput"
|
|
290
|
+
type="file"
|
|
291
|
+
accept="video/*"
|
|
292
|
+
class="hidden"
|
|
293
|
+
@change="onFilmPicked"
|
|
294
|
+
>
|
|
295
|
+
<UButton
|
|
296
|
+
icon="i-lucide-image-up"
|
|
297
|
+
size="xs"
|
|
298
|
+
color="neutral"
|
|
299
|
+
variant="ghost"
|
|
300
|
+
label="Poster"
|
|
301
|
+
@click="posterInput?.click()"
|
|
302
|
+
/>
|
|
303
|
+
<input
|
|
304
|
+
ref="posterInput"
|
|
305
|
+
type="file"
|
|
306
|
+
accept="image/*"
|
|
307
|
+
class="hidden"
|
|
308
|
+
@change="onPosterPicked"
|
|
309
|
+
>
|
|
310
|
+
</div>
|
|
311
|
+
</header>
|
|
312
|
+
|
|
313
|
+
<!-- ── The player ──────────────────────────────────────────────────── -->
|
|
314
|
+
<section
|
|
315
|
+
ref="playerEl"
|
|
316
|
+
v-motion="junMotion(junStagger(0, { delayMs: 0 }))"
|
|
317
|
+
class="relative overflow-hidden rounded-2xl bg-black shadow-2xl transition-shadow duration-200"
|
|
318
|
+
:class="[
|
|
319
|
+
lightsOut ? 'z-30 ring-1 ring-white/10' : '',
|
|
320
|
+
screenDrop ? 'ring-2 ring-white/60' : ''
|
|
321
|
+
]"
|
|
322
|
+
@dragover="onScreenDragOver"
|
|
323
|
+
@dragleave="onScreenDragLeave"
|
|
324
|
+
@drop="onScreenDrop"
|
|
325
|
+
>
|
|
326
|
+
<JunMedia
|
|
327
|
+
v-if="hasUpload"
|
|
328
|
+
:doc-id="docId"
|
|
329
|
+
:upload-id="meta.mediaUploadId"
|
|
330
|
+
:mime-type="meta.mediaMimeType || 'video/mp4'"
|
|
331
|
+
:alt="title"
|
|
332
|
+
:poster="posterUrl"
|
|
333
|
+
media-class="w-full aspect-video bg-black"
|
|
334
|
+
@media="onMediaReady"
|
|
335
|
+
/>
|
|
336
|
+
|
|
337
|
+
<JunVideoEmbed
|
|
338
|
+
v-else-if="hasEmbed"
|
|
339
|
+
:url="meta.videoUrl"
|
|
340
|
+
:poster="posterUrl"
|
|
341
|
+
:title="title"
|
|
342
|
+
:start="embedStart"
|
|
343
|
+
/>
|
|
344
|
+
|
|
345
|
+
<div
|
|
346
|
+
v-else
|
|
347
|
+
class="flex aspect-video w-full items-center justify-center bg-gradient-to-b from-zinc-900 to-black text-white/50"
|
|
348
|
+
>
|
|
349
|
+
<div class="text-center">
|
|
350
|
+
<UIcon
|
|
351
|
+
:name="attaching ? 'i-lucide-loader-circle' : 'i-lucide-clapperboard'"
|
|
352
|
+
class="mb-2 size-10"
|
|
353
|
+
:class="attaching ? 'animate-spin' : ''"
|
|
354
|
+
/>
|
|
355
|
+
<p class="text-sm">
|
|
356
|
+
<template v-if="attaching">
|
|
357
|
+
Adding the film…
|
|
358
|
+
</template>
|
|
359
|
+
<template v-else-if="editing">
|
|
360
|
+
Drop a video file here, or paste a link into the chip above.
|
|
361
|
+
</template>
|
|
362
|
+
<template v-else>
|
|
363
|
+
No film attached yet.
|
|
364
|
+
</template>
|
|
365
|
+
</p>
|
|
366
|
+
</div>
|
|
367
|
+
</div>
|
|
368
|
+
</section>
|
|
369
|
+
|
|
370
|
+
<div class="mt-3 flex flex-wrap items-center gap-2">
|
|
371
|
+
<UButton
|
|
372
|
+
:icon="lightsOut ? 'i-lucide-sun' : 'i-lucide-moon'"
|
|
373
|
+
size="xs"
|
|
374
|
+
color="neutral"
|
|
375
|
+
variant="ghost"
|
|
376
|
+
:label="lightsOut ? 'Lights on' : 'Lights out'"
|
|
377
|
+
:class="lightsOut ? 'relative z-30' : ''"
|
|
378
|
+
@click="lightsOut = !lightsOut"
|
|
379
|
+
/>
|
|
380
|
+
<UButton
|
|
381
|
+
icon="i-lucide-maximize"
|
|
382
|
+
size="xs"
|
|
383
|
+
color="neutral"
|
|
384
|
+
variant="ghost"
|
|
385
|
+
label="Fullscreen"
|
|
386
|
+
:class="lightsOut ? 'relative z-30' : ''"
|
|
387
|
+
@click="toggleFullscreen"
|
|
388
|
+
/>
|
|
389
|
+
<UButton
|
|
390
|
+
v-if="editing && hasUpload"
|
|
391
|
+
icon="i-lucide-bookmark-plus"
|
|
392
|
+
size="xs"
|
|
393
|
+
color="neutral"
|
|
394
|
+
variant="ghost"
|
|
395
|
+
label="Chapter here"
|
|
396
|
+
@click="addChapter"
|
|
397
|
+
/>
|
|
398
|
+
<a
|
|
399
|
+
v-if="source.kind !== 'unknown' && source.href"
|
|
400
|
+
:href="source.href"
|
|
401
|
+
target="_blank"
|
|
402
|
+
rel="noopener noreferrer"
|
|
403
|
+
class="ml-auto text-xs text-dimmed transition-colors hover:text-default"
|
|
404
|
+
>
|
|
405
|
+
Open original ↗
|
|
406
|
+
</a>
|
|
407
|
+
</div>
|
|
408
|
+
|
|
409
|
+
<!-- ── Watching now ────────────────────────────────────────────────── -->
|
|
410
|
+
<section
|
|
411
|
+
v-if="watchers.length"
|
|
412
|
+
class="mt-5 rounded-xl bg-black/5 px-4 py-3 dark:bg-white/5"
|
|
413
|
+
>
|
|
414
|
+
<h2 class="mb-2 text-xs font-medium tracking-[0.22em] text-dimmed uppercase">
|
|
415
|
+
Watching now
|
|
416
|
+
</h2>
|
|
417
|
+
<ul class="flex flex-wrap gap-2">
|
|
418
|
+
<li
|
|
419
|
+
v-for="w in watchers"
|
|
420
|
+
:key="w.clientId"
|
|
421
|
+
>
|
|
422
|
+
<button
|
|
423
|
+
type="button"
|
|
424
|
+
class="flex cursor-pointer items-center gap-2 rounded-full bg-black/5 px-2.5 py-1 text-xs transition-colors hover:bg-black/10 dark:bg-white/10 dark:hover:bg-white/15"
|
|
425
|
+
:title="`Jump to ${junFormatTime(w.t)}`"
|
|
426
|
+
@click="jumpTo(w.t)"
|
|
427
|
+
>
|
|
428
|
+
<span
|
|
429
|
+
class="size-2 rounded-full"
|
|
430
|
+
:style="{ background: w.color }"
|
|
431
|
+
/>
|
|
432
|
+
<span class="text-default">{{ w.name }}</span>
|
|
433
|
+
<span class="tabular-nums text-dimmed">{{ junFormatTime(w.t) }}</span>
|
|
434
|
+
</button>
|
|
435
|
+
</li>
|
|
436
|
+
</ul>
|
|
437
|
+
</section>
|
|
438
|
+
|
|
439
|
+
<!-- ── Chapters ────────────────────────────────────────────────────── -->
|
|
440
|
+
<section
|
|
441
|
+
v-if="chapters.length || editing"
|
|
442
|
+
class="mt-8"
|
|
443
|
+
>
|
|
444
|
+
<div class="mb-3 flex items-baseline gap-3">
|
|
445
|
+
<h2 class="text-xs font-medium tracking-[0.22em] text-dimmed uppercase">
|
|
446
|
+
Chapters
|
|
447
|
+
</h2>
|
|
448
|
+
<div class="h-px flex-1 bg-black/10 dark:bg-white/10" />
|
|
449
|
+
</div>
|
|
450
|
+
<ul class="flex flex-col gap-1">
|
|
451
|
+
<li
|
|
452
|
+
v-for="c in chapters"
|
|
453
|
+
:key="c.id"
|
|
454
|
+
>
|
|
455
|
+
<JunItemMenu
|
|
456
|
+
:entry="c"
|
|
457
|
+
:tree="tree"
|
|
458
|
+
no-open
|
|
459
|
+
>
|
|
460
|
+
<button
|
|
461
|
+
type="button"
|
|
462
|
+
class="flex w-full cursor-pointer items-center gap-3 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/5 dark:hover:bg-white/5"
|
|
463
|
+
@click="jumpTo(c.meta.t)"
|
|
464
|
+
>
|
|
465
|
+
<span class="w-14 shrink-0 text-xs tabular-nums text-dimmed">
|
|
466
|
+
{{ junFormatTime(c.meta.t) }}
|
|
467
|
+
</span>
|
|
468
|
+
<span class="min-w-0 flex-1 truncate text-sm text-default">{{ c.label }}</span>
|
|
469
|
+
<UIcon
|
|
470
|
+
name="i-lucide-play"
|
|
471
|
+
class="size-3.5 shrink-0 text-dimmed"
|
|
472
|
+
/>
|
|
473
|
+
</button>
|
|
474
|
+
</JunItemMenu>
|
|
475
|
+
</li>
|
|
476
|
+
</ul>
|
|
477
|
+
<p
|
|
478
|
+
v-if="editing && !chapters.length"
|
|
479
|
+
class="px-3 text-xs text-dimmed italic"
|
|
480
|
+
>
|
|
481
|
+
Play the film and press “Chapter here” to mark a moment.
|
|
482
|
+
</p>
|
|
483
|
+
</section>
|
|
484
|
+
|
|
485
|
+
<!-- Children that are not chapters. Listed rather than dropped. -->
|
|
486
|
+
<section
|
|
487
|
+
v-if="otherChildren.length"
|
|
488
|
+
class="mt-8"
|
|
489
|
+
>
|
|
490
|
+
<div class="mb-3 flex items-baseline gap-3">
|
|
491
|
+
<h2 class="text-xs font-medium tracking-[0.22em] text-dimmed uppercase">
|
|
492
|
+
More
|
|
493
|
+
</h2>
|
|
494
|
+
<div class="h-px flex-1 bg-black/10 dark:bg-white/10" />
|
|
495
|
+
</div>
|
|
496
|
+
<ul class="flex flex-wrap gap-2">
|
|
497
|
+
<li
|
|
498
|
+
v-for="child in otherChildren"
|
|
499
|
+
:key="child.id"
|
|
500
|
+
>
|
|
501
|
+
<JunItemMenu
|
|
502
|
+
:entry="child"
|
|
503
|
+
:tree="tree"
|
|
504
|
+
>
|
|
505
|
+
<UButton
|
|
506
|
+
:to="getDocUrl(child.id)"
|
|
507
|
+
icon="i-lucide-file-text"
|
|
508
|
+
color="neutral"
|
|
509
|
+
variant="soft"
|
|
510
|
+
size="xs"
|
|
511
|
+
:label="child.label"
|
|
512
|
+
/>
|
|
513
|
+
</JunItemMenu>
|
|
514
|
+
</li>
|
|
515
|
+
</ul>
|
|
516
|
+
</section>
|
|
517
|
+
|
|
518
|
+
<hr class="my-8 border-default">
|
|
519
|
+
|
|
520
|
+
<div class="jun-movie-body">
|
|
521
|
+
<AEditor
|
|
522
|
+
:doc-id="docId"
|
|
523
|
+
:doc-label="title"
|
|
524
|
+
:doc-meta="metaRecord"
|
|
525
|
+
:editable="editing"
|
|
526
|
+
:show-toolbar="editing"
|
|
527
|
+
:show-suggestion-menu="editing"
|
|
528
|
+
:show-drag-handle="editing"
|
|
529
|
+
:show-breadcrumb="false"
|
|
530
|
+
:show-sub-pages="false"
|
|
531
|
+
placeholder="No notes on this one yet."
|
|
532
|
+
/>
|
|
533
|
+
</div>
|
|
534
|
+
</div>
|
|
535
|
+
</template>
|
|
536
|
+
|
|
537
|
+
<style scoped>
|
|
538
|
+
.jun-lights-enter-active,.jun-lights-leave-active{transition:opacity .4s ease}.jun-lights-enter-from,.jun-lights-leave-to{opacity:0}.jun-movie-body :deep(.document-header){display:none}.jun-movie-body :deep([data-meta-key=director]),.jun-movie-body :deep([data-meta-key=videoUrl]),.jun-movie-body :deep([data-meta-key=year]){display:none}.jun-movie-body :deep(.ProseMirror),.jun-movie-body :deep(.aeditor-canvas){padding:0}
|
|
539
|
+
</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;
|