feat: add location picker and persistent cache

This commit is contained in:
Darío Sevilla committed 2026-10-15 07:33:43 +00:00
1 parent fcea6cf7b7
commit 3811ae9cfc
16 files changed
+163 -39

No files matched your search

+15 -3
View File
@@ -3,8 +3,7 @@
const DEFAULT_SETTINGS = Object.freeze({
enabled: true,
blacklist: ["Belarus", "China", "Iran", "North Korea", "Russia"],
cacheTtlHours: 168,
blacklist: [],
showPlaceholder: false
});
@@ -16,8 +15,21 @@
"dprk": "north korea",
"republic of korea": "south korea",
"united states of america": "united states",
"u.s.": "united states",
"usa": "united states",
"uk": "united kingdom"
"uk": "united kingdom",
"viet nam": "vietnam",
"bolivia, plurinational state of": "bolivia",
"venezuela, bolivarian republic of": "venezuela",
"tanzania, united republic of": "tanzania",
"syrian arab republic": "syria",
"lao people's democratic republic": "laos",
"moldova, republic of": "moldova",
"brunei darussalam": "brunei",
"czechia": "czech republic",
"turkiye": "turkey",
"cote d’ivoire": "ivory coast",
"cote d'ivoire": "ivory coast"
});
function normalizeCountry(value) {