π 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
General design update
Smaug6739818f283bfbcc
diff --git a/frontend/components/AppButton.vue b/frontend/components/AppButton.vueindex 3b92f1cd..c82f1d75 100644--- a/frontend/components/AppButton.vue+++ b/frontend/components/AppButton.vue@@ -14,7 +14,7 @@ const onClick = () => emit('click');@use 'sass:color';button {padding: 10px;- border-radius: 5px;+ border-radius: 6px;width: fit-content;font-size: 0.9rem;margin: 3px 3px 0 0;@@ -34,7 +34,7 @@ button {outline: 1px solid $primary-color;color: var(--font-color);&:hover {- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);+ box-shadow: 0 2px 10px var(--shadow);}}.success {diff --git a/frontend/components/AppHint.vue b/frontend/components/AppHint.vueindex f4f60df2..d8423e90 100644--- a/frontend/components/AppHint.vue+++ b/frontend/components/AppHint.vue@@ -45,6 +45,6 @@ const show = ref(false);white-space: nowrap;font-size: 0.75rem;z-index: 100;- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);+ box-shadow: 0 2px 8px var(--shadow);}</style>diff --git a/frontend/components/AppSelect.vue b/frontend/components/AppSelect.vueindex 08d0158e..531822cb 100644--- a/frontend/components/AppSelect.vue+++ b/frontend/components/AppSelect.vue@@ -114,7 +114,7 @@ button,border: 1px solid var(--border-color);background: var(--bg-color);text-align: left;- border-radius: 6px;+ border-radius: 8px;font-size: 15px;cursor: pointer;&:focus {diff --git a/frontend/components/BreadCrumb.vue b/frontend/components/BreadCrumb.vueindex 894764c9..ff9aed7f 100644--- a/frontend/components/BreadCrumb.vue+++ b/frontend/components/BreadCrumb.vue@@ -62,7 +62,7 @@ watchEffect(() => {}.breadcrumb-item + .breadcrumb-item::before {- content: '>';+ content: '/'; /* Separator */padding: 0 0.5rem;}diff --git a/frontend/components/DataTable.vue b/frontend/components/DataTable.vueindex 895464c7..14de7b20 100644--- a/frontend/components/DataTable.vue+++ b/frontend/components/DataTable.vue@@ -1,54 +1,55 @@<template><div class="container">- <div class="header" style="border-bottom: 1px solid var(--border-color)">- <input type="text" v-model="searchInput" placeholder="Search..." />- <div>- <span>Rows per page</span>- <select @change="(e: Event) => paginator.setMaxPerPage(parseInt((<HTMLSelectElement>e.target)?.value) || 10)">- <option value="10">10</option>- <option value="30">30</option>- <option value="50">50</option>- <option value="100">100</option>- <option value="250">250</option>- </select>- </div>- </div>- <table>- <thead>- <tr>- <th v-for="header in headers" :key="header.key">- {{ header.label }}- </th>- </tr>- </thead>- <tbody>- <tr v-for="row in data">- <td v-for="header in headers">- <span v-if="row[header.key]?.type === 'html'" v-html="row[header.key]?.content"></span>- <span v-else-if="row[header.key]?.type === 'slot'">- <slot :name="header.key" :cell="row[header.key]"></slot>- </span>- <span v-else v-text="row[header.key]?.content"></span>- </td>- </tr>- <tr>- <td colspan="100%">- <div class="footer">- <p>Showing {{ paginator.startIndex.value }} to {{ paginator.endIndex.value }} of {{ paginator.totalItems.value }} entries</p>- <div class="pagination">- <button type="button" @click="paginator.previous()" :disabled="!paginator.hasPrevious()"><</button>- <button @click="paginator.setPage(1)" :class="{ active: paginator.currentPage.value === 1 }">1</button>- <span v-if="shouldShowEllipsisBefore" class="ellipsis">...</span>- <button v-for="page in visiblePages" :key="page" @click="paginator.setPage(page)" :class="{ active: paginator.currentPage.value === page }">{{ page }}</button>- <span v-if="shouldShowEllipsisAfter" class="ellipsis">...</span>- <button v-if="paginator.totalPages.value > 1" @click="paginator.setPage(paginator.totalPages.value)" :class="{ active: paginator.currentPage.value === paginator.totalPages.value }">{{ paginator.totalPages.value }}</button>- <button type="button" @click="paginator.next()" :disabled="!paginator.hasNext()">></button>+ <div class="table-wrapper">+ <table>+ <thead>+ <tr>+ <th v-for="header in headers" :key="header.key">+ {{ header.label }}+ </th>+ </tr>+ </thead>+ <tbody>+ <tr v-for="row in data">+ <td v-for="header in headers">+ <span v-if="row[header.key]?.type === 'html'" v-html="row[header.key]?.content"></span>+ <span v-else-if="row[header.key]?.type === 'slot'">+ <slot :name="header.key" :cell="row[header.key]"></slot>+ </span>+ <span v-else v-text="row[header.key]?.content"></span>+ </td>+ </tr>+ <tr>+ <td colspan="100%">+ <div class="footer">+ <p>+ Showing {{ paginator.startIndex.value }} to {{ paginator.endIndex.value }} of {{ paginator.totalItems.value }} entries |+ <span>+ <span>Rows per page</span>+ <select @change="(e: Event) => paginator.setMaxPerPage(parseInt((<HTMLSelectElement>e.target)?.value) || 10)">+ <option value="10">10</option>+ <option value="30">30</option>+ <option value="50">50</option>+ <option value="100">100</option>+ <option value="250">250</option>+ </select>+ </span>+ </p>+ <div class="pagination">+ <button type="button" @click="paginator.previous()" :disabled="!paginator.hasPrevious()"><</button>+ <button @click="paginator.setPage(1)" :class="{ active: paginator.currentPage.value === 1 }">1</button>+ <span v-if="shouldShowEllipsisBefore" class="ellipsis">...</span>+ <button v-for="page in visiblePages" :key="page" @click="paginator.setPage(page)" :class="{ active: paginator.currentPage.value === page }">{{ page }}</button>+ <span v-if="shouldShowEllipsisAfter" class="ellipsis">...</span>+ <button v-if="paginator.totalPages.value > 1" @click="paginator.setPage(paginator.totalPages.value)" :class="{ active: paginator.currentPage.value === paginator.totalPages.value }">{{ paginator.totalPages.value }}</button>+ <button type="button" @click="paginator.next()" :disabled="!paginator.hasNext()">></button>+ </div></div>- </div>- </td>- </tr>- </tbody>- </table>+ </td>+ </tr>+ </tbody>+ </table>+ </div></div></template>@@ -102,11 +103,14 @@ interface Field {<style lang="scss" scoped>.container {- border-radius: 15px;+ border-radius: 8px;border: 1.5px solid var(--border-color);width: 100%;}-+.table-wrapper {+ width: 100%;+ overflow-x: auto;+}.header {display: flex;justify-content: space-between;@@ -143,8 +147,8 @@ td {color: var(--font-color-light);&:has(.footer) {- border-bottom-left-radius: 15px;- border-bottom-right-radius: 15px;+ border-bottom-left-radius: 8px;+ border-bottom-right-radius: 8px;}}diff --git a/frontend/components/DocumentCard.vue b/frontend/components/DocumentCard.vuenew file mode 100644index 00000000..747fdb04--- /dev/null+++ b/frontend/components/DocumentCard.vue@@ -0,0 +1,105 @@+<template>+ <div class="document-card">+ <header>+ <Icon :name="category(document.category)?.icon || 'files'" :class="`category-icon ${getAppColor(category(document.category)?.color as number) || 'red'}`" />+ <NuxtLink :to="`/dashboard/docs/${document.id}`" :class="`document-title`" :style="`color: var(--${getAppColor(category(document.category)?.color as number)})`">{{ document.name }}</NuxtLink>+ </header>+ <div class="tags" v-if="document.tags">+ <tag v-for="tag in document.tags.split(',')" :key="tag" class="blue">{{ tag.trim() }}</tag>+ </div>+ <p class="description">{{ document.description }}</p>+ <footer>+ <div class="footer-item">+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="var(--font-color)">+ <path+ d="m612-292 56-56-148-148v-184h-80v216l172 172ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 320q133 0 226.5-93.5T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160Z"+ />+ </svg>+ <span>{{ formatDate(parseInt(document.created_timestamp)) }}</span>+ </div>+ <div class="footer-item">+ <span>Updated : {{ formatDate(parseInt(document.updated_timestamp)) }}</span>+ </div>+ </footer>+ </div>+</template>++<script setup lang="ts">+import type { Document } from '@/stores';+defineProps<{ document: Document }>();+const categoriesStore = useCategoriesStore();+const category = (cat_id?: string) => categoriesStore.getById(cat_id || '');+function formatDate(timestamp: number): string {+ const date = new Date(timestamp);+ return `${date.getDate()} ${date.toLocaleString('default', { month: 'short' })} ${date.getFullYear()}`;+}+</script>++<style scoped lang="scss">+.document-card {+ border-radius: 12px;+ border: 1px solid var(--border-color-accent);+ box-shadow: 0 2px 10px var(--shadow);+ overflow: hidden;+ min-width: 340px;+ max-width: 400px;+ height: 300px;+ display: flex;+ flex-direction: column;+ justify-content: space-between;+ flex: 1;+}++header {+ background-color: var(--bg-contrast-2);+ padding: 12px;+ display: flex;+ align-items: center;+}++.category-icon {+ margin-right: 10px;+ padding: 6px;+ border-radius: 6px;+}++.document-title {+ font-size: 18px;+ font-weight: bold;+ text-decoration: none;+}++.description {+ padding: 0 5px;+ font-size: 16px;+ height: 120px;+ overflow: hidden;+ margin: 0;+ text-overflow: ellipsis;+}++.tags {+ padding: 6px 5px;+ display: flex;+ flex-wrap: wrap;+}++footer {+ padding: 10px;+ background-color: var(--bg-contrast);+ display: flex;+ flex-direction: column;+ font-size: 14px;+ color: #777;+ border-top: 1px solid var(--border-color-accent);+}++.footer-item {+ display: flex;+ align-items: center;+}++.footer-item svg {+ margin-right: 5px;+}+</style>diff --git a/frontend/components/DocumentsGrid.vue b/frontend/components/DocumentsGrid.vuenew file mode 100644index 00000000..a3fd7f27--- /dev/null+++ b/frontend/components/DocumentsGrid.vue@@ -0,0 +1,24 @@+<template>+ <div class="document-list">+ <DocumentCard v-if="documents.length" v-for="document in documents" :key="document.id" :document="document" />+ <div v-else style="width: 100%; height: 100%">+ <div style="text-align: center; margin: 10vh auto">+ <h1>No documents found</h1>+ </div>+ </div>+ </div>+</template>++<script setup lang="ts">+import type { Document } from '@/stores';+defineProps<{ documents: Document[] }>();+</script>++<style scoped lang="scss">+.document-list {+ display: grid;+ grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));+ gap: 20px;+ width: 100%;+}+</style>diff --git a/frontend/components/MarkdownEditor/LazyMarkdownEditor.vue b/frontend/components/MarkdownEditor/LazyMarkdownEditor.vueindex 50267aa8..208a90e6 100644--- a/frontend/components/MarkdownEditor/LazyMarkdownEditor.vue+++ b/frontend/components/MarkdownEditor/LazyMarkdownEditor.vue@@ -1,7 +1,7 @@<template><div class="editor-container"><Toolbar :document="document" @execute-action="exec" />- <div style="padding: 6px 0; flex: 1; display: flex; flex-direction: column; min-height: 0; gap: 8px">+ <div style="padding: 6px 8px; flex: 1; display: flex; flex-direction: column; min-height: 0; gap: 8px"><input placeholder="Title" class="title" v-model="document.name" v-if="!minimal" /><input placeholder="Description" class="description" v-model="document.description" v-if="!minimal" /><div class="markdown" ref="container">diff --git a/frontend/components/MarkdownEditor/Toolbar.vue b/frontend/components/MarkdownEditor/Toolbar.vueindex f3dcdb31..898e457e 100644--- a/frontend/components/MarkdownEditor/Toolbar.vue+++ b/frontend/components/MarkdownEditor/Toolbar.vue@@ -97,11 +97,20 @@ const toolbar = [<style scoped lang="scss">button {- padding: 0;+ padding: 4px;margin: 0;transform: none;+ border-radius: 50%;+ display: flex;+ align-items: center;+ justify-content: center;+ transition: background-color 0.2s;&:hover {- background-color: var(--selection-color);+ background-color: var(--blue-bg);+ &:deep(svg) {+ transition: fill 0.2s;+ fill: var(--blue);+ }}}@@ -111,7 +120,7 @@ button {align-items: center;flex-wrap: wrap;background-color: var(--bg-contrast-2);- border-radius: 6px;+ border-radius: 25px;border: 1px solid var(--border-color);padding: 0.25rem;color: var(--font-color-dark);diff --git a/frontend/components/Modal.vue b/frontend/components/Modal.vueindex 7a10fc4e..15abd7d3 100644--- a/frontend/components/Modal.vue+++ b/frontend/components/Modal.vue@@ -20,7 +20,7 @@ const emit = defineEmits(['close', 'confirm']);padding: 20px;background-color: var(--bg-contrast);border-radius: 10px;- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.33);+ box-shadow: 0 2px 8px var(--shadow);transition: all 0.3s ease;font-size: initial;}diff --git a/frontend/components/ModalManager.vue b/frontend/components/ModalManager.vueindex ad3c065c..651df873 100644--- a/frontend/components/ModalManager.vue+++ b/frontend/components/ModalManager.vue@@ -22,7 +22,7 @@ const modals = modalManager.modals;padding: 16px 22px;background-color: var(--bg-contrast);border-radius: 10px;- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);+ box-shadow: 0 2px 10px var(--shadow);transition: all 0.3s ease;font-size: initial;position: relative;diff --git a/frontend/components/Notification.vue b/frontend/components/Notification.vueindex a6f3d1e5..65ae403b 100644--- a/frontend/components/Notification.vue+++ b/frontend/components/Notification.vue@@ -36,7 +36,7 @@ const close = (id: number) => useNotifications().remove(id);border-radius: 8px;backdrop-filter: blur(12px);color: white;- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);+ box-shadow: 0 2px 10px var(--shadow);animation: fadeIn 0.3s ease;position: relative;}diff --git a/frontend/components/Sidebar/Dock.vue b/frontend/components/Sidebar/Dock.vueindex 5c560d48..cbb3784b 100644--- a/frontend/components/Sidebar/Dock.vue+++ b/frontend/components/Sidebar/Dock.vue@@ -1,26 +1,29 @@<template><div class="dock">- <NuxtLink to="/dashboard">- <Icon name="dashboard" fill="var(--font-color-dark)" :big="true" />+ <NuxtLink to="/dashboard/home">+ <Icon name="dashboard" fill="var(--font-color)" :big="true" /></NuxtLink><NuxtLink to="/dashboard/categories">- <Icon name="categories" fill="var(--font-color-dark)" :big="true" />+ <Icon name="categories" fill="var(--font-color)" :big="true" />+ </NuxtLink>+ <NuxtLink to="/dashboard/docs">+ <Icon name="files" fill="var(--font-color)" :big="true" /></NuxtLink><NuxtLink to="/dashboard/cdn">- <Icon name="cdn" fill="var(--font-color-dark)" :big="true" />+ <Icon name="cdn" fill="var(--font-color)" :big="true" /></NuxtLink><NuxtLink to="/dashboard/settings">- <Icon name="settings" fill="var(--font-color-dark)" :big="true" />+ <Icon name="settings" fill="var(--font-color)" :big="true" /></NuxtLink><NuxtLink to="/dashboard/import">- <Icon name="import" fill="var(--font-color-dark)" :big="true" />+ <Icon name="import" fill="var(--font-color)" :big="true" /></NuxtLink><NuxtLink to="/dashboard/admin" v-if="useUserStore().user?.role === 2">- <Icon name="users" fill="var(--font-color-dark)" :big="true" />+ <Icon name="users" fill="var(--font-color)" :big="true" /></NuxtLink><div style="margin-top: auto">- <NuxtLink to="#" @click="closeDock">- <Icon name="arrow_close" fill="var(--font-color-dark)" :big="true" />+ <NuxtLink @click="closeDock">+ <Icon name="arrow_close" fill="var(--font-color)" :big="true" /></NuxtLink></div></div>@@ -30,9 +33,10 @@.dock {display: flex;flex-direction: column;- gap: 0.5rem;- padding: 0.8rem 0.3rem;+ padding: 1rem 0.3rem;border-right: 1px solid var(--border-color);+ gap: 8px;+ background-color: var(--bg-contrast);}a {display: flex;@@ -40,19 +44,21 @@ a {justify-content: center;width: 40px;height: 40px;- border-radius: 50%;+ border-radius: 8px;transition: background-color 0.3s ease;&:hover {- background-color: var(--selection-color);+ &:deep(svg) {+ fill: var(--opposite-color);+ }}}-/*-a.router-link-exact-active {++a.router-link-active {+ border-bottom: 2.5px solid $primary-color;&:deep(svg) {- fill: var(--font-color);+ fill: var(--opposite-color);}}-*/</style><script setup lang="ts">diff --git a/frontend/components/Sidebar/Search.vue b/frontend/components/Sidebar/Search.vueindex 9a566615..6bb9370e 100644--- a/frontend/components/Sidebar/Search.vue+++ b/frontend/components/Sidebar/Search.vue@@ -74,7 +74,7 @@ const handleSearchShortCut = (e: KeyboardEvent) => {padding: 20px;background-color: var(--bg-color);border-radius: 10px;- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.33);+ box-shadow: 0 2px 8px var(--shadow);transition: all 0.3s ease;}diff --git a/frontend/components/Sidebar/Sidebar.vue b/frontend/components/Sidebar/Sidebar.vueindex baf7ac2f..23b520aa 100644--- a/frontend/components/Sidebar/Sidebar.vue+++ b/frontend/components/Sidebar/Sidebar.vue@@ -20,14 +20,17 @@<div class="email">{{ userStore.user.email }}</div></div><div class="icons">- <NuxtLink @click="onClick" to="/dashboard/docs/new"><Icon name="add_file" :mid="true" fill="var(--font-color-dark)" /></NuxtLink>- <NuxtLink @click="newCategory"><Icon name="add_folder" :mid="true" fill="var(--font-color-dark)" /></NuxtLink>- <NuxtLink @click="sidebarTree.collapseAll"><Icon name="collapse" :mid="true" fill="var(--font-color-dark)" /></NuxtLink>+ <NuxtLink @click="onClick" to="/dashboard/docs/new"><Icon name="add_file" :mid="true" fill="var(--font-color)" /></NuxtLink>+ <NuxtLink @click="newCategory"><Icon name="add_folder" :mid="true" fill="var(--font-color)" /></NuxtLink>+ <NuxtLink @click="sidebarTree.collapseAll"><Icon name="collapse" :mid="true" fill="var(--font-color)" /></NuxtLink>+ <NuxtLink @click="toggleDock"><Icon name="dock" :mid="true" fill="var(--font-color)" /></NuxtLink></div></div></div><SidebarWorkspaces :options="workspaces" /><Search />+ <CollapseItem v-for="item in navigationItemsComputed" :key="item.id" :item="item" :root="true" />+ <hr style="margin: 5px 0; width: 100%" /><CollapseItem v-for="item in tree" :key="item.id" :item="item" :root="true" /></div></Resizable>@@ -67,7 +70,7 @@ const navigationItemsComputed = computed<Item[]>(() =>})),);const sidebarTree = useSidebarTree();-+const toggleDock = () => preferences.set({ key: 'hideDock', value: !preferences.get('hideDock') });const filterItems = (items: Item[]): Item[] => {if (!filter.value.trim()) return items;const filterRecursive = (items: Item[]): Item[] => {@@ -85,7 +88,7 @@ const filterItems = (items: Item[]): Item[] => {return filterRecursive(items);};-const tree = computed(() => filterItems([...navigationItemsComputed.value, ...sidebarTree.filtered.value]));+const tree = computed(() => filterItems(sidebarTree.filtered.value));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;@@ -114,13 +117,13 @@ onBeforeUnmount(() => {<style scoped lang="scss">.sidebar {- padding: 0.5rem 0.7rem;max-height: 100%;- overflow-y: scroll;width: 100%;- font-family: sans-serif;+ padding: 0.5rem 0.7rem;+ overflow-y: scroll;+ font-family: Inter;* {- font-family: sans-serif;+ font-family: Inter;}}@@ -162,12 +165,12 @@ onBeforeUnmount(() => {}}.search {- height: 30px;+ height: 28px;margin: 2.5px 0;- border-radius: 8px;+ border-radius: 6px;+ border: 1px solid var(--border-color);width: 98%;outline: none;- border: none;background-color: var(--bg-contrast);background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%232573cf" height="24" viewBox="0 -960 960 960" width="22"><path d="M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"/></svg>');background-repeat: no-repeat;@@ -192,8 +195,8 @@ onBeforeUnmount(() => {}}.compact:deep(.item) {- font-size: 15px;- padding: 0 3px;+ font-size: 14px;+ padding: 0.5px 8px;margin: 0;}diff --git a/frontend/components/Sidebar/SidebarItem.vue b/frontend/components/Sidebar/SidebarItem.vueindex 77a36505..25da5e33 100644--- a/frontend/components/Sidebar/SidebarItem.vue+++ b/frontend/components/Sidebar/SidebarItem.vue@@ -89,14 +89,14 @@ const drop = async (event: DragEvent) => {display: flex;justify-content: flex-start;align-items: center;- padding: 0 2.5px;+ padding: 1px 8px;margin: 2.5px 0;border-radius: 6px;color: var(--font-color);cursor: pointer;width: 98%;- font-size: 16px;- font-weight: 400;+ font-size: 15.2px;+ font-weight: 500;letter-spacing: -0.5px;&:hover,&:has(.router-link-exact-active:not(.nav)) {@@ -124,7 +124,7 @@ const drop = async (event: DragEvent) => {.drag-over {border-bottom: 2px solid $primary-color;- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);+ box-shadow: 0 2px 10px var(--shadow);}.nav {display: none;diff --git a/frontend/components/Sidebar/SidebarWorkspace.vue b/frontend/components/Sidebar/SidebarWorkspace.vueindex 92096b99..e411e157 100644--- a/frontend/components/Sidebar/SidebarWorkspace.vue+++ b/frontend/components/Sidebar/SidebarWorkspace.vue@@ -1,16 +1,9 @@<template><div>- <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" width="18px" height="18px">- <g id="SVGRepo_bgCarrier" stroke-width="0"></g>- <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>- <g id="SVGRepo_iconCarrier">- <path- fill-rule="evenodd"- clip-rule="evenodd"- d="M6 5C5.44772 5 5 5.44772 5 6V18C5 18.5523 5.44772 19 6 19H13V14C13 13.4477 13.4477 13 14 13H19V6C19 5.44772 18.5523 5 18 5H6ZM17.5858 15H15V17.5858L17.5858 15ZM3 6C3 4.34315 4.34315 3 6 3H18C19.6569 3 21 4.34315 21 6V14C21 14.2652 20.8946 14.5196 20.7071 14.7071L14.7071 20.7071C14.5196 20.8946 14.2652 21 14 21H6C4.34315 21 3 19.6569 3 18V6Z"- style="fill: var(--font-color)"- ></path>- </g>+ <svg xmlns="http://www.w3.org/2000/svg" height="18px" viewBox="0 -960 960 960" width="18px" fill="var(--font-color)">+ <path+ d="M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-640v560h560v-560h-80v245q0 12-10 17.5t-20-.5l-49-30q-10-6-21-6t-21 6l-49 30q-10 6-20 .5T480-515v-245H200Zm0 560v-560 560Z"+ /></svg> {{ option.text }}</div>diff --git a/frontend/components/Sidebar/SidebarWorkspaces.vue b/frontend/components/Sidebar/SidebarWorkspaces.vueindex 8eea8a03..055b8d4e 100644--- a/frontend/components/Sidebar/SidebarWorkspaces.vue+++ b/frontend/components/Sidebar/SidebarWorkspaces.vue@@ -51,8 +51,8 @@ onBeforeUnmount(() => document.removeEventListener('click', handleClickOutside))align-items: center;padding: 2px 8px;border: 1px solid var(--border-color);- margin: 4px;- border-radius: 8px;+ margin: 4px 0;+ border-radius: 6px;cursor: pointer;}.placeholder {@@ -61,7 +61,7 @@ onBeforeUnmount(() => document.removeEventListener('click', handleClickOutside)).dropdown-selected.open {border-color: var(--selection-color);- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);+ box-shadow: 0 2px 10px var(--shadow);}.dropdown-arrow {diff --git a/frontend/components/ViewSelection.vue b/frontend/components/ViewSelection.vuenew file mode 100644index 00000000..ddf01fc5--- /dev/null+++ b/frontend/components/ViewSelection.vue@@ -0,0 +1,46 @@+<template>+ <div class="view-selection">+ <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>+ <button class="view-button" :class="{ active: view === 'list' }" @click="view = 'list'">+ <Icon fill="var(--font-color)" name="table" />+ </button>+ </div>+</template>++<script setup lang="ts">+const view = defineModel<'table' | 'list'>();+const storedView = localStorage.getItem('viewSelection');+if (storedView) view.value = storedView as 'table' | 'list';+watch(view, newView => localStorage.setItem('viewSelection', newView as 'table' | 'list'));+</script>++<style scoped lang="scss">+.view-selection {+ gap: 10px;+ margin: 2px 4px;+ padding: 0 4px;+ border-radius: 18px;+ border: 1px solid var(--border-color);+ width: fit-content;+}+.view-button {+ border: none;+ border-radius: 6px;+ padding: 8px;+ width: 35px;+ cursor: pointer;+ transition: background-color 0.3s;+ &.active:deep(svg) {+ transition: fill 0.1s;+ fill: $primary-color;+ }++ svg {+ width: 20px;+ height: 20px;+ }+}+</style>diff --git a/frontend/helpers/icons.ts b/frontend/helpers/icons.tsindex 0ef2d6f9..08495452 100644--- a/frontend/helpers/icons.ts+++ b/frontend/helpers/icons.ts@@ -4,20 +4,24 @@ const icons = {archive: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect x="2.5" y="2.5" width="11" height="11" rx="1.5" fill="var(--grey-bg)" stroke="var(--grey)"/><rect x="6" y="4" width="2" height="2" rx="0.5" fill="var(--grey)"/><rect x="6" y="8" width="2" height="2" rx="0.5" fill="var(--grey)"/><rect x="8" y="10" width="2" height="2" rx="0.5" fill="var(--grey)"/><rect x="8" y="6" width="2" height="2" rx="0.5" fill="var(--grey)"/></svg>`,arrow_close: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M440-240 200-480l240-240 56 56-183 184 183 184-56 56Zm264 0L464-480l240-240 56 56-183 184 183 184-56 56Z"/></svg>`,backup: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M260-160q-91 0-155.5-63T40-377q0-78 47-139t123-78q17-72 85-137t145-65q33 0 56.5 23.5T520-716v242l64-62 56 56-160 160-160-160 56-56 64 62v-242q-76 14-118 73.5T280-520h-20q-58 0-99 41t-41 99q0 58 41 99t99 41h480q42 0 71-29t29-71q0-42-29-71t-71-29h-60v-80q0-48-22-89.5T600-680v-93q74 35 117 103.5T760-520q69 8 114.5 59.5T920-340q0 75-52.5 127.5T740-160H260Zm220-358Z"/></svg>`,- categories: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M320-320h480v-480h-80v280l-100-60-100 60v-280H320v480Zm0 80q-33 0-56.5-23.5T240-320v-480q0-33 23.5-56.5T320-880h480q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H320ZM160-80q-33 0-56.5-23.5T80-160v-560h80v560h560v80H160Zm360-720h200-200Zm-200 0h480-480Z"/></svg>`,- cdn: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M485-440h163q26 0 44-18t18-44q0-26-18-44.5T648-565h-2q-5-32-29-53.5T560-640q-26 0-47 13.5T481-590q-30 2-50.5 23.5T410-515q0 30 21.5 52.5T485-440ZM120-120q-33 0-56.5-23.5T40-200v-520h80v520h680v80H120Zm160-160q-33 0-56.5-23.5T200-360v-440q0-33 23.5-56.5T280-880h200l80 80h280q33 0 56.5 23.5T920-720v360q0 33-23.5 56.5T840-280H280Zm0-80h560v-360H527l-80-80H280v440Zm0 0v-440 440Z"/></svg>`,+ categories: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" ><path d="M320-320h480v-480h-80v245q0 12-10 18t-20-1l-49-29q-10-6-21.5-6t-20.5 6l-49 29q-11 7-20.5 1t-9.5-18v-245H320v480Zm0 80q-33 0-56.5-23.5T240-320v-480q0-33 23.5-56.5T320-880h480q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H320ZM160-80q-33 0-56.5-23.5T80-160v-520q0-17 11.5-28.5T120-720q17 0 28.5 11.5T160-680v520h520q17 0 28.5 11.5T720-120q0 17-11.5 28.5T680-80H160Zm160-720v480-480Zm200 245q0 12 9.5 18t20.5-1l49-29q9-6 20.5-6t21.5 6l49 29q10 7 20 1t10-18q0 12-10 18t-20-1l-49-29q-10-6-21.5-6t-20.5 6l-49 29q-11 7-20.5 1t-9.5-18Z"/></svg>`,+ //`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M320-320h480v-480h-80v280l-100-60-100 60v-280H320v480Zm0 80q-33 0-56.5-23.5T240-320v-480q0-33 23.5-56.5T320-880h480q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H320ZM160-80q-33 0-56.5-23.5T80-160v-560h80v560h560v80H160Zm360-720h200-200Zm-200 0h480-480Z"/></svg>`,+ cdn: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" ><path d="M485-440h163q26 0 44-18t18-44q0-26-18-44.5T648-565h-2q-5-32-29-53.5T560-640q-26 0-47 13.5T481-590q-30 2-50.5 23.5T410-515q0 30 21.5 52.5T485-440ZM120-120q-33 0-56.5-23.5T40-200v-480q0-17 11.5-28.5T80-720q17 0 28.5 11.5T120-680v480h640q17 0 28.5 11.5T800-160q0 17-11.5 28.5T760-120H120Zm160-160q-33 0-56.5-23.5T200-360v-440q0-33 23.5-56.5T280-880h167q16 0 30.5 6t25.5 17l57 57h280q33 0 56.5 23.5T920-720v360q0 33-23.5 56.5T840-280H280Zm0-80h560v-360H527l-80-80H280v440Zm0 0v-440 440Z"/></svg>`,close: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"stroke-linecap="round" stroke-linejoin="round" class="h-4 w-4"><path d="M18 6 6 18"></path><path d="m6 6 12 12"></path></svg>`,collapse: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="m480-500 160-160H320l160 160Zm280-340q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560ZM200-320v120h560v-120H200Zm560-80v-360H200v360h560Zm-560 80v120-120Z"/></svg>`,copy: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="var(--font-color)"><path d="M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z"/></svg>`,- dashboard: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M400-80q-33 0-56.5-23.5T320-160v-160H160q-33 0-56.5-23.5T80-400v-400q0-33 23.5-56.5T160-880h400q33 0 56.5 23.5T640-800v160h160q33 0 56.5 23.5T880-560v400q0 33-23.5 56.5T800-80H400Zm0-80h400v-400H560v-240H160v400h240v240Zm80-320Z"/></svg>`,+ dashboard: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M240-200h120v-200q0-17 11.5-28.5T400-440h160q17 0 28.5 11.5T600-400v200h120v-360L480-740 240-560v360Zm-80 0v-360q0-19 8.5-36t23.5-28l240-180q21-16 48-16t48 16l240 180q15 11 23.5 28t8.5 36v360q0 33-23.5 56.5T720-120H560q-17 0-28.5-11.5T520-160v-200h-80v200q0 17-11.5 28.5T400-120H240q-33 0-56.5-23.5T160-200Zm320-270Z"/></svg>`,delete: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="var(--font-color)"><path d="M280-120q-33 0-56.5-23.5T200-200v-520h-40v-80h200v-40h240v40h200v80h-40v520q0 33-23.5 56.5T680-120H280Zm400-600H280v520h400v-520ZM360-280h80v-360h-80v360Zm160 0h80v-360h-80v360ZM280-720v520-520Z" /></svg>`,+ dock: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm120-80v-560H200v560h120Zm80 0h360v-560H400v560Zm-80 0H200h120Z"/></svg>`,draft: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path style="fill:var(--teal)" d="M240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z"/></svg>`,edit: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="var(--font-color)"><path d="M200-200h57l391-391-57-57-391 391v57Zm-80 80v-170l528-527q12-11 26.5-17t30.5-6q16 0 31 6t26 18l55 56q12 11 17.5 26t5.5 30q0 16-5.5 30.5T817-647L290-120H120Zm640-584-56-56 56 56Zm-141 85-28-29 57 57-29-28Z"/></svg>`,file: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path style="fill:var(--red);" d="M200-200h360v-200h200v-360H200v560Zm0 80q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v400L600-120H200Zm80-280v-80h200v80H280Zm0-160v-80h400v80H280Zm-80 360v-560 560Z"/></svg>`,+ files: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" ><path d="M360-600v440h280v-120q0-17 11.5-28.5T680-320h120v-280H360Zm220 220ZM280-160v-441q0-33 24-56t57-23h439q33 0 56.5 23.5T880-600v287q0 16-6 30.5T857-257L703-103q-11 11-25.5 17T647-80H360q-33 0-56.5-23.5T280-160ZM81-710q-6-33 13-59.5t52-32.5l434-77q32-6 58 13.5t34 51.5l7 31q5 20-6 32t-26 14q-15 2-28.5-5.5T600-770l-7-30-433 77 60 344q3 17-6 30.5T188-332q-17 3-30-6.5T142-365L81-710Z"/></svg>`,file_parent: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path style="fill:var(--green);" d="M320-320h200v-200H320v200Zm0-280h480v-200H320v200Zm280 280h200v-200H600v200Zm-280 80q-33 0-56.5-23.5T240-320v-480q0-33 23.5-56.5T320-880h480q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H320ZM160-80q-33 0-56.5-23.5T80-160v-560h80v560h560v80H160Z"/></svg>`,folder: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" style="fill:var(--yellow)"><path style="fill:var(--yellow)" d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h240l80 80h320q33 0 56.5 23.5T880-640H447l-80-80H160v480l96-320h684L837-217q-8 26-29.5 41.5T760-160H160Zm84-80h516l72-240H316l-72 240Zm0 0 72-240-72 240Zm-84-400v-80 80Z"/></svg>`,image: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path style="fill:var(--green);" d="M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm40-80h480L570-480 450-320l-90-120-120 160Zm-40 80v-560 560Z"/></svg>`,- import: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="m720-80 120-120-28-28-72 72v-164h-40v164l-72-72-28 28L720-80ZM480-800 243-663l237 137 237-137-237-137ZM120-321v-318q0-22 10.5-40t29.5-29l280-161q10-5 19.5-8t20.5-3q11 0 21 3t19 8l280 161q19 11 29.5 29t10.5 40v159h-80v-116L479-434 200-596v274l240 139v92L160-252q-19-11-29.5-29T120-321ZM720 0q-83 0-141.5-58.5T520-200q0-83 58.5-141.5T720-400q83 0 141.5 58.5T920-200q0 83-58.5 141.5T720 0ZM480-491Z"/></svg>`,+ import: `<svg xmlns="http://www.w3.org/2000/svg"viewBox="0 -960 960 960" ><path d="M480-800 243-663l237 137 237-137-237-137ZM120-321v-318q0-22 10.5-40t29.5-29l280-161q10-5 19.5-8t20.5-3q11 0 21 3t19 8l280 161q19 11 29.5 29t10.5 40v119q0 17-11.5 28.5T800-480q-17 0-28.5-11.5T760-520v-76L519-457q-19 11-40 11t-40-11L200-596v274l220 128q9 5 14.5 14t5.5 20q0 23-20 34.5t-40 .5L160-252q-19-11-29.5-29T120-321ZM720 0q-83 0-141.5-58.5T520-200q0-83 58.5-141.5T720-400q83 0 141.5 58.5T920-200q0 83-58.5 141.5T720 0ZM480-491Zm220 335-58-58q-6-6-14-6t-14 6q-6 6-6 14t6 14l78 78q6 6 13 8.5t15 2.5q8 0 15-2.5t13-8.5l78-78q6-6 6-14t-6-14q-6-6-14-6t-14 6l-58 58v-144q0-8-6-14t-14-6q-8 0-14 6t-6 14v144Z"/></svg>`,+ list: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M160-280q-17 0-28.5-11.5T120-320q0-17 11.5-28.5T160-360h480q17 0 28.5 11.5T680-320q0 17-11.5 28.5T640-280H160Zm80-160q-17 0-28.5-11.5T200-480q0-17 11.5-28.5T240-520h480q17 0 28.5 11.5T760-480q0 17-11.5 28.5T720-440H240Zm80-160q-17 0-28.5-11.5T280-640q0-17 11.5-28.5T320-680h480q17 0 28.5 11.5T840-640q0 17-11.5 28.5T800-600H320Z"/></svg>`,logout: `<svg xmlns="http://www.w3.org/2000/svg" style="fill:var(--font-color);" viewBox="0 -960 960 960"><path d="M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h280v80H200Zm440-160-55-58 102-102H360v-80h327L585-622l55-58 200 200-200 200Z"/></svg>`,markdown: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="m640-360 120-120-42-43-48 48v-125h-60v125l-48-48-42 43 120 120ZM160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm0-80h640v-480H160v480Zm0 0v-480 480Zm60-120h60v-180h40v120h60v-120h40v180h60v-200q0-17-11.5-28.5T440-600H260q-17 0-28.5 11.5T220-560v200Z"/></svg>`,pdf: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path style="fill:var(--green);" d="M280-280h280v-80H280v80Zm0-160h400v-80H280v80Zm0-160h400v-80H280v80Zm-80 480q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm0-560v560-560Z"/></svg>`,@@ -28,6 +32,7 @@ const icons = {settings: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="m370-80-16-128q-13-5-24.5-12T307-235l-119 50L78-375l103-78q-1-7-1-13.5v-27q0-6.5 1-13.5L78-585l110-190 119 50q11-8 23-15t24-12l16-128h220l16 128q13 5 24.5 12t22.5 15l119-50 110 190-103 78q1 7 1 13.5v27q0 6.5-2 13.5l103 78-110 190-118-50q-11 8-23 15t-24 12L590-80H370Zm70-80h79l14-106q31-8 57.5-23.5T639-327l99 41 39-68-86-65q5-14 7-29.5t2-31.5q0-16-2-31.5t-7-29.5l86-65-39-68-99 42q-22-23-48.5-38.5T533-694l-13-106h-79l-14 106q-31 8-57.5 23.5T321-633l-99-41-39 68 86 64q-5 15-7 30t-2 32q0 16 2 31t7 30l-86 65 39 68 99-42q22 23 48.5 38.5T427-266l13 106Zm42-180q58 0 99-41t41-99q0-58-41-99t-99-41q-59 0-99.5 41T342-480q0 58 40.5 99t99.5 41Zm-2-140Z"/></svg>`,shortcuts: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M260-120q-58 0-99-41t-41-99q0-58 41-99t99-41h60v-160h-60q-58 0-99-41t-41-99q0-58 41-99t99-41q58 0 99 41t41 99v60h160v-60q0-58 41-99t99-41q58 0 99 41t41 99q0 58-41 99t-99 41h-60v160h60q58 0 99 41t41 99q0 58-41 99t-99 41q-58 0-99-41t-41-99v-60H400v60q0 58-41 99t-99 41Zm0-80q25 0 42.5-17.5T320-260v-60h-60q-25 0-42.5 17.5T200-260q0 25 17.5 42.5T260-200Zm440 0q25 0 42.5-17.5T760-260q0-25-17.5-42.5T700-320h-60v60q0 25 17.5 42.5T700-200ZM400-400h160v-160H400v160ZM260-640h60v-60q0-25-17.5-42.5T260-760q-25 0-42.5 17.5T200-700q0 25 17.5 42.5T260-640Zm380 0h60q25 0 42.5-17.5T760-700q0-25-17.5-42.5T700-760q-25 0-42.5 17.5T640-700v60Z"/></svg>`,snippets: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M600-360q50 0 85-35t35-85q0-50-35-85t-85-35q-50 0-85 35t-35 85q0 50 35 85t85 35Zm0 80q-72 0-127-45t-69-115H240v-80h164q5-22 13.5-42.5T440-600H160v-80h440q83 0 141.5 58.5T800-480q0 83-58.5 141.5T600-280Z"/></svg>`,+ table: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200q-33 0-56.5-23.5T120-200Zm400-240v240h240v-240H520Zm0-80h240v-240H520v240Zm-80 0v-240H200v240h240Zm0 80H200v240h240v-240Z"/></svg>`,users: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M40-160v-112q0-34 17.5-62.5T104-378q62-31 126-46.5T360-440q66 0 130 15.5T616-378q29 15 46.5 43.5T680-272v112H40Zm720 0v-120q0-44-24.5-84.5T666-434q51 6 96 20.5t84 35.5q36 20 55 44.5t19 53.5v120H760ZM360-480q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47Zm400-160q0 66-47 113t-113 47q-11 0-28-2.5t-28-5.5q27-32 41.5-71t14.5-81q0-42-14.5-81T544-792q14-5 28-6.5t28-1.5q66 0 113 47t47 113ZM120-240h480v-32q0-11-5.5-20T580-306q-54-27-109-40.5T360-360q-56 0-111 13.5T140-306q-9 5-14.5 14t-5.5 20v32Zm240-320q33 0 56.5-23.5T440-640q0-33-23.5-56.5T360-720q-33 0-56.5 23.5T280-640q0 33 23.5 56.5T360-560Zm0 320Zm0-400Z"/></svg>`,user_settings: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M400-480q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM80-160v-112q0-33 17-62t47-44q51-26 115-44t141-18h14q6 0 12 2-8 18-13.5 37.5T404-360h-4q-71 0-127.5 18T180-306q-9 5-14.5 14t-5.5 20v32h252q6 21 16 41.5t22 38.5H80Zm560 40-12-60q-12-5-22.5-10.5T584-204l-58 18-40-68 46-40q-2-14-2-26t2-26l-46-40 40-68 58 18q11-8 21.5-13.5T628-460l12-60h80l12 60q12 5 22.5 11t21.5 15l58-20 40 70-46 40q2 12 2 25t-2 25l46 40-40 68-58-18q-11 8-21.5 13.5T732-180l-12 60h-80Zm40-120q33 0 56.5-23.5T760-320q0-33-23.5-56.5T680-400q-33 0-56.5 23.5T600-320q0 33 23.5 56.5T680-240ZM400-560q33 0 56.5-23.5T480-640q0-33-23.5-56.5T400-720q-33 0-56.5 23.5T320-640q0 33 23.5 56.5T400-560Zm0-80Zm12 400Z"/></svg>`,view: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="var(--font-color)"><path d="M480-320q75 0 127.5-52.5T660-500q0-75-52.5-127.5T480-680q-75 0-127.5 52.5T300-500q0 75 52.5 127.5T480-320Zm0-72q-45 0-76.5-31.5T372-500q0-45 31.5-76.5T480-608q45 0 76.5 31.5T588-500q0 45-31.5 76.5T480-392Zm0 192q-146 0-266-81.5T40-500q54-137 174-218.5T480-800q146 0 266 81.5T920-500q-54 137-174 218.5T480-200Zm0-300Zm0 220q113 0 207.5-59.5T832-500q-50-101-144.5-160.5T480-720q-113 0-207.5 59.5T128-500q50 101 144.5 160.5T480-280Z"/></svg>`,diff --git a/frontend/pages/(public)/index.vue b/frontend/pages/(public)/index.vueindex 6aafaaa5..e21f2862 100644--- a/frontend/pages/(public)/index.vue+++ b/frontend/pages/(public)/index.vue@@ -264,11 +264,11 @@ h3 {font-size: 1rem;transition: all 0.3s ease;display: inline-block;- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);+ box-shadow: 0 2px 10px var(--shadow);border: none;&:hover {- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);+ box-shadow: 0 2px 10px var(--shadow);transform: translateY(-4px);}@@ -310,7 +310,7 @@ img {}.demo img {- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);+ box-shadow: 0 2px 10px var(--shadow);display: block;margin: 25px auto;diff --git a/frontend/pages/dashboard/categories/[id]/index.vue b/frontend/pages/dashboard/categories/[id]/index.vueindex 94999c6a..a2c95a2b 100644--- a/frontend/pages/dashboard/categories/[id]/index.vue+++ b/frontend/pages/dashboard/categories/[id]/index.vue@@ -4,31 +4,7 @@<h1 style="font-size: 20px">Documents of category <tag class="blue">New</tag></h1></header><div class="document-list">- <div v-if="documents.length" v-for="document in documents" :key="document.id" class="document-card">- <div>- <header class="document-header">- <Icon :name="category(document.category)?.icon || ''" :class="`category-icon ${getAppColor(category(document.category)?.color as number)}`" />- <NuxtLink :to="`/dashboard/docs/${document.id}`" :class="`document-title`" :style="`color: var(--${getAppColor(category(document.category)?.color as number)})`">{{ document.name }}</NuxtLink>- </header>- <p class="document-description">{{ document.description }}</p>- </div>- <div class="document-tags" v-if="document.tags">- <tag v-for="tag in document.tags.split(',')" :key="tag" class="blue">{{ tag.trim() }}</tag>- </div>- <footer class="document-footer">- <div class="footer-item">- <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="var(--font-color)">- <path- d="m612-292 56-56-148-148v-184h-80v216l172 172ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 320q133 0 226.5-93.5T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160Z"- />- </svg>- <span>{{ formatDate(parseInt(document.created_timestamp)) }}</span>- </div>- <div class="footer-item">- <span>Updated : {{ formatDate(parseInt(document.updated_timestamp)) }}</span>- </div>- </footer>- </div>+ <DocumentsGrid v-if="documents.length" :documents="documents" /><div v-else style="width: 100%; height: 100%"><div style="text-align: center; margin: 10vh auto"><h1>No documents found</h1>@@ -46,7 +22,6 @@ const route = useRoute();const mainCategoryId = route.params.id as string;const categoriesStore = useCategoriesStore();const documentsStore = useDocumentsStore();-const category = (cat_id?: string) => categoriesStore.getById(cat_id || mainCategoryId);const colorMode = useColorMode();definePageMeta({@@ -64,85 +39,4 @@ const documents = computed(() => {}return documents;});-function formatDate(timestamp: number): string {- const date = new Date(timestamp);- return `${date.getDate()} ${date.toLocaleString('default', { month: 'short' })} ${date.getFullYear()}`;-}</script>--<style scoped lang="scss">-.document-list {- border-top: 1px solid #ddd;- padding: 10px 0;- display: flex;- flex-wrap: wrap;- justify-content: space-around;- gap: 20px;- width: 100%;-}--.document-card {- border-radius: 6px;- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);- overflow: hidden;- min-width: 340px;- max-width: 400px;- display: flex;- flex-direction: column;- justify-content: space-between;- flex: 1;-}--.document-header {- background-color: var(--bg-contrast-2);- padding: 12px;- display: flex;- align-items: center;-}--.category-icon {- margin-right: 10px;- padding: 6px;- border-radius: 6px;-}--.document-title {- font-size: 18px;- font-weight: bold;- text-decoration: none;-}--.document-description {- padding: 5px;- font-size: 16px;- height: 120px;- overflow: hidden;- text-overflow: ellipsis;-}--.document-tags {- padding: 0 5px;- margin-bottom: 10px;- display: flex;- flex-wrap: wrap;-}--.document-footer {- padding: 10px;- background-color: var(--bg-contrast);- display: flex;- flex-direction: column;- font-size: 14px;- color: #777;- border-top: 1px solid var(--border-color);-}--.footer-item {- display: flex;- align-items: center;-}--.footer-item svg {- margin-right: 5px;-}-</style>diff --git a/frontend/pages/dashboard/categories/index.vue b/frontend/pages/dashboard/categories/index.vueindex 5510fbc5..14f5b811 100644--- a/frontend/pages/dashboard/categories/index.vue+++ b/frontend/pages/dashboard/categories/index.vue@@ -1,22 +1,22 @@<template><div class="card-component"><header>- <h1 style="font-size: 20px">Workspaces & Categories <tag class="blue">New</tag></h1>+ <h1>Workspaces & Categories <tag class="blue">New</tag></h1><div style="display: flex; gap: 8px"><AppButton type="primary" @click="createWorkspace">+ Workspace</AppButton><AppButton type="primary" @click="createCategory">+ Category</AppButton><NuxtLink to="/dashboard/import"><AppButton type="secondary" variant="outline">Import</AppButton></NuxtLink></div></header>- <div style="padding: 10px 0; border-top: 1px solid #ddd; display: flex; justify-content: space-between; align-items: center">+ <div style="padding-bottom: 10px"><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 filteredItems" :key="workspace.id">+ <div v-if="filteredItems.length" class="workspace" v-for="workspace in filteredItems" :key="workspace.id"><h3 class="wp-name">{{ workspace.label }}</h3><WorkspaceTree v-for="node in workspace.childrens" :node="node" @edit="editNode" @delete="deleteNode" /></div>- <div v-else style="color: #6c757d; font-style: italic">No workspaces found</div>+ <div v-else style="color: #6c757d; font-style: italic">No workspaces or category found</div></div></template>@@ -61,12 +61,6 @@ function deleteNode(node: Item) {</script><style scoped>-header {- display: flex;- justify-content: space-between;- align-items: baseline;- padding-bottom: 16px;-}.workspace {display: flex;flex-direction: column;diff --git a/frontend/pages/dashboard/cdn/index.vue b/frontend/pages/dashboard/cdn/index.vueindex a0d07280..189cf66c 100644--- a/frontend/pages/dashboard/cdn/index.vue+++ b/frontend/pages/dashboard/cdn/index.vue@@ -1,6 +1,9 @@<template><div class="card-component">- <h2 style="margin: 0">CDN: File manager</h2>+ <header>+ <h1>File manager</h1>+ <ViewSelection v-model="view" />+ </header><div class="dropzone" :class="{ 'drag-over': isDragOver }" @dragover.prevent @drop.prevent="handleFileDrop" @dragenter.prevent="dragEnter" @dragleave.prevent="dragLeave"><input type="file" ref="fileInput" @change="handleFileSelect" /><div v-if="selectedFile" class="file-info">@@ -9,8 +12,10 @@</div><div v-else>Drop file here or <span class="clickable" @click="triggerFileSelect">click to select from computer</span>.</div></div>- <AppButton @click="submitFile" type="primary" :disabled="!selectedFile">Upload on server</AppButton>- <div v-if="isLoading" class="loading-spinner"></div>+ <div style="padding: 12px 0; width: 100%; display: flex; align-items: center; gap: 10px; flex-direction: column">+ <AppButton @click="submitFile" type="primary" :disabled="!selectedFile">Upload on server</AppButton>+ <div v-if="isLoading" class="loading-spinner"></div>+ </div><div v-if="fileLink" class="link-section"><input type="text" v-model="fileLink" readonly /><AppButton @click="copyLink" type="primary">Copy link</AppButton>@@ -32,7 +37,7 @@ import DeleteRessourceModal from './_modals/DeleteRessourceModal.vue';import type { DB_Ressource } from '~/stores';const ressourcesStore = useRessourcesStore();-+const view = ref<'table' | 'list'>('list');const selectedFile: Ref<File | null | undefined> = ref(null);const isDragOver = ref(false);const fileLink = ref('');@@ -98,21 +103,16 @@ const deleteRessource = async (id: string) => {</script><style scoped lang="scss">-.card-component {- display: flex;- flex-direction: column;- align-items: center;-}.dropzone {display: flex;align-items: center;justify-content: center;width: 100%;height: 150px;- border: 2px dashed #9e9e9e;+ border: 2px dashed var(--border-color);border-radius: 4px;font-size: 14px;- color: #9e9e9e;+ color: var(--font-color-light);position: relative;transition: background-color $transition-duration;background-color: var(--dropzone-bg, transparent);@@ -127,7 +127,7 @@ const deleteRessource = async (id: string) => {}.drag-over {- background-color: #e3f2fd;+ background-color: var(--bg-contrast);border-color: #2196f3;transition: background-color $transition-duration, border-color $transition-duration;}@@ -141,13 +141,13 @@ const deleteRessource = async (id: string) => {.file-size {font-size: 0.8rem;- color: #757575;+ color: var(--font-color-dark);margin-top: 5px;}}.link-section {- margin-top: 15px;+ margin: 6px 0;display: flex;gap: 10px;width: 100%;diff --git a/frontend/pages/dashboard/docs/[id].vue b/frontend/pages/dashboard/docs/[id].vueindex 257cb57b..6619ac5a 100644--- a/frontend/pages/dashboard/docs/[id].vue+++ b/frontend/pages/dashboard/docs/[id].vue@@ -6,7 +6,7 @@<article class="document-theme" style="max-width: 100%" ref="element" v-html="article.content_html"></article><DocumentCardFooter :document="article" :next="next" :previous="previous" /></div>- <TableOfContent :element="element" :doc_id="article.id" class="toc" style="width: 400px" v-if="!isTablet() && !preferencesStore.get('hideTOC')" />+ <div v-if="!isTablet() && !preferencesStore.get('hideTOC')"><TableOfContent :tags="article.tags" :element="element" :doc_id="article.id" class="toc" style="width: 400px" /></div><div v-else-if="!isTablet() && preferencesStore.get('hideTOC')" style="margin-right: 200px"></div></div></div>diff --git a/frontend/pages/dashboard/docs/_components/DocumentCardFooter.vue b/frontend/pages/dashboard/docs/_components/DocumentCardFooter.vueindex 207c6d39..8b052359 100644--- a/frontend/pages/dashboard/docs/_components/DocumentCardFooter.vue+++ b/frontend/pages/dashboard/docs/_components/DocumentCardFooter.vue@@ -31,7 +31,7 @@ defineProps<{ document: Document; next?: Document; previous?: Document }>();<style scoped lang="scss">footer {- margin: 50px 0 40px;+ margin: 50px 0 40px 0;}@media screen and (min-width: 768px) {diff --git a/frontend/pages/dashboard/docs/_components/table-of-content/NodeTree.vue b/frontend/pages/dashboard/docs/_components/table-of-content/NodeTree.vueindex 761fbb55..a2223485 100644--- a/frontend/pages/dashboard/docs/_components/table-of-content/NodeTree.vue+++ b/frontend/pages/dashboard/docs/_components/table-of-content/NodeTree.vue@@ -1,35 +1,35 @@<template>- <li>- <a :href="node.link">{{ node.title }}</a>- <ul v-if="node.childrens?.length">- <NodeTree v-for="child in node.childrens" :node="child"></NodeTree>- </ul>- </li>+ <li>+ <a :href="node.link">{{ node.title }}</a>+ <ul v-if="node.childrens?.length">+ <NodeTree v-for="child in node.childrens" :node="child"></NodeTree>+ </ul>+ </li></template><script lang="ts" setup>interface Node {- title: string;- link: string;- childrens?: Node[];+ title: string;+ link: string;+ childrens?: Node[];}-defineProps<{ node: Node; }>();+defineProps<{ node: Node }>();</script><style scoped>a {- opacity: 0.85;+ opacity: 0.85;}li {- list-style: none;- padding: 0;- margin: 3px 0 0 0;+ list-style: none;+ padding: 0;+ margin: 4px 0 0 0;}ul {- padding: 0 0 0 15px;- margin: 0;+ padding: 0 0 0 15px;+ margin: 0;}</style>diff --git a/frontend/pages/dashboard/docs/_components/table-of-content/TableOfContents.vue b/frontend/pages/dashboard/docs/_components/table-of-content/TableOfContents.vueindex d506dd73..e5fdd3c4 100644--- a/frontend/pages/dashboard/docs/_components/table-of-content/TableOfContents.vue+++ b/frontend/pages/dashboard/docs/_components/table-of-content/TableOfContents.vue@@ -1,6 +1,10 @@<template><aside>- <ul ref="list" class="toc">+ <h4 v-if="tags">Tags</h4>+ <div style="display: flex; flex-wrap: wrap; font-size: 14px">+ <tag v-if="tags" v-for="tag in tags.split(',')" :key="tag" class="blue">#{{ tag.trim() }}</tag>+ </div>+ <ul ref="list"><h4>Table of content</h4><NodeTree v-if="headers.length" v-for="header of headers_tree" :node="header" :key="header.link" /><p v-else>Nothing to display</p>@@ -11,7 +15,7 @@<script lang="ts" setup>import NodeTree from './NodeTree.vue';-const props = defineProps<{ element?: HTMLElement }>();+const props = defineProps<{ element?: HTMLElement; tags?: string }>();const list = ref<HTMLElement>();interface GroupedHeaders {@@ -67,14 +71,24 @@ const headers = computed(() => getHTMLHeaders());const headers_tree = computed(() => buildTree(getHeaders(headers.value)));const observerCallback = (e: IntersectionObserverEntry[]) => {+ const actives: HTMLAnchorElement[] = [];e.forEach(entry => {const activeLink = list.value?.querySelector<HTMLAnchorElement>(`[href="#${entry.target.id}"]`);if (activeLink && entry.isIntersecting && entry.intersectionRatio === 1) {- activeLink.classList.add('active');- } else if (activeLink) {+ actives.push(activeLink);+ }+ if (activeLink) {activeLink.classList.remove('active');}});+ const best = actives.reduce((prev, current) => {+ const prevRect = prev?.getBoundingClientRect();+ const currentRect = current.getBoundingClientRect();+ return prevRect?.top || 0 < currentRect.top ? prev : current;+ }, actives[0]);+ if (best) {+ best.classList.add('active');+ }};const observer: IntersectionObserver = new IntersectionObserver(observerCallback, { root: null, threshold: 1 });@@ -83,23 +97,27 @@ onBeforeUnmount(() => observer.disconnect());</script><style lang="scss" scoped>-.toc {+h4 {+ color: var(--font-color-light);+ padding: 4px 0;+}++aside {+ max-width: 350px;position: sticky;top: 20px;- padding-left: 15px;- margin-left: 10px;font-size: 0.75rem;- max-width: 100%;- font-weight: 400;+ border-left: 1px solid var(--border-color);+ padding-left: 10px;}ul {- border-left: 1px solid var(--border-color);padding: 0;margin: 0;li:deep(a) {&.active {+ color: $primary-dark;font-weight: 600;}}diff --git a/frontend/pages/dashboard/docs/index.vue b/frontend/pages/dashboard/docs/index.vueindex 93687fd6..d3ff2663 100644--- a/frontend/pages/dashboard/docs/index.vue+++ b/frontend/pages/dashboard/docs/index.vue@@ -1,16 +1,23 @@<template><div class="card-component">- <h2 style="text-align: center">Search documents</h2>- <DataTable :headers="headers" :rows="rows">+ <header>+ <h1>Documents <tag blue>New</tag></h1>+ <ViewSelection v-model="view" />+ </header>+ <DataTable :headers="headers" :rows="rows" v-if="view === 'table'"><template #actions="{ cell }"><NuxtLink :to="`/dashboard/docs/${cell?.data.id}`"><Icon name="view" /></NuxtLink><NuxtLink :to="`/dashboard/docs/edit/${cell?.data.id}`"><Icon name="edit" /></NuxtLink></template></DataTable>+ <div v-else class="document-list">+ <DocumentsGrid :documents="documents" />+ </div></div></template><script setup lang="ts">+const view: Ref<'table' | 'list'> = ref('list');const documents = computed(() => useDocumentsStore().getAll);const categoriesStore = useCategoriesStore();const headers = [@@ -57,3 +64,5 @@ function stringToBadge(str?: string): string {return '';}</script>++<style scoped lang="scss"></style>diff --git a/frontend/pages/dashboard/home.vue b/frontend/pages/dashboard/home.vuenew file mode 100644index 00000000..54995bb2--- /dev/null+++ b/frontend/pages/dashboard/home.vue@@ -0,0 +1,17 @@+<template>+ <div style="text-align: center; margin: 10vh auto; gap: 20px">+ <h1>Alexandrie dashboard</h1>+ <img style="max-width: 300px; max-height: 300px" :src="`/empty-${colorMode.value}.png`" /> <br />+ <NuxtLink to="/dashboard/docs/new"><AppButton type="link">+ Create new document </AppButton></NuxtLink>+ </div>+</template>++<script setup lang="ts">+const colorMode = useColorMode();+</script>+<style scoped>+h1 {+ font-size: 32px;+ margin-bottom: 20px;+}+</style>diff --git a/frontend/pages/dashboard/index.vue b/frontend/pages/dashboard/index.vueindex dae2bc0b..42b0cd70 100644--- a/frontend/pages/dashboard/index.vue+++ b/frontend/pages/dashboard/index.vue@@ -1,17 +1,5 @@-<template>- <div style="text-align: center; margin: 10vh auto; gap: 20px">- <h1>Alexandrie dashboard</h1>- <img style="max-width: 300px; max-height: 300px" :src="`/empty-${colorMode.value}.png`" /> <br />- <NuxtLink to="/dashboard/docs/new"><AppButton type="link">+ Create new document </AppButton></NuxtLink>- </div>-</template>+<template></template><script setup lang="ts">-const colorMode = useColorMode();+await navigateTo('/dashboard/home');</script>-<style scoped>-h1 {- font-size: 32px;- margin-bottom: 20px;-}-</style>diff --git a/frontend/pages/dashboard/settings/index.vue b/frontend/pages/dashboard/settings/index.vueindex 6b2dfac1..658c91ee 100644--- a/frontend/pages/dashboard/settings/index.vue+++ b/frontend/pages/dashboard/settings/index.vue@@ -69,7 +69,7 @@ watchEffect(() => (currentPage.value = route.query.p || 'profile'));display: flex;border-radius: 8px;height: 90%;- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);+ box-shadow: 0 2px 10px var(--shadow);background-color: var(--bg-color);width: 1150px;height: calc(-100px + 100vh);diff --git a/frontend/styles/_variables.scss b/frontend/styles/_variables.scssindex 1dfb7ad8..198cbdce 100644--- a/frontend/styles/_variables.scss+++ b/frontend/styles/_variables.scss@@ -28,20 +28,24 @@ $monospace-font: monospace;$transition-duration: 0.3s;-$primary-color: #0070e7;+$primary-color: #007aff;$primary-light: color.adjust(#007aff, $lightness: 10%);$primary-dark: color.adjust(#007aff, $lightness: -10%);:root {--bg-color: #fff;- --bg-contrast: #f0f6fb;- --bg-contrast-2: #ECF2FF;+ --bg-contrast: #f2f7fc;+ --bg-contrast-2: #e2ebfd;--selection-color: #dde3e9;--font-color: #3c4450;--font-color-dark: #374151;--font-color-light: #5a6170;- --border-color: rgba(0, 0, 0, 0.1);+ --opposite-color: #111;+ --border-color: #e0e2ec;+ --border-color-accent: #c4c6d0;+ --shadow: rgba(0, 0, 0, 0.2);+// COLORS \\--grey: #666;@@ -72,7 +76,7 @@ $primary-dark: color.adjust(#007aff, $lightness: -10%);}.dark-mode {- --bg-color: #151b23;+ --bg-color: #1c2127;--bg-contrast: #2a2f35;--bg-contrast-2: #363a42;--selection-color: #444850;@@ -80,6 +84,8 @@ $primary-dark: color.adjust(#007aff, $lightness: -10%);--font-color-dark: #ccc;--font-color-light: rgb(179, 179, 179);--border-color: rgba(255, 255, 255, 0.1);+ --opposite-color: #eee;+ --shadow: rgba(0, 0, 0, 1);// COLORS \\--grey: #e0e0e0;diff --git a/frontend/styles/components.scss b/frontend/styles/components.scssindex 75da6f9b..50d2324c 100644--- a/frontend/styles/components.scss+++ b/frontend/styles/components.scss@@ -11,12 +11,24 @@.card-component {display: block;- margin: 8px 0;- width: 100%;+ margin: 12px 30px;gap: 16px;padding: 24px;border-radius: 8px;- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);+ box-shadow: 0 2px 10px var(--shadow);++ h1 {+ font-size: 20px;+ }++ header {+ display: flex;+ justify-content: space-between;+ align-items: center;+ padding-bottom: 4px;+ margin-bottom: 10px;+ border-bottom: 1px solid var(--border-color);+ }}tag {diff --git a/frontend/styles/theme.scss b/frontend/styles/theme.scssindex 389220c8..aa5fb427 100644--- a/frontend/styles/theme.scss+++ b/frontend/styles/theme.scss@@ -144,7 +144,7 @@ option {font-family: $external-font;&:hover {- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);+ box-shadow: 0 2px 10px var(--shadow);}}