mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-03 09:51:39 +00:00
- **refactor: move marketing pages to** - **feat: add role select input**
22 lines
481 B
Go
22 lines
481 B
Go
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
|
|
}
|