From 1ebc648158141e62ecf3319a391cd83e996233bc Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Sat, 8 Jan 2022 00:07:23 +0000 Subject: [PATCH] fix broken go template if statements All available DOM parsers for node would move the contents of if statements outside of them, breaking things like the accounts tab. Fixed with a regex pre and post process to comment out then uncomment all template usage. builds now depend on perl for some regex, this can likely be changed in future though. --- html/admin.html | 2 +- package-lock.json | 38 ++++++++++++++++++++++++++++ package.json | 3 +++ scripts/missing-colors.js | 52 +++++++++++++++++++++++++-------------- 4 files changed, 76 insertions(+), 19 deletions(-) diff --git a/html/admin.html b/html/admin.html index f265868..2a68159 100644 --- a/html/admin.html +++ b/html/admin.html @@ -15,8 +15,8 @@ window.linkResetEnabled = {{ .linkResetEnabled }}; window.language = "{{ .langName }}"; - {{ template "header.html" . }} Admin - jfa-go + {{ template "header.html" . }}