mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
Feature/deploy linux (#1212)
* chore(deploy): remove devbox configuration * feat(taskfiles): add mount and platform specific start commands for IPFS * feat(gateway): update registration route --------- Signed-off-by: Prad Nukala <prad@sonr.io>
This commit is contained in:
parent
4d6a8628af
commit
30c984fd90
@ -15,12 +15,16 @@ tasks:
|
|||||||
desc: Build the hway binary
|
desc: Build the hway binary
|
||||||
silent: true
|
silent: true
|
||||||
cmds:
|
cmds:
|
||||||
|
- templ generate
|
||||||
|
- sqlc generate -f internal/database/sqlc.yaml
|
||||||
- gum spin --spinner dot --title "Build Hway Single Target ({{.OS}}/{{.ARCH}})..." -- goreleaser build --snapshot --clean --single-target --id hway -o {{.BIN_DIR}}/hway
|
- gum spin --spinner dot --title "Build Hway Single Target ({{.OS}}/{{.ARCH}})..." -- goreleaser build --snapshot --clean --single-target --id hway -o {{.BIN_DIR}}/hway
|
||||||
|
|
||||||
install:
|
install:
|
||||||
desc: Install the hway binary
|
desc: Install the hway binary
|
||||||
silent: true
|
silent: true
|
||||||
cmds:
|
cmds:
|
||||||
|
- templ generate
|
||||||
|
- sqlc generate -f internal/database/sqlc.yaml
|
||||||
- gum spin --spinner dot --title "Install Hway Single Target ({{.OS}}/{{.ARCH}})..." -- make install-hway
|
- gum spin --spinner dot --title "Install Hway Single Target ({{.OS}}/{{.ARCH}})..." -- make install-hway
|
||||||
|
|
||||||
start:
|
start:
|
||||||
|
@ -12,7 +12,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func RegisterHandler(g *echo.Group) {
|
func RegisterHandler(g *echo.Group) {
|
||||||
g.GET("/", renderProfileForm)
|
g.GET("/start", renderProfileForm)
|
||||||
g.POST("/profile", validateProfileForm)
|
g.POST("/profile", validateProfileForm)
|
||||||
g.GET("/passkey", renderPasskeyForm)
|
g.GET("/passkey", renderPasskeyForm)
|
||||||
g.POST("/passkey", validatePasskeyForm)
|
g.POST("/passkey", validatePasskeyForm)
|
||||||
|
@ -13,7 +13,7 @@ templ HeroTitle(title string, subtitle string) {
|
|||||||
|
|
||||||
templ HeroStart() {
|
templ HeroStart() {
|
||||||
<div class="pt-1.5 mb-3 flex flex-col items-center justify-center h-full">
|
<div class="pt-1.5 mb-3 flex flex-col items-center justify-center h-full">
|
||||||
<sl-button size="large" hx-target="#container" hx-get="/register" hx-push-url="/register" type="button">
|
<sl-button size="large" hx-target="#container" hx-get="/register" hx-push-url="/register/start" type="button">
|
||||||
<sl-icon slot="prefix" library="sonr" name="sonr"></sl-icon>
|
<sl-icon slot="prefix" library="sonr" name="sonr"></sl-icon>
|
||||||
Create Vault
|
Create Vault
|
||||||
<sl-icon slot="suffix" library="sonr" name="arrow-right"></sl-icon>
|
<sl-icon slot="suffix" library="sonr" name="arrow-right"></sl-icon>
|
||||||
|
@ -84,7 +84,7 @@ func HeroStart() templ.Component {
|
|||||||
templ_7745c5c3_Var4 = templ.NopComponent
|
templ_7745c5c3_Var4 = templ.NopComponent
|
||||||
}
|
}
|
||||||
ctx = templ.ClearChildren(ctx)
|
ctx = templ.ClearChildren(ctx)
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"pt-1.5 mb-3 flex flex-col items-center justify-center h-full\"><sl-button size=\"large\" hx-target=\"#container\" hx-get=\"/register\" hx-push-url=\"/register\" type=\"button\"><sl-icon slot=\"prefix\" library=\"sonr\" name=\"sonr\"></sl-icon> Create Vault <sl-icon slot=\"suffix\" library=\"sonr\" name=\"arrow-right\"></sl-icon></sl-button></div>")
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"pt-1.5 mb-3 flex flex-col items-center justify-center h-full\"><sl-button size=\"large\" hx-target=\"#container\" hx-get=\"/register\" hx-push-url=\"/register/start\" type=\"button\"><sl-icon slot=\"prefix\" library=\"sonr\" name=\"sonr\"></sl-icon> Create Vault <sl-icon slot=\"suffix\" library=\"sonr\" name=\"arrow-right\"></sl-icon></sl-button></div>")
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ_7745c5c3_Err
|
return templ_7745c5c3_Err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user