From c9c72cdc3128fe272edeb6ec20959b2248f33877 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 25 Apr 2019 19:46:20 +0200 Subject: frontend demo --- check/app/server/create.py | 2 +- check/static/assets/css.css | 7 +++++++ check/static/assets/js/dist/.gitkeep | 0 check/static/demo.html | 7 ++++++- 4 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 check/static/assets/js/dist/.gitkeep (limited to 'check') diff --git a/check/app/server/create.py b/check/app/server/create.py index 788bfaa..6dab331 100644 --- a/check/app/server/create.py +++ b/check/app/server/create.py @@ -27,7 +27,7 @@ def create_app(script_info=None): """ functional pattern for creating the flask app """ - app = Flask(__name__, static_folder='static', static_url_path='') + app = Flask(__name__, static_folder='static', static_url_path='/static') app.config['SQLALCHEMY_DATABASE_URI'] = connection_url app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False app.config['CELERY_BROKER_URL'] = cfg.CELERY_BROKER_URL diff --git a/check/static/assets/css.css b/check/static/assets/css.css index 9e8a59f..63cede7 100755 --- a/check/static/assets/css.css +++ b/check/static/assets/css.css @@ -338,4 +338,11 @@ td.result_txt ul li{ margin-left:0; padding-bottom: 5px; list-style: none; +} + +.query { + margin: 10px 0; +} +.results { + margin: 10px 0; } \ No newline at end of file diff --git a/check/static/assets/js/dist/.gitkeep b/check/static/assets/js/dist/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/check/static/demo.html b/check/static/demo.html index c8de017..902794d 100644 --- a/check/static/demo.html +++ b/check/static/demo.html @@ -1,7 +1,12 @@ - PHash Check API Demo + + + Perceptual Hash API Demo + +
+ \ No newline at end of file -- cgit v1.2.3-70-g09d2