Documentation ¶
Index ¶
- func BlockCard(block *dbtypes.StoreBlock) vecty.ComponentOrHTML
- func BlockView(block *api.Block) vecty.List
- func Container(markup ...vecty.MarkupOrChild) vecty.ComponentOrHTML
- func DetailsView(details, tabs vecty.ComponentOrHTML) vecty.ComponentOrHTML
- func EntityBlock(ID string, height int64) vecty.ComponentOrHTML
- func EnvelopeBlock(envelope *dbtypes.Envelope) vecty.ComponentOrHTML
- func Footer() vecty.ComponentOrHTML
- func JumboStatTitle(t string) vecty.ComponentOrHTML
- func JumboStatValue(v string) vecty.MarkupOrChild
- func Link(route, text, class string) *vecty.HTML
- func LoadingBar() vecty.ComponentOrHTML
- func NavLink(route, text string) *vecty.HTML
- func ProcessBlock(process *dbtypes.Process, ok bool, height int64, info storeutil.Process) vecty.ComponentOrHTML
- func RenderList(slice []string) []vecty.MarkupOrChild
- func SectionMain(markup ...vecty.MarkupOrChild) vecty.ComponentOrHTML
- func TabContents(tab TabAction, contents vecty.ComponentOrHTML) vecty.MarkupOrChild
- func TabLink(c vecty.Component, tab TabAction) vecty.ComponentOrHTML
- func TransactionView() vecty.List
- func Unavailable(text string) vecty.ComponentOrHTML
- func UpdateBlockContents(d *BlockContents)
- func UpdateBlocksDashboard(d *BlocksDashboardView)
- func UpdateEntitiesDashboard(d *EntitiesDashboardView)
- func UpdateEntityContents(d *EntityContentsView)
- func UpdateEnvelopeContents(d *EnvelopeContents)
- func UpdateEnvelopesDashboard(d *EnvelopesDashboardView)
- func UpdateHomeDashboard(d *DashboardView)
- func UpdateProcessContents(d *ProcessContentsView)
- func UpdateProcessesDashboard(d *ProcessesDashboardView)
- func UpdateStatsDashboard(d *StatsDashboardView)
- func UpdateTxContents(d *TxContents)
- func UpdateTxsDashboard(d *TxsDashboardView)
- func UpdateValidatorsDashboard(d *ValidatorsDashboardView)
- func ValidatorCard(validator *dbtypes.Validator) vecty.ComponentOrHTML
- func ValidatorDetails() vecty.ComponentOrHTML
- func ValidatorView() vecty.List
- type AverageBlockTimes
- type BlockContents
- type BlockList
- type BlockTab
- type BlockTransactionsListView
- type BlockchainInfo
- type BlockchainVersion
- type BlocksDashboardView
- type ConnectedBanner
- type DashboardView
- type EntitiesDashboardView
- type EntityContentsView
- type EntityListView
- type EntityProcessListView
- type EntityTab
- type EnvelopeContents
- type EnvelopeList
- type EnvelopeTab
- type EnvelopesDashboardView
- type Header
- type Jumbotron
- type LatestBlocksWidget
- type NavBar
- type Pagination
- type ProcessContentsView
- type ProcessListView
- type ProcessTab
- type ProcessesDashboardView
- type ProcessesEnvelopeListView
- type SearchBar
- type StatsDashboardView
- type StatsView
- type Tab
- type TabAction
- type TransactionTab
- type TxContents
- type TxList
- type TxsDashboardView
- type ValidatorContents
- type ValidatorListView
- type ValidatorsDashboardView
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 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 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 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
func TabLink ¶
func TabLink(c vecty.Component, tab TabAction) vecty.ComponentOrHTML
TabLink renders a tab's link
func TransactionView ¶
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
Types ¶
type AverageBlockTimes ¶
AverageBlockTimes is the component to display avg block times
func (*AverageBlockTimes) Render ¶
func (a *AverageBlockTimes) Render() vecty.ComponentOrHTML
Render renders the AverageBlockTimes component
type BlockContents ¶
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 ¶
BlockList is the block list component
func (*BlockList) Render ¶
func (b *BlockList) Render() vecty.ComponentOrHTML
Render renders the block list component
type BlockTransactionsListView ¶
BlockTransactionsListView renders the transaction pagination for a block
func (*BlockTransactionsListView) Render ¶
func (b *BlockTransactionsListView) Render() vecty.ComponentOrHTML
Render renders the BlockTransactionsListView component
type BlockchainInfo ¶
BlockchainInfo is the component to display blockchain information
func (*BlockchainInfo) Render ¶
func (b *BlockchainInfo) Render() vecty.ComponentOrHTML
Render renders the BlockchainInfo component
type BlockchainVersion ¶
BlockchainVersion is a tiny component showing the blockchain we're connected to and its version
func (*BlockchainVersion) Render ¶
func (b *BlockchainVersion) Render() vecty.ComponentOrHTML
Render renders the BlockchainVersion component
type BlocksDashboardView ¶
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 ¶
ConnectedBanner is the component to display a banner if server is disconnected
func (*ConnectedBanner) Render ¶
func (b *ConnectedBanner) Render() vecty.ComponentOrHTML
Render renders the ConnectedBanner component
type DashboardView ¶
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 ¶
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 ¶
func (dash *EntitiesDashboardView) Render() vecty.ComponentOrHTML
Render renders the EntitiesDashboardView component
type EntityContentsView ¶
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 ¶
EntityListView renders the entity list pane
func (*EntityListView) Render ¶
func (b *EntityListView) Render() vecty.ComponentOrHTML
Render renders the EntityListView component
type EntityProcessListView ¶
EntityProcessListView renders the process list pane
func (*EntityProcessListView) Render ¶
func (b *EntityProcessListView) Render() vecty.ComponentOrHTML
Render renders the EntityProcessListView component
type EnvelopeContents ¶
type EnvelopeContents struct { vecty.Core vecty.Mounter DecryptionStatus string DisplayPackage bool VotePackage *dvotetypes.VotePackage Rendered 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 ¶
func (c *EnvelopeContents) Render() vecty.ComponentOrHTML
Render renders the EnvelopeContents component
type EnvelopeList ¶
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 ¶
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 ¶
func (dash *EnvelopesDashboardView) Render() vecty.ComponentOrHTML
Render renders the EnvelopesDashboardView component
type Header ¶
Header renders the header
func (*Header) Render ¶
func (h *Header) Render() vecty.ComponentOrHTML
Render renders the Header component
type Jumbotron ¶
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 ¶
LatestBlocksWidget is a component for a widget of recent blocks
func (*LatestBlocksWidget) Render ¶
func (b *LatestBlocksWidget) Render() vecty.ComponentOrHTML
Render renders the LatestBlocksWidget component
type NavBar ¶
type NavBar struct {
}NavBar renders the navigation bar
func (*NavBar) Render ¶
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 ¶
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 ¶
ProcessListView renders the process list pane
func (*ProcessListView) Render ¶
func (b *ProcessListView) Render() vecty.ComponentOrHTML
Render renders the ProcessListView component
type ProcessesDashboardView ¶
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 ¶
func (dash *ProcessesDashboardView) Render() vecty.ComponentOrHTML
Render renders the ProcessesDashboardView component
type ProcessesEnvelopeListView ¶
ProcessesEnvelopeListView renders the envelope list pane
func (*ProcessesEnvelopeListView) Render ¶
func (b *ProcessesEnvelopeListView) Render() vecty.ComponentOrHTML
Render renders the EnvelopeListView component
type SearchBar ¶
SearchBar is a component for a search bar
func (*SearchBar) Render ¶
func (s *SearchBar) Render() vecty.ComponentOrHTML
Render renders the SearchBar component
type StatsDashboardView ¶
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 ¶
StatsView renders the stats pane
func (*StatsView) Render ¶
func (b *StatsView) Render() vecty.ComponentOrHTML
Render renders the StatsView component
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 ¶
TxContents renders tx contents
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 ¶
TxList is the tx list component
func (*TxList) Render ¶
func (b *TxList) Render() vecty.ComponentOrHTML
Render renders the tx list component
type TxsDashboardView ¶
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 ¶
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 ¶
ValidatorListView is the validator list component
func (*ValidatorListView) Render ¶
func (b *ValidatorListView) Render() vecty.ComponentOrHTML
Render renders the validator list component
type ValidatorsDashboardView ¶
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 ¶
func (dash *ValidatorsDashboardView) Render() vecty.ComponentOrHTML
Render renders the ValidatorsDashboardView component
Source Files ¶
- average_block_times.go
- block_card.go
- block_contents.go
- block_list.go
- block_transactions_list.go
- blockchain_info.go
- blockchain_version.go
- blocks_dashboard.go
- component_util.go
- connected_banner.go
- container.go
- details_view.go
- entities_dashboard.go
- entities_process_list.go
- entity_contents.go
- entity_list.go
- envelope_contents.go
- envelope_list.go
- envelopes_dashboard.go
- footer.go
- header.go
- home_dashboard.go
- home_stats.go
- jumbotron.go
- latest_blocks_widget.go
- loading_bar.go
- navbar.go
- pagination.go
- process_contents.go
- process_list.go
- processes_dashboard.go
- processes_envelope_list.go
- search_bar.go
- section_main.go
- stats_dashboard.go
- tabs.go
- tx_contents.go
- tx_list.go
- txs_dashboard.go
- unavailable.go
- validator_card.go
- validator_contents.go
- validator_list.go
- validators_dashboard.go