6d74d874b6
ARCHITECTURE ============ Backend: FastAPI + uvicorn (port 8000) - JWT authentication with PAM system users - ZFS CLI wrapper with caching (30-60s TTL) - WebSocket pool status broadcaster (30s interval) - Services: auth, zfs_runner, file_manager, shares, identities, system_info - Routers: pools, datasets, snapshots, shares, identities, navigator, system Frontend: Next.js 15 + TypeScript (static export) - Incremental Static Regeneration (ISR) for weak hardware - Type-safe API client (lib/api.ts) - Dark mode + custom Tailwind theme - Pages: Dashboard, Login, Snapshots, Datasets, Shares, etc. DEPLOYMENT ========== Test Target: 192.168.1.179:8090 (Debian LXC) Production: 10.66.120.3:9090 (Raspberry Pi 4GB ARM64) Updater: Automated Gitea-based deployment (update-test.sh, update-pi.sh) FEATURES COMPLETED ================== Phase 3a: Dashboard Quick Stats (System, CPU, Memory, Storage) - Real-time stats with color-coded progress bars - Responsive grid layout (mobile: 1, tablet: 2, desktop: 4 columns) - ISR-optimized for fast loads on weak hardware REBRANDING ========== Renamed throughout: - Project: 'ZFS Manager' → 'ZMB Webui' - Services: 'zfs-manager' → 'zmb-webui' - Systemd units: zfs-manager-backend → zmb-webui-backend - Configuration files and documentation Co-Authored-By: Patrick <patrick@perlbach24.de>
69 lines
1.3 KiB
TypeScript
69 lines
1.3 KiB
TypeScript
export function Card({
|
|
className = "",
|
|
...props
|
|
}: React.HTMLAttributes<HTMLDivElement>) {
|
|
return (
|
|
<div
|
|
className={`rounded-lg border border-border bg-card text-card-foreground shadow-sm ${className}`}
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export function CardHeader({
|
|
className = "",
|
|
...props
|
|
}: React.HTMLAttributes<HTMLDivElement>) {
|
|
return (
|
|
<div
|
|
className={`flex flex-col space-y-1.5 p-6 ${className}`}
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export function CardTitle({
|
|
className = "",
|
|
...props
|
|
}: React.HTMLAttributes<HTMLHeadingElement>) {
|
|
return (
|
|
<h2
|
|
className={`text-2xl font-semibold leading-none tracking-tight ${className}`}
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export function CardDescription({
|
|
className = "",
|
|
...props
|
|
}: React.HTMLAttributes<HTMLParagraphElement>) {
|
|
return (
|
|
<p
|
|
className={`text-sm text-muted-foreground ${className}`}
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export function CardContent({
|
|
className = "",
|
|
...props
|
|
}: React.HTMLAttributes<HTMLDivElement>) {
|
|
return (
|
|
<div className={`p-6 pt-0 ${className}`} {...props} />
|
|
)
|
|
}
|
|
|
|
export function CardFooter({
|
|
className = "",
|
|
...props
|
|
}: React.HTMLAttributes<HTMLDivElement>) {
|
|
return (
|
|
<div
|
|
className={`flex items-center p-6 pt-0 ${className}`}
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|