feat: complete dashcam catalog ingestion demo
Master Production Deploy / production (push) Failing after 49s
Master Production Deploy / production (push) Failing after 49s
This commit is contained in:
1 parent
ae6c35145f
commit
2ce58fcbc0
62 files changed
+6341
-178
No files matched your search
+10
-20
@@ -1,27 +1,17 @@
|
||||
import { getCachedVideoDashboard } from '@/entities/video/api/videoCache';
|
||||
import { RegisterVideoForm } from '@/features/register-video/ui/RegisterVideoForm';
|
||||
import { CachePanel } from '@/widgets/cache-panel/ui/CachePanel';
|
||||
import { VideoDashboard } from '@/widgets/video-dashboard/ui/VideoDashboard';
|
||||
import { readDashcamCatalog } from '@/entities/dashcam-catalog/api/catalogRepository';
|
||||
import { DashcamCatalog } from '@/widgets/dashcam-catalog/ui/DashcamCatalog';
|
||||
|
||||
export const revalidate = 3600;
|
||||
export const dynamic = 'force-dynamic';
|
||||
|
||||
export default async function Home() {
|
||||
const dashboard = await getCachedVideoDashboard();
|
||||
const catalog = await readDashcamCatalog();
|
||||
|
||||
return (
|
||||
<main className="page-shell">
|
||||
<header className="topbar">
|
||||
<div>
|
||||
<p className="eyebrow">videoreg.ru</p>
|
||||
<h1>Video Registry</h1>
|
||||
</div>
|
||||
<CachePanel metadata={dashboard.cache} />
|
||||
</header>
|
||||
|
||||
<div className="workbench">
|
||||
<RegisterVideoForm />
|
||||
<VideoDashboard dashboard={dashboard} />
|
||||
</div>
|
||||
</main>
|
||||
<DashcamCatalog
|
||||
catalog={catalog.catalog}
|
||||
exportInfo={catalog.export}
|
||||
hasSharedExportIssue={catalog.error === 'shared_export_unavailable'}
|
||||
source={catalog.source}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user