-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreport.html
176 lines (158 loc) · 5.32 KB
/
report.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<html>
<head>
<title>Unused Feature Flag Finder Report</title>
<style>
.styled-table {
border-collapse: collapse;
margin: 25px 0;
font-size: 0.9em;
font-family: sans-serif;
min-width: 400px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}
.styled-table thead tr {
background-color: #009879;
color: #ffffff;
text-align: left;
}
.styled-table th,
.styled-table td {
text-align: left;
padding: 12px 15px;
}
.styled-table tbody tr {
border-bottom: 1px solid #dddddd;
}
.styled-table tbody tr:nth-of-type(even) {
background-color: #f3f3f3;
}
.styled-table tbody tr:last-of-type {
border-bottom: 2px solid #009879;
}
.collapsible {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 10px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
font-family: sans-serif;
}
.active,
.collapsible:hover {
background-color: #ccc;
}
.content {
padding: 10px 18px;
display: none;
overflow: hidden;
background-color: #f1f1f1;
}
</style>
</head>
<body>
<table class="styled-table">
<tr>
<th>Total Crates</th>
<th>Total Features</th>
<th>Total Potential Removable Features</th>
</tr>
<tr>
<td>3</td>
<td>16</td>
<td>13</td>
</tr>
</table>
<button type='button' class='collapsible'><h3>core</h3></button>
<div class='content'>
<i style='margin: 5px' class='styled-table'>/home/akora/dev/rust/boop-rs/core/Cargo.toml</i>
<table class="styled-table">
<tr>
<th>Dependency</th>
<th>Original</th>
<th>Potential Removable</th>
<th>Unremovable</th>
</tr>
<tr>
<td>md5</td>
<td>std</td>
<td>std</td>
<td></td>
</tr>
</table>
</div>
<button type='button' class='collapsible'><h3>boop</h3></button>
<div class='content'>
<i style='margin: 5px' class='styled-table'>/home/akora/dev/rust/boop-rs/cli/Cargo.toml</i>
<table class="styled-table">
<tr>
<th>Dependency</th>
<th>Original</th>
<th>Potential Removable</th>
<th>Unremovable</th>
</tr>
<tr>
<td>core</td>
<td>default_loaders, default_plugins</td>
<td>default_plugins, default_loaders</td>
<td></td>
</tr>
<tr>
<td>clap</td>
<td>color, help, derive, std, error-context, suggestions, usage</td>
<td>usage, color, suggestions, help, error-context</td>
<td>derive, std</td>
</tr>
</table>
</div>
<button type='button' class='collapsible'><h3>boop_gui</h3></button>
<div class='content'>
<i style='margin: 5px' class='styled-table'>/home/akora/dev/rust/boop-rs/gui/Cargo.toml</i>
<table class="styled-table">
<tr>
<th>Dependency</th>
<th>Original</th>
<th>Potential Removable</th>
<th>Unremovable</th>
</tr>
<tr>
<td>core</td>
<td>default_plugins, default_loaders</td>
<td>default_plugins, default_loaders</td>
<td></td>
</tr>
<tr>
<td>enum-map</td>
<td>serde</td>
<td>serde</td>
<td></td>
</tr>
<tr>
<td>eframe</td>
<td>glow, default_fonts, accesskit</td>
<td>accesskit, default_fonts</td>
<td>glow</td>
</tr>
</table>
</div>
</body>
</html>
<script>
var coll = document.getElementsByClassName("collapsible");
var i;
for (i = 0; i < coll.length; i++) {
coll[i].addEventListener("click", function () {
this.classList.toggle("active");
var content = this.nextElementSibling;
if (content.style.display === "block") {
content.style.display = "none";
} else {
content.style.display = "block";
}
});
}
</script>
</html>