github.com/SmartMeshFoundation/Spectrum@v0.0.0-20220621030607-452a266fee1e/dashboard/assets/types/content.jsx (about) 1 // @flow 2 3 // Copyright 2017 The Spectrum Authors 4 // This file is part of the Spectrum library. 5 // 6 // The Spectrum library is free software: you can redistribute it and/or modify 7 // it under the terms of the GNU Lesser General Public License as published by 8 // the Free Software Foundation, either version 3 of the License, or 9 // (at your option) any later version. 10 // 11 // The Spectrum library is distributed in the hope that it will be useful, 12 // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 // GNU Lesser General Public License for more details. 15 // 16 // You should have received a copy of the GNU Lesser General Public License 17 // along with the Spectrum library. If not, see <http://www.gnu.org/licenses/>. 18 19 import type {ChartEntry} from './message'; 20 21 export type Content = { 22 home: Home, 23 chain: Chain, 24 txpool: TxPool, 25 network: Network, 26 system: System, 27 logs: Logs, 28 }; 29 30 export type Home = { 31 memory: Array<ChartEntry>, 32 traffic: Array<ChartEntry>, 33 }; 34 35 export type Chain = { 36 /* TODO (kurkomisi) */ 37 }; 38 39 export type TxPool = { 40 /* TODO (kurkomisi) */ 41 }; 42 43 export type Network = { 44 /* TODO (kurkomisi) */ 45 }; 46 47 export type System = { 48 /* TODO (kurkomisi) */ 49 }; 50 51 export type Logs = { 52 log: Array<string>, 53 };