mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
* feat(database): create schema for hway and motr * fix(gateway): correct naming inconsistencies in handlers * build: update schema file to be compatible with postgresql syntax * fix: update schema to be compatible with PostgreSQL syntax * chore: update query_hway.sql to follow sqlc syntax * ```text refactor: update query_hway.sql for PostgreSQL and sqlc ``` * feat: add vaults table to store encrypted data * refactor: Update vaults table schema for sqlc compatibility * chore(deps): Upgrade dependencies and add pgx/v5 * refactor(Makefile): move sqlc generate to internal/models * docs(foundations): remove outdated pages * chore(build): add Taskfile for build tasks * refactor(embed): move embed files to internal package * docs: add documentation for Cosmos SDK ORM
56 lines
1.6 KiB
Templ
56 lines
1.6 KiB
Templ
package views
|
|
|
|
import (
|
|
"github.com/onsonr/sonr/internal/nebula/card"
|
|
"github.com/onsonr/sonr/internal/nebula/form"
|
|
"github.com/onsonr/sonr/internal/nebula/hero"
|
|
"github.com/onsonr/sonr/internal/nebula/input"
|
|
"github.com/onsonr/sonr/internal/nebula/layout"
|
|
)
|
|
|
|
templ RegisterProfileView(firstNumber int, lastNumber int) {
|
|
@layout.View("New Profile | Sonr.ID") {
|
|
@layout.Container() {
|
|
@hero.TitleDesc("Basic Info", "Tell us a little about yourself.")
|
|
@form.Root("/register/passkey", "create-profile") {
|
|
@form.Body() {
|
|
@form.Header() {
|
|
<div class="w-full py-2">
|
|
<sl-icon name="at-sign" library="sonr"></sl-icon>
|
|
<sl-avatar shape="circle" size="large" src="https://avatars.githubusercontent.com/u/101929?v=4"></sl-avatar>
|
|
</div>
|
|
}
|
|
@input.Handle()
|
|
@input.Name()
|
|
@input.HumanSlider(firstNumber, lastNumber)
|
|
@form.Footer() {
|
|
@form.CancelButton()
|
|
@form.SubmitButton("Next")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
templ RegisterPasskeyView(address string, handle string, name string, challenge string, creationBlock string) {
|
|
@layout.View("Register | Sonr.ID") {
|
|
@layout.Container() {
|
|
@hero.TitleDesc("Link a PassKey", "This will be used to login to your vault.")
|
|
@form.Root("/register/finish", "passkey-form") {
|
|
<input type="hidden" name="credential" id="credential-data" required/>
|
|
@form.Body() {
|
|
@form.Header() {
|
|
@card.SonrProfile(address, name, handle, creationBlock)
|
|
}
|
|
@input.CoinSelect()
|
|
@form.Footer() {
|
|
@input.Passkey(address, handle, challenge)
|
|
@form.CancelButton()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|