-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Web Monitor: sorts validators set table (#521)
* Removes static web monitor files path for the dev env * Fixes #511 with temp file for monitor cache * Fixes #500 using source_path for web files on dev env * Sets monospace font family for hash codes on the web monitor * Fix merge * Git ignores web-monitor/public/build files * Sorts web monitor validators set (ascending and descending) * Removes unused key can_create_account from interface ValInfo
- Loading branch information
Showing
3 changed files
with
108 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
ol/cli/web-monitor/src/components/validators/ValidatorModal.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<script> | ||
export let validator; | ||
</script> | ||
|
||
{#if validator} | ||
<div id="validator-modal" uk-modal> | ||
<div class="uk-modal-dialog uk-modal-body"> | ||
<button class="uk-modal-close-default" type="button" uk-close></button> | ||
<h2 class="uk-modal-title">Validator Info</h2> | ||
<table class="uk-table"> | ||
<thead> | ||
<tr> | ||
<th></th> | ||
<th></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td class="uk-table-expand">account address</td> | ||
<td class="hash">{validator.account_address}</td> | ||
</tr> | ||
<tr> | ||
<td>fullnode network address</td> | ||
<td class="uk-text-break">{validator.full_node_ip}</td> | ||
</tr> | ||
<tr> | ||
<td>validator network address</td> | ||
<td>{validator.validator_ip}</td> | ||
</tr> | ||
<tr> | ||
<td>epochs validating and mining</td> | ||
<td>{validator.epochs_validating_and_mining}</td> | ||
</tr> | ||
<tr> | ||
<td>can create account</td> | ||
<td>{validator.epochs_since_last_account_creation > 7}</td> <!--TODO move to the serve side?--> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
{/if} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters