templates

package
v0.0.0-...-fb49ba0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package templates contains generated HTML templates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetaRedirect

func MetaRedirect(url string) string

func PageTemplate

func PageTemplate(p Page) string

func StreamMetaRedirect

func StreamMetaRedirect(qw422016 *qt422016.Writer, url string)

func StreamPageTemplate

func StreamPageTemplate(qw422016 *qt422016.Writer, p Page)

func WriteMetaRedirect

func WriteMetaRedirect(qq422016 qtio422016.Writer, url string)

func WritePageTemplate

func WritePageTemplate(qq422016 qtio422016.Writer, p Page)

Types

type AboutPage

type AboutPage struct {
	BasePage
}

func (*AboutPage) PageBody

func (p *AboutPage) PageBody() string

func (*AboutPage) PageTitle

func (p *AboutPage) PageTitle() string

func (*AboutPage) StreamPageBody

func (p *AboutPage) StreamPageBody(qw422016 *qt422016.Writer)

func (*AboutPage) StreamPageTitle

func (p *AboutPage) StreamPageTitle(qw422016 *qt422016.Writer)

func (*AboutPage) WritePageBody

func (p *AboutPage) WritePageBody(qq422016 qtio422016.Writer)

func (*AboutPage) WritePageTitle

func (p *AboutPage) WritePageTitle(qq422016 qtio422016.Writer)

type AdminImportPage

type AdminImportPage struct {
	BasePage
}

func (*AdminImportPage) PageBody

func (p *AdminImportPage) PageBody() string

func (*AdminImportPage) PageMeta

func (p *AdminImportPage) PageMeta() string

func (*AdminImportPage) PageScripts

func (p *AdminImportPage) PageScripts() string

func (*AdminImportPage) PageTitle

func (p *AdminImportPage) PageTitle() string

func (*AdminImportPage) StreamPageBody

func (p *AdminImportPage) StreamPageBody(qw422016 *qt422016.Writer)

func (*AdminImportPage) StreamPageMeta

func (p *AdminImportPage) StreamPageMeta(qw422016 *qt422016.Writer)

func (*AdminImportPage) StreamPageScripts

func (p *AdminImportPage) StreamPageScripts(qw422016 *qt422016.Writer)

func (*AdminImportPage) StreamPageTitle

func (p *AdminImportPage) StreamPageTitle(qw422016 *qt422016.Writer)

func (*AdminImportPage) WritePageBody

func (p *AdminImportPage) WritePageBody(qq422016 qtio422016.Writer)

func (*AdminImportPage) WritePageMeta

func (p *AdminImportPage) WritePageMeta(qq422016 qtio422016.Writer)

func (*AdminImportPage) WritePageScripts

func (p *AdminImportPage) WritePageScripts(qq422016 qtio422016.Writer)

func (*AdminImportPage) WritePageTitle

func (p *AdminImportPage) WritePageTitle(qq422016 qtio422016.Writer)

type BasePage

type BasePage struct {
	Brand string
	User  string
}

func (*BasePage) PageBody

func (p *BasePage) PageBody() string

func (*BasePage) PageBrand

func (p *BasePage) PageBrand() string

func (*BasePage) PageLogin

func (p *BasePage) PageLogin() string

func (*BasePage) PageMeta

func (p *BasePage) PageMeta() string

func (*BasePage) PageScripts

func (p *BasePage) PageScripts() string

func (*BasePage) StreamPageBody

func (p *BasePage) StreamPageBody(qw422016 *qt422016.Writer)

func (*BasePage) StreamPageBrand

func (p *BasePage) StreamPageBrand(qw422016 *qt422016.Writer)

func (*BasePage) StreamPageLogin

func (p *BasePage) StreamPageLogin(qw422016 *qt422016.Writer)

func (*BasePage) StreamPageMeta

func (p *BasePage) StreamPageMeta(qw422016 *qt422016.Writer)

func (*BasePage) StreamPageScripts

func (p *BasePage) StreamPageScripts(qw422016 *qt422016.Writer)

