refactor: remove unused lib and code

This commit is contained in:
Nidhi Tandon 2021-05-26 20:38:18 +05:30
parent 91b1d08dff
commit 56c0265660
5 changed files with 714 additions and 922 deletions

View File

@ -15,7 +15,6 @@
"@ant-design/icons": "^4.6.2", "@ant-design/icons": "^4.6.2",
"@auth0/auth0-react": "^1.2.0", "@auth0/auth0-react": "^1.2.0",
"@babel/core": "7.12.3", "@babel/core": "7.12.3",
"@material-ui/core": "^4.0.0",
"@pmmmwh/react-refresh-webpack-plugin": "0.4.2", "@pmmmwh/react-refresh-webpack-plugin": "0.4.2",
"@svgr/webpack": "5.4.0", "@svgr/webpack": "5.4.0",
"@testing-library/jest-dom": "^5.11.4", "@testing-library/jest-dom": "^5.11.4",
@ -48,8 +47,6 @@
"chart.js": "^2.9.4", "chart.js": "^2.9.4",
"css-loader": "4.3.0", "css-loader": "4.3.0",
"d3": "^6.2.0", "d3": "^6.2.0",
"d3-array": "^2.8.0",
"d3-ease": "^2.0.0",
"d3-flame-graph": "^3.1.1", "d3-flame-graph": "^3.1.1",
"d3-tip": "^0.9.1", "d3-tip": "^0.9.1",
"dotenv": "8.2.0", "dotenv": "8.2.0",
@ -72,11 +69,7 @@
"jest-circus": "26.6.0", "jest-circus": "26.6.0",
"jest-resolve": "26.6.0", "jest-resolve": "26.6.0",
"jest-watch-typeahead": "0.6.1", "jest-watch-typeahead": "0.6.1",
"material-ui-chip-input": "^2.0.0-beta.2",
"mini-css-extract-plugin": "0.11.3",
"optimize-css-assets-webpack-plugin": "5.0.4",
"pnp-webpack-plugin": "1.6.4", "pnp-webpack-plugin": "1.6.4",
"postcss-flexbugs-fixes": "4.2.1",
"postcss-loader": "3.0.0", "postcss-loader": "3.0.0",
"postcss-normalize": "8.0.1", "postcss-normalize": "8.0.1",
"postcss-preset-env": "6.7.0", "postcss-preset-env": "6.7.0",
@ -96,7 +89,6 @@
"react-refresh": "^0.8.3", "react-refresh": "^0.8.3",
"react-router-dom": "^5.2.0", "react-router-dom": "^5.2.0",
"react-vis": "^1.11.7", "react-vis": "^1.11.7",
"recharts": "^1.8.5",
"redux": "^4.0.5", "redux": "^4.0.5",
"redux-thunk": "^2.3.0", "redux-thunk": "^2.3.0",
"resolve": "1.18.1", "resolve": "1.18.1",
@ -154,6 +146,7 @@
"prettier": "2.2.1", "prettier": "2.2.1",
"react-hot-loader": "^4.13.0", "react-hot-loader": "^4.13.0",
"react-is": "^17.0.1", "react-is": "^17.0.1",
"webpack-bundle-analyzer": "^4.4.2",
"webpack-cli": "^4.5.0" "webpack-cli": "^4.5.0"
} }
} }

View File

@ -1,18 +1,6 @@
@import "~antd/dist/antd.dark.css";
@import "~antd/dist/antd.compact.css";
.ant-space-item { .ant-space-item {
margin-right: 0 !important; margin-right: 0 !important;
} }
/* #components-layout-demo-side .logo {
height: 32px;
margin: 16px;
background: rgba(255, 255, 255, 0.3);
}
.site-layout .site-layout-background {
background: #fff;
} */
.instrument-card{ .instrument-card{
border-radius: 4px; border-radius: 4px;
background: #313131; background: #313131;

View File

@ -13,7 +13,6 @@ import "./TraceGraph.css";
import { spanToTreeUtil } from "../../utils/spanToTree"; import { spanToTreeUtil } from "../../utils/spanToTree";
import { fetchTraceItem, spansWSameTraceIDResponse } from "../../store/actions"; import { fetchTraceItem, spansWSameTraceIDResponse } from "../../store/actions";
import { StoreState } from "../../store/reducers"; import { StoreState } from "../../store/reducers";
import { TraceGraphColumn } from "./TraceGraphColumn";
import SelectedSpanDetails from "./SelectedSpanDetails"; import SelectedSpanDetails from "./SelectedSpanDetails";
interface TraceGraphProps { interface TraceGraphProps {
@ -71,11 +70,7 @@ const _TraceGraph = (props: TraceGraphProps) => {
return ( return (
<Row gutter={{ xs: 8, sm: 16, md: 24, lg: 32 }}> <Row gutter={{ xs: 8, sm: 16, md: 24, lg: 32 }}>
{/*<Col md={8} sm={24}>*/}
{/* <TraceGraphColumn />*/}
{/*</Col>*/}
<Col md={24} sm={24}> <Col md={24} sm={24}>
{/* <Card style={{ width: 640 }}> */}
<Space direction="vertical" size="middle" style={{ width: "100%" }}> <Space direction="vertical" size="middle" style={{ width: "100%" }}>
<Card bodyStyle={{ padding: 80 }} style={{ height: 320 }}> <Card bodyStyle={{ padding: 80 }} style={{ height: 320 }}>
<div <div

View File

@ -2,6 +2,8 @@
const { resolve } = require("path"); const { resolve } = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin"); const HtmlWebpackPlugin = require("html-webpack-plugin");
console.log(resolve(__dirname, "./src/")); console.log(resolve(__dirname, "./src/"));
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
module.exports = { module.exports = {
mode: "development", mode: "development",
devtool: "source-map", devtool: "source-map",
@ -53,7 +55,10 @@ module.exports = {
}, },
], ],
}, },
plugins: [new HtmlWebpackPlugin({ template: "src/index.html.ejs" })], plugins: [
new HtmlWebpackPlugin({ template: "src/index.html.ejs" }),
new BundleAnalyzerPlugin()
],
performance: { performance: {
hints: false, hints: false,
}, },

File diff suppressed because it is too large Load Diff