components

package
v0.0.0-...-80b22ab Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: AGPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockCard

func BlockCard(block *dbtypes.StoreBlock) vecty.ComponentOrHTML

BlockCard renders a single block card

func BlockView

func BlockView(block *api.Block) vecty.List

BlockView renders a single block card

func Container

func Container(markup ...vecty.MarkupOrChild) vecty.ComponentOrHTML

Container defines div with a .container class

func DetailsView

func DetailsView(details, tabs vecty.ComponentOrHTML) vecty.ComponentOrHTML

DetailsView renders blockchain details

func EntityBlock

func EntityBlock(ID string, height int64) vecty.ComponentOrHTML

EntityBlock renders a single entity card

func EnvelopeBlock

func EnvelopeBlock(envelope *dbtypes.Envelope) vecty.ComponentOrHTML

EnvelopeBlock renders a single envelope block

func Footer() vecty.ComponentOrHTML

Footer renders the page footer

func JumboStatTitle

func JumboStatTitle(t string) vecty.ComponentOrHTML

JumboStatTitle renders the jumbotron statistic title

func JumboStatValue

func JumboStatValue(v string) vecty.MarkupOrChild

JumboStatValue renders a jumbotron statistic contents

func Link(route, text, class string) *vecty.HTML

Link renders a link which, when clicks, signals a redirect

func LoadingBar

func LoadingBar() vecty.ComponentOrHTML

LoadingBar renders a basic loading bar

func NavLink(route, text string) *vecty.HTML

NavLink generates a Link with nav-link styling

func ProcessBlock

func ProcessBlock(process *dbtypes.Process, ok bool, height int64, info storeutil.Process) vecty.ComponentOrHTML

ProcessBlock renders a single process card

func RenderList

func RenderList(slice []string) []vecty.MarkupOrChild

RenderList renders a set of list elements from a slice of strings

func SectionMain

func SectionMain(markup ...vecty.MarkupOrChild) vecty.ComponentOrHTML

SectionMain defines a normal page with its main tag defined

func TabContents

func TabContents(tab TabAction, contents vecty.ComponentOrHTML) vecty.MarkupOrChild

TabContents renders the tab contents when it's active

TabLink renders a tab's link

func TransactionView

func TransactionView() vecty.List

TransactionView renders a single transaction card with (most of) the tx information

func Unavailable

func Unavailable(text string) vecty.ComponentOrHTML

Unavailable renders an "item unavailable" message bar

func UpdateBlockContents

func UpdateBlockContents(d *BlockContents)

UpdateBlockContents keeps the block contents up to date

func UpdateBlocksDashboard

func UpdateBlocksDashboard(d *BlocksDashboardView)

UpdateBlocksDashboard keeps the blocks dashboard updated

func UpdateEntitiesDashboard

func UpdateEntitiesDashboard(d *EntitiesDashboardView)

UpdateEntitiesDashboard continuously updates the information needed by the Entities dashboard

func UpdateEntityContents

func UpdateEntityContents(d *EntityContentsView)

UpdateEntityContents keeps the dashboard data up to date

func UpdateEnvelopeContents

func UpdateEnvelopeContents(d *EnvelopeContents)

UpdateEnvelopeContents keeps the envelope contents up to date

func UpdateEnvelopesDashboard

func UpdateEnvelopesDashboard(d *EnvelopesDashboardView)

UpdateEnvelopesDashboard continuously updates the information needed by the Envelopes dashboard

func UpdateHomeDashboard

func UpdateHomeDashboard(d *DashboardView)

UpdateHomeDashboard keeps the home dashboard data up to date

func UpdateProcessContents

func UpdateProcessContents(d *ProcessContentsView)

UpdateProcessContents keeps the data for the processes dashboard up-to-date

func UpdateProcessesDashboard

func UpdateProcessesDashboard(d *ProcessesDashboardView)

UpdateProcessesDashboard continuously updates the information needed by the Processes dashboard

func UpdateStatsDashboard

func UpdateStatsDashboard(d *StatsDashboardView)

UpdateStatsDashboard keeps the stats dashboard updated

func UpdateTxContents

func UpdateTxContents(d *TxContents)

UpdateTxContents keeps the transaction contents up to date

func UpdateTxsDashboard

func UpdateTxsDashboard(d *TxsDashboardView)

UpdateTxsDashboard keeps the transactions dashboard updated

func UpdateValidatorsDashboard

func UpdateValidatorsDashboard(d *ValidatorsDashboardView)

UpdateValidatorsDashboard keeps the validators data up to date

func ValidatorCard

