@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,809 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, nextTick, onBeforeUnmount, reactive, ref, watch } from "vue";
|
|
3
|
+
import { useRouter } from "vue-router";
|
|
4
|
+
import { watchDebounced } from "@vueuse/core";
|
|
5
|
+
import { $fetch } from "ofetch";
|
|
6
|
+
import {
|
|
7
|
+
defineShortcuts,
|
|
8
|
+
isJunOwnerOnlyDoc,
|
|
9
|
+
junMatchBest,
|
|
10
|
+
junMatchScore,
|
|
11
|
+
useAbracadabra,
|
|
12
|
+
useDocSlugs,
|
|
13
|
+
useDocTree,
|
|
14
|
+
useJunCommands,
|
|
15
|
+
useJunCreatePage,
|
|
16
|
+
useJunCurrentDoc,
|
|
17
|
+
useJunDocIcon,
|
|
18
|
+
useJunNavSettings,
|
|
19
|
+
useJunOptions,
|
|
20
|
+
useJunRecent,
|
|
21
|
+
useJunSearch,
|
|
22
|
+
useJunStudio,
|
|
23
|
+
useJunTravellers
|
|
24
|
+
} from "#imports";
|
|
25
|
+
const { open, closeSearch } = useJunSearch();
|
|
26
|
+
const { apiBase, typeIds } = useJunOptions();
|
|
27
|
+
const { getDocUrl } = useDocSlugs();
|
|
28
|
+
const { getEntry, entries, topLevelDocs } = useDocTree();
|
|
29
|
+
const { canEdit } = useJunStudio();
|
|
30
|
+
const { commands } = useJunCommands();
|
|
31
|
+
const { createPage } = useJunCreatePage();
|
|
32
|
+
const { currentDocId, isRoot } = useJunCurrentDoc();
|
|
33
|
+
const { recent, record } = useJunRecent();
|
|
34
|
+
const { travellers } = useJunTravellers();
|
|
35
|
+
const nav = useJunNavSettings();
|
|
36
|
+
const abra = useAbracadabra();
|
|
37
|
+
const router = useRouter();
|
|
38
|
+
const docIcon = useJunDocIcon();
|
|
39
|
+
const query = ref("");
|
|
40
|
+
const selected = ref(0);
|
|
41
|
+
const inputEl = ref(null);
|
|
42
|
+
const listEl = ref(null);
|
|
43
|
+
const scope = ref(null);
|
|
44
|
+
watch(currentDocId, (id) => record(id), { immediate: true });
|
|
45
|
+
const escapeHtml = (s) => s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
46
|
+
function markSnippet(text, q) {
|
|
47
|
+
const idx = text.toLowerCase().indexOf(q.toLowerCase());
|
|
48
|
+
if (idx < 0) return escapeHtml(text.slice(0, 140));
|
|
49
|
+
const start = Math.max(0, idx - 40);
|
|
50
|
+
const pre = (start > 0 ? "\u2026" : "") + text.slice(start, idx);
|
|
51
|
+
const hit = text.slice(idx, idx + q.length);
|
|
52
|
+
const post = text.slice(idx + q.length, idx + q.length + 80);
|
|
53
|
+
const tail = idx + q.length + 80 < text.length ? "\u2026" : "";
|
|
54
|
+
return `${escapeHtml(pre)}<mark>${escapeHtml(hit)}</mark>${escapeHtml(post)}${tail}`;
|
|
55
|
+
}
|
|
56
|
+
const trimmed = computed(() => query.value.trim());
|
|
57
|
+
const searching = computed(() => trimmed.value.length >= 2);
|
|
58
|
+
const needle = computed(() => trimmed.value.toLowerCase());
|
|
59
|
+
const clientHits = computed(() => {
|
|
60
|
+
if (!searching.value) return [];
|
|
61
|
+
const q = needle.value;
|
|
62
|
+
const out = [];
|
|
63
|
+
for (const e of entries.value) {
|
|
64
|
+
if (!e.id || e.trashed) continue;
|
|
65
|
+
if (!canEdit.value && isJunOwnerOnlyDoc(e)) continue;
|
|
66
|
+
const label = e.label ?? "";
|
|
67
|
+
const meta = e.meta ?? {};
|
|
68
|
+
const excerpt = [meta.excerpt, meta.description].filter((v) => typeof v === "string" && !!v).join(" \u2014 ");
|
|
69
|
+
const labelScore = junMatchScore(label, q);
|
|
70
|
+
const excerptHit = excerpt.toLowerCase().includes(q);
|
|
71
|
+
if (!labelScore && !excerptHit) continue;
|
|
72
|
+
out.push({
|
|
73
|
+
id: e.id,
|
|
74
|
+
title: label || "Untitled",
|
|
75
|
+
href: getDocUrl(e.id) ?? `/${e.id}`,
|
|
76
|
+
type: e.type ?? "doc",
|
|
77
|
+
parentId: e.parentId ?? null,
|
|
78
|
+
snippet: excerptHit ? markSnippet(excerpt, q) : void 0,
|
|
79
|
+
rank: labelScore || 60
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
return out;
|
|
83
|
+
});
|
|
84
|
+
const serverHits = ref([]);
|
|
85
|
+
const isSearching = ref(false);
|
|
86
|
+
watchDebounced(
|
|
87
|
+
query,
|
|
88
|
+
async (q) => {
|
|
89
|
+
const term = q.trim();
|
|
90
|
+
if (term.length < 2) {
|
|
91
|
+
serverHits.value = [];
|
|
92
|
+
isSearching.value = false;
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
isSearching.value = true;
|
|
96
|
+
try {
|
|
97
|
+
const res = await $fetch(`${apiBase}/search`, {
|
|
98
|
+
query: { q: term, limit: 20 }
|
|
99
|
+
});
|
|
100
|
+
if (query.value.trim() === term) serverHits.value = Array.isArray(res) ? res : [];
|
|
101
|
+
} catch {
|
|
102
|
+
serverHits.value = [];
|
|
103
|
+
} finally {
|
|
104
|
+
isSearching.value = false;
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{ debounce: 180 }
|
|
108
|
+
);
|
|
109
|
+
const mergedHits = computed(() => {
|
|
110
|
+
const byId = /* @__PURE__ */ new Map();
|
|
111
|
+
for (const hit of [...clientHits.value, ...serverHits.value]) {
|
|
112
|
+
const prev = byId.get(hit.id);
|
|
113
|
+
if (!prev) {
|
|
114
|
+
byId.set(hit.id, hit);
|
|
115
|
+
continue;
|
|
116
|
+
}
|
|
117
|
+
const better = hit.rank > prev.rank ? hit : prev;
|
|
118
|
+
byId.set(hit.id, { ...better, snippet: better.snippet ?? prev.snippet ?? hit.snippet });
|
|
119
|
+
}
|
|
120
|
+
return [...byId.values()].sort((a, b) => b.rank - a.rank);
|
|
121
|
+
});
|
|
122
|
+
const labelFor = (hit) => hit.title || getEntry(hit.id)?.label || "Untitled";
|
|
123
|
+
const iconFor = (hit) => {
|
|
124
|
+
const entry = getEntry(hit.id);
|
|
125
|
+
return docIcon(entry?.type ?? hit.type, entry?.meta?.icon);
|
|
126
|
+
};
|
|
127
|
+
const contextFor = (hit) => {
|
|
128
|
+
if (!hit.parentId || hit.parentId === abra.spaceDocId.value) return null;
|
|
129
|
+
return getEntry(hit.parentId)?.label ?? null;
|
|
130
|
+
};
|
|
131
|
+
function snippetFor(hit) {
|
|
132
|
+
if (!hit.snippet) return null;
|
|
133
|
+
const plain = hit.snippet.replace(/<[^>]+>/g, "").trim().toLowerCase();
|
|
134
|
+
if (plain === labelFor(hit).trim().toLowerCase()) return null;
|
|
135
|
+
return hit.snippet;
|
|
136
|
+
}
|
|
137
|
+
function openDoc(id, href) {
|
|
138
|
+
const url = id === abra.spaceDocId.value ? "/" : getDocUrl(id) ?? href;
|
|
139
|
+
if (url) void router.push(url);
|
|
140
|
+
}
|
|
141
|
+
function rowForHit(hit, group) {
|
|
142
|
+
const href = hit.id === abra.spaceDocId.value ? "/" : getDocUrl(hit.id) ?? hit.href;
|
|
143
|
+
return {
|
|
144
|
+
key: `doc:${hit.id}`,
|
|
145
|
+
group,
|
|
146
|
+
label: labelFor(hit),
|
|
147
|
+
icon: iconFor(hit),
|
|
148
|
+
id: hit.id,
|
|
149
|
+
type: getEntry(hit.id)?.type ?? hit.type,
|
|
150
|
+
context: contextFor(hit),
|
|
151
|
+
snippet: snippetFor(hit),
|
|
152
|
+
href,
|
|
153
|
+
run: () => openDoc(hit.id, hit.href)
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
const recentRows = computed(() => {
|
|
157
|
+
if (searching.value) return [];
|
|
158
|
+
const out = [];
|
|
159
|
+
for (const e of recent.value) {
|
|
160
|
+
const entry = getEntry(e.id);
|
|
161
|
+
if (!entry || entry.trashed) continue;
|
|
162
|
+
if (!canEdit.value && isJunOwnerOnlyDoc(entry)) continue;
|
|
163
|
+
if (e.id === currentDocId.value) continue;
|
|
164
|
+
const href = getDocUrl(e.id);
|
|
165
|
+
if (!href) continue;
|
|
166
|
+
out.push({
|
|
167
|
+
key: `recent:${e.id}`,
|
|
168
|
+
group: "Recent",
|
|
169
|
+
label: entry.label || "Untitled",
|
|
170
|
+
icon: docIcon(entry.type, entry.meta?.icon),
|
|
171
|
+
id: e.id,
|
|
172
|
+
type: entry.type,
|
|
173
|
+
context: null,
|
|
174
|
+
href,
|
|
175
|
+
run: () => openDoc(e.id, href)
|
|
176
|
+
});
|
|
177
|
+
if (out.length >= 6) break;
|
|
178
|
+
}
|
|
179
|
+
return out;
|
|
180
|
+
});
|
|
181
|
+
const jumpRows = computed(() => {
|
|
182
|
+
if (searching.value) return [];
|
|
183
|
+
const seen = new Set(recentRows.value.map((r) => r.id));
|
|
184
|
+
return topLevelDocs.value.filter((e) => e.meta?.hidden !== true).filter((e) => !seen.has(e.id)).map((e) => ({
|
|
185
|
+
key: `jump:${e.id}`,
|
|
186
|
+
group: "Pages",
|
|
187
|
+
label: e.label ?? "Untitled",
|
|
188
|
+
icon: docIcon(e.type, e.meta?.icon),
|
|
189
|
+
id: e.id,
|
|
190
|
+
type: e.type,
|
|
191
|
+
context: null,
|
|
192
|
+
href: getDocUrl(e.id) ?? `/${e.id}`,
|
|
193
|
+
run: () => openDoc(e.id)
|
|
194
|
+
}));
|
|
195
|
+
});
|
|
196
|
+
const pageRows = computed(
|
|
197
|
+
() => mergedHits.value.filter((h) => h.rank >= 60).slice(0, 14).map((h) => rowForHit(h, "Pages"))
|
|
198
|
+
);
|
|
199
|
+
const contentRows = computed(
|
|
200
|
+
() => mergedHits.value.filter((h) => h.rank < 60).slice(0, 8).map((h) => rowForHit(h, "Content"))
|
|
201
|
+
);
|
|
202
|
+
const commandRows = computed(() => {
|
|
203
|
+
const all = commands.value.map((c) => ({
|
|
204
|
+
key: `cmd:${c.key}`,
|
|
205
|
+
group: c.group,
|
|
206
|
+
label: c.label,
|
|
207
|
+
icon: c.icon,
|
|
208
|
+
hint: c.hint ?? null,
|
|
209
|
+
keepOpen: c.keepOpen,
|
|
210
|
+
run: c.run,
|
|
211
|
+
score: searching.value ? junMatchBest(needle.value, c.label, c.keywords) : 0
|
|
212
|
+
}));
|
|
213
|
+
if (!searching.value) {
|
|
214
|
+
const perGroup = /* @__PURE__ */ new Map();
|
|
215
|
+
return all.filter((c) => {
|
|
216
|
+
const n = perGroup.get(c.group) ?? 0;
|
|
217
|
+
if (n >= 2) return false;
|
|
218
|
+
perGroup.set(c.group, n + 1);
|
|
219
|
+
return true;
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
return all.filter((c) => c.score > 0).sort((a, b) => b.score - a.score).slice(0, 8);
|
|
223
|
+
});
|
|
224
|
+
const createRows = computed(() => {
|
|
225
|
+
const title = trimmed.value;
|
|
226
|
+
if (!canEdit.value || title.length < 2) return [];
|
|
227
|
+
const exists = mergedHits.value.some((h) => labelFor(h).trim().toLowerCase() === needle.value);
|
|
228
|
+
if (exists) return [];
|
|
229
|
+
const out = [];
|
|
230
|
+
if (currentDocId.value && !isRoot.value) {
|
|
231
|
+
out.push({
|
|
232
|
+
key: "create:child",
|
|
233
|
+
group: "Create",
|
|
234
|
+
label: `Create \u201C${title}\u201D here`,
|
|
235
|
+
icon: "i-lucide-file-plus",
|
|
236
|
+
hint: "child of this page",
|
|
237
|
+
run: () => {
|
|
238
|
+
createPage({ label: title, parentId: currentDocId.value });
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
out.push({
|
|
243
|
+
key: "create:top",
|
|
244
|
+
group: "Create",
|
|
245
|
+
label: `Create \u201C${title}\u201D as a top-level page`,
|
|
246
|
+
icon: "i-lucide-plus",
|
|
247
|
+
run: () => {
|
|
248
|
+
createPage({ label: title });
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
return out;
|
|
252
|
+
});
|
|
253
|
+
const typeKeyByid = computed(
|
|
254
|
+
() => Object.fromEntries(Object.entries(typeIds).map(([key, id]) => [id, key]))
|
|
255
|
+
);
|
|
256
|
+
function typeLabel(type) {
|
|
257
|
+
if (!type) return "Page";
|
|
258
|
+
const key = typeKeyByid.value[type] ?? type.replace(/^jun-/, "");
|
|
259
|
+
return key.charAt(0).toUpperCase() + key.slice(1);
|
|
260
|
+
}
|
|
261
|
+
const unscopedPageRows = computed(() => [
|
|
262
|
+
...recentRows.value,
|
|
263
|
+
...jumpRows.value,
|
|
264
|
+
...pageRows.value,
|
|
265
|
+
...contentRows.value
|
|
266
|
+
]);
|
|
267
|
+
const scopeChips = computed(() => {
|
|
268
|
+
if (!searching.value) return [];
|
|
269
|
+
const counts = /* @__PURE__ */ new Map();
|
|
270
|
+
for (const r of unscopedPageRows.value) {
|
|
271
|
+
if (!r.type) continue;
|
|
272
|
+
counts.set(r.type, (counts.get(r.type) ?? 0) + 1);
|
|
273
|
+
}
|
|
274
|
+
if (counts.size < 2) return [];
|
|
275
|
+
return [...counts.entries()].map(([type, count]) => ({ type, label: typeLabel(type), icon: docIcon(type), count })).sort((a, b) => b.count - a.count || a.label.localeCompare(b.label)).slice(0, 6);
|
|
276
|
+
});
|
|
277
|
+
watch(scopeChips, (chips) => {
|
|
278
|
+
if (scope.value && !chips.some((c) => c.type === scope.value)) scope.value = null;
|
|
279
|
+
});
|
|
280
|
+
const inScope = (row) => !scope.value || row.type === scope.value;
|
|
281
|
+
const rows = computed(() => {
|
|
282
|
+
if (scope.value) {
|
|
283
|
+
return [...pageRows.value, ...contentRows.value, ...jumpRows.value, ...recentRows.value].filter(inScope);
|
|
284
|
+
}
|
|
285
|
+
if (searching.value) {
|
|
286
|
+
return [...pageRows.value, ...contentRows.value, ...commandRows.value, ...createRows.value];
|
|
287
|
+
}
|
|
288
|
+
return [...recentRows.value, ...commandRows.value, ...jumpRows.value];
|
|
289
|
+
});
|
|
290
|
+
const hasRows = computed(() => rows.value.length > 0);
|
|
291
|
+
const presenceOn = (id) => id ? travellers.value.filter((t) => t.docId === id) : [];
|
|
292
|
+
function move(delta) {
|
|
293
|
+
const n = rows.value.length;
|
|
294
|
+
if (!n) return;
|
|
295
|
+
selected.value = (selected.value + delta + n) % n;
|
|
296
|
+
}
|
|
297
|
+
function run(index, newTab = false) {
|
|
298
|
+
const row = rows.value[index];
|
|
299
|
+
if (!row) return;
|
|
300
|
+
if (newTab && row.href) {
|
|
301
|
+
window.open(row.href, "_blank", "noopener");
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
304
|
+
if (!row.keepOpen) {
|
|
305
|
+
closeSearch();
|
|
306
|
+
row.run();
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
row.run();
|
|
310
|
+
query.value = "";
|
|
311
|
+
scope.value = null;
|
|
312
|
+
selected.value = 0;
|
|
313
|
+
}
|
|
314
|
+
function cycleScope(delta) {
|
|
315
|
+
const chips = scopeChips.value;
|
|
316
|
+
if (!chips.length) return;
|
|
317
|
+
const order = [null, ...chips.map((c) => c.type)];
|
|
318
|
+
const at = order.indexOf(scope.value);
|
|
319
|
+
setScope(order[(at + delta + order.length) % order.length] ?? null);
|
|
320
|
+
}
|
|
321
|
+
function setScope(type) {
|
|
322
|
+
scope.value = type;
|
|
323
|
+
selected.value = 0;
|
|
324
|
+
restage();
|
|
325
|
+
}
|
|
326
|
+
function onKeydown(e) {
|
|
327
|
+
const cmd = e.metaKey || e.ctrlKey;
|
|
328
|
+
if (cmd && e.key.toLowerCase() === "k") {
|
|
329
|
+
e.preventDefault();
|
|
330
|
+
closeSearch();
|
|
331
|
+
return;
|
|
332
|
+
}
|
|
333
|
+
if (cmd && /^[1-9]$/.test(e.key)) {
|
|
334
|
+
const n = Number(e.key);
|
|
335
|
+
if (n <= rows.value.length) {
|
|
336
|
+
e.preventDefault();
|
|
337
|
+
selected.value = n - 1;
|
|
338
|
+
run(n - 1);
|
|
339
|
+
}
|
|
340
|
+
return;
|
|
341
|
+
}
|
|
342
|
+
switch (e.key) {
|
|
343
|
+
case "ArrowDown":
|
|
344
|
+
e.preventDefault();
|
|
345
|
+
move(1);
|
|
346
|
+
return;
|
|
347
|
+
case "ArrowUp":
|
|
348
|
+
e.preventDefault();
|
|
349
|
+
move(-1);
|
|
350
|
+
return;
|
|
351
|
+
case "Home":
|
|
352
|
+
e.preventDefault();
|
|
353
|
+
selected.value = 0;
|
|
354
|
+
return;
|
|
355
|
+
case "End":
|
|
356
|
+
e.preventDefault();
|
|
357
|
+
selected.value = Math.max(0, rows.value.length - 1);
|
|
358
|
+
return;
|
|
359
|
+
case "Enter":
|
|
360
|
+
e.preventDefault();
|
|
361
|
+
run(selected.value, cmd);
|
|
362
|
+
return;
|
|
363
|
+
case "Tab":
|
|
364
|
+
if (!scopeChips.value.length) return;
|
|
365
|
+
e.preventDefault();
|
|
366
|
+
cycleScope(e.shiftKey ? -1 : 1);
|
|
367
|
+
return;
|
|
368
|
+
case "Backspace":
|
|
369
|
+
if (query.value.length || !scope.value) return;
|
|
370
|
+
e.preventDefault();
|
|
371
|
+
setScope(null);
|
|
372
|
+
return;
|
|
373
|
+
case "Escape":
|
|
374
|
+
closeSearch();
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
const cursor = reactive({ y: 0, h: 0, shown: false });
|
|
378
|
+
const placing = ref(true);
|
|
379
|
+
function syncCursor() {
|
|
380
|
+
const list = listEl.value;
|
|
381
|
+
if (!list) return;
|
|
382
|
+
const el = list.querySelector(`[data-row="${selected.value}"]`);
|
|
383
|
+
if (!el) {
|
|
384
|
+
cursor.shown = false;
|
|
385
|
+
return;
|
|
386
|
+
}
|
|
387
|
+
cursor.shown = true;
|
|
388
|
+
cursor.y = el.offsetTop;
|
|
389
|
+
cursor.h = el.offsetHeight;
|
|
390
|
+
if (!placing.value) el.scrollIntoView({ block: "nearest" });
|
|
391
|
+
}
|
|
392
|
+
watch([selected, rows], () => {
|
|
393
|
+
void nextTick(() => {
|
|
394
|
+
syncCursor();
|
|
395
|
+
if (!placing.value) return;
|
|
396
|
+
requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
397
|
+
placing.value = false;
|
|
398
|
+
}));
|
|
399
|
+
});
|
|
400
|
+
}, { flush: "post" });
|
|
401
|
+
function hoverSelect(i) {
|
|
402
|
+
if (selected.value === i) return;
|
|
403
|
+
placing.value = true;
|
|
404
|
+
selected.value = i;
|
|
405
|
+
}
|
|
406
|
+
const staged = ref(false);
|
|
407
|
+
let stageTimer = null;
|
|
408
|
+
function restage() {
|
|
409
|
+
staged.value = false;
|
|
410
|
+
void nextTick(() => {
|
|
411
|
+
staged.value = true;
|
|
412
|
+
});
|
|
413
|
+
if (stageTimer) clearTimeout(stageTimer);
|
|
414
|
+
stageTimer = setTimeout(() => {
|
|
415
|
+
staged.value = false;
|
|
416
|
+
}, 700);
|
|
417
|
+
}
|
|
418
|
+
watch(query, () => {
|
|
419
|
+
selected.value = 0;
|
|
420
|
+
staged.value = false;
|
|
421
|
+
});
|
|
422
|
+
const GAP = 8;
|
|
423
|
+
const MAX_W = 672;
|
|
424
|
+
const MAX_H = 544;
|
|
425
|
+
const EDGE = 16;
|
|
426
|
+
const clamp = (v, lo, hi) => Math.min(Math.max(v, lo), hi);
|
|
427
|
+
function positionPanel() {
|
|
428
|
+
if (!import.meta.client) return;
|
|
429
|
+
const root = document.documentElement;
|
|
430
|
+
const bar = document.querySelector(".jun-nav-panel");
|
|
431
|
+
const vw = window.innerWidth;
|
|
432
|
+
const vh = window.innerHeight;
|
|
433
|
+
const set = (k, v) => root.style.setProperty(k, v);
|
|
434
|
+
if (!bar) {
|
|
435
|
+
set("--jun-palette-top", "5.5rem");
|
|
436
|
+
set("--jun-palette-left", "50vw");
|
|
437
|
+
set("--jun-palette-tx", "-50%");
|
|
438
|
+
set("--jun-palette-ty", "0%");
|
|
439
|
+
set("--jun-palette-w", `${Math.min(MAX_W, vw - 32)}px`);
|
|
440
|
+
set("--jun-palette-max-h", `${Math.round(Math.min(MAX_H, vh * 0.6))}px`);
|
|
441
|
+
set("--jun-palette-origin", "top center");
|
|
442
|
+
set("--jun-palette-from", "translateY(-8px)");
|
|
443
|
+
return;
|
|
444
|
+
}
|
|
445
|
+
const r = bar.getBoundingClientRect();
|
|
446
|
+
const placement = root.dataset.junNav || nav.placement.value;
|
|
447
|
+
if (placement === "rail-left" || placement === "rail-right") {
|
|
448
|
+
const room = vw - r.width - 12 - GAP * 2;
|
|
449
|
+
const panelW = Math.max(280, Math.min(MAX_W, room));
|
|
450
|
+
const panelH = Math.round(Math.min(vh * 0.8, MAX_H));
|
|
451
|
+
set("--jun-palette-w", `${panelW}px`);
|
|
452
|
+
set("--jun-palette-max-h", `${panelH}px`);
|
|
453
|
+
set("--jun-palette-top", `${Math.round(clamp(r.top + r.height / 2, panelH / 2 + EDGE, vh - panelH / 2 - EDGE))}px`);
|
|
454
|
+
set("--jun-palette-ty", "-50%");
|
|
455
|
+
if (placement === "rail-left") {
|
|
456
|
+
set("--jun-palette-left", `${Math.round(clamp(r.right + GAP, EDGE, vw - panelW - EDGE))}px`);
|
|
457
|
+
set("--jun-palette-tx", "0%");
|
|
458
|
+
set("--jun-palette-origin", "center left");
|
|
459
|
+
set("--jun-palette-from", "translateX(-10px)");
|
|
460
|
+
} else {
|
|
461
|
+
set("--jun-palette-left", `${Math.round(clamp(r.left - GAP, panelW + EDGE, vw - EDGE))}px`);
|
|
462
|
+
set("--jun-palette-tx", "-100%");
|
|
463
|
+
set("--jun-palette-origin", "center right");
|
|
464
|
+
set("--jun-palette-from", "translateX(10px)");
|
|
465
|
+
}
|
|
466
|
+
return;
|
|
467
|
+
}
|
|
468
|
+
const width = Math.max(320, Math.min(Math.max(r.width, 480), MAX_W, vw - 32));
|
|
469
|
+
set("--jun-palette-w", `${Math.round(width)}px`);
|
|
470
|
+
set("--jun-palette-left", `${Math.round(clamp(r.left + r.width / 2, width / 2 + EDGE, vw - width / 2 - EDGE))}px`);
|
|
471
|
+
set("--jun-palette-tx", "-50%");
|
|
472
|
+
set("--jun-palette-ty", "0%");
|
|
473
|
+
if (placement === "bottom") {
|
|
474
|
+
const top2 = clamp(r.top - GAP, EDGE + 200, vh - EDGE);
|
|
475
|
+
set("--jun-palette-top", `${Math.round(top2)}px`);
|
|
476
|
+
set("--jun-palette-ty", "-100%");
|
|
477
|
+
set("--jun-palette-max-h", `${Math.round(Math.min(MAX_H, Math.max(200, top2 - 24)))}px`);
|
|
478
|
+
set("--jun-palette-origin", "bottom center");
|
|
479
|
+
set("--jun-palette-from", "translateY(8px)");
|
|
480
|
+
return;
|
|
481
|
+
}
|
|
482
|
+
const top = clamp(r.bottom + GAP, EDGE, vh - 200);
|
|
483
|
+
set("--jun-palette-top", `${Math.round(top)}px`);
|
|
484
|
+
set("--jun-palette-max-h", `${Math.round(Math.min(MAX_H, Math.max(200, vh - top - 24)))}px`);
|
|
485
|
+
set("--jun-palette-origin", "top center");
|
|
486
|
+
set("--jun-palette-from", "translateY(-8px)");
|
|
487
|
+
}
|
|
488
|
+
function onViewportChange() {
|
|
489
|
+
if (open.value) positionPanel();
|
|
490
|
+
}
|
|
491
|
+
let followFrame = 0;
|
|
492
|
+
let lastBar = "";
|
|
493
|
+
function followBar() {
|
|
494
|
+
followFrame = requestAnimationFrame(followBar);
|
|
495
|
+
const bar = document.querySelector(".jun-nav-panel");
|
|
496
|
+
const r = bar?.getBoundingClientRect();
|
|
497
|
+
const key = r ? `${Math.round(r.top)}:${Math.round(r.left)}:${Math.round(r.width)}:${Math.round(r.height)}` : "none";
|
|
498
|
+
if (key === lastBar) return;
|
|
499
|
+
lastBar = key;
|
|
500
|
+
positionPanel();
|
|
501
|
+
}
|
|
502
|
+
function stopFollowing() {
|
|
503
|
+
if (followFrame) cancelAnimationFrame(followFrame);
|
|
504
|
+
followFrame = 0;
|
|
505
|
+
lastBar = "";
|
|
506
|
+
}
|
|
507
|
+
if (import.meta.client) {
|
|
508
|
+
window.addEventListener("resize", onViewportChange, { passive: true });
|
|
509
|
+
}
|
|
510
|
+
onBeforeUnmount(() => {
|
|
511
|
+
if (import.meta.client) window.removeEventListener("resize", onViewportChange);
|
|
512
|
+
stopFollowing();
|
|
513
|
+
if (stageTimer) clearTimeout(stageTimer);
|
|
514
|
+
});
|
|
515
|
+
watch(open, async (isOpen) => {
|
|
516
|
+
if (!isOpen) {
|
|
517
|
+
query.value = "";
|
|
518
|
+
scope.value = null;
|
|
519
|
+
serverHits.value = [];
|
|
520
|
+
staged.value = false;
|
|
521
|
+
stopFollowing();
|
|
522
|
+
return;
|
|
523
|
+
}
|
|
524
|
+
selected.value = 0;
|
|
525
|
+
cursor.shown = false;
|
|
526
|
+
placing.value = true;
|
|
527
|
+
positionPanel();
|
|
528
|
+
stopFollowing();
|
|
529
|
+
followBar();
|
|
530
|
+
await nextTick();
|
|
531
|
+
inputEl.value?.focus?.();
|
|
532
|
+
restage();
|
|
533
|
+
await nextTick();
|
|
534
|
+
syncCursor();
|
|
535
|
+
requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
536
|
+
placing.value = false;
|
|
537
|
+
}));
|
|
538
|
+
});
|
|
539
|
+
defineShortcuts({
|
|
540
|
+
meta_k: () => {
|
|
541
|
+
open.value = !open.value;
|
|
542
|
+
},
|
|
543
|
+
ctrl_k: () => {
|
|
544
|
+
open.value = !open.value;
|
|
545
|
+
}
|
|
546
|
+
});
|
|
547
|
+
function headingAt(i) {
|
|
548
|
+
const row = rows.value[i];
|
|
549
|
+
if (!row) return null;
|
|
550
|
+
return i === 0 || rows.value[i - 1].group !== row.group ? row.group : null;
|
|
551
|
+
}
|
|
552
|
+
</script>
|
|
553
|
+
|
|
554
|
+
<template>
|
|
555
|
+
<UModal
|
|
556
|
+
v-model:open="open"
|
|
557
|
+
:ui="{
|
|
558
|
+
// Positioning, sizing and motion all live in `.jun-palette-panel`
|
|
559
|
+
// (unlayered, in `jun.css`) because they are computed from the measured
|
|
560
|
+
// navbar — see `positionPanel()`. What stays here is the SURFACE, and it
|
|
561
|
+
// is the navbar\'s own: the glass recipe on the content element ITSELF,
|
|
562
|
+
// never on a child. The default wrapper clips overflow and a ring is an
|
|
563
|
+
// outset box-shadow, so a ring on a child gets shaved off — which is why
|
|
564
|
+
// this panel once looked border-less next to the bar it came from.
|
|
565
|
+
content: 'jun-palette-panel jun-blur-gradient rounded-lg divide-y-0 shadow-none border-1 border-white/10 dark:border-black/5 ring-1 ring-black/5 dark:ring-white/10',
|
|
566
|
+
overlay: 'bg-black/[0.04] dark:bg-black/25'
|
|
567
|
+
}"
|
|
568
|
+
>
|
|
569
|
+
<template #content>
|
|
570
|
+
<div
|
|
571
|
+
class="flex min-h-0 flex-1 flex-col overflow-hidden rounded-lg"
|
|
572
|
+
@keydown="onKeydown"
|
|
573
|
+
>
|
|
574
|
+
<!-- The input row. Same height and rhythm as a navbar item. -->
|
|
575
|
+
<div class="flex h-12 shrink-0 items-center gap-2.5 border-b border-black/5 px-4 dark:border-white/10">
|
|
576
|
+
<UIcon
|
|
577
|
+
:name="isSearching ? 'i-lucide-loader-circle' : 'i-lucide-search'"
|
|
578
|
+
:class="['size-4 shrink-0 text-black/40 dark:text-white/40', isSearching && 'animate-spin']"
|
|
579
|
+
/>
|
|
580
|
+
<input
|
|
581
|
+
ref="inputEl"
|
|
582
|
+
v-model="query"
|
|
583
|
+
type="text"
|
|
584
|
+
placeholder="Search pages, or type a command…"
|
|
585
|
+
autocomplete="off"
|
|
586
|
+
spellcheck="false"
|
|
587
|
+
class="min-w-0 flex-1 bg-transparent text-sm tracking-widest text-black/80
|
|
588
|
+
placeholder:text-black/35 focus:outline-none
|
|
589
|
+
dark:text-white/80 dark:placeholder:text-white/35"
|
|
590
|
+
>
|
|
591
|
+
<button
|
|
592
|
+
v-if="query"
|
|
593
|
+
type="button"
|
|
594
|
+
class="flex size-5 shrink-0 items-center justify-center rounded-full text-black/35 transition-colors hover:text-black/70 dark:text-white/35 dark:hover:text-white/70"
|
|
595
|
+
aria-label="Clear"
|
|
596
|
+
@click="query = ''"
|
|
597
|
+
>
|
|
598
|
+
<UIcon
|
|
599
|
+
name="i-lucide-x"
|
|
600
|
+
class="size-3.5"
|
|
601
|
+
/>
|
|
602
|
+
</button>
|
|
603
|
+
<!-- The ESC chip is a BUTTON, not a caption. It looks exactly like an
|
|
604
|
+
affordance, sits where a dialog's close control sits, and was
|
|
605
|
+
neither — pressing it did nothing, which is worse than not
|
|
606
|
+
drawing it. Keyboard users still press Escape; everyone else can
|
|
607
|
+
now click the thing that says Escape. -->
|
|
608
|
+
<button
|
|
609
|
+
type="button"
|
|
610
|
+
class="hidden shrink-0 opacity-60 transition-opacity hover:opacity-100 sm:inline-flex"
|
|
611
|
+
aria-label="Close"
|
|
612
|
+
title="Close"
|
|
613
|
+
@click="closeSearch"
|
|
614
|
+
>
|
|
615
|
+
<UKbd value="esc" />
|
|
616
|
+
</button>
|
|
617
|
+
</div>
|
|
618
|
+
|
|
619
|
+
<!-- Scope chips — the navbar's pill row, doing filtering. They only
|
|
620
|
+
appear once there are at least two kinds of thing to choose
|
|
621
|
+
between; below that a filter selects everything, which "All"
|
|
622
|
+
already does. -->
|
|
623
|
+
<div
|
|
624
|
+
v-if="scopeChips.length"
|
|
625
|
+
class="flex shrink-0 items-center gap-1 overflow-x-auto border-b border-black/5 px-3 py-1.5 jun-scrollbar-hide dark:border-white/10"
|
|
626
|
+
style="scrollbar-width: none; -ms-overflow-style: none;"
|
|
627
|
+
>
|
|
628
|
+
<button
|
|
629
|
+
type="button"
|
|
630
|
+
class="flex-none rounded-md px-2 py-1 text-[11px] tracking-widest transition-colors"
|
|
631
|
+
:class="scope === null ? 'bg-black/10 text-black/90 dark:bg-white/15 dark:text-white/90' : 'text-black/50 hover:text-black/80 dark:text-white/50 dark:hover:text-white/80'"
|
|
632
|
+
@click="setScope(null)"
|
|
633
|
+
>
|
|
634
|
+
All
|
|
635
|
+
</button>
|
|
636
|
+
<button
|
|
637
|
+
v-for="chip in scopeChips"
|
|
638
|
+
:key="chip.type"
|
|
639
|
+
type="button"
|
|
640
|
+
class="flex flex-none items-center gap-1.5 rounded-md px-2 py-1 text-[11px] tracking-widest transition-colors"
|
|
641
|
+
:class="scope === chip.type ? 'bg-black/10 text-black/90 dark:bg-white/15 dark:text-white/90' : 'text-black/50 hover:text-black/80 dark:text-white/50 dark:hover:text-white/80'"
|
|
642
|
+
@click="setScope(scope === chip.type ? null : chip.type)"
|
|
643
|
+
>
|
|
644
|
+
<UIcon
|
|
645
|
+
:name="chip.icon"
|
|
646
|
+
class="size-3.5 opacity-70"
|
|
647
|
+
/>
|
|
648
|
+
{{ chip.label }}
|
|
649
|
+
<span class="opacity-40">{{ chip.count }}</span>
|
|
650
|
+
</button>
|
|
651
|
+
</div>
|
|
652
|
+
|
|
653
|
+
<!-- The list.
|
|
654
|
+
`relative` because the gliding cursor is absolutely positioned
|
|
655
|
+
against it and reads `offsetTop`; `min-h-0` because this is the
|
|
656
|
+
flex child that must be allowed to shrink and scroll rather than
|
|
657
|
+
pushing the footer out of the capped panel. -->
|
|
658
|
+
<div
|
|
659
|
+
ref="listEl"
|
|
660
|
+
class="relative min-h-0 flex-1 overflow-y-auto py-1.5"
|
|
661
|
+
:class="staged ? 'jun-palette-stagger' : ''"
|
|
662
|
+
>
|
|
663
|
+
<!-- The selection. One element that glides, rather than a background
|
|
664
|
+
that blinks from row to row. -->
|
|
665
|
+
<div
|
|
666
|
+
v-show="cursor.shown && hasRows"
|
|
667
|
+
class="jun-palette-cursor bg-black/[0.06] dark:bg-white/[0.07]"
|
|
668
|
+
:class="placing ? 'is-placing' : ''"
|
|
669
|
+
:style="{ transform: `translateY(${cursor.y}px)`, height: `${cursor.h}px` }"
|
|
670
|
+
aria-hidden="true"
|
|
671
|
+
/>
|
|
672
|
+
|
|
673
|
+
<TransitionGroup name="jun-pal">
|
|
674
|
+
<div
|
|
675
|
+
v-for="(row, i) in rows"
|
|
676
|
+
:key="row.key"
|
|
677
|
+
>
|
|
678
|
+
<p
|
|
679
|
+
v-if="headingAt(i)"
|
|
680
|
+
class="px-4 pt-2 pb-1 text-[10px] tracking-[0.22em] text-black/35 uppercase dark:text-white/35"
|
|
681
|
+
>
|
|
682
|
+
{{ headingAt(i) }}
|
|
683
|
+
</p>
|
|
684
|
+
<button
|
|
685
|
+
type="button"
|
|
686
|
+
:data-row="i"
|
|
687
|
+
class="relative flex w-full items-start gap-3 px-4 py-2.5 text-left"
|
|
688
|
+
:style="staged ? { animationDelay: `${Math.min(i, 12) * 22}ms` } : void 0"
|
|
689
|
+
@mousemove="hoverSelect(i)"
|
|
690
|
+
@focus="hoverSelect(i)"
|
|
691
|
+
@click="run(i, $event.metaKey || $event.ctrlKey)"
|
|
692
|
+
>
|
|
693
|
+
<UIcon
|
|
694
|
+
:name="row.icon"
|
|
695
|
+
class="mt-0.5 size-4 shrink-0 transition-colors"
|
|
696
|
+
:class="i === selected ? 'text-black/70 dark:text-white/70' : 'text-black/40 dark:text-white/40'"
|
|
697
|
+
/>
|
|
698
|
+
<span class="min-w-0 flex-1">
|
|
699
|
+
<span class="flex min-w-0 items-baseline gap-2">
|
|
700
|
+
<!-- The navbar's active-item treatment, verbatim: the
|
|
701
|
+
selected row's label is underlined the way the current
|
|
702
|
+
page's pill is. -->
|
|
703
|
+
<span
|
|
704
|
+
class="truncate text-sm tracking-widest transition-colors"
|
|
705
|
+
:class="i === selected ? 'text-black/90 underline decoration-black decoration-2 underline-offset-4 dark:text-white/90 dark:decoration-white' : 'text-black/60 dark:text-white/65'"
|
|
706
|
+
>
|
|
707
|
+
{{ row.label }}
|
|
708
|
+
</span>
|
|
709
|
+
<span
|
|
710
|
+
v-if="row.context"
|
|
711
|
+
class="shrink-0 truncate text-[11px] text-black/35 dark:text-white/35"
|
|
712
|
+
>
|
|
713
|
+
{{ row.context }}
|
|
714
|
+
</span>
|
|
715
|
+
<!-- Ambient presence, exactly as the navbar shows it:
|
|
716
|
+
colour rides on presence and on nothing else. -->
|
|
717
|
+
<span
|
|
718
|
+
v-if="presenceOn(row.id).length"
|
|
719
|
+
class="size-1.5 shrink-0 rounded-full"
|
|
720
|
+
:style="{ background: presenceOn(row.id)[0].color }"
|
|
721
|
+
:title="`${presenceOn(row.id).length} here now`"
|
|
722
|
+
/>
|
|
723
|
+
</span>
|
|
724
|
+
<span
|
|
725
|
+
v-if="row.snippet"
|
|
726
|
+
class="jun-palette-snippet line-clamp-1 block text-xs text-black/45 dark:text-white/45"
|
|
727
|
+
v-html="row.snippet"
|
|
728
|
+
/>
|
|
729
|
+
</span>
|
|
730
|
+
<span
|
|
731
|
+
v-if="row.hint"
|
|
732
|
+
class="shrink-0 self-center truncate pl-2 text-[11px] text-black/35 dark:text-white/35"
|
|
733
|
+
style="max-width: 11rem"
|
|
734
|
+
>{{ row.hint }}</span>
|
|
735
|
+
<!-- ⌘1…⌘9, on every row that has one. A shortcut you can only
|
|
736
|
+
see once you have already selected the row is a shortcut
|
|
737
|
+
for a journey you have finished making — the whole point is
|
|
738
|
+
to reach row six WITHOUT walking to it, and that only works
|
|
739
|
+
if the number is legible from the row above. The selected
|
|
740
|
+
row's is brighter, so the affordance still tracks focus. -->
|
|
741
|
+
<UKbd
|
|
742
|
+
v-if="i < 9"
|
|
743
|
+
:value="`\u2318${i + 1}`"
|
|
744
|
+
size="sm"
|
|
745
|
+
class="shrink-0 self-center transition-opacity"
|
|
746
|
+
:class="i === selected ? 'opacity-70' : 'opacity-30'"
|
|
747
|
+
/>
|
|
748
|
+
</button>
|
|
749
|
+
</div>
|
|
750
|
+
</TransitionGroup>
|
|
751
|
+
|
|
752
|
+
<div
|
|
753
|
+
v-if="!hasRows && !isSearching"
|
|
754
|
+
class="px-4 py-10 text-center text-sm text-black/35 dark:text-white/35"
|
|
755
|
+
>
|
|
756
|
+
<template v-if="searching">
|
|
757
|
+
No matches for “{{ trimmed }}”.
|
|
758
|
+
</template>
|
|
759
|
+
<template v-else>
|
|
760
|
+
Nothing to show yet.
|
|
761
|
+
</template>
|
|
762
|
+
</div>
|
|
763
|
+
</div>
|
|
764
|
+
|
|
765
|
+
<!-- The footer says what the keyboard does, and it is the only place
|
|
766
|
+
that does — a palette whose shortcuts are undiscoverable is a
|
|
767
|
+
search box. -->
|
|
768
|
+
<div class="flex shrink-0 items-center justify-between gap-3 border-t border-black/5 px-4 py-2 dark:border-white/10">
|
|
769
|
+
<span class="flex min-w-0 items-center gap-1.5 overflow-hidden text-[11px] text-black/35 dark:text-white/35">
|
|
770
|
+
<UKbd
|
|
771
|
+
value="↑"
|
|
772
|
+
size="sm"
|
|
773
|
+
class="opacity-60"
|
|
774
|
+
/>
|
|
775
|
+
<UKbd
|
|
776
|
+
value="↓"
|
|
777
|
+
size="sm"
|
|
778
|
+
class="opacity-60"
|
|
779
|
+
/>
|
|
780
|
+
<span class="pl-0.5">navigate</span>
|
|
781
|
+
<UKbd
|
|
782
|
+
value="↵"
|
|
783
|
+
size="sm"
|
|
784
|
+
class="ml-2 opacity-60"
|
|
785
|
+
/>
|
|
786
|
+
<span class="pl-0.5">open</span>
|
|
787
|
+
<UKbd
|
|
788
|
+
value="⌘↵"
|
|
789
|
+
size="sm"
|
|
790
|
+
class="ml-2 hidden opacity-60 sm:inline-flex"
|
|
791
|
+
/>
|
|
792
|
+
<span class="hidden pl-0.5 sm:inline">new tab</span>
|
|
793
|
+
<template v-if="scopeChips.length">
|
|
794
|
+
<UKbd
|
|
795
|
+
value="⇥"
|
|
796
|
+
size="sm"
|
|
797
|
+
class="ml-2 hidden opacity-60 sm:inline-flex"
|
|
798
|
+
/>
|
|
799
|
+
<span class="hidden pl-0.5 sm:inline">filter</span>
|
|
800
|
+
</template>
|
|
801
|
+
</span>
|
|
802
|
+
<span class="shrink-0 text-[11px] tracking-widest text-black/25 dark:text-white/25">
|
|
803
|
+
{{ rows.length }}
|
|
804
|
+
</span>
|
|
805
|
+
</div>
|
|
806
|
+
</div>
|
|
807
|
+
</template>
|
|
808
|
+
</UModal>
|
|
809
|
+
</template>
|