Move html/head/navbar into elements.

This commit is contained in:
2022-01-07 10:53:39 +05:00
parent 7d42229098
commit cb8236eb92
8 changed files with 18 additions and 39 deletions

View File

@@ -1,29 +1,11 @@
GO := $(shell which go)
GO112_VERSION := 1.12.16
GO112 := go${GO112_VERSION}
GOPHERJS := $(shell which gopherjs 2> /dev/null)
## start-web : Starts GopherJS serving.
start-web:
GOPHERJS_GOROOT="${HOME}/sdk/${GO112}" ${GOPHERJS} serve . -v
## prepare : Installs Go 1.12 and GopherJS. Go must be already installed.
prepare: prepare-go prepare-gopherjs
## prepare-go : Prepares specific Go tooling for GopherJS. Go must be already installed.
prepare-go:
@echo "* Getting Go 1.12.16 (required by gopherjs)"
@${GO} get golang.org/dl/${GO112}
@${GO112} download
## prepare-gopherjs: Prepares GopherJS (e.g. compiles it).
prepare-gopherjs:
@echo "* Getting gopherjs..."
@${GO112} get -u -v github.com/gopherjs/gopherjs
${GOPHERJS} serve . -v
help : Makefile
@echo "helloworld Makefile available subcommands:\n"
@sed -n 's/^## //p' $<
.DEFAULT_GOAL := help
.DEFAULT_GOAL := help

View File

@@ -28,7 +28,6 @@ import (
"go.dev.pztrn.name/bulpherjs"
"go.dev.pztrn.name/bulpherjs/common"
"go.dev.pztrn.name/bulpherjs/elements"
"go.dev.pztrn.name/bulpherjs/widgets"
)
func main() {
@@ -45,7 +44,7 @@ func main() {
}
func start(a *bulpherjs.Application) {
nb := widgets.NewNavBar(&widgets.NavBarOptions{
nb := elements.NewNavBar(&elements.NavBarOptions{
IsDark: true,
Title: "Example application",
})