feat(web): add vanilla JS/CSS SPA with embed.FS

Stream view with date grouping, card view sorted by usage, capture
bar with client-side grammar parsing, tag rail filter, detail pane
with card affordances (template slot fill, checklist toggle, link
open), promote modal with auto-detect, keyboard shortcuts (j/k/n/p/
Enter/dd/1/2). Dark theme, responsive layout. Embedded in Go binary.
This commit is contained in:
2026-05-14 11:38:45 -04:00
parent 6de174e474
commit 5b0d0a8f33
7 changed files with 1170 additions and 2 deletions
+6
View File
@@ -2,12 +2,18 @@ package main
import (
"fmt"
"io/fs"
"os"
"github.com/lerko/nib/cmd"
)
func main() {
webContent, err := fs.Sub(WebFS, "web")
if err == nil {
cmd.WebFS = webContent
}
if err := cmd.Execute(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)