mirror of
https://github.com/twinksoftware/Gearslip.git
synced 2026-11-11 00:12:24 +01:00
opt-in usage notes and a stats dashboard
Release builds ask in setup and Settings whether to send a short note when the app is opened and after each drive: the version, plus the Android version, phone model and cars people tick. Nothing runs in the background. Dev builds always send. The Cloudflare Worker in stats-worker/ stores the notes and serves a private dashboard with GitHub downloads alongside.
This commit is contained in:
1 parent
b6bd6497b2
commit
5a3bbe82a0
13 files changed
+812
-6
No files matched your search
@@ -0,0 +1,23 @@
|
||||
# Gearslip's opt-in usage notes. Deploy with `npx wrangler deploy` from this folder.
|
||||
# Setup, once:
|
||||
# npx wrangler d1 create gearslip-stats (paste the id it prints below)
|
||||
# npx wrangler d1 execute gearslip-stats --remote --file schema.sql
|
||||
# npx wrangler secret put SALT (any long random string; keep it)
|
||||
# npx wrangler secret put DASHBOARD_KEY (the key for the dashboard link)
|
||||
name = "gearslip-stats"
|
||||
main = "src/index.js"
|
||||
compatibility_date = "2026-10-01"
|
||||
|
||||
[[d1_databases]]
|
||||
binding = "DB"
|
||||
database_name = "gearslip-stats"
|
||||
database_id = "201521a7-0b4a-4fff-ab11-d575b821528a"
|
||||
|
||||
# The public repo whose release downloads the dashboard compares against. If GitHub starts
|
||||
# refusing (60 requests an hour without a token), add one: npx wrangler secret put GITHUB_TOKEN
|
||||
[vars]
|
||||
GITHUB_REPO = "Seb3thehacker/gearslip"
|
||||
|
||||
# Save the download counts once a day, so the dashboard can show downloads per day.
|
||||
[triggers]
|
||||
crons = ["17 6 * * *"]
|
||||
Reference in new issue
Block a user