Port to Vue3 and TypeScript

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2025-05-01 13:25:11 +02:00
parent b447417d0f
commit e572d2f545
No known key found for this signature in database
33 changed files with 2297 additions and 5930 deletions

View file

@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
{{ range (list "webfonts/fa-solid-900.woff2" "webfonts/fa-brands-400.woff2" "lato-v20-latin-ext_latin-regular.woff2" "lato-v20-latin-ext_latin-700.woff2") }}
{{ range (list "fa-solid-900.woff2" "fa-brands-400.woff2") }}
<link
as="font"
crossorigin="anonymous"
@ -21,13 +21,6 @@
rel="stylesheet"
>
<link
crossorigin="anonymous"
href="css/all.min.css"
integrity="{{ assetSRI `css/all.min.css` }}"
rel="stylesheet"
>
<title>{{ .Customize.AppTitle }}</title>
<script nonce="{{ .InlineContentNonce }}">
@ -56,8 +49,8 @@
document.addEventListener('DOMContentLoaded', () => window.refreshTheme())
// Template variable from Golang process
const maxSecretExpire = {{ .MaxSecretExpiry }}
const version = "{{ .Version }}"
window.maxSecretExpire = {{ .MaxSecretExpiry }}
window.version = "{{ .Version }}"
window.OTSCustomize = JSON.parse('{{ .Customize.ToJSON }}')
window.useFormalLanguage = {{ .Customize.UseFormalLanguage | mustToJson }}
</script>