nomadro/app/admin/verticals/page.tsx
eric 9f8fec1723 Ship portal PC/H5 acceptance, VIP ScrollReader, admin analytics and ops anchors.
Adds /api/health, ntfy notify on config save, /admin/analytics charts, and deploy smoke for miniprogram config/API.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 23:52:00 -05:00

78 lines
2.1 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use client";
import Link from "next/link";
import styles from "../admin.module.css";
const VERTICALS = [
{
id: "nav",
emoji: "🧭",
name: "出海导航 navmini",
href: "/nav",
code: "apps/navmini",
notes: ["H5 挂载 /nav", "原生 weapp/tt/xhs 包仍在垂直仓", "统一小程序见 apps/miniprogram"],
},
{
id: "book",
emoji: "📖",
name: "电子书 ebook",
href: "/book",
admin: "/book/admin",
code: "apps/ebook",
notes: ["门户 /book", "垂直后台 /book/admin", "wemini 已接微信虚拟支付"],
},
{
id: "community",
emoji: "🌏",
name: "旅居社群 nomadweb",
href: "/community",
code: "apps/nomadweb",
notes: ["门户 /community", "FastAPI /api/v1", "wemini/dymini Taro 4"],
},
{
id: "vip",
emoji: "👑",
name: "私域会员 nomadvip",
href: "/vip",
code: "apps/nomadvip",
notes: ["门户 /vip", "payjsapi zpay/xorpay/creem", "统一小程序 VIP 页建设中"],
},
] as const;
export default function AdminVerticalsPage() {
return (
<>
<h1 className={styles.pageTitle}>🧩 垂直业务</h1>
<p className={styles.pageLead}>模块边界:业务在 apps/,门户只挂载路由。</p>
<div className={styles.grid2}>
{VERTICALS.map((v) => (
<div key={v.id} className={styles.panel}>
<h3>
{v.emoji} {v.name}
</h3>
<p className={styles.muted}>{v.code}</p>
<ul className={styles.listPlain}>
{v.notes.map((n) => (
<li key={n}>{n}</li>
))}
</ul>
<p style={{ marginTop: 10 }}>
<Link href={v.href} className={styles.chip}>
打开
</Link>
{"admin" in v && v.admin ? (
<>
{" "}
<Link href={v.admin} className={styles.chip}>
后台
</Link>
</>
) : null}
</p>
</div>
))}
</div>
</>
);
}