mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-06 02:34:21 +00:00
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:
@@ -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?',
|
||||
|
||||
Reference in New Issue
Block a user