Sync Stats & History window, headless --sync-cli, and Windows remote support (#160)

This commit is contained in:
2026-07-13 18:56:51 -07:00
committed by GitHub
parent 66f8ca4f80
commit 49b926e08c
111 changed files with 6983 additions and 1130 deletions
+23
View File
@@ -0,0 +1,23 @@
import {
readSyncHostsState,
writeSyncHostsState,
type SyncHostsState,
} from '../../shared/sync/sync-hosts-store';
interface SyncUiHostsStateDeps {
hostsFilePath: string;
broadcastStateChanged: () => void;
}
export function createSyncUiHostsState(deps: SyncUiHostsStateDeps) {
function readState(): SyncHostsState {
return readSyncHostsState(deps.hostsFilePath);
}
function writeState(state: SyncHostsState): void {
writeSyncHostsState(deps.hostsFilePath, state);
deps.broadcastStateChanged();
}
return { readState, writeState };
}