diff --git a/src/apps/stores/index.tsx b/src/apps/stores/index.tsx index bc4f3ab..8c257d4 100644 --- a/src/apps/stores/index.tsx +++ b/src/apps/stores/index.tsx @@ -19,7 +19,7 @@ export default function StoresApp(props: StoresAppProps) { const dispatch = useDispatch(); const { apiKey } = props; const [isAuthorized, setIsAuthorized] = useState(null); - const organization = "amrest"; + const organization = "lpp"; useEffect(() => { dispatch(setAppConfig(appConfig)); diff --git a/src/assets/countries/ad.svg b/src/assets/countries/ad.svg new file mode 100644 index 0000000..7bd465f --- /dev/null +++ b/src/assets/countries/ad.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/ae.svg b/src/assets/countries/ae.svg new file mode 100644 index 0000000..690d34f --- /dev/null +++ b/src/assets/countries/ae.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/af.svg b/src/assets/countries/af.svg new file mode 100644 index 0000000..46b2774 --- /dev/null +++ b/src/assets/countries/af.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/ag.svg b/src/assets/countries/ag.svg new file mode 100644 index 0000000..2d5704f --- /dev/null +++ b/src/assets/countries/ag.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/assets/countries/ai.svg b/src/assets/countries/ai.svg new file mode 100644 index 0000000..09169e1 --- /dev/null +++ b/src/assets/countries/ai.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/al.svg b/src/assets/countries/al.svg new file mode 100644 index 0000000..0cc3ed6 --- /dev/null +++ b/src/assets/countries/al.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/countries/am.svg b/src/assets/countries/am.svg new file mode 100644 index 0000000..3f76b98 --- /dev/null +++ b/src/assets/countries/am.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/ao.svg b/src/assets/countries/ao.svg new file mode 100644 index 0000000..dcba067 --- /dev/null +++ b/src/assets/countries/ao.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/assets/countries/ar.svg b/src/assets/countries/ar.svg new file mode 100644 index 0000000..772cb2a --- /dev/null +++ b/src/assets/countries/ar.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/as.svg b/src/assets/countries/as.svg new file mode 100644 index 0000000..e5b21ed --- /dev/null +++ b/src/assets/countries/as.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/flags/at.svg b/src/assets/countries/at.svg similarity index 100% rename from src/assets/flags/at.svg rename to src/assets/countries/at.svg diff --git a/src/assets/countries/au.svg b/src/assets/countries/au.svg new file mode 100644 index 0000000..1877c8e --- /dev/null +++ b/src/assets/countries/au.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/assets/countries/aw.svg b/src/assets/countries/aw.svg new file mode 100644 index 0000000..ea3fd14 --- /dev/null +++ b/src/assets/countries/aw.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/az.svg b/src/assets/countries/az.svg new file mode 100644 index 0000000..b310110 --- /dev/null +++ b/src/assets/countries/az.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/assets/countries/ba.svg b/src/assets/countries/ba.svg new file mode 100644 index 0000000..05863b6 --- /dev/null +++ b/src/assets/countries/ba.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/bb.svg b/src/assets/countries/bb.svg new file mode 100644 index 0000000..a56c63c --- /dev/null +++ b/src/assets/countries/bb.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/bd.svg b/src/assets/countries/bd.svg new file mode 100644 index 0000000..86cf373 --- /dev/null +++ b/src/assets/countries/bd.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/countries/be.svg b/src/assets/countries/be.svg new file mode 100644 index 0000000..4faa4f3 --- /dev/null +++ b/src/assets/countries/be.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/bf.svg b/src/assets/countries/bf.svg new file mode 100644 index 0000000..91aaf22 --- /dev/null +++ b/src/assets/countries/bf.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/flags/bg.svg b/src/assets/countries/bg.svg similarity index 100% rename from src/assets/flags/bg.svg rename to src/assets/countries/bg.svg diff --git a/src/assets/countries/bh.svg b/src/assets/countries/bh.svg new file mode 100644 index 0000000..99fc83e --- /dev/null +++ b/src/assets/countries/bh.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/countries/bi.svg b/src/assets/countries/bi.svg new file mode 100644 index 0000000..dd58d22 --- /dev/null +++ b/src/assets/countries/bi.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/src/assets/countries/bj.svg b/src/assets/countries/bj.svg new file mode 100644 index 0000000..e0f9bb9 --- /dev/null +++ b/src/assets/countries/bj.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/bm.svg b/src/assets/countries/bm.svg new file mode 100644 index 0000000..1911530 --- /dev/null +++ b/src/assets/countries/bm.svg @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/bo.svg b/src/assets/countries/bo.svg new file mode 100644 index 0000000..1415a85 --- /dev/null +++ b/src/assets/countries/bo.svg @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/br.svg b/src/assets/countries/br.svg new file mode 100644 index 0000000..02e9241 --- /dev/null +++ b/src/assets/countries/br.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/bs.svg b/src/assets/countries/bs.svg new file mode 100644 index 0000000..f3ccebb --- /dev/null +++ b/src/assets/countries/bs.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/bt.svg b/src/assets/countries/bt.svg new file mode 100644 index 0000000..1559ecc --- /dev/null +++ b/src/assets/countries/bt.svg @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/bw.svg b/src/assets/countries/bw.svg new file mode 100644 index 0000000..eea813d --- /dev/null +++ b/src/assets/countries/bw.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/by.svg b/src/assets/countries/by.svg new file mode 100644 index 0000000..cc61280 --- /dev/null +++ b/src/assets/countries/by.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/bz.svg b/src/assets/countries/bz.svg new file mode 100644 index 0000000..b18abc5 --- /dev/null +++ b/src/assets/countries/bz.svg @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/ca.svg b/src/assets/countries/ca.svg new file mode 100644 index 0000000..7cade1f --- /dev/null +++ b/src/assets/countries/ca.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/assets/countries/cd.svg b/src/assets/countries/cd.svg new file mode 100644 index 0000000..2468ac0 --- /dev/null +++ b/src/assets/countries/cd.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/cf.svg b/src/assets/countries/cf.svg new file mode 100644 index 0000000..fa63f7e --- /dev/null +++ b/src/assets/countries/cf.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/assets/countries/cg.svg b/src/assets/countries/cg.svg new file mode 100644 index 0000000..1ac7ee1 --- /dev/null +++ b/src/assets/countries/cg.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/ch.svg b/src/assets/countries/ch.svg new file mode 100644 index 0000000..ac63179 --- /dev/null +++ b/src/assets/countries/ch.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/countries/ci.svg b/src/assets/countries/ci.svg new file mode 100644 index 0000000..30289e4 --- /dev/null +++ b/src/assets/countries/ci.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/ck.svg b/src/assets/countries/ck.svg new file mode 100644 index 0000000..9a5c049 --- /dev/null +++ b/src/assets/countries/ck.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/assets/countries/cl.svg b/src/assets/countries/cl.svg new file mode 100644 index 0000000..941d625 --- /dev/null +++ b/src/assets/countries/cl.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/cm.svg b/src/assets/countries/cm.svg new file mode 100644 index 0000000..365ea93 --- /dev/null +++ b/src/assets/countries/cm.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/flags/cn.svg b/src/assets/countries/cn.svg similarity index 100% rename from src/assets/flags/cn.svg rename to src/assets/countries/cn.svg diff --git a/src/assets/countries/co.svg b/src/assets/countries/co.svg new file mode 100644 index 0000000..26d8b65 --- /dev/null +++ b/src/assets/countries/co.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/cr.svg b/src/assets/countries/cr.svg new file mode 100644 index 0000000..2ed962a --- /dev/null +++ b/src/assets/countries/cr.svg @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/cu.svg b/src/assets/countries/cu.svg new file mode 100644 index 0000000..9338bc7 --- /dev/null +++ b/src/assets/countries/cu.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/assets/countries/cv.svg b/src/assets/countries/cv.svg new file mode 100644 index 0000000..a79a639 --- /dev/null +++ b/src/assets/countries/cv.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/cw.svg b/src/assets/countries/cw.svg new file mode 100644 index 0000000..1378d91 --- /dev/null +++ b/src/assets/countries/cw.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/cy.svg b/src/assets/countries/cy.svg new file mode 100644 index 0000000..47e8080 --- /dev/null +++ b/src/assets/countries/cy.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/assets/flags/cz.svg b/src/assets/countries/cz.svg similarity index 100% rename from src/assets/flags/cz.svg rename to src/assets/countries/cz.svg diff --git a/src/assets/flags/de.svg b/src/assets/countries/de.svg similarity index 100% rename from src/assets/flags/de.svg rename to src/assets/countries/de.svg diff --git a/src/assets/countries/dj.svg b/src/assets/countries/dj.svg new file mode 100644 index 0000000..4891ca9 --- /dev/null +++ b/src/assets/countries/dj.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/dk.svg b/src/assets/countries/dk.svg new file mode 100644 index 0000000..3e68b67 --- /dev/null +++ b/src/assets/countries/dk.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/countries/dm.svg b/src/assets/countries/dm.svg new file mode 100644 index 0000000..25a3768 --- /dev/null +++ b/src/assets/countries/dm.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/do.svg b/src/assets/countries/do.svg new file mode 100644 index 0000000..afecb5b --- /dev/null +++ b/src/assets/countries/do.svg @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/dz.svg b/src/assets/countries/dz.svg new file mode 100644 index 0000000..45b02f6 --- /dev/null +++ b/src/assets/countries/dz.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/assets/countries/ec.svg b/src/assets/countries/ec.svg new file mode 100644 index 0000000..eb4cb51 --- /dev/null +++ b/src/assets/countries/ec.svg @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/ee.svg b/src/assets/countries/ee.svg new file mode 100644 index 0000000..7e8a815 --- /dev/null +++ b/src/assets/countries/ee.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/eg.svg b/src/assets/countries/eg.svg new file mode 100644 index 0000000..721c55d --- /dev/null +++ b/src/assets/countries/eg.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/er.svg b/src/assets/countries/er.svg new file mode 100644 index 0000000..5b027c1 --- /dev/null +++ b/src/assets/countries/er.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/flags/es.svg b/src/assets/countries/es.svg similarity index 100% rename from src/assets/flags/es.svg rename to src/assets/countries/es.svg diff --git a/src/assets/countries/et.svg b/src/assets/countries/et.svg new file mode 100644 index 0000000..2a6f2f0 --- /dev/null +++ b/src/assets/countries/et.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/assets/countries/fi.svg b/src/assets/countries/fi.svg new file mode 100644 index 0000000..800ab6f --- /dev/null +++ b/src/assets/countries/fi.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/countries/fj.svg b/src/assets/countries/fj.svg new file mode 100644 index 0000000..9760758 --- /dev/null +++ b/src/assets/countries/fj.svg @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/fk.svg b/src/assets/countries/fk.svg new file mode 100644 index 0000000..d4dc8b2 --- /dev/null +++ b/src/assets/countries/fk.svg @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/fm.svg b/src/assets/countries/fm.svg new file mode 100644 index 0000000..5ea59f5 --- /dev/null +++ b/src/assets/countries/fm.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/countries/fo.svg b/src/assets/countries/fo.svg new file mode 100644 index 0000000..aff9364 --- /dev/null +++ b/src/assets/countries/fo.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/flags/fr.svg b/src/assets/countries/fr.svg similarity index 100% rename from src/assets/flags/fr.svg rename to src/assets/countries/fr.svg diff --git a/src/assets/countries/ga.svg b/src/assets/countries/ga.svg new file mode 100644 index 0000000..e2b3d93 --- /dev/null +++ b/src/assets/countries/ga.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/gb.svg b/src/assets/countries/gb.svg new file mode 100644 index 0000000..2081d39 --- /dev/null +++ b/src/assets/countries/gb.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/assets/countries/gd.svg b/src/assets/countries/gd.svg new file mode 100644 index 0000000..663c3e5 --- /dev/null +++ b/src/assets/countries/gd.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/assets/countries/ge.svg b/src/assets/countries/ge.svg new file mode 100644 index 0000000..3730731 --- /dev/null +++ b/src/assets/countries/ge.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/assets/countries/gg.svg b/src/assets/countries/gg.svg new file mode 100644 index 0000000..6871cf6 --- /dev/null +++ b/src/assets/countries/gg.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/assets/countries/gh.svg b/src/assets/countries/gh.svg new file mode 100644 index 0000000..6050697 --- /dev/null +++ b/src/assets/countries/gh.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/gi.svg b/src/assets/countries/gi.svg new file mode 100644 index 0000000..16c1cd3 --- /dev/null +++ b/src/assets/countries/gi.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/gl.svg b/src/assets/countries/gl.svg new file mode 100644 index 0000000..9336824 --- /dev/null +++ b/src/assets/countries/gl.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/gm.svg b/src/assets/countries/gm.svg new file mode 100644 index 0000000..2f8b4f8 --- /dev/null +++ b/src/assets/countries/gm.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/gn.svg b/src/assets/countries/gn.svg new file mode 100644 index 0000000..8a1e498 --- /dev/null +++ b/src/assets/countries/gn.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/gq.svg b/src/assets/countries/gq.svg new file mode 100644 index 0000000..0780a83 --- /dev/null +++ b/src/assets/countries/gq.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/src/assets/countries/gr.svg b/src/assets/countries/gr.svg new file mode 100644 index 0000000..64a5e36 --- /dev/null +++ b/src/assets/countries/gr.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/assets/countries/gt.svg b/src/assets/countries/gt.svg new file mode 100644 index 0000000..dd78664 --- /dev/null +++ b/src/assets/countries/gt.svg @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/gu.svg b/src/assets/countries/gu.svg new file mode 100644 index 0000000..51d942b --- /dev/null +++ b/src/assets/countries/gu.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/gw.svg b/src/assets/countries/gw.svg new file mode 100644 index 0000000..68fe3a3 --- /dev/null +++ b/src/assets/countries/gw.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/hk.svg b/src/assets/countries/hk.svg new file mode 100644 index 0000000..437024b --- /dev/null +++ b/src/assets/countries/hk.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/assets/countries/hn.svg b/src/assets/countries/hn.svg new file mode 100644 index 0000000..a919db5 --- /dev/null +++ b/src/assets/countries/hn.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/flags/hr.svg b/src/assets/countries/hr.svg similarity index 100% rename from src/assets/flags/hr.svg rename to src/assets/countries/hr.svg diff --git a/src/assets/countries/ht.svg b/src/assets/countries/ht.svg new file mode 100644 index 0000000..05bad9b --- /dev/null +++ b/src/assets/countries/ht.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/flags/hu.svg b/src/assets/countries/hu.svg similarity index 100% rename from src/assets/flags/hu.svg rename to src/assets/countries/hu.svg diff --git a/src/assets/countries/id.svg b/src/assets/countries/id.svg new file mode 100644 index 0000000..b697278 --- /dev/null +++ b/src/assets/countries/id.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/countries/ie.svg b/src/assets/countries/ie.svg new file mode 100644 index 0000000..8f5afd5 --- /dev/null +++ b/src/assets/countries/ie.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/il.svg b/src/assets/countries/il.svg new file mode 100644 index 0000000..83e46d0 --- /dev/null +++ b/src/assets/countries/il.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/im.svg b/src/assets/countries/im.svg new file mode 100644 index 0000000..4d92468 --- /dev/null +++ b/src/assets/countries/im.svg @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/in.svg b/src/assets/countries/in.svg new file mode 100644 index 0000000..88e1b1d --- /dev/null +++ b/src/assets/countries/in.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/io.svg b/src/assets/countries/io.svg new file mode 100644 index 0000000..aad0cd7 --- /dev/null +++ b/src/assets/countries/io.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/iq.svg b/src/assets/countries/iq.svg new file mode 100644 index 0000000..dcb8abb --- /dev/null +++ b/src/assets/countries/iq.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/assets/countries/ir.svg b/src/assets/countries/ir.svg new file mode 100644 index 0000000..1300f06 --- /dev/null +++ b/src/assets/countries/ir.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/src/assets/countries/is.svg b/src/assets/countries/is.svg new file mode 100644 index 0000000..474f21f --- /dev/null +++ b/src/assets/countries/is.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/it.svg b/src/assets/countries/it.svg new file mode 100644 index 0000000..1f39ea0 --- /dev/null +++ b/src/assets/countries/it.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/je.svg b/src/assets/countries/je.svg new file mode 100644 index 0000000..2d5e75b --- /dev/null +++ b/src/assets/countries/je.svg @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/jm.svg b/src/assets/countries/jm.svg new file mode 100644 index 0000000..22ba5f5 --- /dev/null +++ b/src/assets/countries/jm.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/jo.svg b/src/assets/countries/jo.svg new file mode 100644 index 0000000..403d3e3 --- /dev/null +++ b/src/assets/countries/jo.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/assets/countries/jp.svg b/src/assets/countries/jp.svg new file mode 100644 index 0000000..ab66fc6 --- /dev/null +++ b/src/assets/countries/jp.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/countries/ke.svg b/src/assets/countries/ke.svg new file mode 100644 index 0000000..4d5f072 --- /dev/null +++ b/src/assets/countries/ke.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/kg.svg b/src/assets/countries/kg.svg new file mode 100644 index 0000000..e6e3032 --- /dev/null +++ b/src/assets/countries/kg.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/assets/countries/kh.svg b/src/assets/countries/kh.svg new file mode 100644 index 0000000..292ce1c --- /dev/null +++ b/src/assets/countries/kh.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/ki.svg b/src/assets/countries/ki.svg new file mode 100644 index 0000000..7a06ecb --- /dev/null +++ b/src/assets/countries/ki.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/assets/countries/km.svg b/src/assets/countries/km.svg new file mode 100644 index 0000000..d23a0ac --- /dev/null +++ b/src/assets/countries/km.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/src/assets/countries/kn.svg b/src/assets/countries/kn.svg new file mode 100644 index 0000000..ea4d6b7 --- /dev/null +++ b/src/assets/countries/kn.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/assets/countries/kp.svg b/src/assets/countries/kp.svg new file mode 100644 index 0000000..41ff68a --- /dev/null +++ b/src/assets/countries/kp.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/assets/countries/kr.svg b/src/assets/countries/kr.svg new file mode 100644 index 0000000..35cfb5e --- /dev/null +++ b/src/assets/countries/kr.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/kw.svg b/src/assets/countries/kw.svg new file mode 100644 index 0000000..ca76a21 --- /dev/null +++ b/src/assets/countries/kw.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/ky.svg b/src/assets/countries/ky.svg new file mode 100644 index 0000000..8de32e9 --- /dev/null +++ b/src/assets/countries/ky.svg @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/kz.svg b/src/assets/countries/kz.svg new file mode 100644 index 0000000..5c88712 --- /dev/null +++ b/src/assets/countries/kz.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/assets/countries/la.svg b/src/assets/countries/la.svg new file mode 100644 index 0000000..252ae6d --- /dev/null +++ b/src/assets/countries/la.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/lb.svg b/src/assets/countries/lb.svg new file mode 100644 index 0000000..80b917b --- /dev/null +++ b/src/assets/countries/lb.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/lc.svg b/src/assets/countries/lc.svg new file mode 100644 index 0000000..3a2c18a --- /dev/null +++ b/src/assets/countries/lc.svg @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/src/assets/countries/li.svg b/src/assets/countries/li.svg new file mode 100644 index 0000000..8508fc4 --- /dev/null +++ b/src/assets/countries/li.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/assets/countries/lk.svg b/src/assets/countries/lk.svg new file mode 100644 index 0000000..6a99ec2 --- /dev/null +++ b/src/assets/countries/lk.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/lr.svg b/src/assets/countries/lr.svg new file mode 100644 index 0000000..bb5e389 --- /dev/null +++ b/src/assets/countries/lr.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/ls.svg b/src/assets/countries/ls.svg new file mode 100644 index 0000000..f105c2a --- /dev/null +++ b/src/assets/countries/ls.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/lt.svg b/src/assets/countries/lt.svg new file mode 100644 index 0000000..d99274e --- /dev/null +++ b/src/assets/countries/lt.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/lu.svg b/src/assets/countries/lu.svg new file mode 100644 index 0000000..01619df --- /dev/null +++ b/src/assets/countries/lu.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/lv.svg b/src/assets/countries/lv.svg new file mode 100644 index 0000000..1aeeda3 --- /dev/null +++ b/src/assets/countries/lv.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/countries/ly.svg b/src/assets/countries/ly.svg new file mode 100644 index 0000000..f872570 --- /dev/null +++ b/src/assets/countries/ly.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/assets/countries/ma.svg b/src/assets/countries/ma.svg new file mode 100644 index 0000000..a160353 --- /dev/null +++ b/src/assets/countries/ma.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/countries/mc.svg b/src/assets/countries/mc.svg new file mode 100644 index 0000000..0422ce8 --- /dev/null +++ b/src/assets/countries/mc.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/countries/md.svg b/src/assets/countries/md.svg new file mode 100644 index 0000000..59d9bff --- /dev/null +++ b/src/assets/countries/md.svg @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/me.svg b/src/assets/countries/me.svg new file mode 100644 index 0000000..ed9b9d2 --- /dev/null +++ b/src/assets/countries/me.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/mg.svg b/src/assets/countries/mg.svg new file mode 100644 index 0000000..829e0f1 --- /dev/null +++ b/src/assets/countries/mg.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/mh.svg b/src/assets/countries/mh.svg new file mode 100644 index 0000000..6f173e0 --- /dev/null +++ b/src/assets/countries/mh.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/mk.svg b/src/assets/countries/mk.svg new file mode 100644 index 0000000..d613528 --- /dev/null +++ b/src/assets/countries/mk.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/assets/countries/ml.svg b/src/assets/countries/ml.svg new file mode 100644 index 0000000..c1a8157 --- /dev/null +++ b/src/assets/countries/ml.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/mm.svg b/src/assets/countries/mm.svg new file mode 100644 index 0000000..cc7c8cb --- /dev/null +++ b/src/assets/countries/mm.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/mn.svg b/src/assets/countries/mn.svg new file mode 100644 index 0000000..6c217de --- /dev/null +++ b/src/assets/countries/mn.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/src/assets/countries/mo.svg b/src/assets/countries/mo.svg new file mode 100644 index 0000000..88f54a9 --- /dev/null +++ b/src/assets/countries/mo.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/assets/countries/mp.svg b/src/assets/countries/mp.svg new file mode 100644 index 0000000..14e1dbd --- /dev/null +++ b/src/assets/countries/mp.svg @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/mq.svg b/src/assets/countries/mq.svg new file mode 100644 index 0000000..d901830 --- /dev/null +++ b/src/assets/countries/mq.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/assets/countries/mr.svg b/src/assets/countries/mr.svg new file mode 100644 index 0000000..2efcfcc --- /dev/null +++ b/src/assets/countries/mr.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/assets/countries/ms.svg b/src/assets/countries/ms.svg new file mode 100644 index 0000000..7271181 --- /dev/null +++ b/src/assets/countries/ms.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/mt.svg b/src/assets/countries/mt.svg new file mode 100644 index 0000000..b0b4f2b --- /dev/null +++ b/src/assets/countries/mt.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/mu.svg b/src/assets/countries/mu.svg new file mode 100644 index 0000000..ce82a38 --- /dev/null +++ b/src/assets/countries/mu.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/mv.svg b/src/assets/countries/mv.svg new file mode 100644 index 0000000..fd3d5b7 --- /dev/null +++ b/src/assets/countries/mv.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/mw.svg b/src/assets/countries/mw.svg new file mode 100644 index 0000000..b5f77e0 --- /dev/null +++ b/src/assets/countries/mw.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/mx.svg b/src/assets/countries/mx.svg new file mode 100644 index 0000000..4f880d4 --- /dev/null +++ b/src/assets/countries/mx.svg @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/my.svg b/src/assets/countries/my.svg new file mode 100644 index 0000000..60abfe1 --- /dev/null +++ b/src/assets/countries/my.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/mz.svg b/src/assets/countries/mz.svg new file mode 100644 index 0000000..e907e92 --- /dev/null +++ b/src/assets/countries/mz.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/na.svg b/src/assets/countries/na.svg new file mode 100644 index 0000000..b176f8d --- /dev/null +++ b/src/assets/countries/na.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/assets/countries/ne.svg b/src/assets/countries/ne.svg new file mode 100644 index 0000000..666b145 --- /dev/null +++ b/src/assets/countries/ne.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/nf.svg b/src/assets/countries/nf.svg new file mode 100644 index 0000000..99b32d8 --- /dev/null +++ b/src/assets/countries/nf.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/ng.svg b/src/assets/countries/ng.svg new file mode 100644 index 0000000..e524036 --- /dev/null +++ b/src/assets/countries/ng.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/ni.svg b/src/assets/countries/ni.svg new file mode 100644 index 0000000..11f3491 --- /dev/null +++ b/src/assets/countries/ni.svg @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/nl.svg b/src/assets/countries/nl.svg new file mode 100644 index 0000000..7857163 --- /dev/null +++ b/src/assets/countries/nl.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/no.svg b/src/assets/countries/no.svg new file mode 100644 index 0000000..da49ab1 --- /dev/null +++ b/src/assets/countries/no.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/np.svg b/src/assets/countries/np.svg new file mode 100644 index 0000000..1f85ff4 --- /dev/null +++ b/src/assets/countries/np.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/nr.svg b/src/assets/countries/nr.svg new file mode 100644 index 0000000..1f4a417 --- /dev/null +++ b/src/assets/countries/nr.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/nu.svg b/src/assets/countries/nu.svg new file mode 100644 index 0000000..d5a3055 --- /dev/null +++ b/src/assets/countries/nu.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/src/assets/countries/nz.svg b/src/assets/countries/nz.svg new file mode 100644 index 0000000..8803e98 --- /dev/null +++ b/src/assets/countries/nz.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/om.svg b/src/assets/countries/om.svg new file mode 100644 index 0000000..bf2c003 --- /dev/null +++ b/src/assets/countries/om.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/assets/countries/pa.svg b/src/assets/countries/pa.svg new file mode 100644 index 0000000..6cb1dc6 --- /dev/null +++ b/src/assets/countries/pa.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/pe.svg b/src/assets/countries/pe.svg new file mode 100644 index 0000000..020cd4c --- /dev/null +++ b/src/assets/countries/pe.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/pf.svg b/src/assets/countries/pf.svg new file mode 100644 index 0000000..7609318 --- /dev/null +++ b/src/assets/countries/pf.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/assets/countries/pg.svg b/src/assets/countries/pg.svg new file mode 100644 index 0000000..d084642 --- /dev/null +++ b/src/assets/countries/pg.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/ph.svg b/src/assets/countries/ph.svg new file mode 100644 index 0000000..2da5ccd --- /dev/null +++ b/src/assets/countries/ph.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/assets/countries/pk.svg b/src/assets/countries/pk.svg new file mode 100644 index 0000000..e9886f1 --- /dev/null +++ b/src/assets/countries/pk.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/flags/pl.svg b/src/assets/countries/pl.svg similarity index 100% rename from src/assets/flags/pl.svg rename to src/assets/countries/pl.svg diff --git a/src/assets/countries/pn.svg b/src/assets/countries/pn.svg new file mode 100644 index 0000000..1a1376c --- /dev/null +++ b/src/assets/countries/pn.svg @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/pr.svg b/src/assets/countries/pr.svg new file mode 100644 index 0000000..835cf3d --- /dev/null +++ b/src/assets/countries/pr.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/assets/countries/ps.svg b/src/assets/countries/ps.svg new file mode 100644 index 0000000..fe67dd6 --- /dev/null +++ b/src/assets/countries/ps.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/flags/pt.svg b/src/assets/countries/pt.svg similarity index 100% rename from src/assets/flags/pt.svg rename to src/assets/countries/pt.svg diff --git a/src/assets/countries/pw.svg b/src/assets/countries/pw.svg new file mode 100644 index 0000000..fbd6bad --- /dev/null +++ b/src/assets/countries/pw.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/countries/py.svg b/src/assets/countries/py.svg new file mode 100644 index 0000000..63ec30f --- /dev/null +++ b/src/assets/countries/py.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/assets/countries/qa.svg b/src/assets/countries/qa.svg new file mode 100644 index 0000000..4011a4e --- /dev/null +++ b/src/assets/countries/qa.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/flags/ro.svg b/src/assets/countries/ro.svg similarity index 100% rename from src/assets/flags/ro.svg rename to src/assets/countries/ro.svg diff --git a/src/assets/flags/rs.svg b/src/assets/countries/rs.svg similarity index 100% rename from src/assets/flags/rs.svg rename to src/assets/countries/rs.svg diff --git a/src/assets/flags/ru.svg b/src/assets/countries/ru.svg similarity index 100% rename from src/assets/flags/ru.svg rename to src/assets/countries/ru.svg diff --git a/src/assets/countries/rw.svg b/src/assets/countries/rw.svg new file mode 100644 index 0000000..2bf968b --- /dev/null +++ b/src/assets/countries/rw.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/assets/countries/sa.svg b/src/assets/countries/sa.svg new file mode 100644 index 0000000..6127e91 --- /dev/null +++ b/src/assets/countries/sa.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/src/assets/countries/sb.svg b/src/assets/countries/sb.svg new file mode 100644 index 0000000..3f5c01e --- /dev/null +++ b/src/assets/countries/sb.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/sc.svg b/src/assets/countries/sc.svg new file mode 100644 index 0000000..87b4e10 --- /dev/null +++ b/src/assets/countries/sc.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/assets/countries/sd.svg b/src/assets/countries/sd.svg new file mode 100644 index 0000000..a0b0025 --- /dev/null +++ b/src/assets/countries/sd.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/se.svg b/src/assets/countries/se.svg new file mode 100644 index 0000000..bda8f32 --- /dev/null +++ b/src/assets/countries/se.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/countries/sg.svg b/src/assets/countries/sg.svg new file mode 100644 index 0000000..511faa0 --- /dev/null +++ b/src/assets/countries/sg.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/assets/flags/si.svg b/src/assets/countries/si.svg similarity index 100% rename from src/assets/flags/si.svg rename to src/assets/countries/si.svg diff --git a/src/assets/flags/sk.svg b/src/assets/countries/sk.svg similarity index 100% rename from src/assets/flags/sk.svg rename to src/assets/countries/sk.svg diff --git a/src/assets/countries/sl.svg b/src/assets/countries/sl.svg new file mode 100644 index 0000000..b2457d6 --- /dev/null +++ b/src/assets/countries/sl.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/sm.svg b/src/assets/countries/sm.svg new file mode 100644 index 0000000..b368422 --- /dev/null +++ b/src/assets/countries/sm.svg @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/sn.svg b/src/assets/countries/sn.svg new file mode 100644 index 0000000..ee7dbd8 --- /dev/null +++ b/src/assets/countries/sn.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/so.svg b/src/assets/countries/so.svg new file mode 100644 index 0000000..d1d6214 --- /dev/null +++ b/src/assets/countries/so.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/countries/sr.svg b/src/assets/countries/sr.svg new file mode 100644 index 0000000..c300807 --- /dev/null +++ b/src/assets/countries/sr.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/ss.svg b/src/assets/countries/ss.svg new file mode 100644 index 0000000..8b493f4 --- /dev/null +++ b/src/assets/countries/ss.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/assets/countries/st.svg b/src/assets/countries/st.svg new file mode 100644 index 0000000..ce2210b --- /dev/null +++ b/src/assets/countries/st.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/sv.svg b/src/assets/countries/sv.svg new file mode 100644 index 0000000..fba8431 --- /dev/null +++ b/src/assets/countries/sv.svg @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/sx.svg b/src/assets/countries/sx.svg new file mode 100644 index 0000000..19f3e10 --- /dev/null +++ b/src/assets/countries/sx.svg @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/sy.svg b/src/assets/countries/sy.svg new file mode 100644 index 0000000..6df7185 --- /dev/null +++ b/src/assets/countries/sy.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/sz.svg b/src/assets/countries/sz.svg new file mode 100644 index 0000000..0b0e49d --- /dev/null +++ b/src/assets/countries/sz.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/tc.svg b/src/assets/countries/tc.svg new file mode 100644 index 0000000..1fdbd0a --- /dev/null +++ b/src/assets/countries/tc.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/td.svg b/src/assets/countries/td.svg new file mode 100644 index 0000000..2be10e8 --- /dev/null +++ b/src/assets/countries/td.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/tg.svg b/src/assets/countries/tg.svg new file mode 100644 index 0000000..8abd405 --- /dev/null +++ b/src/assets/countries/tg.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/assets/countries/th.svg b/src/assets/countries/th.svg new file mode 100644 index 0000000..0e84bc4 --- /dev/null +++ b/src/assets/countries/th.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/assets/countries/tj.svg b/src/assets/countries/tj.svg new file mode 100644 index 0000000..10752cb --- /dev/null +++ b/src/assets/countries/tj.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/assets/countries/tk.svg b/src/assets/countries/tk.svg new file mode 100644 index 0000000..65d3752 --- /dev/null +++ b/src/assets/countries/tk.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/tm.svg b/src/assets/countries/tm.svg new file mode 100644 index 0000000..81cb7af --- /dev/null +++ b/src/assets/countries/tm.svg @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/tn.svg b/src/assets/countries/tn.svg new file mode 100644 index 0000000..731ad16 --- /dev/null +++ b/src/assets/countries/tn.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/assets/countries/to.svg b/src/assets/countries/to.svg new file mode 100644 index 0000000..df75cbf --- /dev/null +++ b/src/assets/countries/to.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/tr.svg b/src/assets/countries/tr.svg new file mode 100644 index 0000000..960a99d --- /dev/null +++ b/src/assets/countries/tr.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/countries/tt.svg b/src/assets/countries/tt.svg new file mode 100644 index 0000000..f85a554 --- /dev/null +++ b/src/assets/countries/tt.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/tv.svg b/src/assets/countries/tv.svg new file mode 100644 index 0000000..907ff2b --- /dev/null +++ b/src/assets/countries/tv.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/assets/countries/tw.svg b/src/assets/countries/tw.svg new file mode 100644 index 0000000..d5d10cc --- /dev/null +++ b/src/assets/countries/tw.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/assets/countries/tz.svg b/src/assets/countries/tz.svg new file mode 100644 index 0000000..ecb2cf7 --- /dev/null +++ b/src/assets/countries/tz.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/ua.svg b/src/assets/countries/ua.svg new file mode 100644 index 0000000..92a5a31 --- /dev/null +++ b/src/assets/countries/ua.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/countries/ug.svg b/src/assets/countries/ug.svg new file mode 100644 index 0000000..b7090f0 --- /dev/null +++ b/src/assets/countries/ug.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/us.svg b/src/assets/countries/us.svg new file mode 100644 index 0000000..55619cf --- /dev/null +++ b/src/assets/countries/us.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/uy.svg b/src/assets/countries/uy.svg new file mode 100644 index 0000000..a5d8bc4 --- /dev/null +++ b/src/assets/countries/uy.svg @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/countries/uz.svg b/src/assets/countries/uz.svg new file mode 100644 index 0000000..04b3384 --- /dev/null +++ b/src/assets/countries/uz.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/assets/countries/ve.svg b/src/assets/countries/ve.svg new file mode 100644 index 0000000..84917d6 --- /dev/null +++ b/src/assets/countries/ve.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/assets/countries/vi.svg b/src/assets/countries/vi.svg new file mode 100644 index 0000000..6899a38 --- /dev/null +++ b/src/assets/countries/vi.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/src/assets/countries/vn.svg b/src/assets/countries/vn.svg new file mode 100644 index 0000000..04c8340 --- /dev/null +++ b/src/assets/countries/vn.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/countries/vu.svg b/src/assets/countries/vu.svg new file mode 100644 index 0000000..fc7ca95 --- /dev/null +++ b/src/assets/countries/vu.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/assets/countries/ws.svg b/src/assets/countries/ws.svg new file mode 100644 index 0000000..b19e747 --- /dev/null +++ b/src/assets/countries/ws.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/ye.svg b/src/assets/countries/ye.svg new file mode 100644 index 0000000..dc345a7 --- /dev/null +++ b/src/assets/countries/ye.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/countries/za.svg b/src/assets/countries/za.svg new file mode 100644 index 0000000..63f69bb --- /dev/null +++ b/src/assets/countries/za.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/assets/countries/zm.svg b/src/assets/countries/zm.svg new file mode 100644 index 0000000..ac78487 --- /dev/null +++ b/src/assets/countries/zm.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/assets/countries/zw.svg b/src/assets/countries/zw.svg new file mode 100644 index 0000000..67cc73d --- /dev/null +++ b/src/assets/countries/zw.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/src/assets/lpp/brands/cropp.png b/src/assets/lpp/brands/cropp.png new file mode 100644 index 0000000..5e085db Binary files /dev/null and b/src/assets/lpp/brands/cropp.png differ diff --git a/src/assets/lpp/brands/house.png b/src/assets/lpp/brands/house.png new file mode 100644 index 0000000..cc621ce Binary files /dev/null and b/src/assets/lpp/brands/house.png differ diff --git a/src/assets/lpp/brands/lpp.png b/src/assets/lpp/brands/lpp.png new file mode 100644 index 0000000..f888abb Binary files /dev/null and b/src/assets/lpp/brands/lpp.png differ diff --git a/src/assets/lpp/brands/mohito.png b/src/assets/lpp/brands/mohito.png new file mode 100644 index 0000000..782b266 Binary files /dev/null and b/src/assets/lpp/brands/mohito.png differ diff --git a/src/assets/lpp/brands/reserved.png b/src/assets/lpp/brands/reserved.png new file mode 100644 index 0000000..1a9383e Binary files /dev/null and b/src/assets/lpp/brands/reserved.png differ diff --git a/src/assets/lpp/brands/sinsay.png b/src/assets/lpp/brands/sinsay.png new file mode 100644 index 0000000..c711d02 Binary files /dev/null and b/src/assets/lpp/brands/sinsay.png differ diff --git a/src/assets/lpp/markers/cropp.png b/src/assets/lpp/markers/cropp.png new file mode 100644 index 0000000..5e085db Binary files /dev/null and b/src/assets/lpp/markers/cropp.png differ diff --git a/src/assets/lpp/markers/house.png b/src/assets/lpp/markers/house.png new file mode 100644 index 0000000..cc621ce Binary files /dev/null and b/src/assets/lpp/markers/house.png differ diff --git a/src/assets/lpp/markers/lpp.png b/src/assets/lpp/markers/lpp.png new file mode 100644 index 0000000..f888abb Binary files /dev/null and b/src/assets/lpp/markers/lpp.png differ diff --git a/src/assets/lpp/markers/mohito.png b/src/assets/lpp/markers/mohito.png new file mode 100644 index 0000000..782b266 Binary files /dev/null and b/src/assets/lpp/markers/mohito.png differ diff --git a/src/assets/lpp/markers/reserved.png b/src/assets/lpp/markers/reserved.png new file mode 100644 index 0000000..1a9383e Binary files /dev/null and b/src/assets/lpp/markers/reserved.png differ diff --git a/src/assets/lpp/markers/sinsay.png b/src/assets/lpp/markers/sinsay.png new file mode 100644 index 0000000..c711d02 Binary files /dev/null and b/src/assets/lpp/markers/sinsay.png differ diff --git a/src/components/map/map.tsx b/src/components/map/map.tsx index c262b6d..8a1cf82 100644 --- a/src/components/map/map.tsx +++ b/src/components/map/map.tsx @@ -113,6 +113,7 @@ const Map = ({ locations, storeList, organization, brands }) => { id: e.id, map, info, + organization, }); }); diff --git a/src/components/map/markers/job-marker.ts b/src/components/map/markers/job-marker.ts index 8ee46c1..f69b4c3 100644 --- a/src/components/map/markers/job-marker.ts +++ b/src/components/map/markers/job-marker.ts @@ -3,7 +3,7 @@ import { baseMarker } from "./base-marker"; import icons from "@constants/icons"; -export function drawJobMarker({ id, map, info }) { +export function drawJobMarker({ id, map, info, organization }) { const { ctx, config } = baseMarker({ info }); // Set font @@ -18,7 +18,7 @@ export function drawJobMarker({ id, map, info }) { // Rate text ctx.fillText(rate, config.textPaddingLeft + 85, config.textThirdLine + 2); - const brandIcon = icons.amrest.markers[info.brand]; + const brandIcon = icons[organization].markers[info.brand]; let brandYPos = info.brand === "kfc" ? config.textFirstLine + 4 : config.textFirstLine + 3; diff --git a/src/components/map/markers/store-marker.ts b/src/components/map/markers/store-marker.ts index 963478a..1d60fc7 100644 --- a/src/components/map/markers/store-marker.ts +++ b/src/components/map/markers/store-marker.ts @@ -3,7 +3,7 @@ import { baseMarker } from "./base-marker"; import icons from "@constants/icons"; -export function drawStoreMarker({ id, map, info }) { +export function drawStoreMarker({ id, map, info, organization }) { const { ctx, config } = baseMarker({ info }); // Set font @@ -20,7 +20,7 @@ export function drawStoreMarker({ id, map, info }) { // Rate text ctx.fillText(rate, config.textPaddingLeft + 70, config.textThirdLine + 2); - const brandIcon = icons.amrest.markers[info.brand]; + const brandIcon = icons[organization].markers[info.brand]; let brandYPos = info.brand === "kfc" ? config.textFirstLine + 4 : config.textFirstLine + 3; diff --git a/src/components/map/markers/summary-marker.ts b/src/components/map/markers/summary-marker.ts index 8f0b539..9fee8b5 100644 --- a/src/components/map/markers/summary-marker.ts +++ b/src/components/map/markers/summary-marker.ts @@ -3,7 +3,7 @@ import { baseMarker } from "./base-marker"; import icons from "@constants/icons"; -export function drawSummaryMarker({ id, map, info }) { +export function drawSummaryMarker({ id, map, info, organization }) { const { ctx, config } = baseMarker({ info }); // Set font @@ -27,7 +27,7 @@ export function drawSummaryMarker({ id, map, info }) { config.textThirdLine + 2 ); - const brandIcon = icons.amrest.markers[info.brand]; + const brandIcon = icons[organization].markers[info.brand]; let brandYPos = info.brand === "kfc" ? config.textFirstLine + 4 : config.textFirstLine + 3; diff --git a/src/constants/countries.ts b/src/constants/countries.ts index 25b7743..8155daa 100644 --- a/src/constants/countries.ts +++ b/src/constants/countries.ts @@ -1,88 +1,328 @@ -import { icons } from '.'; +import { icons } from "."; -const { flags } = icons; +const { countries: flags } = icons; -const countries = [ - { - value: 'pl', - label: 'Poland', - img: flags.pl, - }, - { - value: 'cz', - label: 'Czech Republic', - img: flags.cz, - }, - { - value: 'hu', - label: 'Hungary', - img: flags.hu, - }, - { - value: 'sk', - label: 'Slovak Republic', - img: flags.sk, - }, - { - value: 'bg', - label: 'Bulgaria', - img: flags.bg, - }, - { - value: 'de', - label: 'Germany', - img: flags.de, - }, - { - value: 'es', - label: 'Spain', - img: flags.es, - }, - { - value: 'ro', - label: 'Romania', - img: flags.ro, - }, - { - value: 'ru', - label: 'Russia', - img: flags.ru, - }, - { - value: 'rs', - label: 'Serbia', - img: flags.rs, - }, - { - value: 'cn', - label: 'China', - img: flags.cn, - }, - { - value: 'fr', - label: 'France', - img: flags.fr, - }, - { - value: 'hr', - label: 'Croatia', - img: flags.hr, - }, - { - value: 'at', - label: 'Austria', - img: flags.at, - }, - { - value: 'pt', - label: 'Portugal', - img: flags.pt, - }, - { - value: 'si', - label: 'Slovenia', - img: flags.si, - }, -]; +export const availableCountries = { + AF: "Afghanistan", + AL: "Albania", + DZ: "Algeria", + AS: "American Samoa", + AD: "Andorra", + AO: "Angola", + AI: "Anguilla", + AG: "Antigua and Barbuda", + AR: "Argentina", + AM: "Armenia", + AW: "Aruba", + AU: "Australia", + AT: "Austria", + AZ: "Azerbaijan", + BS: "Bahamas", + BH: "Bahrain", + BD: "Bangladesh", + BB: "Barbados", + BY: "Belarus", + BE: "Belgium", + BZ: "Belize", + BJ: "Benin", + BM: "Bermuda", + BT: "Bhutan", + BO: "Bolivia, Plurinational State of", + BA: "Bosnia and Herzegovina", + BW: "Botswana", + BR: "Brazil", + IO: "British Indian Ocean Territory", + BG: "Bulgaria", + BF: "Burkina Faso", + BI: "Burundi", + KH: "Cambodia", + CM: "Cameroon", + CA: "Canada", + CV: "Cape Verde", + KY: "Cayman Islands", + CF: "Central African Republic", + TD: "Chad", + CL: "Chile", + CN: "China", + CO: "Colombia", + KM: "Comoros", + CG: "Congo", + CD: "Democratic Republic of the Congo", + CK: "Cook Islands", + CR: "Costa Rica", + CI: "Côte d'Ivoire", + HR: "Croatia", + CU: "Cuba", + CW: "Curaçao", + CY: "Cyprus", + CZ: "Czech Republic", + DK: "Denmark", + DJ: "Djibouti", + DM: "Dominica", + DO: "Dominican Republic", + EC: "Ecuador", + EG: "Egypt", + SV: "El Salvador", + GQ: "Equatorial Guinea", + ER: "Eritrea", + EE: "Estonia", + ET: "Ethiopia", + FK: "Falkland Islands (Malvinas)", + FO: "Faroe Islands", + FJ: "Fiji", + FI: "Finland", + FR: "France", + PF: "French Polynesia", + GA: "Gabon", + GM: "Gambia", + GE: "Georgia", + DE: "Germany", + GH: "Ghana", + GI: "Gibraltar", + GR: "Greece", + GL: "Greenland", + GD: "Grenada", + GU: "Guam", + GT: "Guatemala", + GG: "Guernsey", + GN: "Guinea", + GW: "Guinea-Bissau", + HT: "Haiti", + HN: "Honduras", + HK: "Hong Kong", + HU: "Hungary", + IS: "Iceland", + IN: "India", + ID: "Indonesia", + IR: "Iran, Islamic Republic of", + IQ: "Iraq", + IE: "Ireland", + IM: "Isle of Man", + IL: "Israel", + IT: "Italy", + JM: "Jamaica", + JP: "Japan", + JE: "Jersey", + JO: "Jordan", + KZ: "Kazakhstan", + KE: "Kenya", + KI: "Kiribati", + KP: "North Korea", + KR: "South Korea", + KW: "Kuwait", + KG: "Kyrgyzstan", + LA: "Lao People's Democratic Republic", + LV: "Latvia", + LB: "Lebanon", + LS: "Lesotho", + LR: "Liberia", + LY: "Libya", + LI: "Liechtenstein", + LT: "Lithuania", + LU: "Luxembourg", + MO: "Macao", + MK: "Republic of Macedonia", + MG: "Madagascar", + MW: "Malawi", + MY: "Malaysia", + MV: "Maldives", + ML: "Mali", + MT: "Malta", + MH: "Marshall Islands", + MQ: "Martinique", + MR: "Mauritania", + MU: "Mauritius", + MX: "Mexico", + FM: "Micronesia, Federated States of", + MD: "Republic of Moldova", + MC: "Monaco", + MN: "Mongolia", + ME: "Montenegro", + MS: "Montserrat", + MA: "Morocco", + MZ: "Mozambique", + MM: "Myanmar", + NA: "Namibia", + NR: "Nauru", + NP: "Nepal", + NL: "Netherlands", + NZ: "New Zealand", + NI: "Nicaragua", + NE: "Niger", + NG: "Nigeria", + NU: "Niue", + NF: "Norfolk Island", + MP: "Northern Mariana Islands", + NO: "Norway", + OM: "Oman", + PK: "Pakistan", + PW: "Palau", + PS: "Palestinian Territory", + PA: "Panama", + PG: "Papua New Guinea", + PY: "Paraguay", + PE: "Peru", + PH: "Philippines", + PN: "Pitcairn", + PL: "Poland", + PT: "Portugal", + PR: "Puerto Rico", + QA: "Qatar", + RO: "Romania", + RU: "Russia", + RW: "Rwanda", + KN: "Saint Kitts and Nevis", + LC: "Saint Lucia", + WS: "Samoa", + SM: "San Marino", + ST: "Sao Tome and Principe", + SA: "Saudi Arabia", + SN: "Senegal", + RS: "Serbia", + SC: "Seychelles", + SL: "Sierra Leone", + SG: "Singapore", + SX: "Sint Maarten", + SK: "Slovakia", + SI: "Slovenia", + SB: "Solomon Islands", + SO: "Somalia", + ZA: "South Africa", + SS: "South Sudan", + ES: "Spain", + LK: "Sri Lanka", + SD: "Sudan", + SR: "Suriname", + SZ: "Swaziland", + SE: "Sweden", + CH: "Switzerland", + SY: "Syria", + TW: "Taiwan", + TJ: "Tajikistan", + TZ: "Tanzania", + TH: "Thailand", + TG: "Togo", + TK: "Tokelau", + TO: "Tonga", + TT: "Trinidad and Tobago", + TN: "Tunisia", + TR: "Turkey", + TM: "Turkmenistan", + TC: "Turks and Caicos Islands", + TV: "Tuvalu", + UG: "Uganda", + UA: "Ukraine", + AE: "United Arab Emirates", + GB: "United Kingdom", + US: "United States", + UY: "Uruguay", + UZ: "Uzbekistan", + VU: "Vanuatu", + VE: "Venezuela, Bolivarian Republic of", + VN: "Viet Nam", + VI: "Virgin Islands", + YE: "Yemen", + ZM: "Zambia", + ZW: "Zimbabwe", +}; + +// const countries = availableCountries.map((country) => ( +// { +// value: +// } +// { +// value: "pl", +// label: "Poland", +// img: flags.pl, +// }, +// { +// value: "cz", +// label: "Czech Republic", +// img: flags.cz, +// }, +// { +// value: "hu", +// label: "Hungary", +// img: flags.hu, +// }, +// { +// value: "sk", +// label: "Slovak Republic", +// img: flags.sk, +// }, +// { +// value: "bg", +// label: "Bulgaria", +// img: flags.bg, +// }, +// { +// value: "de", +// label: "Germany", +// img: flags.de, +// }, +// { +// value: "es", +// label: "Spain", +// img: flags.es, +// }, +// { +// value: "ro", +// label: "Romania", +// img: flags.ro, +// }, +// { +// value: "ru", +// label: "Russia", +// img: flags.ru, +// }, +// { +// value: "rs", +// label: "Serbia", +// img: flags.rs, +// }, +// { +// value: "cn", +// label: "China", +// img: flags.cn, +// }, +// { +// value: "fr", +// label: "France", +// img: flags.fr, +// }, +// { +// value: "hr", +// label: "Croatia", +// img: flags.hr, +// }, +// { +// value: "at", +// label: "Austria", +// img: flags.at, +// }, +// { +// value: "pt", +// label: "Portugal", +// img: flags.pt, +// }, +// { +// value: "si", +// label: "Slovenia", +// img: flags.si, +// }, +// { +// value: "uk", +// label: "United Kingdom", +// img: flags.si, +// }, +// ); + +const countries = Object.entries(availableCountries).map((item) => ({ + value: item[0], + label: item[1], + img: flags[item[0].toLowerCase()], +})); + +console.log("COUNTRIES", countries); export default countries; diff --git a/src/constants/icons.ts b/src/constants/icons.ts index 34d956a..01f97af 100644 --- a/src/constants/icons.ts +++ b/src/constants/icons.ts @@ -50,24 +50,57 @@ const amrest = { }, }; -// TODO: rafactor it to countries -// Flags -import pl from "@assets/flags/pl.svg"; -import cz from "@assets/flags/cz.svg"; -import hu from "@assets/flags/hu.svg"; -import sk from "@assets/flags/sk.svg"; -import bg from "@assets/flags/bg.svg"; -import de from "@assets/flags/de.svg"; -import es from "@assets/flags/es.svg"; -import ro from "@assets/flags/ro.svg"; -import ru from "@assets/flags/ru.svg"; -import rs from "@assets/flags/rs.svg"; -import cn from "@assets/flags/cn.svg"; -import fr from "@assets/flags/fr.svg"; -import hr from "@assets/flags/hr.svg"; -import at from "@assets/flags/at.svg"; -import pt from "@assets/flags/pt.svg"; -import si from "@assets/flags/si.svg"; +// LPP +// ================= +// Markers +import lppMarker from "@assets/lpp/markers/lpp.png"; +import croppMarker from "@assets/lpp/markers/cropp.png"; +import houseMarker from "@assets/lpp/markers/house.png"; +import mohitoMarker from "@assets/lpp/markers/mohito.png"; +import reservedMarker from "@assets/lpp/markers/reserved.png"; +import sinsayMarker from "@assets/lpp/markers/sinsay.png"; +// Brands +import cropp from "@assets/lpp/brands/cropp.png"; +import house from "@assets/lpp/brands/house.png"; +import mohito from "@assets/lpp/brands/mohito.png"; +import reserved from "@assets/lpp/brands/reserved.png"; +import sinsay from "@assets/lpp/brands/sinsay.png"; + +const lpp = { + markers: { + lpp: lppMarker, + cropp: croppMarker, + house: houseMarker, + mohito: mohitoMarker, + reserved: reservedMarker, + sinsay: sinsayMarker, + }, + brands: { + cropp, + house, + mohito, + reserved, + sinsay, + }, +}; + +import pl from "@assets/countries/pl.svg"; +import cz from "@assets/countries/cz.svg"; +import hu from "@assets/countries/hu.svg"; +import sk from "@assets/countries/sk.svg"; +import bg from "@assets/countries/bg.svg"; +import de from "@assets/countries/de.svg"; +import es from "@assets/countries/es.svg"; +import ro from "@assets/countries/ro.svg"; +import ru from "@assets/countries/ru.svg"; +import rs from "@assets/countries/rs.svg"; +import cn from "@assets/countries/cn.svg"; +import fr from "@assets/countries/fr.svg"; +import hr from "@assets/countries/hr.svg"; +import at from "@assets/countries/at.svg"; +import pt from "@assets/countries/pt.svg"; +import si from "@assets/countries/si.svg"; +import gb from "@assets/countries/gb.svg"; import star from "@assets/icons/star.png"; import jobs from "@assets/icons/jobs.png"; @@ -75,7 +108,7 @@ import users from "@assets/icons/users.png"; import training from "@assets/icons/training.png"; import closed from "@assets/icons/closed.png"; -const flags = { +const countries = { all, pl, cz, @@ -93,6 +126,7 @@ const flags = { at, pt, si, + gb, }; const icons = { @@ -105,6 +139,7 @@ const icons = { export default { amrest, - flags, + lpp, + countries, icons, }; diff --git a/src/lib/prisma/fixtures/amrest.ts b/src/lib/prisma/fixtures/amrest.ts index 87bd6b1..8232042 100644 --- a/src/lib/prisma/fixtures/amrest.ts +++ b/src/lib/prisma/fixtures/amrest.ts @@ -1,4 +1,8 @@ -import { ApplicationConsumerStatus, ApplicationType, UserPlan } from "@prisma/client"; +import { + ApplicationConsumerStatus, + ApplicationType, + UserPlan, +} from "@prisma/client"; const organization = { name: "AmRest", @@ -31,7 +35,7 @@ const brands = [ fullName: "Blue Frog", }, { - name: "Kabb", + name: "KAAB", fullName: "Kabb", }, { @@ -113,17 +117,17 @@ const countries = [ const users = [ { - email: "tazo@gmail.com", + email: "user1@amrest.eu", password: "pass", - username: "tazo90", - name: "ala", + username: "user1", + name: "user1", plan: UserPlan.PRO, }, { - email: "dieselo@gmail.pl", + email: "user2@amrest.eu", password: "pass", - username: "dieselo", - name: "Team Pro Example", + username: "user2", + name: "user2", plan: UserPlan.FREE, }, ]; @@ -155,7 +159,7 @@ const apps = [ domain: "https://amspace.amrest.eu", project: "amspace", brands: ["KFC", "PH", "BK", "SBX"], - countries: ["PL", "CZ", "HU"] + countries: ["PL", "CZ", "HU"], }, { uid: "1", @@ -164,9 +168,9 @@ const apps = [ domain: "https://amspace.amrest.eu", project: "amspace", brands: ["KFC"], - countries: ["PL"] + countries: ["PL"], }, - ] + ], }, { type: ApplicationType.JOBS, @@ -181,8 +185,7 @@ const apps = [ brands: ["KFC"], countries: ["PL"], }, - - ] + ], }, { type: ApplicationType.ECOMMERCE, @@ -195,7 +198,7 @@ const apps = [ domain: "https://kfc.pl", project: "ecommerce", brands: ["KFC"], - countries: ["PL"] + countries: ["PL"], }, { uid: "4", @@ -204,11 +207,11 @@ const apps = [ domain: "http://pizzahut.pl", project: "ecommerce", brands: ["PH"], - countries: ["PL"] + countries: ["PL"], }, - ] + ], }, -] +]; export default { organization, diff --git a/src/lib/prisma/fixtures/index.ts b/src/lib/prisma/fixtures/index.ts new file mode 100644 index 0000000..0e74561 --- /dev/null +++ b/src/lib/prisma/fixtures/index.ts @@ -0,0 +1,4 @@ +import amrest from "./amrest"; +import lpp from "./lpp"; + +export default { amrest, lpp }; diff --git a/src/lib/prisma/fixtures/lpp.ts b/src/lib/prisma/fixtures/lpp.ts new file mode 100644 index 0000000..2518fdb --- /dev/null +++ b/src/lib/prisma/fixtures/lpp.ts @@ -0,0 +1,166 @@ +import { + ApplicationConsumerStatus, + ApplicationType, + UserPlan, +} from "@prisma/client"; + +const organization = { + name: "LPP", + slug: "lpp", +}; + +const brands = [ + { + name: "RESERVED", + fullName: "Reserved", + }, + { + name: "CROPP", + fullName: "Cropp", + }, + { + name: "HOUSE", + fullName: "House", + }, + { + name: "MOHITO", + fullName: "Mohito", + }, + { + name: "SINSAY", + fullName: "Sinsay", + }, +]; + +const countries = [ + { + code: "PL", + name: "Poland", + }, + { + code: "CZ", + name: "Czech Republic", + }, + { + code: "HU", + name: "Hungary", + }, + { + code: "SK", + name: "Slovak Republic", + }, + { + code: "BG", + name: "Bulgaria", + }, + { + code: "DE", + name: "Germany", + }, + { + code: "ES", + name: "Spain", + }, + { + code: "RO", + name: "Romania", + }, + { + code: "RU", + name: "Russia", + }, + { + code: "RS", + name: "Serbia", + }, + { + code: "CN", + name: "China", + }, + { + code: "FR", + name: "France", + }, + { + code: "HR", + name: "Croatia", + }, + { + code: "AT", + name: "Austria", + }, + { + code: "PT", + name: "Portugal", + }, + { + code: "SI", + name: "Slovenia", + }, +]; + +const users = [ + { + email: "user1@lpp.com", + password: "pass", + username: "user1", + name: "user1", + plan: UserPlan.PRO, + }, + { + email: "user2@lpp.com", + password: "pass", + username: "user2", + name: "user2", + plan: UserPlan.FREE, + }, +]; + +const projects = [ + { + name: "LPP", + slug: "lpp", + }, +]; + +const apps = [ + { + type: ApplicationType.STORES, + paid: false, + consumers: [ + { + uid: "1", + title: "LPP Stores", + status: ApplicationConsumerStatus.DRAFT, + domain: "https://lpp.com", + project: "lpp", + brands: ["reserved", "sinsay"], + countries: ["PL", "CZ", "HU"], + }, + ], + }, + { + type: ApplicationType.JOBS, + paid: false, + consumers: [ + { + uid: "2", + title: "LPP Sinsay PL", + status: ApplicationConsumerStatus.DRAFT, + domain: "https://sinsay.pl", + project: "lpp", + brands: ["house"], + countries: ["PL"], + }, + ], + }, +]; + +export default { + organization, + brands, + countries, + users, + projects, + apps, +}; diff --git a/src/lib/prisma/migrations/20220605200152_remove_unique_const_from_country/migration.sql b/src/lib/prisma/migrations/20220605200152_remove_unique_const_from_country/migration.sql new file mode 100644 index 0000000..edb2958 --- /dev/null +++ b/src/lib/prisma/migrations/20220605200152_remove_unique_const_from_country/migration.sql @@ -0,0 +1,5 @@ +-- DropIndex +DROP INDEX "country_code_key"; + +-- DropIndex +DROP INDEX "country_name_key"; diff --git a/src/lib/prisma/migrations/20220605200310_remove_constraint_from_country/migration.sql b/src/lib/prisma/migrations/20220605200310_remove_constraint_from_country/migration.sql new file mode 100644 index 0000000..21df6c2 --- /dev/null +++ b/src/lib/prisma/migrations/20220605200310_remove_constraint_from_country/migration.sql @@ -0,0 +1,2 @@ +-- DropIndex +DROP INDEX "country_name_code_key"; diff --git a/src/lib/prisma/migrations/20220605201504_user_username_not_unique/migration.sql b/src/lib/prisma/migrations/20220605201504_user_username_not_unique/migration.sql new file mode 100644 index 0000000..986e4b3 --- /dev/null +++ b/src/lib/prisma/migrations/20220605201504_user_username_not_unique/migration.sql @@ -0,0 +1,2 @@ +-- DropIndex +DROP INDEX "users_username_key"; diff --git a/src/lib/prisma/schema.prisma b/src/lib/prisma/schema.prisma index 284e59e..19e4b38 100644 --- a/src/lib/prisma/schema.prisma +++ b/src/lib/prisma/schema.prisma @@ -34,7 +34,7 @@ model Credential { model User { id Int @id @default(autoincrement()) - username String? @unique + username String? name String? email String @unique emailVerified DateTime? @@ -74,8 +74,8 @@ model Organization { model Country { id Int @id @default(autoincrement()) - name String @unique - code String @unique + name String + code String organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade) organizationId Int @@ -83,7 +83,6 @@ model Country { job Job[] store Store[] - @@unique([name, code]) @@map(name: "country") } diff --git a/src/lib/prisma/seed.ts b/src/lib/prisma/seed.ts index 37936ec..6a44a2c 100644 --- a/src/lib/prisma/seed.ts +++ b/src/lib/prisma/seed.ts @@ -2,7 +2,7 @@ import { PrismaClient, Prisma, MembershipRole, UserPlan } from "@prisma/client"; import short from "short-uuid"; import { hashPassword } from "../auth"; -import data from "./fixtures/amrest"; +import fixtures from "./fixtures"; import { generateUniqueAPIKey } from "../api-keys"; import { omit } from "../lodash"; @@ -137,19 +137,16 @@ async function createProjects( ...project, organization: { connect: { id: organization.id } }, owner: { connect: { id: projectOwner.id } }, - } - }) + }, + }); }); } -async function createAppsAndConsumers( - appOwner: any, - apps: any -) { +async function createAppsAndConsumers(appOwner: any, apps: any) { apps.map(async (app: any) => { const appObj = await prisma.application.create({ data: { - ...omit(app, 'consumers'), + ...omit(app, "consumers"), owner: { connect: { id: appOwner.id } }, }, }); @@ -157,7 +154,9 @@ async function createAppsAndConsumers( console.log(`\t👤 Created app '${app.type}'`); // Create consumers - app?.consumers.map(async (consumer: any) => await createConsumer(appObj, consumer)); + app?.consumers.map( + async (consumer: any) => await createConsumer(appObj, consumer) + ); }); } @@ -166,7 +165,7 @@ async function createConsumer(app: any, consumer: any) { const brands = await prisma.brand.findMany({ where: { - name: { in: consumer.brands } + name: { in: consumer.brands }, }, select: { id: true, @@ -174,7 +173,7 @@ async function createConsumer(app: any, consumer: any) { }); const countries = await prisma.country.findMany({ where: { - code: { in: consumer.countries } + code: { in: consumer.countries }, }, select: { id: true, @@ -185,7 +184,7 @@ async function createConsumer(app: any, consumer: any) { data: { ...consumer, uid: translator.new(), - application: { connect: { id: app.id }}, + application: { connect: { id: app.id } }, project: { connect: { slug: consumer.project } }, user: { connect: { id: app.ownerId } }, expires: new Date( @@ -194,10 +193,10 @@ async function createConsumer(app: any, consumer: any) { // TODO: not secure, store hashedApiKey instead raw token in database apiKey: apiKey, brands: { - connect: brands.map((brand) => ({id: brand.id})) + connect: brands.map((brand) => ({ id: brand.id })), }, countries: { - connect: countries.map((country) => ({id: country.id})) + connect: countries.map((country) => ({ id: country.id })), }, }, }); @@ -207,40 +206,48 @@ async function createConsumer(app: any, consumer: any) { ); } +const ORGANIZATIONS = ["amrest", "lpp"]; + async function main() { await dropTables(); - // Create users - const proUser = await createUser({ - user: data.users[0], - }); + const _fixtures: Record = fixtures; - const freeUser = await createUser({ - user: data.users[1], - }); + ORGANIZATIONS.map(async (organizationName) => { + const data = _fixtures[organizationName]; - // Create organization and members - const org = await createOrganizationAndUsers(data.organization, [ - { - id: proUser.id, - username: proUser.name || "Unknown", - }, - { - id: freeUser.id, - username: freeUser.name || "Unknown", - }, - ]); - - if (org) { - // Create brands - await createBrands(org, data.brands); - // Create countries - await createCountries(org, data.countries); - // Create projects - await createProjects(org, proUser, data.projects); - // Create apps and consumers - await createAppsAndConsumers(proUser, data.apps) - } + // Create users + const proUser = await createUser({ + user: data.users[0], + }); + + const freeUser = await createUser({ + user: data.users[1], + }); + + // Create organization and members + const org = await createOrganizationAndUsers(data.organization, [ + { + id: proUser.id, + username: proUser.name || "Unknown", + }, + { + id: freeUser.id, + username: freeUser.name || "Unknown", + }, + ]); + + if (org) { + // Create brands + await createBrands(org, data.brands); + // Create countries + await createCountries(org, data.countries); + // Create projects + await createProjects(org, proUser, data.projects); + // Create apps and consumers + await createAppsAndConsumers(proUser, data.apps); + } + }); } main() diff --git a/src/pages/apps/[name]/consumers/[id]/overview.tsx b/src/pages/apps/[name]/consumers/[id]/overview.tsx index 0aee48e..d2cdc82 100644 --- a/src/pages/apps/[name]/consumers/[id]/overview.tsx +++ b/src/pages/apps/[name]/consumers/[id]/overview.tsx @@ -216,7 +216,7 @@ function ConsumerFormSection(props: ConsumerFormProps) { options={organization?.countries} renderValue={(items) => ( ))} diff --git a/src/pages/projects/[slug]/apps/index.tsx b/src/pages/projects/[slug]/apps/index.tsx index 7e194cf..4f8d3f3 100644 --- a/src/pages/projects/[slug]/apps/index.tsx +++ b/src/pages/projects/[slug]/apps/index.tsx @@ -100,7 +100,9 @@ export default function ProjectAppsPage() { {country.code} ))}