Extract memind_adm admin server, add local dev tooling, and remove image-generation.

Split platform admin and ops APIs into standalone admin-server.mjs with network guards; simplify billing to RMB token pricing, refactor user auth, and add rsync deploy plus local-test scripts and docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Your Name
2026-06-17 16:39:39 -07:00
parent ab0718938e
commit b0f5d6a51c
98 changed files with 5394 additions and 3010 deletions
+38
View File
@@ -0,0 +1,38 @@
import { NavLink, Outlet } from 'react-router-dom';
const links = [
{ to: '/admin', label: '概览', end: true },
{ to: '/admin/users', label: '用户管理' },
{ to: '/admin/llm', label: 'LLM 配置' },
{ to: '/admin/billing', label: '账单记录' },
];
export function AdminLayout() {
return (
<div className="layout">
<header>
<h1></h1>
<p style={{ color: '#68716c' }}> LLM </p>
</header>
<nav className="nav">
<NavLink
to="/"
style={{ opacity: 0.6 }}
>
</NavLink>
{links.map((link) => (
<NavLink
key={link.to}
to={link.to}
end={link.end}
className={({ isActive }) => (isActive ? 'active' : undefined)}
>
{link.label}
</NavLink>
))}
</nav>
<Outlet />
</div>
);
}