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.

Remove old code

Smaug6739d62700a1cbd1
diff --git a/frontend/app/components/AppSelect.vue b/frontend/app/components/AppSelect.vue
index fb3ad4fa..8e6a2b04 100644
--- a/frontend/app/components/AppSelect.vue
+++ b/frontend/app/components/AppSelect.vue
@@ -63,7 +63,6 @@ function handleKeyDown(event: KeyboardEvent) {
if (event.key === 'Escape') {
open.value = false;
} else if (event.key === 'Enter') {
- // Optionnel : sélectionner si 1 seul résultat ?
const firstItem = filteredItems.value[0];
if (firstItem) {
handleSelect(firstItem);
diff --git a/frontend/app/components/DataTable.vue b/frontend/app/components/DataTable.vue
index dc790735..bfc9d189 100644
--- a/frontend/app/components/DataTable.vue
+++ b/frontend/app/components/DataTable.vue
@@ -125,13 +125,6 @@ export interface Field {
overflow-x: auto;
}
-.header {
- display: flex;
- padding: 0 8px;
- align-items: center;
- justify-content: space-between;
-}
-
table {
display: table;
width: 100%;
diff --git a/frontend/app/components/MarkdownEditor/LazyMarkdownEditor.vue b/frontend/app/components/MarkdownEditor/LazyMarkdownEditor.vue
index b8090947..e924d06f 100644
--- a/frontend/app/components/MarkdownEditor/LazyMarkdownEditor.vue
+++ b/frontend/app/components/MarkdownEditor/LazyMarkdownEditor.vue
@@ -403,15 +403,4 @@ input {
font-size: 1.1rem;
font-weight: 500;
}
-
-.image-selector-overlay {
- position: fixed;
- z-index: 99999;
- display: flex;
- background: rgb(0 0 0 / 45%);
- align-items: center;
- inset: 0;
- justify-content: center;
- padding: 20px;
-}
</style>
diff --git a/frontend/app/components/MarkdownEditor/Toolbar.vue b/frontend/app/components/MarkdownEditor/Toolbar.vue
index fe9f091c..dba710f1 100644
--- a/frontend/app/components/MarkdownEditor/Toolbar.vue
+++ b/frontend/app/components/MarkdownEditor/Toolbar.vue
@@ -160,25 +160,7 @@ const toolbar = [
}
}
-.color-picker .btn.color {
- position: relative;
- width: 30px;
- height: 30px;
-}
-
-.color-picker .btn.color .dot {
- position: absolute;
- right: 2px;
- bottom: 2px;
- width: 8px;
- height: 8px;
- border: 1px solid var(--border-color);
- border-radius: 999px;
- background: var(--primary);
-}
-
-input,
-.select {
+input {
display: inline-block;
max-width: 350px;
}
diff --git a/frontend/app/pages/(public)/_components/ContributorsMarquee.vue b/frontend/app/pages/(public)/_components/ContributorsMarquee.vue
index 7180acf6..db9e5473 100644
--- a/frontend/app/pages/(public)/_components/ContributorsMarquee.vue
+++ b/frontend/app/pages/(public)/_components/ContributorsMarquee.vue
@@ -103,11 +103,6 @@ onMounted(fetchContributors);
font-size: 12px;
}
-.hint {
- font-size: 13px;
- margin-top: 6px;
-}
-
@keyframes marquee {
from {
transform: translateX(0);
diff --git a/frontend/app/pages/dashboard/admin/users/[id]/documents/[doc_id].vue b/frontend/app/pages/dashboard/admin/users/[id]/documents/[doc_id].vue
index 81adbd37..8cb840ef 100644
--- a/frontend/app/pages/dashboard/admin/users/[id]/documents/[doc_id].vue
+++ b/frontend/app/pages/dashboard/admin/users/[id]/documents/[doc_id].vue
@@ -1,7 +1,7 @@
<template>
<div class="card-component" style="height: 100%">
<h1>Document view</h1>
- <div v-if="document" style=" display: flex;width: 100%; height: 95%; min-height: 0; flex-direction: column">
+ <div v-if="document" style="display: flex; width: 100%; height: 95%; min-height: 0; flex-direction: column">
<h2>{{ document.name }}</h2>
<p>{{ document.description }}</p>
<div style="display: flex; width: 100%; min-height: 0; flex: 1; gap: 10px; overflow: auto">
@@ -27,14 +27,6 @@ document.value = await store.fetchUserDocument(route.params.id as string, route.
</script>
<style scoped lang="scss">
-.user-details {
- display: flex;
- width: 100%;
- align-items: flex-start;
- flex-direction: column;
- gap: 1rem;
-}
-
.user-detail {
display: flex;
width: 100%;
diff --git a/frontend/app/pages/dashboard/cdn/_modals/DeleteRessourceModal.vue b/frontend/app/pages/dashboard/cdn/_modals/DeleteRessourceModal.vue
index 0f72bbcd..e7a4156c 100644
--- a/frontend/app/pages/dashboard/cdn/_modals/DeleteRessourceModal.vue
+++ b/frontend/app/pages/dashboard/cdn/_modals/DeleteRessourceModal.vue
@@ -24,5 +24,3 @@ const deleteRessource = async () => {
.catch(e => useNotifications().add({ type: 'error', title: 'Error', message: e }));
};
</script>
-
-<style scoped lang="scss"></style>
diff --git a/frontend/app/pages/dashboard/cdn/index.vue b/frontend/app/pages/dashboard/cdn/index.vue
index 4634647b..bf721d22 100644
--- a/frontend/app/pages/dashboard/cdn/index.vue
+++ b/frontend/app/pages/dashboard/cdn/index.vue
@@ -5,7 +5,7 @@
<ViewSelection v-model="view" />
</header>
<AppDrop ref="dropComponent" @select="selectFile" />
- <div style=" display: flex; width: 100%;padding: 12px 0; align-items: center; flex-direction: column; gap: 10px">
+ <div style="display: flex; width: 100%; padding: 12px 0; align-items: center; flex-direction: column; gap: 10px">
<AppButton type="primary" :disabled="!selectedFile" @click="submitFile">Upload on server</AppButton>
<div v-if="isLoading" class="loading-spinner" />
</div>
@@ -16,7 +16,12 @@
<div v-if="ressourcesStore.ressources.length" class="ressources-list">
<DataTable :headers="headers" :rows="rows">
<template #action="{ cell }">
- <a :href="`${CDN}/${(cell?.data as DB_Ressource).author_id}/${(cell?.data as DB_Ressource).transformed_path || (cell?.data as DB_Ressource).original_path}`" target="_blank" style="margin-right: 10px"><Icon name="view" /> </a>
+ <a
+ :href="`${CDN}/${(cell?.data as DB_Ressource).author_id}/${(cell?.data as DB_Ressource).transformed_path || (cell?.data as DB_Ressource).original_path}`"
+ target="_blank"
+ style="margin-right: 10px"
+ ><Icon name="view" />
+ </a>
<NuxtLink :to="`/dashboard/cdn/${(cell?.data as DB_Ressource).id}`"><Icon name="edit" style="margin-right: 10px" /></NuxtLink>
<Icon name="delete" @click="() => deleteRessource((cell?.data as DB_Ressource).id)" />
</template>
@@ -113,8 +118,4 @@ const deleteRessource = async (id: string) => {
transform: rotate(360deg);
}
}
-
-.file-info {
- color: var(--primary);
-}
</style>
diff --git a/frontend/app/pages/dashboard/docs/_components/DocumentCardHeaderActionRow.vue b/frontend/app/pages/dashboard/docs/_components/DocumentCardHeaderActionRow.vue
index 0606b5e2..d1b24ca1 100644
--- a/frontend/app/pages/dashboard/docs/_components/DocumentCardHeaderActionRow.vue
+++ b/frontend/app/pages/dashboard/docs/_components/DocumentCardHeaderActionRow.vue
@@ -2,7 +2,9 @@
<span class="header">
<NuxtLink :to="`/dashboard/docs/edit/${doc.id}`" :prefetch="false">
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24">
- <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" />
+ <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>
</NuxtLink>
<NuxtLink @click="exportMarkdown">
@@ -21,7 +23,9 @@
</NuxtLink>
<NuxtLink @click="openDeleteModal">
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24">
- <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" />
+ <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>
</NuxtLink>
</span>
@@ -65,9 +69,4 @@ button {
font-size: medium;
font-weight: 600;
}
-
-.confirm {
- color: var(--bg-color);
- background-color: var(--font-color);
-}
</style>
diff --git a/frontend/app/pages/dashboard/settings/_modals/DeleteAccountModal.vue b/frontend/app/pages/dashboard/settings/_modals/DeleteAccountModal.vue
index 185888d3..d8c26ba8 100644
--- a/frontend/app/pages/dashboard/settings/_modals/DeleteAccountModal.vue
+++ b/frontend/app/pages/dashboard/settings/_modals/DeleteAccountModal.vue
@@ -43,10 +43,3 @@ function deleteAccount() {
.catch(e => useNotifications().add({ type: 'error', title: 'Error', message: e }));
}
</script>
-
-<style scoped lang="scss">
-.warn {
- color: $red-dark;
- opacity: 0.7;
-}
-</style>
diff --git a/frontend/app/pages/dashboard/settings/_views/shortcuts.vue b/frontend/app/pages/dashboard/settings/_views/shortcuts.vue
index 413ad332..5eb6e78b 100644
--- a/frontend/app/pages/dashboard/settings/_views/shortcuts.vue
+++ b/frontend/app/pages/dashboard/settings/_views/shortcuts.vue
@@ -120,9 +120,9 @@
display: flex;
padding: 6px;
border-radius: 5px;
- text-align: left; // s'assure que le texte est bien aligné à gauche
+ text-align: left;
align-items: center;
- gap: 1rem; // ajuste cet espace selon tes besoins
+ gap: 1rem;
}
.key {
diff --git a/frontend/app/pages/dashboard/settings/_views/snippets.vue b/frontend/app/pages/dashboard/settings/_views/snippets.vue
index 00abae36..cf9fe261 100644
--- a/frontend/app/pages/dashboard/settings/_views/snippets.vue
+++ b/frontend/app/pages/dashboard/settings/_views/snippets.vue
@@ -54,9 +54,9 @@
display: flex;
padding: 6px;
border-radius: 5px;
- text-align: left; // s'assure que le texte est bien aligné à gauche
+ text-align: left;
align-items: center;
- gap: 1rem; // ajuste cet espace selon tes besoins
+ gap: 1rem;
}
.key {