Skip to content

Commit 4ee3031

Browse files
Remove useless javacript lines.
1 parent fdb04d0 commit 4ee3031

File tree

2 files changed

+2
-97
lines changed

2 files changed

+2
-97
lines changed

src/main/js/components/MetricsSummaryTab/MetricsSummaryTab.js

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ class MetricsSummaryTab extends React.Component {
99
data: []
1010
};
1111

12-
labelF77 = document.createElement("Label");
13-
labelF90 = document.createElement("Label");
14-
labelSH = document.createElement("Label");
15-
16-
1712
componentDidMount() {
1813

1914
this.setState({
@@ -24,24 +19,7 @@ class MetricsSummaryTab extends React.Component {
2419
{ name: 'Line Of Code', total: 601, min: 101, mean: 110.2, max: 182 }
2520
]
2621
});
27-
this.labelF77.setAttribute("for","radio-tab-f77");
28-
this.labelF77.setAttribute("role","tab-pane");
29-
this.labelF77.setAttribute("class","tab-pane");
30-
this.labelF77.setAttribute("id","tab-pane-f77");
31-
this.labelF77.innerHTML = "F77";
32-
33-
this.labelF90.setAttribute("for","radio-tab-f90");
34-
this.labelF90.setAttribute("role","tab-pane");
35-
this.labelF90.setAttribute("class","tab-pane");
36-
this.labelF90.setAttribute("id","tab-pane-f90");
37-
this.labelF90.innerHTML = "F90";
38-
39-
this.labelSH.setAttribute("for","radio-tab-sh");
40-
this.labelSH.setAttribute("role","tab-pane");
41-
this.labelSH.setAttribute("class","tab-pane");
42-
this.labelSH.setAttribute("id","tab-pane-sh");
43-
this.labelSH.innerHTML = "SH";
44-
22+
4523
}
4624

4725
render() {

src/main/js/components/MetricsSummaryTab/MetricsSummaryTab.jsx

Lines changed: 1 addition & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -7,80 +7,7 @@ import React from "react";
77
function template() {
88

99

10-
return (
11-
<div classNameName="App">
12-
<script src="https://code.highcharts.com/highcharts.js"></script>
13-
<script src="https://code.highcharts.com/modules/bullet.js"></script>
14-
15-
<input type="radio" name="radio-tab-chart" className="radio-tab" id="radio-tab-f77" value="f77" checked />
16-
<label role="tab-pane" className="tab-pane" id="tab-pane-f77" htmlFor="radio-tab-f77">F77</label>
17-
<input type="radio" name="radio-tab-chart" className="radio-tab" id="radio-tab-f90" value="f90" />
18-
<label role="tab-pane" className="tab-pane" id="tab-pane-f90" htmlFor="radio-tab-f90">F90</label>
19-
<input type="radio" name="radio-tab-chart" className="radio-tab" id="radio-tab-sh" value="sh" />
20-
<label role="tab-pane" className="tab-pane" id="tab-pane-sh" htmlFor="radio-tab-sh">SH</label>
21-
22-
<div data-reactroot="" role="main-content" className="main-content" id="main-content">
23-
<div role="panel" className="panel" id="panel-f77">
24-
<table>
25-
<tr>
26-
<th id="empty-cell"></th>
27-
<th>Total</th>
28-
<th>Min</th>
29-
<th>Mean</th>
30-
<th>Max</th>
31-
</tr>
32-
{this.state.data.map(
33-
(item) =>
34-
<MetricsSummary
35-
item={item}
36-
/>
37-
)
38-
}
39-
</table>
40-
<MetricsBulletChart/>
41-
</div>
42-
<div role="panel" className="panel" id="panel-f90">
43-
<table>
44-
<tr>
45-
<th id="empty-cell"></th>
46-
<th>Total</th>
47-
<th>Min</th>
48-
<th>Mean</th>
49-
<th>Max</th>
50-
</tr>
51-
{this.state.data.map(
52-
(item) =>
53-
<MetricsSummary
54-
item={item}
55-
/>
56-
)
57-
}
58-
</table>
59-
<MetricsBulletChart/>
60-
</div>
61-
<div role="panel" className="panel" id="panel-sh">
62-
<table>
63-
<tr>
64-
<th id="empty-cell"></th>
65-
<th>Total</th>
66-
<th>Min</th>
67-
<th>Mean</th>
68-
<th>Max</th>
69-
</tr>
70-
{this.state.data.map(
71-
(item) =>
72-
<MetricsSummary
73-
item={item}
74-
/>
75-
)
76-
}
77-
</table>
78-
<MetricsBulletChart/>
79-
</div>
80-
</div>
81-
</div>
82-
83-
);
10+
return ( );
8411
};
8512

8613
export default template;

0 commit comments

Comments
 (0)