force frontend resources to refresh on new version

This commit is contained in:
Izalia Mae 2024-06-19 17:51:13 -04:00
parent 9a3e3768e7
commit e67ebd75ed
8 changed files with 12 additions and 12 deletions

View file

@ -11,11 +11,11 @@
%title << {{config.name}}: {{page}} %title << {{config.name}}: {{page}}
%meta(charset="UTF-8") %meta(charset="UTF-8")
%meta(name="viewport" content="width=device-width, initial-scale=1") %meta(name="viewport" content="width=device-width, initial-scale=1")
%link(rel="stylesheet" type="text/css" href="/theme/{{config.theme}}.css" nonce="{{view.request['hash']}}" class="theme") %link(rel="stylesheet" type="text/css" href="/theme/{{config.theme}}.css?{{version}}" nonce="{{view.request['hash']}}" class="theme")
%link(rel="stylesheet" type="text/css" href="/static/style.css" nonce="{{view.request['hash']}}") %link(rel="stylesheet" type="text/css" href="/static/style.css?{{version}}" nonce="{{view.request['hash']}}")
%link(rel="stylesheet" type="text/css" href="/static/bootstrap-icons.css" nonce="{{view.request['hash']}}") %link(rel="stylesheet" type="text/css" href="/static/bootstrap-icons.css?{{version}}" nonce="{{view.request['hash']}}")
%link(rel="manifest" href="/manifest.json") %link(rel="manifest" href="/manifest.json?{{version}}")
%script(type="application/javascript" src="/static/api.js" nonce="{{view.request['hash']}}" defer) %script(type="application/javascript" src="/static/api.js?{{version}}" nonce="{{view.request['hash']}}" defer)
-block head -block head
%body %body

View file

@ -2,7 +2,7 @@
-set page="Config" -set page="Config"
-block head -block head
%script(type="application/javascript" src="/static/config.js" nonce="{{view.request['hash']}}" defer) %script(type="application/javascript" src="/static/config.js?{{version}}" nonce="{{view.request['hash']}}" defer)
-import "functions.haml" as func -import "functions.haml" as func
-block content -block content

View file

@ -2,7 +2,7 @@
-set page="Domain Bans" -set page="Domain Bans"
-block head -block head
%script(type="application/javascript" src="/static/domain_ban.js" nonce="{{view.request['hash']}}" defer) %script(type="application/javascript" src="/static/domain_ban.js?{{version}}" nonce="{{view.request['hash']}}" defer)
-block content -block content
%details.section %details.section

View file

@ -2,7 +2,7 @@
-set page="Instances" -set page="Instances"
-block head -block head
%script(type="application/javascript" src="/static/instance.js" nonce="{{view.request['hash']}}" defer) %script(type="application/javascript" src="/static/instance.js?{{version}}" nonce="{{view.request['hash']}}" defer)
-block content -block content
%details.section %details.section

View file

@ -2,7 +2,7 @@
-set page="Software Bans" -set page="Software Bans"
-block head -block head
%script(type="application/javascript" src="/static/software_ban.js" nonce="{{view.request['hash']}}" defer) %script(type="application/javascript" src="/static/software_ban.js?{{version}}" nonce="{{view.request['hash']}}" defer)
-block content -block content
%details.section %details.section

View file

@ -2,7 +2,7 @@
-set page="Users" -set page="Users"
-block head -block head
%script(type="application/javascript" src="/static/user.js" nonce="{{view.request['hash']}}" defer) %script(type="application/javascript" src="/static/user.js?{{version}}" nonce="{{view.request['hash']}}" defer)
-block content -block content
%details.section %details.section

View file

@ -2,7 +2,7 @@
-set page="Whitelist" -set page="Whitelist"
-block head -block head
%script(type="application/javascript" src="/static/whitelist.js" nonce="{{view.request['hash']}}" defer) %script(type="application/javascript" src="/static/whitelist.js?{{version}}" nonce="{{view.request['hash']}}" defer)
-block content -block content
%details.section %details.section

View file

@ -2,7 +2,7 @@
-set page="Login" -set page="Login"
-block head -block head
%script(type="application/javascript" src="/static/login.js" nonce="{{view.request['hash']}}" defer) %script(type="application/javascript" src="/static/login.js?{{version}}" nonce="{{view.request['hash']}}" defer)
-block content -block content
%fieldset.section %fieldset.section