func (*BasePage) WritePageBody

func (p *BasePage) WritePageBody(qq422016 qtio422016.Writer)

func (*BasePage) WritePageBrand

func (p *BasePage) WritePageBrand(qq422016 qtio422016.Writer)

func (*BasePage) WritePageLogin

func (p *BasePage) WritePageLogin(qq422016 qtio422016.Writer)

func (*BasePage) WritePageMeta

func (p *BasePage) WritePageMeta(qq422016 qtio422016.Writer)

func (*BasePage) WritePageScripts

func (p *BasePage) WritePageScripts(qq422016 qtio422016.Writer)

type ChannelAutorepliesPage

type ChannelAutorepliesPage struct {
	ChannelPage
	Autoreplies models.AutoreplySlice
}

func (*ChannelAutorepliesPage) PageBody

func (p *ChannelAutorepliesPage) PageBody() string

func (*ChannelAutorepliesPage) StreamPageBody

func (p *ChannelAutorepliesPage) StreamPageBody(qw422016 *qt422016.Writer)

func (*ChannelAutorepliesPage) WritePageBody

func (p *ChannelAutorepliesPage) WritePageBody(qq422016 qtio422016.Writer)

type ChannelCommandsPage

type ChannelCommandsPage struct {
	ChannelPage
	Commands models.CustomCommandSlice
}

func (*ChannelCommandsPage) PageBody

func (p *ChannelCommandsPage) PageBody() string

func (*ChannelCommandsPage) StreamPageBody

func (p *ChannelCommandsPage) StreamPageBody(qw422016 *qt422016.Writer)

func (*ChannelCommandsPage) WritePageBody

func (p *ChannelCommandsPage) WritePageBody(qq422016 qtio422016.Writer)

type ChannelHighlightsPage

type ChannelHighlightsPage struct {
	ChannelPage
	Highlights models.HighlightSlice
}

func (*ChannelHighlightsPage) PageBody

func (p *ChannelHighlightsPage) PageBody() string

func (*ChannelHighlightsPage) StreamPageBody

func (p *ChannelHighlightsPage) StreamPageBody(qw422016 *qt422016.Writer)

func (*ChannelHighlightsPage) WritePageBody

func (p *ChannelHighlightsPage) WritePageBody(qq422016 qtio422016.Writer)

type ChannelListsPage

type ChannelListsPage struct {
	ChannelPage
	Lists models.CommandListSlice
}

func (*ChannelListsPage) PageBody

func (p *ChannelListsPage) PageBody() string

func (*ChannelListsPage) PageScripts

func (p *ChannelListsPage) PageScripts() string

func (*ChannelListsPage) StreamPageBody

func (p *ChannelListsPage) StreamPageBody(qw422016 *qt422016.Writer)

func (*ChannelListsPage) StreamPageScripts

func (p *ChannelListsPage) StreamPageScripts(qw422016 *qt422016.Writer)

func (*ChannelListsPage) WritePageBody

func (p *ChannelListsPage) WritePageBody(qq422016 qtio422016.Writer)

func (*ChannelListsPage) WritePageScripts

func (p *ChannelListsPage) WritePageScripts(qq422016 qtio422016.Writer)

type ChannelPage

type ChannelPage struct {
	BasePage
	Channel *models.Channel
}

func (*ChannelPage) PageBody

func (p *ChannelPage) PageBody() string

func (*ChannelPage) PageMeta

func (p *ChannelPage) PageMeta() string

func (*ChannelPage) PageScripts

func (p *ChannelPage) PageScripts() string

func (*ChannelPage) PageTitle

func (p *ChannelPage) PageTitle() string

func (*ChannelPage) Sidebar

func (p *ChannelPage) Sidebar(item string) string

func (*ChannelPage) SidebarMobile

func (p *ChannelPage) SidebarMobile(item string) string

func (*ChannelPage) StreamPageBody

func (p *ChannelPage) StreamPageBody(qw422016 *qt422016.Writer)

func (*ChannelPage) StreamPageMeta

