π The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
Rename components and move to dashboard
Smaug6739004d66fc87c0
diff --git a/frontend/app/components/GlobalSearch.vue b/frontend/app/components/CommandCenter.vuesimilarity index 100%rename from frontend/app/components/GlobalSearch.vuerename to frontend/app/components/CommandCenter.vuediff --git a/frontend/app/components/Sidebar/Search.vue b/frontend/app/components/QuickSearch.vuesimilarity index 95%rename from frontend/app/components/Sidebar/Search.vuerename to frontend/app/components/QuickSearch.vueindex 61876e4c..d9c0640c 100644--- a/frontend/app/components/Sidebar/Search.vue+++ b/frontend/app/components/QuickSearch.vue@@ -51,8 +51,8 @@ const handleTab = (event: KeyboardEvent) => {focusableItems[nextIndex]?.focus();};-onMounted(() => document.addEventListener('keydown', handleSearchShortCut));-onBeforeUnmount(() => document.removeEventListener('keydown', handleSearchShortCut));+onMounted(() => window.addEventListener('keydown', handleSearchShortCut));+onBeforeUnmount(() => window.removeEventListener('keydown', handleSearchShortCut));const handleSearchShortCut = (e: KeyboardEvent) => {if (e.ctrlKey && e.key === 'q') {if (!showSearchModal.value) {diff --git a/frontend/app/pages/dashboard.vue b/frontend/app/pages/dashboard.vueindex c91c097f..ddd50659 100644--- a/frontend/app/pages/dashboard.vue+++ b/frontend/app/pages/dashboard.vue@@ -4,10 +4,11 @@<BackToTop /></ClientOnly><Sidebar />- <GlobalSearch />+ <CommandCenter />+ <QuickSearch /><MediumView><Navbar />- <div style="height: calc(100% - 65px); width: 100%"><NuxtPage /></div>+ <div style="height: calc(100% - 65px); width: 100%" :style="!isMobile() ? { paddingLeft: '100px' } : {}"><NuxtPage /></div></MediumView></div></template>