mirror of
https://github.com/sharevb/it-tools.git
synced 2026-12-02 09:42:10 +03:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b17877498d |
No files matched your search
@@ -10385,32 +10385,6 @@ tools:
|
||||
label-input-key: Input Key
|
||||
placeholder-paste-ssh-key-here: Paste SSH key here...
|
||||
title-output-key: Output Key
|
||||
matter-qr-code-decoder:
|
||||
title: Matter QR code decoder
|
||||
description: >-
|
||||
Decode a Matter onboarding payload (MT:... QR code text) into its
|
||||
components: manual pairing code, passcode, discriminator, vendor and
|
||||
product IDs, discovery capabilities and optional data.
|
||||
texts:
|
||||
label-matter-qr-code-payload: Matter QR code payload
|
||||
placeholder-matter-qr-code-payload: 'MT:...'
|
||||
hint-qr-code-decoder: 'Only have the QR code image? Read its text with the'
|
||||
link-qr-code-decoder: QR Code Decoder
|
||||
title-device: 'Device {0}'
|
||||
title-optional-data: Optional data
|
||||
label-manual-pairing-code: Manual pairing code
|
||||
label-long-manual-pairing-code: Manual pairing code (with vendor/product ID)
|
||||
label-passcode: Passcode (setup PIN)
|
||||
label-discriminator: Discriminator
|
||||
label-short-discriminator: Short discriminator
|
||||
label-vendor-id: Vendor ID
|
||||
label-product-id: Product ID
|
||||
label-commissioning-flow: Commissioning flow
|
||||
label-discovery-capabilities: Discovery capabilities
|
||||
label-version: Version
|
||||
label-raw-payload: Raw payload (hex)
|
||||
test-vendor: test vendor
|
||||
none: None
|
||||
analogSignalConverter:
|
||||
texts:
|
||||
title-input: Input
|
||||
|
||||
+35
-35
@@ -319,7 +319,7 @@
|
||||
"pdf-signature-reader": "^1.4.3",
|
||||
"pdfjs-dist": "^4.10.38",
|
||||
"picomatch": "^4.0.5",
|
||||
"pinia": "^3.0.4",
|
||||
"pinia": "^4.0.0",
|
||||
"podletjs": "^1.0.2",
|
||||
"port-numbers": "^8.0.32",
|
||||
"postal-mime": "^2.7.5",
|
||||
@@ -416,40 +416,40 @@
|
||||
"@intlify/unplugin-vue-i18n": "^11.2.4",
|
||||
"@playwright/test": "^1.62.0",
|
||||
"@tsconfig/node24": "^24.0.4",
|
||||
"@types/arr-diff": "4.0.3",
|
||||
"@types/big.js": "7.0.0",
|
||||
"@types/codemirror": "5.60.17",
|
||||
"@types/damerau-levenshtein": "1.0.2",
|
||||
"@types/emscripten": "1.41.5",
|
||||
"@types/har-format": "1.2.16",
|
||||
"@types/hex-array": "1.0.2",
|
||||
"@types/js-beautify": "1.14.3",
|
||||
"@types/jsdom": "28.0.3",
|
||||
"@types/jsonpath": "0.2.4",
|
||||
"@types/leaflet": "1.9.21",
|
||||
"@types/libmime": "5.3.0",
|
||||
"@types/luxon": "3.7.2",
|
||||
"@types/markdown-it": "14.1.2",
|
||||
"@types/memorystream": "0.3.4",
|
||||
"@types/mime-types": "3.0.1",
|
||||
"@types/morsee": "1.0.2",
|
||||
"@types/nanoid-dictionary": "4.2.3",
|
||||
"@types/netmask": "2.0.6",
|
||||
"@types/node": "24.13.3",
|
||||
"@types/node-forge": "1.3.14",
|
||||
"@types/picomatch": "4.0.3",
|
||||
"@types/potrace": "2.1.5",
|
||||
"@types/punycode": "2.1.4",
|
||||
"@types/qrcode": "1.5.6",
|
||||
"@types/sanitize-html": "2.16.1",
|
||||
"@types/spdx-satisfies": "6.0.0",
|
||||
"@types/sshpk": "1.17.5",
|
||||
"@types/stopword": "2.0.3",
|
||||
"@types/stringify-object": "4.0.5",
|
||||
"@types/turndown": "5.0.6",
|
||||
"@types/ua-parser-js": "0.7.39",
|
||||
"@types/unist": "3.0.3",
|
||||
"@types/utf8": "3.0.3",
|
||||
"@types/arr-diff": "^4.0.3",
|
||||
"@types/big.js": "^7.0.0",
|
||||
"@types/codemirror": "^5.60.17",
|
||||
"@types/damerau-levenshtein": "^1.0.2",
|
||||
"@types/emscripten": "^1.41.5",
|
||||
"@types/har-format": "^1.2.16",
|
||||
"@types/hex-array": "^1.0.2",
|
||||
"@types/js-beautify": "^1.14.3",
|
||||
"@types/jsdom": "^28.0.0",
|
||||
"@types/jsonpath": "^0.2.4",
|
||||
"@types/leaflet": "^1.9.21",
|
||||
"@types/libmime": "^5.3.0",
|
||||
"@types/luxon": "^3.7.2",
|
||||
"@types/markdown-it": "^14.0.0",
|
||||
"@types/memorystream": "^0.3.4",
|
||||
"@types/mime-types": "^3.0.1",
|
||||
"@types/morsee": "^1.0.2",
|
||||
"@types/nanoid-dictionary": "^4.2.3",
|
||||
"@types/netmask": "^2.0.6",
|
||||
"@types/node": "^24.13.3",
|
||||
"@types/node-forge": "^1.3.14",
|
||||
"@types/picomatch": "^4.0.3",
|
||||
"@types/potrace": "^2.1.5",
|
||||
"@types/punycode": "^2.1.4",
|
||||
"@types/qrcode": "^1.5.6",
|
||||
"@types/sanitize-html": "^2.16.1",
|
||||
"@types/spdx-satisfies": "^6.0.0",
|
||||
"@types/sshpk": "^1.17.5",
|
||||
"@types/stopword": "^2.0.3",
|
||||
"@types/stringify-object": "^4.0.5",
|
||||
"@types/turndown": "^5.0.6",
|
||||
"@types/ua-parser-js": "^0.7.39",
|
||||
"@types/unist": "^3.0.3",
|
||||
"@types/utf8": "^3.0.3",
|
||||
"@vitejs/plugin-vue": "^6.0.7",
|
||||
"@vitejs/plugin-vue-jsx": "^5.1.6",
|
||||
"@vue/compiler-sfc": "^3.5.39",
|
||||
|
||||
Generated
+100
-135
@@ -427,7 +427,7 @@ importers:
|
||||
version: 14.3.0(async-validator@4.2.5)(axios@1.18.1(debug@4.4.3(supports-color@8.1.1))(supports-color@8.1.1))(change-case@5.4.4)(fuse.js@7.4.2)(idb-keyval@6.3.0)(jwt-decode@4.0.0)(qrcode@1.5.4)(sortablejs@1.14.0)(vue@3.5.39(typescript@6.0.3))
|
||||
'@vueuse/router':
|
||||
specifier: ^10.11.1
|
||||
version: 10.11.1(vue-router@5.1.0(@vue/compiler-sfc@3.5.39)(pinia@3.0.4(typescript@6.0.3)(vue@3.5.39(typescript@6.0.3)))(rolldown@1.1.4)(rollup@4.62.2)(vite@8.1.3(@types/node@24.13.3)(jiti@2.7.0)(less@4.6.7)(terser@5.48.0)(yaml@2.9.0))(vue@3.5.39(typescript@6.0.3))(webpack@5.108.3(csso@5.0.5)(lightningcss@1.32.0)(postcss@8.5.16)))(vue@3.5.39(typescript@6.0.3))
|
||||
version: 10.11.1(vue-router@5.1.0(@vue/compiler-sfc@3.5.39)(pinia@4.1.0(@vue/devtools-api@8.2.1)(typescript@6.0.3)(vue@3.5.39(typescript@6.0.3)))(rolldown@1.1.4)(rollup@4.62.2)(vite@8.1.3(@types/node@24.13.3)(jiti@2.7.0)(less@4.6.7)(terser@5.48.0)(yaml@2.9.0))(vue@3.5.39(typescript@6.0.3))(webpack@5.108.3(csso@5.0.5)(lightningcss@1.32.0)(postcss@8.5.16)))(vue@3.5.39(typescript@6.0.3))
|
||||
'@xmldom/xmldom':
|
||||
specifier: ^0.8.15
|
||||
version: 0.8.15
|
||||
@@ -1035,8 +1035,8 @@ importers:
|
||||
specifier: ^4.0.5
|
||||
version: 4.0.5
|
||||
pinia:
|
||||
specifier: ^3.0.4
|
||||
version: 3.0.4(typescript@6.0.3)(vue@3.5.39(typescript@6.0.3))
|
||||
specifier: ^4.0.0
|
||||
version: 4.1.0(@vue/devtools-api@8.2.1)(typescript@6.0.3)(vue@3.5.39(typescript@6.0.3))
|
||||
podletjs:
|
||||
specifier: ^1.0.2
|
||||
version: 1.0.2
|
||||
@@ -1255,7 +1255,7 @@ importers:
|
||||
version: 2.3.1(vue@3.5.39(typescript@6.0.3))
|
||||
vue-router:
|
||||
specifier: ^5.1.0
|
||||
version: 5.1.0(@vue/compiler-sfc@3.5.39)(pinia@3.0.4(typescript@6.0.3)(vue@3.5.39(typescript@6.0.3)))(rolldown@1.1.4)(rollup@4.62.2)(vite@8.1.3(@types/node@24.13.3)(jiti@2.7.0)(less@4.6.7)(terser@5.48.0)(yaml@2.9.0))(vue@3.5.39(typescript@6.0.3))(webpack@5.108.3(csso@5.0.5)(lightningcss@1.32.0)(postcss@8.5.16))
|
||||
version: 5.1.0(@vue/compiler-sfc@3.5.39)(pinia@4.1.0(@vue/devtools-api@8.2.1)(typescript@6.0.3)(vue@3.5.39(typescript@6.0.3)))(rolldown@1.1.4)(rollup@4.62.2)(vite@8.1.3(@types/node@24.13.3)(jiti@2.7.0)(less@4.6.7)(terser@5.48.0)(yaml@2.9.0))(vue@3.5.39(typescript@6.0.3))(webpack@5.108.3(csso@5.0.5)(lightningcss@1.32.0)(postcss@8.5.16))
|
||||
vue-shadow-dom:
|
||||
specifier: ^4.2.0
|
||||
version: 4.2.0
|
||||
@@ -1321,106 +1321,106 @@ importers:
|
||||
specifier: ^24.0.4
|
||||
version: 24.0.4
|
||||
'@types/arr-diff':
|
||||
specifier: 4.0.3
|
||||
specifier: ^4.0.3
|
||||
version: 4.0.3
|
||||
'@types/big.js':
|
||||
specifier: 7.0.0
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0
|
||||
'@types/codemirror':
|
||||
specifier: 5.60.17
|
||||
specifier: ^5.60.17
|
||||
version: 5.60.17
|
||||
'@types/damerau-levenshtein':
|
||||
specifier: 1.0.2
|
||||
specifier: ^1.0.2
|
||||
version: 1.0.2
|
||||
'@types/emscripten':
|
||||
specifier: 1.41.5
|
||||
specifier: ^1.41.5
|
||||
version: 1.41.5
|
||||
'@types/har-format':
|
||||
specifier: 1.2.16
|
||||
specifier: ^1.2.16
|
||||
version: 1.2.16
|
||||
'@types/hex-array':
|
||||
specifier: 1.0.2
|
||||
specifier: ^1.0.2
|
||||
version: 1.0.2
|
||||
'@types/js-beautify':
|
||||
specifier: 1.14.3
|
||||
specifier: ^1.14.3
|
||||
version: 1.14.3
|
||||
'@types/jsdom':
|
||||
specifier: 28.0.3
|
||||
specifier: ^28.0.0
|
||||
version: 28.0.3
|
||||
'@types/jsonpath':
|
||||
specifier: 0.2.4
|
||||
specifier: ^0.2.4
|
||||
version: 0.2.4
|
||||
'@types/leaflet':
|
||||
specifier: 1.9.21
|
||||
specifier: ^1.9.21
|
||||
version: 1.9.21
|
||||
'@types/libmime':
|
||||
specifier: 5.3.0
|
||||
specifier: ^5.3.0
|
||||
version: 5.3.0
|
||||
'@types/luxon':
|
||||
specifier: 3.7.2
|
||||
specifier: ^3.7.2
|
||||
version: 3.7.2
|
||||
'@types/markdown-it':
|
||||
specifier: 14.1.2
|
||||
specifier: ^14.0.0
|
||||
version: 14.1.2
|
||||
'@types/memorystream':
|
||||
specifier: 0.3.4
|
||||
specifier: ^0.3.4
|
||||
version: 0.3.4
|
||||
'@types/mime-types':
|
||||
specifier: 3.0.1
|
||||
specifier: ^3.0.1
|
||||
version: 3.0.1
|
||||
'@types/morsee':
|
||||
specifier: 1.0.2
|
||||
specifier: ^1.0.2
|
||||
version: 1.0.2
|
||||
'@types/nanoid-dictionary':
|
||||
specifier: 4.2.3
|
||||
specifier: ^4.2.3
|
||||
version: 4.2.3
|
||||
'@types/netmask':
|
||||
specifier: 2.0.6
|
||||
specifier: ^2.0.6
|
||||
version: 2.0.6
|
||||
'@types/node':
|
||||
specifier: 24.13.3
|
||||
specifier: ^24.13.3
|
||||
version: 24.13.3
|
||||
'@types/node-forge':
|
||||
specifier: 1.3.14
|
||||
specifier: ^1.3.14
|
||||
version: 1.3.14
|
||||
'@types/picomatch':
|
||||
specifier: 4.0.3
|
||||
specifier: ^4.0.3
|
||||
version: 4.0.3
|
||||
'@types/potrace':
|
||||
specifier: 2.1.5
|
||||
specifier: ^2.1.5
|
||||
version: 2.1.5(debug@4.4.3(supports-color@8.1.1))
|
||||
'@types/punycode':
|
||||
specifier: 2.1.4
|
||||
specifier: ^2.1.4
|
||||
version: 2.1.4
|
||||
'@types/qrcode':
|
||||
specifier: 1.5.6
|
||||
specifier: ^1.5.6
|
||||
version: 1.5.6
|
||||
'@types/sanitize-html':
|
||||
specifier: 2.16.1
|
||||
specifier: ^2.16.1
|
||||
version: 2.16.1
|
||||
'@types/spdx-satisfies':
|
||||
specifier: 6.0.0
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
'@types/sshpk':
|
||||
specifier: 1.17.5
|
||||
specifier: ^1.17.5
|
||||
version: 1.17.5
|
||||
'@types/stopword':
|
||||
specifier: 2.0.3
|
||||
specifier: ^2.0.3
|
||||
version: 2.0.3
|
||||
'@types/stringify-object':
|
||||
specifier: 4.0.5
|
||||
specifier: ^4.0.5
|
||||
version: 4.0.5
|
||||
'@types/turndown':
|
||||
specifier: 5.0.6
|
||||
specifier: ^5.0.6
|
||||
version: 5.0.6
|
||||
'@types/ua-parser-js':
|
||||
specifier: 0.7.39
|
||||
specifier: ^0.7.39
|
||||
version: 0.7.39
|
||||
'@types/unist':
|
||||
specifier: 3.0.3
|
||||
specifier: ^3.0.3
|
||||
version: 3.0.3
|
||||
'@types/utf8':
|
||||
specifier: 3.0.3
|
||||
specifier: ^3.0.3
|
||||
version: 3.0.3
|
||||
'@vitejs/plugin-vue':
|
||||
specifier: ^6.0.7
|
||||
@@ -1466,7 +1466,7 @@ importers:
|
||||
version: 4.6.7
|
||||
node:
|
||||
specifier: runtime:24.x
|
||||
version: runtime:24.21.0
|
||||
version: runtime:24.22.3
|
||||
oxfmt:
|
||||
specifier: ^0.57.0
|
||||
version: 0.57.0(svelte@5.56.4(@typescript-eslint/types@8.62.1))
|
||||
@@ -5202,24 +5202,24 @@ packages:
|
||||
'@vue/devtools-api@6.6.4':
|
||||
resolution: {integrity: sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==}
|
||||
|
||||
'@vue/devtools-api@7.7.10':
|
||||
resolution: {integrity: sha512-KxtEpUOOpFz/qOGRrAwA36QF7DqIA+FXgCYit9mk9wjbaZt0sXOFz81ElOZtKA4HbWHUdwNjZHBFsFFyp5BZiA==}
|
||||
|
||||
'@vue/devtools-api@8.1.5':
|
||||
resolution: {integrity: sha512-YJipMVAKe5wT5CWf5kTYCaNV7NMNjFVxJkIkJaJ4W/nCxEBzlZzrOsYKeCymdCrFZmBS/+wTWFoUs3Jf/Q6XSQ==}
|
||||
|
||||
'@vue/devtools-kit@7.7.10':
|
||||
resolution: {integrity: sha512-3WNi2Kq4tbpVbmhml7RiphmAt0279oh3fKNeWMQIrltfX8Q91b4i5PL8DtyNKdwmcsGrV4fg+erwWOmD05CLIw==}
|
||||
'@vue/devtools-api@8.2.1':
|
||||
resolution: {integrity: sha512-6u4vXBlIBAC1wMplIZgpyPn7uh/s4Bf6F5bMzvLv+EdJ0aHs/+4B7Ygv864EStQSjRbsRzTko/kUG1A1IejQ3A==}
|
||||
|
||||
'@vue/devtools-kit@8.1.5':
|
||||
resolution: {integrity: sha512-FcSAxsi4eWuXLCB7Rv9lj0aIVHHPNVQ2BazGf4RJTc2JCqb4BQg0hk87ZFhminCfl+mD5OUI0rX2cgyu4kJOGA==}
|
||||
|
||||
'@vue/devtools-shared@7.7.10':
|
||||
resolution: {integrity: sha512-wOPslzB8vTvpxwdaOcR2qAbwmuSP0L+rhpoC6Cf56V3Jip+HWb7PQQXOUPgBNQARpXsbQX/+mvi8kKucmBGRwQ==}
|
||||
'@vue/devtools-kit@8.2.1':
|
||||
resolution: {integrity: sha512-FIGIuq3AWReEpbAHY/cRGeHDfI0qOb8OCQ3YjbEAX04uaxIDbGc9rhkbVcG7rnfHPXE3RsU5KrWOu9V/okd8AQ==}
|
||||
|
||||
'@vue/devtools-shared@8.1.5':
|
||||
resolution: {integrity: sha512-mhT4zcPFhF+Xk1O4BfhhrbXzpmfqY03fS6xGpcllbQG7lDjhQf8pQHcTIhqQIYx1hfwtHmk/6jM96ele0UxPqQ==}
|
||||
|
||||
'@vue/devtools-shared@8.2.1':
|
||||
resolution: {integrity: sha512-Fkac7lUdGReh6pVOi3AYPRGe82LQqRmAfThW7RRligOAP0ZA/Z1z9XLHDM9dv34pV2HRc79DK8uKPeG2fLnA/g==}
|
||||
|
||||
'@vue/language-core@3.3.10':
|
||||
resolution: {integrity: sha512-CR7ByBbgPHqhxrioKPOcZBqttaozzLNwtkCzXQ+uF8gLPHnUe03srPnGpdtHD3zp+bq5iyVkZ1WNx7W564RPwg==}
|
||||
|
||||
@@ -6208,10 +6208,6 @@ packages:
|
||||
resolution: {integrity: sha512-yCEafptTtb4bk7GLEQoM8KVJpxAfdBJYaXyzQEgQQQgYrZiDp8SJmGKlYza6CYjEDNstAdNdKA3UuoULlEbS6w==}
|
||||
engines: {node: '>=12.13'}
|
||||
|
||||
copy-anything@4.0.5:
|
||||
resolution: {integrity: sha512-7Vv6asjS4gMOuILabD3l739tsaxFQmC+a7pLZm02zyvs8p977bL3zEgq3yDk5rn9B0PbYgIv++jmHcuUab4RhA==}
|
||||
engines: {node: '>=18'}
|
||||
|
||||
copy-props@4.0.0:
|
||||
resolution: {integrity: sha512-bVWtw1wQLzzKiYROtvNlbJgxgBYt2bMJpkCbKmXM3xyijvcjjWXEk5nyrrT3bgJ7ODb19ZohE2T0Y3FgNPyoTw==}
|
||||
engines: {node: '>= 10.13.0'}
|
||||
@@ -9034,9 +9030,6 @@ packages:
|
||||
mitex-wasm@0.2.5:
|
||||
resolution: {integrity: sha512-pGIaSWmcfFEW/zjsNwgg2Y/Xthiah8ZLWU8QlF21dJPql8ifr1D268V5A5AwDZcGzfe2t44D4uEpGj81DUGCsA==}
|
||||
|
||||
mitt@3.0.1:
|
||||
resolution: {integrity: sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==}
|
||||
|
||||
mkdirp@0.5.6:
|
||||
resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==}
|
||||
hasBin: true
|
||||
@@ -9216,7 +9209,7 @@ packages:
|
||||
resolution: {integrity: sha512-X75ZN8DCLftGM5iKwoYLA3rjnrAEs97MkzvSd4q2746Tgpg8b8XWiBGiBG4ZpgcAqBgtgPHTiAc8ZMCvZuikDw==}
|
||||
engines: {node: '>=10'}
|
||||
|
||||
node@runtime:24.21.0:
|
||||
node@runtime:24.22.3:
|
||||
resolution:
|
||||
type: variations
|
||||
variants:
|
||||
@@ -9224,9 +9217,9 @@ packages:
|
||||
archive: tarball
|
||||
bin:
|
||||
node: bin/node
|
||||
integrity: sha256-rseyRkr7mfB4wZywbSAdVDvTsxHLoHEoK84bF8l+WLs=
|
||||
integrity: sha256-aT/ojEqF5+Fy7BMvdg5ns5JbLWRCyxyzp0tz/Pgx9wo=
|
||||
type: binary
|
||||
url: https://nodejs.org/download/release/v24.21.0/node-v24.21.0-aix-ppc64.tar.gz
|
||||
url: https://nodejs.org/download/release/v24.22.3/node-v24.22.3-aix-ppc64.tar.gz
|
||||
targets:
|
||||
- cpu: ppc64
|
||||
os: aix
|
||||
@@ -9234,9 +9227,9 @@ packages:
|
||||
archive: tarball
|
||||
bin:
|
||||
node: bin/node
|
||||
integrity: sha256-vtfupTJeEQjzLOUijd1qXw8IpJnuQqp0Qq6lg3AvYFc=
|
||||
integrity: sha256-/24X1IdLdtJyISuQjMAg1ugV+6Wmx+qqBq3XJYQDB/0=
|
||||
type: binary
|
||||
url: https://nodejs.org/download/release/v24.21.0/node-v24.21.0-darwin-arm64.tar.gz
|
||||
url: https://nodejs.org/download/release/v24.22.3/node-v24.22.3-darwin-arm64.tar.gz
|
||||
targets:
|
||||
- cpu: arm64
|
||||
os: darwin
|
||||
@@ -9244,9 +9237,9 @@ packages:
|
||||
archive: tarball
|
||||
bin:
|
||||
node: bin/node
|
||||
integrity: sha256-FGLLOzBGuBXPjqQ209pFDsGp8R2sflpGsK2lMF1+gJc=
|
||||
integrity: sha256-l3YUrwUEyBBF5/2FWW28oOX5UblmgVFtra/tzKjER/c=
|
||||
type: binary
|
||||
url: https://nodejs.org/download/release/v24.21.0/node-v24.21.0-darwin-x64.tar.gz
|
||||
url: https://nodejs.org/download/release/v24.22.3/node-v24.22.3-darwin-x64.tar.gz
|
||||
targets:
|
||||
- cpu: x64
|
||||
os: darwin
|
||||
@@ -9254,9 +9247,9 @@ packages:
|
||||
archive: tarball
|
||||
bin:
|
||||
node: bin/node
|
||||
integrity: sha256-ckKCw7Q67JmKqVJzgEZbRdIp4CG1gDX19PYwleq/5dU=
|
||||
integrity: sha256-JhryryUN/X6fJc8VHRsnE6Ct+PEKmtEWxJR/aGJ6/+g=
|
||||
type: binary
|
||||
url: https://nodejs.org/download/release/v24.21.0/node-v24.21.0-linux-arm64.tar.gz
|
||||
url: https://nodejs.org/download/release/v24.22.3/node-v24.22.3-linux-arm64.tar.gz
|
||||
targets:
|
||||
- cpu: arm64
|
||||
os: linux
|
||||
@@ -9264,9 +9257,9 @@ packages:
|
||||
archive: tarball
|
||||
bin:
|
||||
node: bin/node
|
||||
integrity: sha256-UcXVMGbukpILYXg7A7Buy5nzZhFg97Fcp36EdBFaZ7w=
|
||||
integrity: sha256-uksmreH3s/W6Z1aFaBXeWONTdGAE5+RsyDgkOmy/Mpk=
|
||||
type: binary
|
||||
url: https://nodejs.org/download/release/v24.21.0/node-v24.21.0-linux-ppc64le.tar.gz
|
||||
url: https://nodejs.org/download/release/v24.22.3/node-v24.22.3-linux-ppc64le.tar.gz
|
||||
targets:
|
||||
- cpu: ppc64le
|
||||
os: linux
|
||||
@@ -9274,9 +9267,9 @@ packages:
|
||||
archive: tarball
|
||||
bin:
|
||||
node: bin/node
|
||||
integrity: sha256-Xy+jdCLgx13jXBaG/lHXgyTywqj+LMI5pB2cAAop2Tg=
|
||||
integrity: sha256-2PhDl8FHjA7QwbKTQ2Ju0PXxoJhd8MWXXDDwwDg2Yx8=
|
||||
type: binary
|
||||
url: https://nodejs.org/download/release/v24.21.0/node-v24.21.0-linux-s390x.tar.gz
|
||||
url: https://nodejs.org/download/release/v24.22.3/node-v24.22.3-linux-s390x.tar.gz
|
||||
targets:
|
||||
- cpu: s390x
|
||||
os: linux
|
||||
@@ -9284,9 +9277,9 @@ packages:
|
||||
archive: tarball
|
||||
bin:
|
||||
node: bin/node
|
||||
integrity: sha256-PWNAX8ZaDS0pdsHwvC/Se7C9ByEkaecFqsPwOuWrTJw=
|
||||
integrity: sha256-VJm2Y/Yscgk3FdqY9K6m+DQnrYurnPnHXwkk4ORWzhQ=
|
||||
type: binary
|
||||
url: https://nodejs.org/download/release/v24.21.0/node-v24.21.0-linux-x64-musl.tar.gz
|
||||
url: https://nodejs.org/download/release/v24.22.3/node-v24.22.3-linux-x64-musl.tar.gz
|
||||
targets:
|
||||
- cpu: x64
|
||||
os: linux
|
||||
@@ -9295,9 +9288,9 @@ packages:
|
||||
archive: tarball
|
||||
bin:
|
||||
node: bin/node
|
||||
integrity: sha256-bh24fvWLiBnl1UAu/xU2SRsY7djre+5e94l4duiNxf8=
|
||||
integrity: sha256-Bh7D4wYhFXBbVrUfqcwzCrUNNLaWk4fU5LGlDGgJrMI=
|
||||
type: binary
|
||||
url: https://nodejs.org/download/release/v24.21.0/node-v24.21.0-linux-x64.tar.gz
|
||||
url: https://nodejs.org/download/release/v24.22.3/node-v24.22.3-linux-x64.tar.gz
|
||||
targets:
|
||||
- cpu: x64
|
||||
os: linux
|
||||
@@ -9305,10 +9298,10 @@ packages:
|
||||
archive: zip
|
||||
bin:
|
||||
node: node.exe
|
||||
integrity: sha256-h3mxveHTn41CDjtXqmV7OYka9DTT3kSpGQRM7AZ4WSE=
|
||||
prefix: node-v24.21.0-win-arm64
|
||||
integrity: sha256-s8x0opWznU8nMnHpb1jAbdKzV1fKEqvsZMfQWYtDTxQ=
|
||||
prefix: node-v24.22.3-win-arm64
|
||||
type: binary
|
||||
url: https://nodejs.org/download/release/v24.21.0/node-v24.21.0-win-arm64.zip
|
||||
url: https://nodejs.org/download/release/v24.22.3/node-v24.22.3-win-arm64.zip
|
||||
targets:
|
||||
- cpu: arm64
|
||||
os: win32
|
||||
@@ -9316,10 +9309,10 @@ packages:
|
||||
archive: zip
|
||||
bin:
|
||||
node: node.exe
|
||||
integrity: sha256-FY92hbRN5R9sDfHRU1JsvNPhvHOajfxgdyHO913p5UE=
|
||||
prefix: node-v24.21.0-win-x64
|
||||
integrity: sha256-5hKvmfYmq0FeoiWva85clx/rRIy1yuJQuxw/pQxffZ8=
|
||||
prefix: node-v24.22.3-win-x64
|
||||
type: binary
|
||||
url: https://nodejs.org/download/release/v24.21.0/node-v24.21.0-win-x64.zip
|
||||
url: https://nodejs.org/download/release/v24.22.3/node-v24.22.3-win-x64.zip
|
||||
targets:
|
||||
- cpu: x64
|
||||
os: win32
|
||||
@@ -9327,9 +9320,9 @@ packages:
|
||||
archive: tarball
|
||||
bin:
|
||||
node: bin/node
|
||||
integrity: sha256-MEiwgR4VjKDYZytZyDmGF2PhREkpgNjSmzad/uRXR+Q=
|
||||
integrity: sha256-JIyWqE9sgzhka5/XO/ElEkZ4+PsI218jAj9GIFXg7tw=
|
||||
type: binary
|
||||
url: https://unofficial-builds.nodejs.org/download/release/v24.21.0/node-v24.21.0-linux-arm64-musl.tar.gz
|
||||
url: https://unofficial-builds.nodejs.org/download/release/v24.22.3/node-v24.22.3-linux-arm64-musl.tar.gz
|
||||
targets:
|
||||
- cpu: arm64
|
||||
os: linux
|
||||
@@ -9338,14 +9331,14 @@ packages:
|
||||
archive: tarball
|
||||
bin:
|
||||
node: bin/node
|
||||
integrity: sha256-AacT402pjntNKjGR7nyj+T3QOE0aLvI8N5shYe5uEzo=
|
||||
integrity: sha256-LbT4pAq+X1tdEZlkIj/tycTHxefGMpAa6GCvUix4RLI=
|
||||
type: binary
|
||||
url: https://unofficial-builds.nodejs.org/download/release/v24.21.0/node-v24.21.0-linux-x64-musl.tar.gz
|
||||
url: https://unofficial-builds.nodejs.org/download/release/v24.22.3/node-v24.22.3-linux-x64-musl.tar.gz
|
||||
targets:
|
||||
- cpu: x64
|
||||
os: linux
|
||||
libc: musl
|
||||
version: 24.21.0
|
||||
version: 24.22.3
|
||||
hasBin: true
|
||||
|
||||
nodemailer@9.0.1:
|
||||
@@ -9366,6 +9359,9 @@ packages:
|
||||
resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
|
||||
nostics@1.4.0:
|
||||
resolution: {integrity: sha512-WjXHOuNuzY3MPKOoCT2zL1Sa3cS2mOUe4o8F94JvBOH2cGfyNItbQmCb2pNHIxoodd5O+vtmmHq7PoSZVGgCHA==}
|
||||
|
||||
now-and-later@3.0.0:
|
||||
resolution: {integrity: sha512-pGO4pzSdaxhWTGkfSfHx3hVzJVslFPwBp2Myq9MYN/ChfJZF87ochMAXnvz6/58RJSf5ik2q9tXprBBrk2cpcg==}
|
||||
engines: {node: '>= 10.13.0'}
|
||||
@@ -9740,9 +9736,6 @@ packages:
|
||||
resolution: {integrity: sha512-ZI3LnwUv5nOGbQzD9c2iDG6toheuXSZP5esSHBjopsXH4dg19soufvpUGA3uohi5anFtGb2lhAVdHzH6R/Evvg==}
|
||||
engines: {node: '>=8'}
|
||||
|
||||
perfect-debounce@1.0.0:
|
||||
resolution: {integrity: sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==}
|
||||
|
||||
perfect-debounce@2.1.0:
|
||||
resolution: {integrity: sha512-LjgdTytVFXeUgtHZr9WYViYSM/g8MkcTPYDlPa3cDqMirHjKiSZPYd6DoL7pK8AJQr+uWkQvCjHNdiMqsrJs+g==}
|
||||
|
||||
@@ -9769,10 +9762,11 @@ packages:
|
||||
resolution: {integrity: sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==}
|
||||
engines: {node: '>=12'}
|
||||
|
||||
pinia@3.0.4:
|
||||
resolution: {integrity: sha512-l7pqLUFTI/+ESXn6k3nu30ZIzW5E2WZF/LaHJEpoq6ElcLD+wduZoB2kBN19du6K/4FDpPMazY2wJr+IndBtQw==}
|
||||
pinia@4.1.0:
|
||||
resolution: {integrity: sha512-+5/HMuVjYQfKlCD5xQ7zfXn1xUzYFEa7pd0DQK5SaMfZCaFRTHlaH/c02N1FoGOdlzSiwf5EOPgJx//1QDw6gw==}
|
||||
peerDependencies:
|
||||
typescript: '>=4.5.0'
|
||||
'@vue/devtools-api': ^8.2.1
|
||||
typescript: '>=5.6.0'
|
||||
vue: ^3.5.11
|
||||
peerDependenciesMeta:
|
||||
typescript:
|
||||
@@ -10252,9 +10246,6 @@ packages:
|
||||
resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==}
|
||||
engines: {iojs: '>=1.0.0', node: '>=0.10.0'}
|
||||
|
||||
rfdc@1.4.1:
|
||||
resolution: {integrity: sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==}
|
||||
|
||||
riimut@0.9.1:
|
||||
resolution: {integrity: sha512-ifqTWJLoAjneRuhP7k54Nn2pHv7SbcaggXJjj0zaHHSWdxO5Yqs6w5xCKKVG7Ie2Uca7nlXqulxXzf+EH6tIYQ==}
|
||||
engines: {node: '>=12.0.0'}
|
||||
@@ -10547,10 +10538,6 @@ packages:
|
||||
spdx-satisfies@6.0.0:
|
||||
resolution: {integrity: sha512-oOWQocnRbFVtBnBITfFgzjhnOklHossTvI+6C1hB2slvp3HgTsfru5wuo8HY2rQpwSm5JuIhNzIuqOfR5IuojQ==}
|
||||
|
||||
speakingurl@14.0.1:
|
||||
resolution: {integrity: sha512-1POYv7uv2gXoyGFpBCmpDVSNV74IfsWlDW216UPjbWufNf+bSU6GdbDsxdcxtfwb4xlI3yxzOTKClUosxARYrQ==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
|
||||
sponge-case@2.0.3:
|
||||
resolution: {integrity: sha512-i4h9ZGRfxV6Xw3mpZSFOfbXjf0cQcYmssGWutgNIfFZ2VM+YIWfD71N/kjjwK6X/AAHzBr+rciEcn/L34S8TGw==}
|
||||
|
||||
@@ -10727,10 +10714,6 @@ packages:
|
||||
resolution: {integrity: sha512-WHkws2ZflZe41zj6AolvvmaTrWds/VuyeYr9iPVv/oQeaIoVxMKaushfFWpOGDT+GuBrM/sVqF8KUCYQlSSTdQ==}
|
||||
engines: {node: '>=18'}
|
||||
|
||||
superjson@2.2.6:
|
||||
resolution: {integrity: sha512-H+ue8Zo4vJmV2nRjpx86P35lzwDT3nItnIsocgumgr0hHMQ+ZGq5vrERg9kJBo5AWGmxZDhzDo+WVIJqkB0cGA==}
|
||||
engines: {node: '>=16'}
|
||||
|
||||
supports-color@5.5.0:
|
||||
resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==}
|
||||
engines: {node: '>=4'}
|
||||
@@ -15935,23 +15918,13 @@ snapshots:
|
||||
|
||||
'@vue/devtools-api@6.6.4': {}
|
||||
|
||||
'@vue/devtools-api@7.7.10':
|
||||
dependencies:
|
||||
'@vue/devtools-kit': 7.7.10
|
||||
|
||||
'@vue/devtools-api@8.1.5':
|
||||
dependencies:
|
||||
'@vue/devtools-kit': 8.1.5
|
||||
|
||||
'@vue/devtools-kit@7.7.10':
|
||||
'@vue/devtools-api@8.2.1':
|
||||
dependencies:
|
||||
'@vue/devtools-shared': 7.7.10
|
||||
birpc: 2.9.0
|
||||
hookable: 5.5.3
|
||||
mitt: 3.0.1
|
||||
perfect-debounce: 1.0.0
|
||||
speakingurl: 14.0.1
|
||||
superjson: 2.2.6
|
||||
'@vue/devtools-kit': 8.2.1
|
||||
|
||||
'@vue/devtools-kit@8.1.5':
|
||||
dependencies:
|
||||
@@ -15960,12 +15933,17 @@ snapshots:
|
||||
hookable: 5.5.3
|
||||
perfect-debounce: 2.1.0
|
||||
|
||||
'@vue/devtools-shared@7.7.10':
|
||||
'@vue/devtools-kit@8.2.1':
|
||||
dependencies:
|
||||
rfdc: 1.4.1
|
||||
'@vue/devtools-shared': 8.2.1
|
||||
birpc: 2.9.0
|
||||
hookable: 5.5.3
|
||||
perfect-debounce: 2.1.0
|
||||
|
||||
'@vue/devtools-shared@8.1.5': {}
|
||||
|
||||
'@vue/devtools-shared@8.2.1': {}
|
||||
|
||||
'@vue/language-core@3.3.10':
|
||||
dependencies:
|
||||
'@volar/language-core': 2.4.28
|
||||
@@ -16058,11 +16036,11 @@ snapshots:
|
||||
|
||||
'@vueuse/metadata@14.3.0': {}
|
||||
|
||||
'@vueuse/router@10.11.1(vue-router@5.1.0(@vue/compiler-sfc@3.5.39)(pinia@3.0.4(typescript@6.0.3)(vue@3.5.39(typescript@6.0.3)))(rolldown@1.1.4)(rollup@4.62.2)(vite@8.1.3(@types/node@24.13.3)(jiti@2.7.0)(less@4.6.7)(terser@5.48.0)(yaml@2.9.0))(vue@3.5.39(typescript@6.0.3))(webpack@5.108.3(csso@5.0.5)(lightningcss@1.32.0)(postcss@8.5.16)))(vue@3.5.39(typescript@6.0.3))':
|
||||
'@vueuse/router@10.11.1(vue-router@5.1.0(@vue/compiler-sfc@3.5.39)(pinia@4.1.0(@vue/devtools-api@8.2.1)(typescript@6.0.3)(vue@3.5.39(typescript@6.0.3)))(rolldown@1.1.4)(rollup@4.62.2)(vite@8.1.3(@types/node@24.13.3)(jiti@2.7.0)(less@4.6.7)(terser@5.48.0)(yaml@2.9.0))(vue@3.5.39(typescript@6.0.3))(webpack@5.108.3(csso@5.0.5)(lightningcss@1.32.0)(postcss@8.5.16)))(vue@3.5.39(typescript@6.0.3))':
|
||||
dependencies:
|
||||
'@vueuse/shared': 13.9.0(vue@3.5.39(typescript@6.0.3))
|
||||
vue-demi: 0.14.10(vue@3.5.39(typescript@6.0.3))
|
||||
vue-router: 5.1.0(@vue/compiler-sfc@3.5.39)(pinia@3.0.4(typescript@6.0.3)(vue@3.5.39(typescript@6.0.3)))(rolldown@1.1.4)(rollup@4.62.2)(vite@8.1.3(@types/node@24.13.3)(jiti@2.7.0)(less@4.6.7)(terser@5.48.0)(yaml@2.9.0))(vue@3.5.39(typescript@6.0.3))(webpack@5.108.3(csso@5.0.5)(lightningcss@1.32.0)(postcss@8.5.16))
|
||||
vue-router: 5.1.0(@vue/compiler-sfc@3.5.39)(pinia@4.1.0(@vue/devtools-api@8.2.1)(typescript@6.0.3)(vue@3.5.39(typescript@6.0.3)))(rolldown@1.1.4)(rollup@4.62.2)(vite@8.1.3(@types/node@24.13.3)(jiti@2.7.0)(less@4.6.7)(terser@5.48.0)(yaml@2.9.0))(vue@3.5.39(typescript@6.0.3))(webpack@5.108.3(csso@5.0.5)(lightningcss@1.32.0)(postcss@8.5.16))
|
||||
transitivePeerDependencies:
|
||||
- '@vue/composition-api'
|
||||
- vue
|
||||
@@ -16957,10 +16935,6 @@ snapshots:
|
||||
dependencies:
|
||||
is-what: 4.1.16
|
||||
|
||||
copy-anything@4.0.5:
|
||||
dependencies:
|
||||
is-what: 5.5.0
|
||||
|
||||
copy-props@4.0.0:
|
||||
dependencies:
|
||||
each-props: 3.0.0
|
||||
@@ -20066,8 +20040,6 @@ snapshots:
|
||||
|
||||
mitex-wasm@0.2.5: {}
|
||||
|
||||
mitt@3.0.1: {}
|
||||
|
||||
mkdirp@0.5.6:
|
||||
dependencies:
|
||||
minimist: 1.2.8
|
||||
@@ -20290,7 +20262,7 @@ snapshots:
|
||||
util: 0.12.5
|
||||
vm-browserify: 1.1.2
|
||||
|
||||
node@runtime:24.21.0: {}
|
||||
node@runtime:24.22.3: {}
|
||||
|
||||
nodemailer@9.0.1: {}
|
||||
|
||||
@@ -20304,6 +20276,8 @@ snapshots:
|
||||
|
||||
normalize-path@3.0.0: {}
|
||||
|
||||
nostics@1.4.0: {}
|
||||
|
||||
now-and-later@3.0.0:
|
||||
dependencies:
|
||||
once: 1.4.0
|
||||
@@ -20756,8 +20730,6 @@ snapshots:
|
||||
|
||||
peek-readable@4.1.0: {}
|
||||
|
||||
perfect-debounce@1.0.0: {}
|
||||
|
||||
perfect-debounce@2.1.0: {}
|
||||
|
||||
phin@2.9.3: {}
|
||||
@@ -20776,9 +20748,10 @@ snapshots:
|
||||
|
||||
picomatch@4.0.5: {}
|
||||
|
||||
pinia@3.0.4(typescript@6.0.3)(vue@3.5.39(typescript@6.0.3)):
|
||||
pinia@4.1.0(@vue/devtools-api@8.2.1)(typescript@6.0.3)(vue@3.5.39(typescript@6.0.3)):
|
||||
dependencies:
|
||||
'@vue/devtools-api': 7.7.10
|
||||
'@vue/devtools-api': 8.2.1
|
||||
nostics: 1.4.0
|
||||
vue: 3.5.39(typescript@6.0.3)
|
||||
optionalDependencies:
|
||||
typescript: 6.0.3
|
||||
@@ -21316,8 +21289,6 @@ snapshots:
|
||||
|
||||
reusify@1.1.0: {}
|
||||
|
||||
rfdc@1.4.1: {}
|
||||
|
||||
riimut@0.9.1: {}
|
||||
|
||||
ripemd160@2.0.3:
|
||||
@@ -21698,8 +21669,6 @@ snapshots:
|
||||
spdx-expression-parse: 3.0.1
|
||||
spdx-ranges: 2.1.1
|
||||
|
||||
speakingurl@14.0.1: {}
|
||||
|
||||
sponge-case@2.0.3: {}
|
||||
|
||||
sprintf-js@1.0.3: {}
|
||||
@@ -21942,10 +21911,6 @@ snapshots:
|
||||
make-asynchronous: 1.1.0
|
||||
time-span: 5.1.0
|
||||
|
||||
superjson@2.2.6:
|
||||
dependencies:
|
||||
copy-anything: 4.0.5
|
||||
|
||||
supports-color@5.5.0:
|
||||
dependencies:
|
||||
has-flag: 3.0.0
|
||||
@@ -22840,7 +22805,7 @@ snapshots:
|
||||
markdown-it: 14.3.0
|
||||
vue: 3.5.39(typescript@6.0.3)
|
||||
|
||||
vue-router@5.1.0(@vue/compiler-sfc@3.5.39)(pinia@3.0.4(typescript@6.0.3)(vue@3.5.39(typescript@6.0.3)))(rolldown@1.1.4)(rollup@4.62.2)(vite@8.1.3(@types/node@24.13.3)(jiti@2.7.0)(less@4.6.7)(terser@5.48.0)(yaml@2.9.0))(vue@3.5.39(typescript@6.0.3))(webpack@5.108.3(csso@5.0.5)(lightningcss@1.32.0)(postcss@8.5.16)):
|
||||
vue-router@5.1.0(@vue/compiler-sfc@3.5.39)(pinia@4.1.0(@vue/devtools-api@8.2.1)(typescript@6.0.3)(vue@3.5.39(typescript@6.0.3)))(rolldown@1.1.4)(rollup@4.62.2)(vite@8.1.3(@types/node@24.13.3)(jiti@2.7.0)(less@4.6.7)(terser@5.48.0)(yaml@2.9.0))(vue@3.5.39(typescript@6.0.3))(webpack@5.108.3(csso@5.0.5)(lightningcss@1.32.0)(postcss@8.5.16)):
|
||||
dependencies:
|
||||
'@babel/generator': 8.0.0
|
||||
'@vue-macros/common': 3.1.2(vue@3.5.39(typescript@6.0.3))
|
||||
@@ -22862,7 +22827,7 @@ snapshots:
|
||||
yaml: 2.9.0
|
||||
optionalDependencies:
|
||||
'@vue/compiler-sfc': 3.5.39
|
||||
pinia: 3.0.4(typescript@6.0.3)(vue@3.5.39(typescript@6.0.3))
|
||||
pinia: 4.1.0(@vue/devtools-api@8.2.1)(typescript@6.0.3)(vue@3.5.39(typescript@6.0.3))
|
||||
vite: 8.1.3(@types/node@24.13.3)(jiti@2.7.0)(less@4.6.7)(terser@5.48.0)(yaml@2.9.0)
|
||||
transitivePeerDependencies:
|
||||
- '@farmfe/core'
|
||||
|
||||
@@ -37,12 +37,6 @@ test.describe('Tool - List converter', () => {
|
||||
expect(result.trim()).toEqual("'1', '2', '4', '3', '5'");
|
||||
});
|
||||
|
||||
test('removes duplicates after trimming whitespace', async ({ page }) => {
|
||||
await page.getByTestId('input').fill('apple\n apple');
|
||||
|
||||
await expect(page.getByTestId('area-content')).toHaveText('apple');
|
||||
});
|
||||
|
||||
test('List input should be converted to column output and strip wrappers', async ({ page }) => {
|
||||
await page.getByTestId('input').fill("('test','test2')");
|
||||
await page.getByTestId('outputAsColumn').check();
|
||||
|
||||
@@ -23,14 +23,6 @@ describe('list-converter', () => {
|
||||
expect(convert(input, options)).toEqual('"1", "2", "3", "4"');
|
||||
});
|
||||
|
||||
it('should compare trimmed items when removing duplicates', () => {
|
||||
const input = 'apple\n apple';
|
||||
const options: ConvertOptions = { itemsSeparator: ', ', removeDuplicates: true };
|
||||
|
||||
expect(convert(input, { ...options, trimItems: false })).toEqual('apple, apple');
|
||||
expect(convert(input, { ...options, trimItems: true })).toEqual('apple');
|
||||
});
|
||||
|
||||
it('should return an empty value for an empty input', () => {
|
||||
const options: ConvertOptions = {
|
||||
itemsSeparator: ', ',
|
||||
|
||||
@@ -56,15 +56,15 @@ function convert(list: string, options: ConvertOptions): string {
|
||||
const text = options.lowerCase ? sourceList.toLowerCase() : sourceList;
|
||||
|
||||
let parts = text.split(splitRegExp);
|
||||
if (options.trimItems) {
|
||||
parts = parts.map((part) => part.trim());
|
||||
}
|
||||
if (options.removeDuplicates) {
|
||||
parts = [...new Set(parts)];
|
||||
}
|
||||
if (options.reverseList) {
|
||||
parts = parts.reverse();
|
||||
}
|
||||
if (options.trimItems) {
|
||||
parts = parts.map((part) => part.trim());
|
||||
}
|
||||
parts = parts
|
||||
.filter((part) => filterRegExp === null || filterRegExp?.test(part))
|
||||
.filter((part) => notFilterRegExp === null || !notFilterRegExp?.test(part));
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
import { defineTool } from '../tool';
|
||||
import { translate as t } from '@/plugins/i18n.plugin';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: t('tools.matter-qr-code-decoder.title'),
|
||||
path: '/matter-qr-code-decoder',
|
||||
description: t('tools.matter-qr-code-decoder.description'),
|
||||
keywords: [
|
||||
'matter',
|
||||
'qrcode',
|
||||
'qr-code',
|
||||
'decoder',
|
||||
'onboarding',
|
||||
'payload',
|
||||
'pairing',
|
||||
'setup',
|
||||
'code',
|
||||
'discriminator',
|
||||
'passcode',
|
||||
'smart',
|
||||
'home',
|
||||
'iot',
|
||||
],
|
||||
component: () => import('./matter-qr-code-decoder.vue'),
|
||||
icon: defineAsyncComponent(() => import('@vicons/tabler/es/Qrcode')),
|
||||
createdAt: new Date('2026-11-28'),
|
||||
category: 'Barcodes',
|
||||
});
|
||||
@@ -1,134 +0,0 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import {
|
||||
base38Decode,
|
||||
base38Encode,
|
||||
computeManualPairingCode,
|
||||
decodeMatterQrPayload,
|
||||
encodeMatterQrPayload,
|
||||
formatManualPairingCode,
|
||||
isValidPasscode,
|
||||
verhoeffCheckDigit,
|
||||
} from './matter-qr-code-decoder.service';
|
||||
|
||||
// Default payloads of the Matter SDK example devices.
|
||||
const SDK_EXAMPLE = 'MT:-24J0AFN00KA0648G00';
|
||||
const SDK_EXAMPLE_BLE = 'MT:Y.K9042C00KA0648G00';
|
||||
const SDK_EXAMPLE_FIELDS = {
|
||||
vendorId: 0xfff1,
|
||||
productId: 0x8001,
|
||||
commissioningFlow: 0,
|
||||
discoveryCapabilities: 4,
|
||||
discriminator: 3840,
|
||||
passcode: 20202021,
|
||||
};
|
||||
|
||||
describe('matter-qr-code-decoder', () => {
|
||||
it('decodes the Matter SDK example payload', () => {
|
||||
const [payload] = decodeMatterQrPayload(SDK_EXAMPLE);
|
||||
expect(payload).toMatchObject({
|
||||
version: 0,
|
||||
vendorId: 0xfff1,
|
||||
productId: 0x8001,
|
||||
commissioningFlow: 0,
|
||||
commissioningFlowName: 'Standard',
|
||||
discoveryCapabilities: 4,
|
||||
discoveryCapabilityNames: ['On IP network'],
|
||||
discriminator: 3840,
|
||||
shortDiscriminator: 15,
|
||||
passcode: 20202021,
|
||||
isPasscodeValid: true,
|
||||
manualPairingCode: '34970112332',
|
||||
longManualPairingCode: null,
|
||||
optionalData: [],
|
||||
rawHex: '88FF0F008400E04B846802',
|
||||
warnings: [],
|
||||
});
|
||||
expect(decodeMatterQrPayload(SDK_EXAMPLE_BLE)[0]).toMatchObject({
|
||||
productId: 0x8000,
|
||||
discoveryCapabilityNames: ['BLE'],
|
||||
manualPairingCode: '34970112332',
|
||||
});
|
||||
});
|
||||
|
||||
it('accepts lowercase input and surrounding whitespace', () => {
|
||||
expect(decodeMatterQrPayload(` ${SDK_EXAMPLE.toLowerCase()}\n`)[0].passcode).toBe(20202021);
|
||||
});
|
||||
|
||||
it('decodes concatenated payloads', () => {
|
||||
const second = encodeMatterQrPayload({
|
||||
vendorId: 0x1234,
|
||||
productId: 0x5678,
|
||||
commissioningFlow: 0,
|
||||
discoveryCapabilities: 4,
|
||||
discriminator: 0x123,
|
||||
passcode: 12345679,
|
||||
});
|
||||
const payloads = decodeMatterQrPayload(`${SDK_EXAMPLE}*${second.slice(3)}`);
|
||||
expect(payloads).toHaveLength(2);
|
||||
expect(payloads[1]).toMatchObject({ vendorId: 0x1234, productId: 0x5678, discriminator: 0x123 });
|
||||
});
|
||||
|
||||
it('round-trips encode and decode', () => {
|
||||
const fields = {
|
||||
vendorId: 0xabcd,
|
||||
productId: 0x0042,
|
||||
commissioningFlow: 2,
|
||||
discoveryCapabilities: 0b111,
|
||||
discriminator: 0xabc,
|
||||
passcode: 99999998,
|
||||
};
|
||||
expect(encodeMatterQrPayload(SDK_EXAMPLE_FIELDS)).toBe(SDK_EXAMPLE);
|
||||
const [payload] = decodeMatterQrPayload(encodeMatterQrPayload(fields));
|
||||
expect(payload).toMatchObject({
|
||||
...fields,
|
||||
commissioningFlowName: 'Custom',
|
||||
discoveryCapabilityNames: ['SoftAP', 'BLE', 'On IP network'],
|
||||
});
|
||||
// 10 digits of discriminator/passcode, vendor ID, product ID, check digit
|
||||
expect(payload.longManualPairingCode).toBe('641214610343981000666');
|
||||
expect(formatManualPairingCode(payload.longManualPairingCode!)).toBe('6412-146-1034-39810-00666');
|
||||
});
|
||||
|
||||
it('parses optional TLV data', () => {
|
||||
const fixed = base38Decode(SDK_EXAMPLE.slice(3));
|
||||
const serial = new TextEncoder().encode('SN-001');
|
||||
const tlv = [0x15, 0x2c, 0x00, serial.length, ...serial, 0x24, 0x80, 0x2a, 0x18];
|
||||
const [payload] = decodeMatterQrPayload(`MT:${base38Encode(Uint8Array.from([...fixed, ...tlv]))}`);
|
||||
expect(payload.optionalData).toEqual([
|
||||
{ tag: 'Context 0x00', tagNumber: 0, name: 'Serial number', type: 'UTF-8 string', value: 'SN-001' },
|
||||
{
|
||||
tag: 'Context 0x80',
|
||||
tagNumber: 0x80,
|
||||
name: 'Vendor-specific (0x80)',
|
||||
type: 'Unsigned int (8 bits)',
|
||||
value: '42',
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
it('reports invalid passcodes and versions', () => {
|
||||
const [payload] = decodeMatterQrPayload(
|
||||
encodeMatterQrPayload({ ...SDK_EXAMPLE_FIELDS, version: 1, passcode: 12345678 }),
|
||||
);
|
||||
expect(payload.isPasscodeValid).toBe(false);
|
||||
expect(payload.warnings).toHaveLength(2);
|
||||
});
|
||||
|
||||
it('rejects malformed input', () => {
|
||||
expect(() => decodeMatterQrPayload('')).toThrow();
|
||||
expect(() => decodeMatterQrPayload('XX:-24J0AFN00KA0648G00')).toThrow(/MT:/);
|
||||
expect(() => decodeMatterQrPayload('MT:')).toThrow();
|
||||
expect(() => decodeMatterQrPayload('MT:-24J0AFN00KA0648G0')).toThrow(/length/);
|
||||
expect(() => decodeMatterQrPayload('MT:-24J0AFN00KA0648G0_')).toThrow(/character/);
|
||||
expect(() => decodeMatterQrPayload('MT:-24J0')).toThrow(/too short/);
|
||||
});
|
||||
|
||||
it('computes manual pairing codes', () => {
|
||||
expect(computeManualPairingCode({ discriminator: 3840, passcode: 20202021 })).toBe('34970112332');
|
||||
expect(formatManualPairingCode('34970112332')).toBe('3497-011-2332');
|
||||
expect(verhoeffCheckDigit('236')).toBe(3);
|
||||
expect(isValidPasscode(20202021)).toBe(true);
|
||||
expect(isValidPasscode(11111111)).toBe(false);
|
||||
expect(isValidPasscode(99999999)).toBe(false);
|
||||
});
|
||||
});
|
||||
@@ -1,431 +0,0 @@
|
||||
// Matter onboarding payload decoder (Matter Core Specification, section 5.1 "Onboarding Payload").
|
||||
//
|
||||
// A Matter QR code contains the text "MT:" followed by a Base-38 encoded bit stream. The
|
||||
// first 88 bits hold fixed-width fields packed least significant bit first; any remaining
|
||||
// bytes are optional data encoded as Matter TLV. Several payloads may be concatenated
|
||||
// with '*' in a single QR code (one per device).
|
||||
|
||||
export const MATTER_QR_PREFIX = 'MT:';
|
||||
|
||||
const BASE38_ALPHABET = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-.';
|
||||
// Number of Base-38 characters produced for a chunk of 1, 2 or 3 bytes.
|
||||
const BASE38_CHARS_PER_CHUNK = [2, 4, 5];
|
||||
const BASE38_CHUNK_CHARS = 5;
|
||||
const BASE38_CHUNK_BYTES = 3;
|
||||
|
||||
// Field widths in bits, in payload order.
|
||||
const FIELDS = [
|
||||
['version', 3],
|
||||
['vendorId', 16],
|
||||
['productId', 16],
|
||||
['commissioningFlow', 2],
|
||||
['discoveryCapabilities', 8],
|
||||
['discriminator', 12],
|
||||
['passcode', 27],
|
||||
['padding', 4],
|
||||
] as const;
|
||||
type FieldName = (typeof FIELDS)[number][0];
|
||||
const FIXED_PAYLOAD_BYTES = 11; // 88 bits
|
||||
|
||||
export const COMMISSIONING_FLOWS = ['Standard', 'User intent', 'Custom', 'Reserved'] as const;
|
||||
|
||||
export const DISCOVERY_CAPABILITY_FLAGS = [
|
||||
{ bit: 0, name: 'SoftAP' },
|
||||
{ bit: 1, name: 'BLE' },
|
||||
{ bit: 2, name: 'On IP network' },
|
||||
{ bit: 3, name: 'Wi-Fi Public Action Frame' },
|
||||
{ bit: 4, name: 'NFC' },
|
||||
] as const;
|
||||
|
||||
// Well-known tags of the optional TLV data (context-specific tags).
|
||||
const OPTIONAL_DATA_TAGS: Record<number, string> = {
|
||||
0x00: 'Serial number',
|
||||
0x01: 'PBKDF iterations',
|
||||
0x02: 'PBKDF salt',
|
||||
0x03: 'Number of devices',
|
||||
0x04: 'Commissioning timeout (s)',
|
||||
};
|
||||
|
||||
const INVALID_PASSCODES = new Set([
|
||||
0, 11111111, 22222222, 33333333, 44444444, 55555555, 66666666, 77777777, 88888888, 99999999, 12345678, 87654321,
|
||||
]);
|
||||
const MAX_PASSCODE = 99999998;
|
||||
|
||||
export interface MatterOptionalDataElement {
|
||||
tag: string;
|
||||
tagNumber: number | null;
|
||||
name: string;
|
||||
type: string;
|
||||
value: string;
|
||||
}
|
||||
|
||||
export interface MatterPayload {
|
||||
version: number;
|
||||
vendorId: number;
|
||||
productId: number;
|
||||
commissioningFlow: number;
|
||||
commissioningFlowName: string;
|
||||
discoveryCapabilities: number;
|
||||
discoveryCapabilityNames: string[];
|
||||
discriminator: number;
|
||||
shortDiscriminator: number;
|
||||
passcode: number;
|
||||
padding: number;
|
||||
isPasscodeValid: boolean;
|
||||
manualPairingCode: string;
|
||||
longManualPairingCode: string | null;
|
||||
optionalData: MatterOptionalDataElement[];
|
||||
rawHex: string;
|
||||
warnings: string[];
|
||||
}
|
||||
|
||||
export function base38Decode(text: string): Uint8Array {
|
||||
const bytes: number[] = [];
|
||||
for (let start = 0; start < text.length; start += BASE38_CHUNK_CHARS) {
|
||||
const chunk = text.slice(start, start + BASE38_CHUNK_CHARS);
|
||||
const byteCount = BASE38_CHARS_PER_CHUNK.indexOf(chunk.length) + 1;
|
||||
if (byteCount === 0) {
|
||||
throw new Error(`Invalid Base-38 length: ${text.length} characters`);
|
||||
}
|
||||
let value = 0;
|
||||
for (let i = chunk.length - 1; i >= 0; i--) {
|
||||
const digit = BASE38_ALPHABET.indexOf(chunk[i]);
|
||||
if (digit < 0) {
|
||||
throw new Error(`Invalid Base-38 character: '${chunk[i]}'`);
|
||||
}
|
||||
value = value * 38 + digit;
|
||||
}
|
||||
if (value >= 2 ** (8 * byteCount)) {
|
||||
throw new Error(`Invalid Base-38 chunk: '${chunk}'`);
|
||||
}
|
||||
for (let i = 0; i < byteCount; i++) {
|
||||
bytes.push(value & 0xff);
|
||||
value = Math.floor(value / 256);
|
||||
}
|
||||
}
|
||||
return Uint8Array.from(bytes);
|
||||
}
|
||||
|
||||
export function base38Encode(bytes: Uint8Array): string {
|
||||
let text = '';
|
||||
for (let start = 0; start < bytes.length; start += BASE38_CHUNK_BYTES) {
|
||||
const chunk = bytes.slice(start, start + BASE38_CHUNK_BYTES);
|
||||
let value = 0;
|
||||
for (let i = chunk.length - 1; i >= 0; i--) {
|
||||
value = value * 256 + chunk[i];
|
||||
}
|
||||
for (let i = 0; i < BASE38_CHARS_PER_CHUNK[chunk.length - 1]; i++) {
|
||||
text += BASE38_ALPHABET[value % 38];
|
||||
value = Math.floor(value / 38);
|
||||
}
|
||||
}
|
||||
return text;
|
||||
}
|
||||
|
||||
function readBits(bytes: Uint8Array, offset: number, count: number): number {
|
||||
let value = 0;
|
||||
for (let i = count - 1; i >= 0; i--) {
|
||||
const bit = offset + i;
|
||||
value = value * 2 + ((bytes[bit >> 3] >> (bit & 7)) & 1);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function writeBits(bytes: Uint8Array, offset: number, count: number, value: number) {
|
||||
for (let i = 0; i < count; i++) {
|
||||
const bit = offset + i;
|
||||
if (Math.floor(value / 2 ** i) % 2) {
|
||||
bytes[bit >> 3] |= 1 << (bit & 7);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Verhoeff check digit, as used by the Matter manual pairing code.
|
||||
const VERHOEFF_D = [
|
||||
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
||||
[1, 2, 3, 4, 0, 6, 7, 8, 9, 5],
|
||||
[2, 3, 4, 0, 1, 7, 8, 9, 5, 6],
|
||||
[3, 4, 0, 1, 2, 8, 9, 5, 6, 7],
|
||||
[4, 0, 1, 2, 3, 9, 5, 6, 7, 8],
|
||||
[5, 9, 8, 7, 6, 0, 4, 3, 2, 1],
|
||||
[6, 5, 9, 8, 7, 1, 0, 4, 3, 2],
|
||||
[7, 6, 5, 9, 8, 2, 1, 0, 4, 3],
|
||||
[8, 7, 6, 5, 9, 3, 2, 1, 0, 4],
|
||||
[9, 8, 7, 6, 5, 4, 3, 2, 1, 0],
|
||||
];
|
||||
const VERHOEFF_P = [
|
||||
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
||||
[1, 5, 7, 6, 2, 8, 3, 0, 9, 4],
|
||||
[5, 8, 0, 3, 7, 9, 6, 1, 4, 2],
|
||||
[8, 9, 1, 6, 0, 4, 3, 5, 2, 7],
|
||||
[9, 4, 5, 3, 1, 2, 6, 8, 7, 0],
|
||||
[4, 2, 8, 6, 5, 7, 3, 9, 0, 1],
|
||||
[2, 7, 9, 3, 8, 0, 6, 4, 1, 5],
|
||||
[7, 0, 4, 6, 9, 1, 3, 2, 5, 8],
|
||||
];
|
||||
const VERHOEFF_INV = [0, 4, 3, 2, 1, 5, 6, 7, 8, 9];
|
||||
|
||||
export function verhoeffCheckDigit(digits: string): number {
|
||||
let c = 0;
|
||||
for (let i = 0; i < digits.length; i++) {
|
||||
const digit = Number(digits[digits.length - 1 - i]);
|
||||
c = VERHOEFF_D[c][VERHOEFF_P[(i + 1) % 8][digit]];
|
||||
}
|
||||
return VERHOEFF_INV[c];
|
||||
}
|
||||
|
||||
export function computeManualPairingCode({
|
||||
discriminator,
|
||||
passcode,
|
||||
vendorId,
|
||||
productId,
|
||||
includeVendorAndProduct = false,
|
||||
}: {
|
||||
discriminator: number;
|
||||
passcode: number;
|
||||
vendorId?: number;
|
||||
productId?: number;
|
||||
includeVendorAndProduct?: boolean;
|
||||
}): string {
|
||||
const shortDiscriminator = (discriminator >> 8) & 0xf;
|
||||
const chunk1 = ((includeVendorAndProduct ? 1 : 0) << 2) | (shortDiscriminator >> 2);
|
||||
const chunk2 = ((shortDiscriminator & 0x3) << 14) | (passcode & 0x3fff);
|
||||
const chunk3 = Math.floor(passcode / 2 ** 14) & 0x1fff;
|
||||
let code = `${chunk1}${String(chunk2).padStart(5, '0')}${String(chunk3).padStart(4, '0')}`;
|
||||
if (includeVendorAndProduct) {
|
||||
code += `${String(vendorId ?? 0).padStart(5, '0')}${String(productId ?? 0).padStart(5, '0')}`;
|
||||
}
|
||||
return code + verhoeffCheckDigit(code);
|
||||
}
|
||||
|
||||
export function formatManualPairingCode(code: string): string {
|
||||
// 11 digits: XXXX-XXX-XXXX, 21 digits: XXXX-XXX-XXXX-XXXXX-XXXXX
|
||||
const groups = code.length === 21 ? [4, 3, 4, 5, 5] : [4, 3, 4];
|
||||
const parts: string[] = [];
|
||||
let index = 0;
|
||||
for (const size of groups) {
|
||||
parts.push(code.slice(index, index + size));
|
||||
index += size;
|
||||
}
|
||||
return parts.filter(Boolean).join('-');
|
||||
}
|
||||
|
||||
export function isValidPasscode(passcode: number): boolean {
|
||||
return passcode >= 1 && passcode <= MAX_PASSCODE && !INVALID_PASSCODES.has(passcode);
|
||||
}
|
||||
|
||||
function toHex(value: number, width: number) {
|
||||
return `0x${value.toString(16).toUpperCase().padStart(width, '0')}`;
|
||||
}
|
||||
|
||||
function bytesToHex(bytes: Uint8Array) {
|
||||
return Array.from(bytes, (b) => b.toString(16).toUpperCase().padStart(2, '0')).join('');
|
||||
}
|
||||
|
||||
// Minimal Matter TLV reader (Matter Core Specification, Appendix A), enough to list the
|
||||
// elements of the onboarding payload optional data.
|
||||
function parseTlv(bytes: Uint8Array): MatterOptionalDataElement[] {
|
||||
const elements: MatterOptionalDataElement[] = [];
|
||||
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
||||
let pos = 0;
|
||||
let depth = 0;
|
||||
|
||||
const need = (n: number) => {
|
||||
if (pos + n > bytes.length) {
|
||||
throw new Error('Truncated TLV data');
|
||||
}
|
||||
};
|
||||
const readUint = (size: number): bigint => {
|
||||
need(size);
|
||||
let value = 0n;
|
||||
for (let i = size - 1; i >= 0; i--) {
|
||||
value = (value << 8n) | BigInt(bytes[pos + i]);
|
||||
}
|
||||
pos += size;
|
||||
return value;
|
||||
};
|
||||
|
||||
while (pos < bytes.length) {
|
||||
const control = bytes[pos++];
|
||||
const tagControl = control >> 5;
|
||||
const elementType = control & 0x1f;
|
||||
|
||||
let tag = 'Anonymous';
|
||||
let tagNumber: number | null = null;
|
||||
const tagSizes = [0, 1, 2, 4, 2, 4, 6, 8];
|
||||
const tagSize = tagSizes[tagControl];
|
||||
if (tagControl === 1) {
|
||||
tagNumber = Number(readUint(1));
|
||||
tag = `Context ${toHex(tagNumber, 2)}`;
|
||||
} else if (tagSize > 0) {
|
||||
tag = `Tag ${readUint(tagSize).toString(16).toUpperCase()}`;
|
||||
}
|
||||
|
||||
if (elementType === 0x18) {
|
||||
depth--;
|
||||
continue;
|
||||
}
|
||||
|
||||
let type: string;
|
||||
let value: string;
|
||||
if (elementType <= 0x03) {
|
||||
const size = 1 << elementType;
|
||||
need(size);
|
||||
const signed = BigInt.asIntN(size * 8, readUint(size));
|
||||
type = `Signed int (${size * 8} bits)`;
|
||||
value = signed.toString();
|
||||
} else if (elementType <= 0x07) {
|
||||
const size = 1 << (elementType - 4);
|
||||
type = `Unsigned int (${size * 8} bits)`;
|
||||
value = readUint(size).toString();
|
||||
} else if (elementType === 0x08 || elementType === 0x09) {
|
||||
type = 'Boolean';
|
||||
value = String(elementType === 0x09);
|
||||
} else if (elementType === 0x0a) {
|
||||
need(4);
|
||||
type = 'Float';
|
||||
value = String(view.getFloat32(pos, true));
|
||||
pos += 4;
|
||||
} else if (elementType === 0x0b) {
|
||||
need(8);
|
||||
type = 'Double';
|
||||
value = String(view.getFloat64(pos, true));
|
||||
pos += 8;
|
||||
} else if (elementType <= 0x13) {
|
||||
const isString = elementType <= 0x0f;
|
||||
const length = Number(readUint(1 << ((elementType - (isString ? 0x0c : 0x10)) & 3)));
|
||||
need(length);
|
||||
const data = bytes.slice(pos, pos + length);
|
||||
pos += length;
|
||||
type = isString ? 'UTF-8 string' : 'Byte string';
|
||||
value = isString ? new TextDecoder().decode(data) : bytesToHex(data);
|
||||
} else if (elementType === 0x14) {
|
||||
type = 'Null';
|
||||
value = 'null';
|
||||
} else if (elementType >= 0x15 && elementType <= 0x17) {
|
||||
// Containers: the onboarding payload wraps its optional data in an anonymous
|
||||
// structure; its members are listed flat.
|
||||
depth++;
|
||||
if (depth === 1 && tagControl === 0) {
|
||||
continue;
|
||||
}
|
||||
type = ['Structure', 'Array', 'List'][elementType - 0x15];
|
||||
value = '';
|
||||
} else {
|
||||
throw new Error(`Invalid TLV element type: ${toHex(elementType, 2)}`);
|
||||
}
|
||||
|
||||
let name = tag;
|
||||
if (tagNumber !== null) {
|
||||
name = OPTIONAL_DATA_TAGS[tagNumber] ?? (tagNumber >= 0x80 ? `Vendor-specific (${toHex(tagNumber, 2)})` : tag);
|
||||
}
|
||||
elements.push({ tag, tagNumber, name, type, value });
|
||||
}
|
||||
return elements;
|
||||
}
|
||||
|
||||
function decodeSinglePayload(base38: string): MatterPayload {
|
||||
const bytes = base38Decode(base38);
|
||||
if (bytes.length < FIXED_PAYLOAD_BYTES) {
|
||||
throw new Error(`Payload too short: ${bytes.length} bytes, at least ${FIXED_PAYLOAD_BYTES} expected`);
|
||||
}
|
||||
|
||||
const fields = {} as Record<FieldName, number>;
|
||||
let offset = 0;
|
||||
for (const [name, size] of FIELDS) {
|
||||
fields[name] = readBits(bytes, offset, size);
|
||||
offset += size;
|
||||
}
|
||||
|
||||
const warnings: string[] = [];
|
||||
if (fields.version !== 0) {
|
||||
warnings.push(`Unsupported payload version ${fields.version} (only version 0 is defined)`);
|
||||
}
|
||||
if (fields.padding !== 0) {
|
||||
warnings.push('Padding bits are not zero');
|
||||
}
|
||||
const isPasscodeValid = isValidPasscode(fields.passcode);
|
||||
if (!isPasscodeValid) {
|
||||
warnings.push(`Passcode ${fields.passcode} is not allowed by the Matter specification`);
|
||||
}
|
||||
|
||||
let optionalData: MatterOptionalDataElement[] = [];
|
||||
if (bytes.length > FIXED_PAYLOAD_BYTES) {
|
||||
try {
|
||||
optionalData = parseTlv(bytes.slice(FIXED_PAYLOAD_BYTES));
|
||||
} catch (error: any) {
|
||||
warnings.push(`Unable to parse optional data: ${error.message}`);
|
||||
}
|
||||
}
|
||||
|
||||
const manualParams = {
|
||||
discriminator: fields.discriminator,
|
||||
passcode: fields.passcode,
|
||||
vendorId: fields.vendorId,
|
||||
productId: fields.productId,
|
||||
};
|
||||
|
||||
return {
|
||||
version: fields.version,
|
||||
vendorId: fields.vendorId,
|
||||
productId: fields.productId,
|
||||
commissioningFlow: fields.commissioningFlow,
|
||||
commissioningFlowName: COMMISSIONING_FLOWS[fields.commissioningFlow],
|
||||
discoveryCapabilities: fields.discoveryCapabilities,
|
||||
discoveryCapabilityNames: [
|
||||
...DISCOVERY_CAPABILITY_FLAGS.filter(({ bit }) => fields.discoveryCapabilities & (1 << bit)).map(
|
||||
({ name }) => name,
|
||||
),
|
||||
...(fields.discoveryCapabilities & 0xe0
|
||||
? [`Reserved bits ${toHex(fields.discoveryCapabilities & 0xe0, 2)}`]
|
||||
: []),
|
||||
],
|
||||
discriminator: fields.discriminator,
|
||||
shortDiscriminator: fields.discriminator >> 8,
|
||||
passcode: fields.passcode,
|
||||
padding: fields.padding,
|
||||
isPasscodeValid,
|
||||
manualPairingCode: computeManualPairingCode(manualParams),
|
||||
// Devices with a non-standard commissioning flow use the 21-digit code, which
|
||||
// also carries the vendor and product IDs.
|
||||
longManualPairingCode:
|
||||
fields.commissioningFlow !== 0
|
||||
? computeManualPairingCode({ ...manualParams, includeVendorAndProduct: true })
|
||||
: null,
|
||||
optionalData,
|
||||
rawHex: bytesToHex(bytes),
|
||||
warnings,
|
||||
};
|
||||
}
|
||||
|
||||
export function decodeMatterQrPayload(input: string): MatterPayload[] {
|
||||
const text = input.trim().toUpperCase();
|
||||
if (!text.startsWith(MATTER_QR_PREFIX)) {
|
||||
throw new Error(`A Matter QR code payload must start with '${MATTER_QR_PREFIX}'`);
|
||||
}
|
||||
const body = text.slice(MATTER_QR_PREFIX.length);
|
||||
if (!body) {
|
||||
throw new Error('Empty Matter QR code payload');
|
||||
}
|
||||
return body.split('*').map((part) => decodeSinglePayload(part));
|
||||
}
|
||||
|
||||
export function encodeMatterQrPayload(
|
||||
payload: Pick<
|
||||
MatterPayload,
|
||||
'vendorId' | 'productId' | 'commissioningFlow' | 'discoveryCapabilities' | 'discriminator' | 'passcode'
|
||||
> & { version?: number },
|
||||
): string {
|
||||
const bytes = new Uint8Array(FIXED_PAYLOAD_BYTES);
|
||||
const values: Record<FieldName, number> = { version: 0, padding: 0, ...payload };
|
||||
let offset = 0;
|
||||
for (const [name, size] of FIELDS) {
|
||||
writeBits(bytes, offset, size, values[name]);
|
||||
offset += size;
|
||||
}
|
||||
return MATTER_QR_PREFIX + base38Encode(bytes);
|
||||
}
|
||||
|
||||
export function formatHex(value: number, width: number) {
|
||||
return toHex(value, width);
|
||||
}
|
||||
@@ -1,140 +0,0 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { decodeMatterQrPayload, formatHex, formatManualPairingCode } from './matter-qr-code-decoder.service';
|
||||
import type { CKeyValueListItems } from '@/ui/c-key-value-list/c-key-value-list.types';
|
||||
import { useQueryParam } from '@/composable/queryParams';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const input = useQueryParam({ tool: 'matter-qr', name: 'payload', defaultValue: 'MT:-24J0AFN00KA0648G00' });
|
||||
|
||||
const decoded = computed(() => {
|
||||
if (!input.value.trim()) {
|
||||
return { payloads: [], error: '' };
|
||||
}
|
||||
try {
|
||||
return { payloads: decodeMatterQrPayload(input.value), error: '' };
|
||||
} catch (error: any) {
|
||||
return { payloads: [], error: error.message as string };
|
||||
}
|
||||
});
|
||||
|
||||
const results = computed(() =>
|
||||
decoded.value.payloads.map((payload) => {
|
||||
const items: CKeyValueListItems = [
|
||||
{
|
||||
label: t('tools.matter-qr-code-decoder.texts.label-manual-pairing-code'),
|
||||
value: formatManualPairingCode(payload.manualPairingCode),
|
||||
showCopyButton: true,
|
||||
},
|
||||
{
|
||||
label: t('tools.matter-qr-code-decoder.texts.label-long-manual-pairing-code'),
|
||||
value: payload.longManualPairingCode ? formatManualPairingCode(payload.longManualPairingCode) : null,
|
||||
hideOnNil: true,
|
||||
showCopyButton: true,
|
||||
},
|
||||
{
|
||||
label: t('tools.matter-qr-code-decoder.texts.label-passcode'),
|
||||
value: String(payload.passcode).padStart(8, '0'),
|
||||
showCopyButton: true,
|
||||
},
|
||||
{
|
||||
label: t('tools.matter-qr-code-decoder.texts.label-discriminator'),
|
||||
value: `${payload.discriminator} (${formatHex(payload.discriminator, 3)})`,
|
||||
showCopyButton: true,
|
||||
},
|
||||
{
|
||||
label: t('tools.matter-qr-code-decoder.texts.label-short-discriminator'),
|
||||
value: `${payload.shortDiscriminator} (${formatHex(payload.shortDiscriminator, 1)})`,
|
||||
},
|
||||
{
|
||||
label: t('tools.matter-qr-code-decoder.texts.label-vendor-id'),
|
||||
value: `${payload.vendorId} (${formatHex(payload.vendorId, 4)})${
|
||||
payload.vendorId >= 0xfff1 && payload.vendorId <= 0xfff4
|
||||
? ` - ${t('tools.matter-qr-code-decoder.texts.test-vendor')}`
|
||||
: ''
|
||||
}`,
|
||||
showCopyButton: true,
|
||||
},
|
||||
{
|
||||
label: t('tools.matter-qr-code-decoder.texts.label-product-id'),
|
||||
value: `${payload.productId} (${formatHex(payload.productId, 4)})`,
|
||||
showCopyButton: true,
|
||||
},
|
||||
{
|
||||
label: t('tools.matter-qr-code-decoder.texts.label-commissioning-flow'),
|
||||
value: `${payload.commissioningFlowName} (${payload.commissioningFlow})`,
|
||||
},
|
||||
{
|
||||
label: t('tools.matter-qr-code-decoder.texts.label-discovery-capabilities'),
|
||||
value: `${payload.discoveryCapabilityNames.join(', ') || t('tools.matter-qr-code-decoder.texts.none')} (${formatHex(payload.discoveryCapabilities, 2)})`,
|
||||
},
|
||||
{
|
||||
label: t('tools.matter-qr-code-decoder.texts.label-version'),
|
||||
value: payload.version,
|
||||
},
|
||||
{
|
||||
label: t('tools.matter-qr-code-decoder.texts.label-raw-payload'),
|
||||
value: payload.rawHex,
|
||||
showCopyButton: true,
|
||||
},
|
||||
];
|
||||
return { payload, items };
|
||||
}),
|
||||
);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<c-card>
|
||||
<c-input-text
|
||||
v-model:value="input"
|
||||
:label="t('tools.matter-qr-code-decoder.texts.label-matter-qr-code-payload')"
|
||||
:placeholder="t('tools.matter-qr-code-decoder.texts.placeholder-matter-qr-code-payload')"
|
||||
clearable
|
||||
autocomplete="off"
|
||||
autocorrect="off"
|
||||
autocapitalize="off"
|
||||
spellcheck="false"
|
||||
font-mono
|
||||
data-test-id="matter-input"
|
||||
/>
|
||||
<div mt-2 op-70>
|
||||
{{ t('tools.matter-qr-code-decoder.texts.hint-qr-code-decoder') }}
|
||||
<c-link to="/qr-code-decoder">
|
||||
{{ t('tools.matter-qr-code-decoder.texts.link-qr-code-decoder') }}
|
||||
</c-link>
|
||||
</div>
|
||||
</c-card>
|
||||
|
||||
<c-alert v-if="decoded.error" type="error" mt-3 data-test-id="matter-error">
|
||||
{{ decoded.error }}
|
||||
</c-alert>
|
||||
|
||||
<c-card
|
||||
v-for="(result, index) in results"
|
||||
:key="index"
|
||||
:title="results.length > 1 ? t('tools.matter-qr-code-decoder.texts.title-device', [index + 1]) : undefined"
|
||||
mt-3
|
||||
>
|
||||
<c-alert v-for="warning in result.payload.warnings" :key="warning" type="warning" mb-3>
|
||||
{{ warning }}
|
||||
</c-alert>
|
||||
|
||||
<c-key-value-list :items="result.items" data-test-id="matter-info" />
|
||||
|
||||
<template v-if="result.payload.optionalData.length">
|
||||
<n-divider>{{ t('tools.matter-qr-code-decoder.texts.title-optional-data') }}</n-divider>
|
||||
<c-key-value-list
|
||||
:items="
|
||||
result.payload.optionalData.map((element) => ({
|
||||
label: `${element.name} [${element.type}]`,
|
||||
value: element.value,
|
||||
showCopyButton: true,
|
||||
}))
|
||||
"
|
||||
/>
|
||||
</template>
|
||||
</c-card>
|
||||
</div>
|
||||
</template>
|
||||
Reference in new issue
Block a user