45 lines
2 KiB
Go
45 lines
2 KiB
Go
package controllers
|
|
|
|
// SampleNavbarMenu returns the sample menu data for the navbar
|
|
// Migrated from liquid/data/menu.json (layout, dashboards, help sections)
|
|
func SampleNavbarMenu() TablerMenu {
|
|
return TablerMenu{
|
|
"dashboards": {
|
|
Title: "Dashboards",
|
|
Icon: "home",
|
|
Children: []*TablerMenuItem{
|
|
{Title: "Default", URL: "index.html", Icon: "dashboard"},
|
|
{Title: "Crypto", URL: "dashboard-crypto.html", Icon: "currency-bitcoin"},
|
|
},
|
|
},
|
|
"layout": {
|
|
Title: "Layout",
|
|
Icon: "layout-2",
|
|
Columns: 2,
|
|
Children: []*TablerMenuItem{
|
|
{Title: "Boxed", URL: "layout-boxed.html", Icon: "layout-navbar"},
|
|
{Title: "Combined", URL: "layout-combo.html", Icon: "layout-navbar"},
|
|
{Title: "Condensed", URL: "layout-condensed.html", Icon: "layout-navbar"},
|
|
{Title: "Fluid", URL: "layout-fluid.html", Icon: "layout-navbar"},
|
|
{Title: "Fluid vertical", URL: "layout-fluid-vertical.html", Icon: "layout-navbar"},
|
|
{Title: "Horizontal", URL: "layout-horizontal.html", Icon: "layout-navbar"},
|
|
{Title: "Navbar dark", URL: "layout-navbar-dark.html", Icon: "layout-navbar"},
|
|
{Title: "Navbar overlap", URL: "layout-navbar-overlap.html", Icon: "layout-navbar"},
|
|
{Title: "Navbar sticky", URL: "layout-navbar-sticky.html", Icon: "layout-navbar"},
|
|
{Title: "Right vertical", URL: "layout-vertical-right.html", Icon: "layout-navbar"},
|
|
{Title: "Vertical", URL: "layout-vertical.html", Icon: "layout-navbar"},
|
|
{Title: "Vertical transparent", URL: "layout-vertical-transparent.html", Icon: "layout-navbar"},
|
|
},
|
|
},
|
|
"help": {
|
|
Title: "Help",
|
|
Icon: "lifebuoy",
|
|
Children: []*TablerMenuItem{
|
|
{Title: "Documentation", URL: "https://tabler.io/docs", Icon: "book"},
|
|
{Title: "Changelog", URL: "changelog.html", Icon: "list"},
|
|
{Title: "Source code", URL: "https://github.com/tabler/tabler", Icon: "brand-github"},
|
|
{Title: "Sponsor project!", URL: "https://github.com/sponsors/codecalm", Color: "pink", Icon: "heart"},
|
|
},
|
|
},
|
|
}
|
|
}
|