func (p *ChannelPage) StreamPageMeta(qw422016 *qt422016.Writer)

func (*ChannelPage) StreamPageScripts

func (p *ChannelPage) StreamPageScripts(qw422016 *qt422016.Writer)

func (*ChannelPage) StreamPageTitle

func (p *ChannelPage) StreamPageTitle(qw422016 *qt422016.Writer)

func (*ChannelPage) StreamSidebar

func (p *ChannelPage) StreamSidebar(qw422016 *qt422016.Writer, item string)

func (*ChannelPage) StreamSidebarMobile

func (p *ChannelPage) StreamSidebarMobile(qw422016 *qt422016.Writer, item string)

func (*ChannelPage) WritePageBody

func (p *ChannelPage) WritePageBody(qq422016 qtio422016.Writer)

func (*ChannelPage) WritePageMeta

func (p *ChannelPage) WritePageMeta(qq422016 qtio422016.Writer)

func (*ChannelPage) WritePageScripts

func (p *ChannelPage) WritePageScripts(qq422016 qtio422016.Writer)

func (*ChannelPage) WritePageTitle

func (p *ChannelPage) WritePageTitle(qq422016 qtio422016.Writer)

func (*ChannelPage) WriteSidebar

func (p *ChannelPage) WriteSidebar(qq422016 qtio422016.Writer, item string)

func (*ChannelPage) WriteSidebarMobile

func (p *ChannelPage) WriteSidebarMobile(qq422016 qtio422016.Writer, item string)

type ChannelQuotesPage

type ChannelQuotesPage struct {
	ChannelPage
	Quotes models.QuoteSlice
}

func (*ChannelQuotesPage) PageBody

func (p *ChannelQuotesPage) PageBody() string

func (*ChannelQuotesPage) StreamPageBody

func (p *ChannelQuotesPage) StreamPageBody(qw422016 *qt422016.Writer)

func (*ChannelQuotesPage) WritePageBody

func (p *ChannelQuotesPage) WritePageBody(qq422016 qtio422016.Writer)

type ChannelRegularsPage

type ChannelRegularsPage struct {
	ChannelPage
}

func (*ChannelRegularsPage) PageBody

func (p *ChannelRegularsPage) PageBody() string

func (*ChannelRegularsPage) StreamPageBody

func (p *ChannelRegularsPage) StreamPageBody(qw422016 *qt422016.Writer)

func (*ChannelRegularsPage) WritePageBody

func (p *ChannelRegularsPage) WritePageBody(qq422016 qtio422016.Writer)

type ChannelRulesPage

type ChannelRulesPage struct {
	ChannelPage
}

func (*ChannelRulesPage) PageBody

func (p *ChannelRulesPage) PageBody() string

func (*ChannelRulesPage) StreamPageBody

func (p *ChannelRulesPage) StreamPageBody(qw422016 *qt422016.Writer)

func (*ChannelRulesPage) WritePageBody

func (p *ChannelRulesPage) WritePageBody(qq422016 qtio422016.Writer)

type ChannelScheduledPage

type ChannelScheduledPage struct {
	ChannelPage
	Repeated  models.RepeatedCommandSlice
	Scheduled models.ScheduledCommandSlice
}

func (*ChannelScheduledPage) PageBody

func (p *ChannelScheduledPage) PageBody() string

func (*ChannelScheduledPage) StreamPageBody

func (p *ChannelScheduledPage) StreamPageBody(qw422016 *qt422016.Writer)

func (*ChannelScheduledPage) WritePageBody

func (p *ChannelScheduledPage) WritePageBody(qq422016 qtio422016.Writer)

type ChannelVariablesPage

type ChannelVariablesPage struct {
	ChannelPage
	Variables models.VariableSlice
}

func (*ChannelVariablesPage) PageBody

func (p *ChannelVariablesPage) PageBody() string

func (*ChannelVariablesPage) StreamPageBody

func (p *ChannelVariablesPage) StreamPageBody(qw422016 *qt422016.Writer)