func ValidatorCard(validator *dbtypes.Validator) vecty.ComponentOrHTML

ValidatorCard renders a single validator card

func ValidatorDetails

func ValidatorDetails() vecty.ComponentOrHTML

ValidatorDetails renders the details of a validator contents

func ValidatorView

func ValidatorView() vecty.List

ValidatorView renders a single validator

Types

type AverageBlockTimes

type AverageBlockTimes struct {
	vecty.Core
}

AverageBlockTimes is the component to display avg block times

func (*AverageBlockTimes) Render

Render renders the AverageBlockTimes component

type BlockContents

type BlockContents struct {
	vecty.Core
	vecty.Mounter
	Rendered    bool
	Unavailable bool
}

BlockContents renders block contents

func (*BlockContents) BlockDetails

func (c *BlockContents) BlockDetails() vecty.List

BlockDetails displays the details for a single block

func (*BlockContents) Mount

func (c *BlockContents) Mount()

Mount triggers when BlockContents renders

func (*BlockContents) Render

func (c *BlockContents) Render() vecty.ComponentOrHTML

Render renders the BlockContents component

type BlockList

type BlockList struct {
	vecty.Core
}

BlockList is the block list component

func (*BlockList) Render

func (b *BlockList) Render() vecty.ComponentOrHTML

Render renders the block list component

type BlockTab

type BlockTab struct {
	*Tab
}

BlockTab component displays a tab for the block page

type BlockTransactionsListView

type BlockTransactionsListView struct {
	vecty.Core
}

BlockTransactionsListView renders the transaction pagination for a block

func (*BlockTransactionsListView) Render

Render renders the BlockTransactionsListView component

type BlockchainInfo

type BlockchainInfo struct {
	vecty.Core
	// contains filtered or unexported fields
}

BlockchainInfo is the component to display blockchain information

func (*BlockchainInfo) Render

func (b *BlockchainInfo) Render() vecty.ComponentOrHTML

Render renders the BlockchainInfo component

type BlockchainVersion

type BlockchainVersion struct {
	vecty.Core
}

BlockchainVersion is a tiny component showing the blockchain we're connected to and its version

func (*BlockchainVersion) Render

Render renders the BlockchainVersion component

type BlocksDashboardView

type BlocksDashboardView struct {
	vecty.Core
	vecty.Mounter
	Rendered bool
}

BlocksDashboardView renders the dashboard landing page

func (*BlocksDashboardView) Mount

func (dash *BlocksDashboardView) Mount()

Mount is called after the component renders to signal that it can be rerendered safely

func (*BlocksDashboardView) Render

func (dash *BlocksDashboardView) Render() vecty.ComponentOrHTML

Render renders the BlocksDashboardView component

type ConnectedBanner

type ConnectedBanner struct {
	vecty.Core
	// contains filtered or unexported fields
}

ConnectedBanner is the component to display a banner if server is disconnected

func (*ConnectedBanner) Render

Render renders the ConnectedBanner component

type DashboardView

type DashboardView struct {
	vecty.Core
	vecty.Mounter
	Rendered bool
}

DashboardView renders the dashboard landing page

func (*DashboardView) Mount

func (dash *DashboardView) Mount()

Mount is called after the component renders to signal that it can be rerendered safely

func (*DashboardView) Render

func (dash *DashboardView) Render() vecty.ComponentOrHTML

Render renders the DashboardView component

type EntitiesDashboardView

type EntitiesDashboardView struct {
	vecty.Core
	vecty.Mounter
	Rendered bool
}

EntitiesDashboardView renders the entities dashboard page

func (*EntitiesDashboardView) Mount

func (dash *EntitiesDashboardView) Mount()

Mount is called after the component renders to signal that it can be rerendered safely

func (*EntitiesDashboardView) Render

Render renders the EntitiesDashboardView component

type EntityContentsView

type EntityContentsView struct {
	vecty.Core
	vecty.Mounter
	Rendered bool
}

EntityContentsView renders the entities dashboard page

func (*EntityContentsView) EntityDetails

func (dash *EntityContentsView) EntityDetails() vecty.List

EntityDetails renders the details of a single entity

func (*EntityContentsView) Mount

func (dash *EntityContentsView) Mount()

Mount is called after the component renders to signal that it can be rerendered safely

func (*EntityContentsView) Render

func (dash *EntityContentsView) Render() vecty.ComponentOrHTML

Render renders the EntityContentsView component

type EntityListView

type EntityListView struct {
	vecty.Core
}

EntityListView renders the entity list pane

func (*EntityListView) Render

func (b *EntityListView) Render() vecty.ComponentOrHTML

