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:
23
frontend/src/App.vue
Normal file
23
frontend/src/App.vue
Normal file
@@ -0,0 +1,23 @@
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { useAppStore } from '@/stores/app'
|
||||
import AppLayout from '@/components/layout/AppLayout.vue'
|
||||
|
||||
const app = useAppStore()
|
||||
const router = useRouter()
|
||||
|
||||
// If backend signals REQUIRE_SETUP, redirect to wizard.
|
||||
app.checkStatus().then(() => {
|
||||
if (app.requiresSetup) {
|
||||
router.replace('/setup')
|
||||
}
|
||||
})
|
||||
|
||||
const showLayout = computed(() => !app.requiresSetup)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<AppLayout v-if="showLayout" />
|
||||
<router-view v-else />
|
||||
</template>
|
||||
Reference in New Issue
Block a user