📚 The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
Add syntax guides
Smaug6739afd0657cc64b
diff --git a/frontend/helpers/icons.ts b/frontend/helpers/icons.tsindex 4e1e594e..0ef2d6f9 100644--- a/frontend/helpers/icons.ts+++ b/frontend/helpers/icons.ts@@ -19,12 +19,15 @@ const icons = {image: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path style="fill:var(--green);" d="M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm40-80h480L570-480 450-320l-90-120-120 160Zm-40 80v-560 560Z"/></svg>`,import: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="m720-80 120-120-28-28-72 72v-164h-40v164l-72-72-28 28L720-80ZM480-800 243-663l237 137 237-137-237-137ZM120-321v-318q0-22 10.5-40t29.5-29l280-161q10-5 19.5-8t20.5-3q11 0 21 3t19 8l280 161q19 11 29.5 29t10.5 40v159h-80v-116L479-434 200-596v274l240 139v92L160-252q-19-11-29.5-29T120-321ZM720 0q-83 0-141.5-58.5T520-200q0-83 58.5-141.5T720-400q83 0 141.5 58.5T920-200q0 83-58.5 141.5T720 0ZM480-491Z"/></svg>`,logout: `<svg xmlns="http://www.w3.org/2000/svg" style="fill:var(--font-color);" viewBox="0 -960 960 960"><path d="M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h280v80H200Zm440-160-55-58 102-102H360v-80h327L585-622l55-58 200 200-200 200Z"/></svg>`,+ markdown: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="m640-360 120-120-42-43-48 48v-125h-60v125l-48-48-42 43 120 120ZM160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm0-80h640v-480H160v480Zm0 0v-480 480Zm60-120h60v-180h40v120h60v-120h40v180h60v-200q0-17-11.5-28.5T440-600H260q-17 0-28.5 11.5T220-560v200Z"/></svg>`,pdf: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path style="fill:var(--green);" d="M280-280h280v-80H280v80Zm0-160h400v-80H280v80Zm0-160h400v-80H280v80Zm-80 480q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm0-560v560-560Z"/></svg>`,plus: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z"/></svg>`,profil: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M234-276q51-39 114-61.5T480-360q69 0 132 22.5T726-276q35-41 54.5-93T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 59 19.5 111t54.5 93Zm246-164q-59 0-99.5-40.5T340-580q0-59 40.5-99.5T480-720q59 0 99.5 40.5T620-580q0 59-40.5 99.5T480-440Zm0 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q53 0 100-15.5t86-44.5q-39-29-86-44.5T480-280q-53 0-100 15.5T294-220q39 29 86 44.5T480-160Zm0-360q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43q0 26 17 43t43 17Zm0-60Zm0 360Z"/></svg>`,search: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"/></svg>`,security: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="m438-338 226-226-57-57-169 169-84-84-57 57 141 141Zm42 258q-139-35-229.5-159.5T160-516v-244l320-120 320 120v244q0 152-90.5 276.5T480-80Zm0-84q104-33 172-132t68-220v-189l-240-90-240 90v189q0 121 68 220t172 132Zm0-316Z"/></svg>`,settings: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="m370-80-16-128q-13-5-24.5-12T307-235l-119 50L78-375l103-78q-1-7-1-13.5v-27q0-6.5 1-13.5L78-585l110-190 119 50q11-8 23-15t24-12l16-128h220l16 128q13 5 24.5 12t22.5 15l119-50 110 190-103 78q1 7 1 13.5v27q0 6.5-2 13.5l103 78-110 190-118-50q-11 8-23 15t-24 12L590-80H370Zm70-80h79l14-106q31-8 57.5-23.5T639-327l99 41 39-68-86-65q5-14 7-29.5t2-31.5q0-16-2-31.5t-7-29.5l86-65-39-68-99 42q-22-23-48.5-38.5T533-694l-13-106h-79l-14 106q-31 8-57.5 23.5T321-633l-99-41-39 68 86 64q-5 15-7 30t-2 32q0 16 2 31t7 30l-86 65 39 68 99-42q22 23 48.5 38.5T427-266l13 106Zm42-180q58 0 99-41t41-99q0-58-41-99t-99-41q-59 0-99.5 41T342-480q0 58 40.5 99t99.5 41Zm-2-140Z"/></svg>`,+ shortcuts: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M260-120q-58 0-99-41t-41-99q0-58 41-99t99-41h60v-160h-60q-58 0-99-41t-41-99q0-58 41-99t99-41q58 0 99 41t41 99v60h160v-60q0-58 41-99t99-41q58 0 99 41t41 99q0 58-41 99t-99 41h-60v160h60q58 0 99 41t41 99q0 58-41 99t-99 41q-58 0-99-41t-41-99v-60H400v60q0 58-41 99t-99 41Zm0-80q25 0 42.5-17.5T320-260v-60h-60q-25 0-42.5 17.5T200-260q0 25 17.5 42.5T260-200Zm440 0q25 0 42.5-17.5T760-260q0-25-17.5-42.5T700-320h-60v60q0 25 17.5 42.5T700-200ZM400-400h160v-160H400v160ZM260-640h60v-60q0-25-17.5-42.5T260-760q-25 0-42.5 17.5T200-700q0 25 17.5 42.5T260-640Zm380 0h60q25 0 42.5-17.5T760-700q0-25-17.5-42.5T700-760q-25 0-42.5 17.5T640-700v60Z"/></svg>`,+ snippets: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M600-360q50 0 85-35t35-85q0-50-35-85t-85-35q-50 0-85 35t-35 85q0 50 35 85t85 35Zm0 80q-72 0-127-45t-69-115H240v-80h164q5-22 13.5-42.5T440-600H160v-80h440q83 0 141.5 58.5T800-480q0 83-58.5 141.5T600-280Z"/></svg>`,users: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M40-160v-112q0-34 17.5-62.5T104-378q62-31 126-46.5T360-440q66 0 130 15.5T616-378q29 15 46.5 43.5T680-272v112H40Zm720 0v-120q0-44-24.5-84.5T666-434q51 6 96 20.5t84 35.5q36 20 55 44.5t19 53.5v120H760ZM360-480q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47Zm400-160q0 66-47 113t-113 47q-11 0-28-2.5t-28-5.5q27-32 41.5-71t14.5-81q0-42-14.5-81T544-792q14-5 28-6.5t28-1.5q66 0 113 47t47 113ZM120-240h480v-32q0-11-5.5-20T580-306q-54-27-109-40.5T360-360q-56 0-111 13.5T140-306q-9 5-14.5 14t-5.5 20v32Zm240-320q33 0 56.5-23.5T440-640q0-33-23.5-56.5T360-720q-33 0-56.5 23.5T280-640q0 33 23.5 56.5T360-560Zm0 320Zm0-400Z"/></svg>`,user_settings: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M400-480q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM80-160v-112q0-33 17-62t47-44q51-26 115-44t141-18h14q6 0 12 2-8 18-13.5 37.5T404-360h-4q-71 0-127.5 18T180-306q-9 5-14.5 14t-5.5 20v32h252q6 21 16 41.5t22 38.5H80Zm560 40-12-60q-12-5-22.5-10.5T584-204l-58 18-40-68 46-40q-2-14-2-26t2-26l-46-40 40-68 58 18q11-8 21.5-13.5T628-460l12-60h80l12 60q12 5 22.5 11t21.5 15l58-20 40 70-46 40q2 12 2 25t-2 25l46 40-40 68-58-18q-11 8-21.5 13.5T732-180l-12 60h-80Zm40-120q33 0 56.5-23.5T760-320q0-33-23.5-56.5T680-400q-33 0-56.5 23.5T600-320q0 33 23.5 56.5T680-240ZM400-560q33 0 56.5-23.5T480-640q0-33-23.5-56.5T400-720q-33 0-56.5 23.5T320-640q0 33 23.5 56.5T400-560Zm0-80Zm12 400Z"/></svg>`,view: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="var(--font-color)"><path d="M480-320q75 0 127.5-52.5T660-500q0-75-52.5-127.5T480-680q-75 0-127.5 52.5T300-500q0 75 52.5 127.5T480-320Zm0-72q-45 0-76.5-31.5T372-500q0-45 31.5-76.5T480-608q45 0 76.5 31.5T588-500q0 45-31.5 76.5T480-392Zm0 192q-146 0-266-81.5T40-500q54-137 174-218.5T480-800q146 0 266 81.5T920-500q-54 137-174 218.5T480-200Zm0-300Zm0 220q113 0 207.5-59.5T832-500q-50-101-144.5-160.5T480-720q-113 0-207.5 59.5T128-500q50 101 144.5 160.5T480-280Z"/></svg>`,diff --git a/frontend/pages/dashboard/settings/_views/markdown.vue b/frontend/pages/dashboard/settings/_views/markdown.vuenew file mode 100644index 00000000..2a308370--- /dev/null+++ b/frontend/pages/dashboard/settings/_views/markdown.vue@@ -0,0 +1,172 @@+<template>+ <div class="markdown-doc">+ <h1>📘 Alexandrie Markdown Syntax Guide</h1>+ <p>This guide shows you how to use Alexandrie’s extended Markdown features to create expressive and organized notes.</p>++ <h2>✍️ Basic Formatting</h2>+ <ul>+ <li><strong>Bold</strong>: <code>**bold**</code> or <code>__bold__</code></li>+ <li><em>Italic</em>: <code>*italic*</code> or <code>_italic_</code></li>+ <li><u>Underline</u>: <code>==underline==</code></li>+ <li><del>Strikethrough</del>: <code>~~strikethrough~~</code></li>+ <li><mark>Highlight</mark>: <code>`highlight`</code></li>+ </ul>++ <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></code></li>+ </ul>++ <h2>🧾 Lists & Tables</h2>+ <ul>+ <li>Unordered: <code>- Item</code></li>+ <li>Ordered: <code>1. Item</code></li>+ </ul>+ <p>Table syntax:</p>+ <div style="display: flex; gap: 1rem; flex-wrap: wrap">+ <table>+ <thead>+ <tr>+ <th>Header 1</th>+ <th>Header 2</th>+ </tr>+ </thead>+ <tbody>+ <tr>+ <td>Row 1</td>+ <td>Cell 1</td>+ </tr>+ <tr>+ <td>Row 2</td>+ <td>Cell 2</td>+ </tr>+ </tbody>+ </table>+ <pre><code>| Header 1 | Header 2 |+|----------|----------|+| Row 1 | Cell 1 |+| Row 2 | Cell 2 |</code></pre>+ </div>++ <h2>💻 Code</h2>+ <p>Inline: <code>`inline code`</code></p>+ <p>Multiline:</p>+ <pre><code class="language-js">```javascript+function hello() {+ console.log("Hello, world!");+}+```</code></pre>++ <h2>📏 Horizontal Rules</h2>+ <p><code>---</code>, <code>***</code>, or <code>___</code> renders a line:</p>+ <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"><code>:::blue INFO<br/>:::</code></pre>+ </span>+ <span style="flex: 1; margin-left: 10px"+ ><div class="blue custom-block"><p class="custom-block-title">INFO</p></div></span+ >+ </div>+ <div style="display: flex">+ <span style="flex: 1; margin-right: 10px">+ <pre style="color: white; padding: 5px"><code>:::green SUCCESS<br/>:::</code></pre>+ </span>+ <span style="flex: 1; margin-left: 10px"+ ><div class="green custom-block"><p class="custom-block-title">SUCCESS</p></div></span+ >+ </div>+ <div style="display: flex">+ <span style="flex: 1; margin-right: 10px">+ <pre style="color: white; padding: 5px"><code>:::yellow WARNING<br/>:::</code></pre>+ </span>+ <span style="flex: 1; margin-left: 10px"+ ><div class="yellow custom-block"><p class="custom-block-title">WARNING</p></div></span+ >+ </div>+ <div style="display: flex">+ <span style="flex: 1; margin-right: 10px">+ <pre style="color: white; padding: 5px"><code>:::grey NOTE<br/>:::</code></pre>+ </span>+ <span style="flex: 1; margin-left: 10px"+ ><div class="grey custom-block"><p class="custom-block-title">NOTE</p></div></span+ >+ </div>+ <div style="display: flex">+ <span style="flex: 1; margin-right: 10px">+ <pre style="color: white; padding: 5px"><code>:::red DANGER<br/>:::</code></pre>+ </span>+ <span style="flex: 1; margin-left: 10px"+ ><div class="red custom-block"><p class="custom-block-title">DANGER</p></div></span+ >+ </div>++ <h2>📚 Special Blocks</h2>+ <p>These enhance your note structure visually and semantically:</p>+ <ul>+ <li><code>:::center</code> – center-aligned content</li>+ <li><code>:::details</code> – collapsible content</li>+ <li><code>:::definition [Title]</code></li>+ <li><code>:::theorem [Title]</code></li>+ <li><code>:::property [Title]</code></li>+ </ul>+ <p>Examples:</p>+ <pre><code>:::center+This text is centered!+:::</code></pre>++ <pre><code>:::details+Click to reveal hidden content.+:::</code></pre>++ <pre><code>:::definition What is Markdown?+Markdown is a lightweight markup language.+:::</code></pre>++ <pre><code>:::theorem Pythagoras+a² + b² = c²+:::</code></pre>++ <pre><code>:::info-u Quick Tip+Snippets help you focus on writing, not formatting.+:::</code></pre>++ <h2>📤 Export</h2>+ <p>Export your notes to PDF, automatically hiding private/debug blocks for a clean result.</p>++ <h2>💡 Tips</h2>+ <ul>+ <li>Combine blocks for complex notes: math + code + definition</li>+ <li>Use <code>:::details</code> to hide advanced explanations</li>+ <li>Exported PDF respects layout and styles</li>+ </ul>+ </div>+</template>++<script setup>+const colorBlocks = [+ { color: 'blue', label: 'INFO' },+ { color: 'green', label: 'SUCCESS' },+ { color: 'yellow', label: 'WARNING' },+ { color: 'grey', label: 'NOTE' },+ { color: 'red', label: 'DANGER' },+];+</script>++<style scoped>+.markdown-doc {+ max-width: 850px;+ margin: auto;+ line-height: 1.7;+}+.markdown-doc pre {+ color: white;+ padding: 0.75rem;+ border-radius: 6px;+ overflow-x: auto;+}+</style>diff --git a/frontend/pages/dashboard/settings/_views/shortcuts.vue b/frontend/pages/dashboard/settings/_views/shortcuts.vuenew file mode 100644index 00000000..6b7a8fb9--- /dev/null+++ b/frontend/pages/dashboard/settings/_views/shortcuts.vue@@ -0,0 +1,114 @@+<template>+ <h1>Shortcuts</h1>+ <p>Here you can see the shortcuts for the different pages of the dashboard.</p>+ <h2>All pages</h2>+ <div class="shortcuts">+ <div class="shortcut">+ <span class="key">Ctrl + q</span>+ <span>Open quick search</span>+ </div>+ <div class="shortcut">+ <span class="key">Ctrl + r</span>+ <span>Reload the page</span>+ </div>+ <div class="shortcut">+ <span class="key">Ctrl + s</span>+ <span>Save the current page</span>+ </div>+ <div class="shortcut">+ <span class="key">Ctrl + p</span>+ <span>Print the page</span>+ </div>+ </div>+ <h2>Document page</h2>+ <div class="shortcuts">+ <div class="shortcut">+ <span class="key">e</span>+ <span>Edit the document</span>+ </div>+ <div class="shortcut">+ <span class="key">n</span>+ <span>Go to next document</span>+ </div>+ <div class="shortcut">+ <span class="key">p</span>+ <span>Go to previous document</span>+ </div>+ </div>+ <h2>Editor page</h2>+ <div class="shortcuts">+ <div class="shortcut">+ <span class="key">Ctrl + s</span>+ <span>Save the document</span>+ </div>+ <div class="shortcut">+ <span class="key">Ctrl + z</span>+ <span>Undo the last action</span>+ </div>+ <div class="shortcut">+ <span class="key">Ctrl + y</span>+ <span>Redo the last action</span>+ </div>+ <div class="shortcut">+ <span class="key">Ctrl + b</span>+ <span>Bold text</span>+ </div>+ <div class="shortcut">+ <span class="key">Ctrl + i</span>+ <span>Italic text</span>+ </div>+ <div class="shortcut">+ <span class="key">Ctrl + u</span>+ <span>Underline text</span>+ </div>+ <div class="shortcut">+ <span class="key">Ctrl + l</span>+ <span>Insert link</span>+ </div>+ <div class="shortcut">+ <span class="key">Ctrl + l</span>+ <span>Insert image</span>+ </div>+ </div>+ <h2>Search page</h2>+ <div class="shortcuts">+ <div class="shortcut">+ <span class="key">Tab</span>+ <span>Next search result</span>+ </div>+ <div class="shortcut">+ <span class="key">Shift + Tab</span>+ <span>Previous search result</span>+ </div>+ <div class="shortcut">+ <span class="key">Enter</span>+ <span>Open the selected search result</span>+ </div>+ </div>+</template>++<style scoped lang="scss">+.shortcuts {+ display: flex;+ flex-direction: column;+ gap: 8px;+}+.shortcut {+ display: flex;+ align-items: center;+ gap: 1rem; // ajuste cet espace selon tes besoins+ padding: 6px;+ border-radius: 5px;+ text-align: left; // s'assure que le texte est bien aligné à gauche+}++.key {+ font-weight: bold;+ font-size: 0.8rem;+ background-color: var(--blue-bg);+ border: 1px solid var(--blue-border);+ color: var(--blue);+ padding: 3px;+ border-radius: 5px;+}+</style>diff --git a/frontend/pages/dashboard/settings/_views/snippets.vue b/frontend/pages/dashboard/settings/_views/snippets.vuenew file mode 100644index 00000000..da07ddf2--- /dev/null+++ b/frontend/pages/dashboard/settings/_views/snippets.vue@@ -0,0 +1,80 @@+<template>+ <h2>Shortcuts</h2>+ <p>List of snippets you can use in the editor.</p>+ <!--+The snippets:+'!blue': ':::blue\n$0\n:::',+ '!green': ':::green\n$0\n:::',+ '!yellow': ':::yellow\n$0\n:::',+ '!grey': ':::grey\n$0\n:::',+ '!details': ':::details\n$0\n:::',+ '!center': ':::center\n$0\n:::',+ '!m': '\$$0\$',+ '!property': ':::property $0\n\n:::',+ '!warning': ':::warning $0\n\n:::',+-->+ <div class="snippets">+ <div class="snippet">+ <span class="key">!blue</span>+ <span>Blue block</span>+ </div>+ <div class="snippet">+ <span class="key">!green</span>+ <span>Green block</span>+ </div>+ <div class="snippet">+ <span class="key">!yellow</span>+ <span>Yellow block</span>+ </div>+ <div class="snippet">+ <span class="key">!grey</span>+ <span>Grey block</span>+ </div>+ <div class="snippet">+ <span class="key">!details</span>+ <span>Details block</span>+ </div>+ <div class="snippet">+ <span class="key">!center</span>+ <span>Center block</span>+ </div>+ <div class="snippet">+ <span class="key">!m</span>+ <span>Mention block</span>+ </div>+ <div class="snippet">+ <span class="key">!property</span>+ <span>Property block</span>+ </div>+ <div class="snippet">+ <span class="key">!warning</span>+ <span>Warning block</span>+ </div>+ </div>+</template>++<style scoped lang="scss">+.snippets {+ display: flex;+ flex-direction: column;+ gap: 0.5rem;+}+.snippet {+ display: flex;+ align-items: center;+ gap: 1rem; // ajuste cet espace selon tes besoins+ padding: 6px;+ border-radius: 5px;+ text-align: left; // s'assure que le texte est bien aligné à gauche+}+.key {+ font-weight: bold;+ font-size: 0.8rem;+ background-color: var(--blue-bg);+ border: 1px solid var(--blue-border);+ color: var(--blue);+ padding: 3px;+ border-radius: 5px;+ min-width: 35px;+}+</style>diff --git a/frontend/pages/dashboard/settings/index.vue b/frontend/pages/dashboard/settings/index.vueindex adfd8739..412cc8b8 100644--- a/frontend/pages/dashboard/settings/index.vue+++ b/frontend/pages/dashboard/settings/index.vue@@ -19,6 +19,11 @@<NuxtLink to="/dashboard/categories"><Icon fill="var(--font-color)" name="categories" />Manage categories</NuxtLink><NuxtLink to="/dashboard/docs"><Icon fill="var(--font-color)" name="draft" />Manage documents</NuxtLink><NuxtLink to="/dashboard/import" style="display: flex; align-items: center"><Icon fill="var(--font-color)" name="import" />Manage importations <tag blue>New</tag></NuxtLink>+ <span>Utils</span>+ <NuxtLink to="?p=shortcuts"><Icon fill="var(--font-color)" name="shortcuts" />Shortcuts</NuxtLink>+ <NuxtLink to="?p=snippets"><Icon fill="var(--font-color)" name="snippets" />Snippets</NuxtLink>+ <NuxtLink to="?p=markdown"><Icon fill="var(--font-color)" name="markdown" />Markdown</NuxtLink>+<span>Other</span><NuxtLink @click="logoutUser"><Icon fill="var(--font-color)" name="logout" />Logout</NuxtLink></nav>@@ -28,6 +33,9 @@<PreferencesView v-if="currentPage === 'preferences'" /><SecurityView v-if="currentPage === 'security'" /><BackupView v-if="currentPage == 'backup'" />+ <ShortcutsView v-if="currentPage == 'shortcuts'" />+ <SnippetsView v-if="currentPage == 'snippets'" />+ <MarkdownView v-if="currentPage == 'markdown'" /></div></div></div>@@ -38,6 +46,9 @@ import ProfileView from './_views/profile.vue';import SecurityView from './_views/security.vue';import PreferencesView from './_views/preferences.vue';import BackupView from './_views/backups.vue';+import ShortcutsView from './_views/shortcuts.vue';+import SnippetsView from './_views/snippets.vue';+import MarkdownView from './_views/markdown.vue';const route = useRoute();const currentPage = ref(route.query.p || 'profile');const store = useUserStore();