refactor: replace AdminPageHeader with PageShell

Migrate pages to PageShell, add global autofill styles, and update SDK/simulator page logic for server URL and state consistency.
This commit is contained in:
Team Dark Devil committed 2026-11-17 00:24:33 +06:00
1 parent fa4516b078
commit 81c5e4e2fd
24 files changed
+1238 -595

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
import { cn } from '@/lib/utils';
import React from 'react';
import { AdminPageHeader } from './AdminPageHeader';
interface PageShellProps {
title: string;
actions?: React.ReactNode;
children: React.ReactNode;
className?: string;
}
/**
* Single-Source-of-Truth Page Container for all /vcon/* Control Panel views.
* Guarantees that AdminPageHeader, StatStrip, Panels, Settings forms, and Tables
* share the exact same full-width container alignment and uniform vertical rhythm.
*/
export function PageShell({
title,
actions,
children,
className,
}: PageShellProps) {
return (
<section className={cn('flex w-full min-w-0 flex-col', className)}>
<AdminPageHeader title={title} actions={actions} className="mb-0" />
<div className="flex w-full max-w-[var(--console-width)] min-w-0 flex-col gap-3 pt-3 [&>.stat-strip]:mb-0">
{children}
</div>
</section>
);
}
export default PageShell;