From 6e069484cb0a911ba541e07bf04331fadbb76612 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Mon, 6 Jan 2025 00:41:32 +0100 Subject: feat(webui): bootstrap session handling and login process --- pkg/webui/html/base.html | 20 ++++++++++++++++++++ pkg/webui/html/error.html | 6 ++++++ pkg/webui/html/index.html | 3 +++ pkg/webui/html/login.html | 29 +++++++++++++++++++++++++++++ 4 files changed, 58 insertions(+) create mode 100644 pkg/webui/html/base.html create mode 100644 pkg/webui/html/error.html create mode 100644 pkg/webui/html/index.html create mode 100644 pkg/webui/html/login.html (limited to 'pkg/webui/html') diff --git a/pkg/webui/html/base.html b/pkg/webui/html/base.html new file mode 100644 index 0000000..1c15cc5 --- /dev/null +++ b/pkg/webui/html/base.html @@ -0,0 +1,20 @@ + + + + + + + + + tfstated + + +
+
+
+ {{ template "main" . }} +
+ + + diff --git a/pkg/webui/html/error.html b/pkg/webui/html/error.html new file mode 100644 index 0000000..d2ea7e1 --- /dev/null +++ b/pkg/webui/html/error.html @@ -0,0 +1,6 @@ +{{ define "main" }} +
+

{{ .Status }} - {{ .StatusText }}

+

{{ .Err }}

+
+{{ end }} diff --git a/pkg/webui/html/index.html b/pkg/webui/html/index.html new file mode 100644 index 0000000..5c50159 --- /dev/null +++ b/pkg/webui/html/index.html @@ -0,0 +1,3 @@ +{{ define "main" }} +

TODO

+{{ end }} diff --git a/pkg/webui/html/login.html b/pkg/webui/html/login.html new file mode 100644 index 0000000..0c2a167 --- /dev/null +++ b/pkg/webui/html/login.html @@ -0,0 +1,29 @@ +{{ define "main" }} +{{ if .Forbidden }} +
+

Invalid username or password

+
+{{ end }} +
+
+ + +
+ +
+{{ end }} -- cgit v1.2.3