-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
31 lines (28 loc) · 884 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package main
import (
"github.com/maxence-charriere/go-app/v9/pkg/app"
"github.com/mlctrez/imgtofactbp/pages"
)
func buildHandler() *app.Handler {
h := &app.Handler{
Title: "image to factorio blueprint",
Name: "image to factorio blueprint",
ShortName: "img to bp",
Icon: app.Icon{Large: "/web/logo-512.png", Default: "/web/logo-192.png"},
Scripts: []string{
"https://cdnjs.cloudflare.com/ajax/libs/material-components-web/13.0.0/material-components-web.min.js",
},
Styles: []string{
"https://fonts.googleapis.com/icon?family=Material+Icons",
"https://fonts.googleapis.com/css2?family=Roboto&display=swap",
"https://cdnjs.cloudflare.com/ajax/libs/material-components-web/13.0.0/material-components-web.min.css",
"/web/style.css",
},
}
return h
}
func main() {
app.Route("/", &pages.Index{})
app.RunWhenOnBrowser()
httpServer()
}