1
0
Fork 0
forked from goffee/cup

js destroy session

This commit is contained in:
Zeni Kim 2024-10-29 12:44:51 -05:00
parent 0b2abac628
commit 19c24593fe
5 changed files with 115 additions and 64 deletions

View file

@ -116,7 +116,8 @@ func AppSample(c *core.Context) *core.Response {
// first, include all compoments
type templateData struct {
PageCard components.PageCard
PageCard components.PageCard
ContentDropdown components.ContentDropdown
}
// now fill data of the components
@ -125,6 +126,21 @@ func AppSample(c *core.Context) *core.Response {
CardTitle: "Protected page",
CardBody: "If you can see this page, your are loggedin",
},
ContentDropdown: components.ContentDropdown{
Label: "dropdown",
Items: []components.ContentDropdownItem{
{
Text: "Signout",
Link: "#",
ID: "signout",
},
{
Text: "item disabled",
Link: "#",
IsDisabled: true,
},
},
},
}
//fmt.Printf("Outside cookie user is: %s", user.Email)