shoutbox: update shoutbox to 8bda9f96a

Keep the submodule approach until we can deploy it properly on
PCv5-extra.
This commit is contained in:
Lephe 2023-07-28 11:41:28 +02:00 committed by Eragon
parent af61b21fc8
commit 4e80932588
Signed by: Eragon
GPG Key ID: 087126EBFC725006
6 changed files with 16 additions and 1 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "submodules/v5shoutbox"]
path = submodules/v5shoutbox
url = https://gitea.planet-casio.com/devs/v5shoutbox/

View File

@ -14,3 +14,11 @@ def chat():
@app.route('/v5shoutbox.js')
def v5shoutbox_js():
return send_file('static/scripts/v5shoutbox.js')
@app.route('/v5shoutbox_irc.js')
def v5shoutbox_irc_js():
return send_file('static/scripts/v5shoutbox_irc.js')
@app.route('/v5shoutbox_worker.js')
def v5shoutbox_worker_js():
return send_file('static/scripts/v5shoutbox_worker.js')

View File

@ -0,0 +1 @@
../../../submodules/v5shoutbox/v5shoutbox_irc.js

View File

@ -0,0 +1 @@
../../../submodules/v5shoutbox/v5shoutbox_worker.js

View File

@ -1,6 +1,7 @@
{% for s in scripts %}
<script type="text/javascript" src={{url_for('static', filename=s)}}></script>
{% endfor %}
<script type="module" src='/v5shoutbox.js'></script>
{% for m in modules %}
<script type="module" src={{url_for('static', filename=m)}}></script>
{% endfor %}
{% endfor %}

1
submodules/v5shoutbox Submodule

@ -0,0 +1 @@
Subproject commit 8bda9f96a943a2e08220c4ca85330e03538aa5dc