init - add project files

This commit is contained in:
2025-03-06 23:54:11 -05:00
commit e724ff1120
1363 changed files with 897467 additions and 0 deletions

32
handlers/app/vault.go Normal file
View File

@@ -0,0 +1,32 @@
package app
import (
. "maxwarden/ui"
. "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
"maxwarden/middleware"
"net/http"
)
func VaultHandler(w http.ResponseWriter, r *http.Request) {
identity := middleware.GetIdentity(r)
session := middleware.GetSession(r)
AppLayout("Credential Vault", *identity, session,
Div(
InlineStyle(`
$me {
display: flex;
flex-direction: row-reverse;
align-items: center;
margin-bottom: $5;
}
`),
A(Href("/app/editor/add"), ButtonUI(Text("+ Add Item"))),
),
HxLoad("/app/vault-hx"),
).Render(w)
}