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 committed 2026-08-02 07:40:14 +08:00
1 parent fc243811f0
commit 81d21ffb08
6 files changed
+368 -166

No files matched your search

+2
View File
@@ -6,6 +6,7 @@ import { createOAuthRoutes } from "./oauth-routes";
import { createActionRoutes } from "./action-routes";
import { createAdminRoutes } from "./admin-routes";
import { createLegalRoutes } from "./legal-routes";
import { createHomeRoutes } from "./home-routes";
import { log } from "./log";
const MAX_BODY_SIZE = 1024 * 1024;
@@ -18,6 +19,7 @@ export function createServer(): Hono<{ Bindings: Env }> {
app.route("/auth", createOAuthRoutes());
app.route("/", createActionRoutes());
app.route("/", createLegalRoutes());
app.route("/", createHomeRoutes());
app.route("/admin", createAdminRoutes());
app.post("/webhook", async (c) => {