Added documentation to functions and basic JWT generation

This commit is contained in:
2025-02-09 00:48:30 +11:00
parent 597fc6f072
commit 25868becf3
29 changed files with 254 additions and 58 deletions

View File

@@ -2,6 +2,7 @@ package page
import "projectreshoot/view/layout"
// Returns the about page content
templ About() {
@layout.Global() {
<div class="text-center max-w-150 m-auto">

View File

@@ -2,6 +2,9 @@ package page
import "projectreshoot/view/layout"
// Page template for Error pages. Error code should be a HTTP status code as
// a string, and err should be the corresponding response title.
// Message is a custom error message displayed below the code and error.
templ Error(code string, err string, message string) {
@layout.Global() {
<div

View File

@@ -2,6 +2,7 @@ package page
import "projectreshoot/view/layout"
// Page content for the index page
templ Index() {
@layout.Global() {
<div class="text-center mt-24">

View File

@@ -3,6 +3,7 @@ package page
import "projectreshoot/view/layout"
import "projectreshoot/view/component/form"
// Returns the login page
templ Login() {
@layout.Global() {
<div class="max-w-100 mx-auto px-2">