Skip to content

Commit

Permalink
Remove London Dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedmansour committed Aug 14, 2021
1 parent cc689d3 commit 4f0614f
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 713 deletions.
20 changes: 1 addition & 19 deletions frontend/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ import { FilterGroup, generateQueryStringFromFilterGroups } from "./data/FilterU

export const colors = scaleOrdinal(schemeCategory10).range();

export const normalizeClientNames: { [key: string]: string } = {
'turbogeth': 'erigon',
'turbo-geth': 'erigon',
}

export const knownNodesFilter: FilterGroup[] = [
[{ name: 'name', value: 'geth' }],
[{ name: 'name', value: 'nethermind' }],
Expand All @@ -20,21 +15,8 @@ export const knownNodesFilter: FilterGroup[] = [
[{ name: 'name', value: 'ethereum-js' }]
]

export const londonFilter: FilterGroup[] = [
[{ name: 'name', value: 'geth' }, { name: 'version_major', value: '1', operator: 'gte' }, { name: 'version_minor', value: '10', operator: 'gte' }, { name: 'version_patch', value: '6', operator: 'gte' }],
[{ name: 'name', value: 'nethermind' }, { name: 'version_major', value: '1', operator: 'gte' }, { name: 'version_minor', value: '10', operator: 'gte' }, { name: 'version_patch', value: '79', operator: 'gte' }],
[{ name: 'name', value: 'turbogeth' }, { name: 'version_major', value: '2021', operator: 'gte' }, { name: 'version_minor', value: '7', operator: 'gte' }, { name: 'version_patch', value: '4', operator: 'gte' }],
[{ name: 'name', value: 'turbo-geth' }, { name: 'version_major', value: '2021', operator: 'gte' }, { name: 'version_minor', value: '7', operator: 'gte' }, { name: 'version_patch', value: '4', operator: 'gte' }],
[{ name: 'name', value: 'erigon' }, { name: 'version_major', value: '2021', operator: 'gte' }, { name: 'version_minor', value: '7', operator: 'gte' }, { name: 'version_patch', value: '4', operator: 'gte' }],
[{ name: 'name', value: 'besu' }, { name: 'version_major', value: '21', operator: 'gte' }, { name: 'version_minor', value: '7', operator: 'gte' }, { name: 'version_patch', value: '1', operator: 'gte' }],
[{ name: 'name', value: 'openethereum' }, { name: 'version_major', value: '3', operator: 'gte' }, { name: 'version_minor', value: '3', operator: 'gte' }, { name: 'version_patch', value: '0', operator: 'gte' }],
[{ name: 'name', value: 'ethereum-js' }, { name: 'version_major', value: '5', operator: 'gte' }, { name: 'version_minor', value: '5', operator: 'gte' }, { name: 'version_patch', value: '0', operator: 'gte' }],
]

export const londonFilterString = generateQueryStringFromFilterGroups(londonFilter)
export const knownNodesFilterString = generateQueryStringFromFilterGroups(knownNodesFilter)


export const LayoutEightPadding = [4, 4, 4, 8]
export const LayoutTwoColumn = ["repeat(1, 1fr)", "repeat(1, 1fr)", "repeat(1, 1fr)", "repeat(2, 1fr)"]
export const LayoutTwoColSpan = [1, 1, 1, 2]
export const LayoutTwoColSpan = [1, 1, 1, 2]
59 changes: 0 additions & 59 deletions frontend/src/data/DataContext.tsx

This file was deleted.

9 changes: 2 additions & 7 deletions frontend/src/organisms/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Alert, AlertIcon, Button, Flex, Grid, GridItem, HStack, Link, Spacer, Text} from "@chakra-ui/react";
import { Alert, AlertIcon, Button, Flex, Grid, GridItem, HStack, Spacer, Text} from "@chakra-ui/react";
import { useState } from "react";
import { VscClose } from "react-icons/vsc";
import { Link as ReactLink } from "react-router-dom"
import { Logo } from "../atoms/Logo";
import { LayoutEightPadding } from "../config";
import { ColorModeSwitcher } from "./ColorModeSwitcher";
Expand Down Expand Up @@ -35,15 +34,11 @@ export function Header() {
<Logo h="32px" pointerEvents="none" />
<Text fontWeight="bold" fontSize="larger" whiteSpace="nowrap">Ethereum Nodes</Text>
</HStack>
<HStack pl={10} gridGap={4}>
<Link as={ReactLink} to="/">Home</Link>
<Link as={ReactLink} to="/london">London</Link>
</HStack>
</Flex>
<ColorModeSwitcher justifySelf="flex-end" />
<GridItem colSpan={2} >
<Note />
</GridItem>
</Grid>
)
}
}
225 changes: 0 additions & 225 deletions frontend/src/pages/London.tsx

This file was deleted.

Loading

0 comments on commit 4f0614f

Please sign in to comment.