views

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllPagesPage

func AllPagesPage(props AllPagesPageProps) g.Node

func Anchor

func Anchor(url string, children ...g.Node) g.Node

func BasePage

func BasePage(bp BasePageProps) g.Node

func Container

func Container(children ...g.Node) g.Node

func ControlBox

func ControlBox(children ...g.Node) g.Node

func CreateTagPage

func CreateTagPage(props CreateTagPageProps) g.Node

func EditPagePage

func EditPagePage(props EditPageProps) g.Node

func IndexPage

func IndexPage(props IndexPageProps) g.Node

func LogInControlListItem

func LogInControlListItem(props LogInControlListItemProps) g.Node

func PageTable

func PageTable(pages []*db.Page) g.Node

func TagList

func TagList(tags []*db.Tag, tagFrequencies map[*db.Tag]int) g.Node

func TagPagesPage

func TagPagesPage(props TagPagesPageProps) g.Node

func TagTable

func TagTable(tags []*db.Tag) g.Node

func ViewPagePage

func ViewPagePage(props ViewPagePageProps) g.Node

Types

type AllPagesPageProps

type AllPagesPageProps struct {
	LogInControlListItemProps
	Pages []*db.Page
}

type BasePageProps

type BasePageProps struct {
	BodyNodes   []g.Node
	HeadNodes   []g.Node
	Title       string
	Description string
}

type CreateTagPageProps

type CreateTagPageProps struct {
	TagNameKey string
	Problem    string
}

type EditPageProps

type EditPageProps struct {
	ActionURL string
	CancelURL string

	TitleKey, ContentKey, TagKey string
	Tags                         []*db.Tag
	EditPageTitle                string

	Problem string

	TitleValue    string
	ContentValue  string
	SelectedTagID string
}

type IndexPageProps

type IndexPageProps struct {
	LogInControlListItemProps
	RenderedContent string
	Tags            []*db.Tag
	TagFrequencies  map[*db.Tag]int
}

type LogInControlListItemProps

type LogInControlListItemProps struct {
	Ctx        *fiber.Ctx
	IsLoggedIn bool
}

type TagPagesPageProps

type TagPagesPageProps struct {
	LogInControlListItemProps
	Tag   *db.Tag
	Pages []*db.Page
}

type ViewPagePageProps

type ViewPagePageProps struct {
	LogInControlListItemProps
	Page     *db.Page
	PageTags []*db.Tag
	Rendered string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL