From fcc360620163d005986bb20e6792c7d8f71e7a3a Mon Sep 17 00:00:00 2001 From: Lukas Metzger Date: Fri, 22 May 2020 18:43:17 +0200 Subject: First version --- requirements.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 requirements.txt (limited to 'requirements.txt') diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..e387ca9 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,24 @@ +Brotli==1.0.7 +click==7.1.2 +dash==1.12.0 +dash-bootstrap-components==0.10.0 +dash-core-components==1.10.0 +dash-html-components==1.0.3 +dash-renderer==1.4.1 +dash-table==4.7.0 +Flask==1.1.2 +Flask-Compress==1.5.0 +future==0.18.2 +humanize==2.4.0 +itsdangerous==1.1.0 +Jinja2==2.11.2 +MarkupSafe==1.1.1 +numpy==1.18.4 +pandas==1.0.3 +plotly==4.7.1 +PyMySQL==0.9.3 +python-dateutil==2.8.1 +pytz==2020.1 +retrying==1.3.3 +six==1.14.0 +Werkzeug==1.0.1 -- cgit v1.2.3-55-g7522 From 1b20b9eb424e3ad0f7ca98b14e387cd942fbfd2a Mon Sep 17 00:00:00 2001 From: Lukas Metzger Date: Wed, 27 May 2020 13:09:55 +0200 Subject: Updated requirements file --- requirements.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'requirements.txt') diff --git a/requirements.txt b/requirements.txt index e387ca9..4e0e72c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,6 +13,7 @@ humanize==2.4.0 itsdangerous==1.1.0 Jinja2==2.11.2 MarkupSafe==1.1.1 +natsort==7.0.1 numpy==1.18.4 pandas==1.0.3 plotly==4.7.1 -- cgit v1.2.3-55-g7522 From b44e62cd1bc982d0c6a7695c27808a2e59287509 Mon Sep 17 00:00:00 2001 From: Lukas Metzger Date: Wed, 27 May 2020 16:03:13 +0200 Subject: Added deployment features --- index.py | 7 ++++++- requirements.txt | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'requirements.txt') diff --git a/index.py b/index.py index 9b8db80..f309978 100644 --- a/index.py +++ b/index.py @@ -11,6 +11,7 @@ import plotly.express as px from app import app from pages import satellites, total, machines, locations, vms, dozmod +# Array of all available Pages pages = [ {'name': 'Satellites', 'link': '/', 'id': 'satellites', 'layout': satellites.layout}, {'name': 'Total', 'link': '/total', 'id': 'total', 'layout': total.layout}, @@ -20,6 +21,7 @@ pages = [ {'name': 'Dozmod', 'link': '/dozmod', 'id': 'dozmod', 'layout': dozmod.layout}, ] +# Set Graph Defaults pio.templates['custom'] = dict( layout=go.Layout( title=dict( @@ -35,7 +37,7 @@ pio.templates['custom'] = dict( ) pio.templates.default = 'custom' - +# Index Layout app.layout = html.Div([ dcc.Location(id='url', refresh=False), dbc.NavbarSimple(dark=True, color="dark", fluid=True, style={'marginBottom': '20px'}, children=[ @@ -44,6 +46,9 @@ app.layout = html.Div([ html.Div(id='page-content') ]) +# Expose Server for Deployment +server = app.server + @app.callback(Output('page-content', 'children'), [Input('url', 'pathname')]) def display_page(pathname): diff --git a/requirements.txt b/requirements.txt index 4e0e72c..0baad9b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,6 +9,7 @@ dash-table==4.7.0 Flask==1.1.2 Flask-Compress==1.5.0 future==0.18.2 +gunicorn==20.0.4 humanize==2.4.0 itsdangerous==1.1.0 Jinja2==2.11.2 -- cgit v1.2.3-55-g7522