mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 18:04:18 +00:00
feat(admin): the phone's API-keys card, rebuilt like the desktop tab
The desktop tab was reshaped around one idea: a key should be the exception rather than the thing you are expected to paste. The phone still had the older shape, where Google wore the "Recommended" chip and the TREK Places API was not on the screen at all. Two pages, opposite advice, same setting. So the phone gets the same three comparable blocks in the same order: the TREK index first, with its own ribbon and a folded panel of what it does and does not carry, then the two keys under theirs. The Google caveat is said before the field rather than after it, because somebody about to paste a key should read it while deciding. The four Google switches moved under the key they spend, folded away: they are set once and never touched again, and open they were longer than the rest of the card together. Open-Meteo left the card entirely, as it did on the desktop, since it takes no key and had the loudest treatment of anything there. The provider choice is TREK's own picker now. A native select is drawn by the operating system and was the one control on the page that did not belong to the app. Its description was also describing a TREK that no longer exists: it said one service answers place search. The index and OpenStreetMap answer every search and the setting only decides who is asked once they come up empty (maps.service.ts, keyedProvider). Both that line and the missing-key notice say so now, in all 23 languages, and the two key hints have short forms for the narrow screen.
This commit is contained in:
@@ -137,12 +137,12 @@ const admin: TranslationStrings = {
|
||||
'Pro hledání míst v kontinentální Číně, kde Google není dostupný a OpenStreetMap má málo dat. Vyžaduje klíč typu „Web 服务" (webová služba), nikoli klíč JS API. Získáte na console.amap.com.',
|
||||
'admin.placesProvider.title': 'Poskytovatel hledání míst',
|
||||
'admin.placesProvider.subtitle':
|
||||
'Která služba obsluhuje hledání míst, našeptávač a podrobnosti. Automaticky použije Google, pokud je nastaven klíč Google, poté Amap a poté OpenStreetMap.',
|
||||
'Vlastní index TREKu a OpenStreetMap odpovídají na každé hledání. Zde se volí, koho se zeptat navíc, když nic nenajdou: Automaticky upřednostní Google, pokud je klíč, pak Amap.',
|
||||
'admin.placesProvider.auto': 'Automaticky',
|
||||
'admin.placesProvider.google': 'Google Places',
|
||||
'admin.placesProvider.amap': 'Amap (高德地图)',
|
||||
'admin.placesProvider.openstreetmap': 'OpenStreetMap',
|
||||
'admin.placesProvider.missingKey': 'Pro vybraného poskytovatele není nastaven API klíč, hledání míst proto přejde na OpenStreetMap.',
|
||||
'admin.placesProvider.missingKey': 'Zvolený poskytovatel nemá nastavený API klíč, na hledání míst tak odpovídá jen index TREKu a OpenStreetMap.',
|
||||
'admin.placesProvider.saved': 'Poskytovatel hledání míst uložen',
|
||||
'admin.validateKey': 'Testovat',
|
||||
'admin.keyValid': 'Připojeno',
|
||||
@@ -790,5 +790,8 @@ const admin: TranslationStrings = {
|
||||
'admin.invite.tripNone': 'Žádná cesta',
|
||||
'admin.invite.tripHint': 'Nový uživatel bude po registraci přes odkaz automaticky přidán k této cestě.',
|
||||
'admin.invite.boundTo': 'přidá k {trip}',
|
||||
'admin.placesUsageTitle': 'K čemu se klíč používá',
|
||||
'admin.mapsKeyHintShort': 'Přidá fotky, hodnocení a otevírací dobu. Každý dotaz pak jde na Google.',
|
||||
'admin.amapKeyHintShort': 'Pro vyhledávání míst v pevninské Číně. Potřebuje klíč webové služby, ne klíč JS API.',
|
||||
};
|
||||
export default admin;
|
||||
|
||||
Reference in New Issue
Block a user