A shared Hydration singleton (ticked by the GPS ride service and the HR/VR service, deduped in one process) accrues the body's water need over an active session and subtracts what you logged via the "+вода" button. It stays silent while you keep up — can be quiet for hours — and only beeps LOUD on the alarm stream (cuts through media volume) once the running deficit passes a threshold, then re-beeps on a cooldown. Not a fixed timer. Rust set_hydration_config / hydration_drink bridge JS settings and the "+вода" button to hydration.json / water_drink.txt that the native service reads.
38 lines
1.1 KiB
JSON
38 lines
1.1 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/nicegui/tauri-v2/refs/heads/main/tooling/cli/schema.json",
|
|
"productName": "BalDav",
|
|
"version": "0.1.519",
|
|
"identifier": "dev.baldav.app",
|
|
"build": {
|
|
"frontendDist": "../frontend"
|
|
},
|
|
"app": {
|
|
"withGlobalTauri": true,
|
|
"security": {
|
|
"csp": "default-src 'self' 'unsafe-inline' 'unsafe-eval'; script-src 'self' 'wasm-unsafe-eval' 'unsafe-eval' 'unsafe-inline'; connect-src 'self' https://4aiman.top https://*.tile.openstreetmap.org https://*.tile.thunderforest.com https://api.open-meteo.com https://wttr.in http://192.168.1.1:88; img-src 'self' blob: data: https://*.tile.openstreetmap.org https://*.tile.thunderforest.com"
|
|
},
|
|
"windows": [
|
|
{
|
|
"title": "BalDav",
|
|
"width": 400,
|
|
"height": 700,
|
|
"resizable": true
|
|
}
|
|
]
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"targets": "all",
|
|
"icon": [
|
|
"icons/icon.png"
|
|
],
|
|
"resources": {
|
|
"../frontend/data/products_seed.db": "data/products_seed.db"
|
|
}
|
|
},
|
|
"plugins": {
|
|
"sql": {
|
|
"preload": ["sqlite:baldav.db"]
|
|
}
|
|
}
|
|
}
|