mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-03 09:51:39 +00:00
* fix: correct HTTP error handling in gateway * refactor: migrate database and ORM to internal modules * feat: introduce taskfile build system for improved workflow management * refactor: update taskfiles to use relative paths * feat: add profile status field * refactor: move rendering logic to context package * fix: improve error handling in credentials retrieval * refactor: optimize HTTP request handling in Wasm environment * refactor: refactor config loading in motr command * chore: add process-compose for service management * chore: remove default task and update gum format command * fix: update project dependencies * refactor: improve code readability and maintainability * refactor: consolidate error handling components * refactor: update index handler to use new context package * refactor: consolidate database scripts and move to deploy directory * feat: Update flake.nix with development tools and environment configuration * fix: ignore flake.lock file * refactor: migrate build process to use taskfiles for improved modularity and maintainability * refactor: improve GatewayContext and reorganize handlers * refactor: Remove unused profile creation functions * (chore): templ generation * test: add test file for vaults.go * maintenance: remove defunct Discord server link * docs: update checks workflow documentation * test: remove obsolete vaults test file * refactor: move version bumping logic to release workflow
48 lines
1.3 KiB
Templ
48 lines
1.3 KiB
Templ
package views
|
|
|
|
import "github.com/onsonr/sonr/app/gateway/islands"
|
|
|
|
templ RegisterProfileView(firstNumber int, lastNumber int) {
|
|
@LayoutView("New Profile | Sonr.ID") {
|
|
@LayoutContainer() {
|
|
@HeroTitle("Basic Info", "Tell us a little about yourself.")
|
|
@Form("/register/passkey", "create-profile") {
|
|
@FormBody() {
|
|
@FormHeader() {
|
|
<div class="w-full py-2">
|
|
<sl-avatar shape="circle" size="large" src="https://avatars.githubusercontent.com/u/101929?v=4"></sl-avatar>
|
|
</div>
|
|
}
|
|
@islands.InputHandle()
|
|
@islands.HumanSlider(firstNumber, lastNumber)
|
|
@FormFooter() {
|
|
@FormCancel()
|
|
@FormSubmit("Next")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
templ RegisterPasskeyView(address string, handle string, name string, challenge string, creationBlock string) {
|
|
@LayoutView("Register | Sonr.ID") {
|
|
@LayoutContainer() {
|
|
@HeroTitle("Link a PassKey", "This will be used to login to your vault.")
|
|
@Form("/register/finish", "passkey-form") {
|
|
<input type="hidden" name="credential" id="credential-data" required/>
|
|
@FormBody() {
|
|
@FormHeader() {
|
|
@islands.CardAccount(address, name, handle, creationBlock)
|
|
}
|
|
@islands.CoinSelect()
|
|
@FormFooter() {
|
|
@islands.InputPasskey(address, handle, challenge)
|
|
@FormCancel()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|