frontend

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 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 DeleteFolder added in v0.3.0

func DeleteFolder(folderID string)

func DeleteItems

func DeleteItems(docIds []string)

func DeleteSub

func DeleteSub(subID string)

func DoLogout

func DoLogout()

func DoTimelineReload

func DoTimelineReload()

func GetFoldersList added in v0.3.0

func GetFoldersList()

func GetMe

func GetMe()

func GetSubsList

func GetSubsList()

func GetTimeline

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

func GetToc

func GetToc()

func PostNewFolder added in v0.3.0

func PostNewFolder()

func PostNewSub

func PostNewSub()

func PostOpml

func PostOpml()

func RenderCard

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

func RenderFolders added in v0.3.0

func RenderFolders(folders []*common.Folder) string

func RenderSubs

func RenderSubs(subs []*common.Sub, folders []*common.Folder) 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 StreamRenderFolders added in v0.3.0

func StreamRenderFolders(qw422016 *qt422016.Writer, folders []*common.Folder)

func StreamRenderSubs

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

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 UpdateSub added in v0.3.0

func UpdateSub(subID string)

func WriteRenderCard

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

func WriteRenderFolders added in v0.3.0

func WriteRenderFolders(qq422016 qtio422016.Writer, folders []*common.Folder)

func WriteRenderSubs

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

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