Trackers: ajoute tr4ker (SPA React, auth cookie) + jetons Crédit

Type tr4ker : login cookie TR4KER_session via POST /api/auth/login {identifier,
password}, profil GET /api/me. Ratio = (uploaded+bonus_upload)/(downloaded+
bonus_download), garde-fou download=0 -> 1 Go. Jetons = champ money, libellé
token_currency_name (Crédit).
This commit is contained in:
jerem
2026-06-17 10:57:07 +02:00
parent c4e5c141aa
commit f6f6694215
3 changed files with 48 additions and 1 deletions

View File

@@ -69,6 +69,7 @@ CTX = {
"trackers": [
{"ok": True, "label": "c411", "ratio_h": "1,04", "up_h": "378 Go", "down_h": "365 Go", "tokens": None},
{"ok": True, "label": "torr9", "ratio_h": "1,62", "up_h": "226 Go", "down_h": "140 Go", "tokens": 2168, "tokens_h": "2 168", "tokens_label": "jetons"},
{"ok": True, "label": "tr4ker", "ratio_h": "5233,52", "up_h": "5,62 To", "down_h": "1 Go", "tokens": 223, "tokens_h": "223", "tokens_label": "Crédit"},
{"ok": False, "label": "yggreborn", "error": "2FA requise"},
],
"ha_states": [