{\n\trender() {\n\t\treturn (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t);\n\t}\n}\n\nexport default Body;\n",
"// @flow\n\n// Copyright 2018 The go-ethereum Authors\n// This file is part of the go-ethereum library.\n//\n// The go-ethereum library is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Lesser General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// The go-ethereum library is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Lesser General Public License for more details.\n//\n// You should have received a copy of the GNU Lesser General Public License\n// along with the go-ethereum library. If not, see .\n\nimport React, {Component} from 'react';\nimport type {ChildrenArray} from 'react';\n\nimport Grid from '@material-ui/core/Grid';\n\n// styles contains the constant styles of the component.\nconst styles = {\n\tcontainer: {\n\t\tflexWrap: 'nowrap',\n\t\theight: '100%',\n\t\tmaxWidth: '100%',\n\t\tmargin: 0,\n\t},\n\titem: {\n\t\tflex: 1,\n\t\tpadding: 0,\n\t},\n};\n\nexport type Props = {\n\tchildren: ChildrenArray>,\n};\n\n// ChartRow renders a row of equally sized responsive charts.\nclass ChartRow extends Component {\n\trender() {\n\t\treturn (\n\t\t\t\n\t\t\t\t{React.Children.map(this.props.children, child => (\n\t\t\t\t\t\n\t\t\t\t\t\t{child}\n\t\t\t\t\t\n\t\t\t\t))}\n\t\t\t\n\t\t);\n\t}\n}\n\nexport default ChartRow;\n",
"// @flow\n\n// Copyright 2018 The go-ethereum Authors\n// This file is part of the go-ethereum library.\n//\n// The go-ethereum library is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Lesser General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// The go-ethereum library is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Lesser General Public License for more details.\n//\n// You should have received a copy of the GNU Lesser General Public License\n// along with the go-ethereum library. If not, see .\n\nimport React, {Component} from 'react';\n\nimport Typography from '@material-ui/core/Typography';\nimport {styles, simplifyBytes} from '../common';\n\n// multiplier multiplies a number by another.\nexport const multiplier = (by: number = 1) => (x: number) => x * by;\n\n// percentPlotter renders a tooltip, which displays the value of the payload followed by a percent sign.\nexport const percentPlotter = (text: string, mapper: (T => T) = multiplier(1)) => (payload: T) => {\n\tconst p = mapper(payload);\n\tif (typeof p !== 'number') {\n\t\treturn null;\n\t}\n\treturn (\n\t\t\n\t\t\t{text} {p.toFixed(2)} %\n\t\t\n\t);\n};\n\n// bytePlotter renders a tooltip, which displays the payload as a byte value.\nexport const bytePlotter = (text: string, mapper: (T => T) = multiplier(1)) => (payload: T) => {\n\tconst p = mapper(payload);\n\tif (typeof p !== 'number') {\n\t\treturn null;\n\t}\n\treturn (\n\t\t\n\t\t\t{text} {simplifyBytes(p)}\n\t\t\n\t);\n};\n\n// bytePlotter renders a tooltip, which displays the payload as a byte value followed by '/s'.\nexport const bytePerSecPlotter = (text: string, mapper: (T => T) = multiplier(1)) => (payload: T) => {\n\tconst p = mapper(payload);\n\tif (typeof p !== 'number') {\n\t\treturn null;\n\t}\n\treturn (\n\t\t\n\t\t\t{text}\n\t\t\t{simplifyBytes(p)}/s\n\t\t\n\t);\n};\n\nexport type Props = {\n\tactive: boolean,\n\tpayload: Object,\n\ttooltip: (text: string, mapper?: T => T) => (payload: mixed) => null | React$Element,\n};\n\n// CustomTooltip takes a tooltip function, and uses it to plot the active value of the chart.\nclass CustomTooltip extends Component {\n\trender() {\n\t\tconst {active, payload, tooltip} = this.props;\n\t\tif (!active || typeof tooltip !== 'function' || !Array.isArray(payload) || payload.length < 1) {\n\t\t\treturn null;\n\t\t}\n\t\treturn tooltip(payload[0].value);\n\t}\n}\n\nexport default CustomTooltip;\n",
@@ -40026,7 +40026,7 @@ func bundleJsMap() (*asset, error) {
}
info := bindataFileInfo{name: "bundle.js.map", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}
- a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x7d, 0xd3, 0x63, 0x8f, 0xec, 0x18, 0xba, 0xd4, 0x49, 0x87, 0x59, 0x9f, 0x42, 0x3f, 0xae, 0x26, 0x76, 0x20, 0x28, 0x86, 0x41, 0x7e, 0x54, 0xe0, 0xd1, 0x5a, 0x70, 0xcd, 0x58, 0x46, 0xbc, 0x38}}
+ a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xe5, 0x53, 0x3e, 0xa4, 0xe, 0x56, 0xc6, 0x3e, 0x72, 0x3a, 0xad, 0xd7, 0x1a, 0x4c, 0x1a, 0x42, 0x22, 0xf1, 0x7f, 0xf6, 0x66, 0x9, 0x90, 0xc2, 0x5, 0xc8, 0xcc, 0x82, 0x4f, 0x65, 0x83, 0xaf}}
return a, nil
}
diff --git a/dashboard/assets/common.jsx b/dashboard/assets/common.jsx
index 015d0233ad..f2750ee33b 100644
--- a/dashboard/assets/common.jsx
+++ b/dashboard/assets/common.jsx
@@ -88,9 +88,5 @@ export const simplifyBytes = (x: number) => {
};
// hues contains predefined colors for gradient stop colors.
-// export const hues = ['#00FF00', '#FFFF00', '#FF0000'];
-// export const hueScale = [0, 1 << 16, 1 << 20];
-
-// Rainbow colors.
-export const hues = ['#8B00FF', '#0000FF', '#00FF00', '#FFFF00', '#FF7F00', '#FF0000'];
-export const hueScale = [0, 1 << 7, 1 << 12, 1 << 14, 1 << 17, 1 << 20];
+export const hues = ['#00FF00', '#FFFF00', '#FF7F00', '#FF0000'];
+export const hueScale = [0, 2048, 102400, 2097152];