feat(web): add public landing page and move console to /admin

Serve a public landing page at / with buttons to the docs, GitHub repo,
Terms, Privacy and the admin login. Relocate the Nuxt admin console from
/ to /admin so the root is no longer the private console.

- add home-routes.ts (bilingual landing, auto dark mode, configurable
  DOCS_URL / GITHUB_REPO_URL) mounted at /
- move console to admin/pages/admin.vue; redirect / and unknown SPA
  routes to /admin
- point admin login/logout redirects at /admin
This commit is contained in:
RhenCloud 2026-08-02 07:40:14 +08:00
parent fc243811f0
commit 81d21ffb08
No known key found for this signature in database
GPG key ID: A574A617378C4E0B
6 changed files with 368 additions and 166 deletions

View file

@ -3,5 +3,5 @@
</template>
<script setup lang="ts">
await navigateTo("/", { redirectCode: 302 });
await navigateTo("/admin", { redirectCode: 302 });
</script>