Compare commits

...

5 Commits

Author SHA1 Message Date
8f769ac7e3 Configure HTTP->HTTPS redirect 2021-08-20 16:58:35 +02:00
4b2be56b3f Cosmetics 2021-08-20 15:58:45 +02:00
87a632a661 Fix breakage by not pinning versions 2021-08-20 15:47:30 +02:00
9ab1e9b841 Adapt for Google Cloud Deployment 2021-08-20 15:47:03 +02:00
080648d587 Add node_modules to .gitignore 2020-08-14 12:46:14 +02:00
8 changed files with 49 additions and 8 deletions

4
.gitignore vendored
View File

@ -131,3 +131,7 @@ dmypy.json
# Test data
data/
# Node Modules
node_modules/

19
backend/app/.gcloudignore Normal file
View File

@ -0,0 +1,19 @@
# This file specifies files that are *not* uploaded to Google Cloud Platform
# using gcloud. It follows the same syntax as .gitignore, with the addition of
# "#!include" directives (which insert the entries of the given .gitignore-style
# file at that point).
#
# For more information, run:
# $ gcloud topic gcloudignore
#
.gcloudignore
# If you would like to upload your .git directory, .gitignore file or files
# from your .gitignore file, remove the corresponding line
# below:
.git
.gitignore
# Python pycache:
__pycache__/
# Ignored by the build system
/setup.cfg

15
backend/app/app.yaml Normal file
View File

@ -0,0 +1,15 @@
runtime: python39
handlers:
# This configures Google App Engine to serve the files in the app's static
# directory.
- url: /static
static_dir: static
# This handler routes all requests not caught above to your main app. It is
# required when static routes are defined, but can be omitted (along with
# the entire handlers section) when there are no static files defined.
- url: /.*
script: auto
secure: always
redirect_http_response_code: 301

View File

@ -10,7 +10,7 @@ index_label = "Id"
done_table = "done_songs"
def open_db():
conn = sqlite3.connect("data/test.db")
conn = sqlite3.connect("/tmp/karaoqueue.db")
conn.execute('PRAGMA encoding = "UTF-8";')
return conn

View File

@ -152,4 +152,4 @@ def activate_job():
if __name__ == "__main__":
app.run(debug=True, host='0.0.0.0')
app.run(host='127.0.0.1', port=8080, debug=True)

View File

@ -0,0 +1,4 @@
requests
pandas
Flask-BasicAuth
bs4

View File

@ -71,10 +71,9 @@
<a href="/login" class="ml-1 mr-1"><i
class="fas fa-sign-in-alt mr-1"></i><span>Login</span></a>
{% endif %}
<a href="https://github.com/PhoenixTwoFive/karaoqueue"
class="ml-1 mr-1"><i class="fab fa-github mr-1"></i><span>Github</span></a>
<span class="text-muted">KaraoQueue -&nbsp;<span
style="display:inline-block;transform: rotate(180deg) translateY(-0.2rem)">&copy</span>&nbsp;2019 - Phillip
<!--<a href="https://github.com/PhoenixTwoFive/karaoqueue"
class="ml-1 mr-1"><i class="fab fa-github mr-1"></i><span>Github</span></a>-->
<span class="text-muted">KaraoQueue (stale branch) -&nbsp;<span>&copy</span>&nbsp;2019-2021 - Phillip
Kühne</span>
</div>
</footer>

View File

@ -38,8 +38,8 @@
</table>
{% endblock %}
{% block extrajs %}
<script src="https://unpkg.com/jspdf@latest/dist/jspdf.min.js"></script>
<script src="https://unpkg.com/jspdf-autotable@3.1.1/dist/jspdf.plugin.autotable.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.5.3/jspdf.min.js"></script>
<script src="https://unpkg.com/jspdf-autotable@3.0.10/dist/jspdf.plugin.autotable.js"></script>
<script>
function confirmDeleteAllEntries() {
bootbox.confirm({