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.umd.js
CHANGED
@@ -87,16 +87,18 @@
|
|
87
87
|
}();
|
88
88
|
return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
|
89
89
|
});
|
90
|
-
}, function (
|
91
|
-
if (
|
90
|
+
}, function (response) {
|
91
|
+
if (response instanceof response) {
|
92
92
|
throw {
|
93
|
-
|
93
|
+
response: response
|
94
94
|
};
|
95
95
|
}
|
96
|
-
return Promise.resolve(
|
96
|
+
return Promise.resolve(response.json()).then(function (json) {
|
97
97
|
throw {
|
98
98
|
success: false,
|
99
|
-
message: json.message || json.err
|
99
|
+
message: json.message || json.err,
|
100
|
+
status: response.status,
|
101
|
+
statusText: response.statusText
|
100
102
|
};
|
101
103
|
});
|
102
104
|
}));
|
@@ -1755,7 +1757,8 @@
|
|
1755
1757
|
value: user,
|
1756
1758
|
onChange: changeUser,
|
1757
1759
|
onEnter: ok,
|
1758
|
-
outlined: true
|
1760
|
+
outlined: true,
|
1761
|
+
autoComplete: "on"
|
1759
1762
|
}), /*#__PURE__*/React__default["default"].createElement(TextField, {
|
1760
1763
|
id: "loginbox-password",
|
1761
1764
|
label: tx(passwordLabel),
|
@@ -1763,7 +1766,8 @@
|
|
1763
1766
|
onChange: changePassword,
|
1764
1767
|
onEnter: ok,
|
1765
1768
|
type: "password",
|
1766
|
-
outlined: true
|
1769
|
+
outlined: true,
|
1770
|
+
autoComplete: "on"
|
1767
1771
|
})), /*#__PURE__*/React__default["default"].createElement("footer", null, loading ? /*#__PURE__*/React__default["default"].createElement("div", {
|
1768
1772
|
className: "load-box"
|
1769
1773
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|