Add gallery core and command: routes, sidebar, search, code panel, browser hook
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
727de5f110
commit
ff50f9b35a
10 files changed
+750
-2
No files matched your search
@@ -0,0 +1,28 @@
|
||||
// Command gallery opens the CrychicUI gallery on desktops and browsers.
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
|
||||
"git.zacharyzhang.com/ZacharyZhang-NY/CrychicUI/gallery"
|
||||
"github.com/egoist/mygo"
|
||||
"github.com/egoist/mygo/ui"
|
||||
)
|
||||
|
||||
func main() {
|
||||
app := gallery.New("/")
|
||||
hook(app)
|
||||
mygo.App.WhenReady(func() {
|
||||
mygo.NewWindow(mygo.WindowOptions{
|
||||
Title: "CrychicUI",
|
||||
Width: 1280,
|
||||
Height: 820,
|
||||
MinWidth: 720,
|
||||
MinHeight: 480,
|
||||
Content: ui.View(app.View),
|
||||
})
|
||||
})
|
||||
if err := mygo.App.Run(); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user