Added Readme & Dockerfile
This commit is contained in:
Binary file not shown.
@ -27,10 +27,10 @@ from werkzeug.utils import secure_filename
|
||||
from app import app
|
||||
|
||||
UPLOAD_FOLDER = (
|
||||
"/Users/normrasmussen/Documents/Projects/CSM_webapp/app/static/files/csv/"
|
||||
"./app/static/files/csv/"
|
||||
)
|
||||
TEMPLATES_FOLDER = (
|
||||
"/Users/normrasmussen/Documents/Projects/CSM_webapp/app/static/files/templates/"
|
||||
"./app/static/files/templates/"
|
||||
)
|
||||
app.config["UPLOAD_FOLDER"] = UPLOAD_FOLDER
|
||||
app.config["TEMPLATES_FOLDER"] = TEMPLATES_FOLDER
|
||||
@ -637,3 +637,6 @@ def undo_template():
|
||||
@app.route("/stop", methods=["POST"])
|
||||
def stop():
|
||||
print("stopping")
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(debug=True)
|
||||
|
||||
@ -19,6 +19,7 @@
|
||||
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
|
||||
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/gh/WebCoder49/code-input@1.2.2/code-input.min.js"></script>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/WebCoder49/code-input@1.2/plugins/prism-line-numbers.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/WebCoder49/code-input@1.2.2/code-input.min.css">
|
||||
<link href="{{ url_for('static', filename='css/prism.css')}}" rel="stylesheet" />
|
||||
</head>
|
||||
|
||||
@ -33,6 +33,7 @@
|
||||
<h2> {{ templates[0] }}</h2>
|
||||
<h3> Last Updated: {{ templates [2] }}</h3>
|
||||
<code-input
|
||||
class="line-numbers"
|
||||
lang="HTML"
|
||||
value="{{ templates[1] }}"
|
||||
id="editor"
|
||||
@ -62,7 +63,7 @@
|
||||
{% if templates %}
|
||||
<h3> Advanced users only: create new template </h3>
|
||||
<p> </p>
|
||||
<div class="html_code">
|
||||
<div class="html_code" style="display: flex;justify-content: center;">
|
||||
<form
|
||||
id="templates"
|
||||
action="{{ url_for('templates')}}"
|
||||
@ -71,6 +72,7 @@
|
||||
Enter the code below
|
||||
</h2>
|
||||
<code-input
|
||||
class="line-numbers"
|
||||
lang="HTML"
|
||||
id="editor"
|
||||
name="body"
|
||||
|
||||
Reference in New Issue
Block a user