e52fe65985
* Add identicons package * Tidy up styling and move methods into component directories with better naming * Add mixnode status colours to theme * Mixnode status and icon components * Add status to mixnode types * Add API method to get mixnode details * Add mixnode details to state * Add status and name+description section to mixnode detail page * Wrap with div instead of p * Limit width of description and link to new tab * Limit length of link button and truncate with elipsis * Replace `filter` with `find` * Move mix node detail components to a location that is better named * Refactor mixnode detail state and separate into an independent context from main state. This prevents the mixnode detail page from showing stale data when switching between mix nodes. * Tidy up mixnode detail page adding new state provider and a guard component to handle loading, error and not found states * Layout changes to mixnode description header section * Add methods to Explorer API client to get a mixnode by id, active set by status and overview summary * Add color prop to StatsCard and make count optional * Add optional start and end children to TableToolbar * Tidy up naming * Add summary overview and getting mixnodes by active set status to main state * Add mix node status overview cards * Add mix node status to routes * Mixnode list has a dropdown component to select the active set status * Clean up caching code * Add resource to get a single mixnode by id * Add API resources to get `active`, `inactive` and `standby` mixnodes * Add mixnode summary to API * Add overview summary endpoint to API * Fix OpenAPI/swagger base url * Make clippy happy * Add method to get validators * Add methods to get active and rewarded mixnodes * Fix naming * Move client creation to crate root * Move cache to module * Delete unused files * Add validators API resource * Add gateways API resource * Move tasks to crate root * Add new HTTP resources for validators and gateways to routes * Tidy up naming and locations for mixnodes * Add validator and gateways to state, and tidy up naming * Add gateways and validator modules to main * Overview shows validator and gateway summaries from state * Bundle variable weight Open Sans fonts * Fix up font weights and sizes * Fix up typing * Fix up social icons * Fix navbar colour * Fix paper colour in dark mode and border radius * Fix up stats card * Tidy up Nym icons * Fix up overview * Fix up spacing and padding for overview * Add light mode shades that are darker for mixnode status values * Review feedback
111 lines
3.3 KiB
JSON
111 lines
3.3 KiB
JSON
{
|
|
"name": "@nym/network-explorer",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"license": "Apache-2.0",
|
|
"dependencies": {
|
|
"@cosmjs/math": "^0.26.2",
|
|
"@emotion/react": "^11.4.1",
|
|
"@emotion/styled": "^11.3.0",
|
|
"@mui/icons-material": "^5.0.0",
|
|
"@mui/material": "^5.0.1",
|
|
"@mui/styles": "^5.0.1",
|
|
"@mui/system": "^5.0.1",
|
|
"@mui/x-data-grid": "^5.0.0-beta.5",
|
|
"@nymproject/nym-validator-client": "^0.18.0",
|
|
"d3-scale": "^4.0.0",
|
|
"date-fns": "^2.24.0",
|
|
"i18n-iso-countries": "^6.8.0",
|
|
"react": "^17.0.2",
|
|
"react-dom": "^17.0.2",
|
|
"react-google-charts": "^3.0.15",
|
|
"react-identicons": "^1.2.5",
|
|
"react-router-dom": "^5.3.0",
|
|
"react-simple-maps": "^2.3.0",
|
|
"react-tooltip": "^4.2.21"
|
|
},
|
|
"devDependencies": {
|
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.0-rc.3",
|
|
"@testing-library/jest-dom": "^5.14.1",
|
|
"@testing-library/react": "^12.0.0",
|
|
"@types/d3-fetch": "^3.0.1",
|
|
"@types/d3-geo": "^3.0.2",
|
|
"@types/d3-scale": "^4.0.1",
|
|
"@types/geojson": "^7946.0.8",
|
|
"@types/jest": "^27.0.1",
|
|
"@types/node": "^16.7.13",
|
|
"@types/react": "^17.0.34",
|
|
"@types/react-dom": "^17.0.9",
|
|
"@types/react-router-dom": "^5.1.8",
|
|
"@types/react-simple-maps": "^1.0.6",
|
|
"@types/react-tooltip": "^4.2.4",
|
|
"@types/topojson-client": "^3.1.0",
|
|
"@typescript-eslint/eslint-plugin": "4.31.0",
|
|
"@typescript-eslint/parser": "4.31.0",
|
|
"babel-plugin-root-import": "^6.6.0",
|
|
"clean-webpack-plugin": "^4.0.0",
|
|
"css-loader": "^6.2.0",
|
|
"css-minimizer-webpack-plugin": "^3.0.2",
|
|
"dotenv-webpack": "^7.0.3",
|
|
"eslint": "7.32.0",
|
|
"eslint-config-airbnb": "18.2.1",
|
|
"eslint-config-prettier": "8.3.0",
|
|
"eslint-import-resolver-root-import": "1.0.4",
|
|
"eslint-plugin-import": "2.24.2",
|
|
"eslint-plugin-jest": "^24.4.0",
|
|
"eslint-plugin-jsx-a11y": "6.4.1",
|
|
"eslint-plugin-prettier": "4.0.0",
|
|
"eslint-plugin-react": "7.25.1",
|
|
"eslint-plugin-react-hooks": "4.2.0",
|
|
"fork-ts-checker-webpack-plugin": "^6.3.3",
|
|
"html-webpack-plugin": "^5.3.2",
|
|
"imports-loader": "^3.0.0",
|
|
"jest": "^27.1.0",
|
|
"loader-utils": "^2.0.0",
|
|
"mini-css-extract-plugin": "^2.2.2",
|
|
"prettier": "2.3.2",
|
|
"react-refresh": "^0.10.0",
|
|
"react-refresh-typescript": "^2.0.2",
|
|
"style-loader": "^3.2.1",
|
|
"ts-jest": "^27.0.5",
|
|
"ts-loader": "^9.2.5",
|
|
"tsconfig-paths-webpack-plugin": "^3.5.1",
|
|
"typescript": "^4.4.2",
|
|
"webpack": "^5.52.0",
|
|
"webpack-cli": "^4.8.0",
|
|
"webpack-dev-server": "^4.1.0",
|
|
"webpack-favicons": "^1.0.7",
|
|
"webpack-merge": "^5.8.0",
|
|
"yaml-loader": "^0.6.0"
|
|
},
|
|
"scripts": {
|
|
"start": "webpack serve --progress --port 3000",
|
|
"build": "webpack build --progress --config webpack.prod.js",
|
|
"build:serve": "npx serve dist",
|
|
"test": "jest",
|
|
"test:watch": "jest --watch",
|
|
"tsc": "tsc",
|
|
"tsc:watch": "tsc --watch",
|
|
"lint": "eslint src",
|
|
"lint:fix": "eslint src --fix"
|
|
},
|
|
"eslintConfig": {
|
|
"extends": [
|
|
"react-app",
|
|
"react-app/jest"
|
|
]
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
}
|
|
}
|