forked from goffee/cup
js destroy session
This commit is contained in:
parent
0b2abac628
commit
19c24593fe
5 changed files with 115 additions and 64 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue