add ui
This commit is contained in:
parent
f46749837a
commit
23dd1db778
5 changed files with 14 additions and 8 deletions
3
framework-ui/go.mod
Normal file
3
framework-ui/go.mod
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
module github.com/maddalax/mhtml/framework-ui
|
||||||
|
|
||||||
|
go 1.23.0
|
||||||
|
|
@ -13,7 +13,7 @@ require (
|
||||||
github.com/cespare/xxhash/v2 v2.2.0 // indirect
|
github.com/cespare/xxhash/v2 v2.2.0 // indirect
|
||||||
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
|
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
|
||||||
github.com/klauspost/compress v1.17.0 // indirect
|
github.com/klauspost/compress v1.17.0 // indirect
|
||||||
github.com/maddalax/mhtml/framework v0.0.0-20240913172309-3d7c04cd324b // indirect
|
github.com/maddalax/mhtml/framework v0.0.0-20240913172412-f46749837a6f // indirect
|
||||||
github.com/mattn/go-colorable v0.1.13 // indirect
|
github.com/mattn/go-colorable v0.1.13 // indirect
|
||||||
github.com/mattn/go-isatty v0.0.20 // indirect
|
github.com/mattn/go-isatty v0.0.20 // indirect
|
||||||
github.com/mattn/go-runewidth v0.0.15 // indirect
|
github.com/mattn/go-runewidth v0.0.15 // indirect
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
package base
|
package base
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"mhtml/h"
|
"github.com/maddalax/mhtml/framework/h"
|
||||||
"mhtml/partials"
|
"github.com/maddalax/mhtml/starter-template/partials"
|
||||||
"mhtml/partials/sheet"
|
"github.com/maddalax/mhtml/starter-template/partials/sheet"
|
||||||
)
|
)
|
||||||
|
|
||||||
func RootPage(children ...h.Renderable) h.Renderable {
|
func RootPage(children ...h.Renderable) h.Renderable {
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@ package pages
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
"mhtml/h"
|
"github.com/maddalax/mhtml/framework/h"
|
||||||
"mhtml/pages/base"
|
"github.com/maddalax/mhtml/starter-template/pages/base"
|
||||||
"mhtml/partials/patient"
|
"github.com/maddalax/mhtml/starter-template/partials/patient"
|
||||||
)
|
)
|
||||||
|
|
||||||
func PatientsIndex(ctx *fiber.Ctx) *h.Page {
|
func PatientsIndex(ctx *fiber.Ctx) *h.Page {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
package partials
|
package partials
|
||||||
|
|
||||||
import "github.com/maddalax/mhtml/framework/h"
|
import (
|
||||||
|
"github.com/maddalax/mhtml/framework-ui/ui"
|
||||||
|
"github.com/maddalax/mhtml/framework/h"
|
||||||
|
)
|
||||||
|
|
||||||
func OpenSheetButton(open bool, children ...h.Renderable) h.Renderable {
|
func OpenSheetButton(open bool, children ...h.Renderable) h.Renderable {
|
||||||
if open {
|
if open {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue