scaffold the app: tauri crate, vite front end, icons, ci

This commit is contained in:
pj committed 2026-09-03 17:01:50 +05:30
commit 088ec9c6e4
267 files changed
+18617

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
// Placeholder. The contract lands in F3.
import { invoke } from "@tauri-apps/api/core";
export const isTauri = typeof window !== "undefined" && "__TAURI_INTERNALS__" in window;
export const isMacDesktop =
isTauri && typeof navigator !== "undefined" && /mac/i.test(navigator.userAgent);
export function call<T>(command: string, args?: Record<string, unknown>): Promise<T> {
return invoke<T>(command, args);
}