From f6b1712edaa48f695ba6fdeeadcf00561726cc6a Mon Sep 17 00:00:00 2001 From: Chris Sexton <3216719+chrissexton@users.noreply.github.com> Date: Tue, 27 Feb 2024 12:02:16 -0500 Subject: [PATCH] admin: use htmx and templ for app pass --- bot/index.templ | 5 +- bot/index_templ.go | 4 +- plugins/admin/apppass.templ | 77 ++++++++++++ plugins/admin/apppass_templ.go | 210 +++++++++++++++++++++++++++++++++ plugins/admin/vars.html | 36 ------ plugins/admin/web.go | 100 +++++++--------- 6 files changed, 333 insertions(+), 99 deletions(-) create mode 100644 plugins/admin/apppass.templ create mode 100644 plugins/admin/apppass_templ.go delete mode 100644 plugins/admin/vars.html diff --git a/bot/index.templ b/bot/index.templ index 5c96abd..8397b71 100644 --- a/bot/index.templ +++ b/bot/index.templ @@ -5,8 +5,8 @@ templ (b *bot) index() {
- - + +