modified: web/assets/css/styles.css

modified:   web/components/base/input.templ
	modified:   web/components/base/input_templ.go
	modified:   web/components/base/range.templ
	modified:   web/components/base/range_templ.go
	modified:   web/components/base/select.templ
	modified:   web/components/base/select_templ.go
	modified:   web/components/base/textarea.templ
	modified:   web/components/base/textarea_templ.go
	modified:   web/components/icons.templ
	modified:   web/components/icons_templ.go
	modified:   web/components/issue.templ
	modified:   web/components/issue_templ.go
	modified:   web/components/layout.templ
	modified:   web/components/layout_templ.go
	new file:   web/components/sidebar.templ
	new file:   web/components/sidebar_templ.go
	new file:   web/components/status.templ
	new file:   web/components/status_templ.go
	modified:   web/handler/issues.go
	new file:   web/handler/task.go
	modified:   web/input.css
	deleted:    web/package-lock.json
	deleted:    web/package.json
	modified:   web/routes/layout.templ
	modified:   web/routes/layout_templ.go
	modified:   web/server/routes.go
	modified:   web/server/server.go
	modified:   web/web.go
This commit is contained in:
viljarb
2026-02-18 20:41:52 +01:00
parent ed8a0d02ec
commit 1d92041538
29 changed files with 1050 additions and 5847 deletions

View File

@@ -1,12 +1,14 @@
package routes
import "github.com/LazyBachelor/LazyPM/pkg/web/components"
import "github.com/LazyBachelor/LazyPM/pkg/web/components/base"
var baseLayout = components.LayoutProps{
Title: "Beads Test Application",
Description: "A sample application using Beads storage service",
Head: components.HeadProps{
Links: []components.Link{
{Href: "/assets/css/styles.css", Rel: "preload", As: "style"},
{Href: "/assets/css/styles.css", Rel: "stylesheet"},
{Href: "/assets/manifest.json", Rel: "manifest"},
},
@@ -15,13 +17,29 @@ var baseLayout = components.LayoutProps{
{Src: "/assets/js/ajax.min.js", Defer: true},
},
},
Header: components.HeaderProps{
BrandName: "LazyPM Dashboard",
CreateLabel: "+ Create",
CreateHref: "",
SearchPlaceholder: "Search",
Routes: []components.NavRoutes{
{Name: "Dashboard", Path: "/", Icon: components.IconDashboard()},
{Name: "Issues", Path: "/", Icon: components.IconIssues()},
{Name: "Agile Board", Path: "/board", Icon: components.IconAgileBoard()},
{Name: "Backlog", Path: "/backlog", Icon: components.IconBacklog()},
{Name: "Reports", Path: "/reports", Icon: components.IconReports()},
{Name: "Settings", Path: "/settings", Icon: components.IconSettings()},
},
Header: components.HeaderProps{
Title: "LazyPM Dashboard",
NavbarCenter: base.Input(base.InputProps{
Name: "search-issue",
Type: "search",
Placeholder: "Search issues...",
Class: "",
Attrs: templ.Attributes{
"class": "text-base-content",
},
}),
NavbarEnd: components.Status(),
},
Footer: components.FooterProps{},
}
templ BaseLayout() {

View File

@@ -9,12 +9,14 @@ import "github.com/a-h/templ"
import templruntime "github.com/a-h/templ/runtime"
import "github.com/LazyBachelor/LazyPM/pkg/web/components"
import "github.com/LazyBachelor/LazyPM/pkg/web/components/base"
var baseLayout = components.LayoutProps{
Title: "Beads Test Application",
Description: "A sample application using Beads storage service",
Head: components.HeadProps{
Links: []components.Link{
{Href: "/assets/css/styles.css", Rel: "preload", As: "style"},
{Href: "/assets/css/styles.css", Rel: "stylesheet"},
{Href: "/assets/manifest.json", Rel: "manifest"},
},
@@ -23,13 +25,29 @@ var baseLayout = components.LayoutProps{
{Src: "/assets/js/ajax.min.js", Defer: true},
},
},
Header: components.HeaderProps{
BrandName: "LazyPM Dashboard",
CreateLabel: "+ Create",
CreateHref: "",
SearchPlaceholder: "Search",
Routes: []components.NavRoutes{
{Name: "Dashboard", Path: "/", Icon: components.IconDashboard()},
{Name: "Issues", Path: "/", Icon: components.IconIssues()},
{Name: "Agile Board", Path: "/board", Icon: components.IconAgileBoard()},
{Name: "Backlog", Path: "/backlog", Icon: components.IconBacklog()},
{Name: "Reports", Path: "/reports", Icon: components.IconReports()},
{Name: "Settings", Path: "/settings", Icon: components.IconSettings()},
},
Header: components.HeaderProps{
Title: "LazyPM Dashboard",
NavbarCenter: base.Input(base.InputProps{
Name: "search-issue",
Type: "search",
Placeholder: "Search issues...",
Class: "",
Attrs: templ.Attributes{
"class": "text-base-content",
},
}),
NavbarEnd: components.Status(),
},
Footer: components.FooterProps{},
}
func BaseLayout() templ.Component {