diff --git a/ChangeLog.md b/ChangeLog.md index 9c47dc07..89ae022c 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,4 +1,8 @@ # Changelog: +* **23.03.21** + - Made the permission editor popoutable + - Now using SVG flags for higher quality. + - Fixed issue [#74](https://github.com/TeaSpeak/TeaWeb/issues/74) (Swiss flag box has black background) * **21.03.21** - Reworked the server group assignment modal. It now better reacts to the user input as well is now popoutable diff --git a/shared/CountryIconFixup.ts b/shared/CountryIconFixup.ts new file mode 100644 index 00000000..bb3a0044 --- /dev/null +++ b/shared/CountryIconFixup.ts @@ -0,0 +1,84 @@ +/* Country icons from https://www.flaticon.com/packs/rectangular-country-simple-flags?word=country&k=1616497480370 */ +/* Worldwide: https://www.flaticon.com/free-icon/worldwide_814513?term=earth%20flag&page=1&position=1&page=1&position=1&related_id=814513&origin=search */ + +import * as path from "path"; +import * as fs from "fs-extra"; +import {getKnownCountries} from "./js/i18n/country"; + +const kIconsPath = path.join(__dirname, "img", "country-flags"); + +async function fixupAdobeTags() { + const icons = await fs.readdir(kIconsPath); + for(const icon of icons) { + const iconPath = path.join(kIconsPath, icon); + + console.error("Icon: %s", icon); + let content = (await fs.readFile(iconPath)).toString(); + content = content.replace(/\n<\/g>\n/g, ""); + content = content.replace("\n", ""); + content = content.replace("id=\"Capa_1\" ", ""); + content = content.replace("encoding=\"iso-8859-1\"", "encoding=\"utf-8\""); + await fs.writeFile(iconPath, content); + } +} + +async function fixupIconNames() { + const icons = await fs.readdir(kIconsPath); + for(const icon of icons) { + if(!icon.match(/^[0-9]{3}-/)) { + continue; + } + + let newName = icon.substring(4).replace(/-/g, "_"); + await fs.rename(path.join(kIconsPath, icon), path.join(kIconsPath, newName)); + } +} + +async function generateMapping() { + const icons = await fs.readdir(kIconsPath); + const knownCountries = getKnownCountries(); + + let countFound = 0, countUnknown = 0; + for(const country of knownCountries) { + let name = country.name; + const splitIndex = name.indexOf(","); + if(splitIndex !== -1) { + name = name.substring(splitIndex + 2) + " " + name.substring(0, splitIndex); + } + + let iconName = name.replace(/ /g, "_").toLocaleLowerCase() + ".svg"; + + console.log("array.push({"); + console.log("name: \"%s\",", country.name); + console.log("alpha_2: \"%s\",", country.alpha_2); + console.log("alpha_3: \"%s\",", country.alpha_3); + console.log("un_code: %d,", country.un_code); + if(icons.indexOf(iconName) === -1) { + iconName = undefined; + console.log("icon: \"%s\", // FIXME: Resolve icons or remove", "worldwide"); + countUnknown++; + } else { + console.log("icon: \"%s\",", iconName.replace(".svg", "").replace(/_/g, "-")); + countFound++; + } + console.log("});"); + } + + /* + array.push({ + name: "Netherlands", + alpha_2: "NL", + alpha_3: "NLD", + un_code: 528 + }); + */ + + console.log("Icons resolved %d. Unresolved %d.", countFound, countUnknown); +} + +async function main() { + //await fixupAdobeTags(); + //await fixupIconNames(); + await generateMapping(); +} +main().then(undefined); \ No newline at end of file diff --git a/shared/css/static/ts/country.scss b/shared/css/static/ts/country.scss index 2516e61f..1c414d0e 100644 --- a/shared/css/static/ts/country.scss +++ b/shared/css/static/ts/country.scss @@ -1,3 +1,12 @@ +/* +Still is use by (grep -rne "flag-" -w shared/js/): +shared/js/ui/modal/ModalClientInfo.ts +shared/js/ui/modal/ModalMusicManage.ts +shared/js/ui/modal/ModalServerInfo.ts +shared/js/ui/modal/ModalSettings.tsx + +TODO: Remove when these modals have been reworked +*/ :global { .country { width: 16px; diff --git a/shared/img/country-flags/abkhazia.svg b/shared/img/country-flags/abkhazia.svg new file mode 100644 index 00000000..4a08350e --- /dev/null +++ b/shared/img/country-flags/abkhazia.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/afghanistan.svg b/shared/img/country-flags/afghanistan.svg new file mode 100644 index 00000000..0ebe1816 --- /dev/null +++ b/shared/img/country-flags/afghanistan.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/shared/img/country-flags/aland_islands.svg b/shared/img/country-flags/aland_islands.svg new file mode 100644 index 00000000..f9a1e092 --- /dev/null +++ b/shared/img/country-flags/aland_islands.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/albania.svg b/shared/img/country-flags/albania.svg new file mode 100644 index 00000000..09bcbcef --- /dev/null +++ b/shared/img/country-flags/albania.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/shared/img/country-flags/algeria.svg b/shared/img/country-flags/algeria.svg new file mode 100644 index 00000000..398f94df --- /dev/null +++ b/shared/img/country-flags/algeria.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/shared/img/country-flags/american_samoa.svg b/shared/img/country-flags/american_samoa.svg new file mode 100644 index 00000000..68c823a0 --- /dev/null +++ b/shared/img/country-flags/american_samoa.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/shared/img/country-flags/andorra.svg b/shared/img/country-flags/andorra.svg new file mode 100644 index 00000000..505b2679 --- /dev/null +++ b/shared/img/country-flags/andorra.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/shared/img/country-flags/angola.svg b/shared/img/country-flags/angola.svg new file mode 100644 index 00000000..eed85407 --- /dev/null +++ b/shared/img/country-flags/angola.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/shared/img/country-flags/anguilla.svg b/shared/img/country-flags/anguilla.svg new file mode 100644 index 00000000..4f680cc0 --- /dev/null +++ b/shared/img/country-flags/anguilla.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/antigua_and_barbuda.svg b/shared/img/country-flags/antigua_and_barbuda.svg new file mode 100644 index 00000000..b873ef75 --- /dev/null +++ b/shared/img/country-flags/antigua_and_barbuda.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/shared/img/country-flags/argentina.svg b/shared/img/country-flags/argentina.svg new file mode 100644 index 00000000..b6d13ce2 --- /dev/null +++ b/shared/img/country-flags/argentina.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/shared/img/country-flags/armenia.svg b/shared/img/country-flags/armenia.svg new file mode 100644 index 00000000..af12f561 --- /dev/null +++ b/shared/img/country-flags/armenia.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/aruba.svg b/shared/img/country-flags/aruba.svg new file mode 100644 index 00000000..19df8552 --- /dev/null +++ b/shared/img/country-flags/aruba.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/shared/img/country-flags/australia.svg b/shared/img/country-flags/australia.svg new file mode 100644 index 00000000..63703ab6 --- /dev/null +++ b/shared/img/country-flags/australia.svg @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/austria.svg b/shared/img/country-flags/austria.svg new file mode 100644 index 00000000..9ecf7351 --- /dev/null +++ b/shared/img/country-flags/austria.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/shared/img/country-flags/azerbaijan.svg b/shared/img/country-flags/azerbaijan.svg new file mode 100644 index 00000000..93e8b602 --- /dev/null +++ b/shared/img/country-flags/azerbaijan.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/shared/img/country-flags/azores_islands.svg b/shared/img/country-flags/azores_islands.svg new file mode 100644 index 00000000..89702908 --- /dev/null +++ b/shared/img/country-flags/azores_islands.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/bahamas.svg b/shared/img/country-flags/bahamas.svg new file mode 100644 index 00000000..b0371b34 --- /dev/null +++ b/shared/img/country-flags/bahamas.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/shared/img/country-flags/bahrain.svg b/shared/img/country-flags/bahrain.svg new file mode 100644 index 00000000..3163eff2 --- /dev/null +++ b/shared/img/country-flags/bahrain.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/shared/img/country-flags/balearic_islands.svg b/shared/img/country-flags/balearic_islands.svg new file mode 100644 index 00000000..ea3ec93f --- /dev/null +++ b/shared/img/country-flags/balearic_islands.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/shared/img/country-flags/bangladesh.svg b/shared/img/country-flags/bangladesh.svg new file mode 100644 index 00000000..e14fea4e --- /dev/null +++ b/shared/img/country-flags/bangladesh.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/shared/img/country-flags/barbados.svg b/shared/img/country-flags/barbados.svg new file mode 100644 index 00000000..9f2ac6e5 --- /dev/null +++ b/shared/img/country-flags/barbados.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/shared/img/country-flags/basque_country.svg b/shared/img/country-flags/basque_country.svg new file mode 100644 index 00000000..42bfb94f --- /dev/null +++ b/shared/img/country-flags/basque_country.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/belarus.svg b/shared/img/country-flags/belarus.svg new file mode 100644 index 00000000..4c1e38e2 --- /dev/null +++ b/shared/img/country-flags/belarus.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/belgium.svg b/shared/img/country-flags/belgium.svg new file mode 100644 index 00000000..c741ff45 --- /dev/null +++ b/shared/img/country-flags/belgium.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/belize.svg b/shared/img/country-flags/belize.svg new file mode 100644 index 00000000..4fd33abc --- /dev/null +++ b/shared/img/country-flags/belize.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/shared/img/country-flags/benin.svg b/shared/img/country-flags/benin.svg new file mode 100644 index 00000000..3dc56825 --- /dev/null +++ b/shared/img/country-flags/benin.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/bermuda.svg b/shared/img/country-flags/bermuda.svg new file mode 100644 index 00000000..d544828c --- /dev/null +++ b/shared/img/country-flags/bermuda.svg @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/bhutan.svg b/shared/img/country-flags/bhutan.svg new file mode 100644 index 00000000..e6f8c9b5 --- /dev/null +++ b/shared/img/country-flags/bhutan.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/bolivia.svg b/shared/img/country-flags/bolivia.svg new file mode 100644 index 00000000..66f0be62 --- /dev/null +++ b/shared/img/country-flags/bolivia.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/bonaire.svg b/shared/img/country-flags/bonaire.svg new file mode 100644 index 00000000..9198cd4b --- /dev/null +++ b/shared/img/country-flags/bonaire.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/shared/img/country-flags/bosnia_and_herzegovina.svg b/shared/img/country-flags/bosnia_and_herzegovina.svg new file mode 100644 index 00000000..830d3631 --- /dev/null +++ b/shared/img/country-flags/bosnia_and_herzegovina.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/botswana.svg b/shared/img/country-flags/botswana.svg new file mode 100644 index 00000000..db67b755 --- /dev/null +++ b/shared/img/country-flags/botswana.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/shared/img/country-flags/brazil.svg b/shared/img/country-flags/brazil.svg new file mode 100644 index 00000000..1a7ffdf1 --- /dev/null +++ b/shared/img/country-flags/brazil.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/shared/img/country-flags/british_columbia.svg b/shared/img/country-flags/british_columbia.svg new file mode 100644 index 00000000..ed73c330 --- /dev/null +++ b/shared/img/country-flags/british_columbia.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/british_indian_ocean_territory.svg b/shared/img/country-flags/british_indian_ocean_territory.svg new file mode 100644 index 00000000..083179bd --- /dev/null +++ b/shared/img/country-flags/british_indian_ocean_territory.svg @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/british_virgin_islands.svg b/shared/img/country-flags/british_virgin_islands.svg new file mode 100644 index 00000000..1fd9fe77 --- /dev/null +++ b/shared/img/country-flags/british_virgin_islands.svg @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/brunei.svg b/shared/img/country-flags/brunei.svg new file mode 100644 index 00000000..289a219c --- /dev/null +++ b/shared/img/country-flags/brunei.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/bulgaria.svg b/shared/img/country-flags/bulgaria.svg new file mode 100644 index 00000000..fe889c9e --- /dev/null +++ b/shared/img/country-flags/bulgaria.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/burkina_faso.svg b/shared/img/country-flags/burkina_faso.svg new file mode 100644 index 00000000..9ed5a9f4 --- /dev/null +++ b/shared/img/country-flags/burkina_faso.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/burundi.svg b/shared/img/country-flags/burundi.svg new file mode 100644 index 00000000..5d8405a3 --- /dev/null +++ b/shared/img/country-flags/burundi.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/cambodia.svg b/shared/img/country-flags/cambodia.svg new file mode 100644 index 00000000..1c0e4aa9 --- /dev/null +++ b/shared/img/country-flags/cambodia.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/shared/img/country-flags/cameroon.svg b/shared/img/country-flags/cameroon.svg new file mode 100644 index 00000000..cc4486e5 --- /dev/null +++ b/shared/img/country-flags/cameroon.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/shared/img/country-flags/canada.svg b/shared/img/country-flags/canada.svg new file mode 100644 index 00000000..216a92d0 --- /dev/null +++ b/shared/img/country-flags/canada.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/shared/img/country-flags/canary_islands.svg b/shared/img/country-flags/canary_islands.svg new file mode 100644 index 00000000..93bbe5d6 --- /dev/null +++ b/shared/img/country-flags/canary_islands.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/cape_verde.svg b/shared/img/country-flags/cape_verde.svg new file mode 100644 index 00000000..278a7365 --- /dev/null +++ b/shared/img/country-flags/cape_verde.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/cayman_islands.svg b/shared/img/country-flags/cayman_islands.svg new file mode 100644 index 00000000..9155830c --- /dev/null +++ b/shared/img/country-flags/cayman_islands.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/central_african_republic.svg b/shared/img/country-flags/central_african_republic.svg new file mode 100644 index 00000000..0ebe39ab --- /dev/null +++ b/shared/img/country-flags/central_african_republic.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/ceuta.svg b/shared/img/country-flags/ceuta.svg new file mode 100644 index 00000000..3cd25b56 --- /dev/null +++ b/shared/img/country-flags/ceuta.svg @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/chad.svg b/shared/img/country-flags/chad.svg new file mode 100644 index 00000000..10e73b51 --- /dev/null +++ b/shared/img/country-flags/chad.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/chile.svg b/shared/img/country-flags/chile.svg new file mode 100644 index 00000000..97e9b949 --- /dev/null +++ b/shared/img/country-flags/chile.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/shared/img/country-flags/china.svg b/shared/img/country-flags/china.svg new file mode 100644 index 00000000..fca5af9d --- /dev/null +++ b/shared/img/country-flags/china.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/shared/img/country-flags/christmas_island.svg b/shared/img/country-flags/christmas_island.svg new file mode 100644 index 00000000..8166ee9a --- /dev/null +++ b/shared/img/country-flags/christmas_island.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/cocos_island.svg b/shared/img/country-flags/cocos_island.svg new file mode 100644 index 00000000..299d50e9 --- /dev/null +++ b/shared/img/country-flags/cocos_island.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/colombia.svg b/shared/img/country-flags/colombia.svg new file mode 100644 index 00000000..a34150bd --- /dev/null +++ b/shared/img/country-flags/colombia.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/comoros.svg b/shared/img/country-flags/comoros.svg new file mode 100644 index 00000000..450333b3 --- /dev/null +++ b/shared/img/country-flags/comoros.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/cook_islands.svg b/shared/img/country-flags/cook_islands.svg new file mode 100644 index 00000000..760abce0 --- /dev/null +++ b/shared/img/country-flags/cook_islands.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/corsica.svg b/shared/img/country-flags/corsica.svg new file mode 100644 index 00000000..92100d7b --- /dev/null +++ b/shared/img/country-flags/corsica.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/costa_rica.svg b/shared/img/country-flags/costa_rica.svg new file mode 100644 index 00000000..439574b4 --- /dev/null +++ b/shared/img/country-flags/costa_rica.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/shared/img/country-flags/croatia.svg b/shared/img/country-flags/croatia.svg new file mode 100644 index 00000000..cd9d0668 --- /dev/null +++ b/shared/img/country-flags/croatia.svg @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/cuba.svg b/shared/img/country-flags/cuba.svg new file mode 100644 index 00000000..05c80802 --- /dev/null +++ b/shared/img/country-flags/cuba.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/shared/img/country-flags/curacao.svg b/shared/img/country-flags/curacao.svg new file mode 100644 index 00000000..90314bcf --- /dev/null +++ b/shared/img/country-flags/curacao.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/shared/img/country-flags/cyprus.svg b/shared/img/country-flags/cyprus.svg new file mode 100644 index 00000000..5a7f99fd --- /dev/null +++ b/shared/img/country-flags/cyprus.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/czech_republic.svg b/shared/img/country-flags/czech_republic.svg new file mode 100644 index 00000000..22fc0eff --- /dev/null +++ b/shared/img/country-flags/czech_republic.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/democratic_republic_of_congo.svg b/shared/img/country-flags/democratic_republic_of_congo.svg new file mode 100644 index 00000000..0a53ad66 --- /dev/null +++ b/shared/img/country-flags/democratic_republic_of_congo.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/shared/img/country-flags/denmark.svg b/shared/img/country-flags/denmark.svg new file mode 100644 index 00000000..004ba86a --- /dev/null +++ b/shared/img/country-flags/denmark.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/shared/img/country-flags/djibouti.svg b/shared/img/country-flags/djibouti.svg new file mode 100644 index 00000000..da980c82 --- /dev/null +++ b/shared/img/country-flags/djibouti.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/shared/img/country-flags/dominica.svg b/shared/img/country-flags/dominica.svg new file mode 100644 index 00000000..fc489dba --- /dev/null +++ b/shared/img/country-flags/dominica.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/dominican_republic.svg b/shared/img/country-flags/dominican_republic.svg new file mode 100644 index 00000000..8ef2c1e7 --- /dev/null +++ b/shared/img/country-flags/dominican_republic.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/shared/img/country-flags/east_timor.svg b/shared/img/country-flags/east_timor.svg new file mode 100644 index 00000000..7428a3fe --- /dev/null +++ b/shared/img/country-flags/east_timor.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/shared/img/country-flags/ecuador.svg b/shared/img/country-flags/ecuador.svg new file mode 100644 index 00000000..2a177c70 --- /dev/null +++ b/shared/img/country-flags/ecuador.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/shared/img/country-flags/egypt.svg b/shared/img/country-flags/egypt.svg new file mode 100644 index 00000000..f40a67a6 --- /dev/null +++ b/shared/img/country-flags/egypt.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/shared/img/country-flags/el_salvador.svg b/shared/img/country-flags/el_salvador.svg new file mode 100644 index 00000000..c35be940 --- /dev/null +++ b/shared/img/country-flags/el_salvador.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/shared/img/country-flags/england.svg b/shared/img/country-flags/england.svg new file mode 100644 index 00000000..4f8c76bc --- /dev/null +++ b/shared/img/country-flags/england.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/shared/img/country-flags/equatorial_guinea.svg b/shared/img/country-flags/equatorial_guinea.svg new file mode 100644 index 00000000..8b90b37d --- /dev/null +++ b/shared/img/country-flags/equatorial_guinea.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/shared/img/country-flags/eritrea.svg b/shared/img/country-flags/eritrea.svg new file mode 100644 index 00000000..c3b2aac1 --- /dev/null +++ b/shared/img/country-flags/eritrea.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/shared/img/country-flags/estonia.svg b/shared/img/country-flags/estonia.svg new file mode 100644 index 00000000..f949a25c --- /dev/null +++ b/shared/img/country-flags/estonia.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/ethiopia.svg b/shared/img/country-flags/ethiopia.svg new file mode 100644 index 00000000..0a8f05d1 --- /dev/null +++ b/shared/img/country-flags/ethiopia.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/shared/img/country-flags/european_union.svg b/shared/img/country-flags/european_union.svg new file mode 100644 index 00000000..81091756 --- /dev/null +++ b/shared/img/country-flags/european_union.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/falkland_islands.svg b/shared/img/country-flags/falkland_islands.svg new file mode 100644 index 00000000..8463c3d4 --- /dev/null +++ b/shared/img/country-flags/falkland_islands.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/faroe_islands.svg b/shared/img/country-flags/faroe_islands.svg new file mode 100644 index 00000000..1340409d --- /dev/null +++ b/shared/img/country-flags/faroe_islands.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/fiji.svg b/shared/img/country-flags/fiji.svg new file mode 100644 index 00000000..4de4369d --- /dev/null +++ b/shared/img/country-flags/fiji.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/finland.svg b/shared/img/country-flags/finland.svg new file mode 100644 index 00000000..e1ca9d2e --- /dev/null +++ b/shared/img/country-flags/finland.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/shared/img/country-flags/france.svg b/shared/img/country-flags/france.svg new file mode 100644 index 00000000..5140bbea --- /dev/null +++ b/shared/img/country-flags/france.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/french_polynesia.svg b/shared/img/country-flags/french_polynesia.svg new file mode 100644 index 00000000..b6747e09 --- /dev/null +++ b/shared/img/country-flags/french_polynesia.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/gabon.svg b/shared/img/country-flags/gabon.svg new file mode 100644 index 00000000..6f7d74c5 --- /dev/null +++ b/shared/img/country-flags/gabon.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/galapagos_islands.svg b/shared/img/country-flags/galapagos_islands.svg new file mode 100644 index 00000000..e1e4f990 --- /dev/null +++ b/shared/img/country-flags/galapagos_islands.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/gambia.svg b/shared/img/country-flags/gambia.svg new file mode 100644 index 00000000..e615a956 --- /dev/null +++ b/shared/img/country-flags/gambia.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/shared/img/country-flags/georgia.svg b/shared/img/country-flags/georgia.svg new file mode 100644 index 00000000..5877cf59 --- /dev/null +++ b/shared/img/country-flags/georgia.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/shared/img/country-flags/germany.svg b/shared/img/country-flags/germany.svg new file mode 100644 index 00000000..f698e36f --- /dev/null +++ b/shared/img/country-flags/germany.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/ghana.svg b/shared/img/country-flags/ghana.svg new file mode 100644 index 00000000..bcea8553 --- /dev/null +++ b/shared/img/country-flags/ghana.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/shared/img/country-flags/gibraltar.svg b/shared/img/country-flags/gibraltar.svg new file mode 100644 index 00000000..9fb843f5 --- /dev/null +++ b/shared/img/country-flags/gibraltar.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/shared/img/country-flags/greece.svg b/shared/img/country-flags/greece.svg new file mode 100644 index 00000000..4fc86860 --- /dev/null +++ b/shared/img/country-flags/greece.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/greenland.svg b/shared/img/country-flags/greenland.svg new file mode 100644 index 00000000..d3460b99 --- /dev/null +++ b/shared/img/country-flags/greenland.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/shared/img/country-flags/grenada.svg b/shared/img/country-flags/grenada.svg new file mode 100644 index 00000000..865d2bb6 --- /dev/null +++ b/shared/img/country-flags/grenada.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/guam.svg b/shared/img/country-flags/guam.svg new file mode 100644 index 00000000..f587fdfc --- /dev/null +++ b/shared/img/country-flags/guam.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/shared/img/country-flags/guatemala.svg b/shared/img/country-flags/guatemala.svg new file mode 100644 index 00000000..af5d8849 --- /dev/null +++ b/shared/img/country-flags/guatemala.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/shared/img/country-flags/guernsey.svg b/shared/img/country-flags/guernsey.svg new file mode 100644 index 00000000..9047202e --- /dev/null +++ b/shared/img/country-flags/guernsey.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/guinea.svg b/shared/img/country-flags/guinea.svg new file mode 100644 index 00000000..09a6d7dc --- /dev/null +++ b/shared/img/country-flags/guinea.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/guinea_bissau.svg b/shared/img/country-flags/guinea_bissau.svg new file mode 100644 index 00000000..175123cb --- /dev/null +++ b/shared/img/country-flags/guinea_bissau.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/shared/img/country-flags/haiti.svg b/shared/img/country-flags/haiti.svg new file mode 100644 index 00000000..8bd111b4 --- /dev/null +++ b/shared/img/country-flags/haiti.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/shared/img/country-flags/hawaii.svg b/shared/img/country-flags/hawaii.svg new file mode 100644 index 00000000..df04c027 --- /dev/null +++ b/shared/img/country-flags/hawaii.svg @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/honduras.svg b/shared/img/country-flags/honduras.svg new file mode 100644 index 00000000..5cdaadab --- /dev/null +++ b/shared/img/country-flags/honduras.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/shared/img/country-flags/hong_kong.svg b/shared/img/country-flags/hong_kong.svg new file mode 100644 index 00000000..72906d08 --- /dev/null +++ b/shared/img/country-flags/hong_kong.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/shared/img/country-flags/hungary.svg b/shared/img/country-flags/hungary.svg new file mode 100644 index 00000000..aa5c6fbb --- /dev/null +++ b/shared/img/country-flags/hungary.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/iceland.svg b/shared/img/country-flags/iceland.svg new file mode 100644 index 00000000..1d241504 --- /dev/null +++ b/shared/img/country-flags/iceland.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/india.svg b/shared/img/country-flags/india.svg new file mode 100644 index 00000000..e7af9269 --- /dev/null +++ b/shared/img/country-flags/india.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/shared/img/country-flags/indonesia.svg b/shared/img/country-flags/indonesia.svg new file mode 100644 index 00000000..122ffeee --- /dev/null +++ b/shared/img/country-flags/indonesia.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/shared/img/country-flags/iran.svg b/shared/img/country-flags/iran.svg new file mode 100644 index 00000000..12a276ea --- /dev/null +++ b/shared/img/country-flags/iran.svg @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/iraq.svg b/shared/img/country-flags/iraq.svg new file mode 100644 index 00000000..05f3bf3c --- /dev/null +++ b/shared/img/country-flags/iraq.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/shared/img/country-flags/ireland.svg b/shared/img/country-flags/ireland.svg new file mode 100644 index 00000000..de441e48 --- /dev/null +++ b/shared/img/country-flags/ireland.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/isle_of_man.svg b/shared/img/country-flags/isle_of_man.svg new file mode 100644 index 00000000..d95df752 --- /dev/null +++ b/shared/img/country-flags/isle_of_man.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/shared/img/country-flags/israel.svg b/shared/img/country-flags/israel.svg new file mode 100644 index 00000000..4148fbbc --- /dev/null +++ b/shared/img/country-flags/israel.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/shared/img/country-flags/italy.svg b/shared/img/country-flags/italy.svg new file mode 100644 index 00000000..f93c4fb0 --- /dev/null +++ b/shared/img/country-flags/italy.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/ivory_coast.svg b/shared/img/country-flags/ivory_coast.svg new file mode 100644 index 00000000..bc01741b --- /dev/null +++ b/shared/img/country-flags/ivory_coast.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/jamaica.svg b/shared/img/country-flags/jamaica.svg new file mode 100644 index 00000000..cc330223 --- /dev/null +++ b/shared/img/country-flags/jamaica.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/shared/img/country-flags/japan.svg b/shared/img/country-flags/japan.svg new file mode 100644 index 00000000..ebae59e3 --- /dev/null +++ b/shared/img/country-flags/japan.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/shared/img/country-flags/jersey.svg b/shared/img/country-flags/jersey.svg new file mode 100644 index 00000000..5f1860bb --- /dev/null +++ b/shared/img/country-flags/jersey.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/shared/img/country-flags/jordan.svg b/shared/img/country-flags/jordan.svg new file mode 100644 index 00000000..3c355dda --- /dev/null +++ b/shared/img/country-flags/jordan.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/shared/img/country-flags/kazakhstan.svg b/shared/img/country-flags/kazakhstan.svg new file mode 100644 index 00000000..1b5aa032 --- /dev/null +++ b/shared/img/country-flags/kazakhstan.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/shared/img/country-flags/kenya.svg b/shared/img/country-flags/kenya.svg new file mode 100644 index 00000000..c5eca0ef --- /dev/null +++ b/shared/img/country-flags/kenya.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/kosovo.svg b/shared/img/country-flags/kosovo.svg new file mode 100644 index 00000000..aeae9984 --- /dev/null +++ b/shared/img/country-flags/kosovo.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/shared/img/country-flags/kuwait.svg b/shared/img/country-flags/kuwait.svg new file mode 100644 index 00000000..8574ec37 --- /dev/null +++ b/shared/img/country-flags/kuwait.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/shared/img/country-flags/kyrgyzstan.svg b/shared/img/country-flags/kyrgyzstan.svg new file mode 100644 index 00000000..2a6be66c --- /dev/null +++ b/shared/img/country-flags/kyrgyzstan.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/laos.svg b/shared/img/country-flags/laos.svg new file mode 100644 index 00000000..adceeb93 --- /dev/null +++ b/shared/img/country-flags/laos.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/shared/img/country-flags/latvia.svg b/shared/img/country-flags/latvia.svg new file mode 100644 index 00000000..ddc2e21d --- /dev/null +++ b/shared/img/country-flags/latvia.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/shared/img/country-flags/lebanon.svg b/shared/img/country-flags/lebanon.svg new file mode 100644 index 00000000..e3cb30db --- /dev/null +++ b/shared/img/country-flags/lebanon.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/shared/img/country-flags/lesotho.svg b/shared/img/country-flags/lesotho.svg new file mode 100644 index 00000000..0de36c55 --- /dev/null +++ b/shared/img/country-flags/lesotho.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/shared/img/country-flags/liberia.svg b/shared/img/country-flags/liberia.svg new file mode 100644 index 00000000..b47d23d2 --- /dev/null +++ b/shared/img/country-flags/liberia.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/libya.svg b/shared/img/country-flags/libya.svg new file mode 100644 index 00000000..f49e3012 --- /dev/null +++ b/shared/img/country-flags/libya.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/shared/img/country-flags/liechtenstein.svg b/shared/img/country-flags/liechtenstein.svg new file mode 100644 index 00000000..fa7bde8a --- /dev/null +++ b/shared/img/country-flags/liechtenstein.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/lithuania.svg b/shared/img/country-flags/lithuania.svg new file mode 100644 index 00000000..e075eee3 --- /dev/null +++ b/shared/img/country-flags/lithuania.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/luxembourg.svg b/shared/img/country-flags/luxembourg.svg new file mode 100644 index 00000000..a5fdeb24 --- /dev/null +++ b/shared/img/country-flags/luxembourg.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/macao.svg b/shared/img/country-flags/macao.svg new file mode 100644 index 00000000..2abfd6d6 --- /dev/null +++ b/shared/img/country-flags/macao.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/madagascar.svg b/shared/img/country-flags/madagascar.svg new file mode 100644 index 00000000..33949d49 --- /dev/null +++ b/shared/img/country-flags/madagascar.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/madeira.svg b/shared/img/country-flags/madeira.svg new file mode 100644 index 00000000..6364e045 --- /dev/null +++ b/shared/img/country-flags/madeira.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/shared/img/country-flags/malawi.svg b/shared/img/country-flags/malawi.svg new file mode 100644 index 00000000..cc373b2f --- /dev/null +++ b/shared/img/country-flags/malawi.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/shared/img/country-flags/malaysia.svg b/shared/img/country-flags/malaysia.svg new file mode 100644 index 00000000..7cd8e295 --- /dev/null +++ b/shared/img/country-flags/malaysia.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/maldives.svg b/shared/img/country-flags/maldives.svg new file mode 100644 index 00000000..25872145 --- /dev/null +++ b/shared/img/country-flags/maldives.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/mali.svg b/shared/img/country-flags/mali.svg new file mode 100644 index 00000000..b13f1e82 --- /dev/null +++ b/shared/img/country-flags/mali.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/malta.svg b/shared/img/country-flags/malta.svg new file mode 100644 index 00000000..eee472da --- /dev/null +++ b/shared/img/country-flags/malta.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/marshall_island.svg b/shared/img/country-flags/marshall_island.svg new file mode 100644 index 00000000..873964d0 --- /dev/null +++ b/shared/img/country-flags/marshall_island.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/shared/img/country-flags/martinique.svg b/shared/img/country-flags/martinique.svg new file mode 100644 index 00000000..ab8a5615 --- /dev/null +++ b/shared/img/country-flags/martinique.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/shared/img/country-flags/mauritania.svg b/shared/img/country-flags/mauritania.svg new file mode 100644 index 00000000..0b004f6b --- /dev/null +++ b/shared/img/country-flags/mauritania.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/shared/img/country-flags/mauritius.svg b/shared/img/country-flags/mauritius.svg new file mode 100644 index 00000000..6f9792e9 --- /dev/null +++ b/shared/img/country-flags/mauritius.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/shared/img/country-flags/melilla.svg b/shared/img/country-flags/melilla.svg new file mode 100644 index 00000000..068bc2c0 --- /dev/null +++ b/shared/img/country-flags/melilla.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/mexico.svg b/shared/img/country-flags/mexico.svg new file mode 100644 index 00000000..817f8a40 --- /dev/null +++ b/shared/img/country-flags/mexico.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/shared/img/country-flags/micronesia.svg b/shared/img/country-flags/micronesia.svg new file mode 100644 index 00000000..a7046d67 --- /dev/null +++ b/shared/img/country-flags/micronesia.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/shared/img/country-flags/moldova.svg b/shared/img/country-flags/moldova.svg new file mode 100644 index 00000000..0259efde --- /dev/null +++ b/shared/img/country-flags/moldova.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/shared/img/country-flags/monaco.svg b/shared/img/country-flags/monaco.svg new file mode 100644 index 00000000..2c7a8965 --- /dev/null +++ b/shared/img/country-flags/monaco.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/shared/img/country-flags/mongolia.svg b/shared/img/country-flags/mongolia.svg new file mode 100644 index 00000000..f3a0d4b2 --- /dev/null +++ b/shared/img/country-flags/mongolia.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/montenegro.svg b/shared/img/country-flags/montenegro.svg new file mode 100644 index 00000000..8f6efd0f --- /dev/null +++ b/shared/img/country-flags/montenegro.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/shared/img/country-flags/montserrat.svg b/shared/img/country-flags/montserrat.svg new file mode 100644 index 00000000..eb96d6fe --- /dev/null +++ b/shared/img/country-flags/montserrat.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/morocco.svg b/shared/img/country-flags/morocco.svg new file mode 100644 index 00000000..a660cab7 --- /dev/null +++ b/shared/img/country-flags/morocco.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/shared/img/country-flags/mozambique.svg b/shared/img/country-flags/mozambique.svg new file mode 100644 index 00000000..5f9c09cf --- /dev/null +++ b/shared/img/country-flags/mozambique.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/shared/img/country-flags/myanmar.svg b/shared/img/country-flags/myanmar.svg new file mode 100644 index 00000000..f2685340 --- /dev/null +++ b/shared/img/country-flags/myanmar.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/shared/img/country-flags/namibia.svg b/shared/img/country-flags/namibia.svg new file mode 100644 index 00000000..9ed1a6d5 --- /dev/null +++ b/shared/img/country-flags/namibia.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/shared/img/country-flags/nauru.svg b/shared/img/country-flags/nauru.svg new file mode 100644 index 00000000..2c45885b --- /dev/null +++ b/shared/img/country-flags/nauru.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/nepal.svg b/shared/img/country-flags/nepal.svg new file mode 100644 index 00000000..18d926c8 --- /dev/null +++ b/shared/img/country-flags/nepal.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/shared/img/country-flags/netherlands.svg b/shared/img/country-flags/netherlands.svg new file mode 100644 index 00000000..7529d71d --- /dev/null +++ b/shared/img/country-flags/netherlands.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/new_zealand.svg b/shared/img/country-flags/new_zealand.svg new file mode 100644 index 00000000..3368db61 --- /dev/null +++ b/shared/img/country-flags/new_zealand.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/nicaragua.svg b/shared/img/country-flags/nicaragua.svg new file mode 100644 index 00000000..7e94dfc9 --- /dev/null +++ b/shared/img/country-flags/nicaragua.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/shared/img/country-flags/niger.svg b/shared/img/country-flags/niger.svg new file mode 100644 index 00000000..0928f6de --- /dev/null +++ b/shared/img/country-flags/niger.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/shared/img/country-flags/nigeria.svg b/shared/img/country-flags/nigeria.svg new file mode 100644 index 00000000..6eee9b50 --- /dev/null +++ b/shared/img/country-flags/nigeria.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/shared/img/country-flags/niue.svg b/shared/img/country-flags/niue.svg new file mode 100644 index 00000000..31c965a0 --- /dev/null +++ b/shared/img/country-flags/niue.svg @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/norfolk_island.svg b/shared/img/country-flags/norfolk_island.svg new file mode 100644 index 00000000..8802fec0 --- /dev/null +++ b/shared/img/country-flags/norfolk_island.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/shared/img/country-flags/north_korea.svg b/shared/img/country-flags/north_korea.svg new file mode 100644 index 00000000..bd168aa9 --- /dev/null +++ b/shared/img/country-flags/north_korea.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/shared/img/country-flags/northen_cyprus.svg b/shared/img/country-flags/northen_cyprus.svg new file mode 100644 index 00000000..001d1df9 --- /dev/null +++ b/shared/img/country-flags/northen_cyprus.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/shared/img/country-flags/northern_marianas_islands.svg b/shared/img/country-flags/northern_marianas_islands.svg new file mode 100644 index 00000000..6d92405b --- /dev/null +++ b/shared/img/country-flags/northern_marianas_islands.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/shared/img/country-flags/norway.svg b/shared/img/country-flags/norway.svg new file mode 100644 index 00000000..3ce5ecad --- /dev/null +++ b/shared/img/country-flags/norway.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/oman.svg b/shared/img/country-flags/oman.svg new file mode 100644 index 00000000..4c6df0d0 --- /dev/null +++ b/shared/img/country-flags/oman.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/shared/img/country-flags/orkney_islands.svg b/shared/img/country-flags/orkney_islands.svg new file mode 100644 index 00000000..b3d8dc34 --- /dev/null +++ b/shared/img/country-flags/orkney_islands.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/ossetia.svg b/shared/img/country-flags/ossetia.svg new file mode 100644 index 00000000..ef5aef4b --- /dev/null +++ b/shared/img/country-flags/ossetia.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/otan.svg b/shared/img/country-flags/otan.svg new file mode 100644 index 00000000..95a275ec --- /dev/null +++ b/shared/img/country-flags/otan.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/pakistan.svg b/shared/img/country-flags/pakistan.svg new file mode 100644 index 00000000..6fe915d8 --- /dev/null +++ b/shared/img/country-flags/pakistan.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/shared/img/country-flags/palau.svg b/shared/img/country-flags/palau.svg new file mode 100644 index 00000000..25953a5b --- /dev/null +++ b/shared/img/country-flags/palau.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/shared/img/country-flags/palestine.svg b/shared/img/country-flags/palestine.svg new file mode 100644 index 00000000..5ffcb5f2 --- /dev/null +++ b/shared/img/country-flags/palestine.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/shared/img/country-flags/panama.svg b/shared/img/country-flags/panama.svg new file mode 100644 index 00000000..97ec5c16 --- /dev/null +++ b/shared/img/country-flags/panama.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/shared/img/country-flags/papua_new_guinea.svg b/shared/img/country-flags/papua_new_guinea.svg new file mode 100644 index 00000000..3c3f4a55 --- /dev/null +++ b/shared/img/country-flags/papua_new_guinea.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/shared/img/country-flags/paraguay.svg b/shared/img/country-flags/paraguay.svg new file mode 100644 index 00000000..4fc05e94 --- /dev/null +++ b/shared/img/country-flags/paraguay.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/shared/img/country-flags/peru.svg b/shared/img/country-flags/peru.svg new file mode 100644 index 00000000..2f5c81dd --- /dev/null +++ b/shared/img/country-flags/peru.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/shared/img/country-flags/philippines.svg b/shared/img/country-flags/philippines.svg new file mode 100644 index 00000000..ed6948bb --- /dev/null +++ b/shared/img/country-flags/philippines.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/poland.svg b/shared/img/country-flags/poland.svg new file mode 100644 index 00000000..b3bc2873 --- /dev/null +++ b/shared/img/country-flags/poland.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/shared/img/country-flags/portugal.svg b/shared/img/country-flags/portugal.svg new file mode 100644 index 00000000..a50cd7dc --- /dev/null +++ b/shared/img/country-flags/portugal.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/shared/img/country-flags/puerto_rico.svg b/shared/img/country-flags/puerto_rico.svg new file mode 100644 index 00000000..877e917e --- /dev/null +++ b/shared/img/country-flags/puerto_rico.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/shared/img/country-flags/qatar.svg b/shared/img/country-flags/qatar.svg new file mode 100644 index 00000000..b79fe667 --- /dev/null +++ b/shared/img/country-flags/qatar.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/shared/img/country-flags/rapa_nui.svg b/shared/img/country-flags/rapa_nui.svg new file mode 100644 index 00000000..008cb4f9 --- /dev/null +++ b/shared/img/country-flags/rapa_nui.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/shared/img/country-flags/republic_of_macedonia.svg b/shared/img/country-flags/republic_of_macedonia.svg new file mode 100644 index 00000000..4b36cc57 --- /dev/null +++ b/shared/img/country-flags/republic_of_macedonia.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/republic_of_the_congo.svg b/shared/img/country-flags/republic_of_the_congo.svg new file mode 100644 index 00000000..16bec274 --- /dev/null +++ b/shared/img/country-flags/republic_of_the_congo.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/romania.svg b/shared/img/country-flags/romania.svg new file mode 100644 index 00000000..3db71967 --- /dev/null +++ b/shared/img/country-flags/romania.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/russia.svg b/shared/img/country-flags/russia.svg new file mode 100644 index 00000000..17b8f14c --- /dev/null +++ b/shared/img/country-flags/russia.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/shared/img/country-flags/rwanda.svg b/shared/img/country-flags/rwanda.svg new file mode 100644 index 00000000..b93a94bd --- /dev/null +++ b/shared/img/country-flags/rwanda.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/shared/img/country-flags/saba_island.svg b/shared/img/country-flags/saba_island.svg new file mode 100644 index 00000000..a56a2cca --- /dev/null +++ b/shared/img/country-flags/saba_island.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/shared/img/country-flags/sahrawi_arab_democratic_republic.svg b/shared/img/country-flags/sahrawi_arab_democratic_republic.svg new file mode 100644 index 00000000..ef1ae02d --- /dev/null +++ b/shared/img/country-flags/sahrawi_arab_democratic_republic.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/shared/img/country-flags/saint_kitts_and_nevis.svg b/shared/img/country-flags/saint_kitts_and_nevis.svg new file mode 100644 index 00000000..252f5fa8 --- /dev/null +++ b/shared/img/country-flags/saint_kitts_and_nevis.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/shared/img/country-flags/samoa.svg b/shared/img/country-flags/samoa.svg new file mode 100644 index 00000000..10bd97e7 --- /dev/null +++ b/shared/img/country-flags/samoa.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/shared/img/country-flags/san_marino.svg b/shared/img/country-flags/san_marino.svg new file mode 100644 index 00000000..7b9f0c4d --- /dev/null +++ b/shared/img/country-flags/san_marino.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/shared/img/country-flags/sao_tome_and_principe.svg b/shared/img/country-flags/sao_tome_and_principe.svg new file mode 100644 index 00000000..d55b1945 --- /dev/null +++ b/shared/img/country-flags/sao_tome_and_principe.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/shared/img/country-flags/sardinia.svg b/shared/img/country-flags/sardinia.svg new file mode 100644 index 00000000..67f7af13 --- /dev/null +++ b/shared/img/country-flags/sardinia.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/saudi_arabia.svg b/shared/img/country-flags/saudi_arabia.svg new file mode 100644 index 00000000..ff6d1aeb --- /dev/null +++ b/shared/img/country-flags/saudi_arabia.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/shared/img/country-flags/scotland.svg b/shared/img/country-flags/scotland.svg new file mode 100644 index 00000000..0b2afd55 --- /dev/null +++ b/shared/img/country-flags/scotland.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/senegal.svg b/shared/img/country-flags/senegal.svg new file mode 100644 index 00000000..5bb77343 --- /dev/null +++ b/shared/img/country-flags/senegal.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/shared/img/country-flags/serbia.svg b/shared/img/country-flags/serbia.svg new file mode 100644 index 00000000..8e3a4385 --- /dev/null +++ b/shared/img/country-flags/serbia.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/shared/img/country-flags/seychelles.svg b/shared/img/country-flags/seychelles.svg new file mode 100644 index 00000000..5053f3ef --- /dev/null +++ b/shared/img/country-flags/seychelles.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/shared/img/country-flags/sicily.svg b/shared/img/country-flags/sicily.svg new file mode 100644 index 00000000..72468a05 --- /dev/null +++ b/shared/img/country-flags/sicily.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/shared/img/country-flags/sierra_leone.svg b/shared/img/country-flags/sierra_leone.svg new file mode 100644 index 00000000..de538eb3 --- /dev/null +++ b/shared/img/country-flags/sierra_leone.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/singapore.svg b/shared/img/country-flags/singapore.svg new file mode 100644 index 00000000..2f40722d --- /dev/null +++ b/shared/img/country-flags/singapore.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/shared/img/country-flags/sint_eustatius.svg b/shared/img/country-flags/sint_eustatius.svg new file mode 100644 index 00000000..b5e7d436 --- /dev/null +++ b/shared/img/country-flags/sint_eustatius.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/shared/img/country-flags/sint_maarten.svg b/shared/img/country-flags/sint_maarten.svg new file mode 100644 index 00000000..b48cd0e9 --- /dev/null +++ b/shared/img/country-flags/sint_maarten.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/shared/img/country-flags/slovakia.svg b/shared/img/country-flags/slovakia.svg new file mode 100644 index 00000000..b98ccdea --- /dev/null +++ b/shared/img/country-flags/slovakia.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/shared/img/country-flags/slovenia.svg b/shared/img/country-flags/slovenia.svg new file mode 100644 index 00000000..a6bc21a7 --- /dev/null +++ b/shared/img/country-flags/slovenia.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/shared/img/country-flags/solomon_islands.svg b/shared/img/country-flags/solomon_islands.svg new file mode 100644 index 00000000..9b1dcacd --- /dev/null +++ b/shared/img/country-flags/solomon_islands.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/shared/img/country-flags/somalia.svg b/shared/img/country-flags/somalia.svg new file mode 100644 index 00000000..28b12fdd --- /dev/null +++ b/shared/img/country-flags/somalia.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/shared/img/country-flags/somaliland.svg b/shared/img/country-flags/somaliland.svg new file mode 100644 index 00000000..f8eb346f --- /dev/null +++ b/shared/img/country-flags/somaliland.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/south_africa.svg b/shared/img/country-flags/south_africa.svg new file mode 100644 index 00000000..b0f989d6 --- /dev/null +++ b/shared/img/country-flags/south_africa.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/shared/img/country-flags/south_korea.svg b/shared/img/country-flags/south_korea.svg new file mode 100644 index 00000000..f3119512 --- /dev/null +++ b/shared/img/country-flags/south_korea.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/south_sudan.svg b/shared/img/country-flags/south_sudan.svg new file mode 100644 index 00000000..73321027 --- /dev/null +++ b/shared/img/country-flags/south_sudan.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/shared/img/country-flags/spain.svg b/shared/img/country-flags/spain.svg new file mode 100644 index 00000000..5da66763 --- /dev/null +++ b/shared/img/country-flags/spain.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/shared/img/country-flags/sri_lanka.svg b/shared/img/country-flags/sri_lanka.svg new file mode 100644 index 00000000..30b4fa36 --- /dev/null +++ b/shared/img/country-flags/sri_lanka.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/st_barts.svg b/shared/img/country-flags/st_barts.svg new file mode 100644 index 00000000..5867ef29 --- /dev/null +++ b/shared/img/country-flags/st_barts.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/shared/img/country-flags/st_lucia.svg b/shared/img/country-flags/st_lucia.svg new file mode 100644 index 00000000..bb5d3768 --- /dev/null +++ b/shared/img/country-flags/st_lucia.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/shared/img/country-flags/st_vincent_and_the_grenadines.svg b/shared/img/country-flags/st_vincent_and_the_grenadines.svg new file mode 100644 index 00000000..0c75c11a --- /dev/null +++ b/shared/img/country-flags/st_vincent_and_the_grenadines.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/shared/img/country-flags/sudan.svg b/shared/img/country-flags/sudan.svg new file mode 100644 index 00000000..54c67b8a --- /dev/null +++ b/shared/img/country-flags/sudan.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/shared/img/country-flags/suriname.svg b/shared/img/country-flags/suriname.svg new file mode 100644 index 00000000..185dd20a --- /dev/null +++ b/shared/img/country-flags/suriname.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/shared/img/country-flags/sweden.svg b/shared/img/country-flags/sweden.svg new file mode 100644 index 00000000..85e6fc76 --- /dev/null +++ b/shared/img/country-flags/sweden.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/shared/img/country-flags/switzerland.svg b/shared/img/country-flags/switzerland.svg new file mode 100644 index 00000000..07fa9465 --- /dev/null +++ b/shared/img/country-flags/switzerland.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/shared/img/country-flags/syria.svg b/shared/img/country-flags/syria.svg new file mode 100644 index 00000000..aa063341 --- /dev/null +++ b/shared/img/country-flags/syria.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/shared/img/country-flags/taiwan.svg b/shared/img/country-flags/taiwan.svg new file mode 100644 index 00000000..c27808bf --- /dev/null +++ b/shared/img/country-flags/taiwan.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/shared/img/country-flags/tajikistan.svg b/shared/img/country-flags/tajikistan.svg new file mode 100644 index 00000000..c3895d28 --- /dev/null +++ b/shared/img/country-flags/tajikistan.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/tanzania.svg b/shared/img/country-flags/tanzania.svg new file mode 100644 index 00000000..4b44479b --- /dev/null +++ b/shared/img/country-flags/tanzania.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/shared/img/country-flags/thailand.svg b/shared/img/country-flags/thailand.svg new file mode 100644 index 00000000..87adb2a3 --- /dev/null +++ b/shared/img/country-flags/thailand.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/shared/img/country-flags/tibet.svg b/shared/img/country-flags/tibet.svg new file mode 100644 index 00000000..8cd2d771 --- /dev/null +++ b/shared/img/country-flags/tibet.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/togo.svg b/shared/img/country-flags/togo.svg new file mode 100644 index 00000000..2779ad92 --- /dev/null +++ b/shared/img/country-flags/togo.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/shared/img/country-flags/tokelau.svg b/shared/img/country-flags/tokelau.svg new file mode 100644 index 00000000..88551d90 --- /dev/null +++ b/shared/img/country-flags/tokelau.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/tonga.svg b/shared/img/country-flags/tonga.svg new file mode 100644 index 00000000..5e8b2a31 --- /dev/null +++ b/shared/img/country-flags/tonga.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/transnistria.svg b/shared/img/country-flags/transnistria.svg new file mode 100644 index 00000000..66726adb --- /dev/null +++ b/shared/img/country-flags/transnistria.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/shared/img/country-flags/trinidad_and_tobago.svg b/shared/img/country-flags/trinidad_and_tobago.svg new file mode 100644 index 00000000..6a548355 --- /dev/null +++ b/shared/img/country-flags/trinidad_and_tobago.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/tubalu.svg b/shared/img/country-flags/tubalu.svg new file mode 100644 index 00000000..cc64f022 --- /dev/null +++ b/shared/img/country-flags/tubalu.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/tunisia.svg b/shared/img/country-flags/tunisia.svg new file mode 100644 index 00000000..e3b3d54a --- /dev/null +++ b/shared/img/country-flags/tunisia.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/shared/img/country-flags/turkey.svg b/shared/img/country-flags/turkey.svg new file mode 100644 index 00000000..3d94a034 --- /dev/null +++ b/shared/img/country-flags/turkey.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/shared/img/country-flags/turkmenistan.svg b/shared/img/country-flags/turkmenistan.svg new file mode 100644 index 00000000..43c90fda --- /dev/null +++ b/shared/img/country-flags/turkmenistan.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/turks_and_caicos.svg b/shared/img/country-flags/turks_and_caicos.svg new file mode 100644 index 00000000..b79b9e7b --- /dev/null +++ b/shared/img/country-flags/turks_and_caicos.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/uganda.svg b/shared/img/country-flags/uganda.svg new file mode 100644 index 00000000..4850c23e --- /dev/null +++ b/shared/img/country-flags/uganda.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/shared/img/country-flags/ukraine.svg b/shared/img/country-flags/ukraine.svg new file mode 100644 index 00000000..8bd80698 --- /dev/null +++ b/shared/img/country-flags/ukraine.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/shared/img/country-flags/united_arab_emirates.svg b/shared/img/country-flags/united_arab_emirates.svg new file mode 100644 index 00000000..6900d139 --- /dev/null +++ b/shared/img/country-flags/united_arab_emirates.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/shared/img/country-flags/united_kingdom.svg b/shared/img/country-flags/united_kingdom.svg new file mode 100644 index 00000000..27fa0fce --- /dev/null +++ b/shared/img/country-flags/united_kingdom.svg @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/united_nations.svg b/shared/img/country-flags/united_nations.svg new file mode 100644 index 00000000..5ae15e17 --- /dev/null +++ b/shared/img/country-flags/united_nations.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/shared/img/country-flags/united_states_of_america.svg b/shared/img/country-flags/united_states_of_america.svg new file mode 100644 index 00000000..d151de85 --- /dev/null +++ b/shared/img/country-flags/united_states_of_america.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/uruguay.svg b/shared/img/country-flags/uruguay.svg new file mode 100644 index 00000000..bd04e2af --- /dev/null +++ b/shared/img/country-flags/uruguay.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/shared/img/country-flags/uzbekistn.svg b/shared/img/country-flags/uzbekistn.svg new file mode 100644 index 00000000..82707ae7 --- /dev/null +++ b/shared/img/country-flags/uzbekistn.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/vanuatu.svg b/shared/img/country-flags/vanuatu.svg new file mode 100644 index 00000000..a2d41867 --- /dev/null +++ b/shared/img/country-flags/vanuatu.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/shared/img/country-flags/vatican_city.svg b/shared/img/country-flags/vatican_city.svg new file mode 100644 index 00000000..6d12a17e --- /dev/null +++ b/shared/img/country-flags/vatican_city.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/shared/img/country-flags/venezuela.svg b/shared/img/country-flags/venezuela.svg new file mode 100644 index 00000000..08fac1b3 --- /dev/null +++ b/shared/img/country-flags/venezuela.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/vietnam.svg b/shared/img/country-flags/vietnam.svg new file mode 100644 index 00000000..8ca5595a --- /dev/null +++ b/shared/img/country-flags/vietnam.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/shared/img/country-flags/virgin_islands.svg b/shared/img/country-flags/virgin_islands.svg new file mode 100644 index 00000000..ae556655 --- /dev/null +++ b/shared/img/country-flags/virgin_islands.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/shared/img/country-flags/wales.svg b/shared/img/country-flags/wales.svg new file mode 100644 index 00000000..a9567f06 --- /dev/null +++ b/shared/img/country-flags/wales.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/worldwide.svg b/shared/img/country-flags/worldwide.svg new file mode 100644 index 00000000..d63d27c7 --- /dev/null +++ b/shared/img/country-flags/worldwide.svg @@ -0,0 +1,25 @@ + + + + + + + + + + diff --git a/shared/img/country-flags/yemen.svg b/shared/img/country-flags/yemen.svg new file mode 100644 index 00000000..c92a0336 --- /dev/null +++ b/shared/img/country-flags/yemen.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/shared/img/country-flags/zambia.svg b/shared/img/country-flags/zambia.svg new file mode 100644 index 00000000..1c4656bf --- /dev/null +++ b/shared/img/country-flags/zambia.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/shared/img/country-flags/zimbabwe.svg b/shared/img/country-flags/zimbabwe.svg new file mode 100644 index 00000000..da02c725 --- /dev/null +++ b/shared/img/country-flags/zimbabwe.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/shared/js/SelectedClientInfo.ts b/shared/js/SelectedClientInfo.ts index b0462286..9ca54744 100644 --- a/shared/js/SelectedClientInfo.ts +++ b/shared/js/SelectedClientInfo.ts @@ -195,7 +195,7 @@ export class SelectedClientInfo { private updateCachedCountry(client: ClientEntry) { this.currentClientStatus.country = { flag: client.properties.client_country, - name: i18nc.country_name(client.properties.client_country.toUpperCase()), + name: i18nc.getCountryName(client.properties.client_country.toUpperCase()), }; } diff --git a/shared/js/i18n/country.ts b/shared/js/i18n/country.ts index 63ad9817..00470fe8 100644 --- a/shared/js/i18n/country.ts +++ b/shared/js/i18n/country.ts @@ -1,1503 +1,1793 @@ -import {tr} from "../i18n/localize"; +import "svg-sprites/country-flags"; +import {CountryFlag} from "svg-sprites/country-flags"; +import {LogCategory, logWarn} from "tc-shared/log"; interface CountryInfo { name: string; alpha_2: string; alpha_3: string; un_code: number; -} -const country_infos: CountryInfo[] = []; -const alpha_2_map: {[name: string]:CountryInfo} = {}; + icon: string; -const fill_country_infos = (array: CountryInfo[]) => { + flagMissingWarned?: boolean; +} +const registeredCountries: CountryInfo[] = []; +const alphaCode2Info: { [name: string]: CountryInfo } = {}; + +const registerCountries = (array: CountryInfo[]) => { array.push({ name: "Afghanistan", alpha_2: "AF", alpha_3: "AFG", - un_code: 4 + un_code: 4, + icon: "afghanistan", }); array.push({ name: "Aland Islands", alpha_2: "AX", alpha_3: "ALA", - un_code: 248 + un_code: 248, + icon: "aland-islands", }); array.push({ name: "Albania", alpha_2: "AL", alpha_3: "ALB", - un_code: 8 + un_code: 8, + icon: "albania", }); array.push({ name: "Algeria", alpha_2: "DZ", alpha_3: "DZA", - un_code: 12 + un_code: 12, + icon: "algeria", }); array.push({ name: "American Samoa", alpha_2: "AS", alpha_3: "ASM", - un_code: 16 + un_code: 16, + icon: "american-samoa", }); array.push({ name: "Andorra", alpha_2: "AD", alpha_3: "AND", - un_code: 20 + un_code: 20, + icon: "andorra", }); array.push({ name: "Angola", alpha_2: "AO", alpha_3: "AGO", - un_code: 24 + un_code: 24, + icon: "angola", }); array.push({ name: "Anguilla", alpha_2: "AI", alpha_3: "AIA", - un_code: 660 + un_code: 660, + icon: "anguilla", }); + /* TODO(flag): https://en.wikipedia.org/wiki/Flag_of_Antarctica */ array.push({ name: "Antarctica", alpha_2: "AQ", alpha_3: "ATA", - un_code: 10 + un_code: 10, + icon: "worldwide", }); array.push({ name: "Antigua and Barbuda", alpha_2: "AG", alpha_3: "ATG", - un_code: 28 + un_code: 28, + icon: "antigua-and-barbuda", }); array.push({ name: "Argentina", alpha_2: "AR", alpha_3: "ARG", - un_code: 32 + un_code: 32, + icon: "argentina", }); array.push({ name: "Armenia", alpha_2: "AM", alpha_3: "ARM", - un_code: 51 + un_code: 51, + icon: "armenia", }); array.push({ name: "Aruba", alpha_2: "AW", alpha_3: "ABW", - un_code: 533 + un_code: 533, + icon: "aruba", }); array.push({ name: "Australia", alpha_2: "AU", alpha_3: "AUS", - un_code: 36 + un_code: 36, + icon: "australia", }); array.push({ name: "Austria", alpha_2: "AT", alpha_3: "AUT", - un_code: 40 + un_code: 40, + icon: "austria", }); array.push({ name: "Azerbaijan", alpha_2: "AZ", alpha_3: "AZE", - un_code: 31 + un_code: 31, + icon: "azerbaijan", }); array.push({ name: "Bahamas", alpha_2: "BS", alpha_3: "BHS", - un_code: 44 + un_code: 44, + icon: "bahamas", }); array.push({ name: "Bahrain", alpha_2: "BH", alpha_3: "BHR", - un_code: 48 + un_code: 48, + icon: "bahrain", }); array.push({ name: "Bangladesh", alpha_2: "BD", alpha_3: "BGD", - un_code: 50 + un_code: 50, + icon: "bangladesh", }); array.push({ name: "Barbados", alpha_2: "BB", alpha_3: "BRB", - un_code: 52 + un_code: 52, + icon: "barbados", }); array.push({ name: "Belarus", alpha_2: "BY", alpha_3: "BLR", - un_code: 112 + un_code: 112, + icon: "belarus", }); array.push({ name: "Belgium", alpha_2: "BE", alpha_3: "BEL", - un_code: 56 + un_code: 56, + icon: "belgium", }); array.push({ name: "Belize", alpha_2: "BZ", alpha_3: "BLZ", - un_code: 84 + un_code: 84, + icon: "belize", }); array.push({ name: "Benin", alpha_2: "BJ", alpha_3: "BEN", - un_code: 204 + un_code: 204, + icon: "benin", }); array.push({ name: "Bermuda", alpha_2: "BM", alpha_3: "BMU", - un_code: 60 + un_code: 60, + icon: "bermuda", }); array.push({ name: "Bhutan", alpha_2: "BT", alpha_3: "BTN", - un_code: 64 + un_code: 64, + icon: "bhutan", }); array.push({ name: "Bolivia", alpha_2: "BO", alpha_3: "BOL", - un_code: 68 + un_code: 68, + icon: "bolivia", }); array.push({ name: "Bosnia and Herzegovina", alpha_2: "BA", alpha_3: "BIH", - un_code: 70 + un_code: 70, + icon: "bosnia-and-herzegovina", }); array.push({ name: "Botswana", alpha_2: "BW", alpha_3: "BWA", - un_code: 72 + un_code: 72, + icon: "botswana", }); + /* Island uninhabited */ array.push({ name: "Bouvet Island", alpha_2: "BV", alpha_3: "BVT", - un_code: 74 + un_code: 74, + icon: "worldwide", }); array.push({ name: "Brazil", alpha_2: "BR", alpha_3: "BRA", - un_code: 76 + un_code: 76, + icon: "brazil", }); array.push({ name: "British Virgin Islands", alpha_2: "VG", alpha_3: "VGB", - un_code: 92 + un_code: 92, + icon: "british-virgin-islands", }); array.push({ name: "British Indian Ocean Territory", alpha_2: "IO", alpha_3: "IOT", - un_code: 86 + un_code: 86, + icon: "british-indian-ocean-territory", }); + /* TODO(flag): https://de.wikipedia.org/wiki/Brunei */ array.push({ name: "Brunei Darussalam", alpha_2: "BN", alpha_3: "BRN", - un_code: 96 + un_code: 96, + icon: "worldwide", }); array.push({ name: "Bulgaria", alpha_2: "BG", alpha_3: "BGR", - un_code: 100 + un_code: 100, + icon: "bulgaria", }); array.push({ name: "Burkina Faso", alpha_2: "BF", alpha_3: "BFA", - un_code: 854 + un_code: 854, + icon: "burkina-faso", }); array.push({ name: "Burundi", alpha_2: "BI", alpha_3: "BDI", - un_code: 108 + un_code: 108, + icon: "burundi", }); array.push({ name: "Cambodia", alpha_2: "KH", alpha_3: "KHM", - un_code: 116 + un_code: 116, + icon: "cambodia", }); array.push({ name: "Cameroon", alpha_2: "CM", alpha_3: "CMR", - un_code: 120 + un_code: 120, + icon: "cameroon", }); array.push({ name: "Canada", alpha_2: "CA", alpha_3: "CAN", - un_code: 124 + un_code: 124, + icon: "canada", }); array.push({ name: "Cape Verde", alpha_2: "CV", alpha_3: "CPV", - un_code: 132 + un_code: 132, + icon: "cape-verde", }); array.push({ name: "Cayman Islands", alpha_2: "KY", alpha_3: "CYM", - un_code: 136 + un_code: 136, + icon: "cayman-islands", }); array.push({ name: "Central African Republic", alpha_2: "CF", alpha_3: "CAF", - un_code: 140 + un_code: 140, + icon: "central-african-republic", }); array.push({ name: "Chad", alpha_2: "TD", alpha_3: "TCD", - un_code: 148 + un_code: 148, + icon: "chad", }); array.push({ name: "Chile", alpha_2: "CL", alpha_3: "CHL", - un_code: 152 + un_code: 152, + icon: "chile", }); array.push({ name: "China", alpha_2: "CN", alpha_3: "CHN", - un_code: 156 + un_code: 156, + icon: "china", }); array.push({ name: "Hong Kong, SAR China", alpha_2: "HK", alpha_3: "HKG", - un_code: 344 + un_code: 344, + icon: "hong-kong", }); array.push({ name: "Macao, SAR China", alpha_2: "MO", alpha_3: "MAC", - un_code: 446 + un_code: 446, + icon: "macao", }); array.push({ name: "Christmas Island", alpha_2: "CX", alpha_3: "CXR", - un_code: 162 + un_code: 162, + icon: "christmas-island", }); array.push({ name: "Cocos (Keeling) Islands", alpha_2: "CC", alpha_3: "CCK", - un_code: 166 + un_code: 166, + icon: "cocos-island", }); array.push({ name: "Colombia", alpha_2: "CO", alpha_3: "COL", - un_code: 170 + un_code: 170, + icon: "colombia", }); array.push({ name: "Comoros", alpha_2: "KM", alpha_3: "COM", - un_code: 174 + un_code: 174, + icon: "comoros", }); array.push({ - name: "Congo (Brazzaville)", + name: "Congo (Brazzaville)", alpha_2: "CG", alpha_3: "COG", - un_code: 178 + un_code: 178, + icon: "republic-of-the-congo", }); array.push({ - name: "Congo, (Kinshasa)", + name: "Congo (Kinshasa)", alpha_2: "CD", alpha_3: "COD", - un_code: 180 + un_code: 180, + icon: "democratic-republic-of-congo", }); array.push({ name: "Cook Islands", alpha_2: "CK", alpha_3: "COK", - un_code: 184 + un_code: 184, + icon: "cook-islands", }); array.push({ name: "Costa Rica", alpha_2: "CR", alpha_3: "CRI", - un_code: 188 + un_code: 188, + icon: "costa-rica", }); array.push({ name: "Côte d'Ivoire", alpha_2: "CI", alpha_3: "CIV", - un_code: 384 + un_code: 384, + icon: "ivory-coast", }); array.push({ name: "Croatia", alpha_2: "HR", alpha_3: "HRV", - un_code: 191 + un_code: 191, + icon: "croatia", }); array.push({ name: "Cuba", alpha_2: "CU", alpha_3: "CUB", - un_code: 192 + un_code: 192, + icon: "cuba", }); array.push({ name: "Cyprus", alpha_2: "CY", alpha_3: "CYP", - un_code: 196 + un_code: 196, + icon: "cyprus", }); array.push({ name: "Czech Republic", alpha_2: "CZ", alpha_3: "CZE", - un_code: 203 + un_code: 203, + icon: "czech-republic", }); array.push({ name: "Denmark", alpha_2: "DK", alpha_3: "DNK", - un_code: 208 + un_code: 208, + icon: "denmark", }); array.push({ name: "Djibouti", alpha_2: "DJ", alpha_3: "DJI", - un_code: 262 + un_code: 262, + icon: "djibouti", }); array.push({ name: "Dominica", alpha_2: "DM", alpha_3: "DMA", - un_code: 212 + un_code: 212, + icon: "dominica", }); array.push({ name: "Dominican Republic", alpha_2: "DO", alpha_3: "DOM", - un_code: 214 + un_code: 214, + icon: "dominican-republic", }); array.push({ name: "Ecuador", alpha_2: "EC", alpha_3: "ECU", - un_code: 218 + un_code: 218, + icon: "ecuador", }); array.push({ name: "Egypt", alpha_2: "EG", alpha_3: "EGY", - un_code: 818 + un_code: 818, + icon: "egypt", }); array.push({ name: "El Salvador", alpha_2: "SV", alpha_3: "SLV", - un_code: 222 + un_code: 222, + icon: "el-salvador", }); array.push({ name: "Equatorial Guinea", alpha_2: "GQ", alpha_3: "GNQ", - un_code: 226 + un_code: 226, + icon: "equatorial-guinea", }); array.push({ name: "Eritrea", alpha_2: "ER", alpha_3: "ERI", - un_code: 232 + un_code: 232, + icon: "eritrea", }); array.push({ name: "Estonia", alpha_2: "EE", alpha_3: "EST", - un_code: 233 + un_code: 233, + icon: "estonia", }); array.push({ name: "Ethiopia", alpha_2: "ET", alpha_3: "ETH", - un_code: 231 + un_code: 231, + icon: "ethiopia", }); array.push({ name: "Falkland Islands (Malvinas)", alpha_2: "FK", alpha_3: "FLK", - un_code: 238 + un_code: 238, + icon: "falkland-islands", }); array.push({ name: "Faroe Islands", alpha_2: "FO", alpha_3: "FRO", - un_code: 234 + un_code: 234, + icon: "faroe-islands", }); array.push({ name: "Fiji", alpha_2: "FJ", alpha_3: "FJI", - un_code: 242 + un_code: 242, + icon: "fiji", }); array.push({ name: "Finland", alpha_2: "FI", alpha_3: "FIN", - un_code: 246 + un_code: 246, + icon: "finland", }); array.push({ name: "France", alpha_2: "FR", alpha_3: "FRA", - un_code: 250 + un_code: 250, + icon: "france", }); + /* TODO(flag): https://en.wikipedia.org/wiki/French_Guiana */ array.push({ name: "French Guiana", alpha_2: "GF", alpha_3: "GUF", - un_code: 254 + un_code: 254, + icon: "worldwide", }); array.push({ name: "French Polynesia", alpha_2: "PF", alpha_3: "PYF", - un_code: 258 + un_code: 258, + icon: "french-polynesia", }); + /* TODO(flag): https://de.wikipedia.org/wiki/Französische_Süd-_und_Antarktisgebiete */ array.push({ name: "French Southern Territories", alpha_2: "TF", alpha_3: "ATF", - un_code: 260 + un_code: 260, + icon: "worldwide", }); array.push({ name: "Gabon", alpha_2: "GA", alpha_3: "GAB", - un_code: 266 + un_code: 266, + icon: "gabon", }); array.push({ name: "Gambia", alpha_2: "GM", alpha_3: "GMB", - un_code: 270 + un_code: 270, + icon: "gambia", }); array.push({ name: "Georgia", alpha_2: "GE", alpha_3: "GEO", - un_code: 268 + un_code: 268, + icon: "georgia", }); array.push({ name: "Germany", alpha_2: "DE", alpha_3: "DEU", - un_code: 276 + un_code: 276, + icon: "germany", }); array.push({ name: "Ghana", alpha_2: "GH", alpha_3: "GHA", - un_code: 288 + un_code: 288, + icon: "ghana", }); array.push({ name: "Gibraltar", alpha_2: "GI", alpha_3: "GIB", - un_code: 292 + un_code: 292, + icon: "gibraltar", }); array.push({ name: "Greece", alpha_2: "GR", alpha_3: "GRC", - un_code: 300 + un_code: 300, + icon: "greece", }); array.push({ name: "Greenland", alpha_2: "GL", alpha_3: "GRL", - un_code: 304 + un_code: 304, + icon: "greenland", }); array.push({ name: "Grenada", alpha_2: "GD", alpha_3: "GRD", - un_code: 308 + un_code: 308, + icon: "grenada", }); + /* The france flag is the official flag of Guadeloupe */ array.push({ name: "Guadeloupe", alpha_2: "GP", alpha_3: "GLP", - un_code: 312 + un_code: 312, + icon: "france", }); array.push({ name: "Guam", alpha_2: "GU", alpha_3: "GUM", - un_code: 316 + un_code: 316, + icon: "guam", }); array.push({ name: "Guatemala", alpha_2: "GT", alpha_3: "GTM", - un_code: 320 + un_code: 320, + icon: "guatemala", }); array.push({ name: "Guernsey", alpha_2: "GG", alpha_3: "GGY", - un_code: 831 + un_code: 831, + icon: "guernsey", }); array.push({ name: "Guinea", alpha_2: "GN", alpha_3: "GIN", - un_code: 324 + un_code: 324, + icon: "guinea", }); array.push({ name: "Guinea-Bissau", alpha_2: "GW", alpha_3: "GNB", - un_code: 624 + un_code: 624, + icon: "guinea_bissau", }); + /* TODO(flag): https://de.wikipedia.org/wiki/Guyana */ array.push({ name: "Guyana", alpha_2: "GY", alpha_3: "GUY", - un_code: 328 + un_code: 328, + icon: "worldwide", }); array.push({ name: "Haiti", alpha_2: "HT", alpha_3: "HTI", - un_code: 332 + un_code: 332, + icon: "haiti", }); + /* Uninhibited */ array.push({ name: "Heard and Mcdonald Islands", alpha_2: "HM", alpha_3: "HMD", - un_code: 334 + un_code: 334, + icon: "worldwide", }); array.push({ - name: "Holy See (Vatican City State)", + name: "Holy See (Vatican City State)", alpha_2: "VA", alpha_3: "VAT", - un_code: 336 + un_code: 336, + icon: "vatican_city", }); array.push({ name: "Honduras", alpha_2: "HN", alpha_3: "HND", - un_code: 340 + un_code: 340, + icon: "honduras", }); array.push({ name: "Hungary", alpha_2: "HU", alpha_3: "HUN", - un_code: 348 + un_code: 348, + icon: "hungary", }); array.push({ name: "Iceland", alpha_2: "IS", alpha_3: "ISL", - un_code: 352 + un_code: 352, + icon: "iceland", }); array.push({ name: "India", alpha_2: "IN", alpha_3: "IND", - un_code: 356 + un_code: 356, + icon: "india", }); array.push({ name: "Indonesia", alpha_2: "ID", alpha_3: "IDN", - un_code: 360 + un_code: 360, + icon: "indonesia", }); array.push({ name: "Iran, Islamic Republic of", alpha_2: "IR", alpha_3: "IRN", - un_code: 364 + un_code: 364, + icon: "iran", }); array.push({ name: "Iraq", alpha_2: "IQ", alpha_3: "IRQ", - un_code: 368 + un_code: 368, + icon: "iraq", }); array.push({ name: "Ireland", alpha_2: "IE", alpha_3: "IRL", - un_code: 372 + un_code: 372, + icon: "ireland", }); array.push({ name: "Isle of Man", alpha_2: "IM", alpha_3: "IMN", - un_code: 833 + un_code: 833, + icon: "isle-of-man", }); array.push({ name: "Israel", alpha_2: "IL", alpha_3: "ISR", - un_code: 376 + un_code: 376, + icon: "israel", }); array.push({ name: "Italy", alpha_2: "IT", alpha_3: "ITA", - un_code: 380 + un_code: 380, + icon: "italy", }); array.push({ name: "Jamaica", alpha_2: "JM", alpha_3: "JAM", - un_code: 388 + un_code: 388, + icon: "jamaica", }); array.push({ name: "Japan", alpha_2: "JP", alpha_3: "JPN", - un_code: 392 + un_code: 392, + icon: "japan", }); array.push({ name: "Jersey", alpha_2: "JE", alpha_3: "JEY", - un_code: 832 + un_code: 832, + icon: "jersey", }); array.push({ name: "Jordan", alpha_2: "JO", alpha_3: "JOR", - un_code: 400 + un_code: 400, + icon: "jordan", }); array.push({ name: "Kazakhstan", alpha_2: "KZ", alpha_3: "KAZ", - un_code: 398 + un_code: 398, + icon: "kazakhstan", }); array.push({ name: "Kenya", alpha_2: "KE", alpha_3: "KEN", - un_code: 404 + un_code: 404, + icon: "kenya", }); + /* TODO(flag): https://de.wikipedia.org/wiki/Kiribati */ array.push({ name: "Kiribati", alpha_2: "KI", alpha_3: "KIR", - un_code: 296 + un_code: 296, + icon: "worldwide", }); + /* Will ever anybody join from there? :D */ array.push({ - name: "Korea (North)", + name: "Korea (North)", alpha_2: "KP", alpha_3: "PRK", - un_code: 408 + un_code: 408, + icon: "north-korea", }); array.push({ - name: "Korea (South)", + name: "Korea (South)", alpha_2: "KR", alpha_3: "KOR", - un_code: 410 + un_code: 410, + icon: "south-korea", }); array.push({ name: "Kuwait", alpha_2: "KW", alpha_3: "KWT", - un_code: 414 + un_code: 414, + icon: "kuwait", }); array.push({ name: "Kyrgyzstan", alpha_2: "KG", alpha_3: "KGZ", - un_code: 417 + un_code: 417, + icon: "kyrgyzstan", }); array.push({ name: "Lao PDR", alpha_2: "LA", alpha_3: "LAO", - un_code: 418 + un_code: 418, + icon: "laos", }); array.push({ name: "Latvia", alpha_2: "LV", alpha_3: "LVA", - un_code: 428 + un_code: 428, + icon: "latvia", }); array.push({ name: "Lebanon", alpha_2: "LB", alpha_3: "LBN", - un_code: 422 + un_code: 422, + icon: "lebanon", }); array.push({ name: "Lesotho", alpha_2: "LS", alpha_3: "LSO", - un_code: 426 + un_code: 426, + icon: "lesotho", }); array.push({ name: "Liberia", alpha_2: "LR", alpha_3: "LBR", - un_code: 430 + un_code: 430, + icon: "liberia", }); array.push({ name: "Libya", alpha_2: "LY", alpha_3: "LBY", - un_code: 434 + un_code: 434, + icon: "libya", }); array.push({ name: "Liechtenstein", alpha_2: "LI", alpha_3: "LIE", - un_code: 438 + un_code: 438, + icon: "liechtenstein", }); array.push({ name: "Lithuania", alpha_2: "LT", alpha_3: "LTU", - un_code: 440 + un_code: 440, + icon: "lithuania", }); array.push({ name: "Luxembourg", alpha_2: "LU", alpha_3: "LUX", - un_code: 442 + un_code: 442, + icon: "luxembourg", }); array.push({ name: "Macedonia, Republic of", alpha_2: "MK", alpha_3: "MKD", - un_code: 807 + un_code: 807, + icon: "republic-of-macedonia", }); array.push({ name: "Madagascar", alpha_2: "MG", alpha_3: "MDG", - un_code: 450 + un_code: 450, + icon: "madagascar", }); array.push({ name: "Malawi", alpha_2: "MW", alpha_3: "MWI", - un_code: 454 + un_code: 454, + icon: "malawi", }); array.push({ name: "Malaysia", alpha_2: "MY", alpha_3: "MYS", - un_code: 458 + un_code: 458, + icon: "malaysia", }); array.push({ name: "Maldives", alpha_2: "MV", alpha_3: "MDV", - un_code: 462 + un_code: 462, + icon: "maldives", }); array.push({ name: "Mali", alpha_2: "ML", alpha_3: "MLI", - un_code: 466 + un_code: 466, + icon: "mali", }); array.push({ name: "Malta", alpha_2: "MT", alpha_3: "MLT", - un_code: 470 + un_code: 470, + icon: "malta", }); array.push({ name: "Marshall Islands", alpha_2: "MH", alpha_3: "MHL", - un_code: 584 + un_code: 584, + icon: "marshall-island", }); array.push({ name: "Martinique", alpha_2: "MQ", alpha_3: "MTQ", - un_code: 474 + un_code: 474, + icon: "martinique", }); array.push({ name: "Mauritania", alpha_2: "MR", alpha_3: "MRT", - un_code: 478 + un_code: 478, + icon: "mauritania", }); array.push({ name: "Mauritius", alpha_2: "MU", alpha_3: "MUS", - un_code: 480 + un_code: 480, + icon: "mauritius", }); + /* TODO(flag): https://de.wikipedia.org/wiki/Mayotte */ array.push({ name: "Mayotte", alpha_2: "YT", alpha_3: "MYT", - un_code: 175 + un_code: 175, + icon: "worldwide", }); array.push({ name: "Mexico", alpha_2: "MX", alpha_3: "MEX", - un_code: 484 + un_code: 484, + icon: "mexico", }); array.push({ name: "Micronesia, Federated States of", alpha_2: "FM", alpha_3: "FSM", - un_code: 583 + un_code: 583, + icon: "micronesia", }); array.push({ name: "Moldova", alpha_2: "MD", alpha_3: "MDA", - un_code: 498 + un_code: 498, + icon: "moldova", }); array.push({ name: "Monaco", alpha_2: "MC", alpha_3: "MCO", - un_code: 492 + un_code: 492, + icon: "monaco", }); array.push({ name: "Mongolia", alpha_2: "MN", alpha_3: "MNG", - un_code: 496 + un_code: 496, + icon: "mongolia", }); array.push({ name: "Montenegro", alpha_2: "ME", alpha_3: "MNE", - un_code: 499 + un_code: 499, + icon: "montenegro", }); array.push({ name: "Montserrat", alpha_2: "MS", alpha_3: "MSR", - un_code: 500 + un_code: 500, + icon: "montserrat", }); array.push({ name: "Morocco", alpha_2: "MA", alpha_3: "MAR", - un_code: 504 + un_code: 504, + icon: "morocco", }); array.push({ name: "Mozambique", alpha_2: "MZ", alpha_3: "MOZ", - un_code: 508 + un_code: 508, + icon: "mozambique", }); array.push({ name: "Myanmar", alpha_2: "MM", alpha_3: "MMR", - un_code: 104 + un_code: 104, + icon: "myanmar", }); array.push({ name: "Namibia", alpha_2: "NA", alpha_3: "NAM", - un_code: 516 + un_code: 516, + icon: "namibia", }); array.push({ name: "Nauru", alpha_2: "NR", alpha_3: "NRU", - un_code: 520 + un_code: 520, + icon: "nauru", }); array.push({ name: "Nepal", alpha_2: "NP", alpha_3: "NPL", - un_code: 524 + un_code: 524, + icon: "nepal", }); array.push({ name: "Netherlands", alpha_2: "NL", alpha_3: "NLD", - un_code: 528 - }); - array.push({ - name: "Netherlands Antilles", - alpha_2: "AN", - alpha_3: "ANT", - un_code: 530 + un_code: 528, + icon: "netherlands", }); + /* Official flag is the french flag */ array.push({ name: "New Caledonia", alpha_2: "NC", alpha_3: "NCL", - un_code: 540 + un_code: 540, + icon: "french", }); array.push({ name: "New Zealand", alpha_2: "NZ", alpha_3: "NZL", - un_code: 554 + un_code: 554, + icon: "new-zealand", }); array.push({ name: "Nicaragua", alpha_2: "NI", alpha_3: "NIC", - un_code: 558 + un_code: 558, + icon: "nicaragua", }); array.push({ name: "Niger", alpha_2: "NE", alpha_3: "NER", - un_code: 562 + un_code: 562, + icon: "niger", }); array.push({ name: "Nigeria", alpha_2: "NG", alpha_3: "NGA", - un_code: 566 + un_code: 566, + icon: "nigeria", }); array.push({ name: "Niue", alpha_2: "NU", alpha_3: "NIU", - un_code: 570 + un_code: 570, + icon: "niue", }); array.push({ name: "Norfolk Island", alpha_2: "NF", alpha_3: "NFK", - un_code: 574 + un_code: 574, + icon: "norfolk-island", }); array.push({ name: "Northern Mariana Islands", alpha_2: "MP", alpha_3: "MNP", - un_code: 580 + un_code: 580, + icon: "northern-marianas-islands", }); array.push({ name: "Norway", alpha_2: "NO", alpha_3: "NOR", - un_code: 578 + un_code: 578, + icon: "norway", }); array.push({ name: "Oman", alpha_2: "OM", alpha_3: "OMN", - un_code: 512 + un_code: 512, + icon: "oman", }); array.push({ name: "Pakistan", alpha_2: "PK", alpha_3: "PAK", - un_code: 586 + un_code: 586, + icon: "pakistan", }); array.push({ name: "Palau", alpha_2: "PW", alpha_3: "PLW", - un_code: 585 + un_code: 585, + icon: "palau", }); + /* TODO(flag): https://en.wikipedia.org/wiki/Palestinians */ array.push({ name: "Palestinian Territory", alpha_2: "PS", alpha_3: "PSE", - un_code: 275 + un_code: 275, + icon: "worldwide", }); array.push({ name: "Panama", alpha_2: "PA", alpha_3: "PAN", - un_code: 591 + un_code: 591, + icon: "panama", }); array.push({ name: "Papua New Guinea", alpha_2: "PG", alpha_3: "PNG", - un_code: 598 + un_code: 598, + icon: "papua-new-guinea", }); array.push({ name: "Paraguay", alpha_2: "PY", alpha_3: "PRY", - un_code: 600 + un_code: 600, + icon: "paraguay", }); array.push({ name: "Peru", alpha_2: "PE", alpha_3: "PER", - un_code: 604 + un_code: 604, + icon: "peru", }); array.push({ name: "Philippines", alpha_2: "PH", alpha_3: "PHL", - un_code: 608 + un_code: 608, + icon: "philippines", }); array.push({ name: "Pitcairn", alpha_2: "PN", alpha_3: "PCN", - un_code: 612 + un_code: 612, + icon: "pitcairn-islands", }); array.push({ name: "Poland", alpha_2: "PL", alpha_3: "POL", - un_code: 616 + un_code: 616, + icon: "poland", }); array.push({ name: "Portugal", alpha_2: "PT", alpha_3: "PRT", - un_code: 620 + un_code: 620, + icon: "portugal", }); array.push({ name: "Puerto Rico", alpha_2: "PR", alpha_3: "PRI", - un_code: 630 + un_code: 630, + icon: "puerto-rico", }); array.push({ name: "Qatar", alpha_2: "QA", alpha_3: "QAT", - un_code: 634 + un_code: 634, + icon: "qatar", }); array.push({ name: "Réunion", alpha_2: "RE", alpha_3: "REU", - un_code: 638 + un_code: 638, + icon: "french", }); array.push({ name: "Romania", alpha_2: "RO", alpha_3: "ROU", - un_code: 642 + un_code: 642, + icon: "romania", }); array.push({ name: "Russian Federation", alpha_2: "RU", alpha_3: "RUS", - un_code: 643 + un_code: 643, + icon: "russia", }); array.push({ name: "Rwanda", alpha_2: "RW", alpha_3: "RWA", - un_code: 646 + un_code: 646, + icon: "rwanda", }); array.push({ name: "Saint-Barthélemy", alpha_2: "BL", alpha_3: "BLM", - un_code: 652 + un_code: 652, + icon: "french", }); + /* More or less uninhibited (2017: 4846 inhabitants)*/ array.push({ name: "Saint Helena", alpha_2: "SH", alpha_3: "SHN", - un_code: 654 + un_code: 654, + icon: "worldwide", }); array.push({ name: "Saint Kitts and Nevis", alpha_2: "KN", alpha_3: "KNA", - un_code: 659 + un_code: 659, + icon: "saint-kitts-and-nevis", }); array.push({ name: "Saint Lucia", alpha_2: "LC", alpha_3: "LCA", - un_code: 662 + un_code: 662, + icon: "st_lucia", }); array.push({ name: "Saint-Martin (French part)", alpha_2: "MF", alpha_3: "MAF", - un_code: 663 + un_code: 663, + icon: "french", }); array.push({ name: "Saint Pierre and Miquelon", alpha_2: "PM", alpha_3: "SPM", - un_code: 666 + un_code: 666, + icon: "french", }); + /* TODO(flag): https://de.wikipedia.org/wiki/St._Vincent_und_die_Grenadinen */ array.push({ name: "Saint Vincent and Grenadines", alpha_2: "VC", alpha_3: "VCT", - un_code: 670 + un_code: 670, + icon: "worldwide", }); array.push({ name: "Samoa", alpha_2: "WS", alpha_3: "WSM", - un_code: 882 + un_code: 882, + icon: "samoa", }); array.push({ name: "San Marino", alpha_2: "SM", alpha_3: "SMR", - un_code: 674 + un_code: 674, + icon: "san-marino", }); array.push({ name: "Sao Tome and Principe", alpha_2: "ST", alpha_3: "STP", - un_code: 678 + un_code: 678, + icon: "sao-tome-and-principe", }); array.push({ name: "Saudi Arabia", alpha_2: "SA", alpha_3: "SAU", - un_code: 682 + un_code: 682, + icon: "saudi-arabia", }); array.push({ name: "Senegal", alpha_2: "SN", alpha_3: "SEN", - un_code: 686 + un_code: 686, + icon: "senegal", }); array.push({ name: "Serbia", alpha_2: "RS", alpha_3: "SRB", - un_code: 688 + un_code: 688, + icon: "serbia", }); array.push({ name: "Seychelles", alpha_2: "SC", alpha_3: "SYC", - un_code: 690 + un_code: 690, + icon: "seychelles", }); array.push({ name: "Sierra Leone", alpha_2: "SL", alpha_3: "SLE", - un_code: 694 + un_code: 694, + icon: "sierra-leone", }); array.push({ name: "Singapore", alpha_2: "SG", alpha_3: "SGP", - un_code: 702 + un_code: 702, + icon: "singapore", }); array.push({ name: "Slovakia", alpha_2: "SK", alpha_3: "SVK", - un_code: 703 + un_code: 703, + icon: "slovakia", }); array.push({ name: "Slovenia", alpha_2: "SI", alpha_3: "SVN", - un_code: 705 + un_code: 705, + icon: "slovenia", }); array.push({ name: "Solomon Islands", alpha_2: "SB", alpha_3: "SLB", - un_code: 90 + un_code: 90, + icon: "solomon-islands", }); array.push({ name: "Somalia", alpha_2: "SO", alpha_3: "SOM", - un_code: 706 + un_code: 706, + icon: "somalia", }); array.push({ name: "South Africa", alpha_2: "ZA", alpha_3: "ZAF", - un_code: 710 + un_code: 710, + icon: "south-africa", }); array.push({ name: "South Georgia and the South Sandwich Islands", alpha_2: "GS", alpha_3: "SGS", - un_code: 239 + un_code: 239, + icon: "worldwide", }); array.push({ name: "South Sudan", alpha_2: "SS", alpha_3: "SSD", - un_code: 728 + un_code: 728, + icon: "south-sudan", }); array.push({ name: "Spain", alpha_2: "ES", alpha_3: "ESP", - un_code: 724 + un_code: 724, + icon: "spain", }); array.push({ name: "Sri Lanka", alpha_2: "LK", alpha_3: "LKA", - un_code: 144 + un_code: 144, + icon: "sri-lanka", }); array.push({ name: "Sudan", alpha_2: "SD", alpha_3: "SDN", - un_code: 736 + un_code: 736, + icon: "sudan", }); array.push({ name: "Suriname", alpha_2: "SR", alpha_3: "SUR", - un_code: 740 + un_code: 740, + icon: "suriname", }); array.push({ name: "Svalbard and Jan Mayen Islands", alpha_2: "SJ", alpha_3: "SJM", - un_code: 744 + un_code: 744, + icon: "worldwide", }); array.push({ name: "Swaziland", alpha_2: "SZ", alpha_3: "SWZ", - un_code: 748 + un_code: 748, + icon: "worldwide", }); array.push({ name: "Sweden", alpha_2: "SE", alpha_3: "SWE", - un_code: 752 + un_code: 752, + icon: "sweden", }); array.push({ name: "Switzerland", alpha_2: "CH", alpha_3: "CHE", - un_code: 756 + un_code: 756, + icon: "switzerland", }); array.push({ - name: "Syrian Arab Republic (Syria)", + name: "Syrian Arab Republic (Syria)", alpha_2: "SY", alpha_3: "SYR", - un_code: 760 + un_code: 760, + icon: "syria", }); array.push({ name: "Taiwan, Republic of China", alpha_2: "TW", alpha_3: "TWN", - un_code: 158 + un_code: 158, + icon: "taiwan", }); array.push({ name: "Tajikistan", alpha_2: "TJ", alpha_3: "TJK", - un_code: 762 + un_code: 762, + icon: "tajikistan", }); array.push({ name: "Tanzania, United Republic of", alpha_2: "TZ", alpha_3: "TZA", - un_code: 834 + un_code: 834, + icon: "tanzania", }); array.push({ name: "Thailand", alpha_2: "TH", alpha_3: "THA", - un_code: 764 + un_code: 764, + icon: "thailand", }); array.push({ name: "Timor-Leste", alpha_2: "TL", alpha_3: "TLS", - un_code: 626 + un_code: 626, + icon: "east-timor", }); array.push({ name: "Togo", alpha_2: "TG", alpha_3: "TGO", - un_code: 768 + un_code: 768, + icon: "togo", }); array.push({ name: "Tokelau", alpha_2: "TK", alpha_3: "TKL", - un_code: 772 + un_code: 772, + icon: "tokelau", }); array.push({ name: "Tonga", alpha_2: "TO", alpha_3: "TON", - un_code: 776 + un_code: 776, + icon: "tonga", }); array.push({ name: "Trinidad and Tobago", alpha_2: "TT", alpha_3: "TTO", - un_code: 780 + un_code: 780, + icon: "trinidad-and-tobago", }); array.push({ name: "Tunisia", alpha_2: "TN", alpha_3: "TUN", - un_code: 788 + un_code: 788, + icon: "tunisia", }); array.push({ name: "Turkey", alpha_2: "TR", alpha_3: "TUR", - un_code: 792 + un_code: 792, + icon: "turkey", }); array.push({ name: "Turkmenistan", alpha_2: "TM", alpha_3: "TKM", - un_code: 795 + un_code: 795, + icon: "turkmenistan", }); array.push({ name: "Turks and Caicos Islands", alpha_2: "TC", alpha_3: "TCA", - un_code: 796 + un_code: 796, + icon: "worldwide", }); array.push({ name: "Tuvalu", alpha_2: "TV", alpha_3: "TUV", - un_code: 798 + un_code: 798, + icon: "worldwide", }); array.push({ name: "Uganda", alpha_2: "UG", alpha_3: "UGA", - un_code: 800 + un_code: 800, + icon: "uganda", }); array.push({ name: "Ukraine", alpha_2: "UA", alpha_3: "UKR", - un_code: 804 + un_code: 804, + icon: "ukraine", }); array.push({ name: "United Arab Emirates", alpha_2: "AE", alpha_3: "ARE", - un_code: 784 + un_code: 784, + icon: "united-arab-emirates", }); array.push({ name: "United Kingdom", alpha_2: "GB", alpha_3: "GBR", - un_code: 826 + un_code: 826, + icon: "united-kingdom", }); array.push({ name: "United States of America", alpha_2: "US", alpha_3: "USA", - un_code: 840 + un_code: 840, + icon: "united-states-of-america", }); array.push({ name: "US Minor Outlying Islands", alpha_2: "UM", alpha_3: "UMI", - un_code: 581 + un_code: 581, + icon: "worldwide", }); array.push({ name: "Uruguay", alpha_2: "UY", alpha_3: "URY", - un_code: 858 + un_code: 858, + icon: "uruguay", }); + /* TODO(flag): https://en.wikipedia.org/wiki/Uzbekistan */ array.push({ name: "Uzbekistan", alpha_2: "UZ", alpha_3: "UZB", - un_code: 860 + un_code: 860, + icon: "worldwide", }); array.push({ name: "Vanuatu", alpha_2: "VU", alpha_3: "VUT", - un_code: 548 + un_code: 548, + icon: "vanuatu", }); array.push({ - name: "Venezuela (Bolivarian Republic)", + name: "Venezuela (Bolivarian Republic)", alpha_2: "VE", alpha_3: "VEN", - un_code: 862 + un_code: 862, + icon: "venezuela", }); array.push({ name: "Viet Nam", alpha_2: "VN", alpha_3: "VNM", - un_code: 704 + un_code: 704, + icon: "vietnam", }); array.push({ name: "Virgin Islands, US", alpha_2: "VI", alpha_3: "VIR", - un_code: 850 + un_code: 850, + icon: "virgin-islands", }); array.push({ name: "Wallis and Futuna Islands", alpha_2: "WF", alpha_3: "WLF", - un_code: 876 + un_code: 876, + icon: "worldwide", }); array.push({ name: "Western Sahara", alpha_2: "EH", alpha_3: "ESH", - un_code: 732 + un_code: 732, + icon: "sahrawi_arab_democratic_republic", }); array.push({ name: "Yemen", alpha_2: "YE", alpha_3: "YEM", - un_code: 887 + un_code: 887, + icon: "yemen", }); array.push({ name: "Zambia", alpha_2: "ZM", alpha_3: "ZMB", - un_code: 894 + un_code: 894, + icon: "zambia", }); array.push({ name: "Zimbabwe", alpha_2: "ZW", alpha_3: "ZWE", - un_code: 716 + un_code: 716, + icon: "zimbabwe", }); }; -export function country_name(alpha_code: string, fallback?: string) { - return (alpha_2_map[alpha_code.toUpperCase()] || {name: fallback || tr("unknown country")}).name; +export function getKnownCountries() : CountryInfo[] { + return registeredCountries; } -fill_country_infos(country_infos); -for(const country of country_infos) - alpha_2_map[country.alpha_2] = country; +export function getCountryName(alphaCode: string, fallback?: string) { + const countryInfo = alphaCode2Info[alphaCode?.toUpperCase()]; + if(!countryInfo) { + return fallback || "unknown"; + } + + return countryInfo.name; +} + +export function getCountryFlag(alphaCode: string) : CountryFlag { + const countryInfo = alphaCode2Info[alphaCode?.toUpperCase()]; + if(!countryInfo) { + return CountryFlag.Worldwide; + } + + const flag = CountryFlag["flag-" + countryInfo.icon.replace(/-/, "_")]; + if(!flag) { + if(!countryInfo.flagMissingWarned) { + countryInfo.flagMissingWarned = true; + logWarn(LogCategory.GENERAL, tr("Missing country flag for %o"), countryInfo); + } + + return CountryFlag.Worldwide; + } + + return CountryFlag[flag] || CountryFlag.Worldwide; +} + +registerCountries(registeredCountries); +for(const country of registeredCountries) { + alphaCode2Info[country.alpha_2] = country; +} diff --git a/shared/js/ui/frames/side/ClientInfoRenderer.tsx b/shared/js/ui/frames/side/ClientInfoRenderer.tsx index 44035223..10f45b8c 100644 --- a/shared/js/ui/frames/side/ClientInfoRenderer.tsx +++ b/shared/js/ui/frames/side/ClientInfoRenderer.tsx @@ -24,6 +24,7 @@ import {ClientIcon} from "svg-sprites/client-icons"; import {ClientIconRenderer} from "tc-shared/ui/react-elements/Icons"; import {getIconManager} from "tc-shared/file/Icons"; import {RemoteIconRenderer} from "tc-shared/ui/react-elements/Icon"; +import {CountryCode} from "tc-shared/ui/react-elements/CountryCode"; const cssStyle = require("./ClientInfoRenderer.scss"); @@ -176,10 +177,7 @@ const ClientCountry = React.memo(() => { return ( Country - <> -
- {country?.name || tr("Unknown")} - + ); }); diff --git a/shared/js/ui/modal/ModalClientInfo.ts b/shared/js/ui/modal/ModalClientInfo.ts index b9595eb2..4db5abd8 100644 --- a/shared/js/ui/modal/ModalClientInfo.ts +++ b/shared/js/ui/modal/ModalClientInfo.ts @@ -205,7 +205,7 @@ function apply_basic_info(client: ClientEntry, tag: JQuery, modal: Modal, callba const container = tag.find(".property-country"); container.find(".value").empty().append( $.spawn("div").addClass("country flag-" + client.properties.client_country.toLowerCase()), - $.spawn("a").text(i18nc.country_name(client.properties.client_country, tr("Unknown"))) + $.spawn("a").text(i18nc.getCountryName(client.properties.client_country, tr("Unknown"))) ); } diff --git a/shared/js/ui/modal/ModalMusicManage.ts b/shared/js/ui/modal/ModalMusicManage.ts index 2227567b..35d5d88a 100644 --- a/shared/js/ui/modal/ModalMusicManage.ts +++ b/shared/js/ui/modal/ModalMusicManage.ts @@ -799,7 +799,7 @@ function build_settings_container(event_registry: Registry, tag: J e.classList.remove(klass); }); flag.addClass("flag-" + input.toLowerCase()); - flag.attr("title", i18nc.country_name(input, tr("Unknown country"))); + flag.attr("title", i18nc.getCountryName(input, tr("Unknown country"))); }; event_registry.on("query_bot_status", event => { diff --git a/shared/js/ui/modal/ModalServerInfo.ts b/shared/js/ui/modal/ModalServerInfo.ts index 93a171bd..47d34bd8 100644 --- a/shared/js/ui/modal/ModalServerInfo.ts +++ b/shared/js/ui/modal/ModalServerInfo.ts @@ -115,7 +115,7 @@ function apply_category_1(server: ServerEntry, tag: JQuery, update_callbacks: Se const container = tag.find(".server-region").empty(); container.append( $.spawn("div").addClass("country flag-" + server.properties.virtualserver_country_code.toLowerCase()), - $.spawn("a").text(i18nc.country_name(server.properties.virtualserver_country_code, tr("Global"))) + $.spawn("a").text(i18nc.getCountryName(server.properties.virtualserver_country_code, tr("Global"))) ); } diff --git a/shared/js/ui/modal/ModalSettings.tsx b/shared/js/ui/modal/ModalSettings.tsx index ea5c4f42..1eef4be5 100644 --- a/shared/js/ui/modal/ModalSettings.tsx +++ b/shared/js/ui/modal/ModalSettings.tsx @@ -365,7 +365,7 @@ function settings_general_language(container: JQuery, modal: Modal) { container_current.empty(); const language = current_translation ? current_translation.country_code : "gb"; - $.spawn("div").addClass("country flag-" + language.toLowerCase()).attr('title', i18nc.country_name(language, tr("Unknown language"))).appendTo(container_current); + $.spawn("div").addClass("country flag-" + language.toLowerCase()).attr('title', i18nc.getCountryName(language, tr("Unknown language"))).appendTo(container_current); $.spawn("a").text(current_translation ? current_translation.name : tr("English (Default)")).appendTo(container_current); }).catch(error => { /* This shall never happen */ @@ -382,7 +382,7 @@ function settings_general_language(container: JQuery, modal: Modal) { const tag = template.renderTag({ type: "default", selected: !currently_selected || currently_selected == "default", - fallback_country_name: i18nc.country_name('gb'), + fallback_country_name: i18nc.getCountryName('gb'), }); tag.on('click', () => { i18n.select_translation(undefined, undefined); @@ -431,8 +431,8 @@ function settings_general_language(container: JQuery, modal: Modal) { id: repo.unique_id, country_code: translation.country_code, selected: i18n.config.translation_config().current_translation_path == translation.path, - fallback_country_name: i18nc.country_name('gb'), - country_name: i18nc.country_name((translation.country_code || "XX").toLowerCase()), + fallback_country_name: i18nc.getCountryName('gb'), + country_name: i18nc.getCountryName((translation.country_code || "XX").toLowerCase()), }); tag.find(".button-info").on('click', e => { e.preventDefault(); diff --git a/shared/js/ui/modal/bookmarks/Renderer.tsx b/shared/js/ui/modal/bookmarks/Renderer.tsx index 7e9fba56..d92f0d92 100644 --- a/shared/js/ui/modal/bookmarks/Renderer.tsx +++ b/shared/js/ui/modal/bookmarks/Renderer.tsx @@ -30,7 +30,7 @@ import * as React from "react"; import DefaultHeaderImage from "./header_background.png"; import ServerInfoImage from "./serverinfo.png"; import {IconTooltip} from "tc-shared/ui/react-elements/Tooltip"; -import {CountryIcon} from "tc-shared/ui/react-elements/CountryIcon"; +import {CountryCode} from "tc-shared/ui/react-elements/CountryCode"; import {downloadTextAsFile, requestFileAsText} from "tc-shared/file/Utils"; const EventContext = React.createContext>(undefined); @@ -598,7 +598,7 @@ const BookmarkInfoRenderer = React.memo(() => {
{useTr("Server region")}
- +
diff --git a/shared/js/ui/modal/connect/Renderer.tsx b/shared/js/ui/modal/connect/Renderer.tsx index d4dd7fad..3f6fd084 100644 --- a/shared/js/ui/modal/connect/Renderer.tsx +++ b/shared/js/ui/modal/connect/Renderer.tsx @@ -16,7 +16,7 @@ import {RemoteIconRenderer} from "tc-shared/ui/react-elements/Icon"; import {UiVariableConsumer} from "tc-shared/ui/utils/Variable"; import {createIpcUiVariableConsumer, IpcVariableDescriptor} from "tc-shared/ui/utils/IpcVariable"; import {AbstractModal} from "tc-shared/ui/react-elements/ModalDefinitions"; -import {CountryIcon} from "tc-shared/ui/react-elements/CountryIcon"; +import {CountryCode} from "tc-shared/ui/react-elements/CountryCode"; const EventContext = React.createContext>(undefined); const VariablesContext = React.createContext>(undefined); @@ -304,7 +304,7 @@ const HistoryTableEntry = React.memo((props: { entry: ConnectHistoryEntry, selec {info ? info.password ? tr("Yes") : tr("No") : ""}
- {info ? : null} + {info ? : null}
{info && info.maxClients !== -1 ? `${info.clients}/${info.maxClients}` : ""} diff --git a/shared/js/ui/react-elements/CountryCode.tsx b/shared/js/ui/react-elements/CountryCode.tsx new file mode 100644 index 00000000..0e51fd0a --- /dev/null +++ b/shared/js/ui/react-elements/CountryCode.tsx @@ -0,0 +1,14 @@ +import * as React from "react"; +import {joinClassList, useTr} from "tc-shared/ui/react-elements/Helper"; +import {getCountryFlag, getCountryName} from "tc-shared/i18n/country"; + +const cssStyle = require("./CountryIcon.scss"); + +export const CountryCode = (props: { alphaCode: string, className?: string }) => { + return ( +
+
+ {getCountryName(props.alphaCode, useTr("Global"))} +
+ ) +}; \ No newline at end of file diff --git a/shared/js/ui/react-elements/CountryIcon.scss b/shared/js/ui/react-elements/CountryIcon.scss index 2b83d525..31935f53 100644 --- a/shared/js/ui/react-elements/CountryIcon.scss +++ b/shared/js/ui/react-elements/CountryIcon.scss @@ -3,7 +3,7 @@ flex-direction: row; justify-content: flex-start; - :global(.country) { + .icon { align-self: center; margin-right: .25em; } diff --git a/shared/js/ui/react-elements/CountryIcon.tsx b/shared/js/ui/react-elements/CountryIcon.tsx deleted file mode 100644 index 6c2e177b..00000000 --- a/shared/js/ui/react-elements/CountryIcon.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import * as i18n from "tc-shared/i18n/country"; -import {joinClassList, useTr} from "tc-shared/ui/react-elements/Helper"; -import * as React from "react"; - -const cssStyle = require("./CountryIcon.scss"); - -export const CountryIcon = (props: { country: string, className?: string }) => { - const country = props.country || "xx"; - return ( -
-
- {i18n.country_name(country, useTr("Global"))} -
- ) -}; \ No newline at end of file diff --git a/shared/svg-sprites/country-flags.d.ts b/shared/svg-sprites/country-flags.d.ts new file mode 100644 index 00000000..2b189586 --- /dev/null +++ b/shared/svg-sprites/country-flags.d.ts @@ -0,0 +1,282 @@ +/* + * DO NOT MODIFY THIS FILE! + * + * This file has been auto generated by the svg-sprite generator. + * Sprite source directory: G:\TeaSpeak\web\shared\img\country-flags + * Sprite count: 256 + */ +export type CountryFlagClass = "flag-abkhazia" | "flag-afghanistan" | "flag-aland_islands" | "flag-albania" | "flag-algeria" | "flag-american_samoa" | "flag-andorra" | "flag-angola" | "flag-anguilla" | "flag-antigua_and_barbuda" | "flag-argentina" | "flag-armenia" | "flag-australia" | "flag-austria" | "flag-azerbaijan" | "flag-azores_islands" | "flag-bahamas" | "flag-bahrain" | "flag-balearic_islands" | "flag-bangladesh" | "flag-barbados" | "flag-basque_country" | "flag-belarus" | "flag-belgium" | "flag-belize" | "flag-benin" | "flag-bermuda" | "flag-bhutan" | "flag-bolivia" | "flag-bonaire" | "flag-bosnia_and_herzegovina" | "flag-botswana" | "flag-brazil" | "flag-british_indian_ocean_territory" | "flag-british_virgin_islands" | "flag-brunei" | "flag-bulgaria" | "flag-burkina_faso" | "flag-burundi" | "flag-cambodia" | "flag-cameroon" | "flag-canada" | "flag-canary_islands" | "flag-cape_verde" | "flag-cayman_islands" | "flag-central_african_republic" | "flag-ceuta" | "flag-chad" | "flag-chile" | "flag-china" | "flag-christmas_island" | "flag-cocos_island" | "flag-colombia" | "flag-comoros" | "flag-cook_islands" | "flag-corsica" | "flag-costa_rica" | "flag-croatia" | "flag-curacao" | "flag-cyprus" | "flag-czech_republic" | "flag-democratic_republic_of_congo" | "flag-denmark" | "flag-djibouti" | "flag-dominica" | "flag-dominican_republic" | "flag-east_timor" | "flag-ecuador" | "flag-egypt" | "flag-el_salvador" | "flag-england" | "flag-equatorial_guinea" | "flag-eritrea" | "flag-estonia" | "flag-ethiopia" | "flag-european_union" | "flag-falkland_islands" | "flag-faroe_islands" | "flag-fiji" | "flag-finland" | "flag-france" | "flag-french_polynesia" | "flag-gabon" | "flag-galapagos_islands" | "flag-gambia" | "flag-georgia" | "flag-germany" | "flag-ghana" | "flag-gibraltar" | "flag-greenland" | "flag-grenada" | "flag-guam" | "flag-guatemala" | "flag-guernsey" | "flag-guinea" | "flag-guinea_bissau" | "flag-haiti" | "flag-hawaii" | "flag-honduras" | "flag-hong_kong" | "flag-hungary" | "flag-iceland" | "flag-india" | "flag-indonesia" | "flag-iran" | "flag-iraq" | "flag-ireland" | "flag-isle_of_man" | "flag-israel" | "flag-italy" | "flag-ivory_coast" | "flag-jamaica" | "flag-japan" | "flag-jersey" | "flag-jordan" | "flag-kazakhstan" | "flag-kenya" | "flag-kosovo" | "flag-kuwait" | "flag-kyrgyzstan" | "flag-laos" | "flag-latvia" | "flag-lebanon" | "flag-lesotho" | "flag-liberia" | "flag-libya" | "flag-liechtenstein" | "flag-lithuania" | "flag-luxembourg" | "flag-macao" | "flag-madagascar" | "flag-madeira" | "flag-malawi" | "flag-malaysia" | "flag-maldives" | "flag-mali" | "flag-malta" | "flag-marshall_island" | "flag-martinique" | "flag-mauritania" | "flag-mauritius" | "flag-melilla" | "flag-mexico" | "flag-micronesia" | "flag-moldova" | "flag-monaco" | "flag-mongolia" | "flag-montenegro" | "flag-montserrat" | "flag-morocco" | "flag-mozambique" | "flag-myanmar" | "flag-namibia" | "flag-nauru" | "flag-nepal" | "flag-netherlands" | "flag-new_zealand" | "flag-nicaragua" | "flag-niger" | "flag-nigeria" | "flag-niue" | "flag-norfolk_island" | "flag-north_korea" | "flag-northen_cyprus" | "flag-northern_marianas_islands" | "flag-norway" | "flag-oman" | "flag-orkney_islands" | "flag-ossetia" | "flag-otan" | "flag-pakistan" | "flag-palau" | "flag-palestine" | "flag-panama" | "flag-papua_new_guinea" | "flag-paraguay" | "flag-peru" | "flag-philippines" | "flag-poland" | "flag-portugal" | "flag-puerto_rico" | "flag-qatar" | "flag-rapa_nui" | "flag-republic_of_macedonia" | "flag-republic_of_the_congo" | "flag-romania" | "flag-russia" | "flag-rwanda" | "flag-saba_island" | "flag-sahrawi_arab_democratic_republic" | "flag-saint_kitts_and_nevis" | "flag-samoa" | "flag-san_marino" | "flag-sao_tome_and_principe" | "flag-sardinia" | "flag-saudi_arabia" | "flag-scotland" | "flag-senegal" | "flag-serbia" | "flag-seychelles" | "flag-sicily" | "flag-sierra_leone" | "flag-singapore" | "flag-sint_eustatius" | "flag-sint_maarten" | "flag-slovakia" | "flag-slovenia" | "flag-solomon_islands" | "flag-somalia" | "flag-somaliland" | "flag-south_africa" | "flag-south_korea" | "flag-south_sudan" | "flag-spain" | "flag-sri_lanka" | "flag-st_barts" | "flag-st_lucia" | "flag-st_vincent_and_the_grenadines" | "flag-sudan" | "flag-suriname" | "flag-sweden" | "flag-switzerland" | "flag-syria" | "flag-taiwan" | "flag-tajikistan" | "flag-tanzania" | "flag-thailand" | "flag-tibet" | "flag-togo" | "flag-tokelau" | "flag-tonga" | "flag-transnistria" | "flag-trinidad_and_tobago" | "flag-tubalu" | "flag-tunisia" | "flag-turkey" | "flag-turkmenistan" | "flag-turks_and_caicos" | "flag-uganda" | "flag-ukraine" | "flag-united_arab_emirates" | "flag-united_kingdom" | "flag-united_nations" | "flag-united_states_of_america" | "flag-uruguay" | "flag-uzbekistn" | "flag-vanuatu" | "flag-vatican_city" | "flag-venezuela" | "flag-vietnam" | "flag-virgin_islands" | "flag-wales" | "flag-worldwide" | "flag-yemen" | "flag-zambia" | "flag-zimbabwe"; + +export enum CountryFlag { + Abkhazia = "flag-abkhazia", + Afghanistan = "flag-afghanistan", + AlandIslands = "flag-aland_islands", + Albania = "flag-albania", + Algeria = "flag-algeria", + AmericanSamoa = "flag-american_samoa", + Andorra = "flag-andorra", + Angola = "flag-angola", + Anguilla = "flag-anguilla", + AntiguaAndBarbuda = "flag-antigua_and_barbuda", + Argentina = "flag-argentina", + Armenia = "flag-armenia", + Australia = "flag-australia", + Austria = "flag-austria", + Azerbaijan = "flag-azerbaijan", + AzoresIslands = "flag-azores_islands", + Bahamas = "flag-bahamas", + Bahrain = "flag-bahrain", + BalearicIslands = "flag-balearic_islands", + Bangladesh = "flag-bangladesh", + Barbados = "flag-barbados", + BasqueCountry = "flag-basque_country", + Belarus = "flag-belarus", + Belgium = "flag-belgium", + Belize = "flag-belize", + Benin = "flag-benin", + Bermuda = "flag-bermuda", + Bhutan = "flag-bhutan", + Bolivia = "flag-bolivia", + Bonaire = "flag-bonaire", + BosniaAndHerzegovina = "flag-bosnia_and_herzegovina", + Botswana = "flag-botswana", + Brazil = "flag-brazil", + BritishIndianOceanTerritory = "flag-british_indian_ocean_territory", + BritishVirginIslands = "flag-british_virgin_islands", + Brunei = "flag-brunei", + Bulgaria = "flag-bulgaria", + BurkinaFaso = "flag-burkina_faso", + Burundi = "flag-burundi", + Cambodia = "flag-cambodia", + Cameroon = "flag-cameroon", + Canada = "flag-canada", + CanaryIslands = "flag-canary_islands", + CapeVerde = "flag-cape_verde", + CaymanIslands = "flag-cayman_islands", + CentralAfricanRepublic = "flag-central_african_republic", + Ceuta = "flag-ceuta", + Chad = "flag-chad", + Chile = "flag-chile", + China = "flag-china", + ChristmasIsland = "flag-christmas_island", + CocosIsland = "flag-cocos_island", + Colombia = "flag-colombia", + Comoros = "flag-comoros", + CookIslands = "flag-cook_islands", + Corsica = "flag-corsica", + CostaRica = "flag-costa_rica", + Croatia = "flag-croatia", + Curacao = "flag-curacao", + Cyprus = "flag-cyprus", + CzechRepublic = "flag-czech_republic", + DemocraticRepublicOfCongo = "flag-democratic_republic_of_congo", + Denmark = "flag-denmark", + Djibouti = "flag-djibouti", + Dominica = "flag-dominica", + DominicanRepublic = "flag-dominican_republic", + EastTimor = "flag-east_timor", + Ecuador = "flag-ecuador", + Egypt = "flag-egypt", + ElSalvador = "flag-el_salvador", + England = "flag-england", + EquatorialGuinea = "flag-equatorial_guinea", + Eritrea = "flag-eritrea", + Estonia = "flag-estonia", + Ethiopia = "flag-ethiopia", + EuropeanUnion = "flag-european_union", + FalklandIslands = "flag-falkland_islands", + FaroeIslands = "flag-faroe_islands", + Fiji = "flag-fiji", + Finland = "flag-finland", + France = "flag-france", + FrenchPolynesia = "flag-french_polynesia", + Gabon = "flag-gabon", + GalapagosIslands = "flag-galapagos_islands", + Gambia = "flag-gambia", + Georgia = "flag-georgia", + Germany = "flag-germany", + Ghana = "flag-ghana", + Gibraltar = "flag-gibraltar", + Greenland = "flag-greenland", + Grenada = "flag-grenada", + Guam = "flag-guam", + Guatemala = "flag-guatemala", + Guernsey = "flag-guernsey", + Guinea = "flag-guinea", + GuineaBissau = "flag-guinea_bissau", + Haiti = "flag-haiti", + Hawaii = "flag-hawaii", + Honduras = "flag-honduras", + HongKong = "flag-hong_kong", + Hungary = "flag-hungary", + Iceland = "flag-iceland", + India = "flag-india", + Indonesia = "flag-indonesia", + Iran = "flag-iran", + Iraq = "flag-iraq", + Ireland = "flag-ireland", + IsleOfMan = "flag-isle_of_man", + Israel = "flag-israel", + Italy = "flag-italy", + IvoryCoast = "flag-ivory_coast", + Jamaica = "flag-jamaica", + Japan = "flag-japan", + Jersey = "flag-jersey", + Jordan = "flag-jordan", + Kazakhstan = "flag-kazakhstan", + Kenya = "flag-kenya", + Kosovo = "flag-kosovo", + Kuwait = "flag-kuwait", + Kyrgyzstan = "flag-kyrgyzstan", + Laos = "flag-laos", + Latvia = "flag-latvia", + Lebanon = "flag-lebanon", + Lesotho = "flag-lesotho", + Liberia = "flag-liberia", + Libya = "flag-libya", + Liechtenstein = "flag-liechtenstein", + Lithuania = "flag-lithuania", + Luxembourg = "flag-luxembourg", + Macao = "flag-macao", + Madagascar = "flag-madagascar", + Madeira = "flag-madeira", + Malawi = "flag-malawi", + Malaysia = "flag-malaysia", + Maldives = "flag-maldives", + Mali = "flag-mali", + Malta = "flag-malta", + MarshallIsland = "flag-marshall_island", + Martinique = "flag-martinique", + Mauritania = "flag-mauritania", + Mauritius = "flag-mauritius", + Melilla = "flag-melilla", + Mexico = "flag-mexico", + Micronesia = "flag-micronesia", + Moldova = "flag-moldova", + Monaco = "flag-monaco", + Mongolia = "flag-mongolia", + Montenegro = "flag-montenegro", + Montserrat = "flag-montserrat", + Morocco = "flag-morocco", + Mozambique = "flag-mozambique", + Myanmar = "flag-myanmar", + Namibia = "flag-namibia", + Nauru = "flag-nauru", + Nepal = "flag-nepal", + Netherlands = "flag-netherlands", + NewZealand = "flag-new_zealand", + Nicaragua = "flag-nicaragua", + Niger = "flag-niger", + Nigeria = "flag-nigeria", + Niue = "flag-niue", + NorfolkIsland = "flag-norfolk_island", + NorthKorea = "flag-north_korea", + NorthenCyprus = "flag-northen_cyprus", + NorthernMarianasIslands = "flag-northern_marianas_islands", + Norway = "flag-norway", + Oman = "flag-oman", + OrkneyIslands = "flag-orkney_islands", + Ossetia = "flag-ossetia", + Otan = "flag-otan", + Pakistan = "flag-pakistan", + Palau = "flag-palau", + Palestine = "flag-palestine", + Panama = "flag-panama", + PapuaNewGuinea = "flag-papua_new_guinea", + Paraguay = "flag-paraguay", + Peru = "flag-peru", + Philippines = "flag-philippines", + Poland = "flag-poland", + Portugal = "flag-portugal", + PuertoRico = "flag-puerto_rico", + Qatar = "flag-qatar", + RapaNui = "flag-rapa_nui", + RepublicOfMacedonia = "flag-republic_of_macedonia", + RepublicOfTheCongo = "flag-republic_of_the_congo", + Romania = "flag-romania", + Russia = "flag-russia", + Rwanda = "flag-rwanda", + SabaIsland = "flag-saba_island", + SahrawiArabDemocraticRepublic = "flag-sahrawi_arab_democratic_republic", + SaintKittsAndNevis = "flag-saint_kitts_and_nevis", + Samoa = "flag-samoa", + SanMarino = "flag-san_marino", + SaoTomeAndPrincipe = "flag-sao_tome_and_principe", + Sardinia = "flag-sardinia", + SaudiArabia = "flag-saudi_arabia", + Scotland = "flag-scotland", + Senegal = "flag-senegal", + Serbia = "flag-serbia", + Seychelles = "flag-seychelles", + Sicily = "flag-sicily", + SierraLeone = "flag-sierra_leone", + Singapore = "flag-singapore", + SintEustatius = "flag-sint_eustatius", + SintMaarten = "flag-sint_maarten", + Slovakia = "flag-slovakia", + Slovenia = "flag-slovenia", + SolomonIslands = "flag-solomon_islands", + Somalia = "flag-somalia", + Somaliland = "flag-somaliland", + SouthAfrica = "flag-south_africa", + SouthKorea = "flag-south_korea", + SouthSudan = "flag-south_sudan", + Spain = "flag-spain", + SriLanka = "flag-sri_lanka", + StBarts = "flag-st_barts", + StLucia = "flag-st_lucia", + StVincentAndTheGrenadines = "flag-st_vincent_and_the_grenadines", + Sudan = "flag-sudan", + Suriname = "flag-suriname", + Sweden = "flag-sweden", + Switzerland = "flag-switzerland", + Syria = "flag-syria", + Taiwan = "flag-taiwan", + Tajikistan = "flag-tajikistan", + Tanzania = "flag-tanzania", + Thailand = "flag-thailand", + Tibet = "flag-tibet", + Togo = "flag-togo", + Tokelau = "flag-tokelau", + Tonga = "flag-tonga", + Transnistria = "flag-transnistria", + TrinidadAndTobago = "flag-trinidad_and_tobago", + Tubalu = "flag-tubalu", + Tunisia = "flag-tunisia", + Turkey = "flag-turkey", + Turkmenistan = "flag-turkmenistan", + TurksAndCaicos = "flag-turks_and_caicos", + Uganda = "flag-uganda", + Ukraine = "flag-ukraine", + UnitedArabEmirates = "flag-united_arab_emirates", + UnitedKingdom = "flag-united_kingdom", + UnitedNations = "flag-united_nations", + UnitedStatesOfAmerica = "flag-united_states_of_america", + Uruguay = "flag-uruguay", + Uzbekistn = "flag-uzbekistn", + Vanuatu = "flag-vanuatu", + VaticanCity = "flag-vatican_city", + Venezuela = "flag-venezuela", + Vietnam = "flag-vietnam", + VirginIslands = "flag-virgin_islands", + Wales = "flag-wales", + Worldwide = "flag-worldwide", + Yemen = "flag-yemen", + Zambia = "flag-zambia", + Zimbabwe = "flag-zimbabwe", +} + +export const spriteEntries: { + id: string; + className: string; + width: number; + height: number; + xOffset: number; + yOffset: number; +}[]; + +export const spriteUrl: string; +export const classList: string[]; + +export const spriteWidth: number; +export const spriteHeight: number; \ No newline at end of file diff --git a/webpack.config.ts b/webpack.config.ts index c2f91345..3dbe27d5 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -197,6 +197,22 @@ export const config = async (env: any, target: "web" | "client"): Promise