@iobroker/adapter-react-v5 6.1.0 → 6.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LegacyConnection.d.ts +4 -4
- package/LegacyConnection.js +6 -6
- package/README.md +6 -0
- package/i18n/de.json +2 -1
- package/i18n/en.json +1 -0
- package/i18n/es.json +2 -1
- package/i18n/fr.json +2 -1
- package/i18n/it.json +2 -1
- package/i18n/nl.json +2 -1
- package/i18n/pl.json +2 -1
- package/i18n/pt.json +2 -1
- package/i18n/ru.json +2 -1
- package/i18n/uk.json +2 -1
- package/i18n/zh-cn.json +2 -1
- package/package.json +3 -3
package/LegacyConnection.d.ts
CHANGED
|
@@ -129,7 +129,7 @@ declare class Connection {
|
|
|
129
129
|
private onCmdStdoutHandler;
|
|
130
130
|
private onCmdStderrHandler;
|
|
131
131
|
private onCmdExitHandler;
|
|
132
|
-
systemConfig: ioBroker.
|
|
132
|
+
systemConfig: ioBroker.SystemConfigObject | null;
|
|
133
133
|
constructor(props: ConnectionProps);
|
|
134
134
|
/**
|
|
135
135
|
* Checks if this connection is running in a web adapter and not in an admin.
|
|
@@ -680,11 +680,11 @@ declare class Connection {
|
|
|
680
680
|
* @param {boolean} [update] Force update.
|
|
681
681
|
* @returns {Promise<ioBroker.OtherObject>}
|
|
682
682
|
*/
|
|
683
|
-
getSystemConfig(update?: boolean): Promise<ioBroker.
|
|
683
|
+
getSystemConfig(update?: boolean): Promise<ioBroker.SystemConfigObject>;
|
|
684
684
|
/**
|
|
685
685
|
* Sets the system configuration.
|
|
686
686
|
*/
|
|
687
|
-
setSystemConfig(obj: ioBroker.SettableObjectWorker<ioBroker.
|
|
687
|
+
setSystemConfig(obj: ioBroker.SettableObjectWorker<ioBroker.SystemConfigObject>): Promise<ioBroker.SystemConfigObject>;
|
|
688
688
|
/**
|
|
689
689
|
* Get the raw socket.io socket.
|
|
690
690
|
*/
|
|
@@ -835,7 +835,7 @@ declare class Connection {
|
|
|
835
835
|
*/
|
|
836
836
|
getCompactInstalled(host: string, update?: boolean, cmdTimeout?: number): Promise<Record<string, ioBroker.AdapterObject>>;
|
|
837
837
|
getCompactSystemRepositories(update?: boolean, cmdTimeout?: number): Promise<ioBroker.Object>;
|
|
838
|
-
getCompactSystemConfig(update?: boolean): Promise<ioBroker.
|
|
838
|
+
getCompactSystemConfig(update?: boolean): Promise<ioBroker.SystemConfigObject>;
|
|
839
839
|
/**
|
|
840
840
|
* Get the repository in compact form (only version and icon).
|
|
841
841
|
* @param {string} host
|
package/LegacyConnection.js
CHANGED
|
@@ -2204,8 +2204,8 @@ class Connection {
|
|
|
2204
2204
|
return Promise.reject(NOT_CONNECTED);
|
|
2205
2205
|
}
|
|
2206
2206
|
this._promises.systemConfig = this.getObject('system.config')
|
|
2207
|
-
.then(
|
|
2208
|
-
systemConfig =
|
|
2207
|
+
.then(obj => {
|
|
2208
|
+
const systemConfig = (obj || {});
|
|
2209
2209
|
systemConfig.common = systemConfig.common || {};
|
|
2210
2210
|
systemConfig.native = systemConfig.native || {};
|
|
2211
2211
|
return systemConfig;
|
|
@@ -2692,16 +2692,16 @@ class Connection {
|
|
|
2692
2692
|
}
|
|
2693
2693
|
// returns very optimized information for adapters to minimize a connection load
|
|
2694
2694
|
getCompactSystemConfig(update) {
|
|
2695
|
-
if (!update && this._promises.
|
|
2696
|
-
return this._promises.
|
|
2695
|
+
if (!update && this._promises.systemConfigPromise) {
|
|
2696
|
+
return this._promises.systemConfigPromise;
|
|
2697
2697
|
}
|
|
2698
2698
|
if (!this.connected) {
|
|
2699
2699
|
return Promise.reject(NOT_CONNECTED);
|
|
2700
2700
|
}
|
|
2701
|
-
this._promises.
|
|
2701
|
+
this._promises.systemConfigPromise = new Promise((resolve, reject) => {
|
|
2702
2702
|
this._socket.emit('getCompactSystemConfig', (err, systemConfig) => (err ? reject(err) : resolve(systemConfig)));
|
|
2703
2703
|
});
|
|
2704
|
-
return this._promises.
|
|
2704
|
+
return this._promises.systemConfigPromise;
|
|
2705
2705
|
}
|
|
2706
2706
|
/**
|
|
2707
2707
|
* Get the repository in compact form (only version and icon).
|
package/README.md
CHANGED
|
@@ -781,6 +781,12 @@ The best practice is to replace `padding` with `p` and `margin` with `m`, so you
|
|
|
781
781
|
-->
|
|
782
782
|
|
|
783
783
|
## Changelog
|
|
784
|
+
### 6.1.2 (2024-07-20)
|
|
785
|
+
* (bluefox) Better typing of legacy connection
|
|
786
|
+
|
|
787
|
+
### 6.1.1 (2024-07-16)
|
|
788
|
+
* (bluefox) Added translations
|
|
789
|
+
|
|
784
790
|
### 6.1.0 (2024-07-15)
|
|
785
791
|
* (bluefox) Replace by CRON to text the package to `cronstrue`
|
|
786
792
|
|
package/i18n/de.json
CHANGED
|
@@ -426,5 +426,6 @@
|
|
|
426
426
|
"sc_everyN_dow": "jeden x-ten Tag der Woche",
|
|
427
427
|
"sc_every_dow": "jeden Tag der Woche",
|
|
428
428
|
"sc_specific_dow": "bestimmte(r) Tag(e) der Woche",
|
|
429
|
-
"ra_Name": "Name"
|
|
429
|
+
"ra_Name": "Name",
|
|
430
|
+
"ra_import data from %s file": "Daten aus %s-Datei importieren"
|
|
430
431
|
}
|
package/i18n/en.json
CHANGED
|
@@ -417,6 +417,7 @@
|
|
|
417
417
|
"ra_You can export all objects or just the selected branch.": "You can export all objects or just the selected branch.",
|
|
418
418
|
"ra_Do not export values of states": "Do not export values of states",
|
|
419
419
|
"ra_Selected %s object(s)": "Selected %s object(s)",
|
|
420
|
+
"ra_import data from %s file": "Import data from %s file",
|
|
420
421
|
"ra_create_device": "Create device",
|
|
421
422
|
"ra_create_channel": "Create channel",
|
|
422
423
|
"ra_create_state": "Create state",
|
package/i18n/es.json
CHANGED
|
@@ -426,5 +426,6 @@
|
|
|
426
426
|
"sc_everyN_dow": "cada enésimo día de la semana",
|
|
427
427
|
"sc_every_dow": "Cada día de la semana",
|
|
428
428
|
"sc_specific_dow": "día(s) específico(s) de la semana",
|
|
429
|
-
"ra_Name": "Nombre"
|
|
429
|
+
"ra_Name": "Nombre",
|
|
430
|
+
"ra_import data from %s file": "Importar datos del archivo %s"
|
|
430
431
|
}
|
package/i18n/fr.json
CHANGED
|
@@ -426,5 +426,6 @@
|
|
|
426
426
|
"sc_everyN_dow": "chaque Nième jour de la semaine",
|
|
427
427
|
"sc_every_dow": "Chaque jour de la semaine",
|
|
428
428
|
"sc_specific_dow": "jour(s) spécifique(s) de la semaine",
|
|
429
|
-
"ra_Name": "Nom"
|
|
429
|
+
"ra_Name": "Nom",
|
|
430
|
+
"ra_import data from %s file": "Importer des données à partir du fichier %s"
|
|
430
431
|
}
|
package/i18n/it.json
CHANGED
|
@@ -426,5 +426,6 @@
|
|
|
426
426
|
"sc_everyN_dow": "ogni Nesimo giorno della settimana",
|
|
427
427
|
"sc_every_dow": "Tutti i giorni della settimana",
|
|
428
428
|
"sc_specific_dow": "giorno/i specifico/i della settimana",
|
|
429
|
-
"ra_Name": "Nome"
|
|
429
|
+
"ra_Name": "Nome",
|
|
430
|
+
"ra_import data from %s file": "Importa dati dal file %s"
|
|
430
431
|
}
|
package/i18n/nl.json
CHANGED
|
@@ -426,5 +426,6 @@
|
|
|
426
426
|
"sc_everyN_dow": "elke N-de dag van de week",
|
|
427
427
|
"sc_every_dow": "elke dag van de week",
|
|
428
428
|
"sc_specific_dow": "specifieke dag(en) van de week",
|
|
429
|
-
"ra_Name": "Naam"
|
|
429
|
+
"ra_Name": "Naam",
|
|
430
|
+
"ra_import data from %s file": "Importeer gegevens uit %s bestand"
|
|
430
431
|
}
|
package/i18n/pl.json
CHANGED
|
@@ -426,5 +426,6 @@
|
|
|
426
426
|
"sc_everyN_dow": "w każdy N-ty dzień tygodnia",
|
|
427
427
|
"sc_every_dow": "każdy dzień tygodnia",
|
|
428
428
|
"sc_specific_dow": "określone dni tygodnia",
|
|
429
|
-
"ra_Name": "Nazwa"
|
|
429
|
+
"ra_Name": "Nazwa",
|
|
430
|
+
"ra_import data from %s file": "Importuj dane z pliku %s"
|
|
430
431
|
}
|
package/i18n/pt.json
CHANGED
|
@@ -426,5 +426,6 @@
|
|
|
426
426
|
"sc_everyN_dow": "todo enésimo dia da semana",
|
|
427
427
|
"sc_every_dow": "todos os dias da semana",
|
|
428
428
|
"sc_specific_dow": "dia(s) específico(s) da semana",
|
|
429
|
-
"ra_Name": "Nome"
|
|
429
|
+
"ra_Name": "Nome",
|
|
430
|
+
"ra_import data from %s file": "Importar dados do arquivo %s"
|
|
430
431
|
}
|
package/i18n/ru.json
CHANGED
|
@@ -426,5 +426,6 @@
|
|
|
426
426
|
"sc_everyN_dow": "каждый N-й день недели",
|
|
427
427
|
"sc_every_dow": "Каждый день недели",
|
|
428
428
|
"sc_specific_dow": "конкретный день(а) недели",
|
|
429
|
-
"ra_Name": "Имя"
|
|
429
|
+
"ra_Name": "Имя",
|
|
430
|
+
"ra_import data from %s file": "Импортировать данные из файла %s"
|
|
430
431
|
}
|
package/i18n/uk.json
CHANGED
package/i18n/zh-cn.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iobroker/adapter-react-v5",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.2",
|
|
4
4
|
"description": "React classes to develop admin interfaces for ioBroker with react.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Denis Haev (bluefox)",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"@iobroker/types": "^6.0.8",
|
|
34
34
|
"@iobroker/js-controller-common": "^6.0.8",
|
|
35
35
|
"@iobroker/js-controller-common-db": "^6.0.8",
|
|
36
|
-
"@mui/icons-material": "^5.16.
|
|
37
|
-
"@mui/material": "^5.16.
|
|
36
|
+
"@mui/icons-material": "^5.16.2",
|
|
37
|
+
"@mui/material": "^5.16.2",
|
|
38
38
|
"@mui/x-date-pickers": "^7.10.0",
|
|
39
39
|
"@sentry/browser": "^8.17.0",
|
|
40
40
|
"cronstrue": "^2.50.0",
|