@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,465 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, ref } from "vue";
|
|
3
|
+
import {
|
|
4
|
+
JUN_CINEMA_STATUSES,
|
|
5
|
+
junFormatTime,
|
|
6
|
+
junIsVideoFile,
|
|
7
|
+
junMotion,
|
|
8
|
+
junStagger,
|
|
9
|
+
junVideoSource,
|
|
10
|
+
useAbracadabra,
|
|
11
|
+
useChildTree,
|
|
12
|
+
useDocSlugs,
|
|
13
|
+
useDocTree,
|
|
14
|
+
useJunGroupedDnD,
|
|
15
|
+
useJunMediaImport,
|
|
16
|
+
useJunPageType,
|
|
17
|
+
useJunRename,
|
|
18
|
+
useJunStudio,
|
|
19
|
+
useJunUpload,
|
|
20
|
+
useJunViewingAccent
|
|
21
|
+
} from "#imports";
|
|
22
|
+
const props = defineProps({
|
|
23
|
+
docId: { type: String, required: true },
|
|
24
|
+
docLabel: { type: String, required: false },
|
|
25
|
+
docMeta: { type: Object, required: false },
|
|
26
|
+
childProvider: { type: null, required: false },
|
|
27
|
+
editable: { type: Boolean, required: false }
|
|
28
|
+
});
|
|
29
|
+
const abra = useAbracadabra();
|
|
30
|
+
const tree = useChildTree(abra.doc, props.docId);
|
|
31
|
+
const { getEntry } = useDocTree();
|
|
32
|
+
const { getDocUrl } = useDocSlugs();
|
|
33
|
+
const { editing } = useJunStudio();
|
|
34
|
+
const { renameDoc } = useJunRename();
|
|
35
|
+
const { uploadTo, imageFiles } = useJunUpload();
|
|
36
|
+
const { importMedia, videoFiles } = useJunMediaImport();
|
|
37
|
+
const { accentInsetStyle, accentTitle } = useJunViewingAccent();
|
|
38
|
+
const { typeIdFor } = useJunPageType();
|
|
39
|
+
const filmType = computed(() => typeIdFor("movie"));
|
|
40
|
+
const pageTitle = computed(() => getEntry(props.docId)?.label ?? props.docLabel ?? "Cinema");
|
|
41
|
+
const subtitle = computed(() => {
|
|
42
|
+
const meta = getEntry(props.docId)?.meta;
|
|
43
|
+
const ex = meta?.excerpt ?? props.docMeta?.excerpt;
|
|
44
|
+
return typeof ex === "string" && ex.trim() ? ex : void 0;
|
|
45
|
+
});
|
|
46
|
+
function renamePage(t) {
|
|
47
|
+
renameDoc(props.docId, t);
|
|
48
|
+
}
|
|
49
|
+
function renameSubtitle(s) {
|
|
50
|
+
tree.updateMeta(props.docId, { excerpt: s || void 0 });
|
|
51
|
+
}
|
|
52
|
+
const items = computed(
|
|
53
|
+
() => (tree.childrenOf(null) ?? []).filter((e) => !!e.label)
|
|
54
|
+
);
|
|
55
|
+
const SECTION_ORDER = [
|
|
56
|
+
{ status: "watching", title: "Watching" },
|
|
57
|
+
{ status: "watchlist", title: "Up next" },
|
|
58
|
+
{ status: "seen", title: "Seen" }
|
|
59
|
+
];
|
|
60
|
+
const shelvesEl = ref(null);
|
|
61
|
+
const {
|
|
62
|
+
orderedItems,
|
|
63
|
+
dragId,
|
|
64
|
+
hoverGroup,
|
|
65
|
+
onItemDragStart,
|
|
66
|
+
onItemDragEnd,
|
|
67
|
+
onGroupDragOver,
|
|
68
|
+
onGroupDragLeave,
|
|
69
|
+
onGroupDrop
|
|
70
|
+
} = useJunGroupedDnD({
|
|
71
|
+
tree,
|
|
72
|
+
containerDocId: props.docId,
|
|
73
|
+
items,
|
|
74
|
+
containerEl: shelvesEl,
|
|
75
|
+
groupKey: "status",
|
|
76
|
+
// "Unsorted" is a BUCKET for foreign values, not a value of its own —
|
|
77
|
+
// dropping into it clears the key, which shelves the film under "Up next",
|
|
78
|
+
// the state a film starts in.
|
|
79
|
+
groupValueFor: (section) => section === "unsorted" ? void 0 : section,
|
|
80
|
+
ghostIconFor: () => "i-lucide-film"
|
|
81
|
+
});
|
|
82
|
+
const sections = computed(() => {
|
|
83
|
+
const all = orderedItems.value;
|
|
84
|
+
const out = SECTION_ORDER.map((s) => ({
|
|
85
|
+
...s,
|
|
86
|
+
items: all.filter((e) => (e.meta?.status ?? "watchlist") === s.status)
|
|
87
|
+
})).filter((s) => s.items.length || editing.value);
|
|
88
|
+
const known = new Set(SECTION_ORDER.map((s) => s.status));
|
|
89
|
+
const unsorted = all.filter((e) => !known.has(e.meta?.status ?? "watchlist"));
|
|
90
|
+
if (unsorted.length) out.push({ status: "unsorted", title: "Unsorted", items: unsorted });
|
|
91
|
+
return out;
|
|
92
|
+
});
|
|
93
|
+
function playable(film) {
|
|
94
|
+
if (film.meta?.mediaUploadId) return true;
|
|
95
|
+
return junVideoSource(film.meta?.videoUrl).kind !== "unknown";
|
|
96
|
+
}
|
|
97
|
+
const fileInput = ref(null);
|
|
98
|
+
const dropActive = ref(false);
|
|
99
|
+
const importing = ref(false);
|
|
100
|
+
const linkOpen = ref(false);
|
|
101
|
+
const linkValue = ref("");
|
|
102
|
+
async function addFilms(files, status = "watchlist") {
|
|
103
|
+
const videos = files.filter(junIsVideoFile);
|
|
104
|
+
if (!videos.length || importing.value) return;
|
|
105
|
+
importing.value = true;
|
|
106
|
+
try {
|
|
107
|
+
for (const file of videos) {
|
|
108
|
+
await importMedia(file, props.docId, { type: filmType.value, meta: { status } });
|
|
109
|
+
}
|
|
110
|
+
} finally {
|
|
111
|
+
importing.value = false;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
function onFilesPicked(e) {
|
|
115
|
+
const input = e.target;
|
|
116
|
+
if (input.files) void addFilms(Array.from(input.files));
|
|
117
|
+
input.value = "";
|
|
118
|
+
}
|
|
119
|
+
function onPageDragOver(e) {
|
|
120
|
+
if (!editing.value || !e.dataTransfer?.types.includes("Files")) return;
|
|
121
|
+
e.preventDefault();
|
|
122
|
+
e.dataTransfer.dropEffect = "copy";
|
|
123
|
+
dropActive.value = true;
|
|
124
|
+
}
|
|
125
|
+
function onPageDragLeave(e) {
|
|
126
|
+
const related = e.relatedTarget;
|
|
127
|
+
if (related && e.currentTarget.contains(related)) return;
|
|
128
|
+
dropActive.value = false;
|
|
129
|
+
}
|
|
130
|
+
function onPageDrop(e) {
|
|
131
|
+
if (!editing.value) return;
|
|
132
|
+
const videos = videoFiles(e.dataTransfer);
|
|
133
|
+
if (!videos.length) return;
|
|
134
|
+
e.preventDefault();
|
|
135
|
+
dropActive.value = false;
|
|
136
|
+
void addFilms(videos);
|
|
137
|
+
}
|
|
138
|
+
async function addByLink() {
|
|
139
|
+
const url = linkValue.value.trim();
|
|
140
|
+
if (!url) return;
|
|
141
|
+
const id = await tree.createChildRegistered(null, "New film", filmType.value);
|
|
142
|
+
tree.updateMeta(id, {
|
|
143
|
+
status: "watchlist",
|
|
144
|
+
videoUrl: url,
|
|
145
|
+
date: (/* @__PURE__ */ new Date()).toISOString()
|
|
146
|
+
});
|
|
147
|
+
linkValue.value = "";
|
|
148
|
+
linkOpen.value = false;
|
|
149
|
+
}
|
|
150
|
+
async function addEmpty(status) {
|
|
151
|
+
const id = await tree.createChildRegistered(null, "New film", filmType.value);
|
|
152
|
+
tree.updateMeta(id, { status });
|
|
153
|
+
}
|
|
154
|
+
const posterDropId = ref(null);
|
|
155
|
+
function onTileDragOver(film, e) {
|
|
156
|
+
if (!editing.value || !e.dataTransfer?.types.includes("Files")) return;
|
|
157
|
+
e.stopPropagation();
|
|
158
|
+
e.preventDefault();
|
|
159
|
+
e.dataTransfer.dropEffect = "copy";
|
|
160
|
+
posterDropId.value = film.id;
|
|
161
|
+
}
|
|
162
|
+
async function onTileDrop(film, e) {
|
|
163
|
+
if (!editing.value) return;
|
|
164
|
+
const img = imageFiles(e.dataTransfer)[0];
|
|
165
|
+
const video = videoFiles(e.dataTransfer)[0];
|
|
166
|
+
if (!img && !video) return;
|
|
167
|
+
e.stopPropagation();
|
|
168
|
+
e.preventDefault();
|
|
169
|
+
posterDropId.value = null;
|
|
170
|
+
if (img) {
|
|
171
|
+
const res = await uploadTo(film.id, img);
|
|
172
|
+
if (res) tree.updateMeta(film.id, { coverUploadId: res.id, coverMimeType: res.mimeType });
|
|
173
|
+
}
|
|
174
|
+
if (video) await attachFilm(film, video);
|
|
175
|
+
}
|
|
176
|
+
async function attachFilm(film, file) {
|
|
177
|
+
importing.value = true;
|
|
178
|
+
try {
|
|
179
|
+
const res = await uploadTo(film.id, file);
|
|
180
|
+
if (!res) return;
|
|
181
|
+
const entry = tree.treeMap.get(film.id);
|
|
182
|
+
if (!entry) return;
|
|
183
|
+
tree.treeMap.set(film.id, {
|
|
184
|
+
...entry,
|
|
185
|
+
...filmType.value ? { type: filmType.value } : {},
|
|
186
|
+
meta: { ...entry.meta ?? {}, mediaUploadId: res.id, mediaMimeType: res.mimeType },
|
|
187
|
+
updatedAt: Date.now()
|
|
188
|
+
});
|
|
189
|
+
} finally {
|
|
190
|
+
importing.value = false;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
const statusOptions = [...JUN_CINEMA_STATUSES];
|
|
194
|
+
function setRating(film, value) {
|
|
195
|
+
const next = (film.meta?.rating ?? 0) === value ? void 0 : value;
|
|
196
|
+
tree.updateMeta(film.id, { rating: next });
|
|
197
|
+
}
|
|
198
|
+
</script>
|
|
199
|
+
|
|
200
|
+
<template>
|
|
201
|
+
<div
|
|
202
|
+
class="relative mx-auto w-full max-w-6xl rounded-xl px-4 pt-12 pb-16 transition-shadow duration-200 sm:px-8"
|
|
203
|
+
:class="dropActive ? 'ring-2 ring-inset ring-black/20 dark:ring-white/25' : ''"
|
|
204
|
+
@dragover="onPageDragOver"
|
|
205
|
+
@dragleave="onPageDragLeave"
|
|
206
|
+
@drop="onPageDrop"
|
|
207
|
+
>
|
|
208
|
+
<JunPageHero
|
|
209
|
+
:title="pageTitle"
|
|
210
|
+
:subtitle="subtitle"
|
|
211
|
+
:editable="editing"
|
|
212
|
+
@rename="renamePage"
|
|
213
|
+
@rename-subtitle="renameSubtitle"
|
|
214
|
+
/>
|
|
215
|
+
|
|
216
|
+
<div
|
|
217
|
+
v-if="editing"
|
|
218
|
+
class="mb-8 flex flex-wrap items-center gap-2"
|
|
219
|
+
>
|
|
220
|
+
<input
|
|
221
|
+
ref="fileInput"
|
|
222
|
+
type="file"
|
|
223
|
+
accept="video/*"
|
|
224
|
+
multiple
|
|
225
|
+
class="hidden"
|
|
226
|
+
@change="onFilesPicked"
|
|
227
|
+
>
|
|
228
|
+
<UButton
|
|
229
|
+
icon="i-lucide-film"
|
|
230
|
+
size="sm"
|
|
231
|
+
color="neutral"
|
|
232
|
+
variant="soft"
|
|
233
|
+
:loading="importing"
|
|
234
|
+
label="Add a film"
|
|
235
|
+
@click="fileInput?.click()"
|
|
236
|
+
/>
|
|
237
|
+
<UButton
|
|
238
|
+
icon="i-lucide-link"
|
|
239
|
+
size="sm"
|
|
240
|
+
color="neutral"
|
|
241
|
+
variant="ghost"
|
|
242
|
+
label="Add by link"
|
|
243
|
+
@click="linkOpen = !linkOpen"
|
|
244
|
+
/>
|
|
245
|
+
<span class="text-xs text-dimmed">or drop video files anywhere on this page</span>
|
|
246
|
+
|
|
247
|
+
<div
|
|
248
|
+
v-if="linkOpen"
|
|
249
|
+
class="flex w-full items-center gap-2 pt-2"
|
|
250
|
+
>
|
|
251
|
+
<UInput
|
|
252
|
+
v-model="linkValue"
|
|
253
|
+
placeholder="https://www.youtube.com/watch?v=…"
|
|
254
|
+
class="max-w-md flex-1"
|
|
255
|
+
size="sm"
|
|
256
|
+
autofocus
|
|
257
|
+
@keydown.enter="addByLink"
|
|
258
|
+
/>
|
|
259
|
+
<UButton
|
|
260
|
+
size="sm"
|
|
261
|
+
color="neutral"
|
|
262
|
+
variant="soft"
|
|
263
|
+
label="Add"
|
|
264
|
+
:disabled="!linkValue.trim()"
|
|
265
|
+
@click="addByLink"
|
|
266
|
+
/>
|
|
267
|
+
</div>
|
|
268
|
+
</div>
|
|
269
|
+
|
|
270
|
+
<div
|
|
271
|
+
v-if="!items.length && !editing"
|
|
272
|
+
class="py-16 text-center"
|
|
273
|
+
>
|
|
274
|
+
<UIcon
|
|
275
|
+
name="i-lucide-clapperboard"
|
|
276
|
+
class="mb-3 size-10 text-dimmed"
|
|
277
|
+
/>
|
|
278
|
+
<p class="text-sm text-muted">
|
|
279
|
+
Nothing showing yet.
|
|
280
|
+
</p>
|
|
281
|
+
</div>
|
|
282
|
+
|
|
283
|
+
<div ref="shelvesEl">
|
|
284
|
+
<section
|
|
285
|
+
v-for="(section, si) in sections"
|
|
286
|
+
:key="section.status"
|
|
287
|
+
class="mb-10 rounded-xl transition-shadow duration-200 last:mb-0"
|
|
288
|
+
:class="hoverGroup === section.status ? 'ring-2 ring-inset ring-black/20 dark:ring-white/25' : ''"
|
|
289
|
+
@dragover="onGroupDragOver(section.status, $event)"
|
|
290
|
+
@dragleave="onGroupDragLeave($event)"
|
|
291
|
+
@drop="onGroupDrop(section.status, $event)"
|
|
292
|
+
>
|
|
293
|
+
<div class="mb-4 flex items-baseline gap-3 px-1">
|
|
294
|
+
<h2 class="text-xs font-medium tracking-[0.22em] text-dimmed uppercase">
|
|
295
|
+
{{ section.title }}
|
|
296
|
+
</h2>
|
|
297
|
+
<div class="h-px flex-1 bg-black/10 dark:bg-white/10" />
|
|
298
|
+
<UButton
|
|
299
|
+
v-if="editing && section.status !== 'unsorted'"
|
|
300
|
+
icon="i-lucide-plus"
|
|
301
|
+
size="xs"
|
|
302
|
+
color="neutral"
|
|
303
|
+
variant="ghost"
|
|
304
|
+
aria-label="Add film"
|
|
305
|
+
@click="addEmpty(section.status)"
|
|
306
|
+
/>
|
|
307
|
+
</div>
|
|
308
|
+
|
|
309
|
+
<TransitionGroup
|
|
310
|
+
tag="ul"
|
|
311
|
+
name="jun-cinema"
|
|
312
|
+
class="grid grid-cols-2 gap-4 px-1 sm:grid-cols-3 lg:grid-cols-5"
|
|
313
|
+
>
|
|
314
|
+
<li
|
|
315
|
+
v-for="(film, i) in section.items"
|
|
316
|
+
:key="film.id"
|
|
317
|
+
v-motion="junMotion(junStagger(Math.min(si * 3 + i, 10), { delayMs: 45 }))"
|
|
318
|
+
:data-dnd-id="film.id"
|
|
319
|
+
:draggable="editing ? true : void 0"
|
|
320
|
+
:class="[
|
|
321
|
+
'rounded-xl transition-[transform,box-shadow,opacity] duration-200',
|
|
322
|
+
editing ? dragId === film.id ? 'cursor-grabbing' : 'cursor-grab' : '',
|
|
323
|
+
dragId === film.id ? 'scale-[1.02] opacity-90 shadow-lg shadow-black/20' : ''
|
|
324
|
+
]"
|
|
325
|
+
@dragstart="onItemDragStart(film, $event)"
|
|
326
|
+
@dragend="onItemDragEnd($event)"
|
|
327
|
+
>
|
|
328
|
+
<JunItemMenu
|
|
329
|
+
:entry="film"
|
|
330
|
+
:tree="tree"
|
|
331
|
+
:siblings="section.items.map((e) => e.id)"
|
|
332
|
+
>
|
|
333
|
+
<NuxtLink
|
|
334
|
+
:to="getDocUrl(film.id)"
|
|
335
|
+
class="group block"
|
|
336
|
+
:title="accentTitle(film.id)"
|
|
337
|
+
@dragover="onTileDragOver(film, $event)"
|
|
338
|
+
@dragleave="posterDropId === film.id && (posterDropId = null)"
|
|
339
|
+
@drop="onTileDrop(film, $event)"
|
|
340
|
+
>
|
|
341
|
+
<div
|
|
342
|
+
class="jun-card relative aspect-[2/3] overflow-hidden rounded-xl transition-all duration-300 group-hover:scale-[1.02] group-hover:shadow-2xl"
|
|
343
|
+
:class="posterDropId === film.id ? 'ring-2 ring-black/40 dark:ring-white/50' : ''"
|
|
344
|
+
>
|
|
345
|
+
<span
|
|
346
|
+
v-if="accentInsetStyle(film.id)"
|
|
347
|
+
aria-hidden="true"
|
|
348
|
+
class="pointer-events-none absolute inset-0 z-10 rounded-[inherit]"
|
|
349
|
+
:style="accentInsetStyle(film.id)"
|
|
350
|
+
/>
|
|
351
|
+
|
|
352
|
+
<JunMedia
|
|
353
|
+
v-if="film.meta?.coverUploadId"
|
|
354
|
+
:doc-id="film.id"
|
|
355
|
+
:upload-id="film.meta.coverUploadId"
|
|
356
|
+
:mime-type="film.meta.coverMimeType || 'image/jpeg'"
|
|
357
|
+
:alt="film.label"
|
|
358
|
+
:size="512"
|
|
359
|
+
media-class="h-full w-full object-cover transition-transform duration-500 group-hover:scale-105"
|
|
360
|
+
/>
|
|
361
|
+
<div
|
|
362
|
+
v-else
|
|
363
|
+
class="flex h-full w-full items-center justify-center bg-gradient-to-b from-black/5 to-black/15 dark:from-white/5 dark:to-white/10"
|
|
364
|
+
>
|
|
365
|
+
<UIcon
|
|
366
|
+
name="i-lucide-film"
|
|
367
|
+
class="size-8 text-dimmed"
|
|
368
|
+
/>
|
|
369
|
+
</div>
|
|
370
|
+
|
|
371
|
+
<!-- Play affordance: only when there is something to play. A
|
|
372
|
+
film on the list that nobody has added a source for is
|
|
373
|
+
still a film, and a dead play button would lie. -->
|
|
374
|
+
<span
|
|
375
|
+
v-if="playable(film)"
|
|
376
|
+
aria-hidden="true"
|
|
377
|
+
class="absolute inset-0 flex items-center justify-center bg-black/25 opacity-0 transition-opacity duration-300 group-hover:opacity-100"
|
|
378
|
+
>
|
|
379
|
+
<span class="flex size-11 items-center justify-center rounded-full bg-white/90 text-black shadow-lg">
|
|
380
|
+
<UIcon
|
|
381
|
+
name="i-lucide-play"
|
|
382
|
+
class="size-5 translate-x-0.5"
|
|
383
|
+
/>
|
|
384
|
+
</span>
|
|
385
|
+
</span>
|
|
386
|
+
|
|
387
|
+
<span
|
|
388
|
+
v-if="film.meta?.mediaDuration"
|
|
389
|
+
class="absolute right-2 bottom-2 rounded-full bg-black/65 px-2 py-0.5 text-[11px] tabular-nums text-white/90"
|
|
390
|
+
>
|
|
391
|
+
{{ junFormatTime(film.meta.mediaDuration) }}
|
|
392
|
+
</span>
|
|
393
|
+
</div>
|
|
394
|
+
|
|
395
|
+
<div class="mt-2 px-0.5">
|
|
396
|
+
<p class="truncate text-sm font-medium text-highlighted">
|
|
397
|
+
{{ film.label }}
|
|
398
|
+
</p>
|
|
399
|
+
<p class="truncate text-xs text-muted">
|
|
400
|
+
{{ [film.meta?.year, film.meta?.director].filter(Boolean).join(" \xB7 ") || "\u2014" }}
|
|
401
|
+
</p>
|
|
402
|
+
</div>
|
|
403
|
+
</NuxtLink>
|
|
404
|
+
</JunItemMenu>
|
|
405
|
+
|
|
406
|
+
<div
|
|
407
|
+
v-if="film.meta?.rating || editing"
|
|
408
|
+
class="mt-1 flex items-center gap-0.5 px-0.5"
|
|
409
|
+
>
|
|
410
|
+
<button
|
|
411
|
+
v-for="star in 5"
|
|
412
|
+
:key="star"
|
|
413
|
+
type="button"
|
|
414
|
+
:disabled="!editing"
|
|
415
|
+
:aria-label="`Rate ${star} of 5`"
|
|
416
|
+
class="disabled:cursor-default"
|
|
417
|
+
:class="editing ? 'cursor-pointer transition-transform hover:scale-110' : ''"
|
|
418
|
+
@click="editing && setRating(film, star)"
|
|
419
|
+
>
|
|
420
|
+
<UIcon
|
|
421
|
+
name="i-lucide-star"
|
|
422
|
+
class="size-3"
|
|
423
|
+
:class="star <= (film.meta?.rating ?? 0) ? 'fill-current text-highlighted' : 'text-dimmed opacity-40'"
|
|
424
|
+
/>
|
|
425
|
+
</button>
|
|
426
|
+
</div>
|
|
427
|
+
|
|
428
|
+
<div
|
|
429
|
+
v-if="editing"
|
|
430
|
+
class="mt-1.5 flex flex-wrap gap-1.5 px-0.5"
|
|
431
|
+
>
|
|
432
|
+
<AMetaChip
|
|
433
|
+
field-type="select"
|
|
434
|
+
label="Status"
|
|
435
|
+
icon="i-lucide-bookmark"
|
|
436
|
+
:options="statusOptions"
|
|
437
|
+
:meta="film.meta ?? {}"
|
|
438
|
+
meta-key="status"
|
|
439
|
+
@patch="tree.updateMeta(film.id, $event)"
|
|
440
|
+
/>
|
|
441
|
+
<AMetaChip
|
|
442
|
+
field-type="url"
|
|
443
|
+
label="Video URL"
|
|
444
|
+
:meta="film.meta ?? {}"
|
|
445
|
+
meta-key="videoUrl"
|
|
446
|
+
@patch="tree.updateMeta(film.id, $event)"
|
|
447
|
+
/>
|
|
448
|
+
</div>
|
|
449
|
+
</li>
|
|
450
|
+
</TransitionGroup>
|
|
451
|
+
|
|
452
|
+
<p
|
|
453
|
+
v-if="editing && !section.items.length"
|
|
454
|
+
class="px-1 text-xs text-dimmed italic"
|
|
455
|
+
>
|
|
456
|
+
Empty shelf — drag a film here.
|
|
457
|
+
</p>
|
|
458
|
+
</section>
|
|
459
|
+
</div>
|
|
460
|
+
</div>
|
|
461
|
+
</template>
|
|
462
|
+
|
|
463
|
+
<style scoped>
|
|
464
|
+
.jun-cinema-move{transition:transform .32s cubic-bezier(.22,1,.36,1)}.jun-cinema-enter-active{transition:opacity .3s ease,transform .3s cubic-bezier(.22,1,.36,1)}.jun-cinema-leave-active{position:absolute;transition:opacity .2s ease}.jun-cinema-enter-from,.jun-cinema-leave-to{opacity:0;transform:translateY(-6px)}@media (prefers-reduced-motion:reduce){.jun-cinema-enter-active,.jun-cinema-leave-active,.jun-cinema-move{transition:none}}
|
|
465
|
+
</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;
|