From 48ebfab7142dc042c1e57f5461cc6eb0484e9392 Mon Sep 17 00:00:00 2001 From: GermanBluefox Date: Sat, 25 Jan 2025 15:03:52 +0000 Subject: [PATCH] Added copy to clipboard button --- package-lock.json | 367 +++++++++-------------------------- package.json | 2 +- src/lib/DeviceManagement.ts | 5 + src/lib/i18n/de.json | 1 + src/lib/i18n/en.json | 1 + src/lib/i18n/es.json | 1 + src/lib/i18n/fr.json | 1 + src/lib/i18n/it.json | 1 + src/lib/i18n/nl.json | 1 + src/lib/i18n/pl.json | 1 + src/lib/i18n/pt.json | 1 + src/lib/i18n/ru.json | 1 + src/lib/i18n/uk.json | 1 + src/lib/i18n/zh-cn.json | 1 + src/matter/BaseServerNode.ts | 1 + 15 files changed, 111 insertions(+), 275 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9ff7342..c64f622 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,12 +10,12 @@ "license": "Apache-2.0", "dependencies": { "@iobroker/adapter-core": "^3.2.3", - "@iobroker/dm-utils": "^1.0.8", + "@iobroker/dm-utils": "^1.0.9", "@iobroker/i18n": "^0.3.1", "@iobroker/type-detector": "^4.1.1", - "@matter/main": "0.12.0", - "@matter/nodejs": "0.12.0", - "@project-chip/matter.js": "0.12.0", + "@matter/main": "0.12.1", + "@matter/nodejs": "0.12.1", + "@project-chip/matter.js": "0.12.1", "axios": "^1.7.9", "jsonwebtoken": "^9.0.2" }, @@ -24,7 +24,7 @@ "@alcalzone/release-script-plugin-iobroker": "^3.7.2", "@alcalzone/release-script-plugin-license": "^3.7.0", "@iobroker/build-tools": "^2.0.15", - "@iobroker/dev-server": "^0.7.5", + "@iobroker/dev-server": "^0.7.6", "@iobroker/eslint-config": "^1.0.0", "@iobroker/legacy-testing": "^2.0.2", "@iobroker/types": "^7.0.6", @@ -40,7 +40,7 @@ "node": ">=18" }, "optionalDependencies": { - "@matter/nodejs-ble": "0.12.0" + "@matter/nodejs-ble": "0.12.1" } }, "node_modules/@alcalzone/pak": { @@ -509,16 +509,16 @@ } }, "node_modules/@iobroker/dev-server": { - "version": "0.7.5", - "resolved": "https://registry.npmjs.org/@iobroker/dev-server/-/dev-server-0.7.5.tgz", - "integrity": "sha512-Ah80lWrIk2TovoJQmHrq/WieC4eHBYt6oFIeCQBlngH4HrKIy7bC8T2EhNXiqH2VsfBeWCfIoW7O4iSZYCw+zg==", + "version": "0.7.6", + "resolved": "https://registry.npmjs.org/@iobroker/dev-server/-/dev-server-0.7.6.tgz", + "integrity": "sha512-xgKVEYKqmk+pSLGN3ELucj0QGdf4SpXuRAR9G4ocl+CMXP6rMEhZASS7NBBeHco/2+Yzdg/Rmcj9Pn/xS4PRHw==", "dev": true, "license": "MIT", "dependencies": { "@iobroker/testing": "^5.0.3", "acorn": "^8.14.0", "axios": "^1.7.9", - "boxen": "^8.0.1", + "boxen": "^5.1.2", "browser-sync": "^3.0.3", "bs-html-injector": "^3.0.3", "chalk": "^4.1.2", @@ -591,9 +591,9 @@ } }, "node_modules/@iobroker/dm-utils": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@iobroker/dm-utils/-/dm-utils-1.0.8.tgz", - "integrity": "sha512-y+qwEnlnyYav0hZ+NB9GGI79rFN0MWcOTd3+cLWpp98HUZqCeitH/EulaG2EswfZ1bNpawF6eNQHK+NxInsM0w==", + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@iobroker/dm-utils/-/dm-utils-1.0.9.tgz", + "integrity": "sha512-FO+SJApGILTW9QSC8aAo3LVCQlMj+WdySX8NzVZAYS7o82/E2DsqSkU8ro79lZzlMlHupjxYq3dxtRTM8UHDLQ==", "license": "MIT", "dependencies": { "@iobroker/adapter-core": "^3.2.3" @@ -820,64 +820,64 @@ } }, "node_modules/@matter/general": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@matter/general/-/general-0.12.0.tgz", - "integrity": "sha512-D6XkH/17qbvbNclw8IG82QzBGXGkDTBCaHe3zIDsMBraVUcQzKbTFrSQIP4tzqU6R2NC7nkmMsqFBV7HRVwwyQ==", + "version": "0.12.1", + "resolved": "https://registry.npmjs.org/@matter/general/-/general-0.12.1.tgz", + "integrity": "sha512-26ZnXpcPeKUJ3xGJvJnkM7dMt32IlJ+5ZCoM8KN2FtXC2Z6EUBJMVxjSxXA4Wbg91wZvj/y/z0xkcEI3gcIOAA==", "license": "Apache-2.0", "dependencies": { "@noble/curves": "^1.8.1" } }, "node_modules/@matter/main": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@matter/main/-/main-0.12.0.tgz", - "integrity": "sha512-cqliR5nnFJCEXKUKcwI9rxPZQNcrJ8iFpd6bOOEQ2v85+dYFZGDOxOWHMo70EoQOqsu7lGozGWRq4m642iXIRw==", + "version": "0.12.1", + "resolved": "https://registry.npmjs.org/@matter/main/-/main-0.12.1.tgz", + "integrity": "sha512-TQscTaFzgtUy9R+tNDm1aIViW4qDiXVdnYZGTVWjWqPN/7wOtEO2IgwP3xk9c3bHNkEXPux6TfvPoAx7UkYUng==", "license": "Apache-2.0", "dependencies": { - "@matter/general": "0.12.0", - "@matter/model": "0.12.0", - "@matter/node": "0.12.0", - "@matter/protocol": "0.12.0", - "@matter/types": "0.12.0", + "@matter/general": "0.12.1", + "@matter/model": "0.12.1", + "@matter/node": "0.12.1", + "@matter/protocol": "0.12.1", + "@matter/types": "0.12.1", "@noble/curves": "^1.8.1" }, "optionalDependencies": { - "@matter/nodejs": "0.12.0" + "@matter/nodejs": "0.12.1" } }, "node_modules/@matter/model": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@matter/model/-/model-0.12.0.tgz", - "integrity": "sha512-uJhdwWpSFV0wl84Q9nIj1Je8y2Y223XEqomVRNlzDEK450MxaQ/MAK1nEvi3BBTvoiNvAtSij+pIrzu5fYxnlg==", + "version": "0.12.1", + "resolved": "https://registry.npmjs.org/@matter/model/-/model-0.12.1.tgz", + "integrity": "sha512-UlUR7iRuBRadfuf4Qwo3OYi7WUrXJk4nddqsD2tBq7y1cA5zsnV3E85zVX/8iiiUSqAbx3rcAuWJ+CCjn0ikUA==", "license": "Apache-2.0", "dependencies": { - "@matter/general": "0.12.0", + "@matter/general": "0.12.1", "@noble/curves": "^1.8.1" } }, "node_modules/@matter/node": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@matter/node/-/node-0.12.0.tgz", - "integrity": "sha512-J/wQaXSuN3/fZnyTpOE8brmv5mZE2co2yajTg9DmZDgi0EXWXCF97+2vemlPh6BXAszDas7FdN/1kXu2MEA9/Q==", + "version": "0.12.1", + "resolved": "https://registry.npmjs.org/@matter/node/-/node-0.12.1.tgz", + "integrity": "sha512-PtN1pRmMynPwwxaSZklCDwLt4uCz1o/moXi0PX2DU866JdkHaKPgLi+29PcalcDB2dMZbrcJTaimAhXcjPVkog==", "license": "Apache-2.0", "dependencies": { - "@matter/general": "0.12.0", - "@matter/model": "0.12.0", - "@matter/protocol": "0.12.0", - "@matter/types": "0.12.0", + "@matter/general": "0.12.1", + "@matter/model": "0.12.1", + "@matter/protocol": "0.12.1", + "@matter/types": "0.12.1", "@noble/curves": "^1.8.1" } }, "node_modules/@matter/nodejs": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@matter/nodejs/-/nodejs-0.12.0.tgz", - "integrity": "sha512-VZtZcW2UzXiAnYAwJ+9XPDqCfO3amlzgCPBDTXpUKti4HrO0v6U5LmydNRGoGkNUB9QABxLpiAmEId+URZ2r9Q==", + "version": "0.12.1", + "resolved": "https://registry.npmjs.org/@matter/nodejs/-/nodejs-0.12.1.tgz", + "integrity": "sha512-G4tPCzaCJMuly0yiIf+eOhz1ezSQQarETFtDuImE+9vicVyKKCL1eq5SviV5nx9DikIcalKMbKh6F6t21sslDA==", "license": "Apache-2.0", "dependencies": { - "@matter/general": "0.12.0", - "@matter/node": "0.12.0", - "@matter/protocol": "0.12.0", - "@matter/types": "0.12.0", + "@matter/general": "0.12.1", + "@matter/node": "0.12.1", + "@matter/protocol": "0.12.1", + "@matter/types": "0.12.1", "node-localstorage": "^3.0.5" }, "engines": { @@ -885,15 +885,15 @@ } }, "node_modules/@matter/nodejs-ble": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@matter/nodejs-ble/-/nodejs-ble-0.12.0.tgz", - "integrity": "sha512-Tz7ugttTnKAiSyj0ZtE3cr9n0fm1fcII3/8/YBllS4xEcMZQlsLEc/3qncIrN6ca16U71IcJ1r9gMLkHwf2wlA==", + "version": "0.12.1", + "resolved": "https://registry.npmjs.org/@matter/nodejs-ble/-/nodejs-ble-0.12.1.tgz", + "integrity": "sha512-AyDLb9cNAp0jiWPSR0vl3UAVRBgQfoO706y490QZ2UXddsotEAWzTkcYSYYi1M6Yp61nCxAQGIuHYbW8XtraAA==", "license": "Apache-2.0", "optional": true, "dependencies": { - "@matter/general": "0.12.0", - "@matter/protocol": "0.12.0", - "@matter/types": "0.12.0" + "@matter/general": "0.12.1", + "@matter/protocol": "0.12.1", + "@matter/types": "0.12.1" }, "engines": { "node": ">=18.0.0" @@ -904,25 +904,25 @@ } }, "node_modules/@matter/protocol": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@matter/protocol/-/protocol-0.12.0.tgz", - "integrity": "sha512-wtDZR/APxMWdf7hErRshWlgnjisnID66GQ9Xxlkq6U1BciXf8qIb8UyWxKN6LWWUhOLPJe6rcn8SnXt6t/q1mA==", + "version": "0.12.1", + "resolved": "https://registry.npmjs.org/@matter/protocol/-/protocol-0.12.1.tgz", + "integrity": "sha512-HOa5OdMsmmSjmtYA+wmBmS2poUeZqlcoA9fUk40kWla6yINJOyHZCgnPKARxXxm1qk95BEoLN3ovUIKoajkstQ==", "license": "Apache-2.0", "dependencies": { - "@matter/general": "0.12.0", - "@matter/model": "0.12.0", - "@matter/types": "0.12.0", + "@matter/general": "0.12.1", + "@matter/model": "0.12.1", + "@matter/types": "0.12.1", "@noble/curves": "^1.8.1" } }, "node_modules/@matter/types": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@matter/types/-/types-0.12.0.tgz", - "integrity": "sha512-tS5amwLRymfnqMuVwJ+xYkXGthoBpYb6Dg6GE1IKvZeccl3xGQIYEvIw0rB806h/WkK97T6mB39hHNHliMLAIg==", + "version": "0.12.1", + "resolved": "https://registry.npmjs.org/@matter/types/-/types-0.12.1.tgz", + "integrity": "sha512-O4zyMGLUnoWQZ7P5TJDWrtTpdaG8xSDq1a5xO3e8pmc3I9w6LSoKciEqrjFvq9lT6gvj3hcts/64c0Rxn7NEIw==", "license": "Apache-2.0", "dependencies": { - "@matter/general": "0.12.0", - "@matter/model": "0.12.0", + "@matter/general": "0.12.1", + "@matter/model": "0.12.1", "@noble/curves": "^1.8.1" } }, @@ -1085,16 +1085,16 @@ } }, "node_modules/@project-chip/matter.js": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@project-chip/matter.js/-/matter.js-0.12.0.tgz", - "integrity": "sha512-7WO7/h4eIOApXYd6ZGFkNp5GlDScQPpqDJALJCnUbB2Z6+d01PpJ9d6Q2Z7OC/vooCXod/nebyj2YCQtGK7VOQ==", + "version": "0.12.1", + "resolved": "https://registry.npmjs.org/@project-chip/matter.js/-/matter.js-0.12.1.tgz", + "integrity": "sha512-IPNbBxnduNUNoipn4ZHXWE8gEsYM9nryYvWXlLYWwTJ6tDTIR0oZmsUZzhJoDXjShqbXolYJ8bCkFQ7dfMba6w==", "license": "Apache-2.0", "dependencies": { - "@matter/general": "0.12.0", - "@matter/model": "0.12.0", - "@matter/node": "0.12.0", - "@matter/protocol": "0.12.0", - "@matter/types": "0.12.0", + "@matter/general": "0.12.1", + "@matter/model": "0.12.1", + "@matter/node": "0.12.1", + "@matter/protocol": "0.12.1", + "@matter/types": "0.12.1", "@noble/curves": "^1.8.1" } }, @@ -2656,139 +2656,28 @@ "license": "MIT" }, "node_modules/boxen": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/boxen/-/boxen-8.0.1.tgz", - "integrity": "sha512-F3PH5k5juxom4xktynS7MoFY+NUWH5LC4CnH11YB8NPew+HLpmBLCybSAEyb2F+4pRXhuhWqFesoQd6DAyc2hw==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-align": "^3.0.1", - "camelcase": "^8.0.0", - "chalk": "^5.3.0", - "cli-boxes": "^3.0.0", - "string-width": "^7.2.0", - "type-fest": "^4.21.0", - "widest-line": "^5.0.0", - "wrap-ansi": "^9.0.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/boxen/node_modules/ansi-regex": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", - "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/boxen/node_modules/ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/boxen/node_modules/camelcase": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-8.0.0.tgz", - "integrity": "sha512-8WB3Jcas3swSvjIeA2yvCJ+Miyz5l1ZmB6HFb9R1317dt9LCQoswg/BGrmAmkWVEszSrrg4RwmO46qIm2OEnSA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/boxen/node_modules/chalk": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", - "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.17.0 || ^14.13 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/boxen/node_modules/emoji-regex": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.4.0.tgz", - "integrity": "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==", - "dev": true, - "license": "MIT" - }, - "node_modules/boxen/node_modules/string-width": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", - "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/boxen/-/boxen-5.1.2.tgz", + "integrity": "sha512-9gYgQKXx+1nP8mP7CzFyaUARhg7D3n1dF/FnErWmu9l6JvGpNUN278h0aSb+QjoiKSWG+iZ3uHrcqk0qrY9RQQ==", "dev": true, "license": "MIT", "dependencies": { - "emoji-regex": "^10.3.0", - "get-east-asian-width": "^1.0.0", - "strip-ansi": "^7.1.0" + "ansi-align": "^3.0.0", + "camelcase": "^6.2.0", + "chalk": "^4.1.0", + "cli-boxes": "^2.2.1", + "string-width": "^4.2.2", + "type-fest": "^0.20.2", + "widest-line": "^3.1.0", + "wrap-ansi": "^7.0.0" }, "engines": { - "node": ">=18" + "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/boxen/node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/boxen/node_modules/wrap-ansi": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.0.tgz", - "integrity": "sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^6.2.1", - "string-width": "^7.0.0", - "strip-ansi": "^7.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, "node_modules/bplist-parser": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.3.2.tgz", @@ -3494,13 +3383,13 @@ } }, "node_modules/cli-boxes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-3.0.0.tgz", - "integrity": "sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz", + "integrity": "sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==", "dev": true, "license": "MIT", "engines": { - "node": ">=10" + "node": ">=6" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -5870,19 +5759,6 @@ "node": "6.* || 8.* || >= 10.*" } }, - "node_modules/get-east-asian-width": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.3.0.tgz", - "integrity": "sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/get-func-name": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", @@ -11332,13 +11208,13 @@ } }, "node_modules/type-fest": { - "version": "4.33.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.33.0.tgz", - "integrity": "sha512-s6zVrxuyKbbAsSAD5ZPTB77q4YIdRctkTbJ2/Dqlinwz+8ooH2gd+YA7VA6Pa93KML9GockVvoxjZ2vHP+mu8g==", + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", "dev": true, "license": "(MIT OR CC0-1.0)", "engines": { - "node": ">=16" + "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -11870,73 +11746,16 @@ } }, "node_modules/widest-line": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-5.0.0.tgz", - "integrity": "sha512-c9bZp7b5YtRj2wOe6dlj32MK+Bx/M/d+9VB2SHM1OtsUHR0aV0tdP6DWh/iMt0kWi1t5g1Iudu6hQRNd1A4PVA==", - "dev": true, - "license": "MIT", - "dependencies": { - "string-width": "^7.0.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/widest-line/node_modules/ansi-regex": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", - "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/widest-line/node_modules/emoji-regex": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.4.0.tgz", - "integrity": "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==", - "dev": true, - "license": "MIT" - }, - "node_modules/widest-line/node_modules/string-width": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", - "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^10.3.0", - "get-east-asian-width": "^1.0.0", - "strip-ansi": "^7.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/widest-line/node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", + "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", "dev": true, "license": "MIT", "dependencies": { - "ansi-regex": "^6.0.1" + "string-width": "^4.0.0" }, "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" + "node": ">=8" } }, "node_modules/word-wrap": { diff --git a/package.json b/package.json index 35e32d7..89eed76 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "dependencies": { "@iobroker/adapter-core": "^3.2.3", "@iobroker/i18n": "^0.3.1", - "@iobroker/dm-utils": "^1.0.7", + "@iobroker/dm-utils": "^1.0.9", "@iobroker/type-detector": "^4.1.1", "@matter/main": "0.12.1", "@matter/nodejs": "0.12.1", diff --git a/src/lib/DeviceManagement.ts b/src/lib/DeviceManagement.ts index 150c56c..cdd27c4 100644 --- a/src/lib/DeviceManagement.ts +++ b/src/lib/DeviceManagement.ts @@ -488,6 +488,11 @@ class MatterAdapterDeviceManagement extends DeviceManagement { maxWidth: 'md', title: this.#adapter.getText('Debug Infos'), buttons: [ + { + type: 'copyToClipboard', + label: this.#adapter.getText('Copy to clipboard'), + copyToClipboardAttr: 'debugInfos', + }, { type: 'cancel', label: this.#adapter.getText('Close'), diff --git a/src/lib/i18n/de.json b/src/lib/i18n/de.json index 2c092df..2bf0ee6 100644 --- a/src/lib/i18n/de.json +++ b/src/lib/i18n/de.json @@ -5,6 +5,7 @@ "Configure node": "Knoten konfigurieren", "Configure this device": "Dieses Gerät konfigurieren", "Configure this node": "Diesen Knoten konfigurieren", + "Copy to clipboard": "In die Zwischenablage kopieren", "Debug Infos": "Debug Informationen", "Default": "Standard", "Delete this device": "Dieses Gerät löschen", diff --git a/src/lib/i18n/en.json b/src/lib/i18n/en.json index 2158899..1ac3074 100644 --- a/src/lib/i18n/en.json +++ b/src/lib/i18n/en.json @@ -5,6 +5,7 @@ "Configure node": "Configure node", "Configure this device": "Configure this device", "Configure this node": "Configure this node", + "Copy to clipboard": "Copy to clipboard", "Debug Infos": "Debug Infos", "Default": "Default", "Delete this device": "Delete this device", diff --git a/src/lib/i18n/es.json b/src/lib/i18n/es.json index 8893a67..0cd7ac3 100644 --- a/src/lib/i18n/es.json +++ b/src/lib/i18n/es.json @@ -5,6 +5,7 @@ "Configure node": "Configurar nodo", "Configure this device": "Configurar este dispositivo", "Configure this node": "Configurar este nodo", + "Copy to clipboard": "Copiar al portapapeles", "Debug Infos": "Información de depuración", "Default": "Por defecto", "Delete this device": "Eliminar este dispositivo", diff --git a/src/lib/i18n/fr.json b/src/lib/i18n/fr.json index 55c7322..7f76b2c 100644 --- a/src/lib/i18n/fr.json +++ b/src/lib/i18n/fr.json @@ -5,6 +5,7 @@ "Configure node": "Configurer le nœud", "Configure this device": "Configurer cet appareil", "Configure this node": "Configurer ce nœud", + "Copy to clipboard": "Copier dans le presse-papier", "Debug Infos": "Informations de débogage", "Default": "Défaut", "Delete this device": "Supprimer cet appareil", diff --git a/src/lib/i18n/it.json b/src/lib/i18n/it.json index 5a543d4..7b3b3f3 100644 --- a/src/lib/i18n/it.json +++ b/src/lib/i18n/it.json @@ -5,6 +5,7 @@ "Configure node": "Configurare il nodo", "Configure this device": "Configurare questo dispositivo", "Configure this node": "Configurare questo nodo", + "Copy to clipboard": "Copia negli appunti", "Debug Infos": "Informazioni di debug", "Default": "Predefinito", "Delete this device": "Elimina questo dispositivo", diff --git a/src/lib/i18n/nl.json b/src/lib/i18n/nl.json index 4ed7cbc..c36cb23 100644 --- a/src/lib/i18n/nl.json +++ b/src/lib/i18n/nl.json @@ -5,6 +5,7 @@ "Configure node": "Knooppunt configureren", "Configure this device": "Dit apparaat configureren", "Configure this node": "Configureer dit knooppunt", + "Copy to clipboard": "Kopiëren naar klembord", "Debug Infos": "Debug-info", "Default": "Standaard", "Delete this device": "Verwijder dit apparaat", diff --git a/src/lib/i18n/pl.json b/src/lib/i18n/pl.json index 2485ef9..0b94ebe 100644 --- a/src/lib/i18n/pl.json +++ b/src/lib/i18n/pl.json @@ -5,6 +5,7 @@ "Configure node": "Konfiguruj węzeł", "Configure this device": "Konfiguracja tego urządzenia", "Configure this node": "Konfiguracja tego węzła", + "Copy to clipboard": "Kopiuj do schowka", "Debug Infos": "Informacje debugowania", "Default": "Domyślny", "Delete this device": "Usuń to urządzenie", diff --git a/src/lib/i18n/pt.json b/src/lib/i18n/pt.json index 125de79..bd717af 100644 --- a/src/lib/i18n/pt.json +++ b/src/lib/i18n/pt.json @@ -5,6 +5,7 @@ "Configure node": "Configurar nó", "Configure this device": "Configurar este dispositivo", "Configure this node": "Configurar este nó", + "Copy to clipboard": "Copiar para área de transferência", "Debug Infos": "Informações de depuração", "Default": "Padrão", "Delete this device": "Excluir este dispositivo", diff --git a/src/lib/i18n/ru.json b/src/lib/i18n/ru.json index a091475..4249323 100644 --- a/src/lib/i18n/ru.json +++ b/src/lib/i18n/ru.json @@ -5,6 +5,7 @@ "Configure node": "Настроить узел", "Configure this device": "Настройте это устройство", "Configure this node": "Настройте этот узел", + "Copy to clipboard": "Копировать в буфер обмена", "Debug Infos": "Отладочная информация", "Default": "По умолчанию", "Delete this device": "Удалить это устройство", diff --git a/src/lib/i18n/uk.json b/src/lib/i18n/uk.json index 6e1f86e..966162c 100644 --- a/src/lib/i18n/uk.json +++ b/src/lib/i18n/uk.json @@ -5,6 +5,7 @@ "Configure node": "Налаштувати вузол", "Configure this device": "Налаштуйте цей пристрій", "Configure this node": "Налаштуйте цей вузол", + "Copy to clipboard": "Копіювати в буфер обміну", "Debug Infos": "Інформація про налагодження", "Default": "За замовчуванням", "Delete this device": "Видалити цей пристрій", diff --git a/src/lib/i18n/zh-cn.json b/src/lib/i18n/zh-cn.json index dc70cce..e3bf3ce 100644 --- a/src/lib/i18n/zh-cn.json +++ b/src/lib/i18n/zh-cn.json @@ -5,6 +5,7 @@ "Configure node": "配置节点", "Configure this device": "配置此设备", "Configure this node": "配置此节点", + "Copy to clipboard": "复制到剪贴板", "Debug Infos": "调试信息", "Default": "默认", "Delete this device": "删除此设备", diff --git a/src/matter/BaseServerNode.ts b/src/matter/BaseServerNode.ts index a8b8a7c..a589b90 100644 --- a/src/matter/BaseServerNode.ts +++ b/src/matter/BaseServerNode.ts @@ -152,6 +152,7 @@ export abstract class BaseServerNode implements GeneralNode { schema: convertDataToJsonConfig(this.getDeviceDetails(message)), options: { maxWidth: 'md', + minWidth: 610, data: {}, title: `${this.type === 'bridges' && !('bridgedDeviceUuid' in message) ? 'Bridge' : 'Device'} Detail information`, buttons: ['close'],