Documentation
¶
Overview ¶
Package component contains Vecty HTML components used by Go Package Store.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdatesContent ¶
func UpdatesContent(active, history []*model.RepoPresentation, checkingUpdates bool) []vecty.MarkupOrChild
UpdatesContent returns the entire content of updates tab.
Types ¶
type Change ¶
Change is a component for a single commit message.
func (*Change) Render ¶
func (c *Change) Render() vecty.ComponentOrHTML
Render renders the component.
type Comments ¶
Comments is a component for displaying a change discussion.
TODO: Consider inlining this into Change component, we'll see.
func (*Comments) Render ¶
func (c *Comments) Render() vecty.ComponentOrHTML
Render renders the component.
type CommitID ¶
CommitID is a component that displays a short commit ID, with the full one available in tooltip.
func (*CommitID) Render ¶
func (c *CommitID) Render() vecty.ComponentOrHTML
Render renders the component.
type PresentationChanges ¶
type PresentationChanges struct { vecty.Core //Changes []*Change //LocalRevision string // Only needed if len(Changes) == 0. //RemoteRevision string // Only needed if len(Changes) == 0. *model.RepoPresentation `vecty:"prop"` // Only uses Changes, and if len(Changes) == 0, then LocalRevision and RemoteRevision. }
PresentationChanges is a component containing changes within an update.
func (*PresentationChanges) Render ¶
func (p *PresentationChanges) Render() vecty.ComponentOrHTML
Render renders the component.
type RepoPresentation ¶
type RepoPresentation struct { vecty.Core *model.RepoPresentation `vecty:"prop"` }
RepoPresentation is a component for presenting a repository update.
TODO: Dedup with workspace.RepoPresentation. Maybe.
func (*RepoPresentation) Render ¶
func (p *RepoPresentation) Render() vecty.ComponentOrHTML
Render renders the component.