1
0
mirror of https://github.com/oceanprotocol/status synced 2024-11-22 01:36:59 +01:00

manual bumping

This commit is contained in:
Matthias Kretschmann 2020-05-18 09:47:53 +02:00
parent b396ddc47a
commit ecdd8a96a3
Signed by: m
GPG Key ID: 606EEEF3C479A91F
4 changed files with 5052 additions and 4801 deletions

9757
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -10,7 +10,7 @@
"analyze": "ANALYZE=true next build", "analyze": "ANALYZE=true next build",
"test": "npm run lint && NODE_ENV=test jest --silent", "test": "npm run lint && NODE_ENV=test jest --silent",
"test:watch": "npm run lint && NODE_ENV=test jest --watch", "test:watch": "npm run lint && NODE_ENV=test jest --watch",
"lint": "eslint --ignore-path .gitignore --ext .js .", "lint": "eslint --ignore-path .gitignore --ext .js --ext .jsx .",
"format": "prettier --ignore-path .gitignore **/**/*.{css,yml,js,jsx,ts,tsx,json} --write" "format": "prettier --ignore-path .gitignore **/**/*.{css,yml,js,jsx,ts,tsx,json} --write"
}, },
"dependencies": { "dependencies": {
@ -19,32 +19,32 @@
"@oceanprotocol/typographies": "^0.1.0", "@oceanprotocol/typographies": "^0.1.0",
"axios": "^0.19.2", "axios": "^0.19.2",
"ethereumjs-units": "^0.2.0", "ethereumjs-units": "^0.2.0",
"next": "^9.2.1", "next": "^9.4.1",
"next-seo": "^4.1.0", "next-seo": "^4.5.0",
"next-svgr": "^0.0.2", "next-svgr": "^0.0.2",
"react": "^16.12.0", "react": "^16.13.1",
"react-dom": "^16.12.0" "react-dom": "^16.13.1"
}, },
"devDependencies": { "devDependencies": {
"@next/bundle-analyzer": "^9.2.1", "@next/bundle-analyzer": "^9.4.1",
"@testing-library/jest-dom": "^5.1.1", "@testing-library/jest-dom": "^5.7.0",
"@testing-library/react": "^9.4.0", "@testing-library/react": "^10.0.4",
"@types/bn.js": "^4.11.6", "@types/bn.js": "^4.11.6",
"@types/jest": "^25.1.2", "@types/jest": "^25.1.2",
"@types/next-seo": "^1.10.0", "@types/next-seo": "^1.10.0",
"@types/node": "^13.7.0", "@types/node": "^14.0.1",
"@types/react": "^16.9.19", "@types/react": "^16.9.35",
"@typescript-eslint/eslint-plugin": "^2.19.2", "@typescript-eslint/eslint-plugin": "^2.33.0",
"@typescript-eslint/parser": "^2.19.2", "@typescript-eslint/parser": "^2.33.0",
"eslint": "^6.8.0", "eslint": "^7.0.0",
"eslint-config-oceanprotocol": "^1.5.0", "eslint-config-oceanprotocol": "^1.5.0",
"eslint-config-prettier": "^6.10.0", "eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.2", "eslint-plugin-prettier": "^3.1.3",
"jest": "^25.1.0", "jest": "^25.1.0",
"prettier": "^1.19.1", "prettier": "^2.0.5",
"ts-jest": "^25.1.0", "ts-jest": "^25.1.0",
"typescript": "^3.7.5", "typescript": "^3.9.2",
"webpack": "^4.41.5" "webpack": "^4.43.0"
}, },
"repository": { "repository": {
"type": "git", "type": "git",

View File

@ -7,10 +7,10 @@ export default function Info({
clientVersion, clientVersion,
peers peers
}: { }: {
gasPrice: string gasPrice: number | null
gasLimit: string gasLimit: number | null
clientVersion: string clientVersion: string
peers: number peers: number | null
}) { }) {
return ( return (
<div className={styles.moreInfo}> <div className={styles.moreInfo}>

View File

@ -9,12 +9,12 @@ import { getClientVersion, getGasPrize, getPeers } from './utils'
export default function Status({ network }: { network: NetworkProps }) { export default function Status({ network }: { network: NetworkProps }) {
const { rpcUrl, explorerUrl } = network const { rpcUrl, explorerUrl } = network
const [status, setStatus] = useState('') const [status, setStatus] = useState('')
const [block, setBlock] = useState(0) const [block, setBlock] = useState<number | null>(0)
const [latency, setLatency] = useState(0) const [latency, setLatency] = useState<number | null>(0)
const [gasLimit, setGasLimit] = useState() const [gasLimit, setGasLimit] = useState<number | null>(0)
const [clientVersion, setClientVersion] = useState('') const [clientVersion, setClientVersion] = useState('')
const [gasPrice, setGasPrice] = useState() const [gasPrice, setGasPrice] = useState<number | null>(0)
const [peers, setPeers] = useState() const [peers, setPeers] = useState<number | null>(0)
async function getStatusAndBlock() { async function getStatusAndBlock() {
if (!rpcUrl) return if (!rpcUrl) return
@ -69,7 +69,7 @@ export default function Status({ network }: { network: NetworkProps }) {
return ( return (
<div className={styles.networkData}> <div className={styles.networkData}>
{block > 0 ? ( {block && block > 0 ? (
<> <>
<h2 className={styles.status}> <h2 className={styles.status}>
<span className={isOnline ? styles.success : styles.error}> <span className={isOnline ? styles.success : styles.error}>