From 4107a930b63d9d7193574ad37106bbe88d9be4f3 Mon Sep 17 00:00:00 2001
From: tebarius
Date: Mon, 13 Nov 2023 15:55:55 +0100
Subject: [PATCH] =?UTF-8?q?anpassung=20f=C3=BCr=20proxy?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/workspace.xml | 50 ++++++++++++++++----------
app/Flask-QR.py | 8 ++++-
app/{static => qr-static}/favicon.ico | Bin
app/{static => qr-static}/style.css | 0
app/templates/index.html | 18 +++++-----
app/templates/qr.html | 2 +-
6 files changed, 48 insertions(+), 30 deletions(-)
rename app/{static => qr-static}/favicon.ico (100%)
rename app/{static => qr-static}/style.css (100%)
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 8830aea..fd3347e 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,10 +4,13 @@
-
+
-
+
+
+
+
@@ -49,7 +52,7 @@
-
+
{
"associatedIndex": 4
@@ -62,20 +65,20 @@
- {
+ "keyToString": {
+ "DefaultHtmlFileTemplate": "HTML File",
+ "RunOnceActivity.OpenProjectViewOnStart": "true",
+ "RunOnceActivity.ShowReadmeOnStart": "true",
+ "SHARE_PROJECT_CONFIGURATION_FILES": "true",
+ "ignore.virus.scanning.warn.message": "true",
+ "last_opened_file_path": "/home/tebarius/IdeaProjects/Docker-Flask-QR/app/templates",
+ "project.structure.last.edited": "Modules",
+ "project.structure.proportion": "0.15",
+ "project.structure.side.proportion": "0.2",
+ "settings.editor.selected.configurable": "preferences.keymap"
}
-}]]>
+}
@@ -90,7 +93,7 @@
-
+
@@ -198,7 +201,15 @@
1699515623546
-
+
+
+ 1699621212644
+
+
+
+ 1699621212644
+
+
@@ -232,7 +243,8 @@
-
+
+
diff --git a/app/Flask-QR.py b/app/Flask-QR.py
index 7ffa98f..2a6021c 100755
--- a/app/Flask-QR.py
+++ b/app/Flask-QR.py
@@ -4,7 +4,7 @@
from flask import Flask, render_template, request
from flask_qrcode import QRcode
-app = Flask(__name__)
+app = Flask(__name__, static_folder='qr-static')
QRcode(app)
@@ -13,6 +13,11 @@ def index():
return render_template('index.html')
+@app.route("/index.html")
+def index_html():
+ return render_template('index.html')
+
+
@app.route("/text.html")
def text():
return render_template('text.html')
@@ -69,6 +74,7 @@ def makeqr():
elif request.args.get('type') == "tel":
data = f"tel:{request.args.get('tel')}"
+
elif request.args.get('type') == "geo":
data = "GEO:"
if request.args.get('ns') == "S":
diff --git a/app/static/favicon.ico b/app/qr-static/favicon.ico
similarity index 100%
rename from app/static/favicon.ico
rename to app/qr-static/favicon.ico
diff --git a/app/static/style.css b/app/qr-static/style.css
similarity index 100%
rename from app/static/style.css
rename to app/qr-static/style.css
diff --git a/app/templates/index.html b/app/templates/index.html
index 2460085..b3ed0e8 100644
--- a/app/templates/index.html
+++ b/app/templates/index.html
@@ -3,13 +3,13 @@
{% block inhalt %}
Welche Art von QR-Code soll generiert werden?
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
{% endblock %}
diff --git a/app/templates/qr.html b/app/templates/qr.html
index 83b6844..511911a 100644
--- a/app/templates/qr.html
+++ b/app/templates/qr.html
@@ -9,7 +9,7 @@
-Noch einmal bitte!
+Noch einmal bitte!
{% endblock %}