From e7b1d078c9f8838258b84489694e14cd17242f2a Mon Sep 17 00:00:00 2001 From: simatec Date: Mon, 26 Aug 2024 13:54:15 +0200 Subject: [PATCH] (simatec) Responsive Design added --- README.md | 1 + admin/jsonConfig.json | 39 +++++++++++++++--- package-lock.json | 94 +++++++++++++++++++++---------------------- package.json | 6 +-- 4 files changed, 84 insertions(+), 56 deletions(-) diff --git a/README.md b/README.md index a7f6b44..26d8e72 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ When the adapter crashes or an other Code error happens, this error message that ### __WORK IN PROGRESS__ * (simatec) small fix * (simatec) Dependencies updated +* (simatec) Responsive Design added ### 0.9.9 (2024-06-27) * (simatec) Fix X1-Mini G4 diff --git a/admin/jsonConfig.json b/admin/jsonConfig.json index 4d15b31..d5b5779 100644 --- a/admin/jsonConfig.json +++ b/admin/jsonConfig.json @@ -8,6 +8,7 @@ "visible": true, "hidden": "data.localConnection && data.expertSettings", "disabled": "data.localConnection", + "xs": 12, "sm": 12, "md": 8, "lg": 4, @@ -20,6 +21,7 @@ "newLine": false, "hidden": "data.localConnection && data.expertSettings", "disabled": "data.localConnection'", + "xs": 12, "sm": 12, "md": 8, "lg": 4, @@ -31,6 +33,7 @@ "newLine": true, "hidden": "data.localConnection && data.expertSettings", "disabled": "data.localConnection", + "xs": 12, "sm": 12, "md": 6, "lg": 4, @@ -44,6 +47,7 @@ "newLine": true, "hidden": "!data.localConnection || !data.expertSettings", "disabled": "!data.localConnection", + "xs": 12, "sm": 12, "md": 8, "lg": 4, @@ -57,6 +61,7 @@ "visible": true, "hidden": "!data.localConnection || !data.expertSettings", "disabled": "!data.localConnection", + "xs": 12, "sm": 12, "md": 8, "lg": 4, @@ -68,6 +73,7 @@ "newLine": true, "hidden": "!data.localConnection || !data.expertSettings", "disabled": "!data.localConnection", + "xs": 12, "sm": 12, "md": 6, "lg": 4, @@ -82,6 +88,7 @@ "newLine": false, "hidden": "!data.localConnection || !data.expertSettings", "disabled": "!data.localConnection", + "xs": 12, "sm": 12, "md": 6, "lg": 4, @@ -94,6 +101,7 @@ }, "historyDays": { "newLine": true, + "xs": 12, "sm": 12, "md": 6, "lg": 4, @@ -121,6 +129,7 @@ "value": 3 } ], + "xs": 12, "sm": 12, "md": 6, "lg": 4 @@ -129,6 +138,7 @@ "newLine": true, "type": "checkbox", "label": "Use astro data from the system settings", + "xs": 12, "sm": 12, "md": 6, "lg": 4 @@ -137,6 +147,7 @@ "newLine": false, "type": "checkbox", "label": "Query data at night", + "xs": 12, "sm": 12, "md": 6, "lg": 4 @@ -144,6 +155,7 @@ "longitude": { "newLine": true, "hidden": "data.systemGeoData", + "xs": 12, "sm": 12, "md": 8, "lg": 4, @@ -154,6 +166,7 @@ "latitude": { "newLine": false, "hidden": "data.systemGeoData", + "xs": 12, "sm": 12, "md": 6, "lg": 4, @@ -164,12 +177,15 @@ "_helpLine": { "newLine": true, "type": "divider", - "color": "secondary" + "color": "secondary", + "xs": 12, + "sm": 12 }, "expertSettings": { "newLine": true, "type": "checkbox", "label": "Expert Settings (Please read the Documentation before!)", + "xs": 12, "sm": 12, "md": 6, "lg": 8 @@ -187,6 +203,7 @@ "cancel": "I prefer to use the API cloud" }, "label": "Local Connection to Wifi Pocket Stick", + "xs": 12, "sm": 12, "md": 6, "lg": 8 @@ -199,17 +216,23 @@ "icon": "info", "label": "Readme Expert Settings", "href": "https://github.com/simatec/ioBroker.solax/blob/master/README.md#experteneinstellungen", - "newLine": true + "newLine": true, + "xs": 12, + "sm": 12 }, "_helpLine2": { "newLine": true, "type": "divider", - "color": "secondary" + "color": "secondary", + "xs": 12, + "sm": 12 }, "_donateTxt": { "type": "staticText", "text": "If you like this project and would like to support its development, you are welcome to leave a donation.", - "newLine": true + "newLine": true, + "xs": 12, + "sm": 12 }, "_donate": { "type": "staticImage", @@ -217,14 +240,18 @@ "noTranslation": true, "href": "https://paypal.me/mk1676", "src": "https://camo.githubusercontent.com/bf0ea06ef4d9aa4dcb2f2990d99371e7a68e543ec49b788e481568a88c745502/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70617970616c2d646f6e6174652532302537432532307370656e64656e2d626c75652e737667", - "newLine": true + "newLine": true, + "xs": 6, + "sm": 6 }, "_githubSponsor": { "type": "staticImage", "tooltip": "GitHub Sponsors", "noTranslation": true, "href": "https://github.com/sponsors/simatec", - "src": "https://camo.githubusercontent.com/365a269ff418d24bdf194ab15958a7545e2d9cc794be9e42933e57519e315b51/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d53706f6e736f72266d6573736167653d254532253944254134266c6f676f3d47697448756226636f6c6f723d253233666538653836" + "src": "https://camo.githubusercontent.com/365a269ff418d24bdf194ab15958a7545e2d9cc794be9e42933e57519e315b51/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d53706f6e736f72266d6573736167653d254532253944254134266c6f676f3d47697448756226636f6c6f723d253233666538653836", + "xs": 6, + "sm": 6 } } } \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 1e7c2e3..6065838 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "@iobroker/adapter-core": "^3.1.6", - "axios": "^1.7.4", + "axios": "^1.7.5", "node-schedule": "^2.1.1", "suncalc": "^1.9.0" }, @@ -21,9 +21,9 @@ "@alcalzone/release-script-plugin-manual-review": "^3.7.0", "@iobroker/adapter-dev": "^1.3.0", "@iobroker/testing": "^4.1.3", - "chai": "^4.3.10", + "chai": "^4.5.0", "chai-as-promised": "^7.1.2", - "eslint": "^9.9.0", + "eslint": "^9.9.1", "mocha": "^10.7.3", "sinon": "^18.0.0", "sinon-chai": "^3.7.0" @@ -241,12 +241,12 @@ } }, "node_modules/@babel/parser": { - "version": "7.25.3", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.3.tgz", - "integrity": "sha512-iLTJKDbJ4hMvFPgQwwsVoxtHyWpKKPBrxkANrSYewDPaPpT5py5yeVkgPIJ7XYXhndxJpaA3PyALSXQ7u8e/Dw==", + "version": "7.25.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.4.tgz", + "integrity": "sha512-nq+eWrOgdtu3jG5Os4TQP3x3cLA8hR8TvJNjD8vnPa20WGycimcparWnLK4jJhElTK6SDyuJo1weMKO/5LpmLA==", "dev": true, "dependencies": { - "@babel/types": "^7.25.2" + "@babel/types": "^7.25.4" }, "bin": { "parser": "bin/babel-parser.js" @@ -256,9 +256,9 @@ } }, "node_modules/@babel/types": { - "version": "7.25.2", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.2.tgz", - "integrity": "sha512-YTnYtra7W9e6/oAZEHj0bJehPRUlLH9/fbpT5LfB0NhQXyALCRkRs3zH9v07IYhkgpqX6Z78FnuccZr/l4Fs4Q==", + "version": "7.25.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.4.tgz", + "integrity": "sha512-zQ1ijeeCXVEh+aNL0RlmkPkG8HUiDcU2pzQQFjtbntgAczRASFzj4H+6+bV+dy1ntKR14I/DypeuRG1uma98iQ==", "dev": true, "dependencies": { "@babel/helper-string-parser": "^7.24.8", @@ -674,9 +674,9 @@ } }, "node_modules/@eslint/config-array": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.17.1.tgz", - "integrity": "sha512-BlYOpej8AQ8Ev9xVqroV7a02JK3SkBAaN9GfMMH9W6Ch8FlQlkjGw4Ir7+FgYwfirivAf4t+GtzuAxqfukmISA==", + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.18.0.tgz", + "integrity": "sha512-fTxvnS1sRMu3+JjXwJG0j/i4RT9u4qJ+lqS/yCGap4lH4zZGzQ7tu+xZqQmcMZq5OBZDL4QRxQzRjkWcGt8IVw==", "dev": true, "dependencies": { "@eslint/object-schema": "^2.1.4", @@ -711,9 +711,9 @@ } }, "node_modules/@eslint/js": { - "version": "9.9.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.9.0.tgz", - "integrity": "sha512-hhetes6ZHP3BlXLxmd8K2SNgkhNSi+UcecbnwWKwpP7kyi/uC75DJ1lOOBO3xrC4jyojtGE3YxKZPHfk4yrgug==", + "version": "9.9.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.9.1.tgz", + "integrity": "sha512-xIDQRsfg5hNBqHz04H1R3scSVwmI+KUbqjsQKHKQ1DAUSaUjYPReZZmS/5PNiKu1fUvzDd6H7DEDKACSEhu+TQ==", "dev": true, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -928,9 +928,9 @@ } }, "node_modules/@grpc/proto-loader/node_modules/protobufjs": { - "version": "7.3.2", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.3.2.tgz", - "integrity": "sha512-RXyHaACeqXeqAKGLDl68rQKbmObRsTIn4TYVUUug1KfS47YWCo5MacGITEryugIgZqORCvJWEk4l449POg5Txg==", + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.4.0.tgz", + "integrity": "sha512-mRUWCc3KUU4w1jU8sGxICXH/gNS94DvI1gxqDvBzhj1JpcsimQkYiOJfwsPUykUI5ZaspFbSgmBLER8IrQ3tqw==", "dev": true, "hasInstallScript": true, "dependencies": { @@ -1064,12 +1064,12 @@ } }, "node_modules/@iobroker/testing/node_modules/nise/node_modules/@sinonjs/fake-timers": { - "version": "11.2.2", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-11.2.2.tgz", - "integrity": "sha512-G2piCSxQ7oWOxwGSAyFHfPIsyeJGXYtc6mFbnFA+kRXkiEnTl8c/8jul2S329iFBnDI9HGoeWWAZvuvOkZccgw==", + "version": "11.3.1", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-11.3.1.tgz", + "integrity": "sha512-EVJO7nW5M/F5Tur0Rf2z/QoMo+1Ia963RiMtapiQrEWvY0iBUvADo8Beegwjpnle5BHkyHuoxSTW3jF43H1XRA==", "dev": true, "dependencies": { - "@sinonjs/commons": "^3.0.0" + "@sinonjs/commons": "^3.0.1" } }, "node_modules/@iobroker/testing/node_modules/sinon": { @@ -1092,9 +1092,9 @@ } }, "node_modules/@iobroker/types": { - "version": "6.0.10", - "resolved": "https://registry.npmjs.org/@iobroker/types/-/types-6.0.10.tgz", - "integrity": "sha512-3OT4a4QbLuWujobiea+zWA5JIksVdf0diZYzxcEv8W5BuvV5DUR3HlCUzXhLfF6X8Jgc+uFt3wRQ1s+m9v4/aw==", + "version": "6.0.11", + "resolved": "https://registry.npmjs.org/@iobroker/types/-/types-6.0.11.tgz", + "integrity": "sha512-RNDURjtL5Cm9wt6ocCqdRi86Qx1350zBIvvrJ9+Fjgasoi6cWCdoOghkwEeb95TH2j//q/uLqWwL8SZ0vxx6Kw==", "peer": true, "engines": { "node": ">=12.0.0" @@ -1230,12 +1230,12 @@ } }, "node_modules/@sinonjs/fake-timers": { - "version": "11.2.2", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-11.2.2.tgz", - "integrity": "sha512-G2piCSxQ7oWOxwGSAyFHfPIsyeJGXYtc6mFbnFA+kRXkiEnTl8c/8jul2S329iFBnDI9HGoeWWAZvuvOkZccgw==", + "version": "11.3.1", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-11.3.1.tgz", + "integrity": "sha512-EVJO7nW5M/F5Tur0Rf2z/QoMo+1Ia963RiMtapiQrEWvY0iBUvADo8Beegwjpnle5BHkyHuoxSTW3jF43H1XRA==", "dev": true, "dependencies": { - "@sinonjs/commons": "^3.0.0" + "@sinonjs/commons": "^3.0.1" } }, "node_modules/@sinonjs/samsam": { @@ -1268,9 +1268,9 @@ } }, "node_modules/@sinonjs/text-encoding": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/@sinonjs/text-encoding/-/text-encoding-0.7.2.tgz", - "integrity": "sha512-sXXKG+uL9IrKqViTtao2Ws6dy0znu9sOaP1di/jKGW1M6VssO8vlpXCQcpZ+jisQ1tTFAC5Jo/EOzFbggBagFQ==", + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/@sinonjs/text-encoding/-/text-encoding-0.7.3.tgz", + "integrity": "sha512-DE427ROAphMQzU4ENbliGYrBSYPXF+TtLg9S8vzeA+OF4ZKzoDdzfL8sxuMUGS/lgRhM6j1URSk9ghf7Xo1tyA==", "dev": true }, "node_modules/@tootallnate/once": { @@ -1327,9 +1327,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "22.4.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.4.1.tgz", - "integrity": "sha512-1tbpb9325+gPnKK0dMm+/LMriX0vKxf6RnB0SZUqfyVkQ4fMgUSySqhxE/y8Jvs4NyF1yHzTfG9KlnkIODxPKg==", + "version": "22.5.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.5.0.tgz", + "integrity": "sha512-DkFrJOe+rfdHTqqMg0bSNlGlQ85hSoh2TPzZyhHsXnMtligRWpxUySiyw8FY14ITt24HVCiQPWxS3KO/QlGmWg==", "dev": true, "dependencies": { "undici-types": "~6.19.2" @@ -1494,9 +1494,9 @@ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, "node_modules/axios": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz", - "integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==", + "version": "1.7.5", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.5.tgz", + "integrity": "sha512-fZu86yCo+svH3uqJ/yTdQ0QHpQu5oL+/QE+QPSv6BZSkDAoky9vytxp7u5qk83OJFS3kEBcesWni9WTZAv3tSw==", "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", @@ -2076,16 +2076,16 @@ } }, "node_modules/eslint": { - "version": "9.9.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.9.0.tgz", - "integrity": "sha512-JfiKJrbx0506OEerjK2Y1QlldtBxkAlLxT5OEcRF8uaQ86noDe2k31Vw9rnSWv+MXZHj7OOUV/dA0AhdLFcyvA==", + "version": "9.9.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.9.1.tgz", + "integrity": "sha512-dHvhrbfr4xFQ9/dq+jcVneZMyRYLjggWjk6RVsIiHsP8Rz6yZ8LvZ//iU4TrZF+SXWG+JkNF2OyiZRvzgRDqMg==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.11.0", - "@eslint/config-array": "^0.17.1", + "@eslint/config-array": "^0.18.0", "@eslint/eslintrc": "^3.1.0", - "@eslint/js": "9.9.0", + "@eslint/js": "9.9.1", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.3.0", "@nodelib/fs.walk": "^1.2.8", @@ -4181,9 +4181,9 @@ "dev": true }, "node_modules/undici-types": { - "version": "6.19.6", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.6.tgz", - "integrity": "sha512-e/vggGopEfTKSvj4ihnOLTsqhrKRN3LeO6qSN/GxohhuRv8qH9bNQ4B8W7e/vFL+0XTnmHPB4/kegunZGA4Org==", + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", "dev": true }, "node_modules/universalify": { diff --git a/package.json b/package.json index 719244b..4bd5e97 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ }, "dependencies": { "@iobroker/adapter-core": "^3.1.6", - "axios": "^1.7.4", + "axios": "^1.7.5", "node-schedule": "^2.1.1", "suncalc": "^1.9.0" }, @@ -35,8 +35,8 @@ "@alcalzone/release-script-plugin-manual-review": "^3.7.0", "@iobroker/testing": "^4.1.3", "@iobroker/adapter-dev": "^1.3.0", - "chai": "^4.3.10", - "eslint": "^9.9.0", + "chai": "^4.5.0", + "eslint": "^9.9.1", "mocha": "^10.7.3", "sinon": "^18.0.0", "sinon-chai": "^3.7.0",