mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-07-01 15:51:41 +02:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
8f769ac7e3 | |||
4b2be56b3f | |||
87a632a661 | |||
9ab1e9b841 | |||
080648d587 |
4
.gitignore
vendored
4
.gitignore
vendored
@ -131,3 +131,7 @@ dmypy.json
|
|||||||
|
|
||||||
# Test data
|
# Test data
|
||||||
data/
|
data/
|
||||||
|
|
||||||
|
# Node Modules
|
||||||
|
|
||||||
|
node_modules/
|
19
backend/app/.gcloudignore
Normal file
19
backend/app/.gcloudignore
Normal 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
15
backend/app/app.yaml
Normal 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
|
@ -10,7 +10,7 @@ index_label = "Id"
|
|||||||
done_table = "done_songs"
|
done_table = "done_songs"
|
||||||
|
|
||||||
def open_db():
|
def open_db():
|
||||||
conn = sqlite3.connect("data/test.db")
|
conn = sqlite3.connect("/tmp/karaoqueue.db")
|
||||||
conn.execute('PRAGMA encoding = "UTF-8";')
|
conn.execute('PRAGMA encoding = "UTF-8";')
|
||||||
return conn
|
return conn
|
||||||
|
|
||||||
|
@ -152,4 +152,4 @@ def activate_job():
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
app.run(debug=True, host='0.0.0.0')
|
app.run(host='127.0.0.1', port=8080, debug=True)
|
||||||
|
4
backend/app/requirements.txt
Normal file
4
backend/app/requirements.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
requests
|
||||||
|
pandas
|
||||||
|
Flask-BasicAuth
|
||||||
|
bs4
|
@ -71,10 +71,9 @@
|
|||||||
<a href="/login" class="ml-1 mr-1"><i
|
<a href="/login" class="ml-1 mr-1"><i
|
||||||
class="fas fa-sign-in-alt mr-1"></i><span>Login</span></a>
|
class="fas fa-sign-in-alt mr-1"></i><span>Login</span></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="https://github.com/PhoenixTwoFive/karaoqueue"
|
<!--<a href="https://github.com/PhoenixTwoFive/karaoqueue"
|
||||||
class="ml-1 mr-1"><i class="fab fa-github mr-1"></i><span>Github</span></a>
|
class="ml-1 mr-1"><i class="fab fa-github mr-1"></i><span>Github</span></a>-->
|
||||||
<span class="text-muted">KaraoQueue - <span
|
<span class="text-muted">KaraoQueue (stale branch) - <span>©</span> 2019-2021 - Phillip
|
||||||
style="display:inline-block;transform: rotate(180deg) translateY(-0.2rem)">©</span> 2019 - Phillip
|
|
||||||
Kühne</span>
|
Kühne</span>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -38,8 +38,8 @@
|
|||||||
</table>
|
</table>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block extrajs %}
|
{% block extrajs %}
|
||||||
<script src="https://unpkg.com/jspdf@latest/dist/jspdf.min.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.1.1/dist/jspdf.plugin.autotable.js"></script>
|
<script src="https://unpkg.com/jspdf-autotable@3.0.10/dist/jspdf.plugin.autotable.js"></script>
|
||||||
<script>
|
<script>
|
||||||
function confirmDeleteAllEntries() {
|
function confirmDeleteAllEntries() {
|
||||||
bootbox.confirm({
|
bootbox.confirm({
|
||||||
|
Reference in New Issue
Block a user