feat(admin): show the allowance of place search, address search and routing in the TREK API card

GET /api/admin/service-identity lists places, photon and valhalla, each with
today's allowance read fresh from /v1/quota of its own host (cached for 20
seconds per host) and whether this instance asks it right now: Photon only
beside the public Nominatim, the TREK Valhalla only where the routing choice
comes to it. Photon and Valhalla are asked only with a key and only while
TREK_SERVICES_HOSTS lists them. The last allowance an answer stated is kept
per host for when a host does not answer.

The card lists the three services under each other in the look it had,
a service this instance does not ask dimmed and named as such.
This commit is contained in:
Maurice
2026-10-29 10:44:50 +01:00
committed by Maurice
parent 091ebed8e4
commit bc62eb0d6f
43 changed files with 531 additions and 89 deletions
+4
View File
@@ -139,6 +139,10 @@ const admin: TranslationStrings = {
'admin.trekApi.quota.hint.revoked':
'Klíč této instalace byl zneplatněn. Vyhledávání běží přes sdílený fond, dokud nevytvoříte novou identitu.',
'admin.trekApi.quota.unavailable': 'Limit teď nelze načíst.',
'admin.trekApi.quota.service.places': 'Hledání míst',
'admin.trekApi.quota.service.photon': 'Hledání adres',
'admin.trekApi.quota.service.valhalla': 'Plánování tras',
'admin.trekApi.quota.notInUse': 'Na této instanci se nepoužívá',
'admin.trekApi.quota.envKey': 'Klíč pochází z TREK_SERVICES_KEY.',
'admin.trekApi.quota.regenerate': 'Nová identita',
'admin.trekApi.quota.regenerateTitle': 'Vytvořit novou identitu?',