feature/1126 implement pkl config (#1161)

- **refactor: move marketing pages to**
- **feat: add role select input**
This commit is contained in:
Prad Nukala
2024-11-06 13:32:51 -05:00
committed by GitHub
parent 82ec2664f3
commit d8cb2cbbf6
54 changed files with 854 additions and 431 deletions
+21
View File
@@ -0,0 +1,21 @@
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
}