mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-15 19:30:38 +08:00
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:
@@ -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(),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user