show goversion and goos/goarch on admin page

This commit is contained in:
Mechiel Lukkien
2024-03-11 08:58:40 +01:00
parent b115c7b10d
commit 4699504c9f
6 changed files with 17 additions and 5 deletions

View File

@ -3,6 +3,9 @@
// From HTML.
declare let page: HTMLElement
declare let moxversion: string
declare let moxgoversion: string
declare let moxgoos: string
declare let moxgoarch: string
const login = async (reason: string) => {
return new Promise<string>((resolve: (v: string) => void, _) => {
@ -120,7 +123,9 @@ const footer = dom.div(
style({marginTop: '6ex', opacity: 0.75}),
link('https://www.xmox.nl', 'mox'),
' ',
moxversion,
moxversion, ' ',
moxgoversion, ' ',
moxgoos, '/', moxgoarch,
)
const age = (date: Date, future: boolean, nowSecs: number) => {