mirror of
https://github.com/Luzifer/ots.git
synced 2025-08-03 19:54:26 -04:00
Port to Vue3 and TypeScript
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
b447417d0f
commit
e572d2f545
33 changed files with 2297 additions and 5930 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue