📚 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
feat: mark new & beta items for next version & add Support component
Smaug6739368a6417229c
diff --git a/frontend/app/components/AppPreferenceInputSection.vue b/frontend/app/components/AppPreferenceInputSection.vueindex b0ca9b10..6da2a176 100644--- a/frontend/app/components/AppPreferenceInputSection.vue+++ b/frontend/app/components/AppPreferenceInputSection.vue@@ -4,7 +4,9 @@<div v-for="opt in section.options" :key="opt.key" :class="['form-group', opt.type === 'textarea' ? 'form-group--vertical' : '']"><div>- <label>{{ opt.label }}</label>+ <label>+ {{ opt.label }} <tag v-if="opt.tag" blue>{{ opt.tag }}</tag>+ </label><p class="description">{{ opt.description }}</p></div>diff --git a/frontend/app/components/CommandCenter/index.vue b/frontend/app/components/CommandCenter/index.vueindex 6d86ca8c..6448ac2b 100644--- a/frontend/app/components/CommandCenter/index.vue+++ b/frontend/app/components/CommandCenter/index.vue@@ -11,7 +11,7 @@class="search-input"@input="handleSearchInput"@keydown="handleKeydown"- /><tag orange class="tag">Beta</tag>+ /></div></div>diff --git a/frontend/app/components/Support.vue b/frontend/app/components/Support.vuenew file mode 100644index 00000000..a3ef6a19--- /dev/null+++ b/frontend/app/components/Support.vue@@ -0,0 +1,291 @@+<template>+ <section class="support-section">+ <div class="support-container">+ <span v-if="closeable" class="close-btn"><AppBtnIcon icon="close" size="sm" @click="handleClose" /></span>++ <div class="support-letter">+ <div class="letter-top-header">+ <div class="dev-badge">+ <span class="dot"></span>+ <span>A word from the creator</span>+ </div>+ </div>++ <h2>Alexandrie is free, and it will stay that way.</h2>++ <div class="letter-content">+ <p>+ Alexandrie didn't start as a business. It started as a tool I wanted for myself. Years later, I'm still maintaining and improving it in my spare+ time, and I'm happy to share it with anyone who finds it useful.+ </p>+ <p>+ The application doesn't track you, doesn't serve ads, and is fully open-source. However, keeping the live platform running involves hosting and+ infrastructure costs. If Alexandrie adds value to your daily workflow, consider supporting its independence. Even the smallest donation helps cover+ the servers for months.+ </p>+ </div>++ <div class="letter-footer">+ <span class="signature">— Smaug</span>+ </div>++ <div v-if="closeable" class="banner-actions">+ <AppButton type="primary" size="sm" @click="handleClose">I understand, thank you!</AppButton>+ </div>+ </div>++ <div class="support-cards">+ <a href="https://github.com/Smaug6739/Alexandrie" target="_blank" class="action-card star-card">+ <div class="card-icon">+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">+ <polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon>+ </svg>+ </div>+ <div class="card-text">+ <h3>Star on GitHub</h3>+ <p>Show your support and help other developers discover the project. It costs nothing but means everything.</p>+ </div>+ <span class="card-arrow">→</span>+ </a>++ <a href="https://github.com/sponsors/Smaug6739" target="_blank" class="action-card donate-card">+ <div class="card-icon">+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">+ <path+ d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"+ />+ </svg>+ </div>+ <div class="card-text">+ <h3>Support financially</h3>+ <p>Help cover hosting, backup infrastructure, and development costs to keep Alexandrie online and independent.</p>+ </div>+ <span class="card-arrow">→</span>+ </a>+ </div>+ </div>+ </section>+</template>++<script setup lang="ts">+withDefaults(+ defineProps<{+ closeable?: boolean;+ }>(),+ {+ closeable: false,+ },+);++const emit = defineEmits<{+ (e: 'close'): void;+}>();++function handleClose() {+ emit('close');+}+</script>++<style scoped lang="scss">+.support-section {+ max-width: 1400px;+ margin: 4rem auto;+ transition:+ opacity $transition-fast ease,+ transform $transition-fast ease,+ max-height 0.4s ease,+ margin 0.4s ease,+ padding 0.4s ease;+}++.support-container {+ position: relative;+ display: grid;+ grid-template-columns: 1.2fr 1fr;+ gap: 4rem;+ padding: 3.5rem;+ border: 1px solid var(--border);+ border-radius: var(--radius-xl);+ background: linear-gradient(135deg, var(--surface-base), var(--surface-raised));+ align-items: center;+}++.close-btn {+ position: absolute;+ top: 2rem;+ right: 2rem;+ z-index: 2;+}++.letter-top-header {+ display: flex;+ justify-content: space-between;+ align-items: center;+ width: 100%;+}++// Section Message (Gauche)+.support-letter {+ display: flex;+ flex-direction: column;+ gap: 1.5rem;++ .dev-badge {+ display: inline-flex;+ align-items: center;+ gap: 8px;+ width: fit-content;+ padding: 6px 12px;+ border: 1px solid var(--border);+ border-radius: 999px;+ font-size: 12px;+ font-weight: 600;+ color: var(--text-secondary);+ background: var(--surface-base);++ .dot {+ width: 6px;+ height: 6px;+ border-radius: 50%;+ background: var(--primary);+ }+ }++ h2 {+ font-size: clamp(1.75rem, 3vw, 2.25rem);+ font-weight: 800;+ letter-spacing: -0.02em;+ line-height: 1.3;+ color: var(--text-body);+ }++ .letter-content {+ display: flex;+ flex-direction: column;+ gap: 1rem;++ p {+ font-size: 1rem;+ line-height: 1.6;+ color: var(--text-secondary);+ }+ }++ .letter-footer {+ margin-top: 0.5rem;++ .signature {+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;+ font-weight: 600;+ color: var(--primary);+ }+ }++ .banner-actions {+ display: flex;+ justify-content: flex-start;+ margin-top: 0.5rem;+ }+}++// Section Cartes d'actions (Droite)+.support-cards {+ display: flex;+ flex-direction: column;+ gap: 1.25rem;+}++.action-card {+ display: flex;+ align-items: flex-start;+ gap: 1.25rem;+ padding: 1.5rem;+ border: 1px solid var(--border);+ border-radius: 16px;+ background: var(--surface-base);+ text-decoration: none;+ transition:+ border-color $transition-medium ease,+ transform $transition-medium ease,+ box-shadow $transition-medium ease;++ &:hover {+ border-color: var(--primary);+ transform: translateY(-2px);+ box-shadow: var(--shadow-md);++ .card-arrow {+ transform: translateX(4px);+ color: var(--primary);+ }+ }++ .card-icon {+ display: flex;+ align-items: center;+ justify-content: center;+ width: 44px;+ height: 44px;+ border-radius: var(--radius-lg);+ background: var(--surface-raised);+ flex-shrink: 0;+ }++ .card-text {+ flex: 1;++ h3 {+ font-size: 1.1rem;+ font-weight: 700;+ color: var(--text-body);+ margin-bottom: 0.25rem;+ }++ p {+ font-size: 0.85rem;+ line-height: 1.5;+ color: var(--text-secondary);+ }+ }++ .card-arrow {+ font-size: 1.2rem;+ color: var(--text-secondary);+ transition:+ transform $transition-fast ease,+ color $transition-fast ease;+ align-self: center;+ }+}++.star-card .card-icon {+ color: #fbbf24;+}+.donate-card .card-icon {+ color: #ec4899;+}++@media screen and (width <= 1024px) {+ .support-container {+ grid-template-columns: 1fr;+ gap: 3rem;+ padding: 2.5rem;+ }+}++@media screen and (width <= 640px) {+ .support-section {+ padding: 0 1rem;+ }+ .support-container {+ padding: 2rem 1.25rem;+ }+ .action-card {+ padding: 1.25rem;+ gap: 1rem;+ .card-arrow {+ display: none;+ }+ }+}+</style>diff --git a/frontend/app/components/SupportDashboard.vue b/frontend/app/components/SupportDashboard.vuenew file mode 100644index 00000000..ef98bb73--- /dev/null+++ b/frontend/app/components/SupportDashboard.vue@@ -0,0 +1,26 @@+<script setup lang="ts">+const markStore = useMark();++const RELEASE_MARK_ID: MarkId = 'support';++const isVisible = ref(false);++onMounted(() => {+ if (markStore.hasMark(RELEASE_MARK_ID)) {+ isVisible.value = true;+ }+});++function handleClose() {+ isVisible.value = false;+ setTimeout(() => {+ markStore.dismissMark(RELEASE_MARK_ID);+ }, 400);+}+</script>++<template>+ <div v-if="isVisible" class="welcome-banner">+ <Support closeable @close="handleClose" />+ </div>+</template>diff --git a/frontend/app/components/Welcome.vue b/frontend/app/components/Welcome.vueindex f2bca03b..53025d52 100644--- a/frontend/app/components/Welcome.vue+++ b/frontend/app/components/Welcome.vue@@ -1,7 +1,6 @@<script setup lang="ts">const markStore = useMark();-// L'ID de la marque globale de cette release (à ajouter dans ton ACTIVE_MARK_IDS)const RELEASE_MARK_ID: MarkId = 'v8.10.0';const isVisible = ref(false);@@ -48,7 +47,13 @@ function handleClose() {<p>Organize your activities with others. Manage permissions, access rights and collaborate</p></div></div>-+ <div class="item">+ <div class="indicator"></div>+ <div class="text">+ <h3>Offline mode</h3>+ <p>Install PWA and create, read and edit documents offline.</p>+ </div>+ </div><div class="item"><div class="indicator"></div><div class="text">@@ -82,11 +87,11 @@ function handleClose() {.welcome-banner {position: relative;overflow: hidden;- margin-bottom: 1.5rem;+ margin-bottom: 1rem;border: 2px solid var(--border);border-radius: var(--radius-xl);background: linear-gradient(135deg, var(--surface-base), var(--surface-raised));- margin-top: 1.5rem;+ margin-top: 1rem;transition:opacity $transition-fast ease,transform $transition-fast ease,diff --git a/frontend/app/composables/useMark.ts b/frontend/app/composables/useMark.tsindex 16e24ef3..b00f69b8 100644--- a/frontend/app/composables/useMark.ts+++ b/frontend/app/composables/useMark.ts@@ -1,4 +1,4 @@-const ACTIVE_MARK_IDS = ['security-2fa', 'new-imports', 'teams', 'v8.10.0', 'workspace-sharing'] as const;+const ACTIVE_MARK_IDS = ['support', 'security-2fa', 'tabs', 'new-imports', 'teams', 'v8.10.0', 'workspace-sharing'] as const;export type MarkId = (typeof ACTIVE_MARK_IDS)[number];@@ -21,7 +21,6 @@ async function runGarbageCollector(preferencesStore: ReturnType<typeof usePreferexport function useMark() {const preferencesStore = usePreferencesStore();- // Lancement du GC uniquement côté client au montageif (import.meta.client) {onMounted(() => {runGarbageCollector(preferencesStore);diff --git a/frontend/app/pages/(public)/index.vue b/frontend/app/pages/(public)/index.vueindex a4aa114a..d1763984 100644--- a/frontend/app/pages/(public)/index.vue+++ b/frontend/app/pages/(public)/index.vue@@ -23,8 +23,8 @@</div><img src="/screenshots/mock/0.png" class="hero-image" alt="App preview" /></section>-<BentoFeatures class="reveal" />+ <Support /><FeaturesShowcase class="reveal" /><SelfHostSteps class="reveal" /><OpenSourceStats class="reveal" />diff --git a/frontend/app/pages/dashboard/home.vue b/frontend/app/pages/dashboard/home.vueindex 44b9094f..f005d173 100644--- a/frontend/app/pages/dashboard/home.vue+++ b/frontend/app/pages/dashboard/home.vue@@ -47,6 +47,7 @@</section><Welcome />+ <SupportDashboard /><div class="sections"><!-- Section "Continue Working" -->@@ -218,10 +219,6 @@ const openJoinModal = () => modals.add(new Modal(shallowRef(NodeJoin), { size: '<style scoped lang="scss">.home-top {padding: 3rem 1.5rem;- border-radius: var(--radius-xl);- background:- radial-gradient(circle at top right, color-mix(in srgb, var(--primary) 18%, transparent), transparent 28%),- linear-gradient(135deg, var(--surface-base), var(--surface-raised));margin-top: 0.5rem;}diff --git a/frontend/app/pages/dashboard/import/index.vue b/frontend/app/pages/dashboard/import/index.vueindex e3364d31..c1044dd0 100644--- a/frontend/app/pages/dashboard/import/index.vue+++ b/frontend/app/pages/dashboard/import/index.vue@@ -1,6 +1,6 @@<template><div class="import-page page-card">- <Teleport to="#navbar-title">{{ t('import.meta.title') }} <tag class="orange">Beta</tag></Teleport>+ <Teleport to="#navbar-title">{{ t('import.meta.title') }}</Teleport><p class="page-subtitle">{{ t('import.meta.description') }}diff --git a/frontend/app/pages/dashboard/settings/_views/apparence.vue b/frontend/app/pages/dashboard/settings/_views/apparence.vueindex 21e9b6d3..260e99bf 100644--- a/frontend/app/pages/dashboard/settings/_views/apparence.vue+++ b/frontend/app/pages/dashboard/settings/_views/apparence.vue@@ -58,7 +58,6 @@ const options = computed(description: t('settings.appearance.interfaceStyleDesc'),type: 'radio' as const,key: 'style' as const,- tag: t('settings.nav.new'),choices: [{ label: t('settings.appearance.styleDefault'), id: 'default' },{ label: t('settings.appearance.styleGlassmorphism'), id: 'glassmorphism' },@@ -69,6 +68,7 @@ const options = computed(description: t('settings.appearance.displayTabsDesc'),type: 'toggle' as const,key: 'displayTabs' as const,+ tag: t('settings.nav.new'),},],},diff --git a/frontend/app/pages/dashboard/settings/index.vue b/frontend/app/pages/dashboard/settings/index.vueindex 1550f899..a273c463 100644--- a/frontend/app/pages/dashboard/settings/index.vue+++ b/frontend/app/pages/dashboard/settings/index.vue@@ -106,7 +106,7 @@ const navSections = computed<NavSection[]>(() => [title: t('settings.nav.general'),items: [{ key: 'profile', label: t('settings.pages.profile'), icon: 'profil' },- { key: 'apparence', label: t('settings.pages.appearance'), icon: 'brush' },+ { key: 'apparence', label: t('settings.pages.appearance'), icon: 'brush', newId: 'tabs' },{ key: 'security', label: t('settings.pages.security'), icon: 'security', newId: 'security-2fa' },],},@@ -193,7 +193,7 @@ watchEffect(() => {a {display: flex;position: relative;- margin: 0.4rem 0.2rem;+ margin: 0.37rem 0.2rem;padding: 0.05rem 0.4rem;border-radius: var(--radius-sm);color: inherit;diff --git a/frontend/app/stores/preferences/types.ts b/frontend/app/stores/preferences/types.tsindex 25c683a0..f710a82c 100644--- a/frontend/app/stores/preferences/types.ts+++ b/frontend/app/stores/preferences/types.ts@@ -2,6 +2,7 @@ type OptionType = 'toggle' | 'select' | 'color' | 'radio' | 'groupCheckbox' | 'ainterface BaseOption<K extends PreferenceKey = PreferenceKey> {label: string;description?: string;+ tag?: string;type: OptionType;key: K;onChange?: (value: Preferences[K]) => void;