@wp1001/ui 2.9.13 → 3.0.1

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 (106) hide show
  1. package/@vant-D4fmGxs6.js +1 -3891
  2. package/index.html +28 -0
  3. package/index.js +1 -8419
  4. package/lib/tinymce/zh_CN.js +1 -0
  5. package/package.json +1 -1
  6. package/packages/assets/devtools-detector.js +1 -2
  7. package/packages/components/xarray/index.js +1 -64
  8. package/packages/components/xautorows/index.js +1 -35
  9. package/packages/components/xbutton/mobile.js +1 -3
  10. package/packages/components/xbutton/pc.js +1 -3
  11. package/packages/components/xbuttons/mobile.js +1 -51
  12. package/packages/components/xbuttons/pc.js +1 -51
  13. package/packages/components/xchart/constants.js +1 -58
  14. package/packages/components/xchart/index.js +1 -263
  15. package/packages/components/xchart/utils.js +1 -121
  16. package/packages/components/xcheckboxs/mobile.js +1 -58
  17. package/packages/components/xcheckboxs/pc.js +1 -49
  18. package/packages/components/xcol/mobile.js +1 -10
  19. package/packages/components/xcol/pc.js +1 -10
  20. package/packages/components/xdatepicker/mobile.js +1 -71
  21. package/packages/components/xdatepicker/pc.js +1 -9
  22. package/packages/components/xdialog/mobile.js +1 -60
  23. package/packages/components/xdialog/pc.js +1 -64
  24. package/packages/components/xdict/index.js +1 -47
  25. package/packages/components/xdistrictselect/mobile.js +1 -79
  26. package/packages/components/xdistrictselect/pc.js +1 -127
  27. package/packages/components/xform/mobile.js +1 -29
  28. package/packages/components/xform/pc.js +1 -42
  29. package/packages/components/xform/utils.js +1 -95
  30. package/packages/components/xformitem/mobile.js +1 -56
  31. package/packages/components/xformitem/pc.js +1 -72
  32. package/packages/components/xicon/mobile.js +1 -35
  33. package/packages/components/xicon/pc.js +1 -35
  34. package/packages/components/xinfo/index.js +1 -100
  35. package/packages/components/xlooper/index.js +1 -7
  36. package/packages/components/xpagination/mobile.js +1 -21
  37. package/packages/components/xpagination/pc.js +1 -21
  38. package/packages/components/xpicker/index.js +1 -38
  39. package/packages/components/xradios/mobile.js +1 -40
  40. package/packages/components/xradios/pc.js +1 -53
  41. package/packages/components/xrow/mobile.js +1 -9
  42. package/packages/components/xrow/pc.js +1 -9
  43. package/packages/components/xscan/mobile.js +1 -24
  44. package/packages/components/xscan/pc.js +1 -20
  45. package/packages/components/xsearcher/index.js +1 -198
  46. package/packages/components/xselect/mobile.js +1 -86
  47. package/packages/components/xselect/pc.js +1 -114
  48. package/packages/components/xselect/util.js +1 -66
  49. package/packages/components/xselectv2/index.js +1 -91
  50. package/packages/components/xtable/mobile.js +1 -108
  51. package/packages/components/xtable/pc.js +1 -143
  52. package/packages/components/xtable/searcher.js +1 -477
  53. package/packages/components/xtable/settings.js +1 -80
  54. package/packages/components/xtable/utils.js +1 -692
  55. package/packages/components/xtabletools/mobile.js +1 -25
  56. package/packages/components/xtabletools/pc.js +1 -18
  57. package/packages/components/xtablev2/index.js +1 -53
  58. package/packages/components/xtags/mobile.js +1 -17
  59. package/packages/components/xtags/pc.js +1 -17
  60. package/packages/components/xtinymce/index.js +1 -71
  61. package/packages/components/xuploader/xfileuploader.js +1 -48
  62. package/packages/components/xuploader/ximageuploader.js +1 -53
  63. package/packages/comps.js +1 -108
  64. package/packages/controllers/BaseController.js +1 -125
  65. package/packages/controllers/CrudController.js +1 -907
  66. package/packages/controllers/TempCrudController.js +1 -32
  67. package/packages/controllers/index.js +1 -15
  68. package/packages/directives/el-table-infinite-scroll.js +1 -55
  69. package/packages/directives/index.js +1 -5
  70. package/packages/index.js +1 -81
  71. package/packages/layout/breadcrumb/index.js +1 -41
  72. package/packages/layout/header/inner.js +1 -11
  73. package/packages/layout/pc.vue +1 -1
  74. package/packages/layout/screenlock/index.js +1 -129
  75. package/packages/layout/sidebar/item.js +1 -16
  76. package/packages/layout/sidebar/menu.js +1 -72
  77. package/packages/layout/tagsview/ScrollPane.js +1 -65
  78. package/packages/layout/tagsview/index.js +1 -169
  79. package/packages/plop/actions/make-fill-admin-partials-action.js +1 -95
  80. package/packages/plop/generators/make-admin-page.js +1 -39
  81. package/packages/plop/generators/make-database-admin-pages.js +1 -84
  82. package/packages/plop/generators/make-page-generator.js +1 -52
  83. package/packages/plop/generators/make-simple-page.js +1 -20
  84. package/packages/plop/plopfile.js +1 -24
  85. package/packages/plop/utils/index.js +1 -168
  86. package/packages/plop/utils/plop-utils.js +1 -86
  87. package/packages/utils/crypt.js +1 -24
  88. package/packages/utils/decorators.js +1 -67
  89. package/packages/utils/disallowDevtools.js +1 -53
  90. package/packages/utils/effects.js +1 -173
  91. package/packages/utils/funcs.js +1 -78
  92. package/packages/utils/index.js +1 -95
  93. package/packages/utils/message.js +1 -110
  94. package/packages/utils/middlewares.js +1 -86
  95. package/packages/utils/model.js +1 -71
  96. package/packages/utils/modelUtils.js +1 -203
  97. package/packages/utils/request.js +1 -57
  98. package/packages/utils/site.js +1 -33
  99. package/packages/vite-plugins.js +1 -141
  100. package/src/App.vue +134 -0
  101. package/src/main.js +1 -0
  102. package/src/request.js +1 -0
  103. package/style.css +1 -0
  104. package/vite.config.js +1 -0
  105. package/vite.lib.config.js +1 -0
  106. package/.env +0 -6
