feat: implement local caching for vCon data
Persist clients, storage stats, and file lists in local cache to improve initial load performance. Added breadcrumb navigation to the AdminPageHeader.
This commit is contained in:
1 parent
b42029f67d
commit
1a1c19d7bb
25 files changed
+892
-342
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import Link from 'next/link';
|
||||
import React from 'react';
|
||||
|
||||
interface AdminPageHeaderProps {
|
||||
@@ -7,8 +8,21 @@ interface AdminPageHeaderProps {
|
||||
|
||||
export function AdminPageHeader({ title, actions }: AdminPageHeaderProps) {
|
||||
return (
|
||||
<header className="mb-3 flex flex-wrap items-center justify-between gap-2">
|
||||
<h1 className="text-[14px] font-medium tracking-tight text-[var(--text)]">{title}</h1>
|
||||
<header className="mb-3 flex min-h-8 flex-wrap items-center justify-between gap-2 border-b border-[var(--border)] pb-2.5">
|
||||
<div className="flex min-w-0 items-center gap-1.5">
|
||||
<Link
|
||||
href="/vcon/dashboard"
|
||||
className="text-[11.5px] text-[var(--text-faint)] hover:text-[var(--text-muted)]"
|
||||
>
|
||||
Console
|
||||
</Link>
|
||||
<span className="text-[11px] text-[var(--border-strong)]" aria-hidden="true">
|
||||
/
|
||||
</span>
|
||||
<h1 className="truncate text-[13.5px] font-medium tracking-tight text-[var(--text)]">
|
||||
{title}
|
||||
</h1>
|
||||
</div>
|
||||
{actions && <div className="flex items-center gap-1.5">{actions}</div>}
|
||||
</header>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user