Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Rename components and move to dashboard

Smaug6739004d66fc87c0
diff --git a/frontend/app/components/GlobalSearch.vue b/frontend/app/components/CommandCenter.vue
similarity index 100%
rename from frontend/app/components/GlobalSearch.vue
rename to frontend/app/components/CommandCenter.vue
diff --git a/frontend/app/components/Sidebar/Search.vue b/frontend/app/components/QuickSearch.vue
similarity index 95%
rename from frontend/app/components/Sidebar/Search.vue
rename to frontend/app/components/QuickSearch.vue
index 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.vue
index 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>