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.

Code style

Smaug673990e4c1bf15c8
diff --git a/frontend/.prettierrc b/frontend/.prettierrc
index eec7ca31..71f6fbd2 100644
--- a/frontend/.prettierrc
+++ b/frontend/.prettierrc
@@ -1,6 +1,6 @@
{
"singleQuote": true,
- "printWidth": 150,
+ "printWidth": 160,
"trailingComma": "all",
"endOfLine": "lf",
"arrowParens": "avoid"
diff --git a/frontend/app/components/AppButton.vue b/frontend/app/components/AppButton.vue
index c69d1159..90001c59 100644
--- a/frontend/app/components/AppButton.vue
+++ b/frontend/app/components/AppButton.vue
@@ -1,6 +1,6 @@
<template>
<button :class="type" @click="onClick">
- <slot/>
+ <slot />
</button>
</template>
diff --git a/frontend/app/components/AppDotMenu.vue b/frontend/app/components/AppDotMenu.vue
index 9a27e09c..bd6d2dbd 100644
--- a/frontend/app/components/AppDotMenu.vue
+++ b/frontend/app/components/AppDotMenu.vue
@@ -2,7 +2,10 @@
<div ref="menuRoot" class="container">
<span class="menu-button" aria-label="Menu" @click="toggleMenu">
<svg class="menu-icon" viewBox="0 9 20 2" xmlns="http://www.w3.org/2000/svg">
- <path style="fill: var(--font-color)" d="M3 10a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm5 0a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm5 0a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0z" />
+ <path
+ style="fill: var(--font-color)"
+ d="M3 10a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm5 0a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm5 0a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0z"
+ />
</svg>
</span>
<Transition name="fade-scale">
diff --git a/frontend/app/components/AppSelectNode.vue b/frontend/app/components/AppSelectNode.vue
index 6402bda8..438240fb 100644
--- a/frontend/app/components/AppSelectNode.vue
+++ b/frontend/app/components/AppSelectNode.vue
@@ -1,10 +1,22 @@
<template>
<li>
- <div class="tree-node" :style="{ marginLeft: `${level * 20}px`, fontWeight: node.childrens?.length ? 500 : 400 }" :disabled="disabled && disabled(node)" @click.stop="select">
+ <div
+ class="tree-node"
+ :style="{ marginLeft: `${level * 20}px`, fontWeight: node.childrens?.length ? 500 : 400 }"
+ :disabled="disabled && disabled(node)"
+ @click.stop="select"
+ >
{{ node.label }}
</div>
<ul v-if="node.childrens?.length">
- <AppSelectNode v-for="child in node.childrens" :key="child.id" :node="child" :level="level + 1" :disabled="disabled" @select="$emit('select', $event)" />
+ <AppSelectNode
+ v-for="child in node.childrens"
+ :key="child.id"
+ :node="child"
+ :level="level + 1"
+ :disabled="disabled"
+ @select="$emit('select', $event)"
+ />
</ul>
</li>
</template>
diff --git a/frontend/app/components/AppTagInput.vue b/frontend/app/components/AppTagInput.vue
index 64a7c9a8..2dd422c4 100644
--- a/frontend/app/components/AppTagInput.vue
+++ b/frontend/app/components/AppTagInput.vue
@@ -4,7 +4,7 @@
<tag class="primary" style="padding: 5px 6px">{{ tag }}<button type="button" class="remove" @click="removeTag(index)">Γ—</button></tag>
</div>
- <input v-model="input" placeholder="Add a tag (enter to add)..." @keydown.enter.prevent="addTag" @keydown.delete="removeLastTag" >
+ <input v-model="input" placeholder="Add a tag (enter to add)..." @keydown.enter.prevent="addTag" @keydown.delete="removeLastTag" />
</div>
</template>
diff --git a/frontend/app/components/AppToggle.vue b/frontend/app/components/AppToggle.vue
index be0b44ba..2eeaee3a 100644
--- a/frontend/app/components/AppToggle.vue
+++ b/frontend/app/components/AppToggle.vue
@@ -1,6 +1,6 @@
<template>
<button class="toggle" :class="{ active }" :aria-pressed="active" role="switch" @click="toggle">
- <span class="circle"/>
+ <span class="circle" />
</button>
</template>
diff --git a/frontend/app/components/DataTable.vue b/frontend/app/components/DataTable.vue
index c69c17dc..dc790735 100644
--- a/frontend/app/components/DataTable.vue
+++ b/frontend/app/components/DataTable.vue
@@ -42,9 +42,17 @@
<button type="button" :disabled="!paginator.hasPrevious()" @click="paginator.previous()">&lt;</button>
<button :class="{ active: paginator.currentPage.value === 1 }" @click="paginator.setPage(1)">1</button>
<span v-if="shouldShowEllipsisBefore" class="ellipsis">...</span>
- <button v-for="page in visiblePages" :key="page" :class="{ active: paginator.currentPage.value === page }" @click="paginator.setPage(page)">{{ page }}</button>
+ <button v-for="page in visiblePages" :key="page" :class="{ active: paginator.currentPage.value === page }" @click="paginator.setPage(page)">
+ {{ page }}
+ </button>
<span v-if="shouldShowEllipsisAfter" class="ellipsis">...</span>
- <button v-if="paginator.totalPages.value > 1" :class="{ active: paginator.currentPage.value === paginator.totalPages.value }" @click="paginator.setPage(paginator.totalPages.value)">{{ paginator.totalPages.value }}</button>
+ <button
+ v-if="paginator.totalPages.value > 1"
+ :class="{ active: paginator.currentPage.value === paginator.totalPages.value }"
+ @click="paginator.setPage(paginator.totalPages.value)"
+ >
+ {{ paginator.totalPages.value }}
+ </button>
<button type="button" :disabled="!paginator.hasNext()" @click="paginator.next()">&gt;</button>
</div>
</div>
diff --git a/frontend/app/components/DocumentCard.vue b/frontend/app/components/DocumentCard.vue
index 913bdeb8..5950aac2 100644
--- a/frontend/app/components/DocumentCard.vue
+++ b/frontend/app/components/DocumentCard.vue
@@ -3,7 +3,8 @@
<div class="top">
<div class="header">
<span style="display: flex">
- <Icon :name="category?.icon || 'files'" :class="`category-icon ${getAppColor(category?.color as number, true)}`" /> <NuxtLink :to="`/dashboard/docs/${document.id}`" class="document-title">{{ document.name }}</NuxtLink>
+ <Icon :name="category?.icon || 'files'" :class="`category-icon ${getAppColor(category?.color as number, true)}`" />
+ <NuxtLink :to="`/dashboard/docs/${document.id}`" class="document-title">{{ document.name }}</NuxtLink>
</span>
<DocumentDotMenu :document="document" :user="user" @delete="deleteDoc" />
</div>
@@ -12,7 +13,7 @@
<div v-if="document.tags" class="tags">
<tag v-for="tag in document.tags.split(',')" :key="tag" class="primary">{{ tag.trim() }}</tag>
</div>
- <p class="description" v-text="document.description"/>
+ <p class="description" v-text="document.description" />
</div>
</div>
<footer>
diff --git a/frontend/app/components/DocumentDotMenu.vue b/frontend/app/components/DocumentDotMenu.vue
index ff634f63..4c34e0d2 100644
--- a/frontend/app/components/DocumentDotMenu.vue
+++ b/frontend/app/components/DocumentDotMenu.vue
@@ -11,7 +11,9 @@
<button @click="emitDelete"><Icon name="delete" fill="red" /> Delete</button>
<hr style="margin: 2px 0" />
<div class="foot-menu">
- <p style="display: flex; align-items: center; gap: 8px"><img :src="useAvatar(user)" alt="Avatar" style="width: 20px; height: 20px; margin: 0; border-radius: 50%" />{{ user?.username }}</p>
+ <p style="display: flex; align-items: center; gap: 8px">
+ <img :src="useAvatar(user)" alt="Avatar" style="width: 20px; height: 20px; margin: 0; border-radius: 50%" />{{ user?.username }}
+ </p>
<p>Updated on {{ numericDate(document.updated_timestamp) }}</p>
</div>
</AppDotMenu>
diff --git a/frontend/app/components/DocumentsGrid.vue b/frontend/app/components/DocumentsGrid.vue
index ebc13586..bd005b91 100644
--- a/frontend/app/components/DocumentsGrid.vue
+++ b/frontend/app/components/DocumentsGrid.vue
@@ -2,7 +2,7 @@
<div class="document-list">
<DocumentCard v-for="document in documents" :key="document.id" :document="document" />
<div v-if="!documents.length" style="width: 100%; height: 100%">
- <div style=" margin: 10vh auto;text-align: center">
+ <div style="margin: 10vh auto; text-align: center">
<h1>No documents found</h1>
</div>
</div>
diff --git a/frontend/app/components/IconApp.vue b/frontend/app/components/IconApp.vue
index 2d428219..4426e0ba 100644
--- a/frontend/app/components/IconApp.vue
+++ b/frontend/app/components/IconApp.vue
@@ -1,8 +1,12 @@
<template>
<svg xmlns="http://www.w3.org/2000/svg" width="50" viewBox="0 0 164.000000 160.000000" preserveAspectRatio="xMidYMid meet">
<g transform="translate(0.000000,160.000000) scale(0.100000,-0.100000)" :fill="fill || 'var(--font-color)'" stroke="none">
- <path d="M688 1190 c-21 -16 -243 -392 -313 -529 -35 -70 15 -151 94 -151 39 0 87 30 236 146 124 97 256 135 352 101 24 -8 41 -12 39 -8 -72 136 -246 427 -264 441 -34 27 -110 27 -144 0z" />
- <path d="M921 729 c-24 -4 -64 -18 -89 -30 -36 -18 -42 -24 -31 -33 8 -6 51 -38 94 -72 44 -33 90 -66 102 -72 86 -46 189 41 152 129 -23 57 -138 96 -228 78z" />
+ <path
+ d="M688 1190 c-21 -16 -243 -392 -313 -529 -35 -70 15 -151 94 -151 39 0 87 30 236 146 124 97 256 135 352 101 24 -8 41 -12 39 -8 -72 136 -246 427 -264 441 -34 27 -110 27 -144 0z"
+ />
+ <path
+ d="M921 729 c-24 -4 -64 -18 -89 -30 -36 -18 -42 -24 -31 -33 8 -6 51 -38 94 -72 44 -33 90 -66 102 -72 86 -46 189 41 152 129 -23 57 -138 96 -228 78z"
+ />
</g>
</svg>
</template>
diff --git a/frontend/app/components/MarkdownSyntax.vue b/frontend/app/components/MarkdownSyntax.vue
index 42df4ff8..f6604037 100644
--- a/frontend/app/components/MarkdownSyntax.vue
+++ b/frontend/app/components/MarkdownSyntax.vue
@@ -13,7 +13,8 @@
<li><mark>Highlight</mark>: <code>==highlight==</code></li>
</ul>
- <strong>Tags: </strong> <tag blue>Info</tag> <tag green>Success</tag><tag red>Danger</tag><tag yellow>Yellow</tag> <tag grey>Note</tag> <tag teal>Teal</tag>
+ <strong>Tags: </strong> <tag blue>Info</tag> <tag green>Success</tag><tag red>Danger</tag><tag yellow>Yellow</tag> <tag grey>Note</tag>
+ <tag teal>Teal</tag>
<pre>
&lt;tag blue&gt;Info&lt;/tag&gt;
&lt;tag green&gt;Success&lt;/tag&gt;
@@ -25,8 +26,9 @@
<strong>Colors: </strong>
<strong
- ><span style="color: var(--blue)">blue</span> ; <span style="color: var(--red)">red</span> ; <span style="color: var(--green)">green</span> ; <span style="color: var(--yellow)">yellow</span> ;
- <span style="color: var(--primary)">primary</span> ; <span style="color: var(--purple)">purple</span> ; <span style="color: var(--pink)">pink</span> ; <span style="color: var(--teal)">teal</span></strong
+ ><span style="color: var(--blue)">blue</span> ; <span style="color: var(--red)">red</span> ; <span style="color: var(--green)">green</span> ;
+ <span style="color: var(--yellow)">yellow</span> ; <span style="color: var(--primary)">primary</span> ;
+ <span style="color: var(--purple)">purple</span> ; <span style="color: var(--pink)">pink</span> ; <span style="color: var(--teal)">teal</span></strong
>
<pre>
@@ -59,7 +61,7 @@ Custom RGB allowed: {color:#2cafcc}(custom 1) {color:#34b125}(custom 2)</pre
<h2>πŸ”— Links & Images</h2>
<ul>
<li><a href="https://example.com">Example link</a>: <code>[Example link](https://example.com)</code></li>
- <li><img src="" alt="Image" >: <code>![Alt text](image-url)</code></li>
+ <li><img src="" alt="Image" />: <code>![Alt text](image-url)</code></li>
</ul>
<h2>🧾 Lists & Tables</h2>
@@ -107,13 +109,13 @@ function hello() {
>
<h2>πŸ“ Horizontal Rules</h2>
<p><code>---</code>, <code>***</code>, or <code>___</code> renders a line:</p>
- <hr >
+ <hr />
<h2>🎨 Colored Blocks</h2>
<p>Use triple-colon blocks to insert styled sections:</p>
<div style="display: flex; align-items: center; flex-wrap: wrap">
<span style="flex: 1; margin-right: 10px">
- <pre style=" padding: 5px;color: white">:::blue INFO<br>:::</pre>
+ <pre style="padding: 5px; color: white">:::blue INFO<br>:::</pre>
</span>
<span style="flex: 1; margin-left: 10px"
><div class="blue custom-block"><p class="custom-block-title">INFO</p></div></span
@@ -121,7 +123,7 @@ function hello() {
</div>
<div style="display: flex">
<span style="flex: 1; margin-right: 10px">
- <pre style=" padding: 5px;color: white">:::green SUCCESS<br>:::</pre>
+ <pre style="padding: 5px; color: white">:::green SUCCESS<br>:::</pre>
</span>
<span style="flex: 1; margin-left: 10px"
><div class="green custom-block"><p class="custom-block-title">SUCCESS</p></div></span
@@ -129,7 +131,7 @@ function hello() {
</div>
<div style="display: flex">
<span style="flex: 1; margin-right: 10px">
- <pre style=" padding: 5px;color: white">:::yellow WARNING<br>:::</pre>
+ <pre style="padding: 5px; color: white">:::yellow WARNING<br>:::</pre>
</span>
<span style="flex: 1; margin-left: 10px"
><div class="yellow custom-block"><p class="custom-block-title">WARNING</p></div></span
@@ -137,7 +139,7 @@ function hello() {
</div>
<div style="display: flex">
<span style="flex: 1; margin-right: 10px">
- <pre style=" padding: 5px;color: white">:::grey NOTE<br>:::</pre>
+ <pre style="padding: 5px; color: white">:::grey NOTE<br>:::</pre>
</span>
<span style="flex: 1; margin-left: 10px"
><div class="grey custom-block"><p class="custom-block-title">NOTE</p></div></span
@@ -145,7 +147,7 @@ function hello() {
</div>
<div style="display: flex">
<span style="flex: 1; margin-right: 10px">
- <pre style=" padding: 5px;color: white">:::red DANGER<br>:::</pre>
+ <pre style="padding: 5px; color: white">:::red DANGER<br>:::</pre>
</span>
<span style="flex: 1; margin-left: 10px"
><div class="red custom-block"><p class="custom-block-title">DANGER</p></div></span
@@ -153,7 +155,7 @@ function hello() {
</div>
<div style="display: flex">
<span style="flex: 1; margin-right: 10px">
- <pre style=" padding: 5px;color: white">:::teal TEAL<br>:::</pre>
+ <pre style="padding: 5px; color: white">:::teal TEAL<br>:::</pre>
</span>
<span style="flex: 1; margin-left: 10px"
><div class="teal custom-block"><p class="custom-block-title">TEAL</p></div></span
diff --git a/frontend/app/components/ModalManager.vue b/frontend/app/components/ModalManager.vue
index 59af9ef2..100d61f0 100644
--- a/frontend/app/components/ModalManager.vue
+++ b/frontend/app/components/ModalManager.vue
@@ -1,7 +1,7 @@
<template>
<TransitionGroup name="modal" tag="div">
<div v-for="(modal, index) in modals" :key="index" class="modal-mask modal-pos" :style="{ zIndex: 120 + index }" @click.self="modalManager.close(modal)">
- <div v-if="index !== modals.length - 1" class="modal-overlay"/>
+ <div v-if="index !== modals.length - 1" class="modal-overlay" />
<div class="modal-container">
<button class="close-btn" @click="modalManager.close(modal)">
<Icon name="close" :big="true" />
diff --git a/frontend/app/components/QuickSearch.vue b/frontend/app/components/QuickSearch.vue
index 045e587d..f964091d 100644
--- a/frontend/app/components/QuickSearch.vue
+++ b/frontend/app/components/QuickSearch.vue
@@ -23,7 +23,11 @@
<script setup lang="ts">
const categoryStore = useCategoriesStore();
-const documents = computed(() => useDocumentsStore().getAll.filter(c => c.name.toLowerCase().includes(filter.value.toLowerCase()) || c.tags?.toLowerCase().includes(filter.value.toLowerCase())));
+const documents = computed(() =>
+ useDocumentsStore().getAll.filter(
+ c => c.name.toLowerCase().includes(filter.value.toLowerCase()) || c.tags?.toLowerCase().includes(filter.value.toLowerCase()),
+ ),
+);
const filter = ref<string>('');
const showSearchModal = ref<boolean>(false);
diff --git a/frontend/app/components/Sidebar/Resizable.vue b/frontend/app/components/Sidebar/Resizable.vue
index 4bf0f251..d8f66385 100644
--- a/frontend/app/components/Sidebar/Resizable.vue
+++ b/frontend/app/components/Sidebar/Resizable.vue
@@ -2,9 +2,9 @@
<nav :class="{ open: isOpened }">
<div class="sidebar no-select">
<div :style="{ width: panewidthCSS, display: 'flex' }">
- <slot/>
+ <slot />
</div>
- <div class="separator" @mousedown="startResize"/>
+ <div class="separator" @mousedown="startResize" />
</div>
</nav>
</template>
@@ -80,11 +80,9 @@ nav {
cursor: col-resize;
}
-/* Disable text selection while resizing */
-
-/* Selection can cause problems with selection */
-
-/* PREVENT SELECTION DURING MOUSE EVENTS */
+/* Disable text selection while resizing
+Selection can cause problems with selection
+PREVENT SELECTION DURING MOUSE EVENTS */
.no-select {
user-select: none;
}
diff --git a/frontend/app/components/Sidebar/Sidebar.vue b/frontend/app/components/Sidebar/Sidebar.vue
index a70fec8e..9f33940d 100644
--- a/frontend/app/components/Sidebar/Sidebar.vue
+++ b/frontend/app/components/Sidebar/Sidebar.vue
@@ -6,7 +6,7 @@
<section class="header">
<span class="name">
<IconApp />
- <NuxtLink style=" font-family: Arial;font-size: 19px; font-weight: 600" to="/dashboard">Alexandrie</NuxtLink>
+ <NuxtLink style="font-family: Arial; font-size: 19px; font-weight: 600" to="/dashboard">Alexandrie</NuxtLink>
</span>
<IconClose class="btn" />
</section>
@@ -29,7 +29,7 @@
</div>
<SidebarWorkspaces :options="workspaces" />
<CollapseItem v-for="item in navigationItems" :key="item.id" :item="item" :root="true" />
- <hr style=" width: 100%;margin: 5px 0" />
+ <hr style="width: 100%; margin: 5px 0" />
<CollapseItem v-for="item in tree" :key="item.id" :item="item" :root="true" />
</div>
</Resizable>
diff --git a/frontend/app/components/Sidebar/SidebarItem.vue b/frontend/app/components/Sidebar/SidebarItem.vue
index 7da24f23..50864abb 100644
--- a/frontend/app/components/Sidebar/SidebarItem.vue
+++ b/frontend/app/components/Sidebar/SidebarItem.vue
@@ -1,35 +1,43 @@
<template>
- <span class="item" :draggable="true" :class="{ 'drag-over': isDragOver }" @click="onClick" @dragstart="dragStart" @dragover.prevent="dragOver" @drop="drop" @dragleave="dragLeave">
+ <span
+ class="item"
+ :draggable="true"
+ :class="{ 'drag-over': isDragOver }"
+ @click="onClick"
+ @dragstart="dragStart"
+ @dragover.prevent="dragOver"
+ @drop="drop"
+ @dragleave="dragLeave"
+ >
<Icon :name="icon" :class="customClass" />&nbsp;
<NuxtLink :to="item.route" style="width: 100%" class="close">{{ item.label }}</NuxtLink>
- <DocumentDotMenu v-if="item.data.type === 'document'" ref="dotMenu" class="nav close" :class="{ active: isActive }" :document="item.data" :user="user" @open="() => (isActive = true)" @close="() => (isActive = false)" @delete="deleteDoc" />
- <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}`" :prefetch="false" class="nav close"> <Icon name="plus" fill="var(--font-color)" /> </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}`" :prefetch="false" class="nav close">
+ <Icon name="plus" fill="var(--font-color)" />
+ </NuxtLink>
<Icon v-if="item.data.type === 'document' && item.data.pinned" name="pin" fill="var(--font-color-light)" class="ni" />
<slot />
</span>
</template>
<script setup lang="ts">
-import DeleteDocumentModal from '~/pages/dashboard/docs/_modals/DeleteDocumentModal.vue';
import { navigationItems } from './helpers';
const documentStore = useDocumentsStore();
const categoriesStore = useCategoriesStore();
-const user = useUserStore().user;
const { isOpened } = useSidebar();
const props = defineProps<{ item: Item }>();
-const dotMenu = ref();
const customClass = computed(() => {
if ('color' in props.item.data && props.item.data.color != -1) return `item-icon ${getAppColor(props.item.data.color as number)}`;
return '';
});
-const isActive = ref(false);
const icon = computed(() => {
if ('icon' in props.item.data && props.item.data.icon) return props.item.data.icon;
return props.item.icon || '';
});
-const deleteDoc = () => useModal().add(new Modal(shallowRef(DeleteDocumentModal), { documentId: props.item.id }));
const isDragOver = ref<boolean>(false);
@@ -58,7 +66,8 @@ const drop = async (event: DragEvent) => {
isDragOver.value = false;
const draggedItemId = event.dataTransfer!.getData('text/plain');
- let draggedItem = documentStore.getById(draggedItemId) || categoriesStore.getById(draggedItemId) || navigationItems.find(item => item.id === draggedItemId)?.data;
+ let draggedItem =
+ documentStore.getById(draggedItemId) || categoriesStore.getById(draggedItemId) || navigationItems.find(item => item.id === draggedItemId)?.data;
if (!draggedItem) return;
diff --git a/frontend/app/components/Sidebar/SidebarWorkspaces.vue b/frontend/app/components/Sidebar/SidebarWorkspaces.vue
index 4a2ea143..77cd17a3 100644
--- a/frontend/app/components/Sidebar/SidebarWorkspaces.vue
+++ b/frontend/app/components/Sidebar/SidebarWorkspaces.vue
@@ -16,7 +16,9 @@
<div v-if="!options.length" class="placeholder" style="padding: 6px; font-size: 0.9rem; font-style: italic">No workspaces found</div>
<hr />
<div class="new-workspace" @click="create_workspace"><Icon name="plus" fill="var(--font-color-light)" /> New Workspace</div>
- <NuxtLink :to="`/dashboard/categories/${selectedOption.value}/edit`" class="new-workspace"><Icon name="settings" fill="var(--font-color-light)" /> Edit Workspace</NuxtLink>
+ <NuxtLink :to="`/dashboard/categories/${selectedOption.value}/edit`" class="new-workspace"
+ ><Icon name="settings" fill="var(--font-color-light)" /> Edit Workspace</NuxtLink
+ >
</ul>
</div>
</template>
diff --git a/frontend/app/components/ThemeToggle.vue b/frontend/app/components/ThemeToggle.vue
index 01305828..d2b1b310 100644
--- a/frontend/app/components/ThemeToggle.vue
+++ b/frontend/app/components/ThemeToggle.vue
@@ -1,26 +1,32 @@
<template>
- <button style="background: none" @click="toggleColorMode">
- <svg v-if="colorMode.value === 'light'" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
- <g id="SVGRepo_bgCarrier" stroke-width="0"/>
- <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>
- <g id="SVGRepo_iconCarrier">
- <path
- d="M12 3V4M12 20V21M4 12H3M6.31412 6.31412L5.5 5.5M17.6859 6.31412L18.5 5.5M6.31412 17.69L5.5 18.5001M17.6859 17.69L18.5 18.5001M21 12H20M16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z"
- stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
- </g>
- </svg>
- <svg
-v-else-if="colorMode.value === 'dark'" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"
- stroke="#fff">
- <g id="SVGRepo_bgCarrier" stroke-width="0"/>
- <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>
- <g id="SVGRepo_iconCarrier">
- <path
- d="M3.32031 11.6835C3.32031 16.6541 7.34975 20.6835 12.3203 20.6835C16.1075 20.6835 19.3483 18.3443 20.6768 15.032C19.6402 15.4486 18.5059 15.6834 17.3203 15.6834C12.3497 15.6834 8.32031 11.654 8.32031 6.68342C8.32031 5.50338 8.55165 4.36259 8.96453 3.32996C5.65605 4.66028 3.32031 7.89912 3.32031 11.6835Z"
- stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
- </g>
- </svg>
- </button>
+ <button style="background: none" @click="toggleColorMode">
+ <svg v-if="colorMode.value === 'light'" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <g id="SVGRepo_bgCarrier" stroke-width="0" />
+ <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" />
+ <g id="SVGRepo_iconCarrier">
+ <path
+ d="M12 3V4M12 20V21M4 12H3M6.31412 6.31412L5.5 5.5M17.6859 6.31412L18.5 5.5M6.31412 17.69L5.5 18.5001M17.6859 17.69L18.5 18.5001M21 12H20M16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z"
+ stroke="#000000"
+ stroke-width="2"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ />
+ </g>
+ </svg>
+ <svg v-else-if="colorMode.value === 'dark'" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#fff">
+ <g id="SVGRepo_bgCarrier" stroke-width="0" />
+ <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" />
+ <g id="SVGRepo_iconCarrier">
+ <path
+ d="M3.32031 11.6835C3.32031 16.6541 7.34975 20.6835 12.3203 20.6835C16.1075 20.6835 19.3483 18.3443 20.6768 15.032C19.6402 15.4486 18.5059 15.6834 17.3203 15.6834C12.3497 15.6834 8.32031 11.654 8.32031 6.68342C8.32031 5.50338 8.55165 4.36259 8.96453 3.32996C5.65605 4.66028 3.32031 7.89912 3.32031 11.6835Z"
+ stroke="#fff"
+ stroke-width="2"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ />
+ </g>
+ </svg>
+ </button>
</template>
<script setup lang="ts">
@@ -30,7 +36,7 @@ const toggleColorMode = () => (colorMode.value === 'light' ? (colorMode.preferen
<style scoped lang="scss">
svg {
- width: 25px;
- height: 25px;
+ width: 25px;
+ height: 25px;
}
</style>
diff --git a/frontend/app/components/ViewSelection.vue b/frontend/app/components/ViewSelection.vue
index 72cf50d5..e3d38998 100644
--- a/frontend/app/components/ViewSelection.vue
+++ b/frontend/app/components/ViewSelection.vue
@@ -3,7 +3,7 @@
<button class="view-button" :class="{ active: view === 'table' }" @click="view = 'table'">
<Icon fill="var(--font-color)" name="list" />
</button>
- <span style="border-right: 1px solid var(--border-color)"/>
+ <span style="border-right: 1px solid var(--border-color)" />
<button class="view-button" :class="{ active: view === 'list' }" @click="view = 'list'">
<Icon fill="var(--font-color)" name="table" />
</button>