From 6bb2c2143e114e34f0c7d40b9c65aa43d52807fd Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Sun, 8 Dec 2024 17:55:36 -0500 Subject: [PATCH] refactor: remove unused documentation generation script --- .github/scripts/make_docs.sh | 7 ------- Makefile | 1 - go.mod | 2 +- pkg/gateway/internal/pages/index/page.templ | 2 +- pkg/gateway/internal/pages/register/page.templ | 8 +++----- 5 files changed, 5 insertions(+), 15 deletions(-) delete mode 100644 .github/scripts/make_docs.sh diff --git a/.github/scripts/make_docs.sh b/.github/scripts/make_docs.sh deleted file mode 100644 index 5cf127d52..000000000 --- a/.github/scripts/make_docs.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash - -set -e - -ROOT_DIR=$(git rev-parse --show-toplevel) - - diff --git a/Makefile b/Makefile index bc2b13570..a8a2bf96d 100644 --- a/Makefile +++ b/Makefile @@ -323,7 +323,6 @@ motr-build: hway-build: templ-gen go build -o build/hway ./cmd/hway/main.go - hway-serve: hway-build ./build/hway diff --git a/go.mod b/go.mod index f8086d0b1..ea0541cd9 100644 --- a/go.mod +++ b/go.mod @@ -81,6 +81,7 @@ require ( github.com/multiformats/go-multicodec v0.9.0 github.com/multiformats/go-multihash v0.2.3 github.com/multiformats/go-varint v0.0.7 + github.com/onsonr/nebula v0.1.0 github.com/pkg/errors v0.9.1 github.com/segmentio/ksuid v1.0.4 github.com/spf13/cast v1.6.0 @@ -280,7 +281,6 @@ require ( github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect github.com/oklog/run v1.1.0 // indirect github.com/onsi/ginkgo/v2 v2.22.0 // indirect - github.com/onsonr/nebula v0.1.0 // indirect github.com/opentracing/opentracing-go v1.2.0 // indirect github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 // indirect github.com/pelletier/go-toml/v2 v2.2.2 // indirect diff --git a/pkg/gateway/internal/pages/index/page.templ b/pkg/gateway/internal/pages/index/page.templ index 367db5b25..747ba5e87 100644 --- a/pkg/gateway/internal/pages/index/page.templ +++ b/pkg/gateway/internal/pages/index/page.templ @@ -6,7 +6,7 @@ import ( ) templ InitialView() { - @layout.Root("Welcome | Sonr.ID") { + @layout.Root("Sonr.ID") { @layout.Container() { @text.Header("Sonr.ID", "The decentralized identity layer for the web.")
diff --git a/pkg/gateway/internal/pages/register/page.templ b/pkg/gateway/internal/pages/register/page.templ index ff9957fcf..1b9bf08b9 100644 --- a/pkg/gateway/internal/pages/register/page.templ +++ b/pkg/gateway/internal/pages/register/page.templ @@ -8,10 +8,9 @@ import ( ) templ ProfileFormView(turnstileSiteKey string) { - @layout.Root("Sonr.ID") { + @layout.Root("New Profile | Sonr.ID") { @layout.Container() { @text.Header("Create a Profile", "Enter some basic information about yourself.") -
@form.Form("/register/start", "POST", form.Submit("Continue"), "25", true) { @form.NameInput()
@@ -23,10 +22,9 @@ templ ProfileFormView(turnstileSiteKey string) { } templ LinkCredentialView(req LinkCredentialRequest) { - @layout.Root("Sonr.ID") { + @layout.Root("Register | Sonr.ID") { @layout.Container() { @text.Header("Link a PassKey", "This will be used to login to your vault.") -
@form.Form("/register/finish", "POST", form.PasskeyInput("passkey"), "65", false) { @details.PropertyList() { @details.Property("Address", req.Address, "wallet") @@ -40,7 +38,7 @@ templ LinkCredentialView(req LinkCredentialRequest) { } templ LoadingVaultView() { - @layout.Root("Sonr.ID") { + @layout.Root("Loading... | Sonr.ID") { @layout.Container() { @text.Header("Loading Vault", "This will be used to login to your vault.") }