Render renders the EntityListView component

type EntityProcessListView

type EntityProcessListView struct {
	vecty.Core
}

EntityProcessListView renders the process list pane

func (*EntityProcessListView) Render

Render renders the EntityProcessListView component

type EntityTab

type EntityTab struct {
	*Tab
}

EntityTab is the tab component for entity

type EnvelopeContents

type EnvelopeContents struct {
	vecty.Core
	vecty.Mounter
	DecryptionStatus string
	DisplayPackage   bool
	VotePackage      *dvotetypes.VotePackage
	Rendered         bool
	Unavailable      bool
}

EnvelopeContents renders envelope contents

func (*EnvelopeContents) EnvelopeDetails

func (c *EnvelopeContents) EnvelopeDetails() vecty.ComponentOrHTML

EnvelopeDetails renders the details of an envelope contents

func (*EnvelopeContents) EnvelopeView

func (c *EnvelopeContents) EnvelopeView() vecty.List

EnvelopeView renders one envelope

func (*EnvelopeContents) Mount

func (c *EnvelopeContents) Mount()

Mount triggers EnvelopeContents renders

func (*EnvelopeContents) Render

Render renders the EnvelopeContents component

type EnvelopeList

type EnvelopeList struct {
	vecty.Core
}

EnvelopeList renders the envelope list pane

func (*EnvelopeList) Render

func (b *EnvelopeList) Render() vecty.ComponentOrHTML

Render renders the EnvelopeList component

type EnvelopeTab

type EnvelopeTab struct {
	*Tab
}

EnvelopeTab is the current active tab on the envelopes page

type EnvelopesDashboardView

type EnvelopesDashboardView struct {
	vecty.Core
	vecty.Mounter
	Rendered bool
}

EnvelopesDashboardView renders the envelopes dashboard page

func (*EnvelopesDashboardView) Mount

func (dash *EnvelopesDashboardView) Mount()

Mount is called after the component renders to signal that it can be rerendered safely

func (*EnvelopesDashboardView) Render

Render renders the EnvelopesDashboardView component

type Header struct {
	vecty.Core
}

Header renders the header

func (*Header) Render

func (h *Header) Render() vecty.ComponentOrHTML

Render renders the Header component

type Jumbotron

type Jumbotron struct {
	vecty.Core
}

Jumbotron is a component for an info banner of statistics

func (*Jumbotron) Render

func (b *Jumbotron) Render() vecty.ComponentOrHTML

Render renders the jumbotron component

type LatestBlocksWidget

type LatestBlocksWidget struct {
	vecty.Core
}

LatestBlocksWidget is a component for a widget of recent blocks

func (*LatestBlocksWidget) Render

Render renders the LatestBlocksWidget component

type NavBar struct {
	vecty.Core
}

NavBar renders the navigation bar

func (n *NavBar) Render() vecty.ComponentOrHTML

Render renders the NavBar component

type Pagination

type Pagination struct {
	vecty.Core
	CurrentPage     *int
	ListSize        int
	RefreshCh       chan int
	SearchCh        chan string
	RenderFunc      func(int) vecty.ComponentOrHTML
	RenderSearchBar bool
	Searching       *bool
	DisableUpdate   *bool
	PageLeft        func(e *vecty.Event)
	PageRight       func(e *vecty.Event)
	PageStart       func(e *vecty.Event)
	TotalItems      *int
	TotalPages      int
}

Pagination holds pages of information (blocks, processes, etc)

func (*Pagination) Render

func (p *Pagination) Render() vecty.ComponentOrHTML

Render renders the pagination component

type ProcessContentsView

type ProcessContentsView struct {
	vecty.Core
	vecty.Mounter
	Rendered    bool
	Unavailable bool
}

ProcessContentsView renders the processes dashboard page

func (*ProcessContentsView) Mount

func (dash *ProcessContentsView) Mount()

Mount is called after the component renders to signal that it can be rerendered safely

func (*ProcessContentsView) ProcessDetails

func (dash *ProcessContentsView) ProcessDetails() vecty.List

ProcessDetails renders the details of a process

func (*ProcessContentsView) ProcessTabs

func (dash *ProcessContentsView) ProcessTabs() vecty.List

ProcessTabs renders the tabs for a process

func (*ProcessContentsView) Render

func (dash *ProcessContentsView) Render() vecty.ComponentOrHTML

Render renders the ProcessContentsView component

type ProcessListView

type ProcessListView struct {
	vecty.Core
}

ProcessListView renders the process list pane

func (*ProcessListView) Render

Render renders the ProcessListView component

