@@ -484,6 +484,66 @@ export class SPDXType extends GenericIdentifierType {
484484 name : 'Apache License 2.0' ,
485485 isOsiApproved : true ,
486486 } ,
487+ 'GPL-3.0-only' : {
488+ licenseId : 'GPL-3.0-only' ,
489+ name : 'GNU General Public License v3.0 only' ,
490+ isOsiApproved : true ,
491+ } ,
492+ 'GPL-2.0-only' : {
493+ licenseId : 'GPL-2.0-only' ,
494+ name : 'GNU General Public License v2.0 only' ,
495+ isOsiApproved : true ,
496+ } ,
497+ 'BSD-3-Clause' : {
498+ licenseId : 'BSD-3-Clause' ,
499+ name : 'BSD 3-Clause License' ,
500+ isOsiApproved : true ,
501+ } ,
502+ 'BSD-2-Clause' : {
503+ licenseId : 'BSD-2-Clause' ,
504+ name : 'BSD 2-Clause License' ,
505+ isOsiApproved : true ,
506+ } ,
507+ 'LGPL-3.0-only' : {
508+ licenseId : 'LGPL-3.0-only' ,
509+ name : 'GNU Lesser General Public License v3.0 only' ,
510+ isOsiApproved : true ,
511+ } ,
512+ 'CC-BY-4.0' : {
513+ licenseId : 'CC-BY-4.0' ,
514+ name : 'Creative Commons Attribution 4.0 International' ,
515+ isOsiApproved : false ,
516+ } ,
517+ 'CC-BY-SA-4.0' : {
518+ licenseId : 'CC-BY-SA-4.0' ,
519+ name : 'Creative Commons Attribution-ShareAlike 4.0 International' ,
520+ isOsiApproved : false ,
521+ } ,
522+ 'CC0-1.0' : {
523+ licenseId : 'CC0-1.0' ,
524+ name : 'Creative Commons Zero v1.0 Universal' ,
525+ isOsiApproved : false ,
526+ } ,
527+ 'Unlicense' : {
528+ licenseId : 'Unlicense' ,
529+ name : 'The Unlicense' ,
530+ isOsiApproved : false ,
531+ } ,
532+ 'ISC' : {
533+ licenseId : 'ISC' ,
534+ name : 'ISC License (ISCL)' ,
535+ isOsiApproved : true ,
536+ } ,
537+ 'MPL-2.0' : {
538+ licenseId : 'MPL-2.0' ,
539+ name : 'Mozilla Public License 2.0' ,
540+ isOsiApproved : true ,
541+ } ,
542+ 'AGPL-3.0-only' : {
543+ licenseId : 'AGPL-3.0-only' ,
544+ name : 'GNU Affero General Public License v3.0 only' ,
545+ isOsiApproved : true ,
546+ } ,
487547 } ;
488548
489549 return commonLicenses [ licenseId ] || null ;
@@ -504,17 +564,6 @@ export class SPDXType extends GenericIdentifierType {
504564 < span class = { 'items-center px-1' } >
505565 < span class = "font-medium" > { this . licenseData . name || this . licenseId } </ span >
506566 { this . licenseData . licenseId && < span class = "ml-1 text-gray-500" > ({ this . licenseData . licenseId } )</ span > }
507- { /*<span class="ml-2">*/ }
508- { /* {this.licenseData.isDeprecatedLicenseId && (*/ }
509- { /* <span class="inline-flex items-center rounded-md bg-red-50 px-2 py-1 text-xs font-medium text-red-700 ring-1 ring-red-600/20 ring-inset">Deprecated</span>*/ }
510- { /* )}*/ }
511- { /* {this.licenseData.isOsiApproved && (*/ }
512- { /* <span class="inline-flex items-center rounded-md bg-green-50 px-2 py-1 text-xs font-medium text-green-700 ring-1 ring-green-600/20 ring-inset">OSI Approved</span>*/ }
513- { /* )}*/ }
514- { /* {this.licenseData.isFsfLibre && (*/ }
515- { /* <span class="inline-flex items-center rounded-md bg-blue-50 px-2 py-1 text-xs font-medium text-blue-700 ring-1 ring-blue-600/20 ring-inset">FSF Free</span>*/ }
516- { /* )}*/ }
517- { /*</span>*/ }
518567 </ span >
519568 </ span >
520569 ) ;
0 commit comments