func (*ChannelVariablesPage) WritePageBody

func (p *ChannelVariablesPage) WritePageBody(qq422016 qtio422016.Writer)

type ChannelsPage

type ChannelsPage struct {
	BasePage
	Channels models.ChannelSlice
}

func (*ChannelsPage) PageBody

func (p *ChannelsPage) PageBody() string

func (*ChannelsPage) PageTitle

func (p *ChannelsPage) PageTitle() string

func (*ChannelsPage) StreamPageBody

func (p *ChannelsPage) StreamPageBody(qw422016 *qt422016.Writer)

func (*ChannelsPage) StreamPageTitle

func (p *ChannelsPage) StreamPageTitle(qw422016 *qt422016.Writer)

func (*ChannelsPage) WritePageBody

func (p *ChannelsPage) WritePageBody(qq422016 qtio422016.Writer)

func (*ChannelsPage) WritePageTitle

func (p *ChannelsPage) WritePageTitle(qq422016 qtio422016.Writer)

type DocsPage

type DocsPage struct {
	BasePage
}

func (*DocsPage) PageBody

func (p *DocsPage) PageBody() string

func (*DocsPage) PageMeta

func (p *DocsPage) PageMeta() string

func (*DocsPage) PageScripts

func (p *DocsPage) PageScripts() string

func (*DocsPage) PageTitle

func (p *DocsPage) PageTitle() string

func (*DocsPage) StreamPageBody

func (p *DocsPage) StreamPageBody(qw422016 *qt422016.Writer)

func (*DocsPage) StreamPageMeta

func (p *DocsPage) StreamPageMeta(qw422016 *qt422016.Writer)

func (*DocsPage) StreamPageScripts

func (p *DocsPage) StreamPageScripts(qw422016 *qt422016.Writer)

func (*DocsPage) StreamPageTitle

func (p *DocsPage) StreamPageTitle(qw422016 *qt422016.Writer)

func (*DocsPage) WritePageBody

func (p *DocsPage) WritePageBody(qq422016 qtio422016.Writer)

func (*DocsPage) WritePageMeta

func (p *DocsPage) WritePageMeta(qq422016 qtio422016.Writer)

func (*DocsPage) WritePageScripts

func (p *DocsPage) WritePageScripts(qq422016 qtio422016.Writer)

func (*DocsPage) WritePageTitle

func (p *DocsPage) WritePageTitle(qq422016 qtio422016.Writer)

type ErrorPage

type ErrorPage struct {
	BasePage
	Message string
	Image   string
}

func (*ErrorPage) PageBody

func (p *ErrorPage) PageBody() string

func (*ErrorPage) PageTitle

func (p *ErrorPage) PageTitle() string

func (*ErrorPage) StreamPageBody

func (p *ErrorPage) StreamPageBody(qw422016 *qt422016.Writer)

func (*ErrorPage) StreamPageTitle

func (p *ErrorPage) StreamPageTitle(qw422016 *qt422016.Writer)

func (*ErrorPage) WritePageBody

func (p *ErrorPage) WritePageBody(qq422016 qtio422016.Writer)

func (*ErrorPage) WritePageTitle

func (p *ErrorPage) WritePageTitle(qq422016 qtio422016.Writer)

type HelpPage

type HelpPage struct {
	BasePage
}

func (*HelpPage) PageBody

func (p *HelpPage) PageBody() string

func (*HelpPage) PageTitle

func (p *HelpPage) PageTitle() string

func (*HelpPage) StreamPageBody

func (p *HelpPage) StreamPageBody(qw422016 *qt422016.Writer)

func (*HelpPage) StreamPageTitle

func (p *HelpPage) StreamPageTitle(qw422016 *qt422016.Writer)

func (*HelpPage) WritePageBody

func (p *HelpPage) WritePageBody(qq422016 qtio422016.Writer)

func (*HelpPage) WritePageTitle

func (p *HelpPage) WritePageTitle(qq422016 qtio422016.Writer)

type IndexPage