@@ -1,32 +1 @@
1
- import CrudController from './CrudController.js'
2
-
3
- class TempCrudController extends CrudController {
4
- handleAdd () {
5
- const $index = this.table.list.length
6
- const row = {
7
- _index: $index + 1,
8
- isEditing: true
9
- }
10
- this.table.list.push(row)
11
- this.handleEdit({ $index, row })
12
- }
13
-
14
- handleDelete ({ $index, row }) {
15
- this.table.list.splice($index, 1)
16
- }
17
-
18
- handleRowEdit ({ row }) {
19
- row.isEditing = false
20
- }
21
-
22
- handleSubmit (params) {
23
- this.dialog.visible = false
24
- }
25
-
26
- handleMultiDelete () {
27
- const { list, selection } = this.table
28
- this.table.list = list.filter(ele => !selection.includes(ele))
29
- }
30
- }
31
-
32
- export default TempCrudController
1
+ const a63_0x26b188=a63_0x3866;function a63_0x3866(_0x132666,_0x1c3c04){const _0x1ea4bc=a63_0x1ea4();return a63_0x3866=function(_0x386668,_0x35047e){_0x386668=_0x386668-0x1d4;let _0x3993fe=_0x1ea4bc[_0x386668];return _0x3993fe;},a63_0x3866(_0x132666,_0x1c3c04);}function a63_0x1ea4(){const _0x56f31d=['list','push','visible','6004222LUWkFE','12aqzRaT','39OLZXkp','includes','handleSubmit','4834181gwXjRa','3288228hMAyoj','2853NxFORs','24SsmGYl','31520pvfukw','table','handleEdit','71JJxUvI','filter','dialog','length','handleAdd','114eSGMiw','29756YnTtPU','1531558LfLYQu','5SgmCJw','splice','420YJkwwc'];a63_0x1ea4=function(){return _0x56f31d;};return a63_0x1ea4();}(function(_0x152703,_0x5227ab){const _0x5535da=a63_0x3866,_0x108149=_0x152703();while(!![]){try{const _0xdaef8d=-parseInt(_0x5535da(0x1eb))/0x1*(parseInt(_0x5535da(0x1d6))/0x2)+parseInt(_0x5535da(0x1db))/0x3*(parseInt(_0x5535da(0x1d7))/0x4)+parseInt(_0x5535da(0x1d9))/0x5*(-parseInt(_0x5535da(0x1e5))/0x6)+-parseInt(_0x5535da(0x1d8))/0x7*(parseInt(_0x5535da(0x1e7))/0x8)+-parseInt(_0x5535da(0x1e6))/0x9*(parseInt(_0x5535da(0x1e8))/0xa)+parseInt(_0x5535da(0x1e4))/0xb*(parseInt(_0x5535da(0x1e0))/0xc)+parseInt(_0x5535da(0x1e1))/0xd*(parseInt(_0x5535da(0x1df))/0xe);if(_0xdaef8d===_0x5227ab)break;else _0x108149['push'](_0x108149['shift']());}catch(_0x5722d7){_0x108149['push'](_0x108149['shift']());}}}(a63_0x1ea4,0x88b1b));import a63_0x41a0bb from'./CrudController.js';class TempCrudController extends a63_0x41a0bb{[a63_0x26b188(0x1d5)](){const _0x23a9b7=a63_0x26b188,_0x51ac4a=this[_0x23a9b7(0x1e9)][_0x23a9b7(0x1dc)][_0x23a9b7(0x1d4)],_0x154d1b={'_index':_0x51ac4a+0x1,'isEditing':!![]};this[_0x23a9b7(0x1e9)][_0x23a9b7(0x1dc)][_0x23a9b7(0x1dd)](_0x154d1b),this[_0x23a9b7(0x1ea)]({'$index':_0x51ac4a,'row':_0x154d1b});}['handleDelete']({$index:_0x3c28e3,row:_0x1c3fa2}){const _0x161feb=a63_0x26b188;this[_0x161feb(0x1e9)][_0x161feb(0x1dc)][_0x161feb(0x1da)](_0x3c28e3,0x1);}['handleRowEdit']({row:_0x1c9541}){_0x1c9541['isEditing']=![];}[a63_0x26b188(0x1e3)](_0x1f6a1a){const _0x217f0e=a63_0x26b188;this[_0x217f0e(0x1ed)][_0x217f0e(0x1de)]=![];}['handleMultiDelete'](){const _0x244da5=a63_0x26b188,{list:_0x24dfa3,selection:_0x3c8f49}=this[_0x244da5(0x1e9)];this[_0x244da5(0x1e9)][_0x244da5(0x1dc)]=_0x24dfa3[_0x244da5(0x1ec)](_0x46958c=>!_0x3c8f49[_0x244da5(0x1e2)](_0x46958c));}}export default TempCrudController;
@@ -1,15 +1 @@
1
- import BaseController from './BaseController.js'
2
- import CrudController from './CrudController.js'
3
- import TempCrudController from './TempCrudController.js'
4
-
5
- export {
6
- BaseController,
7
- CrudController,
8
- TempCrudController
9
- }
10
-
11
- export default {
12
- BaseController,
13
- CrudController,
14
- TempCrudController
15
- }
1
+ (function(_0x48e4ef,_0x5a48a6){var _0x2f1561=a64_0x33c4,_0x51e4a3=_0x48e4ef();while(!![]){try{var _0x4d61ec=-parseInt(_0x2f1561(0x8a))/0x1+parseInt(_0x2f1561(0x94))/0x2+-parseInt(_0x2f1561(0x91))/0x3+parseInt(_0x2f1561(0x93))/0x4*(-parseInt(_0x2f1561(0x92))/0x5)+parseInt(_0x2f1561(0x90))/0x6*(-parseInt(_0x2f1561(0x8d))/0x7)+-parseInt(_0x2f1561(0x8e))/0x8*(-parseInt(_0x2f1561(0x8c))/0x9)+-parseInt(_0x2f1561(0x8f))/0xa*(-parseInt(_0x2f1561(0x8b))/0xb);if(_0x4d61ec===_0x5a48a6)break;else _0x51e4a3['push'](_0x51e4a3['shift']());}catch(_0x465fb8){_0x51e4a3['push'](_0x51e4a3['shift']());}}}(a64_0x2b4e,0x24e46));function a64_0x33c4(_0x3f2471,_0x474e16){var _0x2b4e12=a64_0x2b4e();return a64_0x33c4=function(_0x33c465,_0x1e3bb4){_0x33c465=_0x33c465-0x8a;var _0x222220=_0x2b4e12[_0x33c465];return _0x222220;},a64_0x33c4(_0x3f2471,_0x474e16);}import a64_0x551c3e from'./BaseController.js';function a64_0x2b4e(){var _0x2dbcfd=['8GJhxMe','10AaprRT','3018KYUNhq','875430bzBbSr','503205loUfDb','12KgMugD','438152cyTXdM','231172BRRbMf','6558376FQQvNt','2342853pqaBzI','1386nsOrOa'];a64_0x2b4e=function(){return _0x2dbcfd;};return a64_0x2b4e();}import a64_0x4e9911 from'./CrudController.js';import a64_0x5323c8 from'./TempCrudController.js';export{a64_0x551c3e as BaseController,a64_0x4e9911 as CrudController,a64_0x5323c8 as TempCrudController};export default{'BaseController':a64_0x551c3e,'CrudController':a64_0x4e9911,'TempCrudController':a64_0x5323c8};
@@ -1,55 +1 @@
1
- const { ElInfiniteScroll } = window.ElementPlus || {}
2
-
3
- const elTableScrollWrapperClass = '.el-scrollbar__wrap'
4
-
5
- const syncOptions = (sourceElem, targetElem) => {
6
- syncAttrs(sourceElem, targetElem, [
7
- 'infinite-scroll-disabled',
8
- 'infinite-scroll-delay',
9
- 'infinite-scroll-immediate',
10
- 'infinite-scroll-distance',
11
- ])
12
- const name = 'infinite-scroll-distance'
13
- const value = +(sourceElem.getAttribute(name) || 0)
14
- targetElem.setAttribute(name, (value < 1 ? 1 : value) + '')
15
- }
16
-
17
- const syncAttrs = (sourceElem, targetElem, attrsKeys) => {
18
- let value
19
- attrsKeys.forEach((name) => {
20
- value = sourceElem.getAttribute(name)
21
- if (value !== null) {
22
- targetElem.setAttribute(name, value)
23
- } else {
24
- targetElem.removeAttribute(name)
25
- }
26
- })
27
- }
28
-
29
- const ElTableInfiniteScroll = {
30
- name: 'el-table-infinite-scroll',
31
- mounted(el, binding, VNode, oldVNode) {
32
- const scrollElem = el.querySelector(elTableScrollWrapperClass)
33
- if (!scrollElem) {
34
- throw new Error(`${elTableScrollWrapperClass} element not found.`)
35
- }
36
- scrollElem.style.overflowY = 'auto'
37
- setTimeout(() => {
38
- if (!el.style.height && !el.style.maxHeight) {
39
- scrollElem.style.height = '400px'
40
- console.warn('el-table height required, otherwise will set scrollbar default height: 400px')
41
- }
42
- syncOptions(el, scrollElem)
43
- ElInfiniteScroll.mounted(scrollElem, binding, VNode, oldVNode)
44
- }, 0)
45
- },
46
- updated(el) {
47
- syncOptions(el, el.querySelector(elTableScrollWrapperClass))
48
- },
49
- unmounted(el, ...args) {
50
- const scrollElem = el.querySelector(elTableScrollWrapperClass)
51
- ElInfiniteScroll.unmounted(scrollElem, ...args)
52
- }
53
- }
54
-
55
- export default ElTableInfiniteScroll
1
+ function a65_0xedb8(){const _0x78bbaa=['17297IQXdYg','infinite-scroll-delay','maxHeight','overflowY','66tANAPk','getAttribute','style','400px','mounted','height','querySelector','267175QMHaEC','forEach','el-table\x20height\x20required,\x20otherwise\x20will\x20set\x20scrollbar\x20default\x20height:\x20400px','infinite-scroll-distance','infinite-scroll-disabled','50481PmQBwg','.el-scrollbar__wrap','2152HPexgT','setAttribute','1329069KzQGBv','377869ZQFyoF','ElementPlus','624052kJwWLq','warn','490WqPywu','1051000ztmpFf','\x20element\x20not\x20found.','auto'];a65_0xedb8=function(){return _0x78bbaa;};return a65_0xedb8();}const a65_0x8e4ae9=a65_0x55d1;function a65_0x55d1(_0x48f828,_0x370653){const _0xedb826=a65_0xedb8();return a65_0x55d1=function(_0x55d19e,_0x575ad7){_0x55d19e=_0x55d19e-0x89;let _0x19f2df=_0xedb826[_0x55d19e];return _0x19f2df;},a65_0x55d1(_0x48f828,_0x370653);}(function(_0x269d85,_0xddb1){const _0x1577ad=a65_0x55d1,_0x5d6626=_0x269d85();while(!![]){try{const _0x17bafe=-parseInt(_0x1577ad(0x99))/0x1+-parseInt(_0x1577ad(0x9e))/0x2+parseInt(_0x1577ad(0x98))/0x3+-parseInt(_0x1577ad(0x9b))/0x4+-parseInt(_0x1577ad(0x8f))/0x5*(-parseInt(_0x1577ad(0xa5))/0x6)+-parseInt(_0x1577ad(0xa1))/0x7*(-parseInt(_0x1577ad(0x96))/0x8)+-parseInt(_0x1577ad(0x94))/0x9*(parseInt(_0x1577ad(0x9d))/0xa);if(_0x17bafe===_0xddb1)break;else _0x5d6626['push'](_0x5d6626['shift']());}catch(_0x3cbdf6){_0x5d6626['push'](_0x5d6626['shift']());}}}(a65_0xedb8,0x58344));const {ElInfiniteScroll}=window[a65_0x8e4ae9(0x9a)]||{},elTableScrollWrapperClass=a65_0x8e4ae9(0x95),syncOptions=(_0x392c4e,_0x4d0068)=>{const _0x1916d6=a65_0x8e4ae9;syncAttrs(_0x392c4e,_0x4d0068,[_0x1916d6(0x93),_0x1916d6(0xa2),'infinite-scroll-immediate',_0x1916d6(0x92)]);const _0x27df5e=_0x1916d6(0x92),_0x30e95e=+(_0x392c4e[_0x1916d6(0x89)](_0x27df5e)||0x0);_0x4d0068[_0x1916d6(0x97)](_0x27df5e,(_0x30e95e<0x1?0x1:_0x30e95e)+'');},syncAttrs=(_0x44e4ab,_0x36e303,_0x4c5a76)=>{const _0x42b86a=a65_0x8e4ae9;let _0x17f6d0;_0x4c5a76[_0x42b86a(0x90)](_0x34401f=>{const _0x1f4906=_0x42b86a;_0x17f6d0=_0x44e4ab[_0x1f4906(0x89)](_0x34401f),_0x17f6d0!==null?_0x36e303[_0x1f4906(0x97)](_0x34401f,_0x17f6d0):_0x36e303['removeAttribute'](_0x34401f);});},ElTableInfiniteScroll={'name':'el-table-infinite-scroll','mounted'(_0x56ef7b,_0x7f3c53,_0x457179,_0x3f2c01){const _0x145821=a65_0x8e4ae9,_0xc3306a=_0x56ef7b[_0x145821(0x8e)](elTableScrollWrapperClass);if(!_0xc3306a)throw new Error(elTableScrollWrapperClass+_0x145821(0x9f));_0xc3306a[_0x145821(0x8a)][_0x145821(0xa4)]=_0x145821(0xa0),setTimeout(()=>{const _0x2feb7c=_0x145821;!_0x56ef7b[_0x2feb7c(0x8a)][_0x2feb7c(0x8d)]&&!_0x56ef7b[_0x2feb7c(0x8a)][_0x2feb7c(0xa3)]&&(_0xc3306a['style']['height']=_0x2feb7c(0x8b),console[_0x2feb7c(0x9c)](_0x2feb7c(0x91))),syncOptions(_0x56ef7b,_0xc3306a),ElInfiniteScroll[_0x2feb7c(0x8c)](_0xc3306a,_0x7f3c53,_0x457179,_0x3f2c01);},0x0);},'updated'(_0x1ae418){const _0x3c332d=a65_0x8e4ae9;syncOptions(_0x1ae418,_0x1ae418[_0x3c332d(0x8e)](elTableScrollWrapperClass));},'unmounted'(_0x481216,..._0x449161){const _0x26e054=a65_0x8e4ae9,_0x4b53c0=_0x481216[_0x26e054(0x8e)](elTableScrollWrapperClass);ElInfiniteScroll['unmounted'](_0x4b53c0,..._0x449161);}};export default ElTableInfiniteScroll;
@@ -1,5 +1 @@
1
- import ElTableInfiniteScroll from './el-table-infinite-scroll.js'
2
-
3
- export default {
4
- ElTableInfiniteScroll
5
- }
1
+ function a66_0x109d(){var _0x31f7d2=['1484283aiuZRW','3826400GqjeyQ','4HMHGgE','3799700doGkMq','2758638cwlgBa','14MqSoFB','1457370zCdbXb','260KkAdDs','486262rqtttw','750708BVQghC'];a66_0x109d=function(){return _0x31f7d2;};return a66_0x109d();}(function(_0x16521e,_0x535fab){var _0x57c5f1=a66_0x58ff,_0x1d5d82=_0x16521e();while(!![]){try{var _0x1faf3c=parseInt(_0x57c5f1(0x11c))/0x1+parseInt(_0x57c5f1(0x11a))/0x2+-parseInt(_0x57c5f1(0x11e))/0x3*(parseInt(_0x57c5f1(0x120))/0x4)+parseInt(_0x57c5f1(0x117))/0x5+parseInt(_0x57c5f1(0x118))/0x6*(parseInt(_0x57c5f1(0x119))/0x7)+parseInt(_0x57c5f1(0x11f))/0x8+parseInt(_0x57c5f1(0x11d))/0x9*(-parseInt(_0x57c5f1(0x11b))/0xa);if(_0x1faf3c===_0x535fab)break;else _0x1d5d82['push'](_0x1d5d82['shift']());}catch(_0x5ef6ea){_0x1d5d82['push'](_0x1d5d82['shift']());}}}(a66_0x109d,0xad28c));function a66_0x58ff(_0x562bd9,_0x2fcd9c){var _0x109d4d=a66_0x109d();return a66_0x58ff=function(_0x58ff59,_0x4b407b){_0x58ff59=_0x58ff59-0x117;var _0x5bcd6c=_0x109d4d[_0x58ff59];return _0x5bcd6c;},a66_0x58ff(_0x562bd9,_0x2fcd9c);}import a66_0x5c0fbe from'./el-table-infinite-scroll.js';export default{'ElTableInfiniteScroll':a66_0x5c0fbe};
package/packages/index.js CHANGED
@@ -1,81 +1 @@
1
- import { h } from 'vue'
2
-
3
- import './index.scss'
4
-
5
- import { initMessageUtils } from './utils/message.js'
6
- import utils from './utils/index.js'
7
- import controllers from './controllers/index.js'
8
- import all from './comps'
9
- import directives from './directives/index.js'
10
-
11
- const makePlatformComp = (name) => {
12
- return {
13
- name,
14
- props: {
15
- platform: {
16
- type: String,
17
- default: window.isMobile ? 'mobile' : 'pc'
18
- }
19
- },
20
- data () {
21
- return { name: '' }
22
- },
23
- created () {
24
- this.name = (this.platform.toLowerCase() === 'pc' ? 'Pc' : 'Mobile') + name
25
- },
26
- render () {
27
- return h(all[this.name], {
28
- platform: this.platform,
29
- ...this.$attrs
30
- }, this.$slots)
31
- }
32
- }
33
- }
34
-
35
- const components = (() => {
36
- const names = Object.keys(all)
37
- const union = [...new Set(names.map(n => n.replace(/(pc|mobile)/i, '')))]
38
-
39
- const comps = {}
40
- for (const name of names) {
41
- if (/(pc|mobile)/i.test(name)) {
42
- comps[name] = all[name]
43
- }
44
- }
45
- for (const name of union) {
46
- if (!names.find(n => /(pc|mobile)/i.test(n) && n.toLowerCase().includes(name.toLowerCase()))) {
47
- comps[name] = all[name]
48
- } else {
49
- comps[name] = makePlatformComp(name)
50
- }
51
- }
52
- return comps
53
- })()
54
-
55
- const install = (app, options) => {
56
- initMessageUtils(options)
57
- for (let key in components) {
58
- app.component(key, components[key])
59
- }
60
- for (let key in directives) {
61
- app.directive(directives[key].name, directives[key])
62
- }
63
- }
64
-
65
- const StardustUI = {
66
- version: '2.9.13',
67
- ...components,
68
- ...utils,
69
- ...controllers,
70
- install
71
- }
72
-
73
- export {
74
- utils,
75
- controllers
76
- }
77
-
78
- export * from './utils/index.js'
79
- export * from './controllers/index.js'
80
-
81
- export default StardustUI
1
+ const a67_0x3677a8=a67_0x493b;(function(_0x41b772,_0x2f6877){const _0x39acb9=a67_0x493b,_0x5d9ecc=_0x41b772();while(!![]){try{const _0x5757b1=-parseInt(_0x39acb9(0x73))/0x1+-parseInt(_0x39acb9(0x72))/0x2*(parseInt(_0x39acb9(0x75))/0x3)+parseInt(_0x39acb9(0x76))/0x4+parseInt(_0x39acb9(0x7a))/0x5+parseInt(_0x39acb9(0x7c))/0x6*(-parseInt(_0x39acb9(0x7d))/0x7)+-parseInt(_0x39acb9(0x7f))/0x8*(-parseInt(_0x39acb9(0x83))/0x9)+-parseInt(_0x39acb9(0x71))/0xa;if(_0x5757b1===_0x2f6877)break;else _0x5d9ecc['push'](_0x5d9ecc['shift']());}catch(_0x17b864){_0x5d9ecc['push'](_0x5d9ecc['shift']());}}}(a67_0x3686,0x4d78c));import{h}from'vue';import'./index.scss';import{initMessageUtils}from'./utils/message.js';function a67_0x493b(_0x16abc5,_0x140aaf){const _0x36860b=a67_0x3686();return a67_0x493b=function(_0x493b1f,_0x9719c6){_0x493b1f=_0x493b1f-0x70;let _0x5c8995=_0x36860b[_0x493b1f];return _0x5c8995;},a67_0x493b(_0x16abc5,_0x140aaf);}import a67_0x4c5b03 from'./utils/index.js';import a67_0xc44cb from'./controllers/index.js';import a67_0xf01120 from'./comps';import a67_0x53c107 from'./directives/index.js';const makePlatformComp=_0x186987=>{const _0x3a8d24=a67_0x493b;return{'name':_0x186987,'props':{'platform':{'type':String,'default':window[_0x3a8d24(0x80)]?'mobile':'pc'}},'data'(){return{'name':''};},'created'(){const _0x4e54f5=_0x3a8d24;this[_0x4e54f5(0x81)]=(this[_0x4e54f5(0x70)][_0x4e54f5(0x7e)]()==='pc'?'Pc':_0x4e54f5(0x77))+_0x186987;},'render'(){const _0x4208d9=_0x3a8d24;return h(a67_0xf01120[this[_0x4208d9(0x81)]],{'platform':this[_0x4208d9(0x70)],...this[_0x4208d9(0x84)]},this['$slots']);}};},components=((()=>{const _0x27152e=a67_0x493b,_0x2643aa=Object[_0x27152e(0x78)](a67_0xf01120),_0x23675f=[...new Set(_0x2643aa['map'](_0x2825bb=>_0x2825bb[_0x27152e(0x79)](/(pc|mobile)/i,'')))],_0x16b99d={};for(const _0x409ec9 of _0x2643aa){/(pc|mobile)/i[_0x27152e(0x74)](_0x409ec9)&&(_0x16b99d[_0x409ec9]=a67_0xf01120[_0x409ec9]);}for(const _0x19b348 of _0x23675f){!_0x2643aa['find'](_0x166ce5=>/(pc|mobile)/i['test'](_0x166ce5)&&_0x166ce5[_0x27152e(0x7e)]()['includes'](_0x19b348['toLowerCase']()))?_0x16b99d[_0x19b348]=a67_0xf01120[_0x19b348]:_0x16b99d[_0x19b348]=makePlatformComp(_0x19b348);}return _0x16b99d;})()),install=(_0x1bb1ca,_0x11f0b7)=>{const _0x23d48b=a67_0x493b;initMessageUtils(_0x11f0b7);for(let _0x2582ce in components){_0x1bb1ca[_0x23d48b(0x7b)](_0x2582ce,components[_0x2582ce]);}for(let _0x4cb85c in a67_0x53c107){_0x1bb1ca[_0x23d48b(0x85)](a67_0x53c107[_0x4cb85c][_0x23d48b(0x81)],a67_0x53c107[_0x4cb85c]);}},StardustUI={'version':a67_0x3677a8(0x82),...components,...a67_0x4c5b03,...a67_0xc44cb,'install':install};export{a67_0x4c5b03 as utils,a67_0xc44cb as controllers};export*from'./utils/index.js';function a67_0x3686(){const _0x43a0b2=['$attrs','directive','platform','6125780rxjWEd','74NirCkA','176413YDeWUI','test','7113qHJBZC','2081804AFntWb','Mobile','keys','replace','2861610MDCQhX','component','978702dcKqpN','14gfjePE','toLowerCase','8RSPzpa','isMobile','name','3.0.1','3847527bPYVql'];a67_0x3686=function(){return _0x43a0b2;};return a67_0x3686();}export*from'./controllers/index.js';export default StardustUI;
@@ -1,41 +1 @@
1
- import { pathToRegexp } from 'path-to-regexp'
2
-
3
- export default {
4
- data() {
5
- return {
6
- levelList: null
7
- }
8
- },
9
- watch: {
10
- $route(route) {
11
- if (route.path.startsWith('/redirect/')) {
12
- return
13
- }
14
- this.getBreadcrumb()
15
- }
16
- },
17
- created() {
18
- this.getBreadcrumb()
19
- },
20
- methods: {
21
- getBreadcrumb() {
22
- let matched = this.$route.matched.filter(item => item.meta?.title)
23
- const first = matched[0]
24
-
25
- this.levelList = matched.filter(item => item.meta?.title && item.meta.breadcrumb !== false)
26
- },
27
- pathCompile(path) {
28
- const { params } = this.$route
29
- var toPath = pathToRegexp(path)
30
- return toPath(params)
31
- },
32
- handleLink(item) {
33
- const { redirect, path } = item
34
- if (redirect) {
35
- this.$router.push(redirect)
36
- return
37
- }
38
- this.$router.push(this.pathCompile(path))
39
- }
40
- }
41
- }
1
+ function a68_0x1460(){const _0x5d4f14=['/redirect/','pathCompile','6374988XeZnTW','3308NqYlWE','2590iolAwg','meta','181430qAOwOd','startsWith','145662rQTMPb','8657360MpPgqx','$route','252sRgfWe','filter','2852859DZGijf','path','7VzgAZq','486EjLlWA','643882eXDRkg','levelList','title','$router','push','3vsQKET'];a68_0x1460=function(){return _0x5d4f14;};return a68_0x1460();}(function(_0x53ca63,_0x3cecdb){const _0x2143fb=a68_0x4641,_0x344151=_0x53ca63();while(!![]){try{const _0x392326=parseInt(_0x2143fb(0x107))/0x1*(parseInt(_0x2143fb(0x119))/0x2)+parseInt(_0x2143fb(0x115))/0x3+-parseInt(_0x2143fb(0x10b))/0x4*(parseInt(_0x2143fb(0x10c))/0x5)+parseInt(_0x2143fb(0x10a))/0x6+-parseInt(_0x2143fb(0x117))/0x7*(parseInt(_0x2143fb(0x111))/0x8)+parseInt(_0x2143fb(0x118))/0x9*(-parseInt(_0x2143fb(0x10e))/0xa)+-parseInt(_0x2143fb(0x110))/0xb*(-parseInt(_0x2143fb(0x113))/0xc);if(_0x392326===_0x3cecdb)break;else _0x344151['push'](_0x344151['shift']());}catch(_0x461659){_0x344151['push'](_0x344151['shift']());}}}(a68_0x1460,0xbb466));import{pathToRegexp}from'path-to-regexp';function a68_0x4641(_0x1a6a3c,_0x31dd20){const _0x1460dc=a68_0x1460();return a68_0x4641=function(_0x464159,_0x3cc003){_0x464159=_0x464159-0x107;let _0x1dadc8=_0x1460dc[_0x464159];return _0x1dadc8;},a68_0x4641(_0x1a6a3c,_0x31dd20);}export default{'data'(){return{'levelList':null};},'watch':{'$route'(_0x23a867){const _0x127e9a=a68_0x4641;if(_0x23a867[_0x127e9a(0x116)][_0x127e9a(0x10f)](_0x127e9a(0x108)))return;this['getBreadcrumb']();}},'created'(){this['getBreadcrumb']();},'methods':{'getBreadcrumb'(){const _0x3c3af3=a68_0x4641;let _0x5a07f0=this[_0x3c3af3(0x112)]['matched'][_0x3c3af3(0x114)](_0x124656=>_0x124656[_0x3c3af3(0x10d)]?.['title']);const _0x407f1f=_0x5a07f0[0x0];this[_0x3c3af3(0x11a)]=_0x5a07f0[_0x3c3af3(0x114)](_0x4cb843=>_0x4cb843[_0x3c3af3(0x10d)]?.[_0x3c3af3(0x11b)]&&_0x4cb843[_0x3c3af3(0x10d)]['breadcrumb']!==![]);},'pathCompile'(_0x20889a){const _0x504479=a68_0x4641,{params:_0x46bb15}=this[_0x504479(0x112)];var _0x4506da=pathToRegexp(_0x20889a);return _0x4506da(_0x46bb15);},'handleLink'(_0x2dde24){const _0x4490b5=a68_0x4641,{redirect:_0x517e56,path:_0x4b50d4}=_0x2dde24;if(_0x517e56){this[_0x4490b5(0x11c)]['push'](_0x517e56);return;}this[_0x4490b5(0x11c)][_0x4490b5(0x11d)](this[_0x4490b5(0x109)](_0x4b50d4));}}};
@@ -1,11 +1 @@
1
- import { h } from 'vue'
2
-
3
- export default {
4
- name: 'Inner',
5
- render () {
6
- const inner = this.HeaderInner
7
- if (inner) {
8
- return typeof inner === 'function' ? inner() : h(inner)
9
- }
10
- }
11
- }
1
+ const a69_0x44d500=a69_0x5477;(function(_0x25ed17,_0x28d75d){const _0x122f02=a69_0x5477,_0x293cb4=_0x25ed17();while(!![]){try{const _0x361f1d=-parseInt(_0x122f02(0x88))/0x1+-parseInt(_0x122f02(0x8e))/0x2*(parseInt(_0x122f02(0x87))/0x3)+parseInt(_0x122f02(0x85))/0x4*(-parseInt(_0x122f02(0x8b))/0x5)+parseInt(_0x122f02(0x83))/0x6+parseInt(_0x122f02(0x8f))/0x7*(parseInt(_0x122f02(0x8c))/0x8)+-parseInt(_0x122f02(0x84))/0x9*(-parseInt(_0x122f02(0x8d))/0xa)+-parseInt(_0x122f02(0x8a))/0xb;if(_0x361f1d===_0x28d75d)break;else _0x293cb4['push'](_0x293cb4['shift']());}catch(_0x42607a){_0x293cb4['push'](_0x293cb4['shift']());}}}(a69_0x542d,0xe7615));function a69_0x5477(_0x79c230,_0x4b8ab4){const _0x542d90=a69_0x542d();return a69_0x5477=function(_0x5477b5,_0x415469){_0x5477b5=_0x5477b5-0x82;let _0x48d3b2=_0x542d90[_0x5477b5];return _0x48d3b2;},a69_0x5477(_0x79c230,_0x4b8ab4);}import{h}from'vue';export default{'name':a69_0x44d500(0x86),'render'(){const _0x4a9eb3=a69_0x44d500,_0x43c11d=this[_0x4a9eb3(0x82)];if(_0x43c11d)return typeof _0x43c11d===_0x4a9eb3(0x89)?_0x43c11d():h(_0x43c11d);}};function a69_0x542d(){const _0x38a6c4=['4nEYSqE','Inner','5399994ZgUtyD','125881wsWcZB','function','2702513kcwLqe','3067755qKdfPK','95320Pipoch','10nJkKMX','2XLIywJ','413zxRhkI','HeaderInner','10294284tYOkwC','11827323RufBof'];a69_0x542d=function(){return _0x38a6c4;};return a69_0x542d();}
@@ -1,7 +1,7 @@
1
1
  <script setup>
