π 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 files via upload
louloudev590838d08a379e
diff --git a/frontend/app/pages/(public)/_components/ContributorsMarquee.vue b/frontend/app/pages/(public)/_components/ContributorsMarquee.vuenew file mode 100644index 00000000..1a9bdb9c--- /dev/null+++ b/frontend/app/pages/(public)/_components/ContributorsMarquee.vue@@ -0,0 +1,66 @@+<template>+ <section class="contributors">+ <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" />+ <div class="profile">+ <div class="name">{{ c.login }}</div>+ <div class="sub">GitHub</div>+ </div>+ </a>+ <a v-for="c in displayAvatars" :key="'clone-' + c.__key" class="avatar" :href="c.html_url" target="_blank" :title="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>+ </div>+ </a>+ </div>+ </section>+</template>++<script setup lang="ts">+interface Contributor { id: number; login: string; avatar_url: string; html_url: string }+const avatars = ref<Contributor[]>([])+const displayAvatars = computed(() => {+ const src = avatars.value+ if (!src || src.length === 0) return [] as any[]+ const min = 14+ const expanded: any[] = []+ let safety = 0+ while (expanded.length < min && safety < 10) {+ expanded.push(...src)+ safety+++ }+ return expanded.slice(0, Math.max(min, src.length)).map((c, idx) => ({ ...c, __key: `${c.id}-${idx}` }))+})++async function fetchContributors() {+ try {+ const res = await fetch(`https://api.github.com/repos/Smaug6739/Alexandrie/contributors?per_page=100`)+ if (!res.ok) return+ const data = await res.json()+ avatars.value = Array.isArray(data) ? data as Contributor[] : []+ } catch {}+}++onMounted(fetchContributors)+</script>++<style scoped lang="scss">+.contributors { text-align: center; margin: 4rem auto; max-width: 1100px }+.strip { display: flex; gap: 12px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); padding: 8px 0; animation: marquee 22s linear infinite; will-change: transform }+.strip:hover { animation-play-state: paused }+.avatar { position: relative; width: 48px; height: 48px; border-radius: 999px; overflow: hidden; display: block; background: var(--bg-color); transition: transform .15s ease, box-shadow .15s ease }+.avatar::before { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 1px var(--border-color) inset }+.avatar:hover { transform: translateY(-2px) }+.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit }+.profile { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) translateY(0); background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 999px; padding: 6px 10px; white-space: nowrap; box-shadow: 0 10px 24px rgba(0,0,0,.18); opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease }+.avatar:hover .profile { opacity: 1; transform: translateX(-50%) translateY(-2px) }+.name { font-weight: 700 }+.sub { font-size: 12px; color: var(--text-muted) }+.hint { color: var(--text-muted); font-size: 13px; margin-top: 6px }+@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }+</style>+diff --git a/frontend/app/pages/(public)/_components/GoodFirstIssues.vue b/frontend/app/pages/(public)/_components/GoodFirstIssues.vuenew file mode 100644index 00000000..5870bda6--- /dev/null+++ b/frontend/app/pages/(public)/_components/GoodFirstIssues.vue@@ -0,0 +1,50 @@+<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 class="label" v-for="label in visibleLabels(issue.labels)" :key="label.id">{{ 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: any[]): 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 {}+}++onMounted(fetchIssues)+</script>++<style scoped lang="scss">+.good-first-issues { margin: 4rem auto; text-align: center; max-width: 1100px }+.issues-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 14px }+.issue { display: block; border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; text-decoration: none; color: inherit; background: var(--bg-color); transition: transform .2s ease, box-shadow .2s ease }+.issue:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.12) }+.top { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px }+.label { background: var(--bg-contrast); border: 1px solid var(--border-color); border-radius: 999px; padding: 2px 8px; font-size: 12px }+.title { font-weight: 600; margin-bottom: 6px }+.meta { font-size: 12px; color: var(--text-muted) }+</style>+diff --git a/frontend/app/pages/(public)/_components/OSSPrinciples.vue b/frontend/app/pages/(public)/_components/OSSPrinciples.vuenew file mode 100644index 00000000..9077fa69--- /dev/null+++ b/frontend/app/pages/(public)/_components/OSSPrinciples.vue@@ -0,0 +1,31 @@+<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 { text-align: center; margin: 4rem auto; max-width: 1100px }+.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 14px }+.card { border: 1px solid var(--border-color); background: var(--bg-color); border-radius: 12px; padding: 16px; text-align: left; transition: transform .2s ease, box-shadow .2s ease }+.card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,0,0,.12) }+</style>+diff --git a/frontend/app/pages/(public)/_components/OpenSourceStats.vue b/frontend/app/pages/(public)/_components/OpenSourceStats.vuenew file mode 100644index 00000000..68dfabf3--- /dev/null+++ b/frontend/app/pages/(public)/_components/OpenSourceStats.vue@@ -0,0 +1,128 @@+<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 {}+}++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 {}+}++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 {}+}++onMounted(() => {+ fetchRepo()+ fetchContributors()+ fetchLatestRelease()+})+</script>++<style scoped lang="scss">+.oss-stats {+ text-align: center;+ margin: 4rem auto;+ max-width: 1100px;+ padding: 2rem;+ background: var(--bg-contrast);+ border: 1px solid var(--border-color);+ border-radius: 16px;+}+.subtitle {+ color: var(--text-muted);+ margin-top: 4px;+}+.stats-grid {+ display: grid;+ grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));+ gap: 1rem;+ margin: 1.5rem auto 0.75rem;+ max-width: 760px;+}+.stat {+ background: var(--bg-contrast);+ border: 1px solid var(--border-color);+ border-radius: 14px;+ padding: 16px;+}+.value {+ font-size: 28px;+ font-weight: 700;+}+.label {+ font-size: 13px;+ color: var(--text-muted);+}+.actions {+ display: flex;+ justify-content: center;+ gap: 10px;+ margin-top: 10px;+ flex-wrap: wrap;+}+.btn {+ padding: 10px 16px;+ border-radius: 999px;+ text-decoration: none;+ font-weight: 600;+ border: 1px solid var(--border-color);+}+.btn.github { background: var(--bg-color); }+.btn.try { background: var(--primary); color: white; border-color: var(--primary) }+.btn.contribute { background: var(--bg-contrast) }+</style>+diff --git a/frontend/app/pages/(public)/_components/SelfHostSteps.vue b/frontend/app/pages/(public)/_components/SelfHostSteps.vuenew file mode 100644index 00000000..7c555593--- /dev/null+++ b/frontend/app/pages/(public)/_components/SelfHostSteps.vue@@ -0,0 +1,63 @@+<template>+ <section class="self-host">+ <h2>Self-host in minutes</h2>+ <div class="steps">+ <div class="step">+ <div class="step-index">1</div>+ <h3>Docker</h3>+ <div class="code-wrap">+ <pre class="code">docker compose up -d --build</pre>+ <button class="copy" @click="copyDockerCompose">Copy</button>+ </div>+ </div>+ <div class="step">+ <div class="step-index">2</div>+ <h3>Configure</h3>+ <p>Set environment variables for storage, auth and CDN integration.</p>+ </div>+ <div class="step">+ <div class="step-index">3</div>+ <h3>Go</h3>+ <p>Open your instance, import notes, and start writing.</p>+ </div>+ </div>+ <div class="notes">+ <span class="pill"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M9 16.2l-3.5-3.5-1.4 1.4L9 19 20 8l-1.4-1.4z"/></svg>No telemetry by default</span>+ <span class="pill"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M9 16.2l-3.5-3.5-1.4 1.4L9 19 20 8l-1.4-1.4z"/></svg>Keep full control of your data</span>+ <span class="pill"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M9 16.2l-3.5-3.5-1.4 1.4L9 19 20 8l-1.4-1.4z"/></svg>MIT License</span>+ </div>+ </section>+ </template>++<script setup lang="ts">+function copyDockerCompose() {+ navigator.clipboard?.writeText('docker compose up -d --build')+}+</script>++<style scoped lang="scss">+.self-host { text-align: center; margin: 4rem auto; max-width: 1100px; }+.steps {+ display: grid;+ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));+ gap: 16px;+ margin-top: 16px;+}+.step {+ background: var(--bg-contrast);+ border: 1px solid var(--border-color);+ border-radius: 12px;+ padding: 16px;+ text-align: left;+}+.step-index {+ width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--primary); color: white; font-weight: 700; margin-bottom: 8px;+}+.code-wrap { display: flex; align-items: center }+.code { flex: 1; background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px 14px; overflow: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 14px }+.copy { margin-left: 8px; padding: 8px 10px; border-radius: 8px; background: var(--bg-contrast); border: 1px solid var(--border-color); cursor: pointer; font-weight: 600 }+.notes { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 14px }+.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 999px; color: var(--text-color); font-weight: 500 }+.pill svg { width: 16px; height: 16px; fill: var(--primary) }+</style>+diff --git a/frontend/app/pages/(public)/_components/SponsorWall.vue b/frontend/app/pages/(public)/_components/SponsorWall.vuenew file mode 100644index 00000000..fba2a804--- /dev/null+++ b/frontend/app/pages/(public)/_components/SponsorWall.vue@@ -0,0 +1,22 @@+<template>+ <section class="sponsor-wall">+ <h2>Support the project</h2>+ <p class="subtitle">Help fund hosting, CI, docs and community bounties</p>+ <div class="wall">+ <div v-for="i in 8" :key="i" class="slot"></div>+ </div>+ <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 { text-align: center; margin: 4rem auto; max-width: 1100px; padding: 2rem; background: var(--bg-contrast); border: 1px solid var(--border-color); border-radius: 16px }+.subtitle { color: var(--text-muted) }+.wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 12px }+.slot { height: 84px; border: 1px dashed var(--border-color); border-radius: 12px; background: var(--bg-color) }+.actions { margin-top: 12px }+.btn { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border-color); text-decoration: none; font-weight: 600 }+</style>+