diff --git a/package.json b/package.json index 60bf4498..578ecbae 100644 --- a/package.json +++ b/package.json @@ -105,6 +105,7 @@ "@types/js-beautify": "^1.14.3", "@types/libmime": "^5.0.3", "@types/emscripten": "^1.39.10", + "@types/spdx-satisfies": "^0.1.2", "@vicons/material": "^0.12.0", "@vicons/tabler": "^0.12.0", "@vueuse/core": "^10.11.1", @@ -277,6 +278,8 @@ "qrcode": "^1.5.1", "rtf-stream-parser": "^3.8.0", "slashes": "^3.0.12", + "safe-license-list": "^0.1.2", + "spdx-satisfies": "^5.0.1", "sql-formatter": "^13.0.0", "sshpk": "^1.18.0", "turndown": "^7.1.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 078bc6b5..73e10820 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -134,6 +134,9 @@ dependencies: '@types/punycode': specifier: ^2.1.4 version: 2.1.4 + '@types/spdx-satisfies': + specifier: ^0.1.2 + version: 0.1.2 '@types/sshpk': specifier: ^1.17.4 version: 1.17.4 @@ -569,6 +572,9 @@ dependencies: rtf-stream-parser: specifier: ^3.8.0 version: 3.8.0 + safe-license-list: + specifier: ^0.1.2 + version: 0.1.2 shiki: specifier: ^1.22.0 version: 1.22.2 @@ -578,6 +584,9 @@ dependencies: slashes: specifier: ^3.0.12 version: 3.0.12 + spdx-satisfies: + specifier: ^5.0.1 + version: 5.0.1 sql-formatter: specifier: ^13.0.0 version: 13.0.0 @@ -1045,7 +1054,7 @@ packages: dependencies: '@babel/types': 7.23.0 '@jridgewell/gen-mapping': 0.3.3 - '@jridgewell/trace-mapping': 0.3.20 + '@jridgewell/trace-mapping': 0.3.18 jsesc: 2.5.2 dev: true @@ -5851,6 +5860,10 @@ packages: resolution: {integrity: sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==} dev: true + /@types/spdx-satisfies@0.1.2: + resolution: {integrity: sha512-v8OtFJhx4gHvOktcvP1cdeAXYhUq1O5XP+NTxyZoxDSaKYGf3BFWb0P4Ik/JfRxsscKn8fDe4w9Obv92bNQ26Q==} + dev: false + /@types/sshpk@1.17.4: resolution: {integrity: sha512-5gI/7eJn6wmkuIuFY8JZJ1g5b30H9K5U5vKrvOuYu+hoZLb2xcVEgxhYZ2Vhbs0w/ACyzyfkJq0hQtBfSCugjw==} dependencies: @@ -7066,6 +7079,11 @@ packages: engines: {node: '>=0.10.0'} dev: false + /array-find-index@1.0.2: + resolution: {integrity: sha512-M1HQyIXcBGtVywBt8WVdim+lrNaK7VHp99Qt5pSNziXznKHViIBbXWtfRTpEFpF/c4FdfxNAsCCwPp5phBYJtw==} + engines: {node: '>=0.10.0'} + dev: false + /array-slice@1.1.0: resolution: {integrity: sha512-B1qMD3RBP7O8o0H2KbrXDyB0IccejMF15+87Lvlor12ONPRHP6gTjXMNkt/d3ZuOGbAe66hFmaCfECI24Ufp6w==} engines: {node: '>=0.10.0'} @@ -13962,6 +13980,10 @@ packages: /safe-buffer@5.2.1: resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} + /safe-license-list@0.1.2: + resolution: {integrity: sha512-iY3tWEU++GUFO5iyNQgKdyYaV5/7g0g9IR3e2RXIm8f9/uzrlSt2EHje19Q185636EYpsR7NoZOfzfARzIc0bQ==} + dev: false + /safe-regex-test@1.0.0: resolution: {integrity: sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==} dependencies: @@ -14342,6 +14364,14 @@ packages: engines: {node: '>= 10.13.0'} dev: false + /spdx-compare@1.0.0: + resolution: {integrity: sha512-C1mDZOX0hnu0ep9dfmuoi03+eOdDoz2yvK79RxbcrVEG1NO1Ph35yW102DHWKN4pk80nwCgeMmSY5L25VE4D9A==} + dependencies: + array-find-index: 1.0.2 + spdx-expression-parse: 3.0.1 + spdx-ranges: 2.1.1 + dev: false + /spdx-correct@3.2.0: resolution: {integrity: sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==} dependencies: @@ -14351,18 +14381,27 @@ packages: /spdx-exceptions@2.3.0: resolution: {integrity: sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==} - dev: true /spdx-expression-parse@3.0.1: resolution: {integrity: sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==} dependencies: spdx-exceptions: 2.3.0 spdx-license-ids: 3.0.13 - dev: true /spdx-license-ids@3.0.13: resolution: {integrity: sha512-XkD+zwiqXHikFZm4AX/7JSCXA98U5Db4AFd5XUg/+9UNtnH75+Z9KxtpYiJZx36mUDVOwH83pl7yvCer6ewM3w==} - dev: true + + /spdx-ranges@2.1.1: + resolution: {integrity: sha512-mcdpQFV7UDAgLpXEE/jOMqvK4LBoO0uTQg0uvXUewmEFhpiZx5yJSZITHB8w1ZahKdhfZqP5GPEOKLyEq5p8XA==} + dev: false + + /spdx-satisfies@5.0.1: + resolution: {integrity: sha512-Nwor6W6gzFp8XX4neaKQ7ChV4wmpSh2sSDemMFSzHxpTw460jxFYeOn+jq4ybnSSw/5sc3pjka9MQPouksQNpw==} + dependencies: + spdx-compare: 1.0.0 + spdx-expression-parse: 3.0.1 + spdx-ranges: 2.1.1 + dev: false /split@0.3.3: resolution: {integrity: sha512-wD2AeVmxXRBoX44wAycgjVpMhvbwdI2aZjCkvfNcH1YqHQvJVa1duWc73OyVGJUc05fhFaTZeQ/PYsrmyH0JVA==} diff --git a/src/tools/index.ts b/src/tools/index.ts index c4eac984..bc31c4fe 100644 --- a/src/tools/index.ts +++ b/src/tools/index.ts @@ -75,6 +75,7 @@ import { tool as ansibleVaultCryptDecrypt } from './ansible-vault-crypt-decrypt' import { tool as gzipConverter } from './gzip-converter'; import { tool as htpasswdGenerator } from './htpasswd-generator'; import { tool as mimeConverter } from './mime-converter'; +import { tool as softwareLicenceCompatibility } from './software-licence-compatibility'; import { tool as safelinkDecoder } from './safelink-decoder'; import { tool as mongoObjectidConverter } from './mongo-objectid-converter'; import { tool as removeExif } from './remove-exif'; @@ -348,6 +349,7 @@ export const toolsByCategory: ToolCategory[] = [ userAgentParser, httpStatusCodes, jsonDiff, + softwareLicenceCompatibility, safelinkDecoder, apiTester, bounceParser, diff --git a/src/tools/software-licence-compatibility/index.ts b/src/tools/software-licence-compatibility/index.ts new file mode 100644 index 00000000..419170d0 --- /dev/null +++ b/src/tools/software-licence-compatibility/index.ts @@ -0,0 +1,12 @@ +import { License } from '@vicons/tabler'; +import { defineTool } from '../tool'; + +export const tool = defineTool({ + name: 'Software licence compatibility', + path: '/software-licence-compatibility', + description: 'Software Licence compatibility checker and information', + keywords: ['software', 'licence', 'compatibility'], + component: () => import('./software-licence-compatibility.vue'), + icon: License, + createdAt: new Date('2024-03-17'), +}); diff --git a/src/tools/software-licence-compatibility/software-licence-compatibility.vue b/src/tools/software-licence-compatibility/software-licence-compatibility.vue new file mode 100644 index 00000000..0bad5afe --- /dev/null +++ b/src/tools/software-licence-compatibility/software-licence-compatibility.vue @@ -0,0 +1,334 @@ + + +