frontend

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEventListeners

func AddEventListeners()

func ClearItemsFromTimeline

func ClearItemsFromTimeline(items []string)

func DeleteDisplayedItems

func DeleteDisplayedItems()

func DeleteItems

func DeleteItems(docIds []string)

func DeleteSub

func DeleteSub(subID string)

func DoLogout

func DoLogout()

func DoTimelineReload

func DoTimelineReload()

func GetMe

func GetMe()

func GetSubsList

func GetSubsList()

func GetTimeline

func GetTimeline(skey string, startKey *common.More, sid string)

func GetToc

func GetToc()

func PostNewSub

func PostNewSub()

func PostOpml

func PostOpml()

func RenderCard

func RenderCard(doc *common.Doc, isIndex, isPushed bool) string

func RenderSubs

func RenderSubs(subs []*common.Sub) string

func RenderTocCollapsible

func RenderTocCollapsible(row *common.TocRow) string

func RenderTocRow

func RenderTocRow(row *common.TocRow) string

func RenderTocSubRow

func RenderTocSubRow(row *common.TocSubRow) string

func ShowPushedDocs

func ShowPushedDocs()

func StartWebsocket

func StartWebsocket(pushedCh chan *common.Doc)

func StreamRenderCard

func StreamRenderCard(qw422016 *qt422016.Writer, doc *common.Doc, isIndex, isPushed bool)

func StreamRenderSubs

func StreamRenderSubs(qw422016 *qt422016.Writer, subs []*common.Sub)

func StreamRenderTocCollapsible

func StreamRenderTocCollapsible(qw422016 *qt422016.Writer, row *common.TocRow)

func StreamRenderTocRow

func StreamRenderTocRow(qw422016 *qt422016.Writer, row *common.TocRow)

func StreamRenderTocSubRow

func StreamRenderTocSubRow(qw422016 *qt422016.Writer, row *common.TocSubRow)

func WriteRenderCard

func WriteRenderCard(qq422016 qtio422016.Writer, doc *common.Doc, isIndex, isPushed bool)

func WriteRenderSubs

func WriteRenderSubs(qq422016 qtio422016.Writer, subs []*common.Sub)

func WriteRenderTocCollapsible

func WriteRenderTocCollapsible(qq422016 qtio422016.Writer, row *common.TocRow)

func WriteRenderTocRow

func WriteRenderTocRow(qq422016 qtio422016.Writer, row *common.TocRow)

func WriteRenderTocSubRow

func WriteRenderTocSubRow(qq422016 qtio422016.Writer, row *common.TocSubRow)

Types

type Timeline

type Timeline struct {
	Docs      []*common.Doc `json:"docs"`
	TotalDocs int           `json:"total_docs"`
	Append    bool          `json:"append"`
	More      *common.More  `json:"more"`
	Success   bool          `json:"success"`
	Skey      string        `json:"skey"`
	SID       string        `json:"sid"`
}

func (*Timeline) Render

func (tl *Timeline) Render()

func (*Timeline) ScrollToTop

func (tl *Timeline) ScrollToTop()

type Toc

type Toc struct {
	*common.Toc
}

func (*Toc) Render

func (t *Toc) Render()

type TocCounter

type TocCounter struct {
	SID     string
	Skey    string
	Avatar  string
	Count   int
	Name    string
	SubName string
	Kind    string
}

Jump to

Keyboard shortcuts

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