* fix: theme flickering * chore(ui): added dark mode tests * feat(ui): Expose new ui.dark-mode parameter to set default theme * refactor(ui): Rename theme variable to themeFromCookie for clarity --------- Co-authored-by: TwiN <twin@linux.com> Co-authored-by: TwiN <chris@twin.sh>
28 lines
1.4 KiB
HTML
28 lines
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" class="{{ .Theme }}">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<script type="text/javascript">
|
|
window.config = {logo: "{{ .UI.Logo }}", header: "{{ .UI.Header }}", link: "{{ .UI.Link }}", buttons: []};{{- range .UI.Buttons}}window.config.buttons.push({name:"{{ .Name }}",link:"{{ .Link }}"});{{end}}
|
|
</script>
|
|
<title>{{ .UI.Title }}</title>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
|
|
<link rel="manifest" href="/manifest.json" crossorigin="use-credentials" />
|
|
<link rel="shortcut icon" href="/favicon.ico" />
|
|
<link rel="stylesheet" href="/css/custom.css" />
|
|
<meta name="description" content="{{ .UI.Description }}" />
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
|
<meta name="apple-mobile-web-app-title" content="{{ .UI.Title }}" />
|
|
<meta name="application-name" content="{{ .UI.Title }}" />
|
|
<meta name="theme-color" content="#f7f9fb" />
|
|
</head>
|
|
<body class="dark:bg-gray-900">
|
|
<noscript><strong>Enable JavaScript to view this page.</strong></noscript>
|
|
<div id="app"></div>
|
|
</body>
|
|
</html>
|