mirror of
https://github.com/tebarius/Docker-Flask-QR.git
synced 2025-12-20 22:23:30 +01:00
anpassung für proxy
This commit is contained in:
50
.idea/workspace.xml
generated
50
.idea/workspace.xml
generated
@@ -4,10 +4,13 @@
|
|||||||
<option name="autoReloadType" value="SELECTIVE" />
|
<option name="autoReloadType" value="SELECTIVE" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="3fdfc273-527d-4717-bd6d-4ba98fba7555" name="Changes" comment="geo.html verändert">
|
<list default="true" id="3fdfc273-527d-4717-bd6d-4ba98fba7555" name="Changes" comment="pip-Kommentar in .py gekürzt">
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/Docker-Flask-QR.iml" beforeDir="false" afterPath="$PROJECT_DIR$/Docker-Flask-QR.iml" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/app/Flask-QR.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/Flask-QR.py" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/Flask-QR.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/Flask-QR.py" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/static/favicon.ico" beforeDir="false" afterPath="$PROJECT_DIR$/app/qr-static/favicon.ico" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/static/style.css" beforeDir="false" afterPath="$PROJECT_DIR$/app/qr-static/style.css" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/templates/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/app/templates/index.html" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/templates/qr.html" beforeDir="false" afterPath="$PROJECT_DIR$/app/templates/qr.html" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
@@ -49,7 +52,7 @@
|
|||||||
<option name="stateVersion" value="1" />
|
<option name="stateVersion" value="1" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProblemsViewState">
|
<component name="ProblemsViewState">
|
||||||
<option name="selectedTabId" value="DEPENDENCY_CHECKER_PROBLEMS_TAB" />
|
<option name="selectedTabId" value="CurrentFile" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectColorInfo">{
|
<component name="ProjectColorInfo">{
|
||||||
"associatedIndex": 4
|
"associatedIndex": 4
|
||||||
@@ -62,20 +65,20 @@
|
|||||||
<option name="hideEmptyMiddlePackages" value="true" />
|
<option name="hideEmptyMiddlePackages" value="true" />
|
||||||
<option name="showLibraryContents" value="true" />
|
<option name="showLibraryContents" value="true" />
|
||||||
</component>
|
</component>
|
||||||
<component name="PropertiesComponent"><![CDATA[{
|
<component name="PropertiesComponent">{
|
||||||
"keyToString": {
|
"keyToString": {
|
||||||
"DefaultHtmlFileTemplate": "HTML File",
|
"DefaultHtmlFileTemplate": "HTML File",
|
||||||
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
||||||
"RunOnceActivity.ShowReadmeOnStart": "true",
|
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||||
"SHARE_PROJECT_CONFIGURATION_FILES": "true",
|
"SHARE_PROJECT_CONFIGURATION_FILES": "true",
|
||||||
"ignore.virus.scanning.warn.message": "true",
|
"ignore.virus.scanning.warn.message": "true",
|
||||||
"last_opened_file_path": "/home/tebarius/IdeaProjects/Docker-Flask-QR/app/templates",
|
"last_opened_file_path": "/home/tebarius/IdeaProjects/Docker-Flask-QR/app/templates",
|
||||||
"project.structure.last.edited": "Modules",
|
"project.structure.last.edited": "Modules",
|
||||||
"project.structure.proportion": "0.15",
|
"project.structure.proportion": "0.15",
|
||||||
"project.structure.side.proportion": "0.2",
|
"project.structure.side.proportion": "0.2",
|
||||||
"settings.editor.selected.configurable": "preferences.keymap"
|
"settings.editor.selected.configurable": "preferences.keymap"
|
||||||
}
|
}
|
||||||
}]]></component>
|
}</component>
|
||||||
<component name="RecentsManager">
|
<component name="RecentsManager">
|
||||||
<key name="CopyFile.RECENT_KEYS">
|
<key name="CopyFile.RECENT_KEYS">
|
||||||
<recent name="$PROJECT_DIR$/app/templates" />
|
<recent name="$PROJECT_DIR$/app/templates" />
|
||||||
@@ -90,7 +93,7 @@
|
|||||||
<recent name="D:\mager\Documents\IntelliJ\Docker-Flask-QR" />
|
<recent name="D:\mager\Documents\IntelliJ\Docker-Flask-QR" />
|
||||||
</key>
|
</key>
|
||||||
</component>
|
</component>
|
||||||
<component name="RunManager" selected="Python.Flask-QR">
|
<component name="RunManager" selected="Docker.Dockerfile-Raspi">
|
||||||
<configuration name="Flask-QR" type="PythonConfigurationType" factoryName="Python" nameIsGenerated="true">
|
<configuration name="Flask-QR" type="PythonConfigurationType" factoryName="Python" nameIsGenerated="true">
|
||||||
<module name="Docker-Flask-QR" />
|
<module name="Docker-Flask-QR" />
|
||||||
<option name="INTERPRETER_OPTIONS" value="" />
|
<option name="INTERPRETER_OPTIONS" value="" />
|
||||||
@@ -198,7 +201,15 @@
|
|||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1699515623546</updated>
|
<updated>1699515623546</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="9" />
|
<task id="LOCAL-00009" summary="pip-Kommentar in .py gekürzt">
|
||||||
|
<option name="closed" value="true" />
|
||||||
|
<created>1699621212644</created>
|
||||||
|
<option name="number" value="00009" />
|
||||||
|
<option name="presentableId" value="LOCAL-00009" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1699621212644</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="10" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="Vcs.Log.Tabs.Properties">
|
<component name="Vcs.Log.Tabs.Properties">
|
||||||
@@ -232,7 +243,8 @@
|
|||||||
<MESSAGE value="MeCard ergänzt" />
|
<MESSAGE value="MeCard ergänzt" />
|
||||||
<MESSAGE value="geo ergänzt" />
|
<MESSAGE value="geo ergänzt" />
|
||||||
<MESSAGE value="geo.html verändert" />
|
<MESSAGE value="geo.html verändert" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="geo.html verändert" />
|
<MESSAGE value="pip-Kommentar in .py gekürzt" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="pip-Kommentar in .py gekürzt" />
|
||||||
</component>
|
</component>
|
||||||
<component name="XSLT-Support.FileAssociations.UIState">
|
<component name="XSLT-Support.FileAssociations.UIState">
|
||||||
<expand />
|
<expand />
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
from flask import Flask, render_template, request
|
from flask import Flask, render_template, request
|
||||||
from flask_qrcode import QRcode
|
from flask_qrcode import QRcode
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__, static_folder='qr-static')
|
||||||
QRcode(app)
|
QRcode(app)
|
||||||
|
|
||||||
|
|
||||||
@@ -13,6 +13,11 @@ def index():
|
|||||||
return render_template('index.html')
|
return render_template('index.html')
|
||||||
|
|
||||||
|
|
||||||
|
@app.route("/index.html")
|
||||||
|
def index_html():
|
||||||
|
return render_template('index.html')
|
||||||
|
|
||||||
|
|
||||||
@app.route("/text.html")
|
@app.route("/text.html")
|
||||||
def text():
|
def text():
|
||||||
return render_template('text.html')
|
return render_template('text.html')
|
||||||
@@ -69,6 +74,7 @@ def makeqr():
|
|||||||
|
|
||||||
elif request.args.get('type') == "tel":
|
elif request.args.get('type') == "tel":
|
||||||
data = f"tel:{request.args.get('tel')}"
|
data = f"tel:{request.args.get('tel')}"
|
||||||
|
|
||||||
elif request.args.get('type') == "geo":
|
elif request.args.get('type') == "geo":
|
||||||
data = "GEO:"
|
data = "GEO:"
|
||||||
if request.args.get('ns') == "S":
|
if request.args.get('ns') == "S":
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@@ -3,13 +3,13 @@
|
|||||||
{% block inhalt %}
|
{% block inhalt %}
|
||||||
<p>
|
<p>
|
||||||
<b>Welche Art von QR-Code soll generiert werden?</b><br>
|
<b>Welche Art von QR-Code soll generiert werden?</b><br>
|
||||||
<div><button><a href="./text.html">einfacher Text </a></button></div>
|
<div><button><a href="text.html">einfacher Text </a></button></div>
|
||||||
<div><button><a href="./url.html">URL/Website-Link</a></button></div>
|
<div><button><a href="url.html">URL/Website-Link</a></button></div>
|
||||||
<div><button><a href="./tel.html">Telefonnummer</a></button></div>
|
<div><button><a href="tel.html">Telefonnummer</a></button></div>
|
||||||
<div><button><a href="./mail.html">EMail-Adresse</a></button></div>
|
<div><button><a href="mail.html">EMail-Adresse</a></button></div>
|
||||||
<div><button><a href="./wifi.html">WIFI</a></button></div>
|
<div><button><a href="wifi.html">WIFI</a></button></div>
|
||||||
<div><button><a href="./cal.html">Kalender-Termin</a></button></div>
|
<div><button><a href="cal.html">Kalender-Termin</a></button></div>
|
||||||
<div><button><a href="./vcard.html">Visitenkarte (vCard)</a></button></div>
|
<div><button><a href="vcard.html">Visitenkarte (vCard)</a></button></div>
|
||||||
<div><button><a href="./mecard.html">Visitenkarte (MeCard)</a></button></div>
|
<div><button><a href="mecard.html">Visitenkarte (MeCard)</a></button></div>
|
||||||
<div><button><a href="./geo.html">geographische Koordinaten</a></button></div>
|
<div><button><a href="geo.html">geographische Koordinaten</a></button></div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<img src="{{ data|qrcode(fit=True, box_size=10, border=2, ) }}" alt="QR-Code für {{ data }}">
|
<img src="{{ data|qrcode(fit=True, box_size=10, border=2, ) }}" alt="QR-Code für {{ data }}">
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<a href="./">Noch einmal bitte!</a>
|
<a href="/index.html">Noch einmal bitte!</a>
|
||||||
</p>
|
</p>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user