feat: added ts

This commit is contained in:
Arduinum
2026-02-19 16:26:16 +03:00
committed by Arduinum628
parent ec3d712a82
commit d26310ddad
21 changed files with 135 additions and 149 deletions

8
client/src/config.ts Normal file
View File

@@ -0,0 +1,8 @@
import { appLocalDataDir } from '@tauri-apps/api/path';
/** Возвращает URL подключения к SQLite */
export async function getDB_URL(): Promise<string> {
const appDir = await appLocalDataDir();
return `sqlite:${appDir}/timer.db`;
}