Skip to content

Commit 3f78bc9

Browse files
committed
Store billboard.js locally and add respective licenses
Signed-off-by: Sampurna Pyne <sampurnapyne1710@gmail.com>
1 parent 7a3ecff commit 3f78bc9

7 files changed

Lines changed: 140 additions & 2 deletions

vulnerabilities/templates/advisory_detail.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,8 +756,8 @@
756756

757757
<script src="{% static 'js/main.js' %}" crossorigin="anonymous"></script>
758758

759-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/billboard.js@3/dist/billboard.min.css">
760-
<script src="https://cdn.jsdelivr.net/npm/billboard.js@3/dist/billboard.pkgd.min.js"></script>
759+
<link rel="stylesheet" href="{% static 'css/billboard-3.18.0.min.css' %}">
760+
<script src="{% static 'js/billboard-3.18.0.pkgd.min.js' %}"></script>
761761

762762
{{ epss_history_data|json_script:"epss-history-data" }}
763763

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

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
about_resource: billboard-3.18.0.min.css
2+
name: billboard.js
3+
version: 3.18.0
4+
download_url: https://github.com/naver/billboard.js/archive/3.18.0.zip
5+
description: Re-usable easy interface JavaScript chart library, based on D3 v4+
6+
homepage_url: https://naver.github.io/billboard.js/
7+
license_expression: mit
8+
attribute: yes
9+
package_url: pkg:npm/billboard.js@3.18.0
10+
licenses:
11+
- key: mit
12+
name: MIT License
13+
file: billboard-3.18.0.min.css.LICENSE
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2017 ~ present NAVER Corp.
4+
Copyright (c) 2013 Masayuki Tanaka
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy of
7+
this software and associated documentation files (the "Software"), to deal in
8+
the Software without restriction, including without limitation the rights to
9+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
10+
the Software, and to permit persons to whom the Software is furnished to do so,
11+
subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
18+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20+
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.

vulnerablecode/static/js/billboard-3.18.0.pkgd.min.js

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
about_resource: billboard-3.18.0.pkgd.min.js
2+
name: billboard.js
3+
version: 3.18.0
4+
download_url: https://github.com/naver/billboard.js/archive/3.18.0.zip
5+
description: Re-usable easy interface JavaScript chart library, based on D3 v4+
6+
homepage_url: https://naver.github.io/billboard.js/
7+
license_expression: mit
8+
attribute: yes
9+
package_url: pkg:npm/billboard.js@3.18.0
10+
licenses:
11+
- key: mit
12+
name: MIT License
13+
file: billboard-3.18.0.pkgd.min.js.LICENSE
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2017 ~ present NAVER Corp.
4+
Copyright (c) 2013 Masayuki Tanaka
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy of
7+
this software and associated documentation files (the "Software"), to deal in
8+
the Software without restriction, including without limitation the rights to
9+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
10+
the Software, and to permit persons to whom the Software is furnished to do so,
11+
subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
18+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20+
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.

0 commit comments

Comments
 (0)