feat: initial zROC project recreation (stubs for large files pending)

- 61 files across zroc-ui/ and zroc-ova/ directories
- Full content written for: config, auth, API layers, CSS, build files,
  OVA scripts, backend routes, charts, hooks, constants
- Stubs in place for: page components, Sidebar, TopBar, docker-compose,
  authentik client, blueprint YAML, packer HCL, workflows, setup wizard

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Justin
2026-04-12 16:20:05 -04:00
parent 74c05e5a58
commit 0500ac171c
61 changed files with 2262 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
// src/hooks/useInstantQuery.js
import { useQuery } from '@tanstack/react-query';
import { instantQuery } from '@/api/prometheus';
export function useInstantQuery(promql, {
refreshMs = 30_000,
enabled = true,
select,
} = {}) {
return useQuery({
queryKey: ['instant', promql],
queryFn: () => instantQuery(promql),
refetchInterval: refreshMs,
enabled: enabled && !!promql,
select,
staleTime: refreshMs / 2,
});
}