-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathindex.js
More file actions
371 lines (349 loc) · 28.5 KB
/
Copy pathindex.js
File metadata and controls
371 lines (349 loc) · 28.5 KB
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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
import React from 'react';
import useBaseUrl from '@docusaurus/useBaseUrl';
import styles from './styles.module.css';
// Display grids of icons for packages, licenses and vulnerabilities
const licenses = [
{ label: 'MIT', logo: 'img/logos/lic-mit.svg', url: 'https://scancode-licensedb.aboutcode.org/mit.html' },
{ label: 'Apache-2.0', logo: 'img/logos/apache.svg', url: 'https://scancode-licensedb.aboutcode.org/apache-2.0.html' },
{ label: 'GPL-2.0', logo: 'img/logos/gnu.svg', url: 'https://scancode-licensedb.aboutcode.org/gpl-2.0.html' },
{ label: 'GPL-3.0', logo: 'img/logos/gpl.svg', url: 'https://scancode-licensedb.aboutcode.org/gpl-3.0.html' },
{ label: 'BSD-2-Clause', logo: 'img/logos/berkeley.svg', url: 'https://scancode-licensedb.aboutcode.org/bsd-simplified.html' },
{ label: 'BSD-3-Clause', logo: 'img/logos/berkeley.svg', url: 'https://scancode-licensedb.aboutcode.org/bsd-new.html' },
{ label: 'LGPL-2.0', logo: 'img/logos/gnu.svg', url: 'https://scancode-licensedb.aboutcode.org/lgpl-2.0.html' },
{ label: 'LGPL-2.1', logo: 'img/logos/gnu.svg', url: 'https://scancode-licensedb.aboutcode.org/lgpl-2.1.html' },
{ label: 'LGPL-3.0', logo: 'img/logos/gpl.svg', url: 'https://scancode-licensedb.aboutcode.org/lgpl-3.0.html' },
{ label: 'MPL-2.0', logo: 'img/logos/mozilla.svg', url: 'https://scancode-licensedb.aboutcode.org/mpl-2.0.html' },
{ label: 'ISC', logo: 'img/logos/lic-isc.svg', url: 'https://scancode-licensedb.aboutcode.org/isc.html' },
{ label: 'CC-BY-4.0', logo: 'img/logos/cc.svg', url: 'https://scancode-licensedb.aboutcode.org/cc-by-4.0.html' },
{ label: 'AGPL-3.0', logo: 'img/logos/gpl.svg', url: 'https://scancode-licensedb.aboutcode.org/agpl-3.0.html' },
{ label: 'Artistic-2.0', logo: 'img/logos/perl-camel.png', url: 'https://scancode-licensedb.aboutcode.org/artistic-2.0.html' },
{ label: 'EPL-2.0', logo: 'img/logos/eclipse-logo.svg', url: 'https://scancode-licensedb.aboutcode.org/epl-2.0.html' },
{ label: 'CDDL-1.0', logo: 'img/logos/lic-cddl.svg', url: 'https://scancode-licensedb.aboutcode.org/cddl-1.0.html' },
{ label: 'Unlicense', logo: 'img/logos/lic-unlicense.svg', url: 'https://scancode-licensedb.aboutcode.org/unlicense.html' },
{ label: 'Zlib', logo: 'img/logos/lic-zlib.svg', url: 'https://scancode-licensedb.aboutcode.org/zlib.html' },
];
const programming_languages = [
{ label: 'Bash/Shell', logo: 'img/logos/bash.svg', url: 'https://www.gnu.org/software/bash/' },
{ label: 'C', logo: 'img/logos/c-lang.svg', url: 'https://en.cppreference.com/w/c' },
{ label: 'C#', logo: 'img/logos/csharp.svg', url: 'https://learn.microsoft.com/en-us/dotnet/csharp/' },
{ label: 'C++', logo: 'img/logos/cpp.svg', url: 'https://isocpp.org' },
{ label: 'Dart', logo: 'img/logos/dart.png', url: 'https://dart.dev' },
{ label: '.NET', logo: 'img/logos/dotnet.svg', url: 'https://dotnet.microsoft.com' },
{ label: 'Go', logo: 'img/logos/golang.png', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/golang-definition.md' },
{ label: 'Haxe', logo: 'img/logos/haxe.svg', url: 'https://lib.haxe.org' },
{ label: 'HTML/CSS', logo: 'img/logos/html-css.svg', url: 'https://developer.mozilla.org/en-US/docs/Web', logoClass: 'logoWideLarge' },
{ label: 'Java', logo: 'img/logos/java.svg', url: 'https://www.java.com' },
{ label: 'JavaScript', logo: 'img/logos/javascript.png', url: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript' },
{ label: 'Kotlin', logo: 'img/logos/kotlin.svg', url: 'https://kotlinlang.org' },
{ label: 'PHP', logo: 'img/logos/php.svg', url: 'https://www.php.net', logoClass: 'logoWideLarge' },
{ label: 'Python', logo: 'img/logos/python.svg', url: 'https://www.python.org' },
{ label: 'R', logo: 'img/logos/r-lang.svg', url: 'https://www.r-project.org' },
{ label: 'Raku', logo: 'img/logos/raku.svg', url: 'https://raku.org' },
{ label: 'Ruby', logo: 'img/logos/ruby.svg', url: 'https://www.ruby-lang.org' },
{ label: 'Rust', logo: 'img/logos/rust.svg', url: 'https://www.rust-lang.org' },
{ label: 'Scala', logo: 'img/logos/scala.svg', url: 'https://www.scala-lang.org', logoClass: 'logoWideLarge' },
{ label: 'Swift', logo: 'img/logos/swift.svg', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/swift-definition.md' },
{ label: 'TypeScript', logo: 'img/logos/typescript.svg', url: 'https://www.typescriptlang.org' },
{ label: 'Visual Basic', logo: 'img/logos/vb.svg', url: 'https://learn.microsoft.com/en-us/dotnet/visual-basic/' },
];
const operating_systems = [
{ label: 'Alpine', logo: 'img/logos/apk.png', url: 'https://alpinelinux.org' },
{ label: 'Android', logo: 'img/logos/android.svg', url: 'https://developer.android.com' },
{ label: 'Arch Linux', logo: 'img/logos/alpm.png', url: 'https://archlinux.org', logoClass: 'logoXL' },
{ label: 'Debian', logo: 'img/logos/deb.png', url: 'https://www.debian.org' },
{ label: 'Fedora', logo: 'img/logos/fedora.svg', url: 'https://fedoraproject.org' },
{ label: 'FreeBSD', logo: 'img/logos/freebsd.png', url: 'https://www.freebsd.org', logoClass: 'logoLarge' },
{ label: 'Gentoo', logo: 'img/logos/gentoo.png', url: 'https://www.gentoo.org' },
{ label: 'iOS', logo: 'img/logos/ios.svg', url: 'https://developer.apple.com/ios/' },
{ label: 'Linux', logo: 'img/logos/linux.png', url: 'https://www.kernel.org' },
{ label: 'macOS', logo: 'img/logos/macos.svg', url: 'https://developer.apple.com/macos/' },
{ label: 'openSUSE', logo: 'img/logos/suse.svg', url: 'https://www.opensuse.org', logoClass: 'logoXL' },
{ label: 'OpenWrt', logo: 'img/logos/openwrt.png', url: 'https://openwrt.org', logoClass: 'logoLarge' },
{ label: 'QNX', logo: 'img/logos/qnap.svg', url: 'https://blackberry.qnx.com', logoClass: 'logoWideLarge' },
{ label: 'Red Hat', logo: 'img/logos/redhat.png', url: 'https://www.redhat.com' },
{ label: 'Ubuntu', logo: 'img/logos/ubuntu.svg', url: 'https://ubuntu.com', logoClass: 'ubuntuLogo' },
{ label: 'Windows', logo: 'img/logos/windows.svg', url: 'https://www.microsoft.com/windows' },
{ label: 'Yocto', logo: 'img/logos/yocto.png', url: 'https://www.yoctoproject.org', logoClass: 'logoWideLarge' },
];
const package_ecosystems = [
{ label: 'Autotools', logo: 'img/logos/autotools.svg', url: 'https://www.gnu.org/software/automake/' },
{ label: 'Bazel', logo: 'img/logos/bazel.png', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/bazel-definition.md' },
{ label: 'Bitbucket', logo: 'img/logos/bitbucket.png', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/bitbucket-definition.md' },
{ label: 'Bitnami', logo: 'img/logos/bitnami.png', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/bitnami-definition.md' },
{ label: 'Bower', logo: 'img/logos/bower.png', url: 'https://bower.io' },
{ label: 'Cargo', logo: 'img/logos/cargo.png', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/cargo-definition.md' },
{ label: 'Chef', logo: 'img/logos/chef.png', url: 'https://www.chef.io', logoClass: 'logoLarge' },
{ label: 'Chrome Extension', logo: 'img/logos/chrome.svg', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/chrome-extension-definition.md' },
{ label: 'CocoaPods', logo: 'img/logos/cocoapods.png', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/cocoapods-definition.md' },
{ label: 'Composer', logo: 'img/logos/composer.jpg', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/composer-definition.md' },
{ label: 'Conan', logo: 'img/logos/conan.png', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/conan-definition.md' },
{ label: 'Conda', logo: 'img/logos/conda.png', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/conda-definition.md' },
{ label: 'CPAN', logo: 'img/logos/cpan.png', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/cpan-definition.md', logoClass: 'logoLarge' },
{ label: 'CRAN', logo: 'img/logos/cran.png', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/cran-definition.md' },
{ label: 'Docker', logo: 'img/logos/docker.png', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/docker-definition.md' },
{ label: 'F-Droid', logo: 'img/logos/fdroid.png', url: 'https://f-droid.org' },
{ label: 'GitHub', logo: 'img/logos/github.png', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/github-definition.md' },
{ label: 'GitLab', logo: 'img/logos/gitlab.png', url: 'https://gitlab.com', logoClass: 'logoLarge' },
{ label: 'Hackage', logo: 'img/logos/hackage.png', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/hackage-definition.md' },
{ label: 'Hex', logo: 'img/logos/hex.png', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/hex-definition.md' },
{ label: 'Hugging Face', logo: 'img/logos/huggingface.svg', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/huggingface-definition.md' },
{ label: 'Julia', logo: 'img/logos/julia.png', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/julia-definition.md' },
{ label: 'LuaRocks', logo: 'img/logos/luarocks.svg', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/luarocks-definition.md' },
{ label: 'Maven', logo: 'img/logos/maven.png', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/maven-definition.md' },
{ label: 'MLflow', logo: 'img/logos/mlflow.png', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/mlflow-definition.md' },
{ label: 'npm', logo: 'img/logos/npm.png', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/npm-definition.md' },
{ label: 'NuGet', logo: 'img/logos/nuget.png', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/nuget-definition.md' },
{ label: 'OCI', logo: 'img/logos/oci.png', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/oci-definition.md' },
{ label: 'opam', logo: 'img/logos/opam.svg', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/opam-definition.md', logoClass: 'logoLarge' },
{ label: 'OTP', logo: 'img/logos/otp.png', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/otp-definition.md' },
{ label: 'Pub', logo: 'img/logos/pub.png', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/pub-definition.md' },
{ label: 'PyPI', logo: 'img/logos/pypi.png', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/pypi-definition.md' },
{ label: 'RPM', logo: 'img/logos/rpm.png', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/rpm-definition.md', logoClass: 'logoLarge' },
{ label: 'RubyGems', logo: 'img/logos/gem.png', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/gem-definition.md' },
{ label: 'VS Code Extension', logo: 'img/logos/vscode.svg', url: 'https://github.com/package-url/purl-spec/blob/main/types-doc/vscode-extension-definition.md' },
];
const binary_formats = [
{ label: 'Windows PE', logo: 'img/logos/windows.svg', url: 'https://en.wikipedia.org/wiki/Portable_Executable' },
{ label: 'ELF', color: '#4a6fa5', url: 'https://en.wikipedia.org/wiki/Executable_and_Linkable_Format' },
{ label: 'DWARF', color: '#6b4c9a', url: 'https://en.wikipedia.org/wiki/DWARF' },
{ label: 'Mach-O', logo: 'img/logos/macos.svg', url: 'https://en.wikipedia.org/wiki/Mach-O' },
{ label: 'JVM bytecode', logo: 'img/logos/java.svg', url: 'https://en.wikipedia.org/wiki/Java_bytecode' },
{ label: '.NET assemblies', logo: 'img/logos/dotnet.svg', url: 'https://en.wikipedia.org/wiki/.NET_assembly' },
{ label: 'Rust binaries', logo: 'img/logos/rust.svg', url: 'https://en.wikipedia.org/wiki/Rust_(programming_language)' },
{ label: 'Go binaries', logo: 'img/logos/golang.png', url: 'https://en.wikipedia.org/wiki/Go_(programming_language)' },
{ label: 'Minimized JavaScript', logo: 'img/logos/javascript.png', url: 'https://en.wikipedia.org/wiki/Minification_(programming)' },
];
const archive_formats = [
{ label: 'tar', color: '#2e7d32', url: 'https://en.wikipedia.org/wiki/Tar_(computing)' },
{ label: 'ZIP', color: '#1565c0', url: 'https://en.wikipedia.org/wiki/ZIP_(file_format)' },
{ label: 'RAR', color: '#6a1b9a', url: 'https://en.wikipedia.org/wiki/RAR_(file_format)' },
{ label: '7z', color: '#37474f', url: 'https://en.wikipedia.org/wiki/7z' },
{ label: 'gzip', color: '#d84315', url: 'https://en.wikipedia.org/wiki/Gzip' },
{ label: 'bzip2', color: '#4e342e', url: 'https://en.wikipedia.org/wiki/Bzip2' },
{ label: 'XZ', color: '#0277bd', url: 'https://en.wikipedia.org/wiki/XZ_Utils' },
{ label: 'LZMA', color: '#00695c', url: 'https://en.wikipedia.org/wiki/Lempel%E2%80%93Ziv%E2%80%93Markov_chain_algorithm' },
{ label: 'LZ4', color: '#558b2f', url: 'https://en.wikipedia.org/wiki/LZ4_(compression_algorithm)' },
{ label: 'Zstandard', color: '#e65100', url: 'https://en.wikipedia.org/wiki/Zstd' },
{ label: 'CPIO', color: '#5d4037', url: 'https://en.wikipedia.org/wiki/Cpio' },
{ label: 'AR', color: '#455a64', url: 'https://en.wikipedia.org/wiki/Ar_(Unix)' },
{ label: 'XAR', color: '#7b1fa2', url: 'https://en.wikipedia.org/wiki/Xar_(archiver)' },
{ label: 'ISO 9660', color: '#c62828', url: 'https://en.wikipedia.org/wiki/ISO_9660' },
{ label: 'QCOW2', color: '#ad1457', url: 'https://en.wikipedia.org/wiki/Qcow' },
{ label: 'VMDK', color: '#1a237e', url: 'https://en.wikipedia.org/wiki/VMDK' },
{ label: 'VDI', color: '#283593', url: 'https://en.wikipedia.org/wiki/VDI_(file_format)' },
{ label: 'CAB', logo: 'img/logos/windows.svg', url: 'https://en.wikipedia.org/wiki/Cabinet_(file_format)' },
{ label: 'MSI', logo: 'img/logos/windows.svg', url: 'https://en.wikipedia.org/wiki/Windows_Installer' },
{ label: 'DMG', logo: 'img/logos/macos.svg', url: 'https://en.wikipedia.org/wiki/Apple_Disk_Image' },
{ label: 'RPM', logo: 'img/logos/rpm.png', url: 'https://en.wikipedia.org/wiki/RPM_Package_Manager', logoClass: 'logoLarge' },
{ label: 'Debian .deb', logo: 'img/logos/deb.png', url: 'https://en.wikipedia.org/wiki/Deb_(file_format)' },
{ label: 'NuGet .nupkg', logo: 'img/logos/nuget.png', url: 'https://en.wikipedia.org/wiki/NuGet' },
{ label: 'Java JAR/WAR', logo: 'img/logos/java.svg', url: 'https://en.wikipedia.org/wiki/JAR_(file_format)' },
{ label: 'Python .whl/.egg', logo: 'img/logos/pypi.png', url: 'https://en.wikipedia.org/wiki/Pip_(package_manager)#Wheel' },
{ label: 'Ruby .gem', logo: 'img/logos/gem.png', url: 'https://en.wikipedia.org/wiki/RubyGems' },
{ label: 'InstallShield', color: '#bf360c', url: 'https://en.wikipedia.org/wiki/InstallShield' },
{ label: 'NSIS', color: '#33691e', url: 'https://en.wikipedia.org/wiki/Nullsoft_Scriptable_Install_System' },
{ label: 'EPUB', color: '#4527a0', url: 'https://en.wikipedia.org/wiki/EPUB' },
];
const vulnerability_sources = [
{ label: 'Alpine Security', logo: 'img/logos/apk.png', url: 'https://secdb.alpinelinux.org' },
{ label: 'Apache HTTPD', logo: 'img/logos/apache.svg', url: 'https://httpd.apache.org/security/', logoClass: 'logoWideLarge' },
{ label: 'Apache Kafka', logo: 'img/logos/apache.svg', url: 'https://kafka.apache.org/cve-list', logoClass: 'logoWideLarge' },
{ label: 'Apache Tomcat', logo: 'img/logos/apache.svg', url: 'https://tomcat.apache.org/security.html', logoClass: 'logoWideLarge' },
{ label: 'Arch Linux', logo: 'img/logos/alpm.png', url: 'https://security.archlinux.org', logoClass: 'logoXL' },
{ label: 'CVE', logo: 'img/logos/cve.svg', url: 'https://www.cve.org/', logoClass: 'logoWideLarge' },
{ label: 'curl', logo: 'img/logos/curl.svg', url: 'https://curl.se/docs/security.html', logoClass: 'logoWideLarge' },
{ label: 'Debian Security', logo: 'img/logos/deb.png', url: 'https://security-tracker.debian.org' },
{ label: '.NET Advisories', logo: 'img/logos/dotnet.svg', url: 'https://github.com/dotnet/announcements' },
{ label: 'Elixir Advisories', logo: 'img/logos/elixir.png', url: 'https://github.com/dependabot/elixir-security-advisories', logoClass: 'logoLarge' },
{ label: 'ExploitDB', logo: 'img/logos/exploitdb.svg', url: 'https://www.exploit-db.com', logoClass: 'logoWideLarge' },
{ label: 'Gentoo GLSA', logo: 'img/logos/gentoo.png', url: 'https://security.gentoo.org' },
{ label: 'GitHub Advisories', logo: 'img/logos/github.png', url: 'https://github.com/advisories' },
{ label: 'GitLab Advisories', logo: 'img/logos/gitlab.png', url: 'https://advisories.gitlab.com', logoClass: 'logoLarge' },
{ label: 'glibc', logo: 'img/logos/glibc.svg', url: 'https://sourceware.org/glibc/wiki/Security' },
{ label: 'Istio', logo: 'img/logos/istio.png', url: 'https://istio.io/latest/news/security/' },
{ label: 'Linux Kernel', logo: 'img/logos/linux.png', url: 'https://www.kernel.org' },
{ label: 'Mattermost', logo: 'img/logos/mattermost.png', url: 'https://mattermost.com/security-updates/' },
{ label: 'Metasploit', logo: 'img/logos/metasploit.svg', url: 'https://www.metasploit.com', logoClass: 'logoWideLarge' },
{ label: 'Mozilla', logo: 'img/logos/mozilla.svg', url: 'https://www.mozilla.org/en-US/security/advisories/', logoClass: 'logoWideLarge' },
{ label: 'nginx', logo: 'img/logos/nginx.svg', url: 'https://nginx.org/en/security_advisories.html', logoClass: 'logoWideLarge' },
{ label: 'npm Advisories', logo: 'img/logos/npm.png', url: 'https://github.com/advisories?query=ecosystem%3Anpm' },
{ label: 'NVD', logo: 'img/logos/nvd.png', url: 'https://nvd.nist.gov', logoClass: 'logoLarge' },
{ label: 'OpenSSL', logo: 'img/logos/openssl.png', url: 'https://www.openssl.org/news/vulnerabilities.html', logoClass: 'logoXL' },
{ label: 'OSS-Fuzz', logo: 'img/logos/ossfuzz.png', url: 'https://google.github.io/oss-fuzz/' },
{ label: 'OSV.dev', logo: 'img/logos/osv.svg', url: 'https://osv.dev', logoClass: 'logoXL' },
{ label: 'PostgreSQL', logo: 'img/logos/postgresql.svg', url: 'https://www.postgresql.org/support/security/' },
{ label: 'PyPA', logo: 'img/logos/pypi.png', url: 'https://github.com/pypa/advisory-database' },
{ label: 'Red Hat', logo: 'img/logos/redhat.png', url: 'https://access.redhat.com/security/security-updates/' },
{ label: 'Ruby Advisory DB', logo: 'img/logos/gem.png', url: 'https://github.com/rubysec/ruby-advisory-db' },
{ label: 'Rust Advisory DB', logo: 'img/logos/cargo.png', url: 'https://github.com/rustsec/advisory-db' },
{ label: 'openSUSE', logo: 'img/logos/suse.svg', url: 'https://www.suse.com/security/', logoClass: 'logoXL' },
{ label: 'Ubuntu USN', logo: 'img/logos/ubuntu.svg', url: 'https://ubuntu.com/security/notices', logoClass: 'ubuntuLogo' },
{ label: 'Vulnrichment (CISA)', logo: 'img/logos/cisa.png', url: 'https://github.com/cisagov/vulnrichment', logoClass: 'logoLarge' },
{ label: 'CISA KEV', logo: 'img/logos/cisa.png', url: 'https://www.cisa.gov/known-exploited-vulnerabilities-catalog', logoClass: 'logoLarge' },
{ label: 'Xen', logo: 'img/logos/xen.svg', url: 'https://xenbits.xen.org/xsa/', logoClass: 'logoLarge' },
];
const vulnerability_reference_data = [
{ label: 'CPE', logo: 'img/logos/cpe.svg', url: 'https://nvd.nist.gov/products/cpe', logoClass: 'logoWideLarge' },
{ label: 'CVSS', logo: 'img/logos/cvss.svg', url: 'https://www.first.org/cvss/', logoClass: 'logoWideLarge' },
{ label: 'CWE', logo: 'img/logos/cwe.svg', url: 'https://cwe.mitre.org/', logoClass: 'logoWideLarge' },
{ label: 'SSVC', logo: 'img/logos/ssvc.svg', url: 'https://www.cisa.gov/stakeholder-specific-vulnerability-categorization-ssvc', logoClass: 'logoWideLarge' },
{ label: 'EPSS', logo: 'img/logos/epss.png', url: 'https://www.first.org/epss/', logoClass: 'logoXL' },
];
function GridItem({ item }) {
const logoSrc = useBaseUrl(`/${item.logo || ''}`);
return (
<a
key={item.label}
href={item.url}
target="_blank"
rel="noopener noreferrer"
className={styles.cell}
>
<div className={styles.logoSlot}>
{item.logo ? (
<img
src={logoSrc}
alt={item.label}
className={`${styles.cellLogo} ${item.logoClass ? styles[item.logoClass] : ''}`}
/>
) : item.color ? (
<span className={styles.colorBadge} style={{ backgroundColor: item.color }}>
{item.label.slice(0, 2).toUpperCase()}
</span>
) : null}
</div>
<span className={styles.cellLabel}>{item.label}</span>
</a>
);
}
// Grid section comes either as a summary with see all link, or no link for
// the full envt. page
function GridSection({ id, title, items, header_link, intro, see_all }) {
const headerLinkHref = useBaseUrl(header_link?.url || '/');
const seeAllHref = useBaseUrl(see_all?.url || '/');
const introWithSeeAll = intro && see_all
? React.cloneElement(intro, {}, ...React.Children.toArray(intro.props.children), ' ',
<a key="see-all" href={seeAllHref} className={styles.seeAll}>{see_all.label}.</a>)
: intro;
return (
<div id={id} className={styles.section}>
<h3 className={styles.sectionTitle}>
{title}
{header_link && (
<>{' - '}<a href={headerLinkHref} className={styles.header_link}>{header_link.label}...</a></>
)}
</h3>
{introWithSeeAll && <div className={styles.intro}>{introWithSeeAll}</div>}
<div className={styles.grid}>
{items.map((item) => (
<GridItem key={item.label} item={item} />
))}
</div>
</div>
);
}
// Feature only the most common on home, with links to see all.
const featured_licenses = [
'MIT', 'Apache-2.0', 'GPL-2.0', 'GPL-3.0', 'BSD-2-Clause',
'BSD-3-Clause', 'LGPL-2.0', 'LGPL-2.1', 'LGPL-3.0',
].map((label) => licenses.find((v) => v.label === label));
const featured_vulnerability_sources = [
'NVD', 'CVE', 'GitHub Advisories', 'GitLab Advisories', 'OSV.dev',
'npm Advisories', 'PyPA', 'Ruby Advisory DB', 'Rust Advisory DB',
].map((label) => vulnerability_sources.find((v) => v.label === label));
const featured_package_ecosystems = [
'npm', 'PyPI', 'Maven', 'NuGet', 'RubyGems',
'Cargo', 'Composer', 'Conda', 'Docker',
].map((label) => package_ecosystems.find((v) => v.label === label));
export default function EcosystemGrid({ featured = false }) {
if (featured) {
return (
<div className={styles.gridWrapper}>
<GridSection
id="licensing"
title="Licenses"
items={featured_licenses}
header_link={{ label: 'Get started with license compliance', url: '/docs/getting_started/license-compliance/' }}
intro={<p>AboutCode tracks over 2,500+ curated licenses across 12 categories. Browse all <a href="https://scancode-licensedb.aboutcode.org" target="_blank" rel="noopener noreferrer">2,500+ licenses</a> in the LicenseDB. Industry-leading license detection is backed by <a href="https://github.com/aboutcode-org/scancode-toolkit/tree/develop/src/licensedcode/data/rules" target="_blank" rel="noopener noreferrer">over 35,000 license notices</a> used as detection rules.</p>}
see_all={{ label: 'See more supported licenses', url: '/environments/#licensing' }}
/>
<GridSection
id="vuln-sources"
title="Software vulnerabilities"
items={featured_vulnerability_sources}
header_link={{ label: 'Get started with software security', url: '/docs/getting_started/software-security/' }}
intro={<p>AboutCode collects, correlates, and improves vulnerabilities from multiple advisory data sources, privileging upstream data.</p>}
see_all={{ label: 'See more tracked vulnerability sources', url: '/environments/#vuln-sources' }}
/>
<GridSection
id="pkg-ecosystems"
title="Package ecosystems"
items={featured_package_ecosystems}
header_link={{ label: 'Get started with software identification', url: '/docs/getting_started/software-identification/' }}
intro={<p>The AboutCode package database and scanners track millions of packages from most package ecosystems.</p>}
see_all={{ label: 'See more supported package ecosystems', url: '/environments/#pkg-ecosystems' }}
/>
</div>
);
}
return (
<div className={styles.gridWrapper}>
<GridSection
id="licensing"
title="Licenses"
items={licenses}
header_link={{ label: 'Get started with license compliance', url: '/docs/getting_started/license-compliance/' }}
intro={<p>AboutCode tracks over 2,500+ curated licenses across 12 categories. Browse all <a href="https://scancode-licensedb.aboutcode.org" target="_blank" rel="noopener noreferrer">2,500+ licenses</a> in the LicenseDB. Industry-leading license detection is backed by <a href="https://github.com/aboutcode-org/scancode-toolkit/tree/develop/src/licensedcode/data/rules" target="_blank" rel="noopener noreferrer">over 35,000 license notices</a> used as detection rules.</p>}
/>
<GridSection
id="pkg-ecosystems"
title="Package ecosystems"
items={package_ecosystems}
header_link={{ label: 'Get started with software identification', url: '/docs/getting_started/software-identification/' }}
intro={<p>The AboutCode package database and scanners track millions of packages from most package ecosystems.</p>}
/>
<GridSection
id="vuln-sources"
title="Software vulnerabilities"
items={vulnerability_sources}
header_link={{ label: 'Get started with software security', url: '/docs/getting_started/software-security/' }}
intro={<p>AboutCode collects, correlates, and improves vulnerabilities from multiple advisory data sources, privileging upstream data. </p>}
/>
<GridSection
id="vuln-reference-data"
title="Vulnerability severity and other reference data"
items={vulnerability_reference_data}
header_link={{ label: 'Get started with software security', url: '/docs/getting_started/software-security/' }}
intro={<p>AboutCode imports vulnerability reference data in key industry formats, mapping these to PURL. </p>}
/>
<GridSection
id="operating-systems"
title="Operating systems"
items={operating_systems}
header_link={{ label: 'Get started with software identification', url: '/docs/getting_started/software-identification/' }}
intro={<p>AboutCode tools support packages and distributions across major server, desktop, and mobile operating systems.</p>}
/>
<GridSection
id="programming-languages"
title="Programming languages"
items={programming_languages}
header_link={{ label: 'Get started with software identification', url: '/docs/getting_started/software-identification/' }}
intro={<p>AboutCode tools detect and analyze code across many programming languages.</p>}
/>
<GridSection
id="binary-formats"
title="Binary formats"
items={binary_formats}
header_link={{ label: 'Get started with software identification', url: '/docs/getting_started/software-identification/' }}
intro={<p>AboutCode tools analyze compiled binary, bytecode, and minified code file formats to identify origin, dependencies, and embedded components.</p>}
/>
<GridSection
id="archive-formats"
title="Archive formats"
items={archive_formats}
header_link={{ label: 'Get started with software identification', url: '/docs/getting_started/software-identification/' }}
intro={<p>AboutCode supports extraction of most archive, compressed, package, and disk image file formats.</p>}
/>
</div>
);
}