refactor: 替换管理员登录组件并更新会话管理

This commit is contained in:
2026-05-09 13:48:11 +08:00
parent cda7824eb2
commit 9805f56d3a
15 changed files with 359 additions and 77 deletions

View File

@@ -1,5 +1,5 @@
import { AdminShell } from "@/components/admin/admin-shell";
import { AdminShellAuthGate } from "@/components/admin/admin-shell-auth-gate";
import { ShellAuthGate } from "@/components/admin/auth-gate";
export default function AdminShellLayout({
children,
@@ -7,8 +7,8 @@ export default function AdminShellLayout({
children: React.ReactNode;
}) {
return (
<AdminShellAuthGate>
<ShellAuthGate>
<AdminShell>{children}</AdminShell>
</AdminShellAuthGate>
</ShellAuthGate>
);
}

View File

@@ -1,6 +1,6 @@
import type { Metadata } from "next";
import { AdminLoginForm } from "@/components/admin/admin-login-form";
import { LoginForm } from "@/components/admin/login-form";
import { authModuleMeta } from "@/modules/auth/meta";
export const metadata: Metadata = {
@@ -8,5 +8,5 @@ export const metadata: Metadata = {
};
export default function AdminLoginPage() {
return <AdminLoginForm />;
return <LoginForm />;
}