mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
include third_party JS and serve it locally
This commit is contained in:
parent
a2bc01f459
commit
bf24b1b85a
3 changed files with 5 additions and 1 deletions
2
app/static/js/moment-with-locales.min.js
vendored
Normal file
2
app/static/js/moment-with-locales.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -271,7 +271,7 @@
|
||||||
|
|
||||||
{% block scripts -%}
|
{% block scripts -%}
|
||||||
{% if not low_bandwidth -%}
|
{% if not low_bandwidth -%}
|
||||||
{{ str(moment.include_moment()).replace('<script>', '<script nonce="' + session['nonce'] + '">')|safe }}
|
{{ str(moment.include_moment(local_js='/static/js/moment-with-locales.min.js')).replace('<script>', '<script nonce="' + session['nonce'] + '">')|safe }}
|
||||||
{{ str(moment.lang(g.locale)).replace('<script>', '<script nonce="' + session['nonce'] + '">')|safe }}
|
{{ str(moment.lang(g.locale)).replace('<script>', '<script nonce="' + session['nonce'] + '">')|safe }}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{% endblock -%}
|
{% endblock -%}
|
||||||
|
|
|
@ -40,6 +40,8 @@ class Config(object):
|
||||||
BOUNCE_USERNAME = os.environ.get('BOUNCE_USERNAME') or ''
|
BOUNCE_USERNAME = os.environ.get('BOUNCE_USERNAME') or ''
|
||||||
BOUNCE_PASSWORD = os.environ.get('BOUNCE_PASSWORD') or ''
|
BOUNCE_PASSWORD = os.environ.get('BOUNCE_PASSWORD') or ''
|
||||||
|
|
||||||
|
BOOTSTRAP_SERVE_LOCAL = True
|
||||||
|
|
||||||
SENTRY_DSN = os.environ.get('SENTRY_DSN') or None
|
SENTRY_DSN = os.environ.get('SENTRY_DSN') or None
|
||||||
|
|
||||||
AWS_REGION = os.environ.get('AWS_REGION') or None
|
AWS_REGION = os.environ.get('AWS_REGION') or None
|
||||||
|
|
Loading…
Add table
Reference in a new issue