[chore] used codex to create a base layout for src

This commit is contained in:
2026-02-26 17:55:52 +01:00
parent 74c9ded46b
commit f804d55ce2
12 changed files with 416 additions and 135 deletions

View File

@@ -0,0 +1,26 @@
import { invokeCommand } from "../../shared/tauri/invoke";
import type { CountdownCommand, CountdownSnapshotDto } from "./types";
export async function fetchCountdownSnapshot(): Promise<CountdownSnapshotDto> {
return invokeCommand<CountdownSnapshotDto>("countdown_snapshot");
}
async function invokeCountdownCommand(command: CountdownCommand): Promise<void> {
await invokeCommand<void>(command);
}
export async function startCountdown(): Promise<void> {
await invokeCountdownCommand("countdown_start");
}
export async function pauseCountdown(): Promise<void> {
await invokeCountdownCommand("countdown_pause");
}
export async function resumeCountdown(): Promise<void> {
await invokeCountdownCommand("countdown_resume");
}
export async function resetCountdown(): Promise<void> {
await invokeCountdownCommand("countdown_reset");
}