ywana-core8 0.1.23 → 0.1.25
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/dist/index.cjs +11 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +11 -7
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +11 -7
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/http/client.js +8 -4
- package/src/widgets/login/LoginBox.js +2 -2
- package/src/widgets/login/ResetPasswordBoxTest.js +1 -1
package/dist/index.cjs
CHANGED
@@ -94,16 +94,18 @@ var fetchAsync = function fetchAsync(method, URL, body, token, headers) {
|
|
94
94
|
}();
|
95
95
|
return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
|
96
96
|
});
|
97
|
-
}, function (
|
98
|
-
if (
|
97
|
+
}, function (response) {
|
98
|
+
if (response instanceof response) {
|
99
99
|
throw {
|
100
|
-
|
100
|
+
response: response
|
101
101
|
};
|
102
102
|
}
|
103
|
-
return Promise.resolve(
|
103
|
+
return Promise.resolve(response.json()).then(function (json) {
|
104
104
|
throw {
|
105
105
|
success: false,
|
106
|
-
message: json.message || json.err
|
106
|
+
message: json.message || json.err,
|
107
|
+
status: response.status,
|
108
|
+
statusText: response.statusText
|
107
109
|
};
|
108
110
|
});
|
109
111
|
}));
|
@@ -1762,7 +1764,8 @@ var LoginBox = function LoginBox(_ref) {
|
|
1762
1764
|
value: user,
|
1763
1765
|
onChange: changeUser,
|
1764
1766
|
onEnter: ok,
|
1765
|
-
outlined: true
|
1767
|
+
outlined: true,
|
1768
|
+
autoComplete: "on"
|
1766
1769
|
}), /*#__PURE__*/React__default["default"].createElement(TextField, {
|
1767
1770
|
id: "loginbox-password",
|
1768
1771
|
label: tx(passwordLabel),
|
@@ -1770,7 +1773,8 @@ var LoginBox = function LoginBox(_ref) {
|
|
1770
1773
|
onChange: changePassword,
|
1771
1774
|
onEnter: ok,
|
1772
1775
|
type: "password",
|
1773
|
-
outlined: true
|
1776
|
+
outlined: true,
|
1777
|
+
autoComplete: "on"
|
1774
1778
|
})), /*#__PURE__*/React__default["default"].createElement("footer", null, loading ? /*#__PURE__*/React__default["default"].createElement("div", {
|
1775
1779
|
className: "load-box"
|
1776
1780
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|