From 8b985a6ac9a31debcea6faf76506a073df7e8d6d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 30 Nov 2022 22:03:32 +0200 Subject: [PATCH] CSP expansion --- files/assets/offline.html | 2 +- files/events/templates/music.html | 2 +- files/routes/allroutes.py | 32 ++++++++++++++++++++ files/routes/static.py | 8 +++++ files/templates/admin/alts.html | 2 +- files/templates/admin/badge_admin.html | 2 +- files/templates/admin/banned_domains.html | 2 +- files/templates/awards.html | 2 +- files/templates/awards_PCM.html | 4 +-- files/templates/casino/blackjack_screen.html | 4 +-- files/templates/casino/game_screen.html | 6 ++-- files/templates/casino/roulette_screen.html | 4 +-- files/templates/casino/slots_screen.html | 4 +-- files/templates/chat.html | 2 +- files/templates/comments.html | 8 ++--- files/templates/errors/PCM/502.html | 2 +- files/templates/errors/WPD/502.html | 2 +- files/templates/errors/rDrama/502.html | 2 +- files/templates/hats.html | 4 +-- files/templates/header.html | 10 +++--- files/templates/home.html | 12 ++++---- files/templates/live.html | 4 +-- files/templates/log.html | 8 ++--- files/templates/modals/emoji.html | 4 +-- files/templates/notifications.html | 2 +- files/templates/settings/css.html | 2 +- files/templates/settings/personal.html | 6 ++-- files/templates/shop.html | 2 +- files/templates/sub/mods.html | 2 +- files/templates/submission.html | 10 +++--- files/templates/submission_banned.html | 2 +- files/templates/submission_listing.html | 2 +- files/templates/submit.html | 2 +- files/templates/submit_hats.html | 2 +- files/templates/submit_marseys.html | 4 +-- files/templates/update_assets.html | 2 +- files/templates/util/html_head.html | 14 ++++----- nginx-serve-static.conf | 1 - nginx.conf | 1 - 39 files changed, 112 insertions(+), 74 deletions(-) diff --git a/files/assets/offline.html b/files/assets/offline.html index e6067c4a4..0b470c876 100644 --- a/files/assets/offline.html +++ b/files/assets/offline.html @@ -1,7 +1,7 @@ No Internet Connection - - + {% if IS_LOCALHOST %} {% else %} diff --git a/files/templates/comments.html b/files/templates/comments.html index 0bc55e6fe..5c49ec340 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -1,7 +1,7 @@ {%- import 'util/macros.html' as macros with context -%} {% if not request.headers.get("xhr") %} {% if comment_info %} - @@ -238,7 +238,7 @@ {% endif %} {% if c.award_count("tilt", v) %} - - {% if success %} - diff --git a/files/templates/submit_hats.html b/files/templates/submit_hats.html index 1be920cbf..ede97312b 100644 --- a/files/templates/submit_hats.html +++ b/files/templates/submit_hats.html @@ -67,7 +67,7 @@ - -