From ba7339075887f987b47df4e61b52078613d05e5a Mon Sep 17 00:00:00 2001 From: Artem Synytsyn Date: Sun, 21 Jan 2024 20:48:39 +0200 Subject: [PATCH] Add image and other fix (#58) * Fix add user functionality * Set wifi credentials in settings * Fix pylint * Add image and some fixes --- app/config_default.json | 4 +- app/config_docker.json | 24 +++++++++ app/static/prismo.svg | 91 +++++++++++++++++++++++++++++++++++ app/templates/auth/login.html | 3 +- docs/slack_plugin.md | 6 +++ requirements.txt | 10 ++-- 6 files changed, 131 insertions(+), 7 deletions(-) create mode 100644 app/config_docker.json create mode 100644 app/static/prismo.svg create mode 100644 docs/slack_plugin.md diff --git a/app/config_default.json b/app/config_default.json index e348790..3e6c171 100644 --- a/app/config_default.json +++ b/app/config_default.json @@ -23,6 +23,8 @@ "SLACK_TOKEN": "xoxb-this-is-not-areal-slack-token" } }, - "READER_FIRMWARE_FLASHING_SCRIPT_PATH": "/home/artsin/Dev/prismo-reader/src/flasher.sh" + "READER_FIRMWARE_FLASHING_SCRIPT_PATH": "/home/artsin/Dev/prismo-reader/src/flasher.sh", + "WIFI_SSID": "yourSSID", + "WIFI_PASSWORD": "yourWifiPassword" } } \ No newline at end of file diff --git a/app/config_docker.json b/app/config_docker.json new file mode 100644 index 0000000..2953d84 --- /dev/null +++ b/app/config_docker.json @@ -0,0 +1,24 @@ +{ + "DEBUG": true, + "TESTING": true, + "SECRET_KEY": "secret_key", + "USE_X_SENDFILE": false, + "APPLICATION_ROOT": "/", + "SESSION_COOKIE_NAME": "session", + "SESSION_COOKIE_HTTPONLY": true, + "SESSION_COOKIE_SECURE": false, + "SESSION_REFRESH_EACH_REQUEST": true, + "TRAP_HTTP_EXCEPTIONS": false, + "EXPLAIN_TEMPLATE_LOADING": false, + "PREFERRED_URL_SCHEME": "http", + "MAX_COOKIE_SIZE": 4093, + "DATABASE_URI": "file:./external/database.db", + "PRISMO": { + "NOTIFIER": { + "CURRENT_NOTIFIER": "SLACK", + "SLACK_CHANNEL": "#prismo-debug", + "SLACK_TOKEN": "xoxb-THIS-ISNOTAREAL-SLACKTOKEN" + }, + "READER_FIRMWARE_FLASHING_SCRIPT_PATH": "/app/external/firmware/src/flasher.sh" + } +} diff --git a/app/static/prismo.svg b/app/static/prismo.svg new file mode 100644 index 0000000..61574a2 --- /dev/null +++ b/app/static/prismo.svg @@ -0,0 +1,91 @@ + + + + + + + + + + + + + diff --git a/app/templates/auth/login.html b/app/templates/auth/login.html index 1cbfc54..88300ce 100644 --- a/app/templates/auth/login.html +++ b/app/templates/auth/login.html @@ -9,7 +9,8 @@
-

Login

+ +

Login to PRISMO