mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-04 02:11:40 +00:00
feature/1110 abstract connected wallet operations (#1166)
- **refactor: refactor DID module types and move to controller package** - **refactor: move controller creation and resolution logic to keeper** - **refactor: update imports to reflect controller package move** - **refactor: update protobuf definitions for DID module** - **docs: update proto README to reflect changes** - **refactor: move hway to gateway, update node modules, and refactor pkl generation** - **build: update pkl-gen task to use new pkl file paths** - **refactor: refactor DWN WASM build and deployment process** - **refactor: refactor DID controller implementation to use account-based storage** - **refactor: move DID controller interface to base file and update implementation** - **chore: migrate to google protobuf** - **feat: Add v0.52.0 Interfaces for Acc Abstraction** - **refactor: replace public_key with public_key_hex in Assertion message** - **refactor: remove unused PubKey, JSONWebKey, and RawKey message types and related code**
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
package nebula
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
|
||||
"github.com/ipfs/boxo/files"
|
||||
"github.com/onsonr/sonr/internal/dwn/gen"
|
||||
"github.com/onsonr/sonr/pkg/nebula/views"
|
||||
)
|
||||
|
||||
// BuildVaultFile builds the index.html file for the vault
|
||||
func BuildVaultFile(cnfg *gen.Config) (files.Node, error) {
|
||||
w := bytes.NewBuffer(nil)
|
||||
err := views.VaultIndexFile().Render(context.Background(), w)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
indexData := w.Bytes()
|
||||
return files.NewBytesFile(indexData), nil
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
package marketing
|
||||
|
||||
import (
|
||||
models "github.com/onsonr/sonr/internal/orm/marketing"
|
||||
"github.com/onsonr/sonr/pkg/nebula/global"
|
||||
models "github.com/onsonr/sonr/pkg/nebula/types"
|
||||
)
|
||||
|
||||
// ╭───────────────────────────────────────────────────────────╮
|
||||
|
||||
@@ -9,8 +9,8 @@ import "github.com/a-h/templ"
|
||||
import templruntime "github.com/a-h/templ/runtime"
|
||||
|
||||
import (
|
||||
models "github.com/onsonr/sonr/internal/orm/marketing"
|
||||
"github.com/onsonr/sonr/pkg/nebula/global"
|
||||
models "github.com/onsonr/sonr/pkg/nebula/types"
|
||||
)
|
||||
|
||||
// ╭───────────────────────────────────────────────────────────╮
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package marketing
|
||||
|
||||
import models "github.com/onsonr/sonr/internal/orm/marketing"
|
||||
import models "github.com/onsonr/sonr/pkg/nebula/types"
|
||||
|
||||
// ╭───────────────────────────────────────────────────────────╮
|
||||
// │ Data Model │
|
||||
|
||||
@@ -8,7 +8,7 @@ package marketing
|
||||
import "github.com/a-h/templ"
|
||||
import templruntime "github.com/a-h/templ/runtime"
|
||||
|
||||
import models "github.com/onsonr/sonr/internal/orm/marketing"
|
||||
import models "github.com/onsonr/sonr/pkg/nebula/types"
|
||||
|
||||
// ╭───────────────────────────────────────────────────────────╮
|
||||
// │ Data Model │
|
||||
|
||||
@@ -2,8 +2,8 @@ package marketing
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
models "github.com/onsonr/sonr/internal/orm/marketing"
|
||||
"github.com/onsonr/sonr/pkg/nebula/global/ui"
|
||||
models "github.com/onsonr/sonr/pkg/nebula/types"
|
||||
)
|
||||
|
||||
// ╭───────────────────────────────────────────────────────────╮
|
||||
|
||||
@@ -10,8 +10,8 @@ import templruntime "github.com/a-h/templ/runtime"
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
models "github.com/onsonr/sonr/internal/orm/marketing"
|
||||
"github.com/onsonr/sonr/pkg/nebula/global/ui"
|
||||
models "github.com/onsonr/sonr/pkg/nebula/types"
|
||||
)
|
||||
|
||||
// ╭───────────────────────────────────────────────────────────╮
|
||||
|
||||
@@ -2,7 +2,7 @@ package marketing
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
models "github.com/onsonr/sonr/internal/orm/marketing"
|
||||
models "github.com/onsonr/sonr/pkg/nebula/types"
|
||||
)
|
||||
|
||||
// ╭───────────────────────────────────────────────────────────╮
|
||||
|
||||
@@ -10,7 +10,7 @@ import templruntime "github.com/a-h/templ/runtime"
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
models "github.com/onsonr/sonr/internal/orm/marketing"
|
||||
models "github.com/onsonr/sonr/pkg/nebula/types"
|
||||
)
|
||||
|
||||
// ╭───────────────────────────────────────────────────────────╮
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package marketing
|
||||
|
||||
import (
|
||||
models "github.com/onsonr/sonr/internal/orm/marketing"
|
||||
global "github.com/onsonr/sonr/pkg/nebula/global"
|
||||
models "github.com/onsonr/sonr/pkg/nebula/types"
|
||||
)
|
||||
|
||||
// ╭───────────────────────────────────────────────────────────╮
|
||||
|
||||
@@ -9,8 +9,8 @@ import "github.com/a-h/templ"
|
||||
import templruntime "github.com/a-h/templ/runtime"
|
||||
|
||||
import (
|
||||
models "github.com/onsonr/sonr/internal/orm/marketing"
|
||||
global "github.com/onsonr/sonr/pkg/nebula/global"
|
||||
models "github.com/onsonr/sonr/pkg/nebula/types"
|
||||
)
|
||||
|
||||
// ╭───────────────────────────────────────────────────────────╮
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package marketing
|
||||
|
||||
import models "github.com/onsonr/sonr/internal/orm/marketing"
|
||||
import models "github.com/onsonr/sonr/pkg/nebula/types"
|
||||
|
||||
// mission is the (3rd) home page mission section
|
||||
var mission = &models.Mission{
|
||||
|
||||
@@ -8,7 +8,7 @@ package marketing
|
||||
import "github.com/a-h/templ"
|
||||
import templruntime "github.com/a-h/templ/runtime"
|
||||
|
||||
import models "github.com/onsonr/sonr/internal/orm/marketing"
|
||||
import models "github.com/onsonr/sonr/pkg/nebula/types"
|
||||
|
||||
// mission is the (3rd) home page mission section
|
||||
var mission = &models.Mission{
|
||||
|
||||
@@ -4,7 +4,8 @@ import (
|
||||
"log"
|
||||
|
||||
"github.com/labstack/echo/v4"
|
||||
"github.com/onsonr/sonr/internal/ctx"
|
||||
|
||||
"github.com/onsonr/sonr/pkg/common/ctx"
|
||||
"github.com/onsonr/sonr/pkg/nebula/modals"
|
||||
"github.com/onsonr/sonr/pkg/nebula/views"
|
||||
)
|
||||
|
||||
@@ -4,7 +4,8 @@ import (
|
||||
"log"
|
||||
|
||||
"github.com/labstack/echo/v4"
|
||||
"github.com/onsonr/sonr/internal/ctx"
|
||||
|
||||
"github.com/onsonr/sonr/pkg/common/ctx"
|
||||
"github.com/onsonr/sonr/pkg/nebula/marketing"
|
||||
)
|
||||
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
package types
|
||||
|
||||
type Button struct {
|
||||
Text string
|
||||
Href string
|
||||
}
|
||||
|
||||
type Image struct {
|
||||
Src string
|
||||
Width string
|
||||
Height string
|
||||
}
|
||||
|
||||
// ╭──────────────────────────────────────────────────────────╮
|
||||
// │ Generic Models │
|
||||
// ╰──────────────────────────────────────────────────────────╯
|
||||
|
||||
type Feature struct {
|
||||
Title string
|
||||
Desc string
|
||||
Icon *string
|
||||
Image *Image
|
||||
}
|
||||
|
||||
type Stat struct {
|
||||
Value string
|
||||
Denom string
|
||||
Label string
|
||||
}
|
||||
|
||||
type Technology struct {
|
||||
Title string
|
||||
Desc string
|
||||
Icon *string
|
||||
Image *Image
|
||||
}
|
||||
|
||||
type Testimonial struct {
|
||||
FullName string
|
||||
Username string
|
||||
Avatar *Image
|
||||
Quote string
|
||||
}
|
||||
|
||||
// ╭───────────────────────────────────────────────────────────╮
|
||||
// │ HomePage Models │
|
||||
// ╰───────────────────────────────────────────────────────────╯
|
||||
|
||||
type Hero struct {
|
||||
TitleFirst string
|
||||
TitleEmphasis string
|
||||
TitleSecond string
|
||||
Subtitle string
|
||||
PrimaryButton *Button
|
||||
SecondaryButton *Button
|
||||
Image *Image
|
||||
Stats []*Stat
|
||||
}
|
||||
|
||||
type Highlights struct {
|
||||
Heading string
|
||||
Subtitle string
|
||||
Features []*Feature
|
||||
}
|
||||
|
||||
type Mission struct {
|
||||
Eyebrow string
|
||||
Heading string
|
||||
Subtitle string
|
||||
Experience *Feature
|
||||
Compliance *Feature
|
||||
Interoperability *Feature
|
||||
Standards []*Feature // Display 6 Standards applied by the Sonr Network
|
||||
}
|
||||
|
||||
type Architecture struct {
|
||||
Heading string
|
||||
Subtitle string
|
||||
Primary *Technology
|
||||
Secondary *Technology
|
||||
Tertiary *Technology
|
||||
Quaternary *Technology
|
||||
Quinary *Technology
|
||||
}
|
||||
|
||||
type Lowlights struct {
|
||||
Heading string
|
||||
UpperQuotes []*Testimonial
|
||||
LowerQuotes []*Testimonial
|
||||
}
|
||||
|
||||
type CallToAction struct {
|
||||
Logo *Image
|
||||
Heading string
|
||||
Subtitle string
|
||||
Primary *Button
|
||||
Secondary *Button
|
||||
Partners []*Image
|
||||
}
|
||||
Reference in New Issue
Block a user