refactor: move studio to frontends workspace
- Move studio from root to frontends/studio/ - Add owner-tools frontend for live blog admin UI - Add shared ui component library - Set up npm workspaces for frontends - Add enhanced code block extension for editor Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
c662e41b97
commit
bef5dd4437
108 changed files with 8650 additions and 441 deletions
|
|
@ -1,22 +0,0 @@
|
|||
//go:build !testing
|
||||
|
||||
package studio
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"io/fs"
|
||||
"net/http"
|
||||
"path"
|
||||
)
|
||||
|
||||
//go:embed dist/*
|
||||
var distFS embed.FS
|
||||
|
||||
func Handler() http.Handler {
|
||||
sub, _ := fs.Sub(distFS, "dist")
|
||||
return http.FileServer(http.FS(sub))
|
||||
}
|
||||
|
||||
func Read(name string) ([]byte, error) {
|
||||
return distFS.ReadFile(path.Join("dist", name))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue