Skip to content

Commit 29bd8ed

Browse files
committed
Update with un-minified billboard.js and d3.js and liceneses
Signed-off-by: Sampurna Pyne <sampurnapyne1710@gmail.com>
1 parent 0cd7e85 commit 29bd8ed

13 files changed

Lines changed: 44764 additions & 91 deletions

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ Pipfile
9393

9494
# editors
9595
.vscode
96-
*.code-workspace
9796
# PyCharm
9897
.idea/
9998

vulnerablecode/static/css/billboard-3.18.0.min.css

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 317 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,317 @@
1+
/*!
2+
* Copyright (c) 2017 ~ present NAVER Corp.
3+
* billboard.js project is licensed under the MIT license
4+
*
5+
* billboard.js, JavaScript chart library
6+
* https://naver.github.io/billboard.js/
7+
*
8+
* @version 3.18.0
9+
*/
10+
/*-- Chart --*/
11+
.bb svg {
12+
font: 10px sans-serif;
13+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
14+
}
15+
.bb path, .bb line {
16+
fill: none;
17+
stroke: #000;
18+
}
19+
.bb text, .bb .bb-button {
20+
-webkit-user-select: none;
21+
-moz-user-select: none;
22+
user-select: none;
23+
}
24+
25+
.bb-legend-item-tile,
26+
.bb-xgrid-focus,
27+
.bb-ygrid-focus,
28+
.bb-ygrid {
29+
shape-rendering: crispEdges;
30+
}
31+
32+
.bb-chart-arcs .bb-needle {
33+
fill: #000;
34+
}
35+
36+
.bb-chart-arc .bb-gauge-value {
37+
fill: #000;
38+
}
39+
.bb-chart-arc path {
40+
stroke: #fff;
41+
}
42+
.bb-chart-arc rect {
43+
stroke: #fff;
44+
stroke-width: 1;
45+
}
46+
.bb-chart-arc text {
47+
fill: #fff;
48+
font-size: 13px;
49+
}
50+
.bb-chart-arc {
51+
/* Connector line base styles */
52+
}
53+
.bb-chart-arc .bb-arc-label-line {
54+
fill: none;
55+
stroke-width: 1px;
56+
pointer-events: none;
57+
}
58+
.bb-chart-arc .bb-arc-label-line {
59+
stroke: #7f7f7f;
60+
}
61+
.bb-chart-arc > text.bb-arc-label-line-text {
62+
fill: #000;
63+
}
64+
65+
/*-- Funnel --*/
66+
.bb-chart-funnels path {
67+
stroke-width: 0;
68+
}
69+
.bb-chart-funnels + .bb-chart-texts text {
70+
font-size: 13px;
71+
fill: #fff;
72+
}
73+
74+
/*-- Axis --*/
75+
.bb-axis {
76+
shape-rendering: crispEdges;
77+
}
78+
.bb-axis .bb-axis-x-tooltip, .bb-axis .bb-axis-y-tooltip, .bb-axis .bb-axis-y2-tooltip {
79+
font-size: 1em;
80+
fill: #fff;
81+
white-space: nowrap;
82+
}
83+
84+
/*-- Grid --*/
85+
.bb-grid {
86+
pointer-events: none;
87+
}
88+
.bb-grid line {
89+
stroke: #aaa;
90+
}
91+
.bb-grid text {
92+
fill: #aaa;
93+
}
94+
95+
.bb-xgrid, .bb-ygrid {
96+
stroke-dasharray: 3 3;
97+
}
98+
99+
/*-- Text on Chart --*/
100+
.bb-text.bb-empty {
101+
fill: #808080;
102+
font-size: 2em;
103+
}
104+
105+
/*-- Line --*/
106+
.bb-line {
107+
stroke-width: 1px;
108+
}
109+
110+
/*-- Point --*/
111+
.bb-circle._expanded_ {
112+
stroke-width: 1px;
113+
stroke: white;
114+
}
115+
116+
.bb-selected-circle {
117+
fill: white;
118+
stroke-width: 2px;
119+
}
120+
121+
/*-- Bar --*/
122+
.bb-bar {
123+
stroke-width: 0;
124+
}
125+
.bb-bar._expanded_ {
126+
fill-opacity: 0.75;
127+
}
128+
129+
/*-- Candlestick --*/
130+
.bb-candlestick {
131+
stroke-width: 1px;
132+
}
133+
.bb-candlestick._expanded_ {
134+
fill-opacity: 0.75;
135+
}
136+
137+
/*-- Focus --*/
138+
.bb-target.bb-focused, .bb-circles.bb-focused {
139+
opacity: 1;
140+
}
141+
.bb-target.bb-focused path.bb-line, .bb-target.bb-focused path.bb-step, .bb-circles.bb-focused path.bb-line, .bb-circles.bb-focused path.bb-step {
142+
stroke-width: 2px;
143+
}
144+
.bb-target.bb-defocused, .bb-circles.bb-defocused {
145+
opacity: 0.3 !important;
146+
}
147+
.bb-target.bb-defocused .text-overlapping, .bb-circles.bb-defocused .text-overlapping {
148+
opacity: 0.05 !important;
149+
}
150+
151+
/*-- Region --*/
152+
.bb-region {
153+
fill: steelblue;
154+
}
155+
.bb-region rect {
156+
fill-opacity: 0.1;
157+
}
158+
159+
/*-- Zoom region --*/
160+
.bb-zoom-brush {
161+
fill-opacity: 0.1;
162+
}
163+
164+
/*-- Brush --*/
165+
.bb-brush .extent {
166+
fill-opacity: 0.1;
167+
}
168+
169+
/*-- Legend --*/
170+
.bb-legend-item {
171+
font-size: 12px;
172+
user-select: none;
173+
}
174+
175+
.bb-legend-item-hidden {
176+
opacity: 0.15;
177+
}
178+
179+
.bb-legend-background {
180+
opacity: 0.75;
181+
fill: white;
182+
stroke: lightgray;
183+
stroke-width: 1;
184+
}
185+
186+
/*-- Title --*/
187+
.bb-title {
188+
font: 14px sans-serif;
189+
}
190+
191+
/*-- Treemap --*/
192+
.bb-chart-treemaps rect {
193+
stroke: #fff;
194+
stroke-width: 1px;
195+
}
196+
197+
/*-- Tooltip --*/
198+
.bb-tooltip-container {
199+
z-index: 10;
200+
user-select: none;
201+
transform: translateZ(0);
202+
}
203+
204+
.bb-tooltip {
205+
border-collapse: collapse;
206+
border-spacing: 0;
207+
background-color: #fff;
208+
empty-cells: show;
209+
opacity: 0.9;
210+
box-shadow: 7px 7px 12px -9px rgb(119, 119, 119);
211+
white-space: nowrap;
212+
}
213+
.bb-tooltip tr {
214+
border: 1px solid #CCC;
215+
}
216+
.bb-tooltip th {
217+
background-color: #aaa;
218+
font-size: 14px;
219+
padding: 2px 5px;
220+
text-align: left;
221+
color: #FFF;
222+
}
223+
.bb-tooltip td {
224+
font-size: 13px;
225+
padding: 3px 6px;
226+
background-color: #fff;
227+
border-left: 1px dotted #999;
228+
}
229+
.bb-tooltip td > span, .bb-tooltip td > svg {
230+
display: inline-block;
231+
width: 10px;
232+
height: 10px;
233+
margin-right: 6px;
234+
}
235+
.bb-tooltip.value {
236+
text-align: right;
237+
}
238+
239+
/*-- Area --*/
240+
.bb-area {
241+
stroke-width: 0;
242+
opacity: 0.2;
243+
}
244+
245+
/*-- Arc --*/
246+
.bb-chart-arcs-title {
247+
dominant-baseline: middle;
248+
font-size: 1.3em;
249+
}
250+
251+
text.bb-chart-arcs-gauge-title {
252+
dominant-baseline: middle;
253+
font-size: 2.7em;
254+
}
255+
256+
.bb-chart-arcs .bb-chart-arcs-background {
257+
fill: #e0e0e0;
258+
stroke: #fff;
259+
}
260+
.bb-chart-arcs .bb-chart-arcs-gauge-unit {
261+
fill: #000;
262+
font-size: 16px;
263+
}
264+
.bb-chart-arcs .bb-chart-arcs-gauge-max {
265+
fill: #777;
266+
}
267+
.bb-chart-arcs .bb-chart-arcs-gauge-min {
268+
fill: #777;
269+
}
270+
.bb-chart-arcs {
271+
/*-- Polar --*/
272+
}
273+
.bb-chart-arcs .bb-levels circle {
274+
fill: none;
275+
stroke: #848282;
276+
stroke-width: 0.5px;
277+
}
278+
.bb-chart-arcs .bb-levels text {
279+
fill: #848282;
280+
}
281+
282+
/*-- Radar --*/
283+
.bb-chart-radars .bb-levels polygon {
284+
fill: none;
285+
stroke: #848282;
286+
stroke-width: 0.5px;
287+
}
288+
.bb-chart-radars .bb-levels text {
289+
fill: #848282;
290+
}
291+
.bb-chart-radars .bb-axis line {
292+
stroke: #848282;
293+
stroke-width: 0.5px;
294+
}
295+
.bb-chart-radars .bb-axis text {
296+
font-size: 1.15em;
297+
cursor: default;
298+
}
299+
.bb-chart-radars .bb-shapes polygon {
300+
fill-opacity: 0.2;
301+
stroke-width: 1px;
302+
}
303+
304+
/*-- Button --*/
305+
.bb-button {
306+
position: absolute;
307+
top: 10px;
308+
right: 10px;
309+
}
310+
.bb-button .bb-zoom-reset {
311+
font-size: 11px;
312+
border: solid 1px #ccc;
313+
background-color: #fff;
314+
padding: 5px;
315+
border-radius: 5px;
316+
cursor: pointer;
317+
}
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
about_resource: billboard-3.18.0.min.css
1+
about_resource: billboard.css
22
name: billboard.js
33
version: 3.18.0
4-
download_url: https://github.com/naver/billboard.js/archive/3.18.0.zip
4+
download_url: https://registry.npmjs.org/billboard.js/-/billboard.js-3.18.0.tgz
55
description: Re-usable easy interface JavaScript chart library, based on D3 v4+
6-
homepage_url: https://naver.github.io/billboard.js/
76
license_expression: mit
7+
homepage_url: https://naver.github.io/billboard.js/
8+
owner: NAVER Corp.
89
attribute: yes
910
package_url: pkg:npm/billboard.js@3.18.0
1011
licenses:
1112
- key: mit
1213
name: MIT License
13-
file: billboard-3.18.0.min.css.LICENSE
14+
file: billboard.css.LICENSE

vulnerablecode/static/js/billboard-3.18.0.pkgd.min.js.LICENSE renamed to vulnerablecode/static/css/billboard.css.LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
1818
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
1919
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
2020
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

vulnerablecode/static/css/custom.css

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -656,12 +656,3 @@ ul.fixed_by_bullet li li li {
656656
}
657657
}
658658

659-
/* Tooltip styles for EPSS charts */
660-
.bb-tooltip-container {
661-
min-width: 220px !important;
662-
}
663-
664-
.bb-tooltip th,
665-
.bb-tooltip td {
666-
white-space: nowrap !important;
667-
}

0 commit comments

Comments
 (0)