Provide a sync_status store

The `sync_status` would update every 10 seconds with the latest state of
all repos, to be displayed in the repo where needed.
This commit is contained in:
Sebastian Martinez
2025-02-10 11:55:14 -06:00
committed by Rūdolfs Ošiņš
parent 53d49e0bbf
commit 365674bc58
7 changed files with 136 additions and 3 deletions
+6
View File
@@ -1,3 +1,9 @@
import type { SyncStatus } from "@bindings/repo/SyncStatus";
import { SvelteMap } from "svelte/reactivity";
import { writable } from "svelte/store";
export const nodeRunning = writable<boolean>(false);
export const syncStatus = writable<SvelteMap<string, SyncStatus>>(
new SvelteMap(),
);