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>
24 lines
550 B
Vue
24 lines
550 B
Vue
<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>
|