refactor: move vault package to app directory

This commit is contained in:
Prad Nukala 2024-12-09 18:39:57 -05:00
parent c158904efc
commit e3b8f2cffe
46 changed files with 15 additions and 15 deletions

View File

@ -4,8 +4,8 @@ import (
"reflect" "reflect"
"strings" "strings"
"github.com/onsonr/sonr/app/vault/types"
"github.com/onsonr/sonr/pkg/common/models" "github.com/onsonr/sonr/pkg/common/models"
"github.com/onsonr/sonr/pkg/vault/types"
) )
// DefaultSchema returns the default schema // DefaultSchema returns the default schema

View File

@ -5,7 +5,7 @@ import (
"github.com/ipfs/boxo/files" "github.com/ipfs/boxo/files"
"github.com/onsonr/sonr/app/gateway/config/internal" "github.com/onsonr/sonr/app/gateway/config/internal"
"github.com/onsonr/sonr/pkg/vault/types" "github.com/onsonr/sonr/app/vault/types"
) )
const SchemaVersion = 1 const SchemaVersion = 1

View File

@ -4,9 +4,9 @@ import (
"net/http" "net/http"
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
session "github.com/onsonr/sonr/app/vault/internal"
"github.com/onsonr/sonr/app/vault/internal/pages/index"
"github.com/onsonr/sonr/pkg/common/response" "github.com/onsonr/sonr/pkg/common/response"
session "github.com/onsonr/sonr/pkg/vault/internal"
"github.com/onsonr/sonr/pkg/vault/pages/index"
) )
func HandleIndex(c echo.Context) error { func HandleIndex(c echo.Context) error {

View File

@ -6,8 +6,8 @@ import (
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
"github.com/onsonr/sonr/app/vault/types"
"github.com/onsonr/sonr/pkg/common" "github.com/onsonr/sonr/pkg/common"
"github.com/onsonr/sonr/pkg/vault/types"
) )
type SessionCtx interface { type SessionCtx interface {

View File

@ -7,9 +7,9 @@ package vault
import ( import (
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
"github.com/onsonr/sonr/pkg/vault/handlers" "github.com/onsonr/sonr/app/vault/handlers"
"github.com/onsonr/sonr/pkg/vault/internal/session" session "github.com/onsonr/sonr/app/vault/internal"
"github.com/onsonr/sonr/pkg/vault/types" "github.com/onsonr/sonr/app/vault/types"
) )
// RegisterRoutes registers the Decentralized Web Node API routes. // RegisterRoutes registers the Decentralized Web Node API routes.

View File

@ -12,8 +12,8 @@ import (
"github.com/onsonr/sonr/app/gateway" "github.com/onsonr/sonr/app/gateway"
"github.com/onsonr/sonr/app/gateway/config" "github.com/onsonr/sonr/app/gateway/config"
"github.com/onsonr/sonr/crypto/ucan" "github.com/onsonr/sonr/crypto/ucan"
"github.com/onsonr/sonr/pkg/common/didauth/producer"
"github.com/onsonr/sonr/pkg/common/ipfs" "github.com/onsonr/sonr/pkg/common/ipfs"
"github.com/onsonr/sonr/pkg/didauth/producer"
) )
//go:embed config.pkl //go:embed config.pkl

View File

@ -8,9 +8,9 @@ import (
"syscall/js" "syscall/js"
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
"github.com/onsonr/sonr/pkg/common/didauth/controller" "github.com/onsonr/sonr/app/vault"
"github.com/onsonr/sonr/pkg/vault" "github.com/onsonr/sonr/app/vault/types"
"github.com/onsonr/sonr/pkg/vault/types" "github.com/onsonr/sonr/pkg/didauth/controller"
) )
var ( var (

View File

@ -4,7 +4,7 @@ import (
"net/http" "net/http"
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
"github.com/onsonr/sonr/pkg/gateway/config" "github.com/onsonr/sonr/app/gateway/config"
"google.golang.org/grpc" "google.golang.org/grpc"
) )

View File

@ -1,4 +1,4 @@
@go.Package { name = "github.com/onsonr/sonr/pkg/gateway/config" } @go.Package { name = "github.com/onsonr/sonr/app/gateway/config" }
open module sonr.hway.Env open module sonr.hway.Env

View File

@ -1,4 +1,4 @@
@go.Package { name = "github.com/onsonr/sonr/pkg/vault/types" } @go.Package { name = "github.com/onsonr/sonr/app/vault/types" }
module sonr.motr.DWN module sonr.motr.DWN