some backend fixes and add android app

This commit is contained in:
timka123 committed 2026-10-19 14:52:20 +03:00
1 parent 772fdbfded
commit 1e55144291
69 files changed
+7111 -7

No files matched your search

+11
View File
@@ -70,4 +70,15 @@ QtObject {
if (kind === "long_break") return "Long break"
return "Focus"
}
// Mirrors the web app's humanMinutes() in lib/format.ts, so "125m" reads
// as "2h 5m" here too.
function humanMinutes(minutes) {
var rounded = Math.round(minutes)
var hours = Math.floor(rounded / 60)
var rest = rounded % 60
if (hours && rest) return hours + "h " + rest + "m"
if (hours) return hours + "h"
return rest + "m"
}
}