aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/assets/components/Common.jsx
diff options
context:
space:
mode:
authorKurkó Mihály <kurkomisi@users.noreply.github.com>2018-01-15 17:20:00 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-01-15 17:20:00 +0800
commit938cf4528ab5acbb6013be79a0548956713807a8 (patch)
treef7782996f31b39539d148d5daeea9171415db87c /dashboard/assets/components/Common.jsx
parent81ad8f665d3e7598273958d557c531f800eca50f (diff)
downloadgo-tangerine-938cf4528ab5acbb6013be79a0548956713807a8.tar
go-tangerine-938cf4528ab5acbb6013be79a0548956713807a8.tar.gz
go-tangerine-938cf4528ab5acbb6013be79a0548956713807a8.tar.bz2
go-tangerine-938cf4528ab5acbb6013be79a0548956713807a8.tar.lz
go-tangerine-938cf4528ab5acbb6013be79a0548956713807a8.tar.xz
go-tangerine-938cf4528ab5acbb6013be79a0548956713807a8.tar.zst
go-tangerine-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/components/Common.jsx')
-rw-r--r--dashboard/assets/components/Common.jsx28
1 files changed, 0 insertions, 28 deletions
diff --git a/dashboard/assets/components/Common.jsx b/dashboard/assets/components/Common.jsx
index d8723830e..256a3e661 100644
--- a/dashboard/assets/components/Common.jsx
+++ b/dashboard/assets/components/Common.jsx
@@ -62,32 +62,4 @@ export type MenuProp = {|...ProvidedMenuProp, id: string|};
// This way the mistyping is prevented.
export const MENU: Map<string, {...MenuProp}> = new Map(menuSkeletons.map(({id, menu}) => ([id, {id, ...menu}])));
-type ProvidedSampleProp = {|limit: number|};
-const sampleSkeletons: Array<{|id: string, sample: ProvidedSampleProp|}> = [
- {
- id: 'memory',
- sample: {
- limit: 200,
- },
- }, {
- id: 'traffic',
- sample: {
- limit: 200,
- },
- }, {
- id: 'logs',
- sample: {
- limit: 200,
- },
- },
-];
-export type SampleProp = {|...ProvidedSampleProp, id: string|};
-export const SAMPLE: Map<string, {...SampleProp}> = new Map(sampleSkeletons.map(({id, sample}) => ([id, {id, ...sample}])));
-
export const DURATION = 200;
-
-export const LENS: Map<string, string> = new Map([
- 'content',
- ...menuSkeletons.map(({id}) => id),
- ...sampleSkeletons.map(({id}) => id),
-].map(lens => [lens, lens]));