mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-27 07:59:59 -07:00
wip
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<script lang="ts">
|
||||
import '../app.css';
|
||||
let { children } = $props();
|
||||
export const prerender = true;
|
||||
</script>
|
||||
|
||||
{@render children()}
|
||||
|
||||
@@ -1,2 +1,33 @@
|
||||
<h1>Welcome to SvelteKit</h1>
|
||||
<p>Visit <a href="https://svelte.dev/docs/kit">svelte.dev/docs/kit</a> to read the documentation</p>
|
||||
<script lang="ts">
|
||||
import { Manifest, ManifestEntry } from "$lib/manifest";
|
||||
import { get_manifest, get_system_stats } from "$lib/utils";
|
||||
import ManifestTable from "$lib/components/ManifestTable.svelte";
|
||||
import { onMount } from "svelte";
|
||||
import type { SystemStats } from "$lib/systemStats";
|
||||
import { AnalysisManager } from "$lib/analysisManager";
|
||||
|
||||
let manifest: Manifest | undefined = $state(undefined);
|
||||
let system_stats: SystemStats | undefined = $state(undefined);
|
||||
let manager: AnalysisManager = new AnalysisManager();
|
||||
let analysis_status = $state([]);
|
||||
async function update(): Promise<void> {
|
||||
manifest = await get_manifest();
|
||||
system_stats = await get_system_stats();
|
||||
}
|
||||
|
||||
onMount(() => {
|
||||
const interval = setInterval(() => {
|
||||
update();
|
||||
}, 1000);
|
||||
|
||||
return () => clearInterval(interval);
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="p-8">
|
||||
{#if manifest !== undefined}
|
||||
<ManifestTable manifest={manifest} />
|
||||
{:else}
|
||||
<p>Loading...</p>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user