Initial dashboard
This commit is contained in:
parent
1c697a028b
commit
1af3f59b1a
10 changed files with 380 additions and 3 deletions
|
|
@ -6,6 +6,9 @@
|
|||
{{ template "fonts" }}
|
||||
<link rel="stylesheet" type="text/css" href="/css/{{ .VERSION }}/{{ .CONFIG.THEME }}/main.css">
|
||||
<link rel="stylesheet" type="text/css" href="/css/{{ .VERSION }}/{{ .CONFIG.THEME }}/{{ .CONFIG.THEME }}.css">
|
||||
<script>
|
||||
globalThis._VERSION = {{ .VERSION }}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="page-error" class="{{ if ne .ERROR "" }}show{{ end }}">
|
||||
|
|
|
|||
|
|
@ -1,13 +1,21 @@
|
|||
{{ define "page" }}
|
||||
<link rel="stylesheet" type="text/css" href="/css/{{ .VERSION }}/{{ .CONFIG.THEME }}/index.css">
|
||||
|
||||
<div style="float: left;">
|
||||
<script type="module" defer>
|
||||
import { } from '/js/{{ .VERSION }}/dashboard.mjs'
|
||||
</script>
|
||||
|
||||
<div>
|
||||
<img src="/images/{{ .VERSION }}/{{ .CONFIG.THEME }}/logo.svg" style="width: 64px; margin-right: 32px;">
|
||||
</div>
|
||||
|
||||
<div style="float: left;">
|
||||
<div style="display: grid; grid-template-columns: min-content 1fr; align-items: end; grid-gap: 8px;">
|
||||
<h1>SMon</h1>
|
||||
<h2>{{ .VERSION }}</h2>
|
||||
|
||||
</div>
|
||||
|
||||
<smon-dashboard style="margin-top: 32px">
|
||||
<script type="application/json">{{ .Data.Dashboard }}</script>
|
||||
</smon-dashboard>
|
||||
{{ end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue