@bchr/bchr-front-lib 0.6.12 → 0.6.13
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.
|
@@ -250,95 +250,85 @@ var InputPasswordDecrypt = function InputPasswordDecrypt(props) {
|
|
|
250
250
|
resetReveal();
|
|
251
251
|
secret = realValueRef.current;
|
|
252
252
|
if (!(ui_render_type === "modify")) {
|
|
253
|
-
_context.n = 4;
|
|
254
|
-
break;
|
|
255
|
-
}
|
|
256
|
-
if (secret) {
|
|
257
253
|
_context.n = 3;
|
|
258
254
|
break;
|
|
259
255
|
}
|
|
260
|
-
showPlainText("", false);
|
|
261
|
-
if (inputRef.current && inputRef.current.focus) {
|
|
262
|
-
inputRef.current.focus();
|
|
263
|
-
}
|
|
264
|
-
return _context.a(2);
|
|
265
|
-
case 3:
|
|
266
256
|
if (!editingRef.current) {
|
|
267
|
-
_context.n =
|
|
257
|
+
_context.n = 3;
|
|
268
258
|
break;
|
|
269
259
|
}
|
|
270
260
|
showPlainText(secret, false);
|
|
271
261
|
return _context.a(2);
|
|
272
|
-
case
|
|
262
|
+
case 3:
|
|
273
263
|
if (secret) {
|
|
274
|
-
_context.n =
|
|
264
|
+
_context.n = 4;
|
|
275
265
|
break;
|
|
276
266
|
}
|
|
277
267
|
return _context.a(2);
|
|
278
|
-
case
|
|
268
|
+
case 4:
|
|
279
269
|
if (requestContextPath) {
|
|
280
|
-
_context.n =
|
|
270
|
+
_context.n = 5;
|
|
281
271
|
break;
|
|
282
272
|
}
|
|
283
273
|
_antd.message.error("请为组件注入属性【requestUrl】");
|
|
284
274
|
return _context.a(2);
|
|
285
|
-
case
|
|
275
|
+
case 5:
|
|
286
276
|
if (serviceConfig) {
|
|
287
|
-
_context.n =
|
|
277
|
+
_context.n = 6;
|
|
288
278
|
break;
|
|
289
279
|
}
|
|
290
280
|
_antd.message.error("请为组件注入属性【appconfig】");
|
|
291
281
|
return _context.a(2);
|
|
292
|
-
case
|
|
282
|
+
case 6:
|
|
293
283
|
requestSeq = requestSeqRef.current + 1;
|
|
294
284
|
requestSeqRef.current = requestSeq;
|
|
295
285
|
setLoading(true);
|
|
296
|
-
_context.p =
|
|
297
|
-
_context.n =
|
|
286
|
+
_context.p = 7;
|
|
287
|
+
_context.n = 8;
|
|
298
288
|
return new _HttpService["default"](requestContextPath, serviceConfig).post("decrypt", {
|
|
299
289
|
data: secret
|
|
300
290
|
});
|
|
301
|
-
case
|
|
291
|
+
case 8:
|
|
302
292
|
result = _context.v;
|
|
303
293
|
if (!(requestSeq !== requestSeqRef.current)) {
|
|
304
|
-
_context.n =
|
|
294
|
+
_context.n = 9;
|
|
305
295
|
break;
|
|
306
296
|
}
|
|
307
297
|
return _context.a(2);
|
|
308
|
-
case
|
|
298
|
+
case 9:
|
|
309
299
|
if (!(typeof result !== "string")) {
|
|
310
|
-
_context.n =
|
|
300
|
+
_context.n = 10;
|
|
311
301
|
break;
|
|
312
302
|
}
|
|
313
303
|
_antd.message.error("解密失败");
|
|
314
304
|
return _context.a(2);
|
|
315
|
-
case
|
|
305
|
+
case 10:
|
|
316
306
|
showPlainText(result, ui_render_type !== "modify");
|
|
317
|
-
_context.n =
|
|
307
|
+
_context.n = 13;
|
|
318
308
|
break;
|
|
319
|
-
case
|
|
320
|
-
_context.p =
|
|
309
|
+
case 11:
|
|
310
|
+
_context.p = 11;
|
|
321
311
|
_t = _context.v;
|
|
322
312
|
if (!(requestSeq !== requestSeqRef.current)) {
|
|
323
|
-
_context.n =
|
|
313
|
+
_context.n = 12;
|
|
324
314
|
break;
|
|
325
315
|
}
|
|
326
316
|
return _context.a(2);
|
|
327
|
-
case
|
|
317
|
+
case 12:
|
|
328
318
|
resetReveal();
|
|
329
319
|
setToggle(false);
|
|
330
320
|
setToggleVal(maskValue(secret, resolvedMaskLength));
|
|
331
321
|
_antd.message.error(getErrorMessage(_t));
|
|
332
|
-
case
|
|
333
|
-
_context.p =
|
|
322
|
+
case 13:
|
|
323
|
+
_context.p = 13;
|
|
334
324
|
if (requestSeq === requestSeqRef.current) {
|
|
335
325
|
setLoading(false);
|
|
336
326
|
}
|
|
337
|
-
return _context.f(
|
|
338
|
-
case
|
|
327
|
+
return _context.f(13);
|
|
328
|
+
case 14:
|
|
339
329
|
return _context.a(2);
|
|
340
330
|
}
|
|
341
|
-
}, _callee, null, [[
|
|
331
|
+
}, _callee, null, [[7, 11, 13, 14]]);
|
|
342
332
|
}));
|
|
343
333
|
return function onToggleFull() {
|
|
344
334
|
return _ref.apply(this, arguments);
|
package/package.json
CHANGED
|
@@ -210,13 +210,6 @@ const InputPasswordDecrypt = (props) => {
|
|
|
210
210
|
resetReveal();
|
|
211
211
|
const secret = realValueRef.current;
|
|
212
212
|
if (ui_render_type === "modify") {
|
|
213
|
-
if (!secret) {
|
|
214
|
-
showPlainText("", false);
|
|
215
|
-
if (inputRef.current && inputRef.current.focus) {
|
|
216
|
-
inputRef.current.focus();
|
|
217
|
-
}
|
|
218
|
-
return;
|
|
219
|
-
}
|
|
220
213
|
if (editingRef.current) {
|
|
221
214
|
showPlainText(secret, false);
|
|
222
215
|
return;
|