diff --git a/app/routes.py b/app/routes.py index f7cdf9f..6d53e64 100644 --- a/app/routes.py +++ b/app/routes.py @@ -2,7 +2,7 @@ import io import re from app import app -from flask import render_template, flash, redirect, url_for, send_file +from flask import render_template, flash, redirect, url_for, send_file, send_from_directory from app.forms import LoginForm, SettingsForm, Step1Form, Step2Form, Step3Form, Step4Form from flask_login import login_user, current_user, logout_user, login_required import sqlalchemy as sa @@ -101,20 +101,20 @@ def index(): #if enable_wifi_sharing == 'true': # service_array.append({"name": _l("Share Access"), "image": url_for("static", filename="images/share-icon.svg"), "url": url_for("share")}) if enable_deltachat == 'true': - service_array.append({"name": _l("Secure Messenger"), "image": url_for("static", filename="images/deltachat-icon.svg"), "url": url_for("messaging") }) + service_array.append({"name": _l("Secure Messenger"), "image": url_for("static", filename="images/SecureMessenger.svg"), "url": url_for("messaging") }) if enable_chat == 'true': - service_array.append({"name": _l("Local Chat"), "image": url_for("static", filename="images/chat-icon.png"), "url": f"{app.config["CONVENE_INSTALL_PATH"]}/#/room/join/%23public%3abutterbox.local"}) + service_array.append({"name": _l("Local Chat"), "image": url_for("static", filename="images/LocalChat.svg"), "url": f"{app.config["CONVENE_INSTALL_PATH"]}/#/room/join/%23public%3abutterbox.local"}) if enable_file_viewer == 'true' and usb_has_appstore: - service_array.append({"name": _l("Apps"), "image": url_for("static", filename="images/appstore-icon.svg")}) + service_array.append({"name": _l("Apps"), "image": url_for("static", filename="images/Apps.svg")}) if enable_file_viewer == 'true' and usb_has_maps: - service_array.append({"name": _l("Maps"), "image": url_for("static", filename="images/maps-icon.png")}) + service_array.append({"name": _l("Maps"), "image": url_for("static", filename="images/Maps.svg")}) if enable_file_viewer == 'true': name = _l("Files") if not usb_inserted: name = _l("Insert USB to browse files") service_array.append({ "name": name, - "image": url_for("static", filename="images/explore-icon.svg"), + "image": url_for("static", filename="images/Files.svg"), "url": url_for("files", path=""),}) return render_template('index.html', title='Home', get_setting=get_setting, services=service_array) diff --git a/app/static/images/Apps.svg b/app/static/images/Apps.svg new file mode 100644 index 0000000..d471181 --- /dev/null +++ b/app/static/images/Apps.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/app/static/images/Files.svg b/app/static/images/Files.svg new file mode 100644 index 0000000..a857b99 --- /dev/null +++ b/app/static/images/Files.svg @@ -0,0 +1,4 @@ + + + + diff --git a/app/static/images/LocalChat.svg b/app/static/images/LocalChat.svg new file mode 100644 index 0000000..a0cf8c8 --- /dev/null +++ b/app/static/images/LocalChat.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/app/static/images/Maps.svg b/app/static/images/Maps.svg new file mode 100644 index 0000000..05d3264 --- /dev/null +++ b/app/static/images/Maps.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/app/static/images/SecureMessenger.svg b/app/static/images/SecureMessenger.svg new file mode 100644 index 0000000..997f4e5 --- /dev/null +++ b/app/static/images/SecureMessenger.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/app/static/images/appstore-icon.svg b/app/static/images/appstore-icon.svg deleted file mode 100644 index df8a694..0000000 --- a/app/static/images/appstore-icon.svg +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/app/static/images/chat-icon.png b/app/static/images/chat-icon.png deleted file mode 100644 index b14bdd4..0000000 Binary files a/app/static/images/chat-icon.png and /dev/null differ diff --git a/app/static/images/deltachat-icon.png b/app/static/images/deltachat-icon.png deleted file mode 100644 index 0715643..0000000 Binary files a/app/static/images/deltachat-icon.png and /dev/null differ diff --git a/app/static/images/deltachat-icon.svg b/app/static/images/deltachat-icon.svg deleted file mode 100644 index 819f903..0000000 --- a/app/static/images/deltachat-icon.svg +++ /dev/null @@ -1,167 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - diff --git a/app/static/images/explore-icon.svg b/app/static/images/explore-icon.svg deleted file mode 100644 index 3354fbe..0000000 --- a/app/static/images/explore-icon.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/app/static/images/maps-icon.png b/app/static/images/maps-icon.png deleted file mode 100644 index b294641..0000000 Binary files a/app/static/images/maps-icon.png and /dev/null differ diff --git a/app/static/images/share-icon.svg b/app/static/images/share-icon.svg deleted file mode 100644 index 258019d..0000000 --- a/app/static/images/share-icon.svg +++ /dev/null @@ -1 +0,0 @@ -share \ No newline at end of file