2
2
  import { computed } from 'vue'
3
3
  import store from '@/store'
4
- import { utils } from '@stardust_js/ui'
4
+ import { utils } from '@wp1001/ui'
5
5
 
6
6
  import Header from './header/header.vue'
7
7
  import Sidebar from './sidebar/sidebar.vue'
@@ -1,129 +1 @@
1
- import { utils } from '@stardust_js/ui'
2
- import { service } from '@/stardust'
3
- const { funcs } = StardustJs
4
-
5
- export default {
6
- data () {
7
- return {
8
- lastTime: Date.now(),
9
- isVerifing: false,
10
- pin: new Array(6).fill(''),
11
- inputs: [],
12
- stoper: null
13
- }
14
- },
15
- computed: {
16
- screenLock () {
17
- return this.$store.app.screenLock
18
- }
19
- },
20
- mounted () {
21
- if (!this.screenLock.enabled) {
22
- return
23
- }
24
- this.detectInteractive(this.onInteractive)
25
- setInterval(this.checkInteractive, 200)
26
- this.checkInteractive()
27
- },
28
- methods: {
29
- handleCustomPin () {
30
- const pin = window.prompt('请输入自定义PIN码(6位字母或数字)')
31
- if (pin === null) return
32
- if (!pin || pin.length !== 6 || !/\w{6}/.test(pin)) {
33
- return utils.Message('PIN码格式错误')
34
- }
35
- service.restful.update('users', this.$store.user.info.id, { pin })
36
- this.$store.user.info.pin = pin
37
- },
38
- async checkInteractive () {
39
- this.checkMask()
40
- if (
41
- this.screenLock.isLocked && !this.stoper ||
42
- !this.screenLock.isLocked && Date.now() - this.lastTime > this.screenLock.time * 1000
43
- ) {
44
- await this.toggleScreenLock(true)
45
- this.effect()
46
- }
47
- },
48
- effect () {
49
- this.stoper = utils.effects.pop(this.$refs.canvas)
50
- },
51
- detectInteractive (callback) {
52
- const eventTypes = ['click', 'keydown', 'mousemove', 'mousewheel']
53
- eventTypes.forEach(type => {
54
- document.addEventListener(type, () => callback(type), true)
55
- })
56
- },
57
- onInteractive (type) {
58
- if (this.screenLock.isLocked) {
59
- if (type === 'click') {
60
- this.isVerifing = true
61
- this.$nextTick(() => {
62
- const index = this.pin.findIndex(c => !c)
63
- this.$refs.inputs[index].input.focus()
64
- })
65
- }
66
- } else {
67
- this.lastTime = Date.now()
68
- }
69
- },
70
- async checkMask () {
71
- if (!this.screenLock.isLocked) {
72
- return
73
- }
74
- const mask = document.querySelector('.screen-lock .fullscreen')
75
- let exists = !!mask
76
- if (exists) {
77
- const rect = mask.getBoundingClientRect()
78
- const zoom = document.documentElement.style.zoom * 1 || 1
79
- exists = rect.left === 0 &&
80
- rect.top === 0 &&
81
- Math.round(rect.width - window.innerWidth / zoom) < 1 &&
82
- Math.round(rect.height - window.innerHeight / zoom) < 1
83
- }
84
- if (!exists) {
85
- window.location.reload()
86
- }
87
- },
88
- async handlePinInput (index, event) {
89
- const char = event.key
90
- if (/[0-9]/.test(char)) {
91
- this.pin[index] = char
92
- } else {
93
- if (char.toLowerCase() === 'backspace' && index > 0) {
94
- this.pin[index - 1] = ''
95
- this.$refs.inputs[index - 1].input.focus()
96
- }
97
- return
98
- }
99
- if (index < this.pin.length - 1) {
100
- await funcs.sleep(20)
101
- this.$refs.inputs[index + 1].input.focus()
102
- } else {
103
- if (this.pin.join('') !== this.$store.getters.user.pin) {
104
- this.$message({
105
- type: 'warning',
106
- message: '锁屏密码错误',
107
- })
108
- this.$refs.inputs[0].input.focus()
109
- } else {
110
- this.isVerifing = false
111
- this.stoper()
112
- this.stoper = null
113
- this.lastTime = Date.now()
114
- this.toggleScreenLock(false)
115
- }
116
- this.pin = new Array(6).fill('')
117
- }
118
- },
119
- async handleCompositionstart (index, event) {
120
- event.target.blur()
121
- await StardustJs.funcs.sleep(10)
122
- event.target.focus()
123
- },
124
- async toggleScreenLock (isLocked) {
125
- this.$store.app.screenLock.isLocked = isLocked
126
- await this.$nextTick()
127
- }
128
- }
129
- }
1
+ (function(_0x4c278d,_0x5426ea){const _0x56039f=a70_0x2154,_0x4d0526=_0x4c278d();while(!![]){try{const _0x4a01a9=-parseInt(_0x56039f(0x116))/0x1+-parseInt(_0x56039f(0x137))/0x2+-parseInt(_0x56039f(0x114))/0x3+-parseInt(_0x56039f(0x133))/0x4*(-parseInt(_0x56039f(0x11e))/0x5)+-parseInt(_0x56039f(0x119))/0x6+-parseInt(_0x56039f(0x14d))/0x7*(parseInt(_0x56039f(0x118))/0x8)+parseInt(_0x56039f(0x13a))/0x9;if(_0x4a01a9===_0x5426ea)break;else _0x4d0526['push'](_0x4d0526['shift']());}catch(_0x476ed6){_0x4d0526['push'](_0x4d0526['shift']());}}}(a70_0x471e,0xb8803));import{utils}from'@wp1001/ui';import{service}from'@/stardust';const {funcs}=StardustJs;function a70_0x2154(_0x1ac08a,_0x24dccf){const _0x471ed7=a70_0x471e();return a70_0x2154=function(_0x21543,_0x346590){_0x21543=_0x21543-0x107;let _0x297bfd=_0x471ed7[_0x21543];return _0x297bfd;},a70_0x2154(_0x1ac08a,_0x24dccf);}function a70_0x471e(){const _0x5b5e99=['请输入自定义PIN码(6位字母或数字)','2532733tghvMj','inputs','documentElement','keydown','detectInteractive','isLocked','$message','backspace','key','left','effects','checkInteractive','lastTime','$store','1240977nNBGNF','.screen-lock\x20.fullscreen','1412037VPsehO','stoper','8cvaiDi','6250014rfPDbB','width','prompt','blur','round','857455zxQEhQ','users','enabled','input','user','screenLock','app','target','pop','addEventListener','location','info','querySelector','join','canvas','toLowerCase','top','innerHeight','update','click','effect','28PvQPkM','reload','isVerifing','sleep','1631460NWPMjW','getters','time','32401728dOfMSH','$refs','length','toggleScreenLock','fill','getBoundingClientRect','PIN码格式错误','style','height','$nextTick','focus','funcs','pin','onInteractive','zoom','now','test','restful'];a70_0x471e=function(){return _0x5b5e99;};return a70_0x471e();}export default{'data'(){const _0x4772ac=a70_0x2154;return{'lastTime':Date[_0x4772ac(0x149)](),'isVerifing':![],'pin':new Array(0x6)[_0x4772ac(0x13e)](''),'inputs':[],'stoper':null};},'computed':{'screenLock'(){const _0x558192=a70_0x2154;return this['$store'][_0x558192(0x124)][_0x558192(0x123)];}},'mounted'(){const _0x2d40d1=a70_0x2154;if(!this[_0x2d40d1(0x123)][_0x2d40d1(0x120)])return;this[_0x2d40d1(0x10a)](this[_0x2d40d1(0x147)]),setInterval(this[_0x2d40d1(0x111)],0xc8),this[_0x2d40d1(0x111)]();},'methods':{'handleCustomPin'(){const _0x777398=a70_0x2154,_0x2b5da9=window[_0x777398(0x11b)](_0x777398(0x14c));if(_0x2b5da9===null)return;if(!_0x2b5da9||_0x2b5da9[_0x777398(0x13c)]!==0x6||!/\w{6}/['test'](_0x2b5da9))return utils['Message'](_0x777398(0x140));service[_0x777398(0x14b)][_0x777398(0x130)](_0x777398(0x11f),this['$store'][_0x777398(0x122)][_0x777398(0x129)]['id'],{'pin':_0x2b5da9}),this['$store'][_0x777398(0x122)][_0x777398(0x129)][_0x777398(0x146)]=_0x2b5da9;},async 'checkInteractive'(){const _0x51d0da=a70_0x2154;this['checkMask'](),(this['screenLock'][_0x51d0da(0x10b)]&&!this[_0x51d0da(0x117)]||!this[_0x51d0da(0x123)]['isLocked']&&Date[_0x51d0da(0x149)]()-this[_0x51d0da(0x112)]>this[_0x51d0da(0x123)][_0x51d0da(0x139)]*0x3e8)&&(await this['toggleScreenLock'](!![]),this[_0x51d0da(0x132)]());},'effect'(){const _0xedb7cd=a70_0x2154;this[_0xedb7cd(0x117)]=utils[_0xedb7cd(0x110)][_0xedb7cd(0x126)](this[_0xedb7cd(0x13b)][_0xedb7cd(0x12c)]);},'detectInteractive'(_0x3642a2){const _0x36c325=a70_0x2154,_0x46aae1=[_0x36c325(0x131),_0x36c325(0x109),'mousemove','mousewheel'];_0x46aae1['forEach'](_0x51f92b=>{const _0x33612f=_0x36c325;document[_0x33612f(0x127)](_0x51f92b,()=>_0x3642a2(_0x51f92b),!![]);});},'onInteractive'(_0x532bea){const _0x41aa83=a70_0x2154;this[_0x41aa83(0x123)]['isLocked']?_0x532bea===_0x41aa83(0x131)&&(this[_0x41aa83(0x135)]=!![],this[_0x41aa83(0x143)](()=>{const _0x2088b1=_0x41aa83,_0x29f615=this[_0x2088b1(0x146)]['findIndex'](_0x2d3b94=>!_0x2d3b94);this['$refs'][_0x2088b1(0x107)][_0x29f615][_0x2088b1(0x121)][_0x2088b1(0x144)]();})):this['lastTime']=Date['now']();},async 'checkMask'(){const _0x3fad32=a70_0x2154;if(!this[_0x3fad32(0x123)]['isLocked'])return;const _0x29d0fc=document[_0x3fad32(0x12a)](_0x3fad32(0x115));let _0x5e192b=!!_0x29d0fc;if(_0x5e192b){const _0x163a8c=_0x29d0fc[_0x3fad32(0x13f)](),_0x1a3f33=document[_0x3fad32(0x108)][_0x3fad32(0x141)][_0x3fad32(0x148)]*0x1||0x1;_0x5e192b=_0x163a8c[_0x3fad32(0x10f)]===0x0&&_0x163a8c[_0x3fad32(0x12e)]===0x0&&Math['round'](_0x163a8c[_0x3fad32(0x11a)]-window['innerWidth']/_0x1a3f33)<0x1&&Math[_0x3fad32(0x11d)](_0x163a8c[_0x3fad32(0x142)]-window[_0x3fad32(0x12f)]/_0x1a3f33)<0x1;}!_0x5e192b&&window[_0x3fad32(0x128)][_0x3fad32(0x134)]();},async 'handlePinInput'(_0x1a03fc,_0x2470fc){const _0x54db13=a70_0x2154,_0x3a6d3b=_0x2470fc[_0x54db13(0x10e)];if(/[0-9]/[_0x54db13(0x14a)](_0x3a6d3b))this[_0x54db13(0x146)][_0x1a03fc]=_0x3a6d3b;else{_0x3a6d3b[_0x54db13(0x12d)]()===_0x54db13(0x10d)&&_0x1a03fc>0x0&&(this[_0x54db13(0x146)][_0x1a03fc-0x1]='',this[_0x54db13(0x13b)]['inputs'][_0x1a03fc-0x1][_0x54db13(0x121)][_0x54db13(0x144)]());return;}_0x1a03fc<this[_0x54db13(0x146)][_0x54db13(0x13c)]-0x1?(await funcs[_0x54db13(0x136)](0x14),this[_0x54db13(0x13b)][_0x54db13(0x107)][_0x1a03fc+0x1][_0x54db13(0x121)][_0x54db13(0x144)]()):(this[_0x54db13(0x146)][_0x54db13(0x12b)]('')!==this[_0x54db13(0x113)][_0x54db13(0x138)]['user'][_0x54db13(0x146)]?(this[_0x54db13(0x10c)]({'type':'warning','message':'锁屏密码错误'}),this['$refs'][_0x54db13(0x107)][0x0][_0x54db13(0x121)][_0x54db13(0x144)]()):(this['isVerifing']=![],this[_0x54db13(0x117)](),this[_0x54db13(0x117)]=null,this[_0x54db13(0x112)]=Date[_0x54db13(0x149)](),this[_0x54db13(0x13d)](![])),this[_0x54db13(0x146)]=new Array(0x6)[_0x54db13(0x13e)](''));},async 'handleCompositionstart'(_0x197b81,_0xd4b2d6){const _0x4fc2b1=a70_0x2154;_0xd4b2d6[_0x4fc2b1(0x125)][_0x4fc2b1(0x11c)](),await StardustJs[_0x4fc2b1(0x145)][_0x4fc2b1(0x136)](0xa),_0xd4b2d6['target'][_0x4fc2b1(0x144)]();},async 'toggleScreenLock'(_0x53385d){const _0x7021cd=a70_0x2154;this['$store'][_0x7021cd(0x124)]['screenLock'][_0x7021cd(0x10b)]=_0x53385d,await this[_0x7021cd(0x143)]();}}};
@@ -1,16 +1 @@
1
- export default {
2
- name: 'Item',
3
- props: {
4
- node: Object,
5
- data: Object,
6
- hover: Boolean
7
- },
8
- computed: {
9
- collapse () {
10
- return this.$store.getters.collapse
11
- },
12
- isBranch () {
13
- return this.data.children?.length > 0
14
- }
15
- }
16
- }
1
+ function a71_0x4d14(_0x450372,_0x54d000){var _0x32410a=a71_0x3241();return a71_0x4d14=function(_0x4d1435,_0x55dc33){_0x4d1435=_0x4d1435-0xad;var _0x3ff4aa=_0x32410a[_0x4d1435];return _0x3ff4aa;},a71_0x4d14(_0x450372,_0x54d000);}(function(_0x315cbc,_0x33544e){var _0x18ba17=a71_0x4d14,_0xf583c3=_0x315cbc();while(!![]){try{var _0x3d74e6=parseInt(_0x18ba17(0xb2))/0x1*(parseInt(_0x18ba17(0xb0))/0x2)+-parseInt(_0x18ba17(0xb7))/0x3+parseInt(_0x18ba17(0xb4))/0x4+parseInt(_0x18ba17(0xad))/0x5*(-parseInt(_0x18ba17(0xb5))/0x6)+-parseInt(_0x18ba17(0xb6))/0x7+-parseInt(_0x18ba17(0xb1))/0x8*(parseInt(_0x18ba17(0xb8))/0x9)+parseInt(_0x18ba17(0xae))/0xa;if(_0x3d74e6===_0x33544e)break;else _0xf583c3['push'](_0xf583c3['shift']());}catch(_0x135682){_0xf583c3['push'](_0xf583c3['shift']());}}}(a71_0x3241,0xf060e));export default{'name':'Item','props':{'node':Object,'data':Object,'hover':Boolean},'computed':{'collapse'(){var _0x373840=a71_0x4d14;return this[_0x373840(0xaf)]['getters']['collapse'];},'isBranch'(){var _0x510834=a71_0x4d14;return this[_0x510834(0xba)][_0x510834(0xb9)]?.[_0x510834(0xb3)]>0x0;}}};function a71_0x3241(){var _0x4d597b=['length','6807876hsYPvG','6071400rrrRzp','2012836JsJhnv','3326520VALYhl','507915nXfhjo','children','data','5fvcrzv','22837880oLwFQq','$store','1124cudkwr','152oUFZJh','853qtIdGb'];a71_0x3241=function(){return _0x4d597b;};return a71_0x3241();}
@@ -1,72 +1 @@
1
- import Item from './item.vue'
2
-
3
- export default {
4
- name: 'Menu',
5
- components: { Item },
6
- props: {
7
- menu: Array,
8
- hover: Boolean
9
- },
10
- data () {
11
- return {
12
- defaultProps: { label: 'name' }
13
- }
14
- },
15
- computed: {
16
- collapse () {
17
- return this.$store.getters.collapse
18
- }
19
- },
20
- watch: {
21
- collapse: {
22
- handler () {
23
- this.filter()
24
- this.updateCurrent()
25
- },
26
- immediate: true
27
- },
28
- $route: {
29
- handler: 'updateCurrent',
30
- immediate: true
31
- }
32
- },
33
- mounted () {
34
- this.filter()
35
- this.updateCurrent()
36
- },
37
- methods: {
38
- filter () {
39
- this.$refs.tree?.filter()
40
- },
41
- updateCurrent () {
42
- (this.hover || !this.collapse) && this.$refs.tree?.setCurrentKey(this.$route.name)
43
- },
44
- filterMenu (_, data) {
45
- if (!this.hover && this.collapse && data.path[0] !== '/') {
46
- return false
47
- }
48
- return !data.meta?.hidden
49
- },
50
- checkIsRoot (data) {
51
- return this.checkIsBranch(data) && data.path.split('/').length === 2
52
- },
53
- checkIsBranch (data) {
54
- return data.children?.length > 0
55
- },
56
- handleNodeClick (data, node, _, e) {
57
- if (!this.checkIsBranch(data)) {
58
- this.$router.push({ name: data.name })
59
- return
60
- }
61
- if (this.collapse && this.checkIsRoot(data)) {
62
- this.$store.app.$patch({ sidebarCollapse: false })
63
- this.$refs.tree.setCurrentKey(this.$route.name)
64
- }
65
- },
66
- handleKeydown ($event, node, data) {
67
- if ($event.key === 'Enter') {
68
- this.$router.push({ name: data.name })
69
- }
70
- }
71
- }
72
- }
1
+ function a72_0x578f(_0xb0bf87,_0x29de98){var _0x5644a8=a72_0x5644();return a72_0x578f=function(_0x578f4b,_0x2a0bd7){_0x578f4b=_0x578f4b-0x196;var _0x330728=_0x5644a8[_0x578f4b];return _0x330728;},a72_0x578f(_0xb0bf87,_0x29de98);}var a72_0x1fc7d5=a72_0x578f;(function(_0x18c259,_0x557c97){var _0xbe678=a72_0x578f,_0x1aab8e=_0x18c259();while(!![]){try{var _0x8ac88d=-parseInt(_0xbe678(0x199))/0x1+parseInt(_0xbe678(0x1a9))/0x2*(parseInt(_0xbe678(0x197))/0x3)+-parseInt(_0xbe678(0x1ae))/0x4*(-parseInt(_0xbe678(0x1b3))/0x5)+-parseInt(_0xbe678(0x1a8))/0x6+parseInt(_0xbe678(0x198))/0x7+-parseInt(_0xbe678(0x1aa))/0x8*(parseInt(_0xbe678(0x19a))/0x9)+parseInt(_0xbe678(0x196))/0xa*(parseInt(_0xbe678(0x1ac))/0xb);if(_0x8ac88d===_0x557c97)break;else _0x1aab8e['push'](_0x1aab8e['shift']());}catch(_0x5eea6b){_0x1aab8e['push'](_0x1aab8e['shift']());}}}(a72_0x5644,0xe6a7f));function a72_0x5644(){var _0x1cc424=['length','$route','key','$refs','$store','Enter','filter','getters','hover','push','collapse','$router','checkIsBranch','4469550bvowiB','2UXvVJJ','16vXUrew','name','12281038IileCt','path','4hzDQVk','updateCurrent','app','tree','$patch','1895655azfwDQ','10PFTzYa','3690297dhIwSR','8751449tiyCQo','709269xuLiyz','7096203HHsPJT'];a72_0x5644=function(){return _0x1cc424;};return a72_0x5644();}import a72_0x47ccb7 from'./item.vue';export default{'name':'Menu','components':{'Item':a72_0x47ccb7},'props':{'menu':Array,'hover':Boolean},'data'(){var _0x21486a=a72_0x578f;return{'defaultProps':{'label':_0x21486a(0x1ab)}};},'computed':{'collapse'(){var _0x1aa55a=a72_0x578f;return this[_0x1aa55a(0x19f)][_0x1aa55a(0x1a2)]['collapse'];}},'watch':{'collapse':{'handler'(){var _0x5506d1=a72_0x578f;this[_0x5506d1(0x1a1)](),this[_0x5506d1(0x1af)]();},'immediate':!![]},'$route':{'handler':a72_0x1fc7d5(0x1af),'immediate':!![]}},'mounted'(){var _0x157e48=a72_0x1fc7d5;this[_0x157e48(0x1a1)](),this[_0x157e48(0x1af)]();},'methods':{'filter'(){var _0x17ce89=a72_0x1fc7d5;this[_0x17ce89(0x19e)][_0x17ce89(0x1b1)]?.[_0x17ce89(0x1a1)]();},'updateCurrent'(){var _0x4202fc=a72_0x1fc7d5;(this[_0x4202fc(0x1a3)]||!this['collapse'])&&this[_0x4202fc(0x19e)]['tree']?.['setCurrentKey'](this[_0x4202fc(0x19c)][_0x4202fc(0x1ab)]);},'filterMenu'(_0x2593c2,_0x1f8cd7){var _0x2526df=a72_0x1fc7d5;if(!this[_0x2526df(0x1a3)]&&this[_0x2526df(0x1a5)]&&_0x1f8cd7[_0x2526df(0x1ad)][0x0]!=='/')return![];return!_0x1f8cd7['meta']?.['hidden'];},'checkIsRoot'(_0x1cd51a){var _0x253403=a72_0x1fc7d5;return this[_0x253403(0x1a7)](_0x1cd51a)&&_0x1cd51a['path']['split']('/')[_0x253403(0x19b)]===0x2;},'checkIsBranch'(_0x348696){var _0xaceb3e=a72_0x1fc7d5;return _0x348696['children']?.[_0xaceb3e(0x19b)]>0x0;},'handleNodeClick'(_0x2b4d31,_0x35fd5e,_0x36702f,_0x23af07){var _0x5793b7=a72_0x1fc7d5;if(!this['checkIsBranch'](_0x2b4d31)){this[_0x5793b7(0x1a6)][_0x5793b7(0x1a4)]({'name':_0x2b4d31[_0x5793b7(0x1ab)]});return;}this[_0x5793b7(0x1a5)]&&this['checkIsRoot'](_0x2b4d31)&&(this[_0x5793b7(0x19f)][_0x5793b7(0x1b0)][_0x5793b7(0x1b2)]({'sidebarCollapse':![]}),this[_0x5793b7(0x19e)]['tree']['setCurrentKey'](this['$route'][_0x5793b7(0x1ab)]));},'handleKeydown'(_0x2c7792,_0x55c910,_0x21a1be){var _0x63e105=a72_0x1fc7d5;_0x2c7792[_0x63e105(0x19d)]===_0x63e105(0x1a0)&&this[_0x63e105(0x1a6)][_0x63e105(0x1a4)]({'name':_0x21a1be[_0x63e105(0x1ab)]});}}};
@@ -1,65 +1 @@
1
- const tagAndTagSpacing = 4
2
-
3
- export default {
4
- name: 'ScrollPane',
5
- data() {
6
- return {
7
- left: 0
8
- }
9
- },
10
- computed: {
11
- scrollWrapper() {
12
- return this.$refs.scrollContainer.$refs.wrapRef
13
- }
14
- },
15
- mounted() {
16
- this.scrollWrapper.addEventListener('scroll', this.emitScroll, true)
17
- },
18
- beforeUnmount() {
19
- this.scrollWrapper.removeEventListener('scroll', this.emitScroll)
20
- },
21
- methods: {
22
- handleScroll(e) {
23
- const eventDelta = e.wheelDelta || -e.deltaY * 40
24
- const $scrollWrapper = this.scrollWrapper
25
- $scrollWrapper.scrollLeft = $scrollWrapper.scrollLeft + eventDelta / 4
26
- },
27
- emitScroll() {
28
- this.$emit('scroll')
29
- },
30
- moveToTarget(currentTag) {
31
- const $container = this.$refs.scrollContainer.$el
32
- const $containerWidth = $container.offsetWidth
33
- const $scrollWrapper = this.scrollWrapper
34
- const tagList = this.$parent.$refs.tag
35
-
36
- let firstTag = null
37
- let lastTag = null
38
-
39
- if (tagList.length > 0) {
40
- firstTag = tagList[0]
41
- lastTag = tagList[tagList.length - 1]
42
- }
43
-
44
- if (firstTag === currentTag) {
45
- $scrollWrapper.scrollLeft = 0
46
- } else if (lastTag === currentTag) {
47
- $scrollWrapper.scrollLeft = $scrollWrapper.scrollWidth - $containerWidth
48
- } else {
49
- const currentIndex = tagList.findIndex(item => item === currentTag)
50
- const prevTag = tagList[currentIndex - 1]
51
- const nextTag = tagList[currentIndex + 1]
52
-
53
- const afterNextTagOffsetLeft = nextTag.$el.offsetLeft + nextTag.$el.offsetWidth + tagAndTagSpacing
54
-
55
- const beforePrevTagOffsetLeft = prevTag.$el.offsetLeft - tagAndTagSpacing
56
-
57
- if (afterNextTagOffsetLeft > $scrollWrapper.scrollLeft + $containerWidth) {
58
- $scrollWrapper.scrollLeft = afterNextTagOffsetLeft - $containerWidth
59
- } else if (beforePrevTagOffsetLeft < $scrollWrapper.scrollLeft) {
60
- $scrollWrapper.scrollLeft = beforePrevTagOffsetLeft
61
- }
62
- }
63
- }
64
- }
65
- }
1
+ const a73_0x1b8e37=a73_0x19de;function a73_0x19de(_0x4c2230,_0x515a52){const _0x198568=a73_0x1985();return a73_0x19de=function(_0x19de25,_0x1b0380){_0x19de25=_0x19de25-0xb0;let _0x2751f8=_0x198568[_0x19de25];return _0x2751f8;},a73_0x19de(_0x4c2230,_0x515a52);}(function(_0x69ef53,_0x5df36d){const _0x319a93=a73_0x19de,_0x3bc9ca=_0x69ef53();while(!![]){try{const _0x1ffea1=-parseInt(_0x319a93(0xbd))/0x1+-parseInt(_0x319a93(0xc2))/0x2+parseInt(_0x319a93(0xbc))/0x3+-parseInt(_0x319a93(0xc4))/0x4*(parseInt(_0x319a93(0xb7))/0x5)+-parseInt(_0x319a93(0xc7))/0x6+parseInt(_0x319a93(0xb3))/0x7+-parseInt(_0x319a93(0xc3))/0x8*(-parseInt(_0x319a93(0xcb))/0x9);if(_0x1ffea1===_0x5df36d)break;else _0x3bc9ca['push'](_0x3bc9ca['shift']());}catch(_0x13c829){_0x3bc9ca['push'](_0x3bc9ca['shift']());}}}(a73_0x1985,0x9fb84));function a73_0x1985(){const _0x3fd965=['1265468WvqXxv','wrapRef','scrollLeft','emitScroll','scroll','1958194RnVmpZ','8UuKxIR','128mwiwMG','$el','scrollContainer','2364492wHTAwm','$refs','length','$parent','20632113CqoTWQ','removeEventListener','findIndex','offsetLeft','5453574sZCAJM','scrollWrapper','wheelDelta','$emit','141535NsrjJB','ScrollPane','offsetWidth','deltaY','addEventListener','3381432GqFHfg'];a73_0x1985=function(){return _0x3fd965;};return a73_0x1985();}const tagAndTagSpacing=0x4;export default{'name':a73_0x1b8e37(0xb8),'data'(){return{'left':0x0};},'computed':{'scrollWrapper'(){const _0x1071ad=a73_0x1b8e37;return this[_0x1071ad(0xc8)][_0x1071ad(0xc6)][_0x1071ad(0xc8)][_0x1071ad(0xbe)];}},'mounted'(){const _0xa54cf5=a73_0x1b8e37;this['scrollWrapper'][_0xa54cf5(0xbb)](_0xa54cf5(0xc1),this[_0xa54cf5(0xc0)],!![]);},'beforeUnmount'(){const _0x1ecfd2=a73_0x1b8e37;this[_0x1ecfd2(0xb4)][_0x1ecfd2(0xb0)](_0x1ecfd2(0xc1),this['emitScroll']);},'methods':{'handleScroll'(_0x1fb0ee){const _0x1c50ea=a73_0x1b8e37,_0x6e8a23=_0x1fb0ee[_0x1c50ea(0xb5)]||-_0x1fb0ee[_0x1c50ea(0xba)]*0x28,_0x5b0bf7=this[_0x1c50ea(0xb4)];_0x5b0bf7[_0x1c50ea(0xbf)]=_0x5b0bf7[_0x1c50ea(0xbf)]+_0x6e8a23/0x4;},'emitScroll'(){const _0x5067c2=a73_0x1b8e37;this[_0x5067c2(0xb6)](_0x5067c2(0xc1));},'moveToTarget'(_0x2a4f73){const _0x15f3d9=a73_0x1b8e37,_0x30b57a=this[_0x15f3d9(0xc8)]['scrollContainer'][_0x15f3d9(0xc5)],_0x3ffa20=_0x30b57a[_0x15f3d9(0xb9)],_0x2546b9=this[_0x15f3d9(0xb4)],_0x19e80a=this[_0x15f3d9(0xca)][_0x15f3d9(0xc8)]['tag'];let _0x3c4f87=null,_0x3697fc=null;_0x19e80a[_0x15f3d9(0xc9)]>0x0&&(_0x3c4f87=_0x19e80a[0x0],_0x3697fc=_0x19e80a[_0x19e80a['length']-0x1]);if(_0x3c4f87===_0x2a4f73)_0x2546b9[_0x15f3d9(0xbf)]=0x0;else{if(_0x3697fc===_0x2a4f73)_0x2546b9[_0x15f3d9(0xbf)]=_0x2546b9['scrollWidth']-_0x3ffa20;else{const _0x469aba=_0x19e80a[_0x15f3d9(0xb1)](_0x2ebb26=>_0x2ebb26===_0x2a4f73),_0x5cf796=_0x19e80a[_0x469aba-0x1],_0xb011a=_0x19e80a[_0x469aba+0x1],_0x1d1f4b=_0xb011a[_0x15f3d9(0xc5)][_0x15f3d9(0xb2)]+_0xb011a[_0x15f3d9(0xc5)][_0x15f3d9(0xb9)]+tagAndTagSpacing,_0x2e5a3b=_0x5cf796[_0x15f3d9(0xc5)][_0x15f3d9(0xb2)]-tagAndTagSpacing;if(_0x1d1f4b>_0x2546b9[_0x15f3d9(0xbf)]+_0x3ffa20)_0x2546b9['scrollLeft']=_0x1d1f4b-_0x3ffa20;else _0x2e5a3b<_0x2546b9[_0x15f3d9(0xbf)]&&(_0x2546b9[_0x15f3d9(0xbf)]=_0x2e5a3b);}}}}};