diff options
author | Kurkó Mihály <kurkomisi@users.noreply.github.com> | 2018-01-15 17:20:00 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-01-15 17:20:00 +0800 |
commit | 938cf4528ab5acbb6013be79a0548956713807a8 (patch) | |
tree | f7782996f31b39539d148d5daeea9171415db87c /dashboard/assets/types | |
parent | 81ad8f665d3e7598273958d557c531f800eca50f (diff) | |
download | dexon-938cf4528ab5acbb6013be79a0548956713807a8.tar dexon-938cf4528ab5acbb6013be79a0548956713807a8.tar.gz dexon-938cf4528ab5acbb6013be79a0548956713807a8.tar.bz2 dexon-938cf4528ab5acbb6013be79a0548956713807a8.tar.lz dexon-938cf4528ab5acbb6013be79a0548956713807a8.tar.xz dexon-938cf4528ab5acbb6013be79a0548956713807a8.tar.zst dexon-938cf4528ab5acbb6013be79a0548956713807a8.zip |
dashboard: deep state update, version in footer (#15837)
* dashboard: footer, deep state update
* dashboard: resolve asset path
* dashboard: remove bundle.js
* dashboard: prevent state update on every reconnection
* dashboard: fix linter issue
* dashboard, cmd: minor UI fix, include commit hash
* remove geth binary
* dashboard: gitCommit renamed to commit
* dashboard: move the geth version to the right, make commit optional
* dashboard: commit limited to 7 characters
* dashboard: limit commit length on client side
* dashboard: run go generate
Diffstat (limited to 'dashboard/assets/types')
-rw-r--r-- | dashboard/assets/types/content.jsx | 41 | ||||
-rw-r--r-- | dashboard/assets/types/message.jsx | 61 |
2 files changed, 26 insertions, 76 deletions
diff --git a/dashboard/assets/types/content.jsx b/dashboard/assets/types/content.jsx index f8a2b1e50..5e59b002c 100644 --- a/dashboard/assets/types/content.jsx +++ b/dashboard/assets/types/content.jsx @@ -16,38 +16,49 @@ // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. -import type {ChartEntry} from './message'; - export type Content = { - home: Home, - chain: Chain, - txpool: TxPool, - network: Network, - system: System, - logs: Logs, + general: General, + home: Home, + chain: Chain, + txpool: TxPool, + network: Network, + system: System, + logs: Logs, +}; + +export type General = { + version: ?string, + commit: ?string, }; export type Home = { - memory: Array<ChartEntry>, - traffic: Array<ChartEntry>, + memory: ChartEntries, + traffic: ChartEntries, +}; + +export type ChartEntries = Array<ChartEntry>; + +export type ChartEntry = { + time: Date, + value: number, }; export type Chain = { - /* TODO (kurkomisi) */ + /* TODO (kurkomisi) */ }; export type TxPool = { - /* TODO (kurkomisi) */ + /* TODO (kurkomisi) */ }; export type Network = { - /* TODO (kurkomisi) */ + /* TODO (kurkomisi) */ }; export type System = { - /* TODO (kurkomisi) */ + /* TODO (kurkomisi) */ }; export type Logs = { - log: Array<string>, + log: Array<string>, }; diff --git a/dashboard/assets/types/message.jsx b/dashboard/assets/types/message.jsx deleted file mode 100644 index a806196ca..000000000 --- a/dashboard/assets/types/message.jsx +++ /dev/null @@ -1,61 +0,0 @@ -// @flow - -// Copyright 2017 The go-ethereum Authors -// This file is part of the go-ethereum library. -// -// The go-ethereum library is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// The go-ethereum library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. - -export type Message = { - home?: HomeMessage, - chain?: ChainMessage, - txpool?: TxPoolMessage, - network?: NetworkMessage, - system?: SystemMessage, - logs?: LogsMessage, -}; - -export type HomeMessage = { - memory?: Chart, - traffic?: Chart, -}; - -export type Chart = { - history?: Array<ChartEntry>, - new?: ChartEntry, -}; - -export type ChartEntry = { - time: Date, - value: number, -}; - -export type ChainMessage = { - /* TODO (kurkomisi) */ -}; - -export type TxPoolMessage = { - /* TODO (kurkomisi) */ -}; - -export type NetworkMessage = { - /* TODO (kurkomisi) */ -}; - -export type SystemMessage = { - /* TODO (kurkomisi) */ -}; - -export type LogsMessage = { - log: string, -}; |