feat: Archivum skeleton — Go/GraphQL backend + Vue 3 PWA frontend

Full project scaffold: multi-stage Dockerfile (ARM64/AMD64), AsciiDoc↔TipTap
bridge, Setup Wizard, CodeMirror source editor, Git-backed storage layer,
LDAP+JWT auth skeleton, Tailwind mobile-first layout, and VS Code build/push
tasks targeting registry at 192.168.0.19:5000.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-10 13:07:01 +02:00
parent 3db6fec664
commit e6b64e3344
35 changed files with 1882 additions and 74 deletions

View File

@@ -0,0 +1,59 @@
<script setup lang="ts">
import { ref, onMounted } from 'vue'
import { useRouter } from 'vue-router'
import { gql } from '@/lib/gql'
const emit = defineEmits<{ close: [] }>()
interface DocMeta { slug: string; title: string }
const docs = ref<DocMeta[]>([])
const router = useRouter()
onMounted(async () => {
const data = await gql<{ documents: DocMeta[] }>(`{ documents { slug title } }`)
docs.value = data.documents
})
function navigate(slug: string) {
router.push(`/doc/${slug}`)
emit('close')
}
</script>
<template>
<div class="flex flex-col h-full">
<!-- Header -->
<div class="flex items-center justify-between px-4 py-3 border-b border-slate-700">
<router-link to="/" class="font-bold text-lg" @click="emit('close')">Archivum</router-link>
<button class="lg:hidden p-1 rounded hover:bg-surface-700" @click="emit('close')">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
</div>
<!-- Document tree -->
<nav class="flex-1 overflow-y-auto py-2">
<button
v-for="doc in docs"
:key="doc.slug"
class="w-full text-left px-4 py-2 text-sm hover:bg-surface-700 truncate"
@click="navigate(doc.slug)"
>
{{ doc.title }}
</button>
</nav>
<!-- New document button -->
<div class="p-3 border-t border-slate-700">
<router-link
to="/doc/new"
class="block w-full text-center py-2 rounded bg-blue-700 hover:bg-blue-600 text-sm font-medium"
@click="emit('close')"
>
+ New document
</router-link>
</div>
</div>
</template>