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:
Team Dark Devil committed 2026-11-16 23:10:44 +06:00
1 parent b42029f67d
commit 1a1c19d7bb
25 files changed
+892 -342

No files matched your search

+3 -1
View File
@@ -16,6 +16,7 @@ import {
TableRow,
TableWrap,
} from '@/components/ui/Table';
import { useRouter } from 'next/navigation';
import { useCallback, useEffect, useState } from 'react';
interface StreamEvent {
@@ -34,6 +35,7 @@ interface Client {
const PAGE_SIZE = 12;
export function DataBrowser() {
const router = useRouter();
const [events, setEvents] = useState<StreamEvent[]>([]);
const [clients, setClients] = useState<Client[]>([]);
const [total, setTotal] = useState(0);
@@ -150,7 +152,7 @@ export function DataBrowser() {
variant="primary"
size="xs"
icon="Download"
onClick={() => window.location.assign('/vcon/export')}
onClick={() => router.push('/vcon/export')}
>
Export CSV
</Button>