eoss-ui 0.6.76 → 0.6.77

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.
Files changed (64) hide show
  1. package/lib/button-group.js +30 -8
  2. package/lib/button.js +30 -8
  3. package/lib/calogin.js +30 -8
  4. package/lib/checkbox-group.js +30 -8
  5. package/lib/data-table-form.js +30 -8
  6. package/lib/data-table.js +30 -8
  7. package/lib/date-picker.js +30 -8
  8. package/lib/dialog.js +30 -8
  9. package/lib/eoss-ui.common.js +300 -241
  10. package/lib/flow-group.js +30 -8
  11. package/lib/flow-list.js +30 -8
  12. package/lib/flow.js +30 -8
  13. package/lib/form.js +50 -10
  14. package/lib/handle-user.js +30 -8
  15. package/lib/handler.js +30 -8
  16. package/lib/icon.js +30 -8
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +30 -8
  19. package/lib/input.js +30 -8
  20. package/lib/login.js +30 -8
  21. package/lib/main.js +241 -200
  22. package/lib/nav.js +30 -8
  23. package/lib/page.js +30 -8
  24. package/lib/pagination.js +30 -8
  25. package/lib/player.js +30 -8
  26. package/lib/qr-code.js +30 -8
  27. package/lib/radio-group.js +30 -8
  28. package/lib/retrial-auth.js +30 -8
  29. package/lib/select-ganged.js +30 -8
  30. package/lib/select.js +30 -8
  31. package/lib/selector-panel.js +30 -8
  32. package/lib/selector.js +30 -8
  33. package/lib/sizer.js +30 -8
  34. package/lib/steps.js +30 -8
  35. package/lib/switch.js +30 -8
  36. package/lib/table-form.js +30 -8
  37. package/lib/tabs.js +30 -8
  38. package/lib/theme-chalk/form.css +1 -1
  39. package/lib/theme-chalk/index.css +1 -1
  40. package/lib/tips.js +30 -8
  41. package/lib/tree-group.js +30 -8
  42. package/lib/tree.js +30 -8
  43. package/lib/upload.js +30 -8
  44. package/lib/utils/util.js +26 -4
  45. package/lib/wujie.js +30 -8
  46. package/lib/wxlogin.js +30 -8
  47. package/package.json +1 -1
  48. package/packages/.DS_Store +0 -0
  49. package/packages/form/.DS_Store +0 -0
  50. package/packages/form/src/main.vue +1 -0
  51. package/packages/login/.DS_Store +0 -0
  52. package/packages/main/.DS_Store +0 -0
  53. package/packages/main/src/.DS_Store +0 -0
  54. package/packages/main/src/default/index.vue +6 -5
  55. package/packages/main/src/main.vue +107 -84
  56. package/packages/main/src/simplicity/index.vue +5 -2
  57. package/packages/theme-chalk/lib/form.css +1 -1
  58. package/packages/theme-chalk/lib/index.css +1 -1
  59. package/packages/theme-chalk/src/form.scss +3 -0
  60. package/packages/upload/.DS_Store +0 -0
  61. package/src/.DS_Store +0 -0
  62. package/src/index.js +1 -1
  63. package/src/utils/util.js +39 -3
  64. package/packages/login/src/IcpItem.vue +0 -66
package/lib/dialog.js CHANGED
@@ -122,8 +122,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
122
122
  **/
123
123
 
124
124
  /* eslint-disable indent */
125
- var sm2 = __webpack_require__(13).sm2;
126
- var lodash = __webpack_require__(12);
125
+ var sm2 = __webpack_require__(12).sm2;
126
+ var lodash = __webpack_require__(13);
127
127
 
128
128
 
129
129
 
@@ -2365,7 +2365,7 @@ var isLogined = function () {
2365
2365
  cookie = _ref11.cookie,
2366
2366
  loginPage = _ref11.loginPage,
2367
2367
  redirect = _ref11.redirect;
2368
- var quit, pathname, path, token, loadingInstance;
2368
+ var quit, pathname, path, token, loadingInstance, referrerUrl;
2369
2369
  return babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {
2370
2370
  while (1) {
2371
2371
  switch (_context.prev = _context.next) {
@@ -2493,7 +2493,14 @@ var isLogined = function () {
2493
2493
  if (loginPage) {
2494
2494
  win.top.location.replace(loginPage);
2495
2495
  } else if (document.referrer) {
2496
- win.top.location.replace(document.referrer);
2496
+ var referrerUrl = new URL(document.referrer);
2497
+ if (referrerUrl.host !== win.top.location.host) {
2498
+ win.top.location.replace(document.referrer);
2499
+ } else if (win.top.location.href.indexOf('main.html') > -1 || win.top.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
2500
+ win.top.location.href = './login.html';
2501
+ } else {
2502
+ next('/login');
2503
+ }
2497
2504
  } else if (win.top.location.href.indexOf('main.html') > -1) {
2498
2505
  win.top.location.href = './login.html';
2499
2506
  } else {
@@ -2516,7 +2523,14 @@ var isLogined = function () {
2516
2523
  if (loginPage) {
2517
2524
  win.top.location.replace(loginPage);
2518
2525
  } else if (document.referrer) {
2519
- win.top.location.replace(document.referrer);
2526
+ var referrerUrl = new URL(document.referrer);
2527
+ if (referrerUrl.host !== win.top.location.host) {
2528
+ win.top.location.replace(document.referrer);
2529
+ } else if (win.top.location.href.indexOf('main.html') > -1 || win.top.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
2530
+ win.top.location.href = './login.html';
2531
+ } else {
2532
+ next('/login');
2533
+ }
2520
2534
  } else if (win.top.location.href.indexOf('main.html') > -1) {
2521
2535
  win.top.location.href = './login.html';
2522
2536
  } else {
@@ -2549,7 +2563,15 @@ var isLogined = function () {
2549
2563
  if (loginPage) {
2550
2564
  win.top.location.replace(loginPage);
2551
2565
  } else if (document.referrer) {
2552
- win.top.location.replace(document.referrer);
2566
+ referrerUrl = new URL(document.referrer);
2567
+
2568
+ if (referrerUrl.host !== win.top.location.host) {
2569
+ win.top.location.replace(document.referrer);
2570
+ } else if (win.top.location.href.indexOf('main.html') > -1 || win.top.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
2571
+ win.top.location.href = './login.html';
2572
+ } else {
2573
+ next('/login');
2574
+ }
2553
2575
  } else if (win.top.location.href.indexOf('main.html') > -1) {
2554
2576
  win.top.location.href = './login.html';
2555
2577
  } else {
@@ -4240,13 +4262,13 @@ module.exports = require("ua-parser-js");
4240
4262
  /* 12 */
4241
4263
  /***/ (function(module, exports) {
4242
4264
 
4243
- module.exports = require("lodash");
4265
+ module.exports = require("sm-crypto");
4244
4266
 
4245
4267
  /***/ }),
4246
4268
  /* 13 */
4247
4269
  /***/ (function(module, exports) {
4248
4270
 
4249
- module.exports = require("sm-crypto");
4271
+ module.exports = require("lodash");
4250
4272
 
4251
4273
  /***/ }),
4252
4274
  /* 14 */,