diff --git a/pkg/appview/config.go b/pkg/appview/config.go index e474033..ce5f992 100644 --- a/pkg/appview/config.go +++ b/pkg/appview/config.go @@ -251,6 +251,7 @@ func autoDetectBaseURL(httpAddr string) string { // Auto-detect from HTTP addr if httpAddr[0] == ':' { // Just a port, assume localhost + // Use "127.0.0.1" per RFC 8252 (OAuth servers reject "localhost") return fmt.Sprintf("http://127.0.0.1%s", httpAddr) } diff --git a/pkg/appview/templates/components/nav-brand.html b/pkg/appview/templates/components/nav-brand.html new file mode 100644 index 0000000..c337202 --- /dev/null +++ b/pkg/appview/templates/components/nav-brand.html @@ -0,0 +1,5 @@ +{{ define "nav-brand" }} +
+{{ end }} diff --git a/pkg/appview/templates/components/nav-search.html b/pkg/appview/templates/components/nav-search.html new file mode 100644 index 0000000..61f1d07 --- /dev/null +++ b/pkg/appview/templates/components/nav-search.html @@ -0,0 +1,7 @@ +{{ define "nav-search" }} + +{{ end }} diff --git a/pkg/appview/templates/components/nav-theme-toggle.html b/pkg/appview/templates/components/nav-theme-toggle.html new file mode 100644 index 0000000..64d47d6 --- /dev/null +++ b/pkg/appview/templates/components/nav-theme-toggle.html @@ -0,0 +1,3 @@ +{{ define "nav-theme-toggle" }} + +{{ end }} diff --git a/pkg/appview/templates/components/nav-user.html b/pkg/appview/templates/components/nav-user.html new file mode 100644 index 0000000..fda7423 --- /dev/null +++ b/pkg/appview/templates/components/nav-user.html @@ -0,0 +1,27 @@ +{{ define "nav-user" }} +{{ if .User }} +