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.

Fix docker and normalize

Smaug67392e11c931874c
diff --git a/.gitattributes b/.gitattributes
index 48f8dce5..791e4a31 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -2,3 +2,6 @@ frontend/app/styles/katex/contrib/*.js linguist-vendored
frontend/app/styles/katex/contrib/*.mjs linguist-vendored
frontend/app/styles/katex/*.css linguist-vendored
frontend/app/styles/katex/**/* linguist-vendored
+
+
+*.sh text eol=lf
\ No newline at end of file
diff --git a/backend/Dockerfile b/backend/Dockerfile
index 84d7ed4f..46b6a352 100644
--- a/backend/Dockerfile
+++ b/backend/Dockerfile
@@ -1,5 +1,5 @@
# Backend Dockerfile for Alexandrie
-FROM golang:1.23-alpine AS builder
+FROM golang:1.24-alpine AS builder
WORKDIR /app
diff --git a/frontend/app/components/Notification.vue b/frontend/app/components/Notification.vue
index 76bb5cfe..3cbe25ac 100644
--- a/frontend/app/components/Notification.vue
+++ b/frontend/app/components/Notification.vue
@@ -1,131 +1,131 @@
-<template>
- <TransitionGroup name="notification-slide" tag="div" class="notification-container">
- <div v-for="notification in notifications" :key="notification.id" class="notification" :class="notification.type">
- <div class="content">
- <div class="header">
- <p class="title">{{ notification.title }}</p>
- <span class="btn" aria-label="Close" @click="close(notification.id)">&times;</span>
- </div>
- <p v-if="notification.message" class="message">{{ notification.message }}</p>
- </div>
- </div>
- </TransitionGroup>
-</template>
-
-<script setup lang="ts">
-const notifications = computed(() => [...useNotifications().notifications.value].reverse()); // Create a copy before reversing
-const close = (id: number) => useNotifications().remove(id);
-</script>
-<style scoped lang="scss">
-.notification-container {
- position: fixed;
- right: 20px;
- bottom: 20px;
- z-index: 1000;
- display: flex;
- flex-direction: column;
- gap: 15px;
-}
-
-.notification {
- position: relative;
- display: flex;
- width: 360px;
- padding: 16px 18px;
- border-radius: 8px;
- color: white;
- box-shadow: 0 2px 10px var(--shadow);
- align-items: flex-start;
- animation: fade-in 0.3s ease;
- backdrop-filter: blur(12px);
- gap: 12px;
-}
-
-.header {
- display: flex;
- width: 100%;
- align-items: center;
- justify-content: space-between;
-}
-
-p {
- margin: 0;
- font-size: 14px;
- line-height: 1.4;
-}
-
-.title {
- font-weight: 500;
-}
-
-.message {
- opacity: 0.8;
- margin-top: 4px;
-}
-
-.btn {
- position: absolute;
- top: 5px;
- right: 15px;
- border: none;
- font-size: 25px;
- color: white;
- opacity: 0.6;
- cursor: pointer;
-}
-
-/* Notification types */
-.success {
- background: $green;
-}
-
-.error {
- background: $red;
-}
-
-.warning {
- background: $yellow;
-}
-
-.info {
- background: $blue;
-}
-
-/* Transitions */
-.notification-slide-enter-active,
-.notification-slide-leave-active {
- transition: opacity 0.3s ease, transform 0.3s ease;
-}
-
-.notification-enter-from {
- opacity: 0;
- transform: translateX(100%);
-}
-
-.notification-enter-to {
- opacity: 1;
- transform: translateX(0);
-}
-
-.notification-leave-from {
- opacity: 1;
- transform: translateX(0);
-}
-
-.notification-leave-to {
- opacity: 0;
- transform: translateX(100%);
-}
-
-@keyframes fade-in {
- from {
- opacity: 0;
- transform: translateY(20px);
- }
-
- to {
- opacity: 1;
- transform: translateY(0);
- }
-}
-</style>
+<template>
+ <TransitionGroup name="notification-slide" tag="div" class="notification-container">
+ <div v-for="notification in notifications" :key="notification.id" class="notification" :class="notification.type">
+ <div class="content">
+ <div class="header">
+ <p class="title">{{ notification.title }}</p>
+ <span class="btn" aria-label="Close" @click="close(notification.id)">&times;</span>
+ </div>
+ <p v-if="notification.message" class="message">{{ notification.message }}</p>
+ </div>
+ </div>
+ </TransitionGroup>
+</template>
+
+<script setup lang="ts">
+const notifications = computed(() => [...useNotifications().notifications.value].reverse()); // Create a copy before reversing
+const close = (id: number) => useNotifications().remove(id);
+</script>
+<style scoped lang="scss">
+.notification-container {
+ position: fixed;
+ right: 20px;
+ bottom: 20px;
+ z-index: 1000;
+ display: flex;
+ flex-direction: column;
+ gap: 15px;
+}
+
+.notification {
+ position: relative;
+ display: flex;
+ width: 360px;
+ padding: 16px 18px;
+ border-radius: 8px;
+ color: white;
+ box-shadow: 0 2px 10px var(--shadow);
+ align-items: flex-start;
+ animation: fade-in 0.3s ease;
+ backdrop-filter: blur(12px);
+ gap: 12px;
+}
+
+.header {
+ display: flex;
+ width: 100%;
+ align-items: center;
+ justify-content: space-between;
+}
+
+p {
+ margin: 0;
+ font-size: 14px;
+ line-height: 1.4;
+}
+
+.title {
+ font-weight: 500;
+}
+
+.message {
+ opacity: 0.8;
+ margin-top: 4px;
+}
+
+.btn {
+ position: absolute;
+ top: 5px;
+ right: 15px;
+ border: none;
+ font-size: 25px;
+ color: white;
+ opacity: 0.6;
+ cursor: pointer;
+}
+
+/* Notification types */
+.success {
+ background: $green;
+}
+
+.error {
+ background: $red;
+}
+
+.warning {
+ background: $yellow;
+}
+
+.info {
+ background: $blue;
+}
+
+/* Transitions */
+.notification-slide-enter-active,
+.notification-slide-leave-active {
+ transition: opacity 0.3s ease, transform 0.3s ease;
+}
+
+.notification-enter-from {
+ opacity: 0;
+ transform: translateX(100%);
+}
+
+.notification-enter-to {
+ opacity: 1;
+ transform: translateX(0);
+}
+
+.notification-leave-from {
+ opacity: 1;
+ transform: translateX(0);
+}
+
+.notification-leave-to {
+ opacity: 0;
+ transform: translateX(100%);
+}
+
+@keyframes fade-in {
+ from {
+ opacity: 0;
+ transform: translateY(20px);
+ }
+
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
+</style>
diff --git a/frontend/app/middleware/authentification.global.ts b/frontend/app/middleware/authentification.global.ts
index bcd39d9b..9f0a4f4c 100644
--- a/frontend/app/middleware/authentification.global.ts
+++ b/frontend/app/middleware/authentification.global.ts
@@ -1,26 +1,26 @@
-export default defineNuxtRouteMiddleware(async (to, _) => {
- if (!import.meta.client) return;
- const user_auth = localStorage.getItem('isLoggedIn');
-
- if (to.fullPath.startsWith('/dashboard') && !user_auth) {
- return navigateTo({
- path: '/login',
- query: { redirect: to.fullPath },
- });
- }
-
- if (to.fullPath.startsWith('/dashboard/admin')) {
- const user = await useUserStore().fetch();
- if (user && user.role === 2) return;
- return navigateTo({
- path: '/dashboard',
- });
- }
-
- if (to.fullPath.startsWith('/login') || to.fullPath.startsWith('/signup')) {
- if (user_auth)
- return navigateTo({
- path: '/dashboard',
- });
- }
-});
+export default defineNuxtRouteMiddleware(async (to, _) => {
+ if (!import.meta.client) return;
+ const user_auth = localStorage.getItem('isLoggedIn');
+
+ if (to.fullPath.startsWith('/dashboard') && !user_auth) {
+ return navigateTo({
+ path: '/login',
+ query: { redirect: to.fullPath },
+ });
+ }
+
+ if (to.fullPath.startsWith('/dashboard/admin')) {
+ const user = await useUserStore().fetch();
+ if (user && user.role === 2) return;
+ return navigateTo({
+ path: '/dashboard',
+ });
+ }
+
+ if (to.fullPath.startsWith('/login') || to.fullPath.startsWith('/signup')) {
+ if (user_auth)
+ return navigateTo({
+ path: '/dashboard',
+ });
+ }
+});
diff --git a/frontend/app/pages/(public)/_components/GoodFirstIssues.vue b/frontend/app/pages/(public)/_components/GoodFirstIssues.vue
index 5e678bd0..2a3b7e89 100644
--- a/frontend/app/pages/(public)/_components/GoodFirstIssues.vue
+++ b/frontend/app/pages/(public)/_components/GoodFirstIssues.vue
@@ -1,105 +1,105 @@
-<template>
- <section class="good-first-issues">
- <h2>Good first issues</h2>
- <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 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>
- </a>
- </div>
- </section>
-</template>
-
-<script setup lang="ts">
-interface Label {
- id: number;
- name: string;
-}
-interface Issue {
- id: number;
- number: number;
- title: string;
- html_url: string;
- labels: Label[];
- created_at: string;
-}
-
-const owner = 'Smaug6739';
-const repo = 'Alexandrie';
-const issues = ref<Issue[]>([]);
-
-function visibleLabels(labels: Label[]): Label[] {
- return (labels || []).filter(l => typeof l?.name === 'string').slice(0, 3);
-}
-
-async function fetchIssues() {
- try {
- const res = await fetch(`https://api.github.com/repos/${owner}/${repo}/issues?labels=good%20first%20issue&state=open&per_page=6`);
- if (!res.ok) return;
- const data = await res.json();
- issues.value = Array.isArray(data) ? (data as Issue[]) : [];
- } catch {
- issues.value = [];
- }
-}
-
-onMounted(fetchIssues);
-</script>
-
-<style scoped lang="scss">
-.good-first-issues {
- max-width: 1100px;
- margin: 4rem auto;
- text-align: center;
-}
-
-.issues-grid {
- display: grid;
- gap: 14px;
- grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
- margin-top: 14px;
-}
-
-.issue {
- display: block;
- padding: 14px;
- border: 1px solid var(--border-color);
- border-radius: 12px;
- color: inherit;
- background: var(--bg-color);
- transition: transform 0.2s ease, box-shadow 0.2s ease;
- text-decoration: none;
-}
-
-.issue:hover {
- box-shadow: 0 10px 28px rgb(0 0 0 / 12%);
- transform: translateY(-3px);
-}
-
-.top {
- display: flex;
- flex-wrap: wrap;
- gap: 8px;
- margin-bottom: 6px;
-}
-
-.label {
- padding: 2px 8px;
- border: 1px solid var(--border-color);
- border-radius: 999px;
- font-size: 12px;
- background: var(--bg-contrast);
-}
-
-.title {
- font-weight: 600;
- margin-bottom: 6px;
-}
-
-.meta {
- font-size: 12px;
-}
-</style>
+<template>
+ <section class="good-first-issues">
+ <h2>Good first issues</h2>
+ <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 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>
+ </a>
+ </div>
+ </section>
+</template>
+
+<script setup lang="ts">
+interface Label {
+ id: number;
+ name: string;
+}
+interface Issue {
+ id: number;
+ number: number;
+ title: string;
+ html_url: string;
+ labels: Label[];
+ created_at: string;
+}
+
+const owner = 'Smaug6739';
+const repo = 'Alexandrie';
+const issues = ref<Issue[]>([]);
+
+function visibleLabels(labels: Label[]): Label[] {
+ return (labels || []).filter(l => typeof l?.name === 'string').slice(0, 3);
+}
+
+async function fetchIssues() {
+ try {
+ const res = await fetch(`https://api.github.com/repos/${owner}/${repo}/issues?labels=good%20first%20issue&state=open&per_page=6`);
+ if (!res.ok) return;
+ const data = await res.json();
+ issues.value = Array.isArray(data) ? (data as Issue[]) : [];
+ } catch {
+ issues.value = [];
+ }
+}
+
+onMounted(fetchIssues);
+</script>
+
+<style scoped lang="scss">
+.good-first-issues {
+ max-width: 1100px;
+ margin: 4rem auto;
+ text-align: center;
+}
+
+.issues-grid {
+ display: grid;
+ gap: 14px;
+ grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
+ margin-top: 14px;
+}
+
+.issue {
+ display: block;
+ padding: 14px;
+ border: 1px solid var(--border-color);
+ border-radius: 12px;
+ color: inherit;
+ background: var(--bg-color);
+ transition: transform 0.2s ease, box-shadow 0.2s ease;
+ text-decoration: none;
+}
+
+.issue:hover {
+ box-shadow: 0 10px 28px rgb(0 0 0 / 12%);
+ transform: translateY(-3px);
+}
+
+.top {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ margin-bottom: 6px;
+}
+
+.label {
+ padding: 2px 8px;
+ border: 1px solid var(--border-color);
+ border-radius: 999px;
+ font-size: 12px;
+ background: var(--bg-contrast);
+}
+
+.title {
+ font-weight: 600;
+ margin-bottom: 6px;
+}
+
+.meta {
+ font-size: 12px;
+}
+</style>
diff --git a/frontend/app/pages/(public)/_components/OSSPrinciples.vue b/frontend/app/pages/(public)/_components/OSSPrinciples.vue
index 0950353a..10a5df90 100644
--- a/frontend/app/pages/(public)/_components/OSSPrinciples.vue
+++ b/frontend/app/pages/(public)/_components/OSSPrinciples.vue
@@ -1,52 +1,52 @@
-<template>
- <section class="principles">
- <h2>Our principles</h2>
- <div class="grid">
- <div class="card">
- <h3>Open by default</h3>
- <p>Public roadmap, transparent development, community-driven decisions.</p>
- </div>
- <div class="card">
- <h3>User freedom</h3>
- <p>Self-host, no lock-in, full export and import of your notes.</p>
- </div>
- <div class="card">
- <h3>Data portability</h3>
- <p>Standard Markdown and assets, works offline, easy backups.</p>
- </div>
- <div class="card">
- <h3>Simplicity first</h3>
- <p>Fast, reliable, minimal dependencies and predictable behavior.</p>
- </div>
- </div>
- </section>
-</template>
-
-<style scoped lang="scss">
-.principles {
- max-width: 1100px;
- margin: 4rem auto;
- text-align: center;
-}
-
-.grid {
- display: grid;
- gap: 14px;
- grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
- margin-top: 14px;
-}
-
-.card {
- padding: 16px;
- border: 1px solid var(--border-color);
- border-radius: 12px;
- text-align: left;
- background: var(--bg-color);
- transition: transform 0.2s ease, box-shadow 0.2s ease;
-}
-
-.card:hover {
- box-shadow: 0 14px 32px rgb(0 0 0 / 12%);
- transform: translateY(-4px);
-}
-</style>
+<template>
+ <section class="principles">
+ <h2>Our principles</h2>
+ <div class="grid">
+ <div class="card">
+ <h3>Open by default</h3>
+ <p>Public roadmap, transparent development, community-driven decisions.</p>
+ </div>
+ <div class="card">
+ <h3>User freedom</h3>
+ <p>Self-host, no lock-in, full export and import of your notes.</p>
+ </div>
+ <div class="card">
+ <h3>Data portability</h3>
+ <p>Standard Markdown and assets, works offline, easy backups.</p>
+ </div>
+ <div class="card">
+ <h3>Simplicity first</h3>
+ <p>Fast, reliable, minimal dependencies and predictable behavior.</p>
+ </div>
+ </div>
+ </section>
+</template>
+
+<style scoped lang="scss">
+.principles {
+ max-width: 1100px;
+ margin: 4rem auto;
+ text-align: center;
+}
+
+.grid {
+ display: grid;
+ gap: 14px;
+ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
+ margin-top: 14px;
+}
+
+.card {
+ padding: 16px;
+ border: 1px solid var(--border-color);
+ border-radius: 12px;
+ text-align: left;
+ background: var(--bg-color);
+ transition: transform 0.2s ease, box-shadow 0.2s ease;
+}
+
+.card:hover {
+ box-shadow: 0 14px 32px rgb(0 0 0 / 12%);
+ transform: translateY(-4px);
+}
+</style>
diff --git a/frontend/app/pages/(public)/_components/OpenSourceStats.vue b/frontend/app/pages/(public)/_components/OpenSourceStats.vue
index d7d385a0..8736af1e 100644
--- a/frontend/app/pages/(public)/_components/OpenSourceStats.vue
+++ b/frontend/app/pages/(public)/_components/OpenSourceStats.vue
@@ -1,147 +1,147 @@
-<template>
- <section class="oss-stats">
- <h2>Open-source by design</h2>
- <p class="subtitle">Transparent, self-hostable, and built with the community</p>
- <div class="stats-grid">
- <div class="stat">
- <div class="value">{{ starsDisplay }}</div>
- <div class="label">GitHub stars</div>
- </div>
- <div class="stat">
- <div class="value">{{ contributorsDisplay }}</div>
- <div class="label">Contributors</div>
- </div>
- <div class="stat">
- <div class="value">{{ latestRelease || '-' }}</div>
- <div class="label">Latest release</div>
- </div>
- </div>
- <div class="actions">
- <a :href="`https://github.com/${owner}/${repo}`" target="_blank" class="btn github">Star on GitHub</a>
- <NuxtLink :prefetch="false" to="/dashboard" class="btn try">Try the app</NuxtLink>
- <a :href="`https://github.com/${owner}/${repo}/contribute`" target="_blank" class="btn contribute">Contribute</a>
- </div>
- </section>
-</template>
-
-<script setup lang="ts">
-const owner = 'Smaug6739';
-const repo = 'Alexandrie';
-
-const stars = ref<number | null>(null);
-const contributors = ref<number | null>(null);
-const latestRelease = ref<string>('');
-
-const starsDisplay = computed(() => (stars.value === null ? '-' : Intl.NumberFormat().format(stars.value)));
-const contributorsDisplay = computed(() => (contributors.value === null ? '-' : String(contributors.value)));
-
-async function fetchRepo() {
- try {
- const res = await fetch(`https://api.github.com/repos/${owner}/${repo}`);
- if (res.ok) {
- const data = await res.json();
- stars.value = data.stargazers_count ?? null;
- }
- } catch {
- stars.value = null;
- }
-}
-
-async function fetchContributors() {
- try {
- const res = await fetch(`https://api.github.com/repos/${owner}/${repo}/contributors?per_page=100&anon=0`);
- if (res.ok) {
- const list = await res.json();
- contributors.value = Array.isArray(list) ? list.length : null;
- }
- } catch {
- contributors.value = null;
- }
-}
-
-async function fetchLatestRelease() {
- try {
- const res = await fetch(`https://api.github.com/repos/${owner}/${repo}/releases/latest`);
- if (res.ok) {
- const rel = await res.json();
- latestRelease.value = rel.tag_name || rel.name || '';
- }
- } catch {
- latestRelease.value = '';
- }
-}
-
-onMounted(() => {
- fetchRepo();
- fetchContributors();
- fetchLatestRelease();
-});
-</script>
-
-<style scoped lang="scss">
-.oss-stats {
- max-width: 1100px;
- margin: 4rem auto;
- padding: 2rem;
- border-radius: 16px;
- text-align: center;
-}
-
-.subtitle {
- margin-top: 4px;
-}
-
-.stats-grid {
- display: grid;
- max-width: 760px;
- margin: 1.5rem auto 0.75rem;
- gap: 1rem;
- grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
-}
-
-.stat {
- padding: 16px;
- border: 1px solid var(--border-color);
- border-radius: 14px;
- background: var(--bg-contrast);
-}
-
-.value {
- font-size: 28px;
- font-weight: 700;
-}
-
-.label {
- font-size: 13px;
-}
-
-.actions {
- display: flex;
- flex-wrap: wrap;
- gap: 10px;
- justify-content: center;
- margin-top: 10px;
-}
-
-.btn {
- padding: 10px 16px;
- border: 1px solid var(--border-color);
- border-radius: 999px;
- font-weight: 600;
- text-decoration: none;
-}
-
-.btn.github {
- background: var(--bg-color);
-}
-
-.btn.try {
- border-color: var(--primary);
- color: white;
- background: var(--primary);
-}
-
-.btn.contribute {
- background: var(--bg-contrast);
-}
-</style>
+<template>
+ <section class="oss-stats">
+ <h2>Open-source by design</h2>
+ <p class="subtitle">Transparent, self-hostable, and built with the community</p>
+ <div class="stats-grid">
+ <div class="stat">
+ <div class="value">{{ starsDisplay }}</div>
+ <div class="label">GitHub stars</div>
+ </div>
+ <div class="stat">
+ <div class="value">{{ contributorsDisplay }}</div>
+ <div class="label">Contributors</div>
+ </div>
+ <div class="stat">
+ <div class="value">{{ latestRelease || '-' }}</div>
+ <div class="label">Latest release</div>
+ </div>
+ </div>
+ <div class="actions">
+ <a :href="`https://github.com/${owner}/${repo}`" target="_blank" class="btn github">Star on GitHub</a>
+ <NuxtLink :prefetch="false" to="/dashboard" class="btn try">Try the app</NuxtLink>
+ <a :href="`https://github.com/${owner}/${repo}/contribute`" target="_blank" class="btn contribute">Contribute</a>
+ </div>
+ </section>
+</template>
+
+<script setup lang="ts">
+const owner = 'Smaug6739';
+const repo = 'Alexandrie';
+
+const stars = ref<number | null>(null);
+const contributors = ref<number | null>(null);
+const latestRelease = ref<string>('');
+
+const starsDisplay = computed(() => (stars.value === null ? '-' : Intl.NumberFormat().format(stars.value)));
+const contributorsDisplay = computed(() => (contributors.value === null ? '-' : String(contributors.value)));
+
+async function fetchRepo() {
+ try {
+ const res = await fetch(`https://api.github.com/repos/${owner}/${repo}`);
+ if (res.ok) {
+ const data = await res.json();
+ stars.value = data.stargazers_count ?? null;
+ }
+ } catch {
+ stars.value = null;
+ }
+}
+
+async function fetchContributors() {
+ try {
+ const res = await fetch(`https://api.github.com/repos/${owner}/${repo}/contributors?per_page=100&anon=0`);
+ if (res.ok) {
+ const list = await res.json();
+ contributors.value = Array.isArray(list) ? list.length : null;
+ }
+ } catch {
+ contributors.value = null;
+ }
+}
+
+async function fetchLatestRelease() {
+ try {
+ const res = await fetch(`https://api.github.com/repos/${owner}/${repo}/releases/latest`);
+ if (res.ok) {
+ const rel = await res.json();
+ latestRelease.value = rel.tag_name || rel.name || '';
+ }
+ } catch {
+ latestRelease.value = '';
+ }
+}
+
+onMounted(() => {
+ fetchRepo();
+ fetchContributors();
+ fetchLatestRelease();
+});
+</script>
+
+<style scoped lang="scss">
+.oss-stats {
+ max-width: 1100px;
+ margin: 4rem auto;
+ padding: 2rem;
+ border-radius: 16px;
+ text-align: center;
+}
+
+.subtitle {
+ margin-top: 4px;
+}
+
+.stats-grid {
+ display: grid;
+ max-width: 760px;
+ margin: 1.5rem auto 0.75rem;
+ gap: 1rem;
+ grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
+}
+
+.stat {
+ padding: 16px;
+ border: 1px solid var(--border-color);
+ border-radius: 14px;
+ background: var(--bg-contrast);
+}
+
+.value {
+ font-size: 28px;
+ font-weight: 700;
+}
+
+.label {
+ font-size: 13px;
+}
+
+.actions {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 10px;
+ justify-content: center;
+ margin-top: 10px;
+}
+
+.btn {
+ padding: 10px 16px;
+ border: 1px solid var(--border-color);
+ border-radius: 999px;
+ font-weight: 600;
+ text-decoration: none;
+}
+
+.btn.github {
+ background: var(--bg-color);
+}
+
+.btn.try {
+ border-color: var(--primary);
+ color: white;
+ background: var(--primary);
+}
+
+.btn.contribute {
+ background: var(--bg-contrast);
+}
+</style>
diff --git a/frontend/app/pages/(public)/_components/SponsorWall.vue b/frontend/app/pages/(public)/_components/SponsorWall.vue
index 77d1db66..922d7a8d 100644
--- a/frontend/app/pages/(public)/_components/SponsorWall.vue
+++ b/frontend/app/pages/(public)/_components/SponsorWall.vue
@@ -1,33 +1,33 @@
-<template>
- <section class="sponsor-wall">
- <h2>Support the project</h2>
- <p class="subtitle">Help fund hosting, CI, docs and community bounties</p>
- <div class="actions">
- <a href="https://github.com/sponsors/Smaug6739" target="_blank" class="btn">Become a sponsor</a>
- </div>
- </section>
-</template>
-
-<style scoped lang="scss">
-.sponsor-wall {
- max-width: 1100px;
- margin: 4rem auto;
- padding: 2rem;
- border: 1px solid var(--border-color);
- border-radius: 16px;
- text-align: center;
- background: var(--bg-contrast);
-}
-
-.actions {
- margin-top: 12px;
-}
-
-.btn {
- padding: 10px 16px;
- border: 1px solid var(--border-color);
- border-radius: 999px;
- font-weight: 600;
- text-decoration: none;
-}
-</style>
+<template>
+ <section class="sponsor-wall">
+ <h2>Support the project</h2>
+ <p class="subtitle">Help fund hosting, CI, docs and community bounties</p>
+ <div class="actions">
+ <a href="https://github.com/sponsors/Smaug6739" target="_blank" class="btn">Become a sponsor</a>
+ </div>
+ </section>
+</template>
+
+<style scoped lang="scss">
+.sponsor-wall {
+ max-width: 1100px;
+ margin: 4rem auto;
+ padding: 2rem;
+ border: 1px solid var(--border-color);
+ border-radius: 16px;
+ text-align: center;
+ background: var(--bg-contrast);
+}
+
+.actions {
+ margin-top: 12px;
+}
+
+.btn {
+ padding: 10px 16px;
+ border: 1px solid var(--border-color);
+ border-radius: 999px;
+ font-weight: 600;
+ text-decoration: none;
+}
+</style>
diff --git a/frontend/app/pages/dashboard/index.vue b/frontend/app/pages/dashboard/index.vue
index 9cd6d23b..1331154a 100644
--- a/frontend/app/pages/dashboard/index.vue
+++ b/frontend/app/pages/dashboard/index.vue
@@ -1,7 +1,7 @@
-<template>
- <div />
-</template>
-
-<script setup lang="ts">
-await navigateTo('/dashboard/home');
-</script>
+<template>
+ <div />
+</template>
+
+<script setup lang="ts">
+await navigateTo('/dashboard/home');
+</script>
diff --git a/frontend/app/stores/db_strustures.d.ts b/frontend/app/stores/db_strustures.d.ts
index b2ec11ba..1c832f39 100644
--- a/frontend/app/stores/db_strustures.d.ts
+++ b/frontend/app/stores/db_strustures.d.ts
@@ -1,74 +1,74 @@
-export interface DB_Document {
- id: string;
- name: string;
- description?: string;
- tags?: string;
- pinned: number; // 0: Not pinned; 1: Pinned; 2: Favorite;
- thumbnail?: string;
- theme?: string;
- icon?: string;
- color?: number; // -1: Default; 0: None; 1-7: App colors
- category?: string;
- parent_id?: string | null;
- accessibility: number; // 1 Visible; 2 Draft; 3 Archived;
- content_markdown?: string;
- content_html?: string;
- author_id: string;
- created_timestamp: string;
- updated_timestamp: string;
-}
-export interface Document extends DB_Document {
- partial?: boolean;
- type: 'document';
-}
-export interface DB_Category {
- id: string;
- name: string;
- icon?: string;
- color?: number;
- order?: number;
- role: number; // 1 Category; 2 Workspace
- workspace_id?: string;
- parent_id?: string;
-}
-export interface Category extends DB_Category {
- type: 'category';
-}
-
-export interface User {
- id: string;
- username: string;
- firstname?: string;
- lastname?: string;
- role: number; // 0: User; 1: Admin;
- avatar?: string;
- password?: string;
- email: string;
- created_timestamp: string;
- updated_timestamp?: string;
-}
-
-export interface ConnectionLog {
- id: string;
- user_id: string;
- ip_adress?: string;
- user_agent?: string;
- location?: string;
- type: string;
- timestamp: string; // BIGINT converted to string
-}
-export interface DB_Ressource {
- id: string;
- filename: string;
- filesize: number;
- filetype: string;
- original_path: string;
- transformed_path: string;
- parent_id?: string;
- author_id: string;
- created_timestamp: string;
-}
-
-export interface Ressource extends DB_Ressource {
- type: 'ressource';
-}
+export interface DB_Document {
+ id: string;
+ name: string;
+ description?: string;
+ tags?: string;
+ pinned: number; // 0: Not pinned; 1: Pinned; 2: Favorite;
+ thumbnail?: string;
+ theme?: string;
+ icon?: string;
+ color?: number; // -1: Default; 0: None; 1-7: App colors
+ category?: string;
+ parent_id?: string | null;
+ accessibility: number; // 1 Visible; 2 Draft; 3 Archived;
+ content_markdown?: string;
+ content_html?: string;
+ author_id: string;
+ created_timestamp: string;
+ updated_timestamp: string;
+}
+export interface Document extends DB_Document {
+ partial?: boolean;
+ type: 'document';
+}
+export interface DB_Category {
+ id: string;
+ name: string;
+ icon?: string;
+ color?: number;
+ order?: number;
+ role: number; // 1 Category; 2 Workspace
+ workspace_id?: string;
+ parent_id?: string;
+}
+export interface Category extends DB_Category {
+ type: 'category';
+}
+
+export interface User {
+ id: string;
+ username: string;
+ firstname?: string;
+ lastname?: string;
+ role: number; // 0: User; 1: Admin;
+ avatar?: string;
+ password?: string;
+ email: string;
+ created_timestamp: string;
+ updated_timestamp?: string;
+}
+
+export interface ConnectionLog {
+ id: string;
+ user_id: string;
+ ip_adress?: string;
+ user_agent?: string;
+ location?: string;
+ type: string;
+ timestamp: string; // BIGINT converted to string
+}
+export interface DB_Ressource {
+ id: string;
+ filename: string;
+ filesize: number;
+ filetype: string;
+ original_path: string;
+ transformed_path: string;
+ parent_id?: string;
+ author_id: string;
+ created_timestamp: string;
+}
+
+export interface Ressource extends DB_Ressource {
+ type: 'ressource';
+}
diff --git a/frontend/app/styles/_variables.scss b/frontend/app/styles/_variables.scss
index 0c873ef0..54811d1b 100644
--- a/frontend/app/styles/_variables.scss
+++ b/frontend/app/styles/_variables.scss
@@ -1,163 +1,163 @@
-@use "sass:color";
-
-$blue: #007aff;
-$dark-blue: color.adjust($blue, $lightness: -10%);
-$indigo: #6610f2;
-$purple: #6f42c1;
-$pink: #ff0e6a;
-$red: #d82638;
-$red-dark: color.adjust($red, $lightness: -10%);
-$white: white;
-$orange: #fd7e14;
-$yellow: #ffc107;
-$green: #009879;
-$green-dark: color.adjust($green, $lightness: -10%);
-$grey: #ffffffd9;
-$black: #27323A;
-
-$secondary-400: #8e8d8a;
-$secondary-300: color.adjust($secondary-400, $lightness: -10%);
-$secondary-500: color.adjust($secondary-400, $lightness: 10%);
-
-@forward "./font.scss";
-
-$external-font: 'Inter', sans-serif;
-$monospace-font: monospace;
-
-// Transitions
-$transition-duration: 0.3s;
-
-
-$primary-color: #6024ec;
-$primary-light: color.adjust(#6024ec, $lightness: 10%);
-$primary-dark: color.adjust(#6024ec, $lightness: -10%);
-
-:root {
- --default: #3956e7;
- --default-bg: #dde1f8;
- --default-border: #dde1f8;
- --bg-color: #fff;
- --bg-contrast: #F1F6FD;
- --bg-contrast-2: #e2ebfd;
- --bg-ui: rgba(8, 8, 8, 0.05);
- --selection-color: #cbd4dd;
- --font-color: #3c4450;
- --font-color-dark: #3c3b3d;
- --font-color-light: #5b5967;
- --font-color-sub: #666;
- --opposite-color: #111;
- --border-color: #dfe0e5;
- --border-color-accent: #c4c6d0;
- --shadow: rgb(0 0 0 / 15%);
-
-
- // COLORS \\
- --grey: #666;
- --grey-bg: #EFEEEA;
- --blue: #007aff;
- --blue-bg: #cce0ff;
- --blue-bg-light: #f3f5fc;
- --blue-border: rgb(0 123 255 / 30%);
- --green: #009879;
- --green-bg: rgb(40 167 69 / 15%);
- --green-bg-light: rgb(40 167 69 / 5%);
- --green-border: rgb(40 167 69 / 30%);
- --red: #FF204E;
- --red-bg: rgb(220 53 69 / 15%);
- --red-bg-light: rgb(220 53 69 / 5%);
- --red-border: rgb(220 53 69 / 30%);
- --yellow: #F97300;
- --yellow-bg: rgb(255 193 7 / 15%);
- --yellow-bg-light: rgb(255 193 7 / 5%);
- --yellow-border: rgb(255 193 7 / 30%);
- --teal: #00ADB5;
- --teal-bg: rgb(23 162 184 / 20%);
- --teal-bg-light: rgb(23 162 184 / 5%);
- --teal-border: rgb(23 162 184 / 25%);
- --purple: #6024ec;
- --purple-bg: rgb(111 66 193 / 20%);
- --purple-bg-light: rgb(111 66 193 / 5%);
- --purple-border: rgb(111 66 193 / 25%);
- --pink: #ff0e6a;
- --pink-bg: rgb(255 14 106 / 20%);
- --pink-bg-light: rgb(255 14 106 / 5%);
- --pink-border: rgb(255 14 106 / 25%);
- --info-border: #2573cf;
-}
-
-.dark-mode {
- --default: #3956e7;
- --default-bg: #2b304e;
- --default-border: #8e5fff1f;
- --bg-color: #1c2127;
- --bg-contrast: #2a2f35;
- --bg-contrast-2: #363a42;
- --bg-ui: rgba(255, 255, 255, 0.05);
- --selection-color: #444850;
- --font-color: #ccc;
- --font-color-dark: #ccc;
- --font-color-light: rgb(179 179 179);
- --font-color-sub: #888;
- --border-color: rgb(255 255 255 / 10%);
- --opposite-color: #eee;
- --shadow: rgb(0 0 0 / 100%);
-
- // COLORS \\
- --grey: #bbb;
- --grey-bg: #2c2c2c;
- --blue: #339CFF;
- --blue-bg: rgb(51 156 255 / 12%);
- --blue-border: rgb(51 156 255 / 25%);
- --green: #00c19a;
- --green-bg: rgb(0 193 154 / 12%);
- --green-border: rgb(0 193 154 / 25%);
- --red: #ff4c5b;
- --red-bg: rgb(255 76 91 / 12%);
- --red-border: rgb(255 76 91 / 25%);
- --yellow: #ffae00;
- --yellow-bg: rgb(255 174 0 / 12%);
- --yellow-border: rgb(255 174 0 / 25%);
- --purple: #8e5fff;
- --purple-bg: rgb(142 95 255 / 12%);
- --purple-border: rgb(142 95 255 / 25%);
- --teal: #1cd4d4;
- --teal-bg: rgb(28 212 212 / 12%);
- --teal-border: rgb(28 212 212 / 25%);
- --pink: #ff4da6;
- --pink-bg: rgb(255 77 166 / 12%);
- --pink-border: rgb(255 77 166 / 25%);
-
-}
-
-@media print {
-
- // THEME \\
- :root {
- --bg-color: #fff;
- --bg-contrast: #F1F6FD;
- --bg-contrast-2: #ECF2FF;
- --selection-color: #e1f2ff;
- --font-color: #1f2937;
- --font-color-dark: #374151;
- --font-color-light: #6b7280;
- --border-color: rgb(0 0 0 / 10%);
- // COLORS \\
- --grey: #666;
- --grey-bg: rgb(240 240 240);
- --blue: #007aff;
- --blue-bg: #cce0ff;
- --blue-border: rgb(0 123 255 / 30%);
- --green: #009879;
- --green-bg: rgb(40 167 69 / 15%);
- --green-border: rgb(40 167 69 / 30%);
- --red: #FF204E;
- --red-bg: rgb(220 53 69 / 15%);
- --red-border: rgb(220 53 69 / 30%);
- --yellow: #F97300;
- --yellow-bg: rgb(255 193 7 / 15%);
- --yellow-border: rgb(255 193 7 / 30%);
- --teal: #00ADB5;
- --teal-bg: rgb(23 162 184 / 20%);
- --teal-border: rgb(23 162 184 / 25%);
- }
+@use "sass:color";
+
+$blue: #007aff;
+$dark-blue: color.adjust($blue, $lightness: -10%);
+$indigo: #6610f2;
+$purple: #6f42c1;
+$pink: #ff0e6a;
+$red: #d82638;
+$red-dark: color.adjust($red, $lightness: -10%);
+$white: white;
+$orange: #fd7e14;
+$yellow: #ffc107;
+$green: #009879;
+$green-dark: color.adjust($green, $lightness: -10%);
+$grey: #ffffffd9;
+$black: #27323A;
+
+$secondary-400: #8e8d8a;
+$secondary-300: color.adjust($secondary-400, $lightness: -10%);
+$secondary-500: color.adjust($secondary-400, $lightness: 10%);
+
+@forward "./font.scss";
+
+$external-font: 'Inter', sans-serif;
+$monospace-font: monospace;
+
+// Transitions
+$transition-duration: 0.3s;
+
+
+$primary-color: #6024ec;
+$primary-light: color.adjust(#6024ec, $lightness: 10%);
+$primary-dark: color.adjust(#6024ec, $lightness: -10%);
+
+:root {
+ --default: #3956e7;
+ --default-bg: #dde1f8;
+ --default-border: #dde1f8;
+ --bg-color: #fff;
+ --bg-contrast: #F1F6FD;
+ --bg-contrast-2: #e2ebfd;
+ --bg-ui: rgba(8, 8, 8, 0.05);
+ --selection-color: #cbd4dd;
+ --font-color: #3c4450;
+ --font-color-dark: #3c3b3d;
+ --font-color-light: #5b5967;
+ --font-color-sub: #666;
+ --opposite-color: #111;
+ --border-color: #dfe0e5;
+ --border-color-accent: #c4c6d0;
+ --shadow: rgb(0 0 0 / 15%);
+
+
+ // COLORS \\
+ --grey: #666;
+ --grey-bg: #EFEEEA;
+ --blue: #007aff;
+ --blue-bg: #cce0ff;
+ --blue-bg-light: #f3f5fc;
+ --blue-border: rgb(0 123 255 / 30%);
+ --green: #009879;
+ --green-bg: rgb(40 167 69 / 15%);
+ --green-bg-light: rgb(40 167 69 / 5%);
+ --green-border: rgb(40 167 69 / 30%);
+ --red: #FF204E;
+ --red-bg: rgb(220 53 69 / 15%);
+ --red-bg-light: rgb(220 53 69 / 5%);
+ --red-border: rgb(220 53 69 / 30%);
+ --yellow: #F97300;
+ --yellow-bg: rgb(255 193 7 / 15%);
+ --yellow-bg-light: rgb(255 193 7 / 5%);
+ --yellow-border: rgb(255 193 7 / 30%);
+ --teal: #00ADB5;
+ --teal-bg: rgb(23 162 184 / 20%);
+ --teal-bg-light: rgb(23 162 184 / 5%);
+ --teal-border: rgb(23 162 184 / 25%);
+ --purple: #6024ec;
+ --purple-bg: rgb(111 66 193 / 20%);
+ --purple-bg-light: rgb(111 66 193 / 5%);
+ --purple-border: rgb(111 66 193 / 25%);
+ --pink: #ff0e6a;
+ --pink-bg: rgb(255 14 106 / 20%);
+ --pink-bg-light: rgb(255 14 106 / 5%);
+ --pink-border: rgb(255 14 106 / 25%);
+ --info-border: #2573cf;
+}
+
+.dark-mode {
+ --default: #3956e7;
+ --default-bg: #2b304e;
+ --default-border: #8e5fff1f;
+ --bg-color: #1c2127;
+ --bg-contrast: #2a2f35;
+ --bg-contrast-2: #363a42;
+ --bg-ui: rgba(255, 255, 255, 0.05);
+ --selection-color: #444850;
+ --font-color: #ccc;
+ --font-color-dark: #ccc;
+ --font-color-light: rgb(179 179 179);
+ --font-color-sub: #888;
+ --border-color: rgb(255 255 255 / 10%);
+ --opposite-color: #eee;
+ --shadow: rgb(0 0 0 / 100%);
+
+ // COLORS \\
+ --grey: #bbb;
+ --grey-bg: #2c2c2c;
+ --blue: #339CFF;
+ --blue-bg: rgb(51 156 255 / 12%);
+ --blue-border: rgb(51 156 255 / 25%);
+ --green: #00c19a;
+ --green-bg: rgb(0 193 154 / 12%);
+ --green-border: rgb(0 193 154 / 25%);
+ --red: #ff4c5b;
+ --red-bg: rgb(255 76 91 / 12%);
+ --red-border: rgb(255 76 91 / 25%);
+ --yellow: #ffae00;
+ --yellow-bg: rgb(255 174 0 / 12%);
+ --yellow-border: rgb(255 174 0 / 25%);
+ --purple: #8e5fff;
+ --purple-bg: rgb(142 95 255 / 12%);
+ --purple-border: rgb(142 95 255 / 25%);
+ --teal: #1cd4d4;
+ --teal-bg: rgb(28 212 212 / 12%);
+ --teal-border: rgb(28 212 212 / 25%);
+ --pink: #ff4da6;
+ --pink-bg: rgb(255 77 166 / 12%);
+ --pink-border: rgb(255 77 166 / 25%);
+
+}
+
+@media print {
+
+ // THEME \\
+ :root {
+ --bg-color: #fff;
+ --bg-contrast: #F1F6FD;
+ --bg-contrast-2: #ECF2FF;
+ --selection-color: #e1f2ff;
+ --font-color: #1f2937;
+ --font-color-dark: #374151;
+ --font-color-light: #6b7280;
+ --border-color: rgb(0 0 0 / 10%);
+ // COLORS \\
+ --grey: #666;
+ --grey-bg: rgb(240 240 240);
+ --blue: #007aff;
+ --blue-bg: #cce0ff;
+ --blue-border: rgb(0 123 255 / 30%);
+ --green: #009879;
+ --green-bg: rgb(40 167 69 / 15%);
+ --green-border: rgb(40 167 69 / 30%);
+ --red: #FF204E;
+ --red-bg: rgb(220 53 69 / 15%);
+ --red-border: rgb(220 53 69 / 30%);
+ --yellow: #F97300;
+ --yellow-bg: rgb(255 193 7 / 15%);
+ --yellow-border: rgb(255 193 7 / 30%);
+ --teal: #00ADB5;
+ --teal-bg: rgb(23 162 184 / 20%);
+ --teal-border: rgb(23 162 184 / 25%);
+ }
}
\ No newline at end of file
diff --git a/frontend/app/styles/main.scss b/frontend/app/styles/main.scss
index 2724e75c..bf501829 100644
--- a/frontend/app/styles/main.scss
+++ b/frontend/app/styles/main.scss
@@ -1,118 +1,118 @@
-@forward "./theme.scss";
-@forward "./katex.scss";
-@forward "./markdown.scss";
-@forward "./document-theme.scss";
-@forward "./code.scss";
-@forward "./components.scss";
-@forward "./lmroman.scss";
-
-/* only needed once */
-* {
- box-sizing: border-box;
- margin: 0;
- padding: 0;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
-
-::-webkit-scrollbar {
- width: 2px;
- height: 98%;
- background: transparent;
-}
-
-::-webkit-scrollbar-thumb {
- background: var(--border-color);
-}
-
-/* set button(top and bottom of the scrollbar) */
-::-webkit-scrollbar-button {
- display: none;
-}
-
-::selection {
- background-color: var(--selection-color);
-}
-
-.modal-mask {
- position: fixed;
- top: 0;
- left: 0;
- z-index: 120;
- display: flex;
- width: 100vw;
- height: 100vh;
- background-color: rgb(0 0 0 / 50%);
-}
-
-.modal-pos {
- position: fixed;
- top: 0;
- left: 0;
- display: flex;
- width: 100vw;
- height: 100vh;
-
-}
-
-
-body {
- font-family: $external-font;
- line-height: 1.5;
- color: var(--font-color);
- background: var(--bg-color);
- transition: background-color $transition-duration;
-}
-
-body.modal-open {
- overflow: hidden;
- touch-action: none;
-}
-
-:root {
- --padding: calc((100vw - 1700px) / 2);
-}
-
-
-
-@media screen and (width >=768px) {
- .card-component {
- padding: 2rem;
- }
-}
-
-form {
- display: flex;
- flex-direction: column;
- gap: 0.5rem;
-
- .form-group {
- display: flex;
- flex-direction: column;
- }
-}
-
-@media print {
- header,
- footer,
- nav,
- aside {
- display: none !important;
- }
-
-
- .markdown-container,
- .custom-block {
- border-width: 2px;
- background-color: none !important;
- break-inside: avoid;
-
- /** :not(.custom-block-title) {
- color: black !important;
- } */
- }
-
- .no-print {
- display: none !important;
- }
+@forward "./theme.scss";
+@forward "./katex.scss";
+@forward "./markdown.scss";
+@forward "./document-theme.scss";
+@forward "./code.scss";
+@forward "./components.scss";
+@forward "./lmroman.scss";
+
+/* only needed once */
+* {
+ box-sizing: border-box;
+ margin: 0;
+ padding: 0;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+::-webkit-scrollbar {
+ width: 2px;
+ height: 98%;
+ background: transparent;
+}
+
+::-webkit-scrollbar-thumb {
+ background: var(--border-color);
+}
+
+/* set button(top and bottom of the scrollbar) */
+::-webkit-scrollbar-button {
+ display: none;
+}
+
+::selection {
+ background-color: var(--selection-color);
+}
+
+.modal-mask {
+ position: fixed;
+ top: 0;
+ left: 0;
+ z-index: 120;
+ display: flex;
+ width: 100vw;
+ height: 100vh;
+ background-color: rgb(0 0 0 / 50%);
+}
+
+.modal-pos {
+ position: fixed;
+ top: 0;
+ left: 0;
+ display: flex;
+ width: 100vw;
+ height: 100vh;
+
+}
+
+
+body {
+ font-family: $external-font;
+ line-height: 1.5;
+ color: var(--font-color);
+ background: var(--bg-color);
+ transition: background-color $transition-duration;
+}
+
+body.modal-open {
+ overflow: hidden;
+ touch-action: none;
+}
+
+:root {
+ --padding: calc((100vw - 1700px) / 2);
+}
+
+
+
+@media screen and (width >=768px) {
+ .card-component {
+ padding: 2rem;
+ }
+}
+
+form {
+ display: flex;
+ flex-direction: column;
+ gap: 0.5rem;
+
+ .form-group {
+ display: flex;
+ flex-direction: column;
+ }
+}
+
+@media print {
+ header,
+ footer,
+ nav,
+ aside {
+ display: none !important;
+ }
+
+
+ .markdown-container,
+ .custom-block {
+ border-width: 2px;
+ background-color: none !important;
+ break-inside: avoid;
+
+ /** :not(.custom-block-title) {
+ color: black !important;
+ } */
+ }
+
+ .no-print {
+ display: none !important;
+ }
}
\ No newline at end of file
diff --git a/frontend/app/styles/markdown.scss b/frontend/app/styles/markdown.scss
index 8105bd8d..82b0a9fa 100644
--- a/frontend/app/styles/markdown.scss
+++ b/frontend/app/styles/markdown.scss
@@ -1,283 +1,283 @@
-.markdown-container {
- padding: 10px;
- border-radius: 4px;
- background-color: var(--bg-contrast);
- margin-top: 10px;
-
- &:has(.blue) {
- padding: 10px;
- border-left: 4px solid var(--blue);
- }
-
- &:has(.red) {
- border-left: 4px solid var(--red);
- }
-
- &:has(.yellow) {
- border-left: 4px solid var(--yellow);
- }
-
- &:has(.teal) {
- background-color: var(--bg-contrast);
- border-left: 4px solid var(--teal);
- }
-
- .svg-icon {
- display: inline-block;
- box-sizing: border-box;
- font-size: 16px;
- color: var(--blue);
- color-scheme: dark;
- fill: var(--blue);
- margin-right: 8px;
- overflow: visible;
- overflow-wrap: break-word;
- vertical-align: text-bottom
- }
-
- .title {
- background-color: transparent;
- }
-
- .red {
- color: var(--red);
-
- .svg-icon {
- color: var(--red);
- fill: var(--red);
- }
- }
-
- .teal {
- color: var(--teal);
-
- .svg-icon {
- color: var(--teal);
- fill: var(--teal);
- }
- }
-
- .blue {
- color: var(--blue);
-
- .svg-icon {
- color: var(--blue);
- fill: var(--blue);
- }
- }
-
- .yellow {
- color: var(--yellow);
-
- .svg-icon {
- color: var(--yellow);
- fill: var(--yellow);
- }
- }
-
- p {
- margin: 0;
- }
-}
-
-.custom-block {
- padding: 10px 10px 8px;
- border: 1px solid transparent;
- border-radius: 8px;
- font-size: 14px;
- line-height: 24px;
- color: rgb(235 235 235 / 100%);
- margin-bottom: 5px;
- margin-top: 10px;
-
- p {
- margin: 0;
- padding: 0;
- }
-
- p+p {
- margin: 8px 0;
- }
-
- a {
- font-weight: 600;
- color: inherit;
- text-decoration: underline;
- }
-
- a:hover {
- opacity: 0.6;
- }
-}
-
-.custom-block-title {
- font-weight: 700;
-}
-
-.checkbox-container {
- display: flex;
- padding: 0;
- align-items: center;
- justify-content: flex-start;
-}
-
-.checkbox-container input[type="checkbox"] {
- width: unset;
- margin-right: 8px;
-}
-
-.checkbox-container span {
- vertical-align: middle;
-}
-
-.grey,
-[grey] {
- border-color: var(--grey-border);
- color: var(--grey);
- background-color: var(--grey-bg);
-
- * {
- fill: var(--grey) !important;
-
- path {
- fill: var(--grey) !important;
- }
- }
-}
-
-.blue,
-[blue] {
- border-color: var(--blue-border);
- color: var(--blue);
- background-color: var(--blue-bg);
-
- * {
- fill: var(--blue) !important;
-
- path {
- fill: var(--blue) !important;
- }
- }
-}
-
-.green,
-[green] {
- border-color: var(--green-border);
- color: var(--green);
- background-color: var(--green-bg);
-
- * {
- fill: var(--green) !important;
-
- path {
- fill: var(--green) !important;
- }
- }
-}
-
-.teal,
-[teal] {
- border-color: var(--teal-border);
- color: var(--teal);
- background-color: var(--teal-bg);
-
- * {
- fill: var(--teal) !important;
-
- path {
- fill: var(--teal) !important;
- }
- }
-}
-
-.yellow,
-[yellow] {
- border-color: var(--yellow-border);
- color: var(--yellow);
- background-color: var(--yellow-bg);
-
- * {
- fill: var(--yellow) !important;
-
- path {
- fill: var(--yellow) !important;
- }
- }
-}
-
-
-.red,
-[red] {
- border-color: var(--red-border);
- color: var(--red);
- background-color: var(--red-bg);
-
- * {
- fill: var(--red) !important;
-
- path {
- fill: var(--red) !important;
- }
- }
-}
-
-.purple,
-[purple] {
- border-color: var(--purple-border);
- color: var(--purple);
- background-color: var(--purple-bg);
-
- * {
- fill: var(--purple) !important;
-
- path {
- fill: var(--purple) !important;
- }
- }
-}
-
-.pink,
-[pink] {
- border-color: var(--pink-border);
- color: var(--pink);
- background-color: var(--pink-bg);
-
- * {
- fill: var(--pink) !important;
-
- path {
- fill: var(--pink) !important;
- }
- }
-}
-
-.primary {
- border-color: var(--primary-border);
- color: var(--primary);
- background-color: var(--primary-bg);
-
- * {
- fill: var(--primary) !important;
-
- path {
- fill: var(--primary) !important;
- }
- }
-}
-
-
-.custom-block.details {
- border-color: var(--blue-border);
- color: var(--blue);
- background-color: var(--blue-bg);
-
- summary {
- margin: 0 0 8px;
- font-weight: 700;
- cursor: pointer;
-
- &+p {
- margin: 8px 0;
- }
- }
+.markdown-container {
+ padding: 10px;
+ border-radius: 4px;
+ background-color: var(--bg-contrast);
+ margin-top: 10px;
+
+ &:has(.blue) {
+ padding: 10px;
+ border-left: 4px solid var(--blue);
+ }
+
+ &:has(.red) {
+ border-left: 4px solid var(--red);
+ }
+
+ &:has(.yellow) {
+ border-left: 4px solid var(--yellow);
+ }
+
+ &:has(.teal) {
+ background-color: var(--bg-contrast);
+ border-left: 4px solid var(--teal);
+ }
+
+ .svg-icon {
+ display: inline-block;
+ box-sizing: border-box;
+ font-size: 16px;
+ color: var(--blue);
+ color-scheme: dark;
+ fill: var(--blue);
+ margin-right: 8px;
+ overflow: visible;
+ overflow-wrap: break-word;
+ vertical-align: text-bottom
+ }
+
+ .title {
+ background-color: transparent;
+ }
+
+ .red {
+ color: var(--red);
+
+ .svg-icon {
+ color: var(--red);
+ fill: var(--red);
+ }
+ }
+
+ .teal {
+ color: var(--teal);
+
+ .svg-icon {
+ color: var(--teal);
+ fill: var(--teal);
+ }
+ }
+
+ .blue {
+ color: var(--blue);
+
+ .svg-icon {
+ color: var(--blue);
+ fill: var(--blue);
+ }
+ }
+
+ .yellow {
+ color: var(--yellow);
+
+ .svg-icon {
+ color: var(--yellow);
+ fill: var(--yellow);
+ }
+ }
+
+ p {
+ margin: 0;
+ }
+}
+
+.custom-block {
+ padding: 10px 10px 8px;
+ border: 1px solid transparent;
+ border-radius: 8px;
+ font-size: 14px;
+ line-height: 24px;
+ color: rgb(235 235 235 / 100%);
+ margin-bottom: 5px;
+ margin-top: 10px;
+
+ p {
+ margin: 0;
+ padding: 0;
+ }
+
+ p+p {
+ margin: 8px 0;
+ }
+
+ a {
+ font-weight: 600;
+ color: inherit;
+ text-decoration: underline;
+ }
+
+ a:hover {
+ opacity: 0.6;
+ }
+}
+
+.custom-block-title {
+ font-weight: 700;
+}
+
+.checkbox-container {
+ display: flex;
+ padding: 0;
+ align-items: center;
+ justify-content: flex-start;
+}
+
+.checkbox-container input[type="checkbox"] {
+ width: unset;
+ margin-right: 8px;
+}
+
+.checkbox-container span {
+ vertical-align: middle;
+}
+
+.grey,
+[grey] {
+ border-color: var(--grey-border);
+ color: var(--grey);
+ background-color: var(--grey-bg);
+
+ * {
+ fill: var(--grey) !important;
+
+ path {
+ fill: var(--grey) !important;
+ }
+ }
+}
+
+.blue,
+[blue] {
+ border-color: var(--blue-border);
+ color: var(--blue);
+ background-color: var(--blue-bg);
+
+ * {
+ fill: var(--blue) !important;
+
+ path {
+ fill: var(--blue) !important;
+ }
+ }
+}
+
+.green,
+[green] {
+ border-color: var(--green-border);
+ color: var(--green);
+ background-color: var(--green-bg);
+
+ * {
+ fill: var(--green) !important;
+
+ path {
+ fill: var(--green) !important;
+ }
+ }
+}
+
+.teal,
+[teal] {
+ border-color: var(--teal-border);
+ color: var(--teal);
+ background-color: var(--teal-bg);
+
+ * {
+ fill: var(--teal) !important;
+
+ path {
+ fill: var(--teal) !important;
+ }
+ }
+}
+
+.yellow,
+[yellow] {
+ border-color: var(--yellow-border);
+ color: var(--yellow);
+ background-color: var(--yellow-bg);
+
+ * {
+ fill: var(--yellow) !important;
+
+ path {
+ fill: var(--yellow) !important;
+ }
+ }
+}
+
+
+.red,
+[red] {
+ border-color: var(--red-border);
+ color: var(--red);
+ background-color: var(--red-bg);
+
+ * {
+ fill: var(--red) !important;
+
+ path {
+ fill: var(--red) !important;
+ }
+ }
+}
+
+.purple,
+[purple] {
+ border-color: var(--purple-border);
+ color: var(--purple);
+ background-color: var(--purple-bg);
+
+ * {
+ fill: var(--purple) !important;
+
+ path {
+ fill: var(--purple) !important;
+ }
+ }
+}
+
+.pink,
+[pink] {
+ border-color: var(--pink-border);
+ color: var(--pink);
+ background-color: var(--pink-bg);
+
+ * {
+ fill: var(--pink) !important;
+
+ path {
+ fill: var(--pink) !important;
+ }
+ }
+}
+
+.primary {
+ border-color: var(--primary-border);
+ color: var(--primary);
+ background-color: var(--primary-bg);
+
+ * {
+ fill: var(--primary) !important;
+
+ path {
+ fill: var(--primary) !important;
+ }
+ }
+}
+
+
+.custom-block.details {
+ border-color: var(--blue-border);
+ color: var(--blue);
+ background-color: var(--blue-bg);
+
+ summary {
+ margin: 0 0 8px;
+ font-weight: 700;
+ cursor: pointer;
+
+ &+p {
+ margin: 8px 0;
+ }
+ }
}
\ No newline at end of file
diff --git a/frontend/app/styles/theme.scss b/frontend/app/styles/theme.scss
index 41b2799f..25bce8c6 100644
--- a/frontend/app/styles/theme.scss
+++ b/frontend/app/styles/theme.scss
@@ -1,215 +1,215 @@
-@use "./_variables.scss" as *;
-
-a {
- color: var(--font-color);
- text-decoration: none;
-
- &:hover {
- cursor: pointer;
- }
-}
-
-blockquote {
- padding: 0 15px;
- border-radius: 4px;
- border-left: 4px solid var(--primary);
-
- > :first-child {
- margin-top: 0;
- }
-
- > :last-child {
- margin-bottom: 0;
- }
-}
-
-button {
- padding: 8px 16px;
- border: none;
- border-radius: 6px;
- color: var(--font-color);
- background: transparent;
- cursor: pointer;
-}
-
-
-fieldset {
- margin: auto;
- padding: 10px;
- margin-top: 3% !important;
-}
-
-h1,
-h2 {
- font-weight: 600;
- line-height: 1.2;
- padding-bottom: 10px;
-}
-
-h3,
-h4,
-h5,
-h6 {
- margin: 10px 0;
- font-weight: 600;
-}
-
-h1 {
- margin: 15px 0;
- font-size: 1.7rem;
-}
-
-h2 {
- margin: 25px 0 15px;
- font-size: 1.5em;
- border-bottom: 1px solid var(--border-color);
-}
-
-h3 {
- font-size: 1.2em;
-}
-
-h4 {
- font-size: 1.15em;
-}
-
-h5 {
- font-size: 1em;
-}
-
-h6 {
- font-size: 1em;
-}
-
-hr {
- width: 98%;
- height: 1px;
- margin: 0 auto;
- border: none;
- color: var(--border-color);
- background-color: var(--border-color);
-}
-
-img {
- width: auto;
- max-width: 100%;
- height: auto;
- max-height: 400px;
- margin-bottom: 5px;
-}
-
-input,
-select,
-textarea {
- margin: 0;
- padding: 8px 10px;
- border: 1px solid var(--border-color);
- border-radius: 8px;
- font-family: Inter;
- font-size: 1rem;
- color: var(--font-color);
- background: var(--bg-color);
-
- &:disabled {
- opacity: 0.8;
- cursor: not-allowed;
- }
-
- &:focus {
- outline: 1px solid var(--primary);
- }
-}
-
-input {
- display: block;
- width: 100%;
-}
-
-input:-webkit-autofill,
-input:-webkit-autofill:hover,
-input:-webkit-autofill:focus {
- background: var(--border-color);
- box-shadow: 0 0 0 1000px var(--border-color) inset !important;
-}
-
-kbd {
- padding: 2px 6px;
- border-radius: 4px;
- font-family: monospace;
- font-weight: 600;
- background: var(--border-color);
-}
-
-label {
- display: block;
- padding: 4px 2px;
- font-weight: 500;
-}
-
-mark {
- padding: 0 2px;
- border-radius: 5px;
- background-color: var(--yellow);
-}
-
-option {
- padding: 8px 12px;
- font-family: $external-font;
-
- &:hover {
- box-shadow: 0 2px 10px var(--shadow);
- }
-}
-
-p {
- margin: 12px 0;
-}
-
-select {
- padding: 5px 10px;
- border: 1px solid var(--border-color);
- border-radius: 5px;
- font-family: $external-font;
- font-size: 15px;
-}
-
-table {
- position: relative;
- display: block; // Add this line to make the table scrollable
- max-width: 100%;
- font-size: 0.9em;
- border-collapse: collapse;
- overflow-x: auto;
-
- thead {
- border-bottom: 1px solid var(--border-color);
- }
-
- th,
- td {
- padding: 10px 15px;
- }
-
- tbody tr {
- border-top: 1px solid var(--border-color);
- }
-
- tbody tr:nth-of-type(even) {
- background-color: var(--bg-contrast);
- }
-
- @media (width <=600px) {
- min-width: 300px;
- zoom: 0.9;
- }
-}
-
-textarea {
- font-family: $monospace-font;
- resize: none;
-}
-
-ul,
-ol {
- padding-left: 22px;
+@use "./_variables.scss" as *;
+
+a {
+ color: var(--font-color);
+ text-decoration: none;
+
+ &:hover {
+ cursor: pointer;
+ }
+}
+
+blockquote {
+ padding: 0 15px;
+ border-radius: 4px;
+ border-left: 4px solid var(--primary);
+
+ > :first-child {
+ margin-top: 0;
+ }
+
+ > :last-child {
+ margin-bottom: 0;
+ }
+}
+
+button {
+ padding: 8px 16px;
+ border: none;
+ border-radius: 6px;
+ color: var(--font-color);
+ background: transparent;
+ cursor: pointer;
+}
+
+
+fieldset {
+ margin: auto;
+ padding: 10px;
+ margin-top: 3% !important;
+}
+
+h1,
+h2 {
+ font-weight: 600;
+ line-height: 1.2;
+ padding-bottom: 10px;
+}
+
+h3,
+h4,
+h5,
+h6 {
+ margin: 10px 0;
+ font-weight: 600;
+}
+
+h1 {
+ margin: 15px 0;
+ font-size: 1.7rem;
+}
+
+h2 {
+ margin: 25px 0 15px;
+ font-size: 1.5em;
+ border-bottom: 1px solid var(--border-color);
+}
+
+h3 {
+ font-size: 1.2em;
+}
+
+h4 {
+ font-size: 1.15em;
+}
+
+h5 {
+ font-size: 1em;
+}
+
+h6 {
+ font-size: 1em;
+}
+
+hr {
+ width: 98%;
+ height: 1px;
+ margin: 0 auto;
+ border: none;
+ color: var(--border-color);
+ background-color: var(--border-color);
+}
+
+img {
+ width: auto;
+ max-width: 100%;
+ height: auto;
+ max-height: 400px;
+ margin-bottom: 5px;
+}
+
+input,
+select,
+textarea {
+ margin: 0;
+ padding: 8px 10px;
+ border: 1px solid var(--border-color);
+ border-radius: 8px;
+ font-family: Inter;
+ font-size: 1rem;
+ color: var(--font-color);
+ background: var(--bg-color);
+
+ &:disabled {
+ opacity: 0.8;
+ cursor: not-allowed;
+ }
+
+ &:focus {
+ outline: 1px solid var(--primary);
+ }
+}
+
+input {
+ display: block;
+ width: 100%;
+}
+
+input:-webkit-autofill,
+input:-webkit-autofill:hover,
+input:-webkit-autofill:focus {
+ background: var(--border-color);
+ box-shadow: 0 0 0 1000px var(--border-color) inset !important;
+}
+
+kbd {
+ padding: 2px 6px;
+ border-radius: 4px;
+ font-family: monospace;
+ font-weight: 600;
+ background: var(--border-color);
+}
+
+label {
+ display: block;
+ padding: 4px 2px;
+ font-weight: 500;
+}
+
+mark {
+ padding: 0 2px;
+ border-radius: 5px;
+ background-color: var(--yellow);
+}
+
+option {
+ padding: 8px 12px;
+ font-family: $external-font;
+
+ &:hover {
+ box-shadow: 0 2px 10px var(--shadow);
+ }
+}
+
+p {
+ margin: 12px 0;
+}
+
+select {
+ padding: 5px 10px;
+ border: 1px solid var(--border-color);
+ border-radius: 5px;
+ font-family: $external-font;
+ font-size: 15px;
+}
+
+table {
+ position: relative;
+ display: block; // Add this line to make the table scrollable
+ max-width: 100%;
+ font-size: 0.9em;
+ border-collapse: collapse;
+ overflow-x: auto;
+
+ thead {
+ border-bottom: 1px solid var(--border-color);
+ }
+
+ th,
+ td {
+ padding: 10px 15px;
+ }
+
+ tbody tr {
+ border-top: 1px solid var(--border-color);
+ }
+
+ tbody tr:nth-of-type(even) {
+ background-color: var(--bg-contrast);
+ }
+
+ @media (width <=600px) {
+ min-width: 300px;
+ zoom: 0.9;
+ }
+}
+
+textarea {
+ font-family: $monospace-font;
+ resize: none;
+}
+
+ul,
+ol {
+ padding-left: 22px;
}
\ No newline at end of file