diff --git a/.env.development b/.env.development index 7d9285bc..13223e44 100644 --- a/.env.development +++ b/.env.development @@ -1 +1 @@ -REACT_APP_BASE_URL='http://testnet.solana.com' +REACT_APP_BASE_URL='edge.testnet.solana.com' diff --git a/.eslintrc.js b/.eslintrc.js index 6ac3c066..4bbbf588 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -8,8 +8,9 @@ module.exports = { es6: true, node: true, }, - plugins: ['react'], + plugins: ['react', 'flowtype'], extends: [ + 'plugin:flowtype/recommended', 'eslint:recommended', 'plugin:react/recommended', 'plugin:import/errors', diff --git a/config-overrides.js b/config-overrides.js index 5b3719b9..0048c848 100644 --- a/config-overrides.js +++ b/config-overrides.js @@ -3,5 +3,6 @@ const {override, addBabelPlugin} = require('customize-cra'); module.exports = override( // addBabelPlugin('lodash'), + addBabelPlugin('date-fns'), addBabelPlugin('react-hot-loader/babel'), ); diff --git a/package.json b/package.json index fb75398e..08e20779 100644 --- a/package.json +++ b/package.json @@ -12,12 +12,14 @@ "url": "http://github.com/solana-labs/blockexplorer/issues" }, "dependencies": { + "@nivo/line": "^0.59.1", "@solana/web3.js": "^0.16.10", "babel-plugin-transform-runtime": "^6.23.0", "base-58": "^0.0.1", "classnames": "^2.2.6", "copy-to-clipboard": "^3.2.0", "cors": "^2.8.5", + "date-fns": "^1.30.1", "express": "^4.17.1", "express-ws": "^4.0.0", "geoip-lite": "^1.3.7", @@ -36,8 +38,6 @@ "yaml": "^1.6.0" }, "devDependencies": { - "@babel/plugin-proposal-class-properties": "^7.5.0", - "@babel/plugin-proposal-decorators": "^7.4.4", "@babel/register": "^7.4.4", "@commitlint/config-conventional": "^8.0.0", "@commitlint/travis-cli": "^8.0.0", @@ -46,6 +46,7 @@ "axios": "^0.19.0", "babel-cli": "^6.26.0", "babel-eslint": "^10.0.2", + "babel-plugin-date-fns": "^0.2.1", "babel-plugin-lodash": "^3.3.4", "babel-preset-env": "^1.7.0", "chart.js": "^2.8.0", diff --git a/src/AppV2.js b/src/AppV2.js index 290e5132..6c00bb63 100644 --- a/src/AppV2.js +++ b/src/AppV2.js @@ -5,19 +5,23 @@ import {hot} from 'react-hot-loader/root'; import {Route, Switch} from 'react-router-dom'; import Header from 'v2/components/Header'; import NavBar from 'v2/components/NavBar'; +import Footer from 'v2/components/Footer'; import theme from 'v2/theme'; +import socket from 'v2/stores/socket'; + +socket.init(); const Dashboard = lazy(() => import('v2/components/Dashboard')); const useStyles = makeStyles(theme => ({ root: { display: 'flex', + overflow: 'hidden', }, content: { flexGrow: 1, marginLeft: 50, - padding: theme.spacing(3), - paddingTop: 50, + padding: '50px 24px 0 24px', }, toolbar: { display: 'flex', @@ -40,9 +44,10 @@ const App = () => {
Loading...
}> - + +