diff --git a/frontend/frontend.py b/frontend/frontend.py new file mode 100644 index 0000000..c1e7d8f --- /dev/null +++ b/frontend/frontend.py @@ -0,0 +1,54 @@ +import sqlite3, time, uuid, json +from flask import Flask, request, render_template, jsonify +conn = sqlite3.connect('texts.db', check_same_thread=False) +conn.row_factory = sqlite3.Row + +def load_config(): + with open('config/api.json') as config: + api = json.load(config) + + config = { + "api": api + } + return config + +config = load_config() + +app = Flask(__name__) + +@app.route('/', methods=['GET']) +def index(): + numbers = conn.execute('SELECT (SELECT body FROM public_messages WHERE `to` = msisdn ORDER BY timestamp), (SELECT `from` FROM public_messages WHERE `to` = msisdn ORDER BY timestamp), * FROM public_numbers;').fetchall() + return render_template('index.html', numbers=numbers) + +@app.route('/public/', methods=['GET']) +def show_public(uid): + num = conn.execute("SELECT msisdn, country FROM public_numbers WHERE uid = ?;", [uid]).fetchone() + if num is None: + return 'Not found', 404 + messages = conn.execute("SELECT * FROM public_messages WHERE `to` = ?;", [num['msisdn']]).fetchall() + return render_template('messages.html', num=num, messages=messages); + +@app.route('/api/receive', methods=['PUT']) +def receive(): + message = request.get_json() + + if 'key' not in message or message['key'] != config["api"]["key"]: + return 'Forbidden', 403 + + numbers = list() + for n in conn.execute('SELECT msisdn FROM public_numbers;').fetchall(): + numbers.append(n[0]) + + if message['msisdn'] not in numbers: + conn.execute('INSERT INTO public_numbers (uid, msisdn, country) VALUES (?, ?, ?);', (str(uuid.uuid4()), message['msisdn'], 'it')) + conn.commit() + + try: + conn.execute('INSERT INTO public_messages (uid, `to`, `from`, body, `timestamp`) VALUES (?, ?, ?, ?, ?);', [str(uuid.uuid4()), message['msisdn'], message['from'], message['text'], int(time.time())]) + conn.commit() + + return jsonify('Ok'), 200 + +if __name__ == "__main__": + app.run() diff --git a/frontend/static/img/flags/_ASEAN.png b/frontend/static/img/flags/_ASEAN.png new file mode 100644 index 0000000..ee121e7 Binary files /dev/null and b/frontend/static/img/flags/_ASEAN.png differ diff --git a/frontend/static/img/flags/_African Union(OAS).png b/frontend/static/img/flags/_African Union(OAS).png new file mode 100644 index 0000000..ffed45d Binary files /dev/null and b/frontend/static/img/flags/_African Union(OAS).png differ diff --git a/frontend/static/img/flags/_Arab League.png b/frontend/static/img/flags/_Arab League.png new file mode 100644 index 0000000..0884708 Binary files /dev/null and b/frontend/static/img/flags/_Arab League.png differ diff --git a/frontend/static/img/flags/_CARICOM.png b/frontend/static/img/flags/_CARICOM.png new file mode 100644 index 0000000..51bd504 Binary files /dev/null and b/frontend/static/img/flags/_CARICOM.png differ diff --git a/frontend/static/img/flags/_CIS.png b/frontend/static/img/flags/_CIS.png new file mode 100644 index 0000000..1aa10bc Binary files /dev/null and b/frontend/static/img/flags/_CIS.png differ diff --git a/frontend/static/img/flags/_Commonwealth.png b/frontend/static/img/flags/_Commonwealth.png new file mode 100644 index 0000000..10c84c5 Binary files /dev/null and b/frontend/static/img/flags/_Commonwealth.png differ diff --git a/frontend/static/img/flags/_England.png b/frontend/static/img/flags/_England.png new file mode 100644 index 0000000..044dcb7 Binary files /dev/null and b/frontend/static/img/flags/_England.png differ diff --git a/frontend/static/img/flags/_European Union.png b/frontend/static/img/flags/_European Union.png new file mode 100644 index 0000000..562cd42 Binary files /dev/null and b/frontend/static/img/flags/_European Union.png differ diff --git a/frontend/static/img/flags/_Islamic Conference.png b/frontend/static/img/flags/_Islamic Conference.png new file mode 100644 index 0000000..9752bd6 Binary files /dev/null and b/frontend/static/img/flags/_Islamic Conference.png differ diff --git a/frontend/static/img/flags/_Kosovo.png b/frontend/static/img/flags/_Kosovo.png new file mode 100644 index 0000000..cf87be1 Binary files /dev/null and b/frontend/static/img/flags/_Kosovo.png differ diff --git a/frontend/static/img/flags/_NATO.png b/frontend/static/img/flags/_NATO.png new file mode 100644 index 0000000..5904306 Binary files /dev/null and b/frontend/static/img/flags/_NATO.png differ diff --git a/frontend/static/img/flags/_Northern Cyprus.png b/frontend/static/img/flags/_Northern Cyprus.png new file mode 100644 index 0000000..9f5577a Binary files /dev/null and b/frontend/static/img/flags/_Northern Cyprus.png differ diff --git a/frontend/static/img/flags/_Northern Ireland.png b/frontend/static/img/flags/_Northern Ireland.png new file mode 100644 index 0000000..bf93ec8 Binary files /dev/null and b/frontend/static/img/flags/_Northern Ireland.png differ diff --git a/frontend/static/img/flags/_OPEC.png b/frontend/static/img/flags/_OPEC.png new file mode 100644 index 0000000..c879c4f Binary files /dev/null and b/frontend/static/img/flags/_OPEC.png differ diff --git a/frontend/static/img/flags/_Olimpic Movement.png b/frontend/static/img/flags/_Olimpic Movement.png new file mode 100644 index 0000000..bede610 Binary files /dev/null and b/frontend/static/img/flags/_Olimpic Movement.png differ diff --git a/frontend/static/img/flags/_Red Cross.png b/frontend/static/img/flags/_Red Cross.png new file mode 100644 index 0000000..223cffa Binary files /dev/null and b/frontend/static/img/flags/_Red Cross.png differ diff --git a/frontend/static/img/flags/_Scotland.png b/frontend/static/img/flags/_Scotland.png new file mode 100644 index 0000000..033de25 Binary files /dev/null and b/frontend/static/img/flags/_Scotland.png differ diff --git a/frontend/static/img/flags/_Somaliland.png b/frontend/static/img/flags/_Somaliland.png new file mode 100644 index 0000000..6f182cc Binary files /dev/null and b/frontend/static/img/flags/_Somaliland.png differ diff --git a/frontend/static/img/flags/_United Nations.png b/frontend/static/img/flags/_United Nations.png new file mode 100644 index 0000000..aaa739c Binary files /dev/null and b/frontend/static/img/flags/_United Nations.png differ diff --git a/frontend/static/img/flags/_Wales.png b/frontend/static/img/flags/_Wales.png new file mode 100644 index 0000000..409b22b Binary files /dev/null and b/frontend/static/img/flags/_Wales.png differ diff --git a/frontend/static/img/flags/ad.png b/frontend/static/img/flags/ad.png new file mode 100644 index 0000000..1245d9f Binary files /dev/null and b/frontend/static/img/flags/ad.png differ diff --git a/frontend/static/img/flags/ae.png b/frontend/static/img/flags/ae.png new file mode 100644 index 0000000..5957c42 Binary files /dev/null and b/frontend/static/img/flags/ae.png differ diff --git a/frontend/static/img/flags/af.png b/frontend/static/img/flags/af.png new file mode 100644 index 0000000..0402b30 Binary files /dev/null and b/frontend/static/img/flags/af.png differ diff --git a/frontend/static/img/flags/ag.png b/frontend/static/img/flags/ag.png new file mode 100644 index 0000000..062aa70 Binary files /dev/null and b/frontend/static/img/flags/ag.png differ diff --git a/frontend/static/img/flags/ai.png b/frontend/static/img/flags/ai.png new file mode 100644 index 0000000..68db17b Binary files /dev/null and b/frontend/static/img/flags/ai.png differ diff --git a/frontend/static/img/flags/al.png b/frontend/static/img/flags/al.png new file mode 100644 index 0000000..5eea814 Binary files /dev/null and b/frontend/static/img/flags/al.png differ diff --git a/frontend/static/img/flags/am.png b/frontend/static/img/flags/am.png new file mode 100644 index 0000000..8e1054e Binary files /dev/null and b/frontend/static/img/flags/am.png differ diff --git a/frontend/static/img/flags/an.png b/frontend/static/img/flags/an.png new file mode 100644 index 0000000..c7644f8 Binary files /dev/null and b/frontend/static/img/flags/an.png differ diff --git a/frontend/static/img/flags/ao.png b/frontend/static/img/flags/ao.png new file mode 100644 index 0000000..d1deed8 Binary files /dev/null and b/frontend/static/img/flags/ao.png differ diff --git a/frontend/static/img/flags/aq.png b/frontend/static/img/flags/aq.png new file mode 100644 index 0000000..01bf5a9 Binary files /dev/null and b/frontend/static/img/flags/aq.png differ diff --git a/frontend/static/img/flags/ar.png b/frontend/static/img/flags/ar.png new file mode 100644 index 0000000..8c8d5c9 Binary files /dev/null and b/frontend/static/img/flags/ar.png differ diff --git a/frontend/static/img/flags/as.png b/frontend/static/img/flags/as.png new file mode 100644 index 0000000..a24093e Binary files /dev/null and b/frontend/static/img/flags/as.png differ diff --git a/frontend/static/img/flags/at.png b/frontend/static/img/flags/at.png new file mode 100644 index 0000000..3d5a4af Binary files /dev/null and b/frontend/static/img/flags/at.png differ diff --git a/frontend/static/img/flags/au.png b/frontend/static/img/flags/au.png new file mode 100644 index 0000000..b34a13a Binary files /dev/null and b/frontend/static/img/flags/au.png differ diff --git a/frontend/static/img/flags/aw.png b/frontend/static/img/flags/aw.png new file mode 100644 index 0000000..67a8142 Binary files /dev/null and b/frontend/static/img/flags/aw.png differ diff --git a/frontend/static/img/flags/az.png b/frontend/static/img/flags/az.png new file mode 100644 index 0000000..86961f7 Binary files /dev/null and b/frontend/static/img/flags/az.png differ diff --git a/frontend/static/img/flags/ba.png b/frontend/static/img/flags/ba.png new file mode 100644 index 0000000..242e214 Binary files /dev/null and b/frontend/static/img/flags/ba.png differ diff --git a/frontend/static/img/flags/bb.png b/frontend/static/img/flags/bb.png new file mode 100644 index 0000000..dc5bfaa Binary files /dev/null and b/frontend/static/img/flags/bb.png differ diff --git a/frontend/static/img/flags/bd.png b/frontend/static/img/flags/bd.png new file mode 100644 index 0000000..8c4b72c Binary files /dev/null and b/frontend/static/img/flags/bd.png differ diff --git a/frontend/static/img/flags/be.png b/frontend/static/img/flags/be.png new file mode 100644 index 0000000..957705c Binary files /dev/null and b/frontend/static/img/flags/be.png differ diff --git a/frontend/static/img/flags/bf.png b/frontend/static/img/flags/bf.png new file mode 100644 index 0000000..8bfe4b9 Binary files /dev/null and b/frontend/static/img/flags/bf.png differ diff --git a/frontend/static/img/flags/bg.png b/frontend/static/img/flags/bg.png new file mode 100644 index 0000000..6ba90af Binary files /dev/null and b/frontend/static/img/flags/bg.png differ diff --git a/frontend/static/img/flags/bh.png b/frontend/static/img/flags/bh.png new file mode 100644 index 0000000..90fe9a6 Binary files /dev/null and b/frontend/static/img/flags/bh.png differ diff --git a/frontend/static/img/flags/bi.png b/frontend/static/img/flags/bi.png new file mode 100644 index 0000000..a0f67f8 Binary files /dev/null and b/frontend/static/img/flags/bi.png differ diff --git a/frontend/static/img/flags/bj.png b/frontend/static/img/flags/bj.png new file mode 100644 index 0000000..202dc46 Binary files /dev/null and b/frontend/static/img/flags/bj.png differ diff --git a/frontend/static/img/flags/bm.png b/frontend/static/img/flags/bm.png new file mode 100644 index 0000000..0272cc6 Binary files /dev/null and b/frontend/static/img/flags/bm.png differ diff --git a/frontend/static/img/flags/bn.png b/frontend/static/img/flags/bn.png new file mode 100644 index 0000000..231dd4c Binary files /dev/null and b/frontend/static/img/flags/bn.png differ diff --git a/frontend/static/img/flags/bo.png b/frontend/static/img/flags/bo.png new file mode 100644 index 0000000..48760e8 Binary files /dev/null and b/frontend/static/img/flags/bo.png differ diff --git a/frontend/static/img/flags/br.png b/frontend/static/img/flags/br.png new file mode 100644 index 0000000..5a9cfd4 Binary files /dev/null and b/frontend/static/img/flags/br.png differ diff --git a/frontend/static/img/flags/bs.png b/frontend/static/img/flags/bs.png new file mode 100644 index 0000000..28364ad Binary files /dev/null and b/frontend/static/img/flags/bs.png differ diff --git a/frontend/static/img/flags/bt.png b/frontend/static/img/flags/bt.png new file mode 100644 index 0000000..2d0b604 Binary files /dev/null and b/frontend/static/img/flags/bt.png differ diff --git a/frontend/static/img/flags/bw.png b/frontend/static/img/flags/bw.png new file mode 100644 index 0000000..c8b457d Binary files /dev/null and b/frontend/static/img/flags/bw.png differ diff --git a/frontend/static/img/flags/by.png b/frontend/static/img/flags/by.png new file mode 100644 index 0000000..9c8e46c Binary files /dev/null and b/frontend/static/img/flags/by.png differ diff --git a/frontend/static/img/flags/bz.png b/frontend/static/img/flags/bz.png new file mode 100644 index 0000000..e2a05a6 Binary files /dev/null and b/frontend/static/img/flags/bz.png differ diff --git a/frontend/static/img/flags/ca.png b/frontend/static/img/flags/ca.png new file mode 100644 index 0000000..3e691be Binary files /dev/null and b/frontend/static/img/flags/ca.png differ diff --git a/frontend/static/img/flags/cd.png b/frontend/static/img/flags/cd.png new file mode 100644 index 0000000..badf083 Binary files /dev/null and b/frontend/static/img/flags/cd.png differ diff --git a/frontend/static/img/flags/cf.png b/frontend/static/img/flags/cf.png new file mode 100644 index 0000000..5283c59 Binary files /dev/null and b/frontend/static/img/flags/cf.png differ diff --git a/frontend/static/img/flags/cg.png b/frontend/static/img/flags/cg.png new file mode 100644 index 0000000..88b132b Binary files /dev/null and b/frontend/static/img/flags/cg.png differ diff --git a/frontend/static/img/flags/ch.png b/frontend/static/img/flags/ch.png new file mode 100644 index 0000000..b62f04b Binary files /dev/null and b/frontend/static/img/flags/ch.png differ diff --git a/frontend/static/img/flags/ci.png b/frontend/static/img/flags/ci.png new file mode 100644 index 0000000..4c2a467 Binary files /dev/null and b/frontend/static/img/flags/ci.png differ diff --git a/frontend/static/img/flags/ck.png b/frontend/static/img/flags/ck.png new file mode 100644 index 0000000..2e62ed8 Binary files /dev/null and b/frontend/static/img/flags/ck.png differ diff --git a/frontend/static/img/flags/cl.png b/frontend/static/img/flags/cl.png new file mode 100644 index 0000000..35ddcc1 Binary files /dev/null and b/frontend/static/img/flags/cl.png differ diff --git a/frontend/static/img/flags/cm.png b/frontend/static/img/flags/cm.png new file mode 100644 index 0000000..cf2b443 Binary files /dev/null and b/frontend/static/img/flags/cm.png differ diff --git a/frontend/static/img/flags/cn.png b/frontend/static/img/flags/cn.png new file mode 100644 index 0000000..86ac698 Binary files /dev/null and b/frontend/static/img/flags/cn.png differ diff --git a/frontend/static/img/flags/co.png b/frontend/static/img/flags/co.png new file mode 100644 index 0000000..3686249 Binary files /dev/null and b/frontend/static/img/flags/co.png differ diff --git a/frontend/static/img/flags/cr.png b/frontend/static/img/flags/cr.png new file mode 100644 index 0000000..8559d53 Binary files /dev/null and b/frontend/static/img/flags/cr.png differ diff --git a/frontend/static/img/flags/cu.png b/frontend/static/img/flags/cu.png new file mode 100644 index 0000000..b5d5cfb Binary files /dev/null and b/frontend/static/img/flags/cu.png differ diff --git a/frontend/static/img/flags/cv.png b/frontend/static/img/flags/cv.png new file mode 100644 index 0000000..712253e Binary files /dev/null and b/frontend/static/img/flags/cv.png differ diff --git a/frontend/static/img/flags/cy.png b/frontend/static/img/flags/cy.png new file mode 100644 index 0000000..dea6953 Binary files /dev/null and b/frontend/static/img/flags/cy.png differ diff --git a/frontend/static/img/flags/cz.png b/frontend/static/img/flags/cz.png new file mode 100644 index 0000000..0dd2bb4 Binary files /dev/null and b/frontend/static/img/flags/cz.png differ diff --git a/frontend/static/img/flags/de.png b/frontend/static/img/flags/de.png new file mode 100644 index 0000000..a35292a Binary files /dev/null and b/frontend/static/img/flags/de.png differ diff --git a/frontend/static/img/flags/dj.png b/frontend/static/img/flags/dj.png new file mode 100644 index 0000000..80c7bda Binary files /dev/null and b/frontend/static/img/flags/dj.png differ diff --git a/frontend/static/img/flags/dk.png b/frontend/static/img/flags/dk.png new file mode 100644 index 0000000..58d47d9 Binary files /dev/null and b/frontend/static/img/flags/dk.png differ diff --git a/frontend/static/img/flags/dm.png b/frontend/static/img/flags/dm.png new file mode 100644 index 0000000..b8b3ce0 Binary files /dev/null and b/frontend/static/img/flags/dm.png differ diff --git a/frontend/static/img/flags/do.png b/frontend/static/img/flags/do.png new file mode 100644 index 0000000..46edfad Binary files /dev/null and b/frontend/static/img/flags/do.png differ diff --git a/frontend/static/img/flags/dz.png b/frontend/static/img/flags/dz.png new file mode 100644 index 0000000..fe1fc6c Binary files /dev/null and b/frontend/static/img/flags/dz.png differ diff --git a/frontend/static/img/flags/ec.png b/frontend/static/img/flags/ec.png new file mode 100644 index 0000000..61eb262 Binary files /dev/null and b/frontend/static/img/flags/ec.png differ diff --git a/frontend/static/img/flags/ee.png b/frontend/static/img/flags/ee.png new file mode 100644 index 0000000..426ab13 Binary files /dev/null and b/frontend/static/img/flags/ee.png differ diff --git a/frontend/static/img/flags/eg.png b/frontend/static/img/flags/eg.png new file mode 100644 index 0000000..ac4bab4 Binary files /dev/null and b/frontend/static/img/flags/eg.png differ diff --git a/frontend/static/img/flags/eh.png b/frontend/static/img/flags/eh.png new file mode 100644 index 0000000..d6fc4b7 Binary files /dev/null and b/frontend/static/img/flags/eh.png differ diff --git a/frontend/static/img/flags/er.png b/frontend/static/img/flags/er.png new file mode 100644 index 0000000..84c0c84 Binary files /dev/null and b/frontend/static/img/flags/er.png differ diff --git a/frontend/static/img/flags/es.png b/frontend/static/img/flags/es.png new file mode 100644 index 0000000..a4177e9 Binary files /dev/null and b/frontend/static/img/flags/es.png differ diff --git a/frontend/static/img/flags/et.png b/frontend/static/img/flags/et.png new file mode 100644 index 0000000..e766a48 Binary files /dev/null and b/frontend/static/img/flags/et.png differ diff --git a/frontend/static/img/flags/fi.png b/frontend/static/img/flags/fi.png new file mode 100644 index 0000000..3a30faf Binary files /dev/null and b/frontend/static/img/flags/fi.png differ diff --git a/frontend/static/img/flags/fj.png b/frontend/static/img/flags/fj.png new file mode 100644 index 0000000..43f910b Binary files /dev/null and b/frontend/static/img/flags/fj.png differ diff --git a/frontend/static/img/flags/fm.png b/frontend/static/img/flags/fm.png new file mode 100644 index 0000000..8321229 Binary files /dev/null and b/frontend/static/img/flags/fm.png differ diff --git a/frontend/static/img/flags/fo.png b/frontend/static/img/flags/fo.png new file mode 100644 index 0000000..5cdd720 Binary files /dev/null and b/frontend/static/img/flags/fo.png differ diff --git a/frontend/static/img/flags/fr.png b/frontend/static/img/flags/fr.png new file mode 100644 index 0000000..21d0419 Binary files /dev/null and b/frontend/static/img/flags/fr.png differ diff --git a/frontend/static/img/flags/ga.png b/frontend/static/img/flags/ga.png new file mode 100644 index 0000000..c83fd2a Binary files /dev/null and b/frontend/static/img/flags/ga.png differ diff --git a/frontend/static/img/flags/gb.png b/frontend/static/img/flags/gb.png new file mode 100644 index 0000000..82cf5f1 Binary files /dev/null and b/frontend/static/img/flags/gb.png differ diff --git a/frontend/static/img/flags/gd.png b/frontend/static/img/flags/gd.png new file mode 100644 index 0000000..7ced8c8 Binary files /dev/null and b/frontend/static/img/flags/gd.png differ diff --git a/frontend/static/img/flags/ge.png b/frontend/static/img/flags/ge.png new file mode 100644 index 0000000..5e2944c Binary files /dev/null and b/frontend/static/img/flags/ge.png differ diff --git a/frontend/static/img/flags/gg.png b/frontend/static/img/flags/gg.png new file mode 100644 index 0000000..617895b Binary files /dev/null and b/frontend/static/img/flags/gg.png differ diff --git a/frontend/static/img/flags/gh.png b/frontend/static/img/flags/gh.png new file mode 100644 index 0000000..b558e78 Binary files /dev/null and b/frontend/static/img/flags/gh.png differ diff --git a/frontend/static/img/flags/gi.png b/frontend/static/img/flags/gi.png new file mode 100644 index 0000000..2502ad8 Binary files /dev/null and b/frontend/static/img/flags/gi.png differ diff --git a/frontend/static/img/flags/gl.png b/frontend/static/img/flags/gl.png new file mode 100644 index 0000000..d1a4189 Binary files /dev/null and b/frontend/static/img/flags/gl.png differ diff --git a/frontend/static/img/flags/gm.png b/frontend/static/img/flags/gm.png new file mode 100644 index 0000000..d4d9e52 Binary files /dev/null and b/frontend/static/img/flags/gm.png differ diff --git a/frontend/static/img/flags/gn.png b/frontend/static/img/flags/gn.png new file mode 100644 index 0000000..c5fbfa5 Binary files /dev/null and b/frontend/static/img/flags/gn.png differ diff --git a/frontend/static/img/flags/gp.png b/frontend/static/img/flags/gp.png new file mode 100644 index 0000000..65bfca8 Binary files /dev/null and b/frontend/static/img/flags/gp.png differ diff --git a/frontend/static/img/flags/gq.png b/frontend/static/img/flags/gq.png new file mode 100644 index 0000000..92b3b81 Binary files /dev/null and b/frontend/static/img/flags/gq.png differ diff --git a/frontend/static/img/flags/gr.png b/frontend/static/img/flags/gr.png new file mode 100644 index 0000000..654f92d Binary files /dev/null and b/frontend/static/img/flags/gr.png differ diff --git a/frontend/static/img/flags/gt.png b/frontend/static/img/flags/gt.png new file mode 100644 index 0000000..d20df5a Binary files /dev/null and b/frontend/static/img/flags/gt.png differ diff --git a/frontend/static/img/flags/gu.png b/frontend/static/img/flags/gu.png new file mode 100644 index 0000000..ea3eb76 Binary files /dev/null and b/frontend/static/img/flags/gu.png differ diff --git a/frontend/static/img/flags/gw.png b/frontend/static/img/flags/gw.png new file mode 100644 index 0000000..b3e1673 Binary files /dev/null and b/frontend/static/img/flags/gw.png differ diff --git a/frontend/static/img/flags/gy.png b/frontend/static/img/flags/gy.png new file mode 100644 index 0000000..48db75f Binary files /dev/null and b/frontend/static/img/flags/gy.png differ diff --git a/frontend/static/img/flags/hk.png b/frontend/static/img/flags/hk.png new file mode 100644 index 0000000..b5f8420 Binary files /dev/null and b/frontend/static/img/flags/hk.png differ diff --git a/frontend/static/img/flags/hn.png b/frontend/static/img/flags/hn.png new file mode 100644 index 0000000..575430e Binary files /dev/null and b/frontend/static/img/flags/hn.png differ diff --git a/frontend/static/img/flags/hr.png b/frontend/static/img/flags/hr.png new file mode 100644 index 0000000..f4e7f56 Binary files /dev/null and b/frontend/static/img/flags/hr.png differ diff --git a/frontend/static/img/flags/ht.png b/frontend/static/img/flags/ht.png new file mode 100644 index 0000000..cec06f8 Binary files /dev/null and b/frontend/static/img/flags/ht.png differ diff --git a/frontend/static/img/flags/hu.png b/frontend/static/img/flags/hu.png new file mode 100644 index 0000000..8ec9069 Binary files /dev/null and b/frontend/static/img/flags/hu.png differ diff --git a/frontend/static/img/flags/id.png b/frontend/static/img/flags/id.png new file mode 100644 index 0000000..d72a4a4 Binary files /dev/null and b/frontend/static/img/flags/id.png differ diff --git a/frontend/static/img/flags/ie.png b/frontend/static/img/flags/ie.png new file mode 100644 index 0000000..9cba32b Binary files /dev/null and b/frontend/static/img/flags/ie.png differ diff --git a/frontend/static/img/flags/il.png b/frontend/static/img/flags/il.png new file mode 100644 index 0000000..c156286 Binary files /dev/null and b/frontend/static/img/flags/il.png differ diff --git a/frontend/static/img/flags/im.png b/frontend/static/img/flags/im.png new file mode 100644 index 0000000..8b9412d Binary files /dev/null and b/frontend/static/img/flags/im.png differ diff --git a/frontend/static/img/flags/in.png b/frontend/static/img/flags/in.png new file mode 100644 index 0000000..ac001d6 Binary files /dev/null and b/frontend/static/img/flags/in.png differ diff --git a/frontend/static/img/flags/iq.png b/frontend/static/img/flags/iq.png new file mode 100644 index 0000000..4fbdaa0 Binary files /dev/null and b/frontend/static/img/flags/iq.png differ diff --git a/frontend/static/img/flags/ir.png b/frontend/static/img/flags/ir.png new file mode 100644 index 0000000..071fe8c Binary files /dev/null and b/frontend/static/img/flags/ir.png differ diff --git a/frontend/static/img/flags/is.png b/frontend/static/img/flags/is.png new file mode 100644 index 0000000..f6b5d75 Binary files /dev/null and b/frontend/static/img/flags/is.png differ diff --git a/frontend/static/img/flags/it.png b/frontend/static/img/flags/it.png new file mode 100644 index 0000000..18de857 Binary files /dev/null and b/frontend/static/img/flags/it.png differ diff --git a/frontend/static/img/flags/je.png b/frontend/static/img/flags/je.png new file mode 100644 index 0000000..4858701 Binary files /dev/null and b/frontend/static/img/flags/je.png differ diff --git a/frontend/static/img/flags/jm.png b/frontend/static/img/flags/jm.png new file mode 100644 index 0000000..1342c33 Binary files /dev/null and b/frontend/static/img/flags/jm.png differ diff --git a/frontend/static/img/flags/jo.png b/frontend/static/img/flags/jo.png new file mode 100644 index 0000000..bd81547 Binary files /dev/null and b/frontend/static/img/flags/jo.png differ diff --git a/frontend/static/img/flags/jp.png b/frontend/static/img/flags/jp.png new file mode 100644 index 0000000..67020df Binary files /dev/null and b/frontend/static/img/flags/jp.png differ diff --git a/frontend/static/img/flags/ke.png b/frontend/static/img/flags/ke.png new file mode 100644 index 0000000..8db89fb Binary files /dev/null and b/frontend/static/img/flags/ke.png differ diff --git a/frontend/static/img/flags/kg.png b/frontend/static/img/flags/kg.png new file mode 100644 index 0000000..6f46e03 Binary files /dev/null and b/frontend/static/img/flags/kg.png differ diff --git a/frontend/static/img/flags/kh.png b/frontend/static/img/flags/kh.png new file mode 100644 index 0000000..a4b77f7 Binary files /dev/null and b/frontend/static/img/flags/kh.png differ diff --git a/frontend/static/img/flags/ki.png b/frontend/static/img/flags/ki.png new file mode 100644 index 0000000..6ee33b2 Binary files /dev/null and b/frontend/static/img/flags/ki.png differ diff --git a/frontend/static/img/flags/km.png b/frontend/static/img/flags/km.png new file mode 100644 index 0000000..a7c03c5 Binary files /dev/null and b/frontend/static/img/flags/km.png differ diff --git a/frontend/static/img/flags/kn.png b/frontend/static/img/flags/kn.png new file mode 100644 index 0000000..1451f19 Binary files /dev/null and b/frontend/static/img/flags/kn.png differ diff --git a/frontend/static/img/flags/kp.png b/frontend/static/img/flags/kp.png new file mode 100644 index 0000000..403624e Binary files /dev/null and b/frontend/static/img/flags/kp.png differ diff --git a/frontend/static/img/flags/kr.png b/frontend/static/img/flags/kr.png new file mode 100644 index 0000000..0e3d706 Binary files /dev/null and b/frontend/static/img/flags/kr.png differ diff --git a/frontend/static/img/flags/kw.png b/frontend/static/img/flags/kw.png new file mode 100644 index 0000000..2ece850 Binary files /dev/null and b/frontend/static/img/flags/kw.png differ diff --git a/frontend/static/img/flags/ky.png b/frontend/static/img/flags/ky.png new file mode 100644 index 0000000..3961af3 Binary files /dev/null and b/frontend/static/img/flags/ky.png differ diff --git a/frontend/static/img/flags/kz.png b/frontend/static/img/flags/kz.png new file mode 100644 index 0000000..7d2a26e Binary files /dev/null and b/frontend/static/img/flags/kz.png differ diff --git a/frontend/static/img/flags/la.png b/frontend/static/img/flags/la.png new file mode 100644 index 0000000..0851e89 Binary files /dev/null and b/frontend/static/img/flags/la.png differ diff --git a/frontend/static/img/flags/lb.png b/frontend/static/img/flags/lb.png new file mode 100644 index 0000000..e71fc2c Binary files /dev/null and b/frontend/static/img/flags/lb.png differ diff --git a/frontend/static/img/flags/lc.png b/frontend/static/img/flags/lc.png new file mode 100644 index 0000000..fea98e3 Binary files /dev/null and b/frontend/static/img/flags/lc.png differ diff --git a/frontend/static/img/flags/li.png b/frontend/static/img/flags/li.png new file mode 100644 index 0000000..109c752 Binary files /dev/null and b/frontend/static/img/flags/li.png differ diff --git a/frontend/static/img/flags/lk.png b/frontend/static/img/flags/lk.png new file mode 100644 index 0000000..99ae232 Binary files /dev/null and b/frontend/static/img/flags/lk.png differ diff --git a/frontend/static/img/flags/lr.png b/frontend/static/img/flags/lr.png new file mode 100644 index 0000000..27f2006 Binary files /dev/null and b/frontend/static/img/flags/lr.png differ diff --git a/frontend/static/img/flags/ls.png b/frontend/static/img/flags/ls.png new file mode 100644 index 0000000..abadd95 Binary files /dev/null and b/frontend/static/img/flags/ls.png differ diff --git a/frontend/static/img/flags/lt.png b/frontend/static/img/flags/lt.png new file mode 100644 index 0000000..5854c7d Binary files /dev/null and b/frontend/static/img/flags/lt.png differ diff --git a/frontend/static/img/flags/lu.png b/frontend/static/img/flags/lu.png new file mode 100644 index 0000000..09328c0 Binary files /dev/null and b/frontend/static/img/flags/lu.png differ diff --git a/frontend/static/img/flags/lv.png b/frontend/static/img/flags/lv.png new file mode 100644 index 0000000..fa83119 Binary files /dev/null and b/frontend/static/img/flags/lv.png differ diff --git a/frontend/static/img/flags/ly.png b/frontend/static/img/flags/ly.png new file mode 100644 index 0000000..afd14b4 Binary files /dev/null and b/frontend/static/img/flags/ly.png differ diff --git a/frontend/static/img/flags/ma.png b/frontend/static/img/flags/ma.png new file mode 100644 index 0000000..4cb8c4f Binary files /dev/null and b/frontend/static/img/flags/ma.png differ diff --git a/frontend/static/img/flags/mc.png b/frontend/static/img/flags/mc.png new file mode 100644 index 0000000..d72a4a4 Binary files /dev/null and b/frontend/static/img/flags/mc.png differ diff --git a/frontend/static/img/flags/md.png b/frontend/static/img/flags/md.png new file mode 100644 index 0000000..0e342f1 Binary files /dev/null and b/frontend/static/img/flags/md.png differ diff --git a/frontend/static/img/flags/me.png b/frontend/static/img/flags/me.png new file mode 100644 index 0000000..ad067f1 Binary files /dev/null and b/frontend/static/img/flags/me.png differ diff --git a/frontend/static/img/flags/mg.png b/frontend/static/img/flags/mg.png new file mode 100644 index 0000000..5c92205 Binary files /dev/null and b/frontend/static/img/flags/mg.png differ diff --git a/frontend/static/img/flags/mh.png b/frontend/static/img/flags/mh.png new file mode 100644 index 0000000..02fbde6 Binary files /dev/null and b/frontend/static/img/flags/mh.png differ diff --git a/frontend/static/img/flags/mk.png b/frontend/static/img/flags/mk.png new file mode 100644 index 0000000..0154725 Binary files /dev/null and b/frontend/static/img/flags/mk.png differ diff --git a/frontend/static/img/flags/ml.png b/frontend/static/img/flags/ml.png new file mode 100644 index 0000000..f93bffd Binary files /dev/null and b/frontend/static/img/flags/ml.png differ diff --git a/frontend/static/img/flags/mm.png b/frontend/static/img/flags/mm.png new file mode 100644 index 0000000..1ae147c Binary files /dev/null and b/frontend/static/img/flags/mm.png differ diff --git a/frontend/static/img/flags/mn.png b/frontend/static/img/flags/mn.png new file mode 100644 index 0000000..aadc11e Binary files /dev/null and b/frontend/static/img/flags/mn.png differ diff --git a/frontend/static/img/flags/mo.png b/frontend/static/img/flags/mo.png new file mode 100644 index 0000000..099097b Binary files /dev/null and b/frontend/static/img/flags/mo.png differ diff --git a/frontend/static/img/flags/mq.png b/frontend/static/img/flags/mq.png new file mode 100644 index 0000000..e6b06c3 Binary files /dev/null and b/frontend/static/img/flags/mq.png differ diff --git a/frontend/static/img/flags/mr.png b/frontend/static/img/flags/mr.png new file mode 100644 index 0000000..b091eef Binary files /dev/null and b/frontend/static/img/flags/mr.png differ diff --git a/frontend/static/img/flags/ms.png b/frontend/static/img/flags/ms.png new file mode 100644 index 0000000..779babd Binary files /dev/null and b/frontend/static/img/flags/ms.png differ diff --git a/frontend/static/img/flags/mt.png b/frontend/static/img/flags/mt.png new file mode 100644 index 0000000..e0bf47d Binary files /dev/null and b/frontend/static/img/flags/mt.png differ diff --git a/frontend/static/img/flags/mu.png b/frontend/static/img/flags/mu.png new file mode 100644 index 0000000..b09576f Binary files /dev/null and b/frontend/static/img/flags/mu.png differ diff --git a/frontend/static/img/flags/mv.png b/frontend/static/img/flags/mv.png new file mode 100644 index 0000000..345d21e Binary files /dev/null and b/frontend/static/img/flags/mv.png differ diff --git a/frontend/static/img/flags/mw.png b/frontend/static/img/flags/mw.png new file mode 100644 index 0000000..54bccd4 Binary files /dev/null and b/frontend/static/img/flags/mw.png differ diff --git a/frontend/static/img/flags/mx.png b/frontend/static/img/flags/mx.png new file mode 100644 index 0000000..e6c2c83 Binary files /dev/null and b/frontend/static/img/flags/mx.png differ diff --git a/frontend/static/img/flags/my.png b/frontend/static/img/flags/my.png new file mode 100644 index 0000000..0adbfe0 Binary files /dev/null and b/frontend/static/img/flags/my.png differ diff --git a/frontend/static/img/flags/mz.png b/frontend/static/img/flags/mz.png new file mode 100644 index 0000000..f50ae6b Binary files /dev/null and b/frontend/static/img/flags/mz.png differ diff --git a/frontend/static/img/flags/na.png b/frontend/static/img/flags/na.png new file mode 100644 index 0000000..7ae4759 Binary files /dev/null and b/frontend/static/img/flags/na.png differ diff --git a/frontend/static/img/flags/nc.png b/frontend/static/img/flags/nc.png new file mode 100644 index 0000000..e9e4242 Binary files /dev/null and b/frontend/static/img/flags/nc.png differ diff --git a/frontend/static/img/flags/ne.png b/frontend/static/img/flags/ne.png new file mode 100644 index 0000000..c1fdcd1 Binary files /dev/null and b/frontend/static/img/flags/ne.png differ diff --git a/frontend/static/img/flags/ng.png b/frontend/static/img/flags/ng.png new file mode 100644 index 0000000..9310f19 Binary files /dev/null and b/frontend/static/img/flags/ng.png differ diff --git a/frontend/static/img/flags/ni.png b/frontend/static/img/flags/ni.png new file mode 100644 index 0000000..67b1f5c Binary files /dev/null and b/frontend/static/img/flags/ni.png differ diff --git a/frontend/static/img/flags/nl.png b/frontend/static/img/flags/nl.png new file mode 100644 index 0000000..9073f2c Binary files /dev/null and b/frontend/static/img/flags/nl.png differ diff --git a/frontend/static/img/flags/no.png b/frontend/static/img/flags/no.png new file mode 100644 index 0000000..9717bbf Binary files /dev/null and b/frontend/static/img/flags/no.png differ diff --git a/frontend/static/img/flags/np.png b/frontend/static/img/flags/np.png new file mode 100644 index 0000000..327eb5f Binary files /dev/null and b/frontend/static/img/flags/np.png differ diff --git a/frontend/static/img/flags/nr.png b/frontend/static/img/flags/nr.png new file mode 100644 index 0000000..7aaf39c Binary files /dev/null and b/frontend/static/img/flags/nr.png differ diff --git a/frontend/static/img/flags/nz.png b/frontend/static/img/flags/nz.png new file mode 100644 index 0000000..498bca3 Binary files /dev/null and b/frontend/static/img/flags/nz.png differ diff --git a/frontend/static/img/flags/om.png b/frontend/static/img/flags/om.png new file mode 100644 index 0000000..65901cf Binary files /dev/null and b/frontend/static/img/flags/om.png differ diff --git a/frontend/static/img/flags/pa.png b/frontend/static/img/flags/pa.png new file mode 100644 index 0000000..afb4ca9 Binary files /dev/null and b/frontend/static/img/flags/pa.png differ diff --git a/frontend/static/img/flags/pe.png b/frontend/static/img/flags/pe.png new file mode 100644 index 0000000..96dc7ef Binary files /dev/null and b/frontend/static/img/flags/pe.png differ diff --git a/frontend/static/img/flags/pf.png b/frontend/static/img/flags/pf.png new file mode 100644 index 0000000..f733ac1 Binary files /dev/null and b/frontend/static/img/flags/pf.png differ diff --git a/frontend/static/img/flags/pg.png b/frontend/static/img/flags/pg.png new file mode 100644 index 0000000..a239b74 Binary files /dev/null and b/frontend/static/img/flags/pg.png differ diff --git a/frontend/static/img/flags/ph.png b/frontend/static/img/flags/ph.png new file mode 100644 index 0000000..f626ed9 Binary files /dev/null and b/frontend/static/img/flags/ph.png differ diff --git a/frontend/static/img/flags/pk.png b/frontend/static/img/flags/pk.png new file mode 100644 index 0000000..aab99bf Binary files /dev/null and b/frontend/static/img/flags/pk.png differ diff --git a/frontend/static/img/flags/pl.png b/frontend/static/img/flags/pl.png new file mode 100644 index 0000000..088a766 Binary files /dev/null and b/frontend/static/img/flags/pl.png differ diff --git a/frontend/static/img/flags/pr.png b/frontend/static/img/flags/pr.png new file mode 100644 index 0000000..79a3c61 Binary files /dev/null and b/frontend/static/img/flags/pr.png differ diff --git a/frontend/static/img/flags/ps.png b/frontend/static/img/flags/ps.png new file mode 100644 index 0000000..0d25538 Binary files /dev/null and b/frontend/static/img/flags/ps.png differ diff --git a/frontend/static/img/flags/pt.png b/frontend/static/img/flags/pt.png new file mode 100644 index 0000000..630a85c Binary files /dev/null and b/frontend/static/img/flags/pt.png differ diff --git a/frontend/static/img/flags/pw.png b/frontend/static/img/flags/pw.png new file mode 100644 index 0000000..5afec54 Binary files /dev/null and b/frontend/static/img/flags/pw.png differ diff --git a/frontend/static/img/flags/py.png b/frontend/static/img/flags/py.png new file mode 100644 index 0000000..73ff28b Binary files /dev/null and b/frontend/static/img/flags/py.png differ diff --git a/frontend/static/img/flags/qa.png b/frontend/static/img/flags/qa.png new file mode 100644 index 0000000..cd0905c Binary files /dev/null and b/frontend/static/img/flags/qa.png differ diff --git a/frontend/static/img/flags/re.png b/frontend/static/img/flags/re.png new file mode 100644 index 0000000..500f9a1 Binary files /dev/null and b/frontend/static/img/flags/re.png differ diff --git a/frontend/static/img/flags/ro.png b/frontend/static/img/flags/ro.png new file mode 100644 index 0000000..f815958 Binary files /dev/null and b/frontend/static/img/flags/ro.png differ diff --git a/frontend/static/img/flags/rs.png b/frontend/static/img/flags/rs.png new file mode 100644 index 0000000..b6b0822 Binary files /dev/null and b/frontend/static/img/flags/rs.png differ diff --git a/frontend/static/img/flags/ru.png b/frontend/static/img/flags/ru.png new file mode 100644 index 0000000..980c585 Binary files /dev/null and b/frontend/static/img/flags/ru.png differ diff --git a/frontend/static/img/flags/rw.png b/frontend/static/img/flags/rw.png new file mode 100644 index 0000000..0659c26 Binary files /dev/null and b/frontend/static/img/flags/rw.png differ diff --git a/frontend/static/img/flags/sa.png b/frontend/static/img/flags/sa.png new file mode 100644 index 0000000..839d0d9 Binary files /dev/null and b/frontend/static/img/flags/sa.png differ diff --git a/frontend/static/img/flags/sb.png b/frontend/static/img/flags/sb.png new file mode 100644 index 0000000..c1d6b0c Binary files /dev/null and b/frontend/static/img/flags/sb.png differ diff --git a/frontend/static/img/flags/sc.png b/frontend/static/img/flags/sc.png new file mode 100644 index 0000000..d36d909 Binary files /dev/null and b/frontend/static/img/flags/sc.png differ diff --git a/frontend/static/img/flags/sd.png b/frontend/static/img/flags/sd.png new file mode 100644 index 0000000..3ba6c4e Binary files /dev/null and b/frontend/static/img/flags/sd.png differ diff --git a/frontend/static/img/flags/se.png b/frontend/static/img/flags/se.png new file mode 100644 index 0000000..d62df2a Binary files /dev/null and b/frontend/static/img/flags/se.png differ diff --git a/frontend/static/img/flags/sg.png b/frontend/static/img/flags/sg.png new file mode 100644 index 0000000..2c0df6e Binary files /dev/null and b/frontend/static/img/flags/sg.png differ diff --git a/frontend/static/img/flags/si.png b/frontend/static/img/flags/si.png new file mode 100644 index 0000000..0cf8890 Binary files /dev/null and b/frontend/static/img/flags/si.png differ diff --git a/frontend/static/img/flags/sk.png b/frontend/static/img/flags/sk.png new file mode 100644 index 0000000..a3f0881 Binary files /dev/null and b/frontend/static/img/flags/sk.png differ diff --git a/frontend/static/img/flags/sl.png b/frontend/static/img/flags/sl.png new file mode 100644 index 0000000..ff21325 Binary files /dev/null and b/frontend/static/img/flags/sl.png differ diff --git a/frontend/static/img/flags/sm.png b/frontend/static/img/flags/sm.png new file mode 100644 index 0000000..bde1c4e Binary files /dev/null and b/frontend/static/img/flags/sm.png differ diff --git a/frontend/static/img/flags/sn.png b/frontend/static/img/flags/sn.png new file mode 100644 index 0000000..bf45518 Binary files /dev/null and b/frontend/static/img/flags/sn.png differ diff --git a/frontend/static/img/flags/so.png b/frontend/static/img/flags/so.png new file mode 100644 index 0000000..8ca6c8f Binary files /dev/null and b/frontend/static/img/flags/so.png differ diff --git a/frontend/static/img/flags/sr.png b/frontend/static/img/flags/sr.png new file mode 100644 index 0000000..e3d79c8 Binary files /dev/null and b/frontend/static/img/flags/sr.png differ diff --git a/frontend/static/img/flags/st.png b/frontend/static/img/flags/st.png new file mode 100644 index 0000000..6a9da68 Binary files /dev/null and b/frontend/static/img/flags/st.png differ diff --git a/frontend/static/img/flags/sv.png b/frontend/static/img/flags/sv.png new file mode 100644 index 0000000..c73bf80 Binary files /dev/null and b/frontend/static/img/flags/sv.png differ diff --git a/frontend/static/img/flags/sy.png b/frontend/static/img/flags/sy.png new file mode 100644 index 0000000..a0babec Binary files /dev/null and b/frontend/static/img/flags/sy.png differ diff --git a/frontend/static/img/flags/sz.png b/frontend/static/img/flags/sz.png new file mode 100644 index 0000000..5926859 Binary files /dev/null and b/frontend/static/img/flags/sz.png differ diff --git a/frontend/static/img/flags/tc.png b/frontend/static/img/flags/tc.png new file mode 100644 index 0000000..63d711e Binary files /dev/null and b/frontend/static/img/flags/tc.png differ diff --git a/frontend/static/img/flags/td.png b/frontend/static/img/flags/td.png new file mode 100644 index 0000000..d4c92bd Binary files /dev/null and b/frontend/static/img/flags/td.png differ diff --git a/frontend/static/img/flags/tg.png b/frontend/static/img/flags/tg.png new file mode 100644 index 0000000..a32a0c2 Binary files /dev/null and b/frontend/static/img/flags/tg.png differ diff --git a/frontend/static/img/flags/th.png b/frontend/static/img/flags/th.png new file mode 100644 index 0000000..62b8cce Binary files /dev/null and b/frontend/static/img/flags/th.png differ diff --git a/frontend/static/img/flags/tj.png b/frontend/static/img/flags/tj.png new file mode 100644 index 0000000..829fa7b Binary files /dev/null and b/frontend/static/img/flags/tj.png differ diff --git a/frontend/static/img/flags/tl.png b/frontend/static/img/flags/tl.png new file mode 100644 index 0000000..93a45af Binary files /dev/null and b/frontend/static/img/flags/tl.png differ diff --git a/frontend/static/img/flags/tm.png b/frontend/static/img/flags/tm.png new file mode 100644 index 0000000..1860480 Binary files /dev/null and b/frontend/static/img/flags/tm.png differ diff --git a/frontend/static/img/flags/tn.png b/frontend/static/img/flags/tn.png new file mode 100644 index 0000000..8869233 Binary files /dev/null and b/frontend/static/img/flags/tn.png differ diff --git a/frontend/static/img/flags/to.png b/frontend/static/img/flags/to.png new file mode 100644 index 0000000..dac83d8 Binary files /dev/null and b/frontend/static/img/flags/to.png differ diff --git a/frontend/static/img/flags/tr.png b/frontend/static/img/flags/tr.png new file mode 100644 index 0000000..dc33119 Binary files /dev/null and b/frontend/static/img/flags/tr.png differ diff --git a/frontend/static/img/flags/tt.png b/frontend/static/img/flags/tt.png new file mode 100644 index 0000000..f5e185e Binary files /dev/null and b/frontend/static/img/flags/tt.png differ diff --git a/frontend/static/img/flags/tv.png b/frontend/static/img/flags/tv.png new file mode 100644 index 0000000..9c85af4 Binary files /dev/null and b/frontend/static/img/flags/tv.png differ diff --git a/frontend/static/img/flags/tw.png b/frontend/static/img/flags/tw.png new file mode 100644 index 0000000..5feb7ee Binary files /dev/null and b/frontend/static/img/flags/tw.png differ diff --git a/frontend/static/img/flags/tz.png b/frontend/static/img/flags/tz.png new file mode 100644 index 0000000..59eee14 Binary files /dev/null and b/frontend/static/img/flags/tz.png differ diff --git a/frontend/static/img/flags/ua.png b/frontend/static/img/flags/ua.png new file mode 100644 index 0000000..46f59cb Binary files /dev/null and b/frontend/static/img/flags/ua.png differ diff --git a/frontend/static/img/flags/ug.png b/frontend/static/img/flags/ug.png new file mode 100644 index 0000000..eb91362 Binary files /dev/null and b/frontend/static/img/flags/ug.png differ diff --git a/frontend/static/img/flags/us.png b/frontend/static/img/flags/us.png new file mode 100644 index 0000000..5e4b4d9 Binary files /dev/null and b/frontend/static/img/flags/us.png differ diff --git a/frontend/static/img/flags/uy.png b/frontend/static/img/flags/uy.png new file mode 100644 index 0000000..f174217 Binary files /dev/null and b/frontend/static/img/flags/uy.png differ diff --git a/frontend/static/img/flags/uz.png b/frontend/static/img/flags/uz.png new file mode 100644 index 0000000..304c0bd Binary files /dev/null and b/frontend/static/img/flags/uz.png differ diff --git a/frontend/static/img/flags/va.png b/frontend/static/img/flags/va.png new file mode 100644 index 0000000..049f341 Binary files /dev/null and b/frontend/static/img/flags/va.png differ diff --git a/frontend/static/img/flags/vc.png b/frontend/static/img/flags/vc.png new file mode 100644 index 0000000..0b36139 Binary files /dev/null and b/frontend/static/img/flags/vc.png differ diff --git a/frontend/static/img/flags/ve.png b/frontend/static/img/flags/ve.png new file mode 100644 index 0000000..03a1fca Binary files /dev/null and b/frontend/static/img/flags/ve.png differ diff --git a/frontend/static/img/flags/vg.png b/frontend/static/img/flags/vg.png new file mode 100644 index 0000000..f6c33a3 Binary files /dev/null and b/frontend/static/img/flags/vg.png differ diff --git a/frontend/static/img/flags/vi.png b/frontend/static/img/flags/vi.png new file mode 100644 index 0000000..1aa55d3 Binary files /dev/null and b/frontend/static/img/flags/vi.png differ diff --git a/frontend/static/img/flags/vn.png b/frontend/static/img/flags/vn.png new file mode 100644 index 0000000..f6aaa60 Binary files /dev/null and b/frontend/static/img/flags/vn.png differ diff --git a/frontend/static/img/flags/vu.png b/frontend/static/img/flags/vu.png new file mode 100644 index 0000000..10fc79e Binary files /dev/null and b/frontend/static/img/flags/vu.png differ diff --git a/frontend/static/img/flags/ws.png b/frontend/static/img/flags/ws.png new file mode 100644 index 0000000..ba47ee7 Binary files /dev/null and b/frontend/static/img/flags/ws.png differ diff --git a/frontend/static/img/flags/ye.png b/frontend/static/img/flags/ye.png new file mode 100644 index 0000000..b2358ed Binary files /dev/null and b/frontend/static/img/flags/ye.png differ diff --git a/frontend/static/img/flags/za.png b/frontend/static/img/flags/za.png new file mode 100644 index 0000000..dc17e66 Binary files /dev/null and b/frontend/static/img/flags/za.png differ diff --git a/frontend/static/img/flags/zm.png b/frontend/static/img/flags/zm.png new file mode 100644 index 0000000..3684007 Binary files /dev/null and b/frontend/static/img/flags/zm.png differ diff --git a/frontend/static/img/flags/zw.png b/frontend/static/img/flags/zw.png new file mode 100644 index 0000000..74b99fe Binary files /dev/null and b/frontend/static/img/flags/zw.png differ diff --git a/frontend/static/min.css b/frontend/static/min.css new file mode 100644 index 0000000..14d1f26 --- /dev/null +++ b/frontend/static/min.css @@ -0,0 +1 @@ +/* Copyright 2014 Owen Versteeg; MIT licensed */body,textarea,input,select{background:0;border-radius:0;font:16px sans-serif;margin:0}.smooth{transition:all .2s}.btn,.nav a{text-decoration:none}.container{margin:0 20px;width:auto}label>*{display:inline}form>*{display:block;margin-bottom:10px}.btn{background:#999;border-radius:6px;border:0;color:#fff;cursor:pointer;display:inline-block;margin:2px 0;padding:12px 30px 14px}.btn:hover{background:#888}.btn:active,.btn:focus{background:#777}.btn-a{background:#0ae}.btn-a:hover{background:#09d}.btn-a:active,.btn-a:focus{background:#08b}.btn-b{background:#3c5}.btn-b:hover{background:#2b4}.btn-b:active,.btn-b:focus{background:#2a4}.btn-c{background:#d33}.btn-c:hover{background:#c22}.btn-c:active,.btn-c:focus{background:#b22}.btn-sm{border-radius:4px;padding:10px 14px 11px}.row{margin:1% 0;overflow:auto}.col{float:left}.table,.c12{width:100%}.c11{width:91.66%}.c10{width:83.33%}.c9{width:75%}.c8{width:66.66%}.c7{width:58.33%}.c6{width:50%}.c5{width:41.66%}.c4{width:33.33%}.c3{width:25%}.c2{width:16.66%}.c1{width:8.33%}h1{font-size:3em}.btn,h2{font-size:2em}.ico{font:33px Arial Unicode MS,Lucida Sans Unicode}.addon,.btn-sm,.nav,textarea,input,select{outline:0;font-size:14px}textarea,input,select{padding:8px;border:1px solid #ccc}textarea:focus,input:focus,select:focus{border-color:#5ab}textarea,input[type=text]{-webkit-appearance:none;width:13em}.addon{padding:8px 12px;box-shadow:0 0 0 1px #ccc}.nav,.nav .current,.nav a:hover{background:#000;color:#fff}.nav{height:24px;padding:11px 0 15px}.nav a{color:#aaa;padding-right:1em;position:relative;top:-1px}.nav .pagename{font-size:22px;top:1px}.btn.btn-close{background:#000;float:right;font-size:25px;margin:-54px 7px;display:none}@media(min-width:1310px){.container{margin:auto;width:1270px}}@media(max-width:870px){.row .col{width:100%}}@media(max-width:500px){.btn.btn-close{display:block}.nav{overflow:hidden}.pagename{margin-top:-11px}.nav:active,.nav:focus{height:auto}.nav div:before{background:#000;border-bottom:10px double;border-top:3px solid;content:'';float:right;height:4px;position:relative;right:3px;top:14px;width:20px}.nav a{padding:.5em 0;display:block;width:50%}}.table th,.table td{padding:.5em;text-align:left}.table tbody>:nth-child(2n-1){background:#ddd}.msg{padding:1.5em;background:#def;border-left:5px solid #59d} \ No newline at end of file diff --git a/frontend/templates/index.html b/frontend/templates/index.html new file mode 100644 index 0000000..8a7d7d6 --- /dev/null +++ b/frontend/templates/index.html @@ -0,0 +1,48 @@ + + + + + + + sms-receiver ~ Public phone numbers + + + + + + + {% include 'nav.html' %} +
+
+ {% for number in numbers %} +

+{{ number.msisdn }}

From: {{ number[1] }}
{{ number[0] }}
View SMS!
+ {% endfor %} +
+ + diff --git a/frontend/templates/messages.html b/frontend/templates/messages.html new file mode 100644 index 0000000..4add2e5 --- /dev/null +++ b/frontend/templates/messages.html @@ -0,0 +1,37 @@ + + + + + + + Texts.re ~ +{{ num.msisdn }} {{ num.country }} + + + + + + {% include 'nav.html' %} +
+
+

+{{ num.msisdn }}


+ + + + + + + + + + {% for message in messages %} + + + + + + {% endfor %} + +
FromMessageDate
{{ message.from }}{{ message.body }}{{ message.timestamp}}
+
+ + diff --git a/frontend/templates/nav.html b/frontend/templates/nav.html new file mode 100644 index 0000000..2dcb670 --- /dev/null +++ b/frontend/templates/nav.html @@ -0,0 +1,6 @@ + + diff --git a/frontend/texts.db b/frontend/texts.db new file mode 100644 index 0000000..4b52998 Binary files /dev/null and b/frontend/texts.db differ