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.

Name fixes

Smaug6739f5a4c3754026
diff --git a/frontend/components/Sidebar/Sidebar.vue b/frontend/components/Sidebar/Sidebar.vue
index c183e18f..6db5aa15 100644
--- a/frontend/components/Sidebar/Sidebar.vue
+++ b/frontend/components/Sidebar/Sidebar.vue
@@ -56,7 +56,7 @@ const navigationItemsComputed = computed<Item[]>(() =>
navigationItems.map(item => ({
id: item.id,
parent_id: '',
- title: item.title,
+ label: item.title,
route: item.route,
icon: item.icon,
type: 'navigation',
@@ -66,7 +66,7 @@ const navigationItemsComputed = computed<Item[]>(() =>
);
const sidebarTree = useSidebarTree();
-const tree = computed(() => [...navigationItemsComputed.value, ...sidebarTree.filtered.value].filter(i => i.title.toLowerCase().includes(filter.value.toLowerCase())));
+const tree = computed(() => [...navigationItemsComputed.value, ...sidebarTree.filtered.value].filter(i => i.label.toLowerCase().includes(filter.value.toLowerCase())));
const handleClickOutside = (e: MouseEvent) => {
if (isOpened.value && e.target && !(e.target as Element).closest('.sidebar') && !(e.target as Element).closest('.open-sidebar')) isOpened.value = false;
diff --git a/frontend/components/Sidebar/SidebarItem.vue b/frontend/components/Sidebar/SidebarItem.vue
index efc3b2d9..91c796fd 100644
--- a/frontend/components/Sidebar/SidebarItem.vue
+++ b/frontend/components/Sidebar/SidebarItem.vue
@@ -1,7 +1,7 @@
<template>
<span class="item" @click="onClick" :draggable="draggable" @dragstart="dragStart" @dragover.prevent="dragOver" @drop="drop" @dragleave="dragLeave" :class="{ 'drag-over': isDragOver }" :key="item.id">
<Icon :name="icon" :class="customClass" />&nbsp;
- <NuxtLink :to="item.route" style="width: 100%" class="close">{{ item.title }} </NuxtLink>
+ <NuxtLink :to="item.route" style="width: 100%" class="close">{{ item.label }} </NuxtLink>
<NuxtLink v-if="item.data.type === 'category'" :to="`/dashboard/categories/${item.id}/edit`" class="nav close"> <Icon name="settings" fill="var(--font-color)" /> </NuxtLink>
<NuxtLink v-if="item.data.type === 'category'" :to="`/dashboard/docs/new?cat=${item.id}`" class="nav close"> <Icon name="plus" fill="var(--font-color)" /> </NuxtLink>
<slot></slot>
diff --git a/frontend/composables/TreeStructure.ts b/frontend/composables/TreeStructure.ts
index e8f5e163..596bd352 100644
--- a/frontend/composables/TreeStructure.ts
+++ b/frontend/composables/TreeStructure.ts
@@ -3,7 +3,7 @@ import type { DefaultItem } from '../components/Sidebar/helpers';
export interface ANode {
id: string | number;
- title: string;
+ label: string;
parent_id: string;
childrens?: ANode[];
}
diff --git a/frontend/composables/structuresTree.ts b/frontend/composables/structuresTree.ts
index 07fe60a5..502743b7 100644
--- a/frontend/composables/structuresTree.ts
+++ b/frontend/composables/structuresTree.ts
@@ -14,7 +14,7 @@ export function useSidebarTree() {
categoriesStore.categories.map(cat => ({
id: cat.id,
parent_id: cat.parent_id || '',
- title: cat.name,
+ label: cat.name,
route: cat.parent_id ? `/dashboard/categories/${cat.id}` : '',
icon: cat.icon,
type: 'category',
@@ -27,7 +27,7 @@ export function useSidebarTree() {
documentsStore.documents.map(doc => ({
id: doc.id,
parent_id: doc.parent_id || doc.category || '',
- title: doc.name,
+ label: doc.name,
route: `/dashboard/docs/${doc.id}`,
type: 'document',
data: doc,
diff --git a/frontend/pages/dashboard/categories/_components/WorkspaceTree.vue b/frontend/pages/dashboard/categories/_components/WorkspaceTree.vue
index bbb1580e..b9a2c81d 100644
--- a/frontend/pages/dashboard/categories/_components/WorkspaceTree.vue
+++ b/frontend/pages/dashboard/categories/_components/WorkspaceTree.vue
@@ -3,11 +3,11 @@
<div class="tree-content">
<div class="tree-label">
<Icon class="icon" name="folder" style="display: inline; width: 15px" />
- <span>{{ node.title }}</span>
+ <span>{{ node.label }}</span>
</div>
<div class="tree-actions">
- <span style="padding: 2px" @click="$emit('edit', node)" title="Edit"><Icon class="icon" name="edit" style="display: inline" /></span>
- <span style="padding: 2px" @click="$emit('delete', node)" title="Delete"><Icon class="icon" name="delete" style="display: inline" /></span>
+ <span style="padding: 2px" @click="$emit('edit', node)"><Icon class="icon" name="edit" style="display: inline" /></span>
+ <span style="padding: 2px" @click="$emit('delete', node)"><Icon class="icon" name="delete" style="display: inline" /></span>
</div>
</div>
diff --git a/frontend/pages/dashboard/categories/index.vue b/frontend/pages/dashboard/categories/index.vue
index e329c44e..7339adb2 100644
--- a/frontend/pages/dashboard/categories/index.vue
+++ b/frontend/pages/dashboard/categories/index.vue
@@ -12,7 +12,7 @@
<input placeholder="Search for workspace..." v-model="filter" style="width: 50%; padding: 8px; border: 1px solid var(--border-color); border-radius: 4px" />
</div>
<div v-if="tree.length" class="workspace" v-for="workspace in tree" :key="workspace.id">
- <h3 class="wp-name">{{ workspace.title }}</h3>
+ <h3 class="wp-name">{{ workspace.label }}</h3>
<WorkspaceTree v-for="node in workspace.childrens" :node="node" @edit="editNode" @delete="deleteNode" />
</div>