type ProcessTab

type ProcessTab struct {
	*Tab
}

ProcessTab is a single tab of a process page

type ProcessesDashboardView

type ProcessesDashboardView struct {
	vecty.Core
	vecty.Mounter
	Rendered bool
}

ProcessesDashboardView renders the processes dashboard page

func (*ProcessesDashboardView) Mount

func (dash *ProcessesDashboardView) Mount()

Mount is called after the component renders to signal that it can be rerendered safely

func (*ProcessesDashboardView) Render

Render renders the ProcessesDashboardView component

type ProcessesEnvelopeListView

type ProcessesEnvelopeListView struct {
	vecty.Core
}

ProcessesEnvelopeListView renders the envelope list pane

func (*ProcessesEnvelopeListView) Render

Render renders the EnvelopeListView component

type SearchBar struct {
	vecty.Core
}

SearchBar is a component for a search bar

func (*SearchBar) Render

func (s *SearchBar) Render() vecty.ComponentOrHTML

Render renders the SearchBar component

type StatsDashboardView

type StatsDashboardView struct {
	vecty.Core
	vecty.Mounter
	Rendered bool
}

StatsDashboardView renders the dashboard landing page

func (*StatsDashboardView) Mount

func (dash *StatsDashboardView) Mount()

Mount is called after the component renders to signal that it can be rerendered safely

func (*StatsDashboardView) Render

func (dash *StatsDashboardView) Render() vecty.ComponentOrHTML

Render renders the StatsDashboardView component

type StatsView

type StatsView struct {
	vecty.Core
}

StatsView renders the stats pane

func (*StatsView) Render

func (b *StatsView) Render() vecty.ComponentOrHTML

Render renders the StatsView component

type Tab

type Tab struct {
	Alias string
	Text  string
}

Tab is a page tab object

type TabAction

type TabAction interface {
	// contains filtered or unexported methods
}

TabAction is the interface for a tab action

type TransactionTab

type TransactionTab struct {
	*Tab
}

TransactionTab records the current active tab for the transaction page

type TxContents

type TxContents struct {
	vecty.Core
	vecty.Mounter
	Rendered    bool
	Unavailable bool
}

TxContents renders tx contents

func (*TxContents) Mount

func (t *TxContents) Mount()

Mount triggers when TxContents renders

func (*TxContents) Render

func (t *TxContents) Render() vecty.ComponentOrHTML

Render renders the TxContents component

func (*TxContents) TransactionDetails

func (t *TxContents) TransactionDetails() vecty.ComponentOrHTML

TransactionDetails displays the transaction details pane for a single transaction

type TxList

type TxList struct {
	vecty.Core
}

TxList is the tx list component

func (*TxList) Render

func (b *TxList) Render() vecty.ComponentOrHTML

Render renders the tx list component

type TxsDashboardView

type TxsDashboardView struct {
	vecty.Core
	vecty.Mounter
	Rendered bool
}

TxsDashboardView renders the dashboard landing page

func (*TxsDashboardView) Mount

func (dash *TxsDashboardView) Mount()

Mount is called after the component renders to signal that it can be rerendered safely

func (*TxsDashboardView) Render

func (dash *TxsDashboardView) Render() vecty.ComponentOrHTML

Render renders the TxsDashboardView component

type ValidatorContents

type ValidatorContents struct {
	vecty.Core
	vecty.Mounter
	Rendered    bool
	Unavailable bool
}

ValidatorContents renders validator contents

func (*ValidatorContents) Mount

func (contents *ValidatorContents) Mount()

Mount triggers when ValidatorContents renders

func (*ValidatorContents) Render

func (contents *ValidatorContents) Render() vecty.ComponentOrHTML

Render renders the ValidatorContents component

func (*ValidatorContents) UpdateValidatorContents

func (contents *ValidatorContents) UpdateValidatorContents()

UpdateValidatorContents keeps the validator contents page up to date

type ValidatorListView

type ValidatorListView struct {
	vecty.Core
}

ValidatorListView is the validator list component

func (*ValidatorListView) Render

Render renders the validator list component

type ValidatorsDashboardView

type ValidatorsDashboardView struct {
	vecty.Core
	vecty.Mounter
	Rendered bool
}

ValidatorsDashboardView renders the validators list dashboard

func (*ValidatorsDashboardView) Mount

func (dash *ValidatorsDashboardView) Mount()

Mount is called after the component renders to signal that it can be rerendered safely

func (*ValidatorsDashboardView) Render

Render renders the ValidatorsDashboardView component

Jump to

Keyboard shortcuts

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