@iobroker/adapter-react-v5 4.0.7 → 4.0.9
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/Components/404.js.map +1 -1
- package/Components/FileBrowser.js.map +1 -1
- package/Components/IconSelector.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCRON.js +13 -15
- package/Components/JsonConfigComponent/ConfigCRON.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCertificateSelect.js +39 -41
- package/Components/JsonConfigComponent/ConfigCertificateSelect.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCheckLicense.js +314 -322
- package/Components/JsonConfigComponent/ConfigCheckLicense.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCustom.js +138 -144
- package/Components/JsonConfigComponent/ConfigCustom.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigFile.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigFileSelector.js +95 -99
- package/Components/JsonConfigComponent/ConfigFileSelector.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigFunc.js +13 -7
- package/Components/JsonConfigComponent/ConfigFunc.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigGeneric.js +4 -6
- package/Components/JsonConfigComponent/ConfigGeneric.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigIP.js +1 -1
- package/Components/JsonConfigComponent/ConfigIP.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigImageUpload.js +21 -23
- package/Components/JsonConfigComponent/ConfigImageUpload.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigInstanceSelect.js +69 -71
- package/Components/JsonConfigComponent/ConfigInstanceSelect.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigJsonEditor.js +17 -19
- package/Components/JsonConfigComponent/ConfigJsonEditor.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigLanguage.js +2 -2
- package/Components/JsonConfigComponent/ConfigLanguage.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigNumber.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigObjectId.js +14 -16
- package/Components/JsonConfigComponent/ConfigObjectId.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigPattern.js +1 -1
- package/Components/JsonConfigComponent/ConfigPattern.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigRoom.js +12 -6
- package/Components/JsonConfigComponent/ConfigRoom.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSelect.js +1 -1
- package/Components/JsonConfigComponent/ConfigSelect.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSendto.js +54 -41
- package/Components/JsonConfigComponent/ConfigSendto.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSetState.js +70 -76
- package/Components/JsonConfigComponent/ConfigSetState.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigTable.js +21 -23
- package/Components/JsonConfigComponent/ConfigTable.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigTextSendTo.js +2 -2
- package/Components/JsonConfigComponent/ConfigTextSendTo.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigUUID.js +13 -15
- package/Components/JsonConfigComponent/ConfigUUID.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigUser.js +2 -2
- package/Components/JsonConfigComponent/ConfigUser.js.map +1 -1
- package/Components/ObjectBrowser.js +198 -204
- package/Components/ObjectBrowser.js.map +1 -1
- package/Components/Schedule.js.map +1 -1
- package/Dialogs/SelectFile.js.map +1 -1
- package/Dialogs/SelectID.js.map +1 -1
- package/GenericApp.js +1 -1
- package/GenericApp.js.map +1 -1
- package/LICENSE +1 -1
- package/README.md +7 -3
- package/_Connection.js +23 -25
- package/_Connection.js.map +1 -1
- package/i18n/de.json +3 -1
- package/i18n/en.json +3 -1
- package/i18n/es.json +3 -1
- package/i18n/fr.json +3 -1
- package/i18n/it.json +3 -1
- package/i18n/nl.json +3 -1
- package/i18n/pl.json +3 -1
- package/i18n/pt.json +3 -1
- package/i18n/ru.json +3 -1
- package/i18n/uk.json +3 -1
- package/i18n/zh-cn.json +3 -1
- package/package.json +7 -7
|
@@ -1153,7 +1153,7 @@ function buildTree(objects, options) {
|
|
|
1153
1153
|
hasSomeCustoms: false
|
|
1154
1154
|
};
|
|
1155
1155
|
var croot = root;
|
|
1156
|
-
var _loop = function _loop(
|
|
1156
|
+
var _loop = function _loop() {
|
|
1157
1157
|
var id = ids[i];
|
|
1158
1158
|
if (!id) {
|
|
1159
1159
|
return "continue";
|
|
@@ -1183,7 +1183,7 @@ function buildTree(objects, options) {
|
|
|
1183
1183
|
}
|
|
1184
1184
|
}
|
|
1185
1185
|
info.ids.push(id);
|
|
1186
|
-
var repeat
|
|
1186
|
+
var repeat;
|
|
1187
1187
|
|
|
1188
1188
|
// if next level
|
|
1189
1189
|
do {
|
|
@@ -1270,7 +1270,7 @@ function buildTree(objects, options) {
|
|
|
1270
1270
|
} while (repeat);
|
|
1271
1271
|
};
|
|
1272
1272
|
for (var i = 0; i < ids.length; i++) {
|
|
1273
|
-
var _ret = _loop(
|
|
1273
|
+
var _ret = _loop();
|
|
1274
1274
|
if (_ret === "continue") continue;
|
|
1275
1275
|
}
|
|
1276
1276
|
info.roomEnums.sort(function (a, b) {
|
|
@@ -1850,61 +1850,59 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
1850
1850
|
var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(enums, objId) {
|
|
1851
1851
|
var e, _enObj$common, _enObj$common$members, id, _enObj, enObj;
|
|
1852
1852
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
1853
|
-
while (1) {
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
_context.next = 24;
|
|
1860
|
-
break;
|
|
1861
|
-
}
|
|
1862
|
-
id = enums[e];
|
|
1863
|
-
_enObj = void 0;
|
|
1864
|
-
if ((0, _typeof2["default"])(id) === 'object') {
|
|
1865
|
-
_enObj = id;
|
|
1866
|
-
id = id._id;
|
|
1867
|
-
}
|
|
1868
|
-
enObj = _this.objects[id];
|
|
1869
|
-
if (enObj) {
|
|
1870
|
-
_context.next = 14;
|
|
1871
|
-
break;
|
|
1872
|
-
}
|
|
1873
|
-
enObj = _enObj || {
|
|
1874
|
-
_id: id,
|
|
1875
|
-
common: {
|
|
1876
|
-
name: id.split('.').pop(),
|
|
1877
|
-
members: []
|
|
1878
|
-
},
|
|
1879
|
-
"native": {}
|
|
1880
|
-
};
|
|
1881
|
-
enObj.common = enObj.common || {};
|
|
1882
|
-
enObj.common.members = [objId];
|
|
1883
|
-
_context.next = 12;
|
|
1884
|
-
return _this.props.socket.setObject(id, enObj);
|
|
1885
|
-
case 12:
|
|
1886
|
-
_context.next = 21;
|
|
1853
|
+
while (1) switch (_context.prev = _context.next) {
|
|
1854
|
+
case 0:
|
|
1855
|
+
e = 0;
|
|
1856
|
+
case 1:
|
|
1857
|
+
if (!(e < enums.length)) {
|
|
1858
|
+
_context.next = 24;
|
|
1887
1859
|
break;
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1860
|
+
}
|
|
1861
|
+
id = enums[e];
|
|
1862
|
+
_enObj = void 0;
|
|
1863
|
+
if ((0, _typeof2["default"])(id) === 'object') {
|
|
1864
|
+
_enObj = id;
|
|
1865
|
+
id = id._id;
|
|
1866
|
+
}
|
|
1867
|
+
enObj = _this.objects[id];
|
|
1868
|
+
if (enObj) {
|
|
1869
|
+
_context.next = 14;
|
|
1870
|
+
break;
|
|
1871
|
+
}
|
|
1872
|
+
enObj = _enObj || {
|
|
1873
|
+
_id: id,
|
|
1874
|
+
common: {
|
|
1875
|
+
name: id.split('.').pop(),
|
|
1876
|
+
members: []
|
|
1877
|
+
},
|
|
1878
|
+
"native": {}
|
|
1879
|
+
};
|
|
1880
|
+
enObj.common = enObj.common || {};
|
|
1881
|
+
enObj.common.members = [objId];
|
|
1882
|
+
_context.next = 12;
|
|
1883
|
+
return _this.props.socket.setObject(id, enObj);
|
|
1884
|
+
case 12:
|
|
1885
|
+
_context.next = 21;
|
|
1886
|
+
break;
|
|
1887
|
+
case 14:
|
|
1888
|
+
if ((_enObj$common = enObj.common) !== null && _enObj$common !== void 0 && (_enObj$common$members = _enObj$common.members) !== null && _enObj$common$members !== void 0 && _enObj$common$members.includes(objId)) {
|
|
1898
1889
|
_context.next = 21;
|
|
1899
|
-
return _this.props.socket.setObject(id, enObj);
|
|
1900
|
-
case 21:
|
|
1901
|
-
e++;
|
|
1902
|
-
_context.next = 1;
|
|
1903
1890
|
break;
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1891
|
+
}
|
|
1892
|
+
enObj.common = enObj.common || {};
|
|
1893
|
+
enObj.common.members = enObj.common.members || [];
|
|
1894
|
+
// add missing object
|
|
1895
|
+
enObj.common.members.push(objId);
|
|
1896
|
+
enObj.common.members.sort();
|
|
1897
|
+
_context.next = 21;
|
|
1898
|
+
return _this.props.socket.setObject(id, enObj);
|
|
1899
|
+
case 21:
|
|
1900
|
+
e++;
|
|
1901
|
+
_context.next = 1;
|
|
1902
|
+
break;
|
|
1903
|
+
case 24:
|
|
1904
|
+
case "end":
|
|
1905
|
+
return _context.stop();
|
|
1908
1906
|
}
|
|
1909
1907
|
}, _callee);
|
|
1910
1908
|
}));
|
|
@@ -1916,90 +1914,88 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
1916
1914
|
var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(objs) {
|
|
1917
1915
|
var id, obj, enums, state;
|
|
1918
1916
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
1919
|
-
while (1) {
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1917
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
1918
|
+
case 0:
|
|
1919
|
+
if (!objs) {
|
|
1920
|
+
_context2.next = 42;
|
|
1921
|
+
break;
|
|
1922
|
+
}
|
|
1923
|
+
_context2.t0 = _regenerator["default"].keys(objs);
|
|
1924
|
+
case 2:
|
|
1925
|
+
if ((_context2.t1 = _context2.t0()).done) {
|
|
1926
|
+
_context2.next = 42;
|
|
1927
|
+
break;
|
|
1928
|
+
}
|
|
1929
|
+
id = _context2.t1.value;
|
|
1930
|
+
if (!(!Object.hasOwn(objs, id) || !objs[id])) {
|
|
1931
|
+
_context2.next = 6;
|
|
1932
|
+
break;
|
|
1933
|
+
}
|
|
1934
|
+
return _context2.abrupt("continue", 2);
|
|
1935
|
+
case 6:
|
|
1936
|
+
obj = objs[id];
|
|
1937
|
+
enums = null;
|
|
1938
|
+
if (obj && obj.common && obj.common.enums) {
|
|
1939
|
+
enums = obj.common.enums;
|
|
1940
|
+
delete obj.common.enums;
|
|
1941
|
+
} else {
|
|
1940
1942
|
enums = null;
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
_context2.next = 12;
|
|
1949
|
-
return _this.props.socket.setObject(id, obj);
|
|
1950
|
-
case 12:
|
|
1951
|
-
_context2.t2 = enums;
|
|
1952
|
-
if (!_context2.t2) {
|
|
1953
|
-
_context2.next = 16;
|
|
1954
|
-
break;
|
|
1955
|
-
}
|
|
1943
|
+
}
|
|
1944
|
+
_context2.prev = 9;
|
|
1945
|
+
_context2.next = 12;
|
|
1946
|
+
return _this.props.socket.setObject(id, obj);
|
|
1947
|
+
case 12:
|
|
1948
|
+
_context2.t2 = enums;
|
|
1949
|
+
if (!_context2.t2) {
|
|
1956
1950
|
_context2.next = 16;
|
|
1957
|
-
return _this._createAllEnums(enums, obj._id);
|
|
1958
|
-
case 16:
|
|
1959
|
-
if (!(obj.type === 'state')) {
|
|
1960
|
-
_context2.next = 35;
|
|
1961
|
-
break;
|
|
1962
|
-
}
|
|
1963
|
-
_context2.prev = 17;
|
|
1964
|
-
_context2.next = 20;
|
|
1965
|
-
return _this.props.socket.getState(obj._id);
|
|
1966
|
-
case 20:
|
|
1967
|
-
state = _context2.sent;
|
|
1968
|
-
if (!(!state || state.val === null)) {
|
|
1969
|
-
_context2.next = 30;
|
|
1970
|
-
break;
|
|
1971
|
-
}
|
|
1972
|
-
_context2.prev = 22;
|
|
1973
|
-
_context2.next = 25;
|
|
1974
|
-
return _this.props.socket.setState(obj._id, !obj.common || obj.common.def === undefined ? null : obj.common.def, true);
|
|
1975
|
-
case 25:
|
|
1976
|
-
_context2.next = 30;
|
|
1977
1951
|
break;
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1952
|
+
}
|
|
1953
|
+
_context2.next = 16;
|
|
1954
|
+
return _this._createAllEnums(enums, obj._id);
|
|
1955
|
+
case 16:
|
|
1956
|
+
if (!(obj.type === 'state')) {
|
|
1983
1957
|
_context2.next = 35;
|
|
1984
1958
|
break;
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
_context2.prev = 37;
|
|
1994
|
-
_context2.t5 = _context2["catch"](9);
|
|
1995
|
-
window.alert(_context2.t5);
|
|
1996
|
-
case 40:
|
|
1997
|
-
_context2.next = 2;
|
|
1959
|
+
}
|
|
1960
|
+
_context2.prev = 17;
|
|
1961
|
+
_context2.next = 20;
|
|
1962
|
+
return _this.props.socket.getState(obj._id);
|
|
1963
|
+
case 20:
|
|
1964
|
+
state = _context2.sent;
|
|
1965
|
+
if (!(!state || state.val === null)) {
|
|
1966
|
+
_context2.next = 30;
|
|
1998
1967
|
break;
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
1968
|
+
}
|
|
1969
|
+
_context2.prev = 22;
|
|
1970
|
+
_context2.next = 25;
|
|
1971
|
+
return _this.props.socket.setState(obj._id, !obj.common || obj.common.def === undefined ? null : obj.common.def, true);
|
|
1972
|
+
case 25:
|
|
1973
|
+
_context2.next = 30;
|
|
1974
|
+
break;
|
|
1975
|
+
case 27:
|
|
1976
|
+
_context2.prev = 27;
|
|
1977
|
+
_context2.t3 = _context2["catch"](22);
|
|
1978
|
+
window.alert("Cannot set state \"".concat(obj._id, "\": ").concat(_context2.t3));
|
|
1979
|
+
case 30:
|
|
1980
|
+
_context2.next = 35;
|
|
1981
|
+
break;
|
|
1982
|
+
case 32:
|
|
1983
|
+
_context2.prev = 32;
|
|
1984
|
+
_context2.t4 = _context2["catch"](17);
|
|
1985
|
+
window.alert("Cannot read state \"".concat(obj._id, "\": ").concat(_context2.t4));
|
|
1986
|
+
case 35:
|
|
1987
|
+
_context2.next = 40;
|
|
1988
|
+
break;
|
|
1989
|
+
case 37:
|
|
1990
|
+
_context2.prev = 37;
|
|
1991
|
+
_context2.t5 = _context2["catch"](9);
|
|
1992
|
+
window.alert(_context2.t5);
|
|
1993
|
+
case 40:
|
|
1994
|
+
_context2.next = 2;
|
|
1995
|
+
break;
|
|
1996
|
+
case 42:
|
|
1997
|
+
case "end":
|
|
1998
|
+
return _context2.stop();
|
|
2003
1999
|
}
|
|
2004
2000
|
}, _callee2, null, [[9, 37], [17, 32], [22, 27]]);
|
|
2005
2001
|
}));
|
|
@@ -2015,81 +2011,79 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
2015
2011
|
var _ref3 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(e) {
|
|
2016
2012
|
var contents, json, len, id, enums, state;
|
|
2017
2013
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
2018
|
-
while (1) {
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
_context3.next = 11;
|
|
2028
|
-
break;
|
|
2029
|
-
}
|
|
2030
|
-
_context3.next = 8;
|
|
2031
|
-
return _this.loadObjects(json);
|
|
2032
|
-
case 8:
|
|
2033
|
-
window.alert(_this.props.t('ra_%s object(s) processed', len));
|
|
2034
|
-
_context3.next = 33;
|
|
2014
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
2015
|
+
case 0:
|
|
2016
|
+
contents = e.target.result;
|
|
2017
|
+
_context3.prev = 1;
|
|
2018
|
+
json = JSON.parse(contents);
|
|
2019
|
+
len = Object.keys(json).length;
|
|
2020
|
+
id = json._id;
|
|
2021
|
+
if (!(id === undefined && len)) {
|
|
2022
|
+
_context3.next = 11;
|
|
2035
2023
|
break;
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
if (!(!state || state.val === null || state.val === undefined)) {
|
|
2060
|
-
_context3.next = 24;
|
|
2061
|
-
break;
|
|
2062
|
-
}
|
|
2024
|
+
}
|
|
2025
|
+
_context3.next = 8;
|
|
2026
|
+
return _this.loadObjects(json);
|
|
2027
|
+
case 8:
|
|
2028
|
+
window.alert(_this.props.t('ra_%s object(s) processed', len));
|
|
2029
|
+
_context3.next = 33;
|
|
2030
|
+
break;
|
|
2031
|
+
case 11:
|
|
2032
|
+
if (id) {
|
|
2033
|
+
_context3.next = 13;
|
|
2034
|
+
break;
|
|
2035
|
+
}
|
|
2036
|
+
return _context3.abrupt("return", window.alert(_this.props.t('ra_Invalid structure')));
|
|
2037
|
+
case 13:
|
|
2038
|
+
_context3.prev = 13;
|
|
2039
|
+
if (json.common.enums) {
|
|
2040
|
+
enums = json.common.enums;
|
|
2041
|
+
delete json.common.enums;
|
|
2042
|
+
}
|
|
2043
|
+
_context3.next = 17;
|
|
2044
|
+
return _this.props.socket.setObject(json._id, json);
|
|
2045
|
+
case 17:
|
|
2046
|
+
if (!(json.type === 'state')) {
|
|
2063
2047
|
_context3.next = 24;
|
|
2064
|
-
return _this.props.socket.getState(json._id, json.common.def === undefined ? null : json.common.def, true);
|
|
2065
|
-
case 24:
|
|
2066
|
-
if (!enums) {
|
|
2067
|
-
_context3.next = 27;
|
|
2068
|
-
break;
|
|
2069
|
-
}
|
|
2070
|
-
_context3.next = 27;
|
|
2071
|
-
return _this._createAllEnums(enums, json._id);
|
|
2072
|
-
case 27:
|
|
2073
|
-
window.alert(_this.props.t('ra_%s was imported', json._id));
|
|
2074
|
-
_context3.next = 33;
|
|
2075
2048
|
break;
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2049
|
+
}
|
|
2050
|
+
_context3.next = 20;
|
|
2051
|
+
return _this.props.socket.getState(json._id);
|
|
2052
|
+
case 20:
|
|
2053
|
+
state = _context3.sent;
|
|
2054
|
+
if (!(!state || state.val === null || state.val === undefined)) {
|
|
2055
|
+
_context3.next = 24;
|
|
2082
2056
|
break;
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2057
|
+
}
|
|
2058
|
+
_context3.next = 24;
|
|
2059
|
+
return _this.props.socket.getState(json._id, json.common.def === undefined ? null : json.common.def, true);
|
|
2060
|
+
case 24:
|
|
2061
|
+
if (!enums) {
|
|
2062
|
+
_context3.next = 27;
|
|
2063
|
+
break;
|
|
2064
|
+
}
|
|
2065
|
+
_context3.next = 27;
|
|
2066
|
+
return _this._createAllEnums(enums, json._id);
|
|
2067
|
+
case 27:
|
|
2068
|
+
window.alert(_this.props.t('ra_%s was imported', json._id));
|
|
2069
|
+
_context3.next = 33;
|
|
2070
|
+
break;
|
|
2071
|
+
case 30:
|
|
2072
|
+
_context3.prev = 30;
|
|
2073
|
+
_context3.t0 = _context3["catch"](13);
|
|
2074
|
+
window.alert(_context3.t0);
|
|
2075
|
+
case 33:
|
|
2076
|
+
_context3.next = 38;
|
|
2077
|
+
break;
|
|
2078
|
+
case 35:
|
|
2079
|
+
_context3.prev = 35;
|
|
2080
|
+
_context3.t1 = _context3["catch"](1);
|
|
2081
|
+
window.alert(_context3.t1);
|
|
2082
|
+
case 38:
|
|
2083
|
+
return _context3.abrupt("return", null);
|
|
2084
|
+
case 39:
|
|
2085
|
+
case "end":
|
|
2086
|
+
return _context3.stop();
|
|
2093
2087
|
}
|
|
2094
2088
|
}, _callee3, null, [[1, 35], [13, 30]]);
|
|
2095
2089
|
}));
|