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.

Eslint autofix

Smaug67397eead1973bea
diff --git a/frontend/app/components/AppButton.vue b/frontend/app/components/AppButton.vue
index 13fa14db..2bcffe63 100644
--- a/frontend/app/components/AppButton.vue
+++ b/frontend/app/components/AppButton.vue
@@ -1,6 +1,6 @@
<template>
- <button @click="onClick" :class="type">
- <slot></slot>
+ <button :class="type" @click="onClick">
+ <slot/>
</button>
</template>
diff --git a/frontend/app/components/AppColorPicker.vue b/frontend/app/components/AppColorPicker.vue
index 74d29dd6..a4af87aa 100644
--- a/frontend/app/components/AppColorPicker.vue
+++ b/frontend/app/components/AppColorPicker.vue
@@ -1,12 +1,12 @@
<template>
<div class="color-picker">
<div
+ v-if="nullable"
class="color-option"
style="background-color: white; border: 1px solid var(--border-color)"
:style="{ outline: selectedColor == -1 ? '2px solid var(--font-color-light)' : '' }"
:class="{ selected: selectedColor === -1 }"
@click="selectColor(-1)"
- v-if="nullable"
>
<div class="hint-wrapper">
<p class="hint-tooltip">Unset</p>
diff --git a/frontend/app/components/AppDotMenu.vue b/frontend/app/components/AppDotMenu.vue
index 6614086c..9aed4a35 100644
--- a/frontend/app/components/AppDotMenu.vue
+++ b/frontend/app/components/AppDotMenu.vue
@@ -1,13 +1,13 @@
<template>
- <div class="three-dots-menu" ref="menuRoot">
- <span class="menu-button" @click="toggleMenu" aria-label="Menu">
+ <div ref="menuRoot" class="three-dots-menu">
+ <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" />
</svg>
</span>
<transition name="fade-scale">
<div v-if="open" class="menu-content">
- <slot></slot>
+ <slot/>
</div>
</transition>
</div>
diff --git a/frontend/app/components/AppDrop.vue b/frontend/app/components/AppDrop.vue
index daf38d2d..6d38be3e 100644
--- a/frontend/app/components/AppDrop.vue
+++ b/frontend/app/components/AppDrop.vue
@@ -1,6 +1,6 @@
<template>
<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" />
+ <input ref="fileInput" type="file" @change="handleFileSelect" >
<div v-if="selectedFile" class="file-info">
<span>{{ selectedFile.name }}</span>
<div class="file-size">{{ readableFileSize(selectedFile.size) }}</div>
diff --git a/frontend/app/components/AppSelect.vue b/frontend/app/components/AppSelect.vue
index cb49f28d..2d6997fb 100644
--- a/frontend/app/components/AppSelect.vue
+++ b/frontend/app/components/AppSelect.vue
@@ -4,10 +4,10 @@
<button @click.stop="toggleDropdown">{{ selected?.label || placeholder }}</button>
</div>
<div v-else>
- <input type="text" v-model="search" placeholder="Search..." class="search-input" ref="searchInput" @keydown="handleKeyDown" />
+ <input ref="searchInput" v-model="search" type="text" placeholder="Search..." class="search-input" @keydown="handleKeyDown" >
<div class="dropdown">
<ul>
- <AppSelectNode v-for="item in filteredItems" :key="item.id" :node="item" :level="0" @select="handleSelect" :disabled="disabled" />
+ <AppSelectNode v-for="item in filteredItems" :key="item.id" :node="item" :level="0" :disabled="disabled" @select="handleSelect" />
</ul>
</div>
</div>
diff --git a/frontend/app/components/AppSelectNode.vue b/frontend/app/components/AppSelectNode.vue
index 2f08b98c..6aabb5b9 100644
--- a/frontend/app/components/AppSelectNode.vue
+++ b/frontend/app/components/AppSelectNode.vue
@@ -1,10 +1,10 @@
<template>
<li>
- <div class="tree-node" :style="{ marginLeft: `${level * 20}px`, fontWeight: node.childrens?.length ? 600 : 500 }" @click.stop="select" :disabled="disabled && disabled(node)">
+ <div class="tree-node" :style="{ marginLeft: `${level * 20}px`, fontWeight: node.childrens?.length ? 600 : 500 }" :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" @select="$emit('select', $event)" :disabled="disabled" />
+ <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 2b5ea8f6..d7f7fcbb 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" @keydown.enter.prevent="addTag" @keydown.delete="removeLastTag" placeholder="Add a tag (enter to add)..." />
+ <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 bbe02989..75b415ee 100644
--- a/frontend/app/components/AppToggle.vue
+++ b/frontend/app/components/AppToggle.vue
@@ -1,6 +1,6 @@
<template>
- <button class="toggle" :class="{ active }" @click="toggle" :aria-pressed="active" role="switch">
- <span class="circle"></span>
+ <button class="toggle" :class="{ active }" :aria-pressed="active" role="switch" @click="toggle">
+ <span class="circle"/>
</button>
</template>
diff --git a/frontend/app/components/BackToTop.vue b/frontend/app/components/BackToTop.vue
index 3226337b..165067de 100644
--- a/frontend/app/components/BackToTop.vue
+++ b/frontend/app/components/BackToTop.vue
@@ -1,5 +1,5 @@
<template>
- <div class="back-to-top" @click="scrollToTop" v-if="show"></div>
+ <div v-if="show" class="back-to-top" @click="scrollToTop"/>
</template>
<script setup lang="ts">
diff --git a/frontend/app/components/BreadCrumb.vue b/frontend/app/components/BreadCrumb.vue
index 1b49eea3..739c10db 100644
--- a/frontend/app/components/BreadCrumb.vue
+++ b/frontend/app/components/BreadCrumb.vue
@@ -1,7 +1,7 @@
<template>
<nav class="breadcrumb">
- <svg @click="next" xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z" /></svg>
- <svg @click="previous" xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z" /></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" @click="next"><path d="M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z" /></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" @click="previous"><path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z" /></svg>
<ol class="breadcrumb">
<li v-for="(segment, index) in breadcrumbs" :key="index" class="breadcrumb-item">
<NuxtLink :to="segment.path"> {{ segment.name }} </NuxtLink>
diff --git a/frontend/app/components/DataTable.vue b/frontend/app/components/DataTable.vue
index 8f5b2754..8309566b 100644
--- a/frontend/app/components/DataTable.vue
+++ b/frontend/app/components/DataTable.vue
@@ -1,6 +1,6 @@
<template>
<div class="container">
- <input type="text" v-model="searchInput" placeholder="Search..." />
+ <input v-model="searchInput" type="text" placeholder="Search..." >
<div class="table-wrapper">
<table>
<thead>
@@ -13,11 +13,11 @@
<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-if="row[header.key]?.type === 'html'" v-html="row[header.key]?.content"/>
<span v-else-if="row[header.key]?.type === 'slot'">
- <slot :name="header.key" :cell="row[header.key]"></slot>
+ <slot :name="header.key" :cell="row[header.key]"/>
</span>
- <span v-else v-text="row[header.key]?.content"></span>
+ <span v-else v-text="row[header.key]?.content"/>
</td>
</tr>
<tr>
@@ -37,13 +37,13 @@
</span>
</p>
<div class="pagination">
- <button type="button" @click="paginator.previous()" :disabled="!paginator.hasPrevious()">&lt;</button>
- <button @click="paginator.setPage(1)" :class="{ active: paginator.currentPage.value === 1 }">1</button>
+ <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" @click="paginator.setPage(page)" :class="{ active: paginator.currentPage.value === 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" @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()">&gt;</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>
</td>
diff --git a/frontend/app/components/DocumentCard.vue b/frontend/app/components/DocumentCard.vue
index 1879da11..5d8f678e 100644
--- a/frontend/app/components/DocumentCard.vue
+++ b/frontend/app/components/DocumentCard.vue
@@ -9,10 +9,10 @@
</div>
<div class="body">
<div class="category">{{ category?.name }}</div>
- <div class="tags" v-if="document.tags">
+ <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>
+ <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 ea1faa94..8decf62a 100644
--- a/frontend/app/components/DocumentDotMenu.vue
+++ b/frontend/app/components/DocumentDotMenu.vue
@@ -7,11 +7,11 @@
<button @click="edit"><Icon fill="var(--font-color)" name="edit_page" /> Edit</button>
<button @click="copyLink"><Icon fill="var(--font-color)" name="link" /> Copy link</button>
<button @click="pin"><Icon fill="var(--font-color)" :name="document.pinned ? 'pin_off' : 'pin'" /> {{ document.pinned ? 'Unpin' : 'Pin' }}</button>
- <hr style="margin: 2px 0" />
+ <hr style="margin: 2px 0" >
<button @click="emitDelete"><Icon name="delete" fill="red" /> Delete</button>
- <hr style="margin: 2px 0" />
+ <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; border-radius: 50%; margin: 0" />{{ user?.username }}</p>
+ <p style="display: flex; align-items: center; gap: 8px"><img :src="useAvatar(user)" alt="Avatar" style="width: 20px; height: 20px; border-radius: 50%; margin: 0" >{{ user?.username }}</p>
<p>Updated on {{ numericDate(document.updated_timestamp) }}</p>
</div>
</AppDotMenu>
diff --git a/frontend/app/components/DocumentLine.vue b/frontend/app/components/DocumentLine.vue
index 1ae0ed52..f844a9e7 100644
--- a/frontend/app/components/DocumentLine.vue
+++ b/frontend/app/components/DocumentLine.vue
@@ -9,7 +9,7 @@
</div>
<DocumentDotMenu :document="document" :user="user" @delete="deleteDoc" />
</header>
- <div class="tags" v-if="document.tags">
+ <div v-if="document.tags" class="tags">
<tag v-for="tag in document.tags?.split(', ')" :key="tag" class="primary">{{ tag }}</tag>
</div>
<p class="description">{{ document.description }}</p>
diff --git a/frontend/app/components/DocumentsGrid.vue b/frontend/app/components/DocumentsGrid.vue
index bdab52aa..953786d1 100644
--- a/frontend/app/components/DocumentsGrid.vue
+++ b/frontend/app/components/DocumentsGrid.vue
@@ -1,6 +1,6 @@
<template>
<div class="document-list">
- <DocumentCard v-if="documents.length" v-for="document in documents" :key="document.id" :document="document" />
+ <DocumentCard v-for="document in documents" v-if="documents.length" :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>
diff --git a/frontend/app/components/GlobalSearch.vue b/frontend/app/components/GlobalSearch.vue
index 034bcf31..bc52d0dc 100644
--- a/frontend/app/components/GlobalSearch.vue
+++ b/frontend/app/components/GlobalSearch.vue
@@ -6,7 +6,7 @@
<div class="search-header">
<div class="search-input-wrapper">
<Icon name="search" class="search-icon" fill="var(--font-color)" />
- <input ref="searchInput" v-model="searchQuery" type="text" placeholder="Search for a page, action, or document..." class="search-input" @keydown="handleSearchKeydown" />
+ <input ref="searchInput" v-model="searchQuery" type="text" placeholder="Search for a page, action, or document..." class="search-input" @keydown="handleSearchKeydown" >
</div>
<button class="close-btn" @click="closeSearch">
<Icon name="close" />
diff --git a/frontend/app/components/Icon.vue b/frontend/app/components/Icon.vue
index 807b3ed9..b0ff867e 100644
--- a/frontend/app/components/Icon.vue
+++ b/frontend/app/components/Icon.vue
@@ -1,5 +1,5 @@
<template>
- <i v-html="icon" class="icon" :style="{ fill }" :class="{ fill, big, mid, small }"></i>
+ <i class="icon" :style="{ fill }" :class="{ fill, big, mid, small }" v-html="icon"/>
</template>
<script setup lang="ts">
diff --git a/frontend/app/components/MarkdownEditor/LazyMarkdownEditor.vue b/frontend/app/components/MarkdownEditor/LazyMarkdownEditor.vue
index 959712a4..83eabfdd 100644
--- a/frontend/app/components/MarkdownEditor/LazyMarkdownEditor.vue
+++ b/frontend/app/components/MarkdownEditor/LazyMarkdownEditor.vue
@@ -1,14 +1,14 @@
<template>
<div style="height: 100%; padding: 4px">
<div class="editor-container">
- <Toolbar :document="document" @execute-action="exec" :minimal="minimal" />
+ <Toolbar :document="document" :minimal="minimal" @execute-action="exec" />
<div style="padding: 6px; 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" />
+ <input v-if="!minimal" v-model="document.name" placeholder="Title" class="title" >
+ <input v-if="!minimal" v-model="document.description" placeholder="Description" class="description" >
<AppTagInput v-model="document.tags" style="margin-bottom: 10px" />
- <div class="markdown" ref="container">
+ <div ref="container" class="markdown">
<div ref="editorContainer" class="codemirror-editor" style="border-right: 1px solid var(--border-color)" />
- <div v-if="showPreview" :class="['markdown-preview', `${usePreferences().get('theme')}-theme`]" ref="markdownPreview" style="position: relative" v-html="document.content_html"></div>
+ <div v-if="showPreview" ref="markdownPreview" :class="['markdown-preview', `${usePreferences().get('theme')}-theme`]" style="position: relative" v-html="document.content_html"/>
</div>
</div>
</div>
diff --git a/frontend/app/components/MarkdownEditor/Toolbar.vue b/frontend/app/components/MarkdownEditor/Toolbar.vue
index f531a7e2..ba8dc11a 100644
--- a/frontend/app/components/MarkdownEditor/Toolbar.vue
+++ b/frontend/app/components/MarkdownEditor/Toolbar.vue
@@ -1,11 +1,11 @@
<template>
<div class="toolbar">
- <button v-for="item in toolbar" :key="item.name" v-html="item.icon" @click="emitAction(item.action)" :title="item.name" class="btn"></button>
- <div class="color-picker"></div>
- <AppSelect v-model="document.accessibility" :items="accessibilities" placeholder="Access" size="100px" class="entry" v-if="!minimal" />
- <AppSelect v-model="document.category" :items="categories" placeholder="Select category" size="300px" class="entry" v-if="!minimal" />
+ <button v-for="item in toolbar" :key="item.name" :title="item.name" class="btn" @click="emitAction(item.action)" v-html="item.icon"/>
+ <div class="color-picker"/>
+ <AppSelect v-if="!minimal" v-model="document.accessibility" :items="accessibilities" placeholder="Access" size="100px" class="entry" />
+ <AppSelect v-if="!minimal" v-model="document.category" :items="categories" placeholder="Select category" size="300px" class="entry" />
<AppHint text="Tags has been moved down" />
- <button @click="openModal" class="help"><Icon name="help" :big="true" fill="var(--font-color-light)" /></button>
+ <button class="help" @click="openModal"><Icon name="help" :big="true" fill="var(--font-color-light)" /></button>
</div>
</template>
diff --git a/frontend/app/components/MarkdownSyntax.vue b/frontend/app/components/MarkdownSyntax.vue
index 1ce793b3..18023d38 100644
--- a/frontend/app/components/MarkdownSyntax.vue
+++ b/frontend/app/components/MarkdownSyntax.vue
@@ -59,7 +59,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 +107,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="color: white; padding: 5px">:::blue INFO<br/>:::</pre>
+ <pre style="color: white; padding: 5px">:::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 +121,7 @@ function hello() {
</div>
<div style="display: flex">
<span style="flex: 1; margin-right: 10px">
- <pre style="color: white; padding: 5px">:::green SUCCESS<br/>:::</pre>
+ <pre style="color: white; padding: 5px">:::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 +129,7 @@ function hello() {
</div>
<div style="display: flex">
<span style="flex: 1; margin-right: 10px">
- <pre style="color: white; padding: 5px">:::yellow WARNING<br/>:::</pre>
+ <pre style="color: white; padding: 5px">:::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 +137,7 @@ function hello() {
</div>
<div style="display: flex">
<span style="flex: 1; margin-right: 10px">
- <pre style="color: white; padding: 5px">:::grey NOTE<br/>:::</pre>
+ <pre style="color: white; padding: 5px">:::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 +145,7 @@ function hello() {
</div>
<div style="display: flex">
<span style="flex: 1; margin-right: 10px">
- <pre style="color: white; padding: 5px">:::red DANGER<br/>:::</pre>
+ <pre style="color: white; padding: 5px">:::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 +153,7 @@ function hello() {
</div>
<div style="display: flex">
<span style="flex: 1; margin-right: 10px">
- <pre style="color: white; padding: 5px">:::teal TEAL<br/>:::</pre>
+ <pre style="color: white; padding: 5px">:::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/MediumView.vue b/frontend/app/components/MediumView.vue
index 26b84a1e..2defadd3 100644
--- a/frontend/app/components/MediumView.vue
+++ b/frontend/app/components/MediumView.vue
@@ -1,6 +1,6 @@
<template>
- <main class="medium-view" ref="mediumContainer" :style="{ paddingLeft: marginLeft, transition }">
- <slot></slot>
+ <main ref="mediumContainer" class="medium-view" :style="{ paddingLeft: marginLeft, transition }">
+ <slot/>
</main>
</template>
diff --git a/frontend/app/components/ModalManager.vue b/frontend/app/components/ModalManager.vue
index e399d396..975a961a 100644
--- a/frontend/app/components/ModalManager.vue
+++ b/frontend/app/components/ModalManager.vue
@@ -1,9 +1,9 @@
<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>
+ <div v-if="index !== modals.length - 1" class="modal-overlay"/>
<div class="modal-container">
- <button @click="modalManager.close(modal)" class="close-btn">
+ <button class="close-btn" @click="modalManager.close(modal)">
<Icon name="close" :big="true" />
</button>
<component :is="modal.component" v-bind="modal.props" class="modal" :class="modal.big ? 'big' : ''" @close="modalManager.close(modal)" />
diff --git a/frontend/app/components/Navbar.vue b/frontend/app/components/Navbar.vue
index c5071a4c..04ee44ce 100644
--- a/frontend/app/components/Navbar.vue
+++ b/frontend/app/components/Navbar.vue
@@ -1,7 +1,7 @@
<template>
<header>
<div>
- <button v-if="!isOpened" @click="toggleSidebar" class="open-sidebar" aria-label="open sidebar">
+ <button v-if="!isOpened" class="open-sidebar" aria-label="open sidebar" @click="toggleSidebar">
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24">
<path d="M120-240v-80h720v80H120Zm0-200v-80h720v80H120Zm0-200v-80h720v80H120Z" />
</svg>
@@ -10,7 +10,7 @@
<BreadCrumb v-if="!isMobile()" />
</div>
<div>
- <button class="search-btn" @click="openGlobalSearch" title="Global search (Ctrl+K)" aria-label="Global search">
+ <button class="search-btn" title="Global search (Ctrl+K)" aria-label="Global search" @click="openGlobalSearch">
<Icon name="search" />
<span class="search-text">Search</span>
<kbd class="shortcut">Ctrl+K</kbd>
@@ -21,6 +21,10 @@
</header>
</template>
+<script lang="ts" setup>
+const { toggleSidebar, isOpened } = useSidebar();
+const openGlobalSearch = () => window.dispatchEvent(new CustomEvent('global-search-open'));
+</script>
<style lang="scss" scoped>
header {
height: 50px;
@@ -93,7 +97,3 @@ button {
}
}
</style>
-<script lang="ts" setup>
-const { toggleSidebar, isOpened } = useSidebar();
-const openGlobalSearch = () => window.dispatchEvent(new CustomEvent('global-search-open'));
-</script>
diff --git a/frontend/app/components/Notification.vue b/frontend/app/components/Notification.vue
index 65ae403b..766356f7 100644
--- a/frontend/app/components/Notification.vue
+++ b/frontend/app/components/Notification.vue
@@ -4,7 +4,7 @@
<div class="content">
<div class="header">
<p class="title">{{ notification.title }}</p>
- <span class="btn" @click="close(notification.id)" aria-label="Close">&times;</span>
+ <span class="btn" aria-label="Close" @click="close(notification.id)">&times;</span>
</div>
<p v-if="notification.message" class="message">{{ notification.message }}</p>
</div>
diff --git a/frontend/app/components/Sidebar/CollapseItem.vue b/frontend/app/components/Sidebar/CollapseItem.vue
index 669fd067..766fc2c9 100644
--- a/frontend/app/components/Sidebar/CollapseItem.vue
+++ b/frontend/app/components/Sidebar/CollapseItem.vue
@@ -1,17 +1,17 @@
<template>
<div v-if="item.childrens?.length">
<SidebarItem v-if="true || (root && item.data.type == 'document')" :item="item" class="collapse-header doc">
- <svg @click="toggleShow" :class="{ rotated: !props.item.show.value }" xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24">
+ <svg :class="{ rotated: !props.item.show.value }" xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24" @click="toggleShow">
<path d="M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z" />
</svg>
</SidebarItem>
- <SidebarItem v-else-if="root" :item="item" @click="toggleShow" class="collapse-header">
+ <SidebarItem v-else-if="root" :item="item" class="collapse-header" @click="toggleShow">
<svg :class="{ rotated: !props.item.show.value }" xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24">
<path d="M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z" />
</svg>
</SidebarItem>
<SidebarItem v-else :item="item" class="collapse-header" />
- <div v-if="props.item.show.value" class="collapse-body" v-for="child in item.childrens" :key="child.id" style="margin-left: 15px">
+ <div v-for="child in item.childrens" v-if="props.item.show.value" :key="child.id" class="collapse-body" style="margin-left: 15px">
<CollapseItem v-if="child.childrens?.length" :item="child" :root="child.data.type === 'document'" />
<SidebarItem v-else :item="child" />
</div>
diff --git a/frontend/app/components/Sidebar/Dock.vue b/frontend/app/components/Sidebar/Dock.vue
index 114f6073..f7893853 100644
--- a/frontend/app/components/Sidebar/Dock.vue
+++ b/frontend/app/components/Sidebar/Dock.vue
@@ -16,7 +16,7 @@
<NuxtLink to="/dashboard/import">
<Icon name="import" fill="var(--font-color)" :big="true" />
</NuxtLink>
- <NuxtLink to="/dashboard/admin" v-if="useUserStore().user?.role === 2">
+ <NuxtLink v-if="useUserStore().user?.role === 2" to="/dashboard/admin">
<Icon name="users" fill="var(--font-color)" :big="true" />
</NuxtLink>
<div style="margin-top: auto">
@@ -30,6 +30,12 @@
</div>
</template>
+<script setup lang="ts">
+function closeDock() {
+ usePreferences().set('view_dock', false);
+}
+</script>
+
<style scoped lang="scss">
.dock {
display: flex;
@@ -59,9 +65,3 @@ a.router-link-active {
}
}
</style>
-
-<script setup lang="ts">
-function closeDock() {
- usePreferences().set('view_dock', false);
-}
-</script>
diff --git a/frontend/app/components/Sidebar/IconClose.vue b/frontend/app/components/Sidebar/IconClose.vue
index b6d52682..197c7497 100644
--- a/frontend/app/components/Sidebar/IconClose.vue
+++ b/frontend/app/components/Sidebar/IconClose.vue
@@ -1,6 +1,7 @@
<template>
- <svg class="btn" @click="toggleSidebar" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
- <path fill-rule="evenodd" clip-rule="evenodd"
+ <svg class="btn" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" @click="toggleSidebar">
+ <path
+fill-rule="evenodd" clip-rule="evenodd"
d="M4 5C3.44772 5 3 5.44772 3 6C3 6.55228 3.44772 7 4 7H20C20.5523 7 21 6.55228 21 6C21 5.44772 20.5523 5 20 5H4ZM7 12C7 11.4477 7.44772 11 8 11H20C20.5523 11 21 11.4477 21 12C21 12.5523 20.5523 13 20 13H8C7.44772 13 7 12.5523 7 12ZM13 18C13 17.4477 13.4477 17 14 17H20C20.5523 17 21 17.4477 21 18C21 18.5523 20.5523 19 20 19H14C13.4477 19 13 18.5523 13 18Z" />
</svg>
diff --git a/frontend/app/components/Sidebar/Resizable.vue b/frontend/app/components/Sidebar/Resizable.vue
index fc326b93..26ecd7fb 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>
+ <slot/>
</div>
- <div class="separator" @mousedown="startResize"></div>
+ <div class="separator" @mousedown="startResize"/>
</div>
</nav>
</template>
diff --git a/frontend/app/components/Sidebar/Search.vue b/frontend/app/components/Sidebar/Search.vue
index 3a388de3..e0323a5f 100644
--- a/frontend/app/components/Sidebar/Search.vue
+++ b/frontend/app/components/Sidebar/Search.vue
@@ -1,17 +1,16 @@
<template>
<div v-if="showSearchModal" class="modal-mask">
- <div class="modal-container" ref="searchContainer">
+ <div ref="searchContainer" class="modal-container">
<span class="search-input">
<Icon name="search" />
- <input type="text" v-model="filter" placeholder="Search document" ref="searchInput" />
- <button @click="close" style="background: none">
+ <input ref="searchInput" v-model="filter" type="text" placeholder="Search document" >
+ <button style="background: none" @click="close">
<Icon name="close" :big="true" />
</button>
</span>
<span class="title">Documents</span>
- <NuxtLink v-if="docs.length" v-for="doc of docs" class="item-search" :to="`/dashboard/docs/${doc.id}`" @click="close">
- <Icon name="draft" :big="true" fill="var(--font-color)" /> {{ doc.name }} <span v-html="categoryName(doc.category)" class="category"></span
- ></NuxtLink>
+ <NuxtLink v-for="doc of docs" v-if="docs.length" class="item-search" :to="`/dashboard/docs/${doc.id}`" @click="close">
+ <Icon name="draft" :big="true" fill="var(--font-color)" /> {{ doc.name }} <span class="category" v-html="categoryName(doc.category)"/></NuxtLink>
<p v-else class="no-result">No result found.</p>
</div>
</div>
diff --git a/frontend/app/components/Sidebar/Sidebar.vue b/frontend/app/components/Sidebar/Sidebar.vue
index b0190a04..5ad6af23 100644
--- a/frontend/app/components/Sidebar/Sidebar.vue
+++ b/frontend/app/components/Sidebar/Sidebar.vue
@@ -1,5 +1,5 @@
<template>
- <div :class="{ 'sidebar-mask': isMobile() && isOpened }"></div>
+ <div :class="{ 'sidebar-mask': isMobile() && isOpened }"/>
<Resizable>
<Dock v-if="!isMobile() && preferences.get('view_dock')" />
<div class="sidebar" :class="{ compact: preferences.get('compactMode') }">
@@ -10,17 +10,17 @@
</span>
<IconClose class="btn" />
</section>
- <input type="text" placeholder="Search or ctrl + q" v-model="filter" />
+ <input v-model="filter" type="text" placeholder="Search or ctrl + q" >
- <div class="user" v-if="userStore.user">
- <img :src="useAvatar(userStore.user)" alt="Avatar" style="width: 25px; height: 25px; border-radius: 50%" />
+ <div v-if="userStore.user" class="user">
+ <img :src="useAvatar(userStore.user)" alt="Avatar" style="width: 25px; height: 25px; border-radius: 50%" >
<div class="details">
<div>
<div>{{ userStore.user.username }}</div>
<div class="email">{{ userStore.user.email }}</div>
</div>
<div class="icons">
- <NuxtLink @click="onClick" to="/dashboard/docs/new" :prefetch="false"><Icon name="add_file" :mid="true" fill="var(--font-color)" /></NuxtLink>
+ <NuxtLink to="/dashboard/docs/new" :prefetch="false" @click="onClick"><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>
@@ -30,7 +30,7 @@
<SidebarWorkspaces :options="workspaces" />
<Search />
<CollapseItem v-for="item in navigationItems" :key="item.id" :item="item" :root="true" />
- <hr style="margin: 5px 0; width: 100%" />
+ <hr style="margin: 5px 0; width: 100%" >
<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 67647ad3..84f93a65 100644
--- a/frontend/app/components/Sidebar/SidebarItem.vue
+++ b/frontend/app/components/Sidebar/SidebarItem.vue
@@ -1,13 +1,13 @@
<template>
- <span class="item" @click="onClick" :draggable="true" @dragstart="dragStart" @dragover.prevent="dragOver" @drop="drop" @dragleave="dragLeave" :class="{ 'drag-over': isDragOver }">
+ <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>
- <Icon name="pin" fill="var(--font-color-light)" v-if="item.data.type === 'document' && item.data.pinned" class="ni" />
- <slot></slot>
+ <Icon v-if="item.data.type === 'document' && item.data.pinned" name="pin" fill="var(--font-color-light)" class="ni" />
+ <slot/>
</span>
</template>
diff --git a/frontend/app/components/Sidebar/SidebarWorkspaces.vue b/frontend/app/components/Sidebar/SidebarWorkspaces.vue
index ee3dc514..69566a65 100644
--- a/frontend/app/components/Sidebar/SidebarWorkspaces.vue
+++ b/frontend/app/components/Sidebar/SidebarWorkspaces.vue
@@ -8,14 +8,14 @@
<li :class="{ selected: all_workspaces.value === workspaceId }" @click="selectOption(all_workspaces)">
<SidebarWorkspace :option="all_workspaces" />
</li>
- <hr style="margin: 2px 0" />
+ <hr style="margin: 2px 0" >
<span style="margin: 4px 6px; font-size: small; font-weight: 600; color: var(--font-color-light)">Workspaces</span>
- <li v-if="options.length" v-for="option in options" :class="{ selected: option.value === workspaceId }" @click="selectOption(option)" :key="option.meta?.id">
+ <li v-for="option in options" v-if="options.length" :key="option.meta?.id" :class="{ selected: option.value === workspaceId }" @click="selectOption(option)">
<SidebarWorkspace :option="option" />
</li>
<div v-else class="placeholder" style="padding: 6px; font-size: 0.9rem; font-style: italic">No workspaces found</div>
- <hr />
- <div @click="create_workspace" class="new-workspace"><Icon name="plus" fill="var(--font-color-light)" /> New Workspace</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>
</ul>
</div>
diff --git a/frontend/app/components/ThemeToggle.vue b/frontend/app/components/ThemeToggle.vue
index 03c7cc17..01305828 100644
--- a/frontend/app/components/ThemeToggle.vue
+++ b/frontend/app/components/ThemeToggle.vue
@@ -1,22 +1,23 @@
<template>
- <button @click="toggleColorMode" style="background: none">
+ <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>
- <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
+ <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"></path>
+ 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"
+ <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>
- <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
+ <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"></path>
+ stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</g>
</svg>
</button>
diff --git a/frontend/app/components/ViewSelection.vue b/frontend/app/components/ViewSelection.vue
index 61737b85..ce1eb02d 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>
+ <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>
diff --git a/frontend/app/helpers/markdown/containers-svg.ts b/frontend/app/helpers/markdown/containers-svg.ts
index 077ba158..7bae537e 100644
--- a/frontend/app/helpers/markdown/containers-svg.ts
+++ b/frontend/app/helpers/markdown/containers-svg.ts
@@ -8,7 +8,7 @@ export const containerSvg = (md: MarkdownIt) => {
return params.trim().match(/^definition\s+(.*)$/);
},
render: function (tokens: any, idx: any) {
- var m = tokens[idx].info.trim().match(/^definition\s+(.*)$/);
+ const m = tokens[idx].info.trim().match(/^definition\s+(.*)$/);
if (tokens[idx].nesting === 1) {
// opening tag
@@ -24,7 +24,7 @@ export const containerSvg = (md: MarkdownIt) => {
return params.trim().match(/^property\s+(.*)$/);
},
render: function (tokens: any, idx: any) {
- var m = tokens[idx].info.trim().match(/^property\s+(.*)$/);
+ const m = tokens[idx].info.trim().match(/^property\s+(.*)$/);
if (tokens[idx].nesting === 1) {
// opening tag
@@ -40,7 +40,7 @@ export const containerSvg = (md: MarkdownIt) => {
return params.trim().match(/^theorem\s+(.*)$/);
},
render: function (tokens: any, idx: any) {
- var m = tokens[idx].info.trim().match(/^theorem\s+(.*)$/);
+ const m = tokens[idx].info.trim().match(/^theorem\s+(.*)$/);
if (tokens[idx].nesting === 1) {
// opening tag
@@ -56,7 +56,7 @@ export const containerSvg = (md: MarkdownIt) => {
return params.trim().match(/^warning\s+(.*)$/);
},
render: function (tokens: any, idx: any) {
- var m = tokens[idx].info.trim().match(/^warning\s+(.*)$/);
+ const m = tokens[idx].info.trim().match(/^warning\s+(.*)$/);
if (tokens[idx].nesting === 1) {
// opening tag
@@ -72,7 +72,7 @@ export const containerSvg = (md: MarkdownIt) => {
return params.trim().match(/^info\-(.*)+$/);
},
render: function (tokens: any, idx: any) {
- var m = tokens[idx].info.trim().split(' ');
+ const m = tokens[idx].info.trim().split(' ');
if (tokens[idx].nesting === 1) {
// opening tag
return containerOpen(m.slice(1).join(' '), svg_info, m[0]?.split('-')[1]);
diff --git a/frontend/app/helpers/utils.ts b/frontend/app/helpers/utils.ts
index eccbdf3b..9ce1045f 100644
--- a/frontend/app/helpers/utils.ts
+++ b/frontend/app/helpers/utils.ts
@@ -45,7 +45,7 @@ export function parseUserAgent(uaString?: string) {
let browser = 'Unknown Browser';
for (let i = 0; i < browserList.length; i++) {
- let match = uaString.match(browserList[i]!.regex);
+ const match = uaString.match(browserList[i]!.regex);
if (match) {
browser = browserList[i]!.name + ' ' + match[1];
break;
diff --git a/frontend/app/pages/(public)/_components/ContributorsMarquee.vue b/frontend/app/pages/(public)/_components/ContributorsMarquee.vue
index d1f91f3e..516c498f 100644
--- a/frontend/app/pages/(public)/_components/ContributorsMarquee.vue
+++ b/frontend/app/pages/(public)/_components/ContributorsMarquee.vue
@@ -3,7 +3,7 @@
<h2>Contributors</h2>
<div class="strip" :style="{ ['--items' as any]: displayAvatars.length }">
<a v-for="c in displayAvatars" :key="c.__key" class="avatar" :href="c.html_url" target="_blank" :title="c.login">
- <img :src="c.avatar_url + '&s=80'" :alt="c.login" />
+ <img :src="c.avatar_url + '&s=80'" :alt="c.login" >
<div class="profile">
<div class="name">{{ c.login }}</div>
<div class="sub">GitHub</div>
diff --git a/frontend/app/pages/(public)/_components/FeatureCard.vue b/frontend/app/pages/(public)/_components/FeatureCard.vue
index 29061870..5c2cd736 100644
--- a/frontend/app/pages/(public)/_components/FeatureCard.vue
+++ b/frontend/app/pages/(public)/_components/FeatureCard.vue
@@ -5,7 +5,7 @@
</div>
<h3 class="title">{{ title }}</h3>
<p class="description">{{ text }}</p>
- <slot></slot>
+ <slot/>
</div>
</template>
diff --git a/frontend/app/pages/(public)/_components/GoodFirstIssues.vue b/frontend/app/pages/(public)/_components/GoodFirstIssues.vue
index d4270870..db475274 100644
--- a/frontend/app/pages/(public)/_components/GoodFirstIssues.vue
+++ b/frontend/app/pages/(public)/_components/GoodFirstIssues.vue
@@ -4,7 +4,7 @@
<div class="issues-grid">
<a v-for="issue in issues" :key="issue.id" :href="issue.html_url" target="_blank" class="issue">
<div class="top">
- <span class="label" v-for="label in visibleLabels(issue.labels)" :key="label.id">{{ label.name }}</span>
+ <span v-for="label in visibleLabels(issue.labels)" :key="label.id" class="label">{{ label.name }}</span>
</div>
<div class="title">{{ issue.title }}</div>
<div class="meta">#{{ issue.number }} β€’ {{ new Date(issue.created_at).toLocaleDateString() }}</div>
diff --git a/frontend/app/pages/(public)/_components/TestimonialCard.vue b/frontend/app/pages/(public)/_components/TestimonialCard.vue
index f8ea9a1b..88d0f158 100644
--- a/frontend/app/pages/(public)/_components/TestimonialCard.vue
+++ b/frontend/app/pages/(public)/_components/TestimonialCard.vue
@@ -1,6 +1,6 @@
<template>
<div class="testimonial-card">
- <img :src="avatar" :alt="name" class="avatar" />
+ <img :src="avatar" :alt="name" class="avatar" >
<blockquote>{{ text }}</blockquote>
<p class="author">
{{ name }} <span>- {{ role }}</span>
diff --git a/frontend/app/pages/(public)/index.vue b/frontend/app/pages/(public)/index.vue
index ede9fadb..e05543dc 100644
--- a/frontend/app/pages/(public)/index.vue
+++ b/frontend/app/pages/(public)/index.vue
@@ -1,12 +1,12 @@
<template>
<main class="landing">
<!-- Hero -->
- <section class="hero" ref="heroEl">
+ <section ref="heroEl" class="hero">
<div class="hero-bg">
- <span class="orb orb-1"></span>
- <span class="orb orb-2"></span>
- <span class="orb orb-3"></span>
- <span class="grid"></span>
+ <span class="orb orb-1"/>
+ <span class="orb orb-2"/>
+ <span class="orb orb-3"/>
+ <span class="grid"/>
</div>
<div class="hero-content">
<div class="badges">
@@ -22,7 +22,7 @@
<NuxtLink to="https://github.com/Smaug6739/Alexandrie" target="_blank" class="btn secondary"> GitHub </NuxtLink>
</div>
</div>
- <img src="/screenshots/mock/0.png" class="hero-image" alt="App preview" />
+ <img src="/screenshots/mock/0.png" class="hero-image" alt="App preview" >
</section>
@@ -44,9 +44,9 @@
<section class="showcase reveal">
<h2>See Alexandrie in Action</h2>
<div class="screenshots">
- <img src="/screenshots/mock/documents.png" alt="Notes" class="tilt" />
- <img src="/screenshots/mock/2.png" alt="Organizing notes" class="tilt" />
- <img src="/screenshots/mock/3.png" alt="Editing notes" class="tilt" />
+ <img src="/screenshots/mock/documents.png" alt="Notes" class="tilt" >
+ <img src="/screenshots/mock/2.png" alt="Organizing notes" class="tilt" >
+ <img src="/screenshots/mock/3.png" alt="Editing notes" class="tilt" >
</div>
</section>
diff --git a/frontend/app/pages/(public)/login/index.vue b/frontend/app/pages/(public)/login/index.vue
index c069f6fe..e18913b6 100644
--- a/frontend/app/pages/(public)/login/index.vue
+++ b/frontend/app/pages/(public)/login/index.vue
@@ -7,13 +7,13 @@
<form @submit.prevent="login">
<div class="form-group">
<label for="username">Username</label>
- <input type="username" id="username" v-model="username" :class="{ 'is-invalid': errors.username }" />
+ <input id="username" v-model="username" type="username" :class="{ 'is-invalid': errors.username }" >
<p v-if="errors.username" class="invalid-feedback">{{ errors.username }}</p>
</div>
<div class="form-group">
<label for="password">Password</label>
<div class="password-input">
- <input :key="`password-${showPassword}`" :type="showPassword ? 'text' : 'password'" id="password" v-model="password" :class="{ 'is-invalid': errors.password }" />
+ <input id="password" :key="`password-${showPassword}`" v-model="password" :type="showPassword ? 'text' : 'password'" :class="{ 'is-invalid': errors.password }" >
<button type="button" class="password-toggle" @click="togglePassword">
<div class="eye-icon" :class="{ show: showPassword }">
<Icon v-if="showPassword" name="eye" />
diff --git a/frontend/app/pages/(public)/login/request-reset.vue b/frontend/app/pages/(public)/login/request-reset.vue
index 67f8bbc8..09b74a21 100644
--- a/frontend/app/pages/(public)/login/request-reset.vue
+++ b/frontend/app/pages/(public)/login/request-reset.vue
@@ -7,7 +7,7 @@
<form @submit.prevent="reset">
<div class="form-group">
<label for="username">Username</label>
- <input type="username" id="username" v-model="username" :class="{ 'is-invalid': errors.username }" />
+ <input id="username" v-model="username" type="username" :class="{ 'is-invalid': errors.username }" >
<p v-if="errors.username" class="invalid-feedback">{{ errors.username }}</p>
</div>
<button type="submit" class="btn">Request Reset</button>
diff --git a/frontend/app/pages/(public)/login/reset.vue b/frontend/app/pages/(public)/login/reset.vue
index 51c3a85b..c86bc139 100644
--- a/frontend/app/pages/(public)/login/reset.vue
+++ b/frontend/app/pages/(public)/login/reset.vue
@@ -4,11 +4,11 @@
<div class="body-container">
<IconApp style="width: 120px" />
<h1>Password Reset</h1>
- <form @submit.prevent="reset" class="body">
+ <form class="body" @submit.prevent="reset">
<div class="form-group">
<label for="password">Password</label>
<div class="password-input">
- <input :type="showPassword ? 'text' : 'password'" id="password" v-model="password" :class="{ 'is-invalid': errors.password }" />
+ <input id="password" v-model="password" :type="showPassword ? 'text' : 'password'" :class="{ 'is-invalid': errors.password }" >
<button type="button" class="password-toggle" @click="showPassword = !showPassword">{{ showPassword ? 'Hide' : 'Show' }}</button>
</div>
<p v-if="errors.password" class="invalid-feedback">{{ errors.password }}</p>
@@ -16,7 +16,7 @@
<div class="form-group">
<label for="confirmPassword">Confirm Password</label>
<div class="password-input">
- <input :type="showConfirmPassword ? 'text' : 'password'" id="confirmPassword" v-model="confirmPassword" :class="{ 'is-invalid': errors.confirmPassword }" />
+ <input id="confirmPassword" v-model="confirmPassword" :type="showConfirmPassword ? 'text' : 'password'" :class="{ 'is-invalid': errors.confirmPassword }" >
<button type="button" class="password-toggle" @click="showConfirmPassword = !showConfirmPassword">{{ showConfirmPassword ? 'Hide' : 'Show' }}</button>
</div>
<p v-if="errors.confirmPassword" class="invalid-feedback">{{ errors.confirmPassword }}</p>
diff --git a/frontend/app/pages/(public)/signup.vue b/frontend/app/pages/(public)/signup.vue
index b0637797..6f089392 100644
--- a/frontend/app/pages/(public)/signup.vue
+++ b/frontend/app/pages/(public)/signup.vue
@@ -7,18 +7,18 @@
<form @submit.prevent="register">
<div class="form-group">
<label for="username">Username</label>
- <input type="text" id="username" v-model="username" :class="{ 'is-invalid': errors.username }" />
+ <input id="username" v-model="username" type="text" :class="{ 'is-invalid': errors.username }" >
<p v-if="errors.username" class="invalid-feedback">{{ errors.username }}</p>
</div>
<div class="form-group">
<label for="email">Email</label>
- <input type="email" id="email" v-model="email" :class="{ 'is-invalid': errors.email }" />
+ <input id="email" v-model="email" type="email" :class="{ 'is-invalid': errors.email }" >
<p v-if="errors.email" class="invalid-feedback">{{ errors.email }}</p>
</div>
<div class="form-group">
<label for="password">Password</label>
<div class="password-input">
- <input :key="`password-${showPassword}`" :type="showPassword ? 'text' : 'password'" id="password" v-model="password" :class="{ 'is-invalid': errors.password }" />
+ <input id="password" :key="`password-${showPassword}`" v-model="password" :type="showPassword ? 'text' : 'password'" :class="{ 'is-invalid': errors.password }" >
<button type="button" class="password-toggle" @click="togglePassword">
<div class="eye-icon" :class="{ show: showPassword }">
<Icon v-if="showPassword" name="eye" />
@@ -31,7 +31,7 @@
<div class="form-group">
<label for="confirmPassword">Confirm Password</label>
<div class="password-input">
- <input :key="`confirmPassword-${showConfirmPassword}`" :type="showConfirmPassword ? 'text' : 'password'" id="confirmPassword" v-model="confirmPassword" :class="{ 'is-invalid': errors.confirmPassword }" />
+ <input id="confirmPassword" :key="`confirmPassword-${showConfirmPassword}`" v-model="confirmPassword" :type="showConfirmPassword ? 'text' : 'password'" :class="{ 'is-invalid': errors.confirmPassword }" >
<button type="button" class="password-toggle" @click="toggleConfirmPassword">
<div class="eye-icon" :class="{ show: showConfirmPassword }">
<Icon v-if="showConfirmPassword" name="eye" />
diff --git a/frontend/app/pages/dashboard/admin/index.vue b/frontend/app/pages/dashboard/admin/index.vue
index c9377654..95109708 100644
--- a/frontend/app/pages/dashboard/admin/index.vue
+++ b/frontend/app/pages/dashboard/admin/index.vue
@@ -1,6 +1,6 @@
<template>
<div class="card-component">
<h1>Admin dashboard</h1>
- <AppButton @click="useRouter().push('/dashboard/admin/users')" type="primary">Manage users</AppButton>
+ <AppButton type="primary" @click="useRouter().push('/dashboard/admin/users')">Manage users</AppButton>
</div>
</template>
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 03498996..79e41374 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
@@ -6,7 +6,7 @@
<p>{{ document.description }}</p>
<div style="display: flex; gap: 10px; flex: 1; width: 100%; overflow: auto; min-height: 0">
<textarea style="flex: 1">{{ document.content_markdown }}</textarea>
- <div style="flex: 1" v-html="document.content_html"></div>
+ <div style="flex: 1" v-html="document.content_html"/>
</div>
</div>
diff --git a/frontend/app/pages/dashboard/admin/users/[id]/index.vue b/frontend/app/pages/dashboard/admin/users/[id]/index.vue
index 4723fb72..df8bf4ce 100644
--- a/frontend/app/pages/dashboard/admin/users/[id]/index.vue
+++ b/frontend/app/pages/dashboard/admin/users/[id]/index.vue
@@ -1,23 +1,23 @@
<template>
<div class="card-component">
- <h2 style="display: flex; align-items: center; justify-content: space-between">User Details <img style="border-radius: 50%; width: 40px; height: 40px" v-if="user" :src="useAvatar(user)" /></h2>
+ <h2 style="display: flex; align-items: center; justify-content: space-between">User Details <img v-if="user" style="border-radius: 50%; width: 40px; height: 40px" :src="useAvatar(user)" ></h2>
<div v-if="user" style="width: 100%">
<div class="user-details">
<div class="user-detail">
<label for="username">Username</label>
- <input id="username" v-model="user.username" type="text" />
+ <input id="username" v-model="user.username" type="text" >
</div>
<div class="user-detail">
<label for="firstname">Firstname</label>
- <input id="firstname" v-model="user.firstname" type="text" />
+ <input id="firstname" v-model="user.firstname" type="text" >
</div>
<div class="user-detail">
<label for="lastname">Lastname</label>
- <input id="lastname" v-model="user.lastname" type="text" />
+ <input id="lastname" v-model="user.lastname" type="text" >
</div>
<div class="user-detail">
<label for="email">Email</label>
- <input id="email" v-model="user.email" type="email" />
+ <input id="email" v-model="user.email" type="email" >
</div>
<div class="user-detail">
<label for="role">Role</label>
@@ -38,8 +38,8 @@
</div>
</div>
- <AppButton @click="saveChanges" type="success">Save Changes</AppButton>
- <AppButton @click="useRouter().push(`/dashboard/admin/users/${user.id}/documents`)" type="primary">View documents</AppButton>
+ <AppButton type="success" @click="saveChanges">Save Changes</AppButton>
+ <AppButton type="primary" @click="useRouter().push(`/dashboard/admin/users/${user.id}/documents`)">View documents</AppButton>
</div>
<div v-else>No user found.</div>
</div>
diff --git a/frontend/app/pages/dashboard/categories/[id]/edit.vue b/frontend/app/pages/dashboard/categories/[id]/edit.vue
index e0e530f5..68178faf 100644
--- a/frontend/app/pages/dashboard/categories/[id]/edit.vue
+++ b/frontend/app/pages/dashboard/categories/[id]/edit.vue
@@ -1,32 +1,32 @@
<template>
<div class="card-component">
<h1 style="font-size: 20px">Update category & workspace</h1>
- <form @submit.prevent v-if="category">
+ <form v-if="category" @submit.prevent>
<div class="form-row">
<div class="form-column">
<label>ID</label>
- <input type="text" v-model="category.id" id="id" disabled />
+ <input id="id" v-model="category.id" type="text" disabled >
</div>
<div class="form-column">
<label for="order">Order</label>
- <input type="number" v-model.number="category.order" id="order" />
+ <input id="order" v-model.number="category.order" type="number" >
</div>
</div>
<label>Name</label>
- <input type="text" v-model="category.name" id="name" required />
+ <input id="name" v-model="category.name" type="text" required >
<label>Role</label>
<select v-model="category.role">
<option :value="1">Category</option>
<option :value="2">Workspace</option>
</select>
<label style="display: flex; align-items: center">Icon <AppHint text="SVG supported" /></label>
- <textarea type="text" v-model="category.icon" rows="5"></textarea>
+ <textarea v-model="category.icon" type="text" rows="5"/>
<label>Parent</label>
<AppSelect v-model="category.parent_id" :items="categoriesItem" placeholder="Select a category parent" />
<label for="color">Color</label>
- <AppColorPicker v-model:selectedColor="category.color" name="color" :nullable="true" />
+ <AppColorPicker v-model:selected-color="category.color" name="color" :nullable="true" />
<div style="display: flex; justify-content: flex-end">
<AppButton type="danger" @click="deleteCategory()">Delete</AppButton>
diff --git a/frontend/app/pages/dashboard/categories/[id]/index.vue b/frontend/app/pages/dashboard/categories/[id]/index.vue
index 60a1b843..1158ca97 100644
--- a/frontend/app/pages/dashboard/categories/[id]/index.vue
+++ b/frontend/app/pages/dashboard/categories/[id]/index.vue
@@ -8,7 +8,7 @@
</div>
</header>
<div v-if="view == 'table'" class="line-container">
- <DocumentLine v-for="document of documents" :document="document" class="line-item" :key="document.id" />
+ <DocumentLine v-for="document of documents" :key="document.id" :document="document" class="line-item" />
</div>
<div v-else class="document-list">
<DocumentsGrid :documents="documents" />
diff --git a/frontend/app/pages/dashboard/categories/_components/WorkspaceTree.vue b/frontend/app/pages/dashboard/categories/_components/WorkspaceTree.vue
index b9a2c81d..676f706f 100644
--- a/frontend/app/pages/dashboard/categories/_components/WorkspaceTree.vue
+++ b/frontend/app/pages/dashboard/categories/_components/WorkspaceTree.vue
@@ -1,5 +1,5 @@
<template>
- <div class="tree-node" v-if="node.data.type === 'category'">
+ <div v-if="node.data.type === 'category'" class="tree-node">
<div class="tree-content">
<div class="tree-label">
<Icon class="icon" name="folder" style="display: inline; width: 15px" />
@@ -11,7 +11,7 @@
</div>
</div>
- <div class="tree-children" v-if="node.childrens && node.childrens.length">
+ <div v-if="node.childrens && node.childrens.length" class="tree-children">
<WorkspaceTree v-for="child in node.childrens" :key="child.id" :node="child" @edit="$emit('edit', $event)" @delete="$emit('delete', $event)" />
</div>
</div>
diff --git a/frontend/app/pages/dashboard/categories/_modals/CreateCategoryModal.vue b/frontend/app/pages/dashboard/categories/_modals/CreateCategoryModal.vue
index d87a6fbd..dc90c6ba 100644
--- a/frontend/app/pages/dashboard/categories/_modals/CreateCategoryModal.vue
+++ b/frontend/app/pages/dashboard/categories/_modals/CreateCategoryModal.vue
@@ -2,24 +2,24 @@
<div class="modal">
<h2>New {{ role == 1 ? 'category' : 'workspace' }}</h2>
<label for="name">Name</label>
- <input class="entry" type="text" v-model="category.name" required id="name" placeholder="Display name" />
+ <input id="name" v-model="category.name" class="entry" type="text" required placeholder="Display name" >
<label>Parent</label>
<div>
- <AppSelect class="entry" v-model="category.parent_id" :items="categoriesItem" placeholder="Select a category parent" />
+ <AppSelect v-model="category.parent_id" class="entry" :items="categoriesItem" placeholder="Select a category parent" />
</div>
<div style="display: flex">
<div style="flex: 1; margin-right: 10px">
<label for="order">Order <AppHint text="Order of the category in the sidebar" /></label>
- <input class="entry" type="number" v-model.number="category.order" id="order" placeholder="0" />
+ <input id="order" v-model.number="category.order" class="entry" type="number" placeholder="0" >
</div>
<div style="flex: 1; margin-left: 10px">
<label for="color">Color</label>
- <AppColorPicker class="entry" v-model:selectedColor="category.color" id="color" :nullable="true" />
+ <AppColorPicker id="color" v-model:selected-color="category.color" class="entry" :nullable="true" />
</div>
</div>
<div class="footer">
- <AppButton @click="emit('close')" type="secondary">Cancel</AppButton>
+ <AppButton type="secondary" @click="emit('close')">Cancel</AppButton>
<AppButton type="primary" @click="createCategory">Create</AppButton>
</div>
</div>
diff --git a/frontend/app/pages/dashboard/categories/_modals/DeleteCategoryModal.vue b/frontend/app/pages/dashboard/categories/_modals/DeleteCategoryModal.vue
index a7849a71..b1609650 100644
--- a/frontend/app/pages/dashboard/categories/_modals/DeleteCategoryModal.vue
+++ b/frontend/app/pages/dashboard/categories/_modals/DeleteCategoryModal.vue
@@ -5,8 +5,8 @@
<p style="opacity: 0.7">This action is irreversible</p>
<p v-if="allChildren.length > 0" class="warn">This category has {{ allChildren.length }} child documents/categories. They will be deleted too.</p>
<div class="footer">
- <AppButton @click="emit('close')" type="secondary">Cancel</AppButton>
- <AppButton @click="deleteDoc" type="danger">Confirm</AppButton>
+ <AppButton type="secondary" @click="emit('close')">Cancel</AppButton>
+ <AppButton type="danger" @click="deleteDoc">Confirm</AppButton>
</div>
</div>
</template>
diff --git a/frontend/app/pages/dashboard/categories/index.vue b/frontend/app/pages/dashboard/categories/index.vue
index e287c766..e706c15c 100644
--- a/frontend/app/pages/dashboard/categories/index.vue
+++ b/frontend/app/pages/dashboard/categories/index.vue
@@ -9,9 +9,9 @@
</div>
</header>
<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" />
+ <input v-model="filter" placeholder="Search for workspace..." style="width: 50%; padding: 8px; border: 1px solid var(--border-color); border-radius: 4px" >
</div>
- <div v-if="filteredItems.length" class="workspace" v-for="workspace in filteredItems" :key="workspace.id">
+ <div v-for="workspace in filteredItems" v-if="filteredItems.length" :key="workspace.id" class="workspace">
<h3 class="wp-name">
<NuxtLink :to="`/dashboard/categories/${workspace.id}/edit`">{{ workspace.label }}</NuxtLink>
</h3>
diff --git a/frontend/app/pages/dashboard/cdn/[id]/index.vue b/frontend/app/pages/dashboard/cdn/[id]/index.vue
index f9a2c559..a0479d97 100644
--- a/frontend/app/pages/dashboard/cdn/[id]/index.vue
+++ b/frontend/app/pages/dashboard/cdn/[id]/index.vue
@@ -4,27 +4,27 @@
<h3>Update ressource&nbsp;<tag blue>New</tag></h3>
Manage ressources and files on the server. You can edit metadata and delete file from the server.
</header>
- <form @submit.prevent v-if="ressource">
+ <form v-if="ressource" @submit.prevent>
<div class="form-row">
<div class="form-column">
<label>ID</label>
- <input type="text" :value="ressource.id" id="id" disabled />
+ <input id="id" type="text" :value="ressource.id" disabled >
</div>
<div class="form-column">
<label>Size</label>
- <input type="text" :value="readableFileSize(ressource.filesize)" id="size" disabled />
+ <input id="size" type="text" :value="readableFileSize(ressource.filesize)" disabled >
</div>
</div>
<label>Name</label>
- <input type="text" v-model="ressource.filename" id="name" required />
+ <input id="name" v-model="ressource.filename" type="text" required >
<label style="display: flex; align-items: center">Parent <AppHint text="To organize your uploads" /></label>
<AppSelect v-model="ressource.parent_id" :items="tree" :disabled="(i) => (i as Item).data?.type !== 'document'" placeholder="Select a ressource parent" />
<label>Type</label>
- <input type="text" :value="ressource.filetype" id="id" disabled />
+ <input id="id" type="text" :value="ressource.filetype" disabled >
<label>Original path</label>
- <input type="text" :value="ressource.original_path" id="original_path" disabled />
+ <input id="original_path" type="text" :value="ressource.original_path" disabled >
<label>Path</label>
- <input type="text" :value="ressource.transformed_path" id="path" disabled />
+ <input id="path" type="text" :value="ressource.transformed_path" disabled >
<p style="overflow-wrap: break-word">
Ressource: <a :href="`${CDN}/${ressource.author_id}/${ressource.transformed_path || ressource.original_path}`" target="_blank">{{ `${CDN}/${ressource.author_id}/${ressource.transformed_path || ressource.original_path}` }}</a>
</p>
@@ -33,7 +33,7 @@
</div>
<h4>Preview</h4>
<div class="preview">
- <img v-if="ressource.filetype.startsWith('image/')" :src="`${CDN}/${ressource.author_id}/${ressource.transformed_path || ressource.original_path}`" alt="Preview" />
+ <img v-if="ressource.filetype.startsWith('image/')" :src="`${CDN}/${ressource.author_id}/${ressource.transformed_path || ressource.original_path}`" alt="Preview" >
<p v-else>Preview not available for this file type.</p>
</div>
<h4>Danger</h4>
diff --git a/frontend/app/pages/dashboard/cdn/[id]/preview.vue b/frontend/app/pages/dashboard/cdn/[id]/preview.vue
index 986c6829..f89d7644 100644
--- a/frontend/app/pages/dashboard/cdn/[id]/preview.vue
+++ b/frontend/app/pages/dashboard/cdn/[id]/preview.vue
@@ -17,11 +17,11 @@
</p>
</div>
<div class="preview">
- <img v-if="ressource!.filetype.startsWith('image/')" :src="`${CDN}/${ressource!.author_id}/${ressource!.transformed_path || ressource!.original_path}`" alt="Preview" />
- <iframe v-else-if="ressource!.filetype.startsWith('application/pdf')" :src="`${CDN}/${ressource!.author_id}/${ressource!.transformed_path || ressource!.original_path}`" width="100%" height="500px" frameborder="0" allowfullscreen></iframe>
+ <img v-if="ressource!.filetype.startsWith('image/')" :src="`${CDN}/${ressource!.author_id}/${ressource!.transformed_path || ressource!.original_path}`" alt="Preview" >
+ <iframe v-else-if="ressource!.filetype.startsWith('application/pdf')" :src="`${CDN}/${ressource!.author_id}/${ressource!.transformed_path || ressource!.original_path}`" width="100%" height="500px" frameborder="0" allowfullscreen/>
<p v-else>Preview not available for this file type.</p>
</div>
- <div style="display: flex; justify-content: flex-end"></div>
+ <div style="display: flex; justify-content: flex-end"/>
</div>
</template>
diff --git a/frontend/app/pages/dashboard/cdn/_modals/DeleteRessourceModal.vue b/frontend/app/pages/dashboard/cdn/_modals/DeleteRessourceModal.vue
index 7a0d1139..0f72bbcd 100644
--- a/frontend/app/pages/dashboard/cdn/_modals/DeleteRessourceModal.vue
+++ b/frontend/app/pages/dashboard/cdn/_modals/DeleteRessourceModal.vue
@@ -4,8 +4,8 @@
<p>Are you sure you want to delete this ressource ?</p>
<p style="opacity: 0.7">This action is irreversible</p>
<div class="footer">
- <AppButton @click="emit('close')" type="secondary">Cancel</AppButton>
- <AppButton @click="deleteRessource" type="danger">Confirm</AppButton>
+ <AppButton type="secondary" @click="emit('close')">Cancel</AppButton>
+ <AppButton type="danger" @click="deleteRessource">Confirm</AppButton>
</div>
</div>
</template>
diff --git a/frontend/app/pages/dashboard/cdn/index.vue b/frontend/app/pages/dashboard/cdn/index.vue
index a1cdd4b4..46efa767 100644
--- a/frontend/app/pages/dashboard/cdn/index.vue
+++ b/frontend/app/pages/dashboard/cdn/index.vue
@@ -6,12 +6,12 @@
</header>
<AppDrop ref="dropComponent" @select="selectFile" />
<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>
+ <AppButton type="primary" :disabled="!selectedFile" @click="submitFile">Upload on server</AppButton>
+ <div v-if="isLoading" class="loading-spinner"/>
</div>
<div v-if="fileLink" class="link-section">
- <input type="text" v-model="fileLink" readonly />
- <AppButton @click="copyLink" type="primary">Copy link</AppButton>
+ <input v-model="fileLink" type="text" readonly >
+ <AppButton type="primary" @click="copyLink">Copy link</AppButton>
</div>
<div v-if="ressourcesStore.ressources.length" class="ressources-list">
<DataTable :headers="headers" :rows="rows">
diff --git a/frontend/app/pages/dashboard/docs/[id].vue b/frontend/app/pages/dashboard/docs/[id].vue
index 76a7eb80..531e2103 100644
--- a/frontend/app/pages/dashboard/docs/[id].vue
+++ b/frontend/app/pages/dashboard/docs/[id].vue
@@ -3,11 +3,11 @@
<div style="display: flex; justify-content: space-between">
<div :style="{ width: '100%', margin: 'auto', maxWidth: usePreferences().get('docSize') == 0 ? '980px' : '780px' }">
<DocumentCardHeader :doc="article" style="margin-bottom: 20px" />
- <article :class="`${usePreferences().get('theme')}-theme`" style="max-width: 100%" ref="element" v-html="article.content_html"></article>
+ <article ref="element" :class="`${usePreferences().get('theme')}-theme`" style="max-width: 100%" v-html="article.content_html"/>
<DocumentCardFooter :document="article" :next="next" :previous="previous" />
</div>
<div v-if="!isTablet() && !preferencesStore.get('hideTOC')" class="toc"><TableOfContent :doc="article" :element="element" class="toc" style="width: 400px" /></div>
- <div :style="{ marginRight: !isTablet() && preferencesStore.get('hideTOC') && useSidebar().isOpened.value ? '200px' : '0px', transition: 'margin 0.3s' }"></div>
+ <div :style="{ marginRight: !isTablet() && preferencesStore.get('hideTOC') && useSidebar().isOpened.value ? '200px' : '0px', transition: 'margin 0.3s' }"/>
</div>
</div>
<Error v-else-if="error" :error="error" />
diff --git a/frontend/app/pages/dashboard/docs/_components/DocumentCardHeader.vue b/frontend/app/pages/dashboard/docs/_components/DocumentCardHeader.vue
index b56a3786..3e8c9a66 100644
--- a/frontend/app/pages/dashboard/docs/_components/DocumentCardHeader.vue
+++ b/frontend/app/pages/dashboard/docs/_components/DocumentCardHeader.vue
@@ -7,7 +7,7 @@
</p>
<h1 class="title">{{ doc?.name }}</h1>
<p class="description">{{ doc?.description }}</p>
- <div class="document-tags" v-if="doc.tags">
+ <div v-if="doc.tags" class="document-tags">
<tag v-for="tag in doc.tags.split(',')" :key="tag" class="primary">{{ tag.trim() }}</tag>
</div>
</div>
diff --git a/frontend/app/pages/dashboard/docs/_components/DocumentHeaderIllustration.vue b/frontend/app/pages/dashboard/docs/_components/DocumentHeaderIllustration.vue
index 1ce62576..9a535827 100644
--- a/frontend/app/pages/dashboard/docs/_components/DocumentHeaderIllustration.vue
+++ b/frontend/app/pages/dashboard/docs/_components/DocumentHeaderIllustration.vue
@@ -3,12 +3,12 @@
<g style="mix-blend-mode: multiply">
<path
d="M63.2808 128.703H13.5968C9.45343 128.703 6.08691 132.07 6.08691 136.213V157.362C6.08691 161.505 9.45343 164.872 13.5968 164.872H50.234L60.7158 173.948V164.872H63.2808C67.4242 164.872 70.7907 161.505 70.7907 157.362V136.213C70.7907 132.07 67.4242 128.703 63.2808 128.703Z"
- ></path>
+ />
</g>
<g style="mix-blend-mode: multiply">
<path
d="M239.289 43.5782H288.973C293.116 43.5782 296.483 46.9448 296.483 51.0882V72.2368C296.483 76.3803 293.116 79.7468 288.973 79.7468H252.336L241.854 88.8228V79.7468H239.289C235.146 79.7468 231.779 76.3803 231.779 72.2368V51.0882C231.779 46.9448 235.146 43.5782 239.289 43.5782Z"
- ></path>
+ />
</g>
<path
d="M235.713 39.3488H285.397C289.54 39.3488 292.906 42.7153 292.906 46.8587V68.0074C292.906 72.1508 289.54 75.5173 285.397 75.5173H248.759L238.278 84.5933V75.5173H235.713C231.569 75.5173 228.203 72.1508 228.203 68.0074V46.8587C228.203 42.7153 231.569 39.3488 235.713 39.3488Z"
@@ -16,112 +16,112 @@
stroke="var(--font-color)"
stroke-width="0.93421"
stroke-miterlimit="10"
- ></path>
+ />
<path
d="M148.615 185.737C192.556 185.737 228.178 150.115 228.178 106.173C228.178 62.2318 192.556 26.6101 148.615 26.6101C104.673 26.6101 69.0513 62.2318 69.0513 106.173C69.0513 150.115 104.673 185.737 148.615 185.737Z"
stroke="var(--font-color)"
stroke-width="0.93421"
stroke-miterlimit="10"
- ></path>
+ />
<path
d="M173.322 181.818C201.095 172.746 212.548 131.53 198.904 89.7605C185.26 47.9909 151.684 21.4845 123.911 30.5567C96.1383 39.629 84.6847 80.8445 98.329 122.614C111.973 164.384 145.549 190.89 173.322 181.818Z"
stroke="var(--font-color)"
stroke-width="0.93421"
stroke-miterlimit="10"
- ></path>
+ />
<path
d="M173.321 181.818C184.546 178.151 182.586 141.317 168.941 99.5474C155.297 57.7778 135.136 26.8896 123.91 30.5565C112.684 34.2235 114.645 71.0571 128.289 112.827C141.934 154.596 162.095 185.485 173.321 181.818Z"
stroke="var(--font-color)"
stroke-width="0.93421"
stroke-miterlimit="10"
- ></path>
+ />
<path
d="M135.676 66.5675C164.802 57.0532 186.542 43.6094 184.232 36.54C181.923 29.4705 156.44 31.4523 127.314 40.9665C98.1875 50.4808 76.4482 63.9246 78.7575 70.9941C81.0668 78.0636 106.55 76.0817 135.676 66.5675Z"
stroke="var(--font-color)"
stroke-width="0.93421"
stroke-miterlimit="10"
- ></path>
+ />
<path
d="M144.433 93.3979C182.597 80.9314 211.081 63.3153 208.055 54.0512C205.029 44.787 171.638 47.383 133.474 59.8494C95.3105 72.3158 66.826 89.9319 69.8522 99.1961C72.8784 108.46 106.269 105.864 144.433 93.3979Z"
stroke="var(--font-color)"
stroke-width="0.93421"
stroke-miterlimit="10"
- ></path>
+ />
<path
d="M153.616 121.498C195.386 107.854 226.562 88.5745 223.251 78.4364C219.939 68.2983 183.393 71.1406 141.624 84.785C99.8541 98.4293 68.6778 117.709 71.9895 127.847C75.3012 137.985 111.847 135.143 153.616 121.498Z"
stroke="var(--font-color)"
stroke-width="0.93421"
stroke-miterlimit="10"
- ></path>
+ />
<path
d="M162.397 148.23C201.901 135.326 231.301 116.83 228.063 106.919C224.825 97.0072 190.177 99.4333 150.673 112.337C111.169 125.242 81.7697 143.737 85.0073 153.649C88.245 163.56 122.894 161.134 162.397 148.23Z"
stroke="var(--font-color)"
stroke-width="0.93421"
stroke-miterlimit="10"
- ></path>
+ />
<path
d="M168.898 168.485C200.446 158.18 223.932 143.434 221.356 135.548C218.78 127.663 191.118 129.625 159.571 139.93C128.023 150.235 104.537 164.981 107.113 172.867C109.689 180.752 137.351 178.79 168.898 168.485Z"
stroke="var(--font-color)"
stroke-width="0.93421"
stroke-miterlimit="10"
- ></path>
- <path d="M232.149 7.11401H224.269V14.9939H232.149V7.11401Z" fill="var(--page-background)" stroke="var(--font-color)" stroke-width="0.93421" stroke-miterlimit="10"></path>
- <path d="M24.0278 34.2435H16.1479V42.1234H24.0278V34.2435Z" fill="var(--page-background)" stroke="var(--font-color)" stroke-width="0.93421" stroke-miterlimit="10"></path>
- <path d="M200.902 22.3925H196.709V26.5852H200.902V22.3925Z" fill="var(--page-background)" stroke="var(--font-color)" stroke-width="0.93421" stroke-miterlimit="10"></path>
- <path d="M8.91125 15.9064H4.71851V20.0991H8.91125V15.9064Z" fill="var(--page-background)" stroke="var(--font-color)" stroke-width="0.93421" stroke-miterlimit="10"></path>
- <path d="M258.834 110.305H254.642V114.497H258.834V110.305Z" fill="var(--page-background)" stroke="var(--font-color)" stroke-width="0.93421" stroke-miterlimit="10"></path>
- <path d="M4.71813 98.2441H0.525391V102.437H4.71813V98.2441Z" fill="var(--page-background)" stroke="var(--font-color)" stroke-width="0.93421" stroke-miterlimit="10"></path>
- <path d="M44.1047 96.1231C46.0038 54.1587 74.798 19.211 113.643 8.08789" stroke="#F637E3" stroke-width="0.93421" stroke-miterlimit="10"></path>
- <path d="M47.312 95.3584L44.0072 100.55L41.1709 95.0995L47.312 95.3584Z" fill="#F637E3"></path>
- <path d="M113.644 11.3681L117.935 6.96576L111.967 5.44897L113.644 11.3681Z" fill="#F637E3"></path>
- <path d="M240.028 140.714C226.131 177.684 190.443 204 148.614 204C125.419 204 104.11 195.91 87.3633 182.395" stroke="var(--font-color)" stroke-width="0.93421" stroke-miterlimit="10"></path>
- <path d="M236.775 140.467L241.498 136.546L242.534 142.601L236.775 140.467Z" fill="var(--font-color)"></path>
- <path d="M90.051 180.496L83.9839 179.547L86.1912 185.281L90.051 180.496Z" fill="var(--font-color)"></path>
+ />
+ <path d="M232.149 7.11401H224.269V14.9939H232.149V7.11401Z" fill="var(--page-background)" stroke="var(--font-color)" stroke-width="0.93421" stroke-miterlimit="10"/>
+ <path d="M24.0278 34.2435H16.1479V42.1234H24.0278V34.2435Z" fill="var(--page-background)" stroke="var(--font-color)" stroke-width="0.93421" stroke-miterlimit="10"/>
+ <path d="M200.902 22.3925H196.709V26.5852H200.902V22.3925Z" fill="var(--page-background)" stroke="var(--font-color)" stroke-width="0.93421" stroke-miterlimit="10"/>
+ <path d="M8.91125 15.9064H4.71851V20.0991H8.91125V15.9064Z" fill="var(--page-background)" stroke="var(--font-color)" stroke-width="0.93421" stroke-miterlimit="10"/>
+ <path d="M258.834 110.305H254.642V114.497H258.834V110.305Z" fill="var(--page-background)" stroke="var(--font-color)" stroke-width="0.93421" stroke-miterlimit="10"/>
+ <path d="M4.71813 98.2441H0.525391V102.437H4.71813V98.2441Z" fill="var(--page-background)" stroke="var(--font-color)" stroke-width="0.93421" stroke-miterlimit="10"/>
+ <path d="M44.1047 96.1231C46.0038 54.1587 74.798 19.211 113.643 8.08789" stroke="#F637E3" stroke-width="0.93421" stroke-miterlimit="10"/>
+ <path d="M47.312 95.3584L44.0072 100.55L41.1709 95.0995L47.312 95.3584Z" fill="#F637E3"/>
+ <path d="M113.644 11.3681L117.935 6.96576L111.967 5.44897L113.644 11.3681Z" fill="#F637E3"/>
+ <path d="M240.028 140.714C226.131 177.684 190.443 204 148.614 204C125.419 204 104.11 195.91 87.3633 182.395" stroke="var(--font-color)" stroke-width="0.93421" stroke-miterlimit="10"/>
+ <path d="M236.775 140.467L241.498 136.546L242.534 142.601L236.775 140.467Z" fill="var(--font-color)"/>
+ <path d="M90.051 180.496L83.9839 179.547L86.1912 185.281L90.051 180.496Z" fill="var(--font-color)"/>
<path
d="M260.562 69.5858C260.488 69.5858 260.414 69.5488 260.316 69.4748C257.258 67.1195 254.027 64.5669 251.141 61.558C249.735 60.1028 248.169 58.3641 247.281 56.2431C246.393 54.1097 246.393 51.7297 247.294 49.7196C248.145 47.8206 249.748 46.3778 251.795 45.6749C252.165 45.5516 252.547 45.4776 252.929 45.3913C253.114 45.3543 253.299 45.3173 253.484 45.2679H254.742C254.927 45.3419 255.186 45.4036 255.457 45.4776C256.024 45.6256 256.616 45.7735 257.147 45.9832C258.33 46.4641 259.366 47.3396 260.291 48.6591L260.525 48.9798L261.08 48.3262C261.29 48.0795 261.487 47.8329 261.697 47.6109C262.893 46.3408 264.373 45.6009 266.087 45.3789C266.198 45.3666 266.297 45.3296 266.383 45.2926H267.702C267.863 45.3296 268.109 45.3913 268.356 45.4406C268.886 45.5639 269.392 45.6749 269.848 45.8845C272.573 47.0807 274.115 49.1894 274.423 52.149C274.694 54.6523 273.881 56.909 271.809 59.4739C269.17 62.7171 265.976 65.3684 262.918 67.8101C262.572 68.0937 262.215 68.365 261.857 68.6363C261.512 68.9076 261.167 69.1665 260.821 69.4378C260.71 69.5365 260.612 69.5735 260.525 69.5735L260.562 69.5858Z"
fill="#F11653"
- ></path>
+ />
<path
d="M267.638 45.5885C267.86 45.6502 268.082 45.6995 268.304 45.7488C268.822 45.8721 269.303 45.9831 269.747 46.1681C272.398 47.3396 273.841 49.3003 274.149 52.1736C274.408 54.5906 273.619 56.7733 271.597 59.2642C268.982 62.4828 265.788 65.1217 262.755 67.5634C262.409 67.847 262.052 68.1183 261.694 68.3896C261.349 68.6486 261.004 68.9199 260.671 69.1912C260.609 69.2405 260.572 69.2528 260.572 69.2651C260.572 69.2651 260.547 69.2528 260.51 69.2282C257.465 66.8728 254.246 64.3325 251.36 61.3359C249.979 59.8931 248.438 58.1914 247.562 56.1074C246.699 54.0603 246.711 51.7666 247.575 49.8306C248.388 48.0055 249.918 46.6244 251.891 45.9461C252.236 45.8228 252.594 45.7612 252.988 45.6748C253.148 45.6378 253.321 45.6132 253.481 45.5762H254.653C254.887 45.6378 255.134 45.6995 255.38 45.7612C255.96 45.9091 256.515 46.0448 257.033 46.2544C258.167 46.7107 259.154 47.5492 260.042 48.8194L260.498 49.473L261.016 48.8687C261.127 48.7454 261.226 48.6221 261.324 48.4988C261.522 48.2521 261.719 48.0178 261.929 47.7959C263.075 46.5874 264.494 45.8721 266.134 45.6625C266.282 45.6502 266.405 45.6008 266.504 45.5638H267.638M267.724 44.9473H266.393C266.282 44.9843 266.171 45.0336 266.06 45.0583C264.259 45.2802 262.73 46.0571 261.485 47.3766C261.164 47.7095 260.88 48.0795 260.547 48.4618C259.672 47.2286 258.636 46.2298 257.267 45.6748C256.466 45.3542 255.59 45.1816 254.739 44.9473H253.407C252.828 45.0829 252.236 45.1569 251.681 45.3542C246.909 47.0066 245.207 52.0749 246.983 56.3293C247.858 58.438 249.35 60.1274 250.904 61.7429C253.728 64.6778 256.897 67.2181 260.116 69.6968C260.264 69.8077 260.412 69.8694 260.547 69.8694C260.708 69.8694 260.868 69.7954 261.041 69.6598C261.731 69.1048 262.446 68.5869 263.125 68.032C266.319 65.467 269.463 62.8404 272.065 59.6465C273.853 57.4515 275.074 55.0468 274.753 52.0996C274.42 49.0167 272.817 46.834 269.993 45.5885C269.278 45.2679 268.477 45.1569 267.712 44.9473H267.724Z"
fill="black"
- ></path>
+ />
<path
d="M80.2482 77.4411C80.2482 70.9917 74.8223 65.8124 68.2989 66.2193C62.6881 66.5646 58.1254 71.1273 57.7801 76.7382C57.7061 78.0453 57.8417 79.3155 58.187 80.5116C58.4213 81.3625 58.7666 82.1641 59.1859 82.9163L59.2352 83.015C59.2352 83.015 59.2352 83.0273 59.2352 83.0396L67.7933 98.5157C68.3236 99.4653 69.6801 99.4653 70.2103 98.5157L78.8301 82.9286C79.7303 81.3132 80.2482 79.4511 80.2482 77.4657V77.4411ZM69.0018 81.8188C66.8315 81.8188 65.0804 80.0677 65.0804 77.8974C65.0804 75.727 66.8315 73.9759 69.0018 73.9759C71.1722 73.9759 72.9233 75.727 72.9233 77.8974C72.9233 80.0677 71.1722 81.8188 69.0018 81.8188Z"
fill="#F11653"
stroke="black"
stroke-width="0.93421"
stroke-miterlimit="10"
- ></path>
+ />
<path
d="M210.791 133.525C210.791 127.075 205.365 121.896 198.829 122.303C193.218 122.648 188.656 127.211 188.31 132.822C188.236 134.129 188.372 135.399 188.717 136.595C188.952 137.446 189.297 138.248 189.716 139L189.765 139.099C189.765 139.099 189.765 139.111 189.765 139.123L198.324 154.599C198.854 155.549 200.21 155.549 200.741 154.599L209.36 139.012C210.261 137.397 210.778 135.535 210.778 133.549L210.791 133.525ZM199.544 137.902C197.374 137.902 195.623 136.151 195.623 133.981C195.623 131.811 197.374 130.06 199.544 130.06C201.715 130.06 203.466 131.811 203.466 133.981C203.466 136.151 201.715 137.902 199.544 137.902Z"
fill="#8514F5"
stroke="black"
stroke-width="0.93421"
stroke-miterlimit="10"
- ></path>
+ />
<path
d="M144.349 105.064C144.349 98.6142 138.923 93.435 132.387 93.8419C126.776 94.1872 122.214 98.7499 121.868 104.361C121.794 105.668 121.93 106.938 122.275 108.134C122.509 108.985 122.855 109.787 123.274 110.539L123.323 110.638C123.323 110.638 123.323 110.65 123.323 110.662L131.881 126.138C132.412 127.088 133.768 127.088 134.298 126.138L142.918 110.551C143.818 108.936 144.336 107.074 144.336 105.088L144.349 105.064ZM133.102 109.441C130.932 109.441 129.181 107.69 129.181 105.52C129.181 103.35 130.932 101.598 133.102 101.598C135.273 101.598 137.024 103.35 137.024 105.52C137.024 107.69 135.273 109.441 133.102 109.441Z"
fill="#F637E3"
stroke="black"
stroke-width="0.93421"
stroke-miterlimit="10"
- ></path>
+ />
<path
d="M166.102 11.9231C166.102 5.47372 160.676 0.29446 154.14 0.701402C148.529 1.04669 143.967 5.60937 143.621 11.2202C143.547 12.5274 143.683 13.7975 144.028 14.9937C144.263 15.8446 144.608 16.6461 145.027 17.3984L145.077 17.497C145.077 17.497 145.077 17.5093 145.077 17.5217L153.635 32.9978C154.165 33.9473 155.521 33.9473 156.052 32.9978L164.671 17.4107C165.572 15.7952 166.09 13.9332 166.09 11.9478L166.102 11.9231ZM154.855 16.3009C152.685 16.3009 150.934 14.5498 150.934 12.3794C150.934 10.2091 152.685 8.45796 154.855 8.45796C157.026 8.45796 158.777 10.2091 158.777 12.3794C158.777 14.5498 157.026 16.3009 154.855 16.3009Z"
fill="#5C44E4"
stroke="black"
stroke-width="0.93421"
stroke-miterlimit="10"
- ></path>
+ />
<path
d="M57.7813 123.586H8.09733C3.95392 123.586 0.587402 126.952 0.587402 131.096V152.244C0.587402 156.388 3.95392 159.754 8.09733 159.754H44.7344L55.2163 168.83V159.754H57.7813C61.9247 159.754 65.2912 156.388 65.2912 152.244V131.096C65.2912 126.952 61.9247 123.586 57.7813 123.586Z"
fill="#8514F5"
stroke="black"
stroke-width="0.93421"
stroke-miterlimit="10"
- ></path>
- <path d="M59.2344 133.241H6.65259V136.127H59.2344V133.241Z" fill="white" stroke="black" stroke-width="0.93421" stroke-miterlimit="10"></path>
- <path d="M59.2344 140.776H6.65259V143.661H59.2344V140.776Z" fill="white" stroke="black" stroke-width="0.93421" stroke-miterlimit="10"></path>
- <path d="M37.8268 148.31H6.65259V151.196H37.8268V148.31Z" fill="white" stroke="black" stroke-width="0.93421" stroke-miterlimit="10"></path>
+ />
+ <path d="M59.2344 133.241H6.65259V136.127H59.2344V133.241Z" fill="white" stroke="black" stroke-width="0.93421" stroke-miterlimit="10"/>
+ <path d="M59.2344 140.776H6.65259V143.661H59.2344V140.776Z" fill="white" stroke="black" stroke-width="0.93421" stroke-miterlimit="10"/>
+ <path d="M37.8268 148.31H6.65259V151.196H37.8268V148.31Z" fill="white" stroke="black" stroke-width="0.93421" stroke-miterlimit="10"/>
</svg>
</template>
diff --git a/frontend/app/pages/dashboard/docs/_components/table-of-content/NodeTree.vue b/frontend/app/pages/dashboard/docs/_components/table-of-content/NodeTree.vue
index d0375650..afe6347b 100644
--- a/frontend/app/pages/dashboard/docs/_components/table-of-content/NodeTree.vue
+++ b/frontend/app/pages/dashboard/docs/_components/table-of-content/NodeTree.vue
@@ -2,7 +2,7 @@
<li>
<a :href="node.link">{{ node.title }}</a>
<ul v-if="node.childrens?.length">
- <NodeTree v-for="child in node.childrens" :node="child"></NodeTree>
+ <NodeTree v-for="child in node.childrens" :node="child"/>
</ul>
</li>
</template>
diff --git a/frontend/app/pages/dashboard/docs/_components/table-of-content/TableOfContents.vue b/frontend/app/pages/dashboard/docs/_components/table-of-content/TableOfContents.vue
index 88c4391c..4438e7f0 100644
--- a/frontend/app/pages/dashboard/docs/_components/table-of-content/TableOfContents.vue
+++ b/frontend/app/pages/dashboard/docs/_components/table-of-content/TableOfContents.vue
@@ -2,12 +2,12 @@
<aside>
<h4 v-if="doc?.tags">Tags</h4>
<div style="display: flex; flex-wrap: wrap; font-size: 14px">
- <tag v-if="doc?.tags" v-for="tag in doc?.tags.split(',')" :key="tag" class="primary">#{{ tag.trim() }}</tag>
+ <tag v-for="tag in doc?.tags.split(',')" v-if="doc?.tags" :key="tag" class="primary">#{{ tag.trim() }}</tag>
</div>
<ul ref="list" style="position: relative">
- <div class="marker" ref="marker" v-if="headers.length"></div>
+ <div v-if="headers.length" ref="marker" class="marker"/>
<h4>Table of contents</h4>
- <NodeTree v-if="headers.length" v-for="header of headers_tree" :node="header" :key="header.link" style="padding-left: 10px" />
+ <NodeTree v-for="header of headers_tree" v-if="headers.length" :key="header.link" :node="header" style="padding-left: 10px" />
<p v-else>Nothing to display</p>
</ul>
<h4 v-if="childs.length">Child documents</h4>
diff --git a/frontend/app/pages/dashboard/docs/_modals/DeleteDocumentModal.vue b/frontend/app/pages/dashboard/docs/_modals/DeleteDocumentModal.vue
index 1105e2b0..3643e675 100644
--- a/frontend/app/pages/dashboard/docs/_modals/DeleteDocumentModal.vue
+++ b/frontend/app/pages/dashboard/docs/_modals/DeleteDocumentModal.vue
@@ -5,8 +5,8 @@
<p style="opacity: 0.7">This action is irreversible</p>
<p v-if="allChildren.length > 0" class="warn">This document has {{ allChildren.length }} child documents. They will be deleted too.</p>
<div class="footer">
- <AppButton @click="emit('close')" type="secondary">Cancel</AppButton>
- <AppButton @click="deleteDoc" type="danger">Confirm</AppButton>
+ <AppButton type="secondary" @click="emit('close')">Cancel</AppButton>
+ <AppButton type="danger" @click="deleteDoc">Confirm</AppButton>
</div>
</div>
</template>
diff --git a/frontend/app/pages/dashboard/docs/index.vue b/frontend/app/pages/dashboard/docs/index.vue
index 3e2a560b..947f84f4 100644
--- a/frontend/app/pages/dashboard/docs/index.vue
+++ b/frontend/app/pages/dashboard/docs/index.vue
@@ -5,7 +5,7 @@
<ViewSelection v-model="view" />
</header>
<div v-if="view == 'table'" class="line-container">
- <DocumentLine v-for="document of documents" :document="document" class="line-item" :key="document.id" />
+ <DocumentLine v-for="document of documents" :key="document.id" :document="document" class="line-item" />
</div>
<div v-else class="document-list">
<DocumentsGrid :documents="documents" />
diff --git a/frontend/app/pages/dashboard/home.vue b/frontend/app/pages/dashboard/home.vue
index f364b96a..da78756f 100644
--- a/frontend/app/pages/dashboard/home.vue
+++ b/frontend/app/pages/dashboard/home.vue
@@ -1,7 +1,7 @@
<template>
<div style="text-align: center; margin: 5vh auto; gap: 20px">
<h1>Alexandrie dashboard</h1>
- <img style="max-width: 300px; max-height: 300px" :src="`/empty-${colorMode.value}.png`" /> <br />
+ <img style="max-width: 300px; max-height: 300px" :src="`/empty-${colorMode.value}.png`" > <br >
<div class="global-search-hint">
<Icon name="search" class="hint-icon" />
@@ -9,7 +9,7 @@
</div>
<div class="search-container">
- <input type="text" v-model="searchQuery" placeholder="Search documents..." class="search-input" />
+ <input v-model="searchQuery" type="text" placeholder="Search documents..." class="search-input" >
<div v-if="results.length" class="results">
<NuxtLink v-for="result in results" :key="result.id" class="result" :to="`/dashboard/docs/${result.id}`">
<Icon :name="category(result.category)?.icon || 'files'" :class="`category-icon ${getAppColor(category(result.category)?.color as number, true)}`" />{{ result.name }}</NuxtLink
diff --git a/frontend/app/pages/dashboard/import.vue b/frontend/app/pages/dashboard/import.vue
index e80cf18c..9f1cf7b7 100644
--- a/frontend/app/pages/dashboard/import.vue
+++ b/frontend/app/pages/dashboard/import.vue
@@ -6,7 +6,7 @@
<p>You can import documents from a previous export. If you don't have export, you can create a new one from the <NuxtLink to="/dashboard/settings?p=backup" style="color: var(--primary)">settings</NuxtLink> page.</p>
<AppDrop ref="dropComponent" @select="handleFileSelect" />
<div class="submit">
- <AppButton @click="submit" type="primary" :disabled="!selectedFile">Analyse file</AppButton>
+ <AppButton type="primary" :disabled="!selectedFile" @click="submit">Analyse file</AppButton>
</div>
<div v-if="files_to_import.length">
<h2>Files to import</h2>
@@ -14,7 +14,7 @@
<p style="display: flex">
<Icon name="file" />
&nbsp;{{ file.name }}
- <tag v-if="file.tags" v-for="tag in file.tags?.split(',')" :key="tag" class="blue">{{ tag.trim() }}</tag>
+ <tag v-for="tag in file.tags?.split(',')" v-if="file.tags" :key="tag" class="blue">{{ tag.trim() }}</tag>
</p>
<p>Created at: {{ new Date(file.created_timestamp).toLocaleDateString() }}</p>
<p>Updated at: {{ new Date(file.updated_timestamp).toLocaleDateString() }}</p>
diff --git a/frontend/app/pages/dashboard/index.vue b/frontend/app/pages/dashboard/index.vue
index 42b0cd70..9cd6d23b 100644
--- a/frontend/app/pages/dashboard/index.vue
+++ b/frontend/app/pages/dashboard/index.vue
@@ -1,4 +1,6 @@
-<template></template>
+<template>
+ <div />
+</template>
<script setup lang="ts">
await navigateTo('/dashboard/home');
diff --git a/frontend/app/pages/dashboard/settings/_modals/DeleteAccountModal.vue b/frontend/app/pages/dashboard/settings/_modals/DeleteAccountModal.vue
index 2f20ca1f..185888d3 100644
--- a/frontend/app/pages/dashboard/settings/_modals/DeleteAccountModal.vue
+++ b/frontend/app/pages/dashboard/settings/_modals/DeleteAccountModal.vue
@@ -5,8 +5,8 @@
<p style="opacity: 0.7">This action is irreversible</p>
<p v-if="time > 0">Please wait {{ time }} seconds before confirming</p>
<div class="footer">
- <AppButton @click="emit('close')" type="secondary">Cancel</AppButton>
- <AppButton @click="deleteAccount" :disabled="time > 0" type="danger">Confirm</AppButton>
+ <AppButton type="secondary" @click="emit('close')">Cancel</AppButton>
+ <AppButton :disabled="time > 0" type="danger" @click="deleteAccount">Confirm</AppButton>
</div>
</div>
</template>
diff --git a/frontend/app/pages/dashboard/settings/_views/about.vue b/frontend/app/pages/dashboard/settings/_views/about.vue
index 6d406636..7d1e1050 100644
--- a/frontend/app/pages/dashboard/settings/_views/about.vue
+++ b/frontend/app/pages/dashboard/settings/_views/about.vue
@@ -7,8 +7,8 @@
<strong>Client: {{ isPWA ? 'PWA' : 'Website' }}</strong>
</p>
<p>
- Alexandrie is a personal knowledge management tool designed to help you organize and retrieve your notes efficiently. <br />
- It offers a range of features including document organization, tagging, and advanced search capabilities. <br />
+ Alexandrie is a personal knowledge management tool designed to help you organize and retrieve your notes efficiently. <br >
+ It offers a range of features including document organization, tagging, and advanced search capabilities. <br >
If you have any questions, suggestions or if you found a bug, please feel free to reach out to us! You can create an issue on the
<NuxtLink to="https://github.com/Smaug6739/Alexandrie" target="_blank" style="color: var(--primary); font-weight: bold">GitHub repository</NuxtLink>.
</p>
diff --git a/frontend/app/pages/dashboard/settings/_views/backups.vue b/frontend/app/pages/dashboard/settings/_views/backups.vue
index d658ab50..560ff8aa 100644
--- a/frontend/app/pages/dashboard/settings/_views/backups.vue
+++ b/frontend/app/pages/dashboard/settings/_views/backups.vue
@@ -3,13 +3,13 @@
<div class="main">
<h2>Create a database backup</h2>
<p>Click the button below to create a backup of your database.</p>
- <AppButton @click="submitFile" type="primary">Create Backup</AppButton>
- <div v-if="isLoading" class="loading-spinner"></div>
- <div class="link-section" v-if="downloadLink">
+ <AppButton type="primary" @click="submitFile">Create Backup</AppButton>
+ <div v-if="isLoading" class="loading-spinner"/>
+ <div v-if="downloadLink" class="link-section">
<p>Your backup is ready. You can copy the link to share it or download it.</p>
- <input type="text" v-model="downloadLink" readonly placeholder="Backup Link" />
+ <input v-model="downloadLink" type="text" readonly placeholder="Backup Link" >
<div style="display: flex">
- <AppButton @click="copyLink" type="secondary">Copy Link</AppButton>
+ <AppButton type="secondary" @click="copyLink">Copy Link</AppButton>
<a :href="downloadLink + '?response-content-disposition=attachment%3B%20filename%3D%22' + fileName()" download><AppButton type="primary">Download Backup</AppButton></a>
</div>
</div>
diff --git a/frontend/app/pages/dashboard/settings/_views/preferences.vue b/frontend/app/pages/dashboard/settings/_views/preferences.vue
index c455dd22..019fd7f2 100644
--- a/frontend/app/pages/dashboard/settings/_views/preferences.vue
+++ b/frontend/app/pages/dashboard/settings/_views/preferences.vue
@@ -9,14 +9,14 @@
<AppToggle v-if="option.type === 'toggle'" :active="option.value" @toggle="toggleOption(option)" />
<!-- Native select -->
- <AppSelect v-else-if="option.type === 'select'" @update:model-value="o => selectOption({ ...option, value: o })" :items="option.choices" v-model="option.value" size="40%" />
- <AppColorPicker v-else-if="option.type === 'color'" :selectedColor="option.value" @update:selected-color="option.onChange" />
+ <AppSelect v-else-if="option.type === 'select'" v-model="option.value" :items="option.choices" size="40%" @update:model-value="o => selectOption({ ...option, value: o })" />
+ <AppColorPicker v-else-if="option.type === 'color'" :selected-color="option.value" @update:selected-color="option.onChange" />
</div>
</div>
- <hr />
+ <hr >
<div class="reset">
<p>
- <span @click="preferencesStore.reset" style="color: var(--primary); cursor: pointer">Reset all preferences</span>
+ <span style="color: var(--primary); cursor: pointer" @click="preferencesStore.reset">Reset all preferences</span>
to default. This will reset all your preferences, including the theme and settings
</p>
</div>
diff --git a/frontend/app/pages/dashboard/settings/_views/profile.vue b/frontend/app/pages/dashboard/settings/_views/profile.vue
index b51f93fa..1b3b47bd 100644
--- a/frontend/app/pages/dashboard/settings/_views/profile.vue
+++ b/frontend/app/pages/dashboard/settings/_views/profile.vue
@@ -4,28 +4,28 @@
<form v-if="userStore.user" @submit.prevent="updateUser">
<div class="form-group">
<label for="username">Username</label>
- <input id="username" v-model="userStore.user.username" type="text" disabled required />
+ <input id="username" v-model="userStore.user.username" type="text" disabled required >
</div>
<div class="form-group">
<label for="firstname">First Name</label>
- <input id="firstname" v-model="userStore.user.firstname" type="text" />
+ <input id="firstname" v-model="userStore.user.firstname" type="text" >
</div>
<div class="form-group">
<label for="lastname">Last Name</label>
- <input id="lastname" v-model="userStore.user.lastname" type="text" />
+ <input id="lastname" v-model="userStore.user.lastname" type="text" >
</div>
<div class="form-group">
<label for="email">Email</label>
- <input id="email" v-model="userStore.user.email" type="email" required />
+ <input id="email" v-model="userStore.user.email" type="email" required >
</div>
<div class="form-group">
<label>Avatar</label>
- <img :src="avatarPreview || useAvatar(userStore.user)" class="avatar" @click="selectAvatar" />
- <input ref="avatarInput" type="file" accept="image/*" @change="previewAvatar" style="display: none" />
+ <img :src="avatarPreview || useAvatar(userStore.user)" class="avatar" @click="selectAvatar" >
+ <input ref="avatarInput" type="file" accept="image/*" style="display: none" @change="previewAvatar" >
</div>
<AppButton type="primary">Update profile</AppButton>
</form>
- <hr style="margin: 10px 0" />
+ <hr style="margin: 10px 0" >
<p><strong>Account creation:</strong> {{ formatDate(parseInt(userStore.user?.created_timestamp || '0')) }}</p>
<p><strong>Last update:</strong> {{ formatDate(parseInt(userStore.user?.updated_timestamp || '0')) }}</p>
</div>
diff --git a/frontend/app/pages/dashboard/settings/_views/security.vue b/frontend/app/pages/dashboard/settings/_views/security.vue
index 0b8c056a..eea265b1 100644
--- a/frontend/app/pages/dashboard/settings/_views/security.vue
+++ b/frontend/app/pages/dashboard/settings/_views/security.vue
@@ -1,14 +1,14 @@
<template>
<h1>Security</h1>
<h2>Last connection</h2>
- <div class="last_connection" v-if="store.last_connection">
+ <div v-if="store.last_connection" class="last_connection">
<div style="display: flex">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="569.4 86.3 83.6 48.2" width="100px">
- <path fill="var(--cl-chassis-back, black)" d="M577 89.8c0-1.4.2-2 .6-2.6.5-.5 1.2-.9 2.8-.9h61.7c1.4 0 2 .3 2.5.8s.7 1.2.7 2.7v41c0 1.4-.2 2-.5 2.4a2.7 2.7 0 0 1-2.2 1.1h-63c-.8 0-1.6-.3-2-1-.4-.4-.6-1-.6-2.5v-41Z"></path>
- <path fill="var(--cl-chassis-screen, #323232)" d="M578.4 132.9h65.5c.3 0 .6-.2.8-.4.2-.2.2-.5.2-1.4V89.8c0-1.2-.1-2-.6-2.4-.5-.5-1-.7-2.2-.7h-61.7c-1.3 0-2 .3-2.5.8-.4.4-.5 1-.5 2.3v41.3c0 .9 0 1.2.2 1.4.2.2.5.4.8.4Z"></path>
- <path fill-rule="evenodd" stroke="var(--cl-chassis-back1, 'gold')" stroke-width="0.3" d="M611.2 88.5a.3.3 0 1 0 0-.5.3.3 0 1 0 0 .5Z" clip-rule="evenodd"></path>
- <path fill="var(--cl-chassis-bottom, #191919)" fill-rule="evenodd" d="M569.4 133.3v-.5H653v.5s-1.9.6-4 .8c-1.4.1-3.7.4-8.9.4h-57.4c-4.5 0-8.3-.3-10-.5-1.7-.2-3.3-.7-3.3-.7Z" clip-rule="evenodd"></path>
- <path fill="var(--cl-screen, #111111)" fill-rule="evenodd" d="M579.7 89.5h63v39.4h-63V89.5Z" clip-rule="evenodd"></path>
+ <path fill="var(--cl-chassis-back, black)" d="M577 89.8c0-1.4.2-2 .6-2.6.5-.5 1.2-.9 2.8-.9h61.7c1.4 0 2 .3 2.5.8s.7 1.2.7 2.7v41c0 1.4-.2 2-.5 2.4a2.7 2.7 0 0 1-2.2 1.1h-63c-.8 0-1.6-.3-2-1-.4-.4-.6-1-.6-2.5v-41Z"/>
+ <path fill="var(--cl-chassis-screen, #323232)" d="M578.4 132.9h65.5c.3 0 .6-.2.8-.4.2-.2.2-.5.2-1.4V89.8c0-1.2-.1-2-.6-2.4-.5-.5-1-.7-2.2-.7h-61.7c-1.3 0-2 .3-2.5.8-.4.4-.5 1-.5 2.3v41.3c0 .9 0 1.2.2 1.4.2.2.5.4.8.4Z"/>
+ <path fill-rule="evenodd" stroke="var(--cl-chassis-back1, 'gold')" stroke-width="0.3" d="M611.2 88.5a.3.3 0 1 0 0-.5.3.3 0 1 0 0 .5Z" clip-rule="evenodd"/>
+ <path fill="var(--cl-chassis-bottom, #191919)" fill-rule="evenodd" d="M569.4 133.3v-.5H653v.5s-1.9.6-4 .8c-1.4.1-3.7.4-8.9.4h-57.4c-4.5 0-8.3-.3-10-.5-1.7-.2-3.3-.7-3.3-.7Z" clip-rule="evenodd"/>
+ <path fill="var(--cl-screen, #111111)" fill-rule="evenodd" d="M579.7 89.5h63v39.4h-63V89.5Z" clip-rule="evenodd"/>
</svg>
<div>
<p><strong>Last connection:</strong> {{ new Date(store.last_connection.timestamp).toLocaleString() }}</p>
@@ -24,26 +24,26 @@
<form @submit.prevent="changePassword">
<div class="form-group">
<label for="password">New password</label>
- <input id="password" type="password" required v-model="passwordValue" />
+ <input id="password" v-model="passwordValue" type="password" required >
</div>
<div class="form-group">
<span style="display: flex"><label for="password_confirm">Confirm password</label> <span v-if="err_password_not_match" class="err"> Password do not match !</span></span>
- <input id="password_confirm" type="password" required v-model="passwordConfirmValue" />
+ <input id="password_confirm" v-model="passwordConfirmValue" type="password" required >
</div>
<AppButton type="danger">Change password</AppButton>
</form>
<h2>Danger</h2>
<div>
- You can log out from all devices or log out from this device. <br />
+ You can log out from all devices or log out from this device. <br >
Be careful, if you log out from all devices, you will be redirected to the login page. Please save your work before.
</div>
<AppButton type="danger" @click="logoutUser">Log out</AppButton>
<AppButton type="danger" @click="logoutUserAll">Log out from all devices</AppButton>
<h2>Delete account <tag blue>New</tag></h2>
<div>
- You can delete your account. <br />
+ You can delete your account. <br >
Be careful, if you delete your account, you will lose all your data and you will not be able to recover it.
- <br />
+ <br >
<strong>This action is irreversible.</strong>
</div>
<AppButton type="danger" @click="openDeleteModal">Delete account</AppButton>
diff --git a/frontend/app/pages/dashboard/settings/index.vue b/frontend/app/pages/dashboard/settings/index.vue
index 7e87c2c3..7950605f 100644
--- a/frontend/app/pages/dashboard/settings/index.vue
+++ b/frontend/app/pages/dashboard/settings/index.vue
@@ -3,8 +3,8 @@
<div class="component">
<nav>
<span>Account settings</span>
- <div class="user" v-if="store.user">
- <img :src="useAvatar(store.user)" alt="Avatar" style="width: 25px; height: 25px; border-radius: 50%" />
+ <div v-if="store.user" class="user">
+ <img :src="useAvatar(store.user)" alt="Avatar" style="width: 25px; height: 25px; border-radius: 50%" >
<div>
<div class="username">{{ store.user.username }}</div>
<div class="email">{{ store.user.email }}</div>
@@ -29,8 +29,8 @@
<NuxtLink @click="logoutUser"><Icon fill="var(--font-color)" name="logout" />Logout</NuxtLink>
</nav>
<div class="content">
- <button @click="close" class="close-btn"><Icon name="close" :big="true" /></button>
- <ProfileView v-if="currentPage === 'profile'"></ProfileView>
+ <button class="close-btn" @click="close"><Icon name="close" :big="true" /></button>
+ <ProfileView v-if="currentPage === 'profile'"/>
<PreferencesView v-else-if="currentPage === 'preferences'" />
<SecurityView v-else-if="currentPage === 'security'" />
<BackupView v-else-if="currentPage == 'backup'" />