type IndexPage struct {
	BasePage
	ChannelCount int64
	BotCount     int64
}

func (*IndexPage) PageBody

func (p *IndexPage) PageBody() string

func (*IndexPage) PageTitle

func (p *IndexPage) PageTitle() string

func (*IndexPage) StreamPageBody

func (p *IndexPage) StreamPageBody(qw422016 *qt422016.Writer)

func (*IndexPage) StreamPageTitle

func (p *IndexPage) StreamPageTitle(qw422016 *qt422016.Writer)

func (*IndexPage) WritePageBody

func (p *IndexPage) WritePageBody(qq422016 qtio422016.Writer)

func (*IndexPage) WritePageTitle

func (p *IndexPage) WritePageTitle(qq422016 qtio422016.Writer)

type LoginPage

type LoginPage struct {
	BasePage
}

func (*LoginPage) PageBody

func (p *LoginPage) PageBody() string

func (*LoginPage) PageTitle

func (p *LoginPage) PageTitle() string

func (*LoginPage) StreamPageBody

func (p *LoginPage) StreamPageBody(qw422016 *qt422016.Writer)

func (*LoginPage) StreamPageTitle

func (p *LoginPage) StreamPageTitle(qw422016 *qt422016.Writer)

func (*LoginPage) WritePageBody

func (p *LoginPage) WritePageBody(qq422016 qtio422016.Writer)

func (*LoginPage) WritePageTitle

func (p *LoginPage) WritePageTitle(qq422016 qtio422016.Writer)

type LoginSuccessPage

type LoginSuccessPage struct {
	BasePage
	Name string
	ID   int64
	Bot  bool
}

func (*LoginSuccessPage) PageBody

func (p *LoginSuccessPage) PageBody() string

func (*LoginSuccessPage) PageTitle

func (p *LoginSuccessPage) PageTitle() string

func (*LoginSuccessPage) StreamPageBody

func (p *LoginSuccessPage) StreamPageBody(qw422016 *qt422016.Writer)

func (*LoginSuccessPage) StreamPageTitle

func (p *LoginSuccessPage) StreamPageTitle(qw422016 *qt422016.Writer)

func (*LoginSuccessPage) WritePageBody

func (p *LoginSuccessPage) WritePageBody(qq422016 qtio422016.Writer)

func (*LoginSuccessPage) WritePageTitle

func (p *LoginSuccessPage) WritePageTitle(qq422016 qtio422016.Writer)

type Page

type Page interface {
	PageBrand() string
	StreamPageBrand(qw422016 *qt422016.Writer)
	WritePageBrand(qq422016 qtio422016.Writer)
	PageTitle() string
	StreamPageTitle(qw422016 *qt422016.Writer)
	WritePageTitle(qq422016 qtio422016.Writer)
	PageBody() string
	StreamPageBody(qw422016 *qt422016.Writer)
	WritePageBody(qq422016 qtio422016.Writer)
	PageMeta() string
	StreamPageMeta(qw422016 *qt422016.Writer)
	WritePageMeta(qq422016 qtio422016.Writer)
	PageScripts() string
	StreamPageScripts(qw422016 *qt422016.Writer)
	WritePageScripts(qq422016 qtio422016.Writer)
	PageLogin() string
	StreamPageLogin(qw422016 *qt422016.Writer)
	WritePageLogin(qq422016 qtio422016.Writer)
}

type ShowVarPage

type ShowVarPage struct {
	Channel    string
	Var        string
	Refresh    int
	ThemesStr  string
	Themes     map[string]bool
	ValueFont  string
	ValueColor string
	LabelFont  string
	LabelColor string
	Label      string
}

func (*ShowVarPage) Render

func (p *ShowVarPage) Render() string

func (*ShowVarPage) StreamRender

func (p *ShowVarPage) StreamRender(qw422016 *qt422016.Writer)

func (*ShowVarPage) WriteRender

func (p *ShowVarPage) WriteRender(qq422016 qtio422016.Writer)

Jump to

Keyboard shortcuts

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