diff --git a/web/static/Inconsolata.otf b/web/static/Inconsolata.otf deleted file mode 100644 index e7e1fa0..0000000 Binary files a/web/static/Inconsolata.otf and /dev/null differ diff --git a/web/static/style.css b/web/static/style.css index 9469017..2b74746 100644 --- a/web/static/style.css +++ b/web/static/style.css @@ -1,24 +1,16 @@ -@font-face { - font-family: 'Inconsolata'; - src: url("/static/Inconsolata.otf"); -} - * { margin: 0; padding: 0; } html, body { - font-family: 'Source Sans Pro'; background: #F5F5F5; - overflow: hidden; + font-family: 'sans serif'; } #header { background: #FFF; height: 48px; line-height: 48px; - /*box-shadow: 0 5px 3px rgba(0, 0, 0, 0.1);*/ - /*z-index: 1;*/ position: absolute; top: 0; left: 0; @@ -26,7 +18,7 @@ html, body { } h1 { - font-family: 'Inconsolata'; + font-family: 'Inconsolata', 'Consolas', 'Ubuntu Mono', monospace; font-size: 32px; float: left; padding: 0 40px; @@ -40,8 +32,6 @@ small { .grey { color: #999; - /*font-size: 16px;*/ - /*vertical-align: middle;*/ } ul { @@ -56,7 +46,7 @@ li { #header a { color: #777; padding: 0 20px; - font-family: 'Source Sans Pro'; + font-family: 'Open Sans', 'sans-serif'; font-size: 14px; text-decoration: none; height: 100%; @@ -68,14 +58,6 @@ li { background: #EEE; } -/*#map-wrapper { - position: absolute; - top: 0; - bottom: 0; - left: 0; - right: 0; - z-index: -1; -}*/ @@ -98,10 +80,9 @@ li { top: 0; right: 0; /*bottom: 0;*/ - min-width: 200px; + min-width: 250px; z-index: 999; - /*overflow-y: auto;*/ - /*overflow: hidden;*/ + /*overflow-y: scroll;*/ font-size: 12px; } @@ -112,6 +93,7 @@ li { /*top: 0;*/ /*right: 10px;*/ /*z-index: 5;*/ + font-size: 10px; } #search-box { width: 100%; @@ -137,11 +119,6 @@ h2 { color: #29BBFF; } -#node-info { - /*position: absolute;*/ - /*overflow-y: scroll;*/ - /*background: rgba(220, 220, 220, 0.8);*/ -} #node-info table { width: 100%; } @@ -156,13 +133,13 @@ h2 { } .tt { - font-family: 'Source Code Pro', Consolas, monospace; + font-family: monospace; font-size: 10px; } .autocomplete-suggestions { - font-family: 'Source Code Pro', Consolas, monospace; - font-size: 12px; + font-family: monospace; + font-size: 10px; border: 1px solid #FFF; background: #FFF; overflow: auto; diff --git a/web/templates/base.html b/web/templates/base.html index 1916c7e..c80ef20 100644 --- a/web/templates/base.html +++ b/web/templates/base.html @@ -5,8 +5,6 @@ fc00::/8 - - @@ -14,9 +12,6 @@

fc00::/8

diff --git a/web/templates/tools.html b/web/templates/tools.html deleted file mode 100644 index 8614f95..0000000 --- a/web/templates/tools.html +++ /dev/null @@ -1,9 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -
-

Ping

- -

Traceroute

-
-{% endblock %} diff --git a/web/templates/world-map.html b/web/templates/world-map.html deleted file mode 100644 index 69238a5..0000000 --- a/web/templates/world-map.html +++ /dev/null @@ -1,40 +0,0 @@ -{% extends "base.html" %} - -{% block content %} - -
-
-
- - - - -{% endblock %} diff --git a/web/web.py b/web/web.py index cbb8bec..6ea508d 100644 --- a/web/web.py +++ b/web/web.py @@ -1,22 +1,7 @@ from flask import Flask, render_template, request -from flaskext.mysql import MySQL -import MySQLdb -from pprint import pprint - app = Flask(__name__) -app.debug = True -app.config['MYSQL_DATABASE_HOST'] = 'localhost' -app.config['MYSQL_DATABASE_PORT'] = 3306 -app.config['MYSQL_DATABASE_USER'] = 'fc00' -app.config['MYSQL_DATABASE_PASSWORD'] = 'A54RZ8FN9CtgIdPWmVIgp3sKgm1uSNVlVtPGipOHsalMZ9DNEUTeOijNcZRpLCn1' -app.config['MYSQL_DATABASE_DB'] = 'fc00' -app.config['MYSQL_DATABASE_CHARSET'] = 'utf8' - -mysql = MySQL() -mysql.init_app(app) -conn = mysql.connect() -cursor = conn.cursor(MySQLdb.cursors.DictCursor) +app.debug = False @app.context_processor @@ -24,27 +9,11 @@ def add_ip(): return dict(ip=request.environ['REMOTE_ADDR']) - @app.route('/') @app.route('/network') def page_network(): return render_template('network.html') -@app.route('/world-map') -def page_world_map(): - cursor.execute('SELECT ip, ipv4, ipv6, domain, CONVERT(longitude, CHAR(16)) as longitude, CONVERT(latitude, CHAR(16)) as latitude FROM nodes') - nodes = cursor.fetchall() - return render_template('world-map.html', nodes=nodes) - -@app.route('/tools') -def page_tools(): - return render_template('tools.html') - -@app.route('/test') -def asd(): - pprint(vars(request)) - return 'Asd' - if __name__ == '__main__': app.run(host='::')