@wp1001/ui 3.1.19 → 3.1.21
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/@vant-D4fmGxs6.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/packages/assets/devtools-detector.js +1 -1
- package/packages/components/xarray/index.js +1 -1
- package/packages/components/xautorows/index.js +1 -1
- package/packages/components/xbutton/mobile.js +1 -1
- package/packages/components/xbutton/pc.js +1 -1
- package/packages/components/xbuttons/mobile.js +1 -1
- package/packages/components/xbuttons/pc.js +1 -1
- package/packages/components/xchart/constants.js +1 -1
- package/packages/components/xchart/index.js +1 -1
- package/packages/components/xchart/utils.js +1 -1
- package/packages/components/xcheckboxs/mobile.js +1 -1
- package/packages/components/xcheckboxs/pc.js +1 -1
- package/packages/components/xcol/mobile.js +1 -1
- package/packages/components/xcol/pc.js +1 -1
- package/packages/components/xdatepicker/mobile.js +1 -1
- package/packages/components/xdatepicker/pc.js +1 -1
- package/packages/components/xdialog/mobile.js +1 -1
- package/packages/components/xdialog/pc.js +1 -1
- package/packages/components/xdict/index.js +1 -1
- package/packages/components/xdistrictselect/mobile.js +1 -1
- package/packages/components/xdistrictselect/pc.js +1 -1
- package/packages/components/xform/mobile.js +1 -1
- package/packages/components/xform/mobile.vue +1 -1
- package/packages/components/xform/pc.js +1 -1
- package/packages/components/xform/utils.js +1 -1
- package/packages/components/xformitem/mobile.js +1 -1
- package/packages/components/xformitem/pc.js +1 -1
- package/packages/components/xformitem/utils.jsx +0 -2
- package/packages/components/xicon/mobile.js +1 -1
- package/packages/components/xicon/pc.js +1 -1
- package/packages/components/xinfo/index.js +1 -1
- package/packages/components/xlooper/index.js +1 -1
- package/packages/components/xpagination/mobile.js +1 -1
- package/packages/components/xpagination/pc.js +1 -1
- package/packages/components/xpicker/index.js +1 -1
- package/packages/components/xradios/mobile.js +1 -1
- package/packages/components/xradios/pc.js +1 -1
- package/packages/components/xrow/mobile.js +1 -1
- package/packages/components/xrow/pc.js +1 -1
- package/packages/components/xscan/mobile.js +1 -1
- package/packages/components/xscan/pc.js +1 -1
- package/packages/components/xsearcher/index.js +1 -1
- package/packages/components/xselect/mobile.js +1 -1
- package/packages/components/xselect/pc.js +1 -1
- package/packages/components/xselect/util.js +1 -1
- package/packages/components/xselectv2/index.js +1 -1
- package/packages/components/xtable/mobile.js +1 -1
- package/packages/components/xtable/pc.js +1 -1
- package/packages/components/xtable/searcher.js +1 -1
- package/packages/components/xtable/settings.js +1 -1
- package/packages/components/xtable/utils.js +1 -1
- package/packages/components/xtabletools/mobile.js +1 -1
- package/packages/components/xtabletools/pc.js +1 -1
- package/packages/components/xtablev2/pc.js +1 -1
- package/packages/components/xtags/mobile.js +1 -1
- package/packages/components/xtags/pc.js +1 -1
- package/packages/components/xtinymce/index.js +1 -1
- package/packages/components/xuploader/xfileuploader.js +1 -1
- package/packages/components/xuploader/ximageuploader.js +1 -1
- package/packages/comps.js +1 -1
- package/packages/controllers/BaseController.js +1 -1
- package/packages/controllers/CrudController.js +1 -1
- package/packages/controllers/TempCrudController.js +1 -1
- package/packages/controllers/index.js +1 -1
- package/packages/directives/el-table-infinite-scroll.js +1 -1
- package/packages/directives/index.js +1 -1
- package/packages/index.js +1 -1
- package/packages/layout/breadcrumb/index.js +1 -1
- package/packages/layout/header/inner.js +1 -1
- package/packages/layout/screenlock/index.js +1 -1
- package/packages/layout/sidebar/item.js +1 -1
- package/packages/layout/sidebar/menu.js +1 -1
- package/packages/layout/tagsview/ScrollPane.js +1 -1
- package/packages/layout/tagsview/index.js +1 -1
- package/packages/plop/actions/make-fill-admin-partials-action.js +1 -1
- package/packages/plop/generators/make-admin-page.js +1 -1
- package/packages/plop/generators/make-database-admin-pages.js +1 -1
- package/packages/plop/generators/make-page-generator.js +1 -1
- package/packages/plop/generators/make-simple-page.js +1 -1
- package/packages/plop/plopfile.js +1 -1
- package/packages/plop/utils/index.js +1 -1
- package/packages/plop/utils/plop-utils.js +1 -1
- package/packages/utils/crypt.js +1 -1
- package/packages/utils/decorators.js +1 -1
- package/packages/utils/disallowDevtools.js +1 -1
- package/packages/utils/effects.js +1 -1
- package/packages/utils/funcs.js +1 -1
- package/packages/utils/index.js +1 -1
- package/packages/utils/message.js +1 -1
- package/packages/utils/middlewares.js +1 -1
- package/packages/utils/model.js +1 -1
- package/packages/utils/modelUtils.js +1 -1
- package/packages/utils/request.js +1 -1
- package/packages/utils/site.js +1 -1
- package/packages/vite-plugins.js +1 -1
- package/src/main.js +1 -1
- package/src/request.js +1 -1
- package/vite.config.js +1 -1
- package/vite.lib.config.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x178caa,_0x550507){const _0x429eee=a74_0x449e,_0x38188e=_0x178caa();while(!![]){try{const _0x205d5c=-parseInt(_0x429eee(0xd9))/0x1+parseInt(_0x429eee(0xfe))/0x2*(parseInt(_0x429eee(0xf4))/0x3)+-parseInt(_0x429eee(0x101))/0x4*(-parseInt(_0x429eee(0xfd))/0x5)+parseInt(_0x429eee(0xd7))/0x6+-parseInt(_0x429eee(0x10c))/0x7*(-parseInt(_0x429eee(0xe8))/0x8)+parseInt(_0x429eee(0x104))/0x9+-parseInt(_0x429eee(0xec))/0xa;if(_0x205d5c===_0x550507)break;else _0x38188e['push'](_0x38188e['shift']());}catch(_0x355152){_0x38188e['push'](_0x38188e['shift']());}}}(a74_0x3f76,0x44b83));import a74_0x3ca15d from'./ScrollPane.vue';import a74_0x19bbd8 from'@/router';function a74_0x449e(_0x12a566,_0x2cc55a){const _0x3f7657=a74_0x3f76();return a74_0x449e=function(_0x449efb,_0x15c83b){_0x449efb=_0x449efb-0xd4;let _0x259ae7=_0x3f7657[_0x449efb];return _0x259ae7;},a74_0x449e(_0x12a566,_0x2cc55a);}export default{'components':{'ScrollPane':a74_0x3ca15d},'data'(){return{'visible':![],'top':0x0,'left':0x0,'selectedTag':{},'affixTags':[]};},'computed':{'visitedViews'(){const _0x4b7dc0=a74_0x449e;return this[_0x4b7dc0(0xf9)]['tagsview'][_0x4b7dc0(0x10b)];},'routes'(){return a74_0x19bbd8['getRoutes']();}},'watch':{'$route'(){const _0x5b7f2c=a74_0x449e;this[_0x5b7f2c(0x103)](),this[_0x5b7f2c(0xee)]();},'visible'(_0xe4b5e1){const _0x2b204a=a74_0x449e;_0xe4b5e1?document[_0x2b204a(0xf5)]['addEventListener']('click',this[_0x2b204a(0xf1)]):document[_0x2b204a(0xf5)]['removeEventListener'](_0x2b204a(0xe2),this[_0x2b204a(0xf1)]);}},'mounted'(){const _0x30b1a0=a74_0x449e;this[_0x30b1a0(0xe6)](),this[_0x30b1a0(0x103)]();},'methods':{'isActive'(_0x4187a0){const _0x401df9=a74_0x449e;return _0x4187a0[_0x401df9(0xfc)]===this[_0x401df9(0x10a)][_0x401df9(0xfc)];},'isAffix'(_0x5a1623){const _0x339e75=a74_0x449e;return _0x5a1623[_0x339e75(0xf6)]?.[_0x339e75(0xef)];},'filterAffixTags'(_0xda5ec3,_0x2680ee='/'){const _0x141282=a74_0x449e;let _0x226b5d=[];return _0xda5ec3[_0x141282(0x107)](_0x214fc3=>{const _0x284104=_0x141282;if(_0x214fc3['meta']?.[_0x284104(0xef)]){const _0x4c7d43=this['resolvePath'](_0x2680ee,_0x214fc3[_0x284104(0xfc)]);_0x226b5d[_0x284104(0x100)]({'fullPath':_0x4c7d43,'path':_0x4c7d43,'name':_0x214fc3[_0x284104(0xfa)],'meta':{..._0x214fc3[_0x284104(0xf6)]}});}if(_0x214fc3[_0x284104(0xda)]){const _0x2dc6e8=this[_0x284104(0xeb)](_0x214fc3[_0x284104(0xda)],this[_0x284104(0xdd)](_0x2680ee,_0x214fc3[_0x284104(0xfc)]));_0x2dc6e8[_0x284104(0xed)]>=0x1&&(_0x226b5d=[..._0x226b5d,..._0x2dc6e8]);}}),_0x226b5d;},'initTags'(){const _0x5197a6=a74_0x449e,_0x36524f=this[_0x5197a6(0x102)]=this[_0x5197a6(0xeb)](this[_0x5197a6(0x105)]);for(const _0x90049e of _0x36524f){_0x90049e['name']&&this['$store'][_0x5197a6(0xdb)][_0x5197a6(0xd4)](_0x90049e);}},'addTags'(){const _0x218258=a74_0x449e,{name:_0x311bb3}=this[_0x218258(0x10a)];return _0x311bb3&&this[_0x218258(0xf9)][_0x218258(0xdb)][_0x218258(0xf0)](this[_0x218258(0x10a)]),![];},'moveToCurrentTag'(){const _0x14cc64=a74_0x449e,_0x2e669e=this[_0x14cc64(0xde)][_0x14cc64(0x109)];this['$nextTick'](()=>{const _0x194fef=_0x14cc64;for(const _0x1715e2 of _0x2e669e){if(_0x1715e2['to'][_0x194fef(0xfc)]===this[_0x194fef(0x10a)][_0x194fef(0xfc)]){this[_0x194fef(0xde)][_0x194fef(0xfb)][_0x194fef(0xe9)](_0x1715e2);_0x1715e2['to']['fullPath']!==this['$route'][_0x194fef(0x108)]&&this[_0x194fef(0xf9)]['tagsview'][_0x194fef(0xd6)](this['$route']);break;}}});},'refreshSelectedTag'(_0x49b083){const _0x4da684=a74_0x449e;this[_0x4da684(0xf9)][_0x4da684(0xdb)]['delCachedView'](_0x49b083)[_0x4da684(0xea)](()=>{const _0x79fc4a=_0x4da684,{fullPath:_0xcd8469}=_0x49b083;this[_0x79fc4a(0xe7)](()=>{this['$router']['replace']({'path':_0xcd8469});});});},'closeSelectedTag'(_0x3853f4){const _0x55a0b7=a74_0x449e;this[_0x55a0b7(0xf9)]['tagsview'][_0x55a0b7(0xf8)](_0x3853f4)[_0x55a0b7(0xea)](({visitedViews:_0x48dc7b})=>{const _0x5402a0=_0x55a0b7;this[_0x5402a0(0xe3)](_0x3853f4)&&this[_0x5402a0(0xf7)](_0x48dc7b,_0x3853f4);});},'closeOthersTags'(){const _0x1a68c7=a74_0x449e;this[_0x1a68c7(0xdf)][_0x1a68c7(0x100)](this[_0x1a68c7(0xe5)]),this[_0x1a68c7(0xf9)]['tagsview']['delOthersViews'](this[_0x1a68c7(0xe5)])[_0x1a68c7(0xea)](()=>{const _0x29ce5c=_0x1a68c7;this[_0x29ce5c(0xee)]();});},'closeAllTags'(_0x23726d){const _0x3b7471=a74_0x449e;this[_0x3b7471(0xf9)][_0x3b7471(0xdb)][_0x3b7471(0xf2)]()[_0x3b7471(0xea)](({visitedViews:_0x5c3822})=>{const _0x23a023=_0x3b7471;if(this[_0x23a023(0x102)]['some'](_0x461d77=>_0x461d77[_0x23a023(0xfc)]===_0x23726d['path']))return;this[_0x23a023(0xf7)](_0x5c3822,_0x23726d);});},'toLastView'(_0x487221,_0x55e9f4){const _0x3c0420=a74_0x449e,_0x2d3034=_0x487221[_0x3c0420(0xe1)](-0x1)[0x0];_0x2d3034?this[_0x3c0420(0xdf)][_0x3c0420(0x100)](_0x2d3034[_0x3c0420(0x108)]):_0x55e9f4[_0x3c0420(0xfa)]==='Dashboard'?this[_0x3c0420(0xdf)][_0x3c0420(0xdc)]({'path':_0x55e9f4['fullPath']}):this[_0x3c0420(0xdf)][_0x3c0420(0x100)]('/');},'openMenu'(_0x1ce461,_0x50f42b){const _0xbee7f9=a74_0x449e,_0x55b19d=0x69,_0x2d4494=this[_0xbee7f9(0xd8)]['getBoundingClientRect']()[_0xbee7f9(0xe0)],_0x4946dd=this['$el'][_0xbee7f9(0xff)],_0x16415e=_0x4946dd-_0x55b19d,_0x3d6372=_0x50f42b[_0xbee7f9(0xe4)]-_0x2d4494+0xf;_0x3d6372>_0x16415e?this['left']=_0x16415e:this['left']=_0x3d6372,this[_0xbee7f9(0x106)]=_0x50f42b[_0xbee7f9(0xd5)],this['visible']=!![],this[_0xbee7f9(0xe5)]=_0x1ce461;},'closeMenu'(){this['visible']=![];},'handleScroll'(){this['closeMenu']();},'resolvePath'(_0x117a62,_0x220ad5){const _0x35ade5=a74_0x449e;if(_0x117a62[0x0]!=='/')_0x117a62='/'+_0x117a62;if(_0x117a62['length']>0x1&&_0x117a62[_0x35ade5(0xf3)]('/'))_0x117a62=_0x117a62[_0x35ade5(0xe1)](0x0,-0x1);if(_0x117a62==='/')_0x117a62='';if(_0x220ad5[0x0]!=='/')_0x220ad5='/'+_0x220ad5;return _0x117a62+_0x220ad5;}}};function a74_0x3f76(){const _0x50cad1=['fullPath','tag','$route','visitedViews','8491TGoxyI','addVisitedView','clientY','updateVisitedView','197208YzygdQ','$el','555786ZikZZL','children','tagsview','replace','resolvePath','$refs','$router','left','slice','click','isActive','clientX','selectedTag','initTags','$nextTick','2496ICQhAW','moveToTarget','then','filterAffixTags','6510860RbqsMQ','length','moveToCurrentTag','affix','addView','closeMenu','delAllViews','endsWith','3daEUEv','body','meta','toLastView','delView','$store','name','scrollPane','path','194890BAaHbJ','424422jJAjXM','offsetWidth','push','40YxProu','affixTags','addTags','4275288juyMpI','routes','top','forEach'];a74_0x3f76=function(){return _0x50cad1;};return a74_0x3f76();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a75_0x117994=a75_0xd761;(function(_0x3d413d,_0x424346){const _0x339351=a75_0xd761,_0x1f0528=_0x3d413d();while(!![]){try{const _0xe0ce6=-parseInt(_0x339351(0x1d9))/0x1*(-parseInt(_0x339351(0x1f2))/0x2)+parseInt(_0x339351(0x1e3))/0x3*(parseInt(_0x339351(0x1ec))/0x4)+-parseInt(_0x339351(0x1d5))/0x5+-parseInt(_0x339351(0x1de))/0x6+parseInt(_0x339351(0x1e8))/0x7+-parseInt(_0x339351(0x1e0))/0x8*(parseInt(_0x339351(0x1f1))/0x9)+parseInt(_0x339351(0x1e7))/0xa;if(_0xe0ce6===_0x424346)break;else _0x1f0528['push'](_0x1f0528['shift']());}catch(_0x5f2a8d){_0x1f0528['push'](_0x1f0528['shift']());}}}(a75_0x2745,0x1afbc));import a75_0x64907c from'../utils/plop-utils.js';import{getModel,makeFields}from'../utils/index.js';const {makePartial}=a75_0x64907c,viewOnlyFields=[a75_0x117994(0x1ea),a75_0x117994(0x1f3),a75_0x117994(0x1e4),a75_0x117994(0x1ed),a75_0x117994(0x1df)],makeFillAdminPartialsAction=_0x30c305=>{return async function(_0x251bfd){const _0x49d900=a75_0xd761,_0x1eb08c=await getModel(_0x30c305,_0x251bfd),_0x5d4839=_0x1eb08c[_0x49d900(0x1e2)];_0x251bfd[_0x49d900(0x1e6)]=_0x1eb08c['tableName'],Object[_0x49d900(0x1f0)](_0x5d4839)[_0x49d900(0x1ee)](_0x239dce=>{const _0x4bfdc4=_0x49d900;if(_0x5d4839[_0x239dce]['_autoGenerated']){if(_0x239dce[_0x4bfdc4(0x1d2)](_0x4bfdc4(0x1e5)))_0x5d4839[_0x239dce][_0x4bfdc4(0x1d6)]=_0x4bfdc4(0x1da);else{if(_0x239dce[_0x4bfdc4(0x1d2)](_0x4bfdc4(0x1f5)))_0x5d4839[_0x239dce]['label']=_0x4bfdc4(0x1dc);else _0x239dce[_0x4bfdc4(0x1d2)]('deleted')&&(_0x5d4839[_0x239dce][_0x4bfdc4(0x1d6)]=_0x4bfdc4(0x1db));}}}),fillIdFieldPartial(_0x30c305,_0x1eb08c),fillFieldsPartial(_0x30c305,_0x1eb08c),Object[_0x49d900(0x1f0)](_0x5d4839)[_0x49d900(0x1ee)](_0x535581=>{const {autoIncrement:_0x14588a,_autoGenerated:_0x14b204}=_0x5d4839[_0x535581];(_0x14588a||_0x14b204)&&delete _0x5d4839[_0x535581];}),viewOnlyFields[_0x49d900(0x1ee)](_0x411010=>delete _0x5d4839[_0x411010]);};},fillIdFieldPartial=(_0x2f74ad,_0x3ccd43)=>{const _0x644a34=a75_0x117994;_0x2f74ad[_0x644a34(0x1d3)]('idFieldPartial',_0x3ccd43[_0x644a34(0x1d8)]);},fillFieldsPartial=(_0x349488,_0x283abb)=>{const _0x3b3977=a75_0x117994,_0x3296be=makeFields(_0x283abb);_0x349488[_0x3b3977(0x1d3)](_0x3b3977(0x1e9),makeFieldsPartial(_0x3296be));},makeFieldsPartial=_0x321d66=>{const _0x3c8451=a75_0x117994,_0x361a5b=[_0x3c8451(0x1d4),_0x3c8451(0x1eb)];_0x321d66['map'](_0x113149=>{const _0x448c31=_0x3c8451,_0x413eab=_0x361a5b[_0x448c31(0x1e1)](_0x41e9f5=>_0x113149[_0x41e9f5]);_0x361a5b[_0x448c31(0x1ee)](_0x302cee=>delete _0x113149[_0x302cee]),_0x413eab[_0x448c31(0x1ee)]((_0x4814d0,_0x5c4640)=>{const _0x3df3ea=_0x448c31,_0x58ff42=_0x361a5b[_0x5c4640][0x0]+_0x361a5b[_0x5c4640]['match'](/[A-Z]/)[0x0]['toLowerCase']()+'_';if(_0x4814d0&&Object[_0x3df3ea(0x1f0)](_0x4814d0)['length'])for(let _0xbb675e in _0x4814d0){_0x113149[_0x58ff42+_0xbb675e]=_0x4814d0[_0xbb675e];}});});const _0x107ec0=makePartial(_0x321d66);let _0x5ab58e='';return _0x107ec0[_0x3c8451(0x1d7)]('\x0a')[_0x3c8451(0x1ee)](_0x3611df=>{const _0x25ee39=_0x3c8451,_0x113b53=_0x3611df['trim']();_0x25ee39(0x1f4)[_0x25ee39(0x1dd)](_0x113b53[0x0])?(_0x5ab58e+=_0x3611df,'{'[_0x25ee39(0x1dd)](_0x113b53[0x0])&&(_0x5ab58e+='\x20'),'}'['includes'](_0x113b53[0x0])&&(_0x5ab58e+='\x0a')):_0x5ab58e+=_0x113b53+'\x20';}),_0x5ab58e=_0x5ab58e[_0x3c8451(0x1ef)](0x0,-0x1),_0x5ab58e;};function a75_0x2745(){const _0x21ba7b=['删除时间','更新时间','includes','789906Docquu','deleted_at','488sJFwDn','map','tableAttributes','304497oVNAUz','created_at','created','tableName','846250ZgLnah','130053lsJjRH','fieldsPartial','creator_id','formAttrs','8WBNrim','updated_at','forEach','slice','keys','24786RAFSlv','32VlIUav','updater_id','[{}]','updated','startsWith','setPartial','tableAttrs','544805uqFFEW','label','split','primaryKeyField','13308WoiXXE','创建时间'];a75_0x2745=function(){return _0x21ba7b;};return a75_0x2745();}function a75_0xd761(_0x300dfb,_0x521417){const _0x27454f=a75_0x2745();return a75_0xd761=function(_0xd76134,_0x89efcb){_0xd76134=_0xd76134-0x1d2;let _0x1774f2=_0x27454f[_0xd76134];return _0x1774f2;},a75_0xd761(_0x300dfb,_0x521417);}export default makeFillAdminPartialsAction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x559ec2,_0xc74736){const _0xaabe01=a76_0x351e,_0x55f3b3=_0x559ec2();while(!![]){try{const _0x20d884=parseInt(_0xaabe01(0x148))/0x1+parseInt(_0xaabe01(0x15c))/0x2*(parseInt(_0xaabe01(0x15e))/0x3)+parseInt(_0xaabe01(0x15b))/0x4*(-parseInt(_0xaabe01(0x158))/0x5)+parseInt(_0xaabe01(0x155))/0x6+parseInt(_0xaabe01(0x154))/0x7*(parseInt(_0xaabe01(0x14d))/0x8)+-parseInt(_0xaabe01(0x150))/0x9*(-parseInt(_0xaabe01(0x159))/0xa)+-parseInt(_0xaabe01(0x14a))/0xb*(parseInt(_0xaabe01(0x14e))/0xc);if(_0x20d884===_0xc74736)break;else _0x55f3b3['push'](_0x55f3b3['shift']());}catch(_0x56f7de){_0x55f3b3['push'](_0x55f3b3['shift']());}}}(a76_0x49d7,0x68f0b));function a76_0x49d7(){const _0x30eed1=['admin_page','prompts','autoGenerateColumns','1999389CaBAgq','3462690GffEDq','database','[\x0a]','5YddfNM','21590BPFnfy','数据库名称','960708XedhUE','2zIoMbM','actions','146199uGeZoi','fieldsPartial','35577pcXpOv','创建新的后台管理页面','11NCzuBr','数据表名称','setPartial','8CxLgQZ','13221336pZnBSz','make-admin-page','3438zmKLDK'];a76_0x49d7=function(){return _0x30eed1;};return a76_0x49d7();}import a76_0x10c9ea from'../utils/plop-utils.js';import a76_0x42a97f from'./make-page-generator.js';import a76_0x7af93c from'../actions/make-fill-admin-partials-action.js';function a76_0x351e(_0x2f1352,_0x32dfff){const _0x49d714=a76_0x49d7();return a76_0x351e=function(_0x351efe,_0x100c05){_0x351efe=_0x351efe-0x148;let _0x800d1e=_0x49d714[_0x351efe];return _0x800d1e;},a76_0x351e(_0x2f1352,_0x32dfff);}const {makeInputPrompt,makeConfirmPrompt}=a76_0x10c9ea,makeGenerator=_0xb07634=>{const _0x40f3b5=a76_0x351e,_0x5d3f72=_0x40f3b5(0x151),_0x113375=a76_0x42a97f(_0xb07634,_0x5d3f72);return _0xb07634[_0x40f3b5(0x14c)](_0x40f3b5(0x15f),_0x40f3b5(0x157)),{'name':_0x40f3b5(0x14f),'description':_0x40f3b5(0x149),'prompts':[..._0x113375[_0x40f3b5(0x152)],makeConfirmPrompt(_0x40f3b5(0x153),'是否需要自动生成\x20table.columns\x20(表格的数据列)?'),{...makeInputPrompt(_0x40f3b5(0x156),_0x40f3b5(0x15a)),'when':_0x520a74=>_0x520a74['autoGenerateColumns']},{...makeInputPrompt('table',_0x40f3b5(0x14b)),'when':_0x1f5c33=>_0x1f5c33[_0x40f3b5(0x153)]}],'actions':[a76_0x7af93c(_0xb07634),..._0x113375[_0x40f3b5(0x15d)]]};};export default makeGenerator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a77_0x4910(_0x362789,_0x2e671c){const _0x134f31=a77_0x134f();return a77_0x4910=function(_0x4910ff,_0x1dd10f){_0x4910ff=_0x4910ff-0x1ad;let _0x3bdc95=_0x134f31[_0x4910ff];return _0x3bdc95;},a77_0x4910(_0x362789,_0x2e671c);}(function(_0x4ca4e5,_0x455035){const _0x4df84c=a77_0x4910,_0x1168a=_0x4ca4e5();while(!![]){try{const _0x4eba8e=parseInt(_0x4df84c(0x1bb))/0x1*(parseInt(_0x4df84c(0x1b7))/0x2)+-parseInt(_0x4df84c(0x1dc))/0x3+parseInt(_0x4df84c(0x1b9))/0x4+-parseInt(_0x4df84c(0x1c8))/0x5*(-parseInt(_0x4df84c(0x1d0))/0x6)+parseInt(_0x4df84c(0x1c6))/0x7*(parseInt(_0x4df84c(0x1b0))/0x8)+parseInt(_0x4df84c(0x1dd))/0x9+-parseInt(_0x4df84c(0x1d8))/0xa;if(_0x4eba8e===_0x455035)break;else _0x1168a['push'](_0x1168a['shift']());}catch(_0x1f62b9){_0x1168a['push'](_0x1168a['shift']());}}}(a77_0x134f,0x81cc1));import a77_0x5cc015 from'node:path';import a77_0x1a4f28 from'chalk';function a77_0x134f(){const _0x5186d2=['bgCyan','数据表\x20','10951110gpLzhG','pascalCase','\x20构建页面失败','split','681942hVNEVW','4193667LEOgAL','\x27,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20component:\x20Layout,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20meta:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20title:\x20\x27','length','red','listDir','make-admin-page','join','changes','$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$','Finished\x20','make-database-admin-pages','1061672vQKFlS','getHelper','database','backenderPath','black','数据库名称','^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^','1138484QkfkoN','push','1755304TsuNpz','trim','1DvpfHP','map','init-models.js','bgYellow','根据\x20backender\x20中已存在的数据库模型目录为其中所有模型创建后台管理页面','\x20/\x20','\x27,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name:\x20\x27','snakeCase','cyan','includes','trimEnd','7CKETHK','filter','10RBbSyV','runActions','toFixed','trimStart','#code#','index.js','log','.js','742002fcRGCR','目的文件夹路径','replace','writeSync','slice','dir'];a77_0x134f=function(){return _0x5186d2;};return a77_0x134f();}import a77_0xaa6277 from'clipboardy';import{fsUtils}from'@wp1001/node';import a77_0x4fe804 from'../utils/plop-utils.js';const {makeInputPrompt,getGenerator}=a77_0x4fe804,makeGenerator=_0x1ebaea=>{const _0x2e2f60=a77_0x4910,_0x5e9e41=getGenerator(_0x1ebaea,_0x2e2f60(0x1e2),{'force':![]}),_0x858876=_0x1ebaea['getHelper'](_0x2e2f60(0x1d9)),_0x350335=_0x1ebaea[_0x2e2f60(0x1b1)](_0x2e2f60(0x1c2)),_0x4a8afc={'name':_0x2e2f60(0x1af),'description':_0x2e2f60(0x1bf),'prompts':[makeInputPrompt(_0x2e2f60(0x1b2),_0x2e2f60(0x1b5)),makeInputPrompt(_0x2e2f60(0x1d5),_0x2e2f60(0x1d1))],'actions':[async({database:_0x23f346,dir:_0x1c9c5d})=>{const _0x79a85e=_0x2e2f60,_0x4b2907=a77_0x5cc015[_0x79a85e(0x1e3)](_0x1ebaea[_0x79a85e(0x1b3)],'/models/'+_0x23f346);let _0x117965=await fsUtils[_0x79a85e(0x1e1)](_0x4b2907);_0x117965=_0x117965[_0x79a85e(0x1c7)](_0x2bd2ba=>_0x2bd2ba[_0x79a85e(0x1c4)](_0x79a85e(0x1cf))&&!_0x2bd2ba[_0x79a85e(0x1c4)](_0x79a85e(0x1bd))&&_0x2bd2ba[_0x79a85e(0x1db)]('/')['pop']()!==_0x79a85e(0x1cd));const _0x37a92b=_0x117965['map'](_0x51acd8=>_0x51acd8[_0x79a85e(0x1d4)](0x0,-0x3)),_0x161ce2=[];for(let _0x42e490=0x0,_0x1d56fe=_0x37a92b[_0x79a85e(0x1df)];_0x42e490<_0x1d56fe;_0x42e490++){const _0x192771=_0x37a92b[_0x42e490],_0x53dd7a=await _0x5e9e41[_0x79a85e(0x1c9)]({'dir':_0x1c9c5d,'pagename':_0x192771,'database':_0x23f346,'table':_0x350335(_0x192771)});!_0x53dd7a['changes'][0x2]?console[_0x79a85e(0x1ce)](a77_0x1a4f28[_0x79a85e(0x1e0)](_0x79a85e(0x1d7)+_0x23f346+'.'+_0x192771+_0x79a85e(0x1da)),_0x53dd7a[_0x79a85e(0x1e4)]):_0x161ce2[_0x79a85e(0x1b8)](_0x53dd7a),console[_0x79a85e(0x1ce)](a77_0x1a4f28[_0x79a85e(0x1c3)](_0x79a85e(0x1ae)+(_0x42e490+0x1)+_0x79a85e(0x1c0)+_0x1d56fe+'\x20'+((_0x42e490+0x1)/_0x1d56fe*0x64)[_0x79a85e(0x1ca)](0x2)+'%'));}console[_0x79a85e(0x1ce)](a77_0x1a4f28[_0x79a85e(0x1d6)]('^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^')),console[_0x79a85e(0x1ce)](a77_0x1a4f28[_0x79a85e(0x1d6)](_0x79a85e(0x1b6)));const _0x5ee09a=_0x161ce2[_0x79a85e(0x1bc)](_0x1e172b=>_0x1e172b['changes'][0x2]['path']),_0x585056=_0x5ee09a[_0x79a85e(0x1bc)](_0x5f12cf=>{const _0x474277=_0x79a85e;return _0x5f12cf[_0x474277(0x1db)]('\x0a')[_0x474277(0x1bc)](_0x3a1786=>'\x20\x20'+_0x3a1786)['join']('\x0a')[_0x474277(0x1c5)]();})[_0x79a85e(0x1e3)]('')[_0x79a85e(0x1cb)](),_0x55e60d=('\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path:\x20\x27/'+_0x1c9c5d+_0x79a85e(0x1c1)+_0x858876(_0x1c9c5d)+'\x27,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20redirect:\x20\x27/'+_0x1c9c5d+'/'+_0x350335(_0x37a92b[0x0])+_0x79a85e(0x1de)+_0x858876(_0x1c9c5d)+'\x27,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20icon:\x20\x27menu\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20},\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20children:\x20[\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#code#\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20},\x0a\x20\x20\x20\x20\x20\x20\x20\x20')[_0x79a85e(0x1db)]('\x0a')[_0x79a85e(0x1bc)](_0x212653=>_0x212653[_0x79a85e(0x1d4)](0xa))[_0x79a85e(0x1e3)]('\x0a'),_0x2db27f=_0x1c9c5d[_0x79a85e(0x1db)]('/')[_0x79a85e(0x1df)],_0x360f41=_0x55e60d[_0x79a85e(0x1d2)](_0x79a85e(0x1cc),_0x585056)[_0x79a85e(0x1db)]('\x0a')[_0x79a85e(0x1bc)](_0x4f4001=>{return'\x20\x20'['repeat'](_0x2db27f)+_0x4f4001;})[_0x79a85e(0x1e3)]('\x0a')[_0x79a85e(0x1ba)]();a77_0xaa6277[_0x79a85e(0x1d3)](_0x360f41),console[_0x79a85e(0x1ce)](_0x360f41),console[_0x79a85e(0x1ce)](a77_0x1a4f28[_0x79a85e(0x1b4)][_0x79a85e(0x1be)]('上面有一个参考的\x20route\x20代码,\x20(已复制到剪贴板)')),console[_0x79a85e(0x1ce)](a77_0x1a4f28[_0x79a85e(0x1d6)](_0x79a85e(0x1ad))),console[_0x79a85e(0x1ce)](a77_0x1a4f28[_0x79a85e(0x1d6)](_0x79a85e(0x1ad)));}]};return _0x4a8afc;};export default makeGenerator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a78_0x2d96(_0x59f623,_0x43e5dd){const _0xad807a=a78_0xad80();return a78_0x2d96=function(_0x2d9697,_0x2d316b){_0x2d9697=_0x2d9697-0xbf;let _0x4ac5e5=_0xad807a[_0x2d9697];return _0x4ac5e5;},a78_0x2d96(_0x59f623,_0x43e5dd);}const a78_0x37d13a=a78_0x2d96;(function(_0x458dec,_0xccf953){const _0x3a8399=a78_0x2d96,_0x2a7735=_0x458dec();while(!![]){try{const _0x3e8277=-parseInt(_0x3a8399(0xd0))/0x1*(parseInt(_0x3a8399(0xdc))/0x2)+-parseInt(_0x3a8399(0xda))/0x3*(parseInt(_0x3a8399(0xdd))/0x4)+-parseInt(_0x3a8399(0xc1))/0x5+-parseInt(_0x3a8399(0xd8))/0x6*(-parseInt(_0x3a8399(0xd5))/0x7)+-parseInt(_0x3a8399(0xdb))/0x8+-parseInt(_0x3a8399(0xd7))/0x9*(-parseInt(_0x3a8399(0xd2))/0xa)+parseInt(_0x3a8399(0xc9))/0xb;if(_0x3e8277===_0xccf953)break;else _0x2a7735['push'](_0x2a7735['shift']());}catch(_0x4241b0){_0x2a7735['push'](_0x2a7735['shift']());}}}(a78_0xad80,0x3fc9c));import a78_0x13a73e from'node:path';import a78_0x50500a from'chalk';import a78_0x309fb9 from'clipboardy';import a78_0x365353 from'../utils/plop-utils.js';function a78_0xad80(){const _0x1d505e=['black','snakeCase','split','75ptnzhS','node_modules/@wp1001/ui/packages/plop/templates/','6530cNkkAs','pagename','.vue\x27),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20meta:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20title:\x20\x27','357DbldEh','\x27,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name:\x20\x27','1269lMQmAM','2742KXzoEE','map','138pOHsif','3040472nPBsDB','4760YvAJWP','25432yfKHBK','dirname','dir','addMany','1663505aNErMp','src/views/{{dir}}/{{snakeCase\x20pagename}}','目的页面名称','/*.*','getHelper','bgYellow','node_modules','\x27\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20},\x0a\x20\x20\x20\x20\x20\x20\x20\x20','14625864nemcza','目的文件夹路径','join','slice'];a78_0xad80=function(){return _0x1d505e;};return a78_0xad80();}const dirname=import.meta[a78_0x37d13a(0xde)]['split'](a78_0x37d13a(0xc7))[0x0],{makeInputPrompt}=a78_0x365353,makePageGenerator=(_0x274436,_0x52ddad)=>{const _0x1bb387=a78_0x37d13a,_0x563b2c=_0x274436[_0x1bb387(0xc5)]('properCase'),_0x5ce1bb=_0x274436[_0x1bb387(0xc5)](_0x1bb387(0xce));return{'prompts':[makeInputPrompt(_0x1bb387(0xbf),_0x1bb387(0xca)),makeInputPrompt(_0x1bb387(0xd3),_0x1bb387(0xc3))],'actions':[{'type':_0x1bb387(0xc0),'destination':a78_0x13a73e[_0x1bb387(0xcb)](dirname,_0x1bb387(0xc2)),'base':a78_0x13a73e[_0x1bb387(0xcb)](dirname,_0x1bb387(0xd1)+_0x52ddad),'templateFiles':a78_0x13a73e[_0x1bb387(0xcb)](dirname,'node_modules/@wp1001/ui/packages/plop/templates/'+_0x52ddad+_0x1bb387(0xc4))},function(_0x1a63cb){const _0x427706=_0x1bb387;let {dir:_0x607590,pagename:_0x4565f6}=_0x1a63cb;const _0x1362f3=_0x563b2c(_0x4565f6),_0x2e0fea=(_0x607590?_0x563b2c(_0x607590):'')+_0x1362f3;_0x4565f6=_0x5ce1bb(_0x4565f6);const _0x19dea7=('\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path:\x20\x27'+_0x4565f6+_0x427706(0xd6)+_0x2e0fea+'\x27,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20component:\x20()\x20=>\x20import(\x27@/views/'+(_0x607590?_0x607590+'/':'')+_0x4565f6+'/'+_0x4565f6+_0x427706(0xd4)+_0x1362f3+_0x427706(0xc8))[_0x427706(0xcf)]('\x0a')[_0x427706(0xd9)](_0x717a40=>_0x717a40[_0x427706(0xcc)](0x8))[_0x427706(0xcb)]('\x0a');return a78_0x309fb9['writeSync'](_0x19dea7),console['log'](a78_0x50500a[_0x427706(0xcd)][_0x427706(0xc6)]('这里有一个参考的\x20route\x20代码,\x20(已复制到剪贴板)')),_0x19dea7;}]};};export default makePageGenerator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1f70be,_0x335baa){const _0x164ca4=a79_0x35a7,_0x53c3b0=_0x1f70be();while(!![]){try{const _0xd22ec6=parseInt(_0x164ca4(0xf6))/0x1*(-parseInt(_0x164ca4(0xf9))/0x2)+-parseInt(_0x164ca4(0xf3))/0x3*(-parseInt(_0x164ca4(0xfd))/0x4)+-parseInt(_0x164ca4(0xfc))/0x5*(-parseInt(_0x164ca4(0xf8))/0x6)+parseInt(_0x164ca4(0xf5))/0x7+-parseInt(_0x164ca4(0xef))/0x8+-parseInt(_0x164ca4(0xf0))/0x9*(parseInt(_0x164ca4(0xfa))/0xa)+-parseInt(_0x164ca4(0xf1))/0xb*(parseInt(_0x164ca4(0xf2))/0xc);if(_0xd22ec6===_0x335baa)break;else _0x53c3b0['push'](_0x53c3b0['shift']());}catch(_0x21ac89){_0x53c3b0['push'](_0x53c3b0['shift']());}}}(a79_0x1fa8,0x95b79));import a79_0x363d98 from'./make-page-generator.js';function a79_0x1fa8(){const _0x559364=['178340ZmNaHG','simple_page','15pVhVzT','3572dGhDfc','329736qfImLy','477PvuFYx','11EuFLCd','1071384bpIidX','4101OHLvvB','make-simple-page','529263ZxJkVX','87587nlaxxd','prompts','960378ANKkCM','2nDjPrY'];a79_0x1fa8=function(){return _0x559364;};return a79_0x1fa8();}const makeGenerator=_0x46007b=>{const _0xcb54f2=a79_0x35a7,_0x1883b7=_0xcb54f2(0xfb),_0x1c6f3e=a79_0x363d98(_0x46007b,_0x1883b7);return{'name':_0xcb54f2(0xf4),'description':'创建新的页面','prompts':[..._0x1c6f3e[_0xcb54f2(0xf7)]],'actions':[..._0x1c6f3e['actions']]};};function a79_0x35a7(_0x5073af,_0x245a57){const _0x1fa86f=a79_0x1fa8();return a79_0x35a7=function(_0x35a703,_0x575b71){_0x35a703=_0x35a703-0xef;let _0x110071=_0x1fa86f[_0x35a703];return _0x110071;},a79_0x35a7(_0x5073af,_0x245a57);}export default makeGenerator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4c8bdd,_0x56e2d1){const _0x457f7b=a80_0x1056,_0x152ff1=_0x4c8bdd();while(!![]){try{const _0x160a7f=parseInt(_0x457f7b(0x85))/0x1+-parseInt(_0x457f7b(0x8d))/0x2+parseInt(_0x457f7b(0x82))/0x3*(parseInt(_0x457f7b(0x83))/0x4)+parseInt(_0x457f7b(0x7d))/0x5*(-parseInt(_0x457f7b(0x8b))/0x6)+parseInt(_0x457f7b(0x80))/0x7+-parseInt(_0x457f7b(0x88))/0x8+-parseInt(_0x457f7b(0x84))/0x9*(-parseInt(_0x457f7b(0x7f))/0xa);if(_0x160a7f===_0x56e2d1)break;else _0x152ff1['push'](_0x152ff1['shift']());}catch(_0x3bd206){_0x152ff1['push'](_0x152ff1['shift']());}}}(a80_0x3eff,0xf2042));import a80_0x95ca77 from'node:path';function a80_0x3eff(){const _0x554739=['setWelcomeMessage','200847rMmzde','52FQfNtW','54ZaNLkB','1643515VRzxny','../backender','setGenerator','4406368qahqlP','backenderPath','bgGreen','12090vJhTqF','keys','3952440NGzlot','forEach','4225ntSlWd','absPath','2443640DcCOLl','8686671wlkDIP'];a80_0x3eff=function(){return _0x554739;};return a80_0x3eff();}import a80_0xcedf64 from'chalk';import a80_0x2c5aa9 from'./utils/plop-utils.js';import a80_0x55e5ec from'./generators/make-admin-page.js';import a80_0x3a2d4a from'./generators/make-database-admin-pages.js';import a80_0x120322 from'./generators/make-simple-page.js';function a80_0x1056(_0x3167ad,_0x38f4d5){const _0x3effbe=a80_0x3eff();return a80_0x1056=function(_0x1056ff,_0x1bb4cd){_0x1056ff=_0x1056ff-0x7d;let _0x3051f4=_0x3effbe[_0x1056ff];return _0x3051f4;},a80_0x1056(_0x3167ad,_0x38f4d5);}const generators={'makeAdminPage':a80_0x55e5ec,'makeDatabaseAdminPages':a80_0x3a2d4a,'makeSimplePage':a80_0x120322};export default function (plop){const _0x2a4367=a80_0x1056,hello='欢迎使用\x20stardust-frontender\x20代码生成工具,请从以下生成器中选择一个\x20:\x20';plop[_0x2a4367(0x81)](a80_0xcedf64[_0x2a4367(0x8a)]['white'](hello)),plop[_0x2a4367(0x89)]=a80_0x2c5aa9[_0x2a4367(0x7e)](plop,_0x2a4367(0x86)),Object[_0x2a4367(0x8c)](generators)[_0x2a4367(0x8e)](name=>{const _0x372f40=_0x2a4367,generator=generators[name](plop);plop[_0x372f40(0x87)](generator['name'],generator);});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a81_0x354177=a81_0x1665;(function(_0x1dcf45,_0x229f80){const _0x46c283=a81_0x1665,_0x3ffd36=_0x1dcf45();while(!![]){try{const _0x466ae8=parseInt(_0x46c283(0x18a))/0x1+-parseInt(_0x46c283(0x168))/0x2+-parseInt(_0x46c283(0x194))/0x3*(-parseInt(_0x46c283(0x18c))/0x4)+-parseInt(_0x46c283(0x18e))/0x5*(parseInt(_0x46c283(0x191))/0x6)+parseInt(_0x46c283(0x171))/0x7*(-parseInt(_0x46c283(0x199))/0x8)+parseInt(_0x46c283(0x15f))/0x9*(parseInt(_0x46c283(0x17d))/0xa)+-parseInt(_0x46c283(0x15e))/0xb*(-parseInt(_0x46c283(0x195))/0xc);if(_0x466ae8===_0x229f80)break;else _0x3ffd36['push'](_0x3ffd36['shift']());}catch(_0x5ce7f7){_0x3ffd36['push'](_0x3ffd36['shift']());}}}(a81_0x3480,0x19b69));import a81_0x421ee7 from'node:path';import a81_0xc639fe from'chalk';import{fsUtils}from'@wp1001/node';function a81_0x3480(){const _0x363d7a=['creator_id','DATE','type','options','updater_id','deleted_at','config.js','sequelize','\x20not\x20found','visible','then','20243stCnQs','datasources','157188PLXfkd','map','10cPONET','$$\x20store.dictionaries.yesNo\x20$$','created_at','393246QiVZoi','comp','comment','15WvRkaG','148308PVfIDe','name','backenderPath','INTEGER','184eVsGpH','values','44ZOppiv','94977BbzZJz','label','database','includes','join','formAttrs','tableAttributes','TEXT','foreignKey','133906qUMcSy','key','exists','maxlength','STRING','assign','red','primaryKeyField','init-models.js','43281zEWlqS','x-select','.stardust/db.js','_length','tableName','target','prefixIcon','config','toLowerCase','canView','precision','FLOAT','170oKfjxS','BOOLEAN'];a81_0x3480=function(){return _0x363d7a;};return a81_0x3480();}function a81_0x1665(_0x3ea489,_0x90a579){const _0x3480c4=a81_0x3480();return a81_0x1665=function(_0x166538,_0x155bad){_0x166538=_0x166538-0x15d;let _0x1e1b63=_0x3480c4[_0x166538];return _0x1e1b63;},a81_0x1665(_0x3ea489,_0x90a579);}const importFile=async _0x3ee4d1=>{return new Promise(_0x26a457=>{const _0x1c89f5=a81_0x1665;import(_0x3ee4d1)[_0x1c89f5(0x189)](_0x26a457);});},viewOnlyFields=[a81_0x354177(0x17f),a81_0x354177(0x183),a81_0x354177(0x190),'updated_at',a81_0x354177(0x184)],operatorFields=['creator_id',a81_0x354177(0x183)],getModel=async(_0x40e105,_0x146f38)=>{const _0x549b93=a81_0x354177,_0x4fe971=a81_0x421ee7[_0x549b93(0x163)](_0x40e105[_0x549b93(0x197)],'models',_0x146f38[_0x549b93(0x161)],_0x549b93(0x170));if(!await fsUtils[_0x549b93(0x16a)](_0x4fe971)){const _0x29450f=a81_0xc639fe[_0x549b93(0x16e)](_0x4fe971+_0x549b93(0x187));throw _0x29450f;}const _0xf9453b=a81_0x421ee7['join'](_0x40e105[_0x549b93(0x197)],_0x549b93(0x185)),_0x4eee80=a81_0x421ee7[_0x549b93(0x163)](_0x40e105[_0x549b93(0x197)],_0x549b93(0x173)),_0x250404=(await importFile(_0xf9453b))['default'],_0xc46294=(await importFile(_0x4fe971))['default'],_0x780f74=_0x250404[_0x549b93(0x18b)]['find'](_0x1a5985=>_0x1a5985[_0x549b93(0x161)]===_0x146f38[_0x549b93(0x161)]),{connect:_0x3257c7}=await importFile(_0x4eee80),_0x11fe0b=_0x3257c7(_0x250404,_0x780f74),_0xfa464d=Object[_0x549b93(0x15d)](_0xc46294(_0x11fe0b,![])),_0x39f5b3=_0xfa464d['find'](_0x5a438e=>_0x5a438e[_0x549b93(0x175)][_0x549b93(0x179)]()===_0x146f38['table']);return _0x39f5b3;},getSequeliezeDataType=_0x32d64c=>{const _0x126ac9=a81_0x354177,_0x4d0830=_0x32d64c[_0x126ac9(0x181)]||_0x32d64c,_0x2e55d5={'name':_0x4d0830[_0x126ac9(0x169)]||_0x4d0830[_0x126ac9(0x196)]};return _0x4d0830[_0x126ac9(0x174)]&&(_0x2e55d5[_0x126ac9(0x174)]=_0x4d0830[_0x126ac9(0x174)]),_0x2e55d5;},makeFields=_0x246203=>{const _0x4adc6e=a81_0x354177,_0x509f99=Object['entries'](_0x246203[_0x4adc6e(0x165)])[_0x4adc6e(0x18d)](_0x56614c=>{const _0x11e728=_0x4adc6e,[_0x2306e2,_0x4b60d5]=_0x56614c,_0x21c237=getSequeliezeDataType(_0x4b60d5);let _0x30cf46=_0x4b60d5[_0x11e728(0x160)]||_0x4b60d5[_0x11e728(0x193)]||_0x2306e2;_0x30cf46=_0x30cf46['replaceAll']('\x27','\x22');const _0x568d65={'label':_0x30cf46,'prop':_0x2306e2,'tableAttrs':{...calcColumnWidth(_0x21c237)},'formAttrs':{}};fillFieldType(_0x568d65,_0x21c237),fillFieldForeign(_0x568d65,_0x246203,_0x2306e2);const {autoIncrement:_0x270678,_autoGenerated:_0x491306}=_0x4b60d5;return(_0x270678||_0x491306||viewOnlyFields[_0x11e728(0x162)](_0x2306e2))&&(_0x568d65[_0x11e728(0x188)]=![],_0x568d65[_0x11e728(0x17a)]=!![],delete _0x568d65[_0x11e728(0x192)],delete _0x568d65[_0x11e728(0x164)]),_0x568d65;});return _0x509f99;},calcColumnWidth=_0x58371f=>{const _0x3cd3bb=a81_0x354177;switch(_0x58371f[_0x3cd3bb(0x196)]){case _0x3cd3bb(0x16c):{return _0x58371f[_0x3cd3bb(0x174)]>0x14?{'minWidth':0x96}:{'width':0x19+_0x58371f['_length']*0xc};};case _0x3cd3bb(0x166):{return{'minWidth':0xc8};}case _0x3cd3bb(0x180):{return{'width':0xaf};};default:{return{'width':0x64};}}},fillFieldType=(_0x3efcc7,_0x3e6eba)=>{const _0x344da6=a81_0x354177,{formAttrs:_0x2117ba}=_0x3efcc7;switch(_0x3e6eba['name']){case _0x344da6(0x198):{_0x3efcc7[_0x344da6(0x181)]='number',_0x2117ba[_0x344da6(0x17b)]=0x1;break;}case _0x344da6(0x17c):{_0x3efcc7[_0x344da6(0x181)]='number';break;}case _0x344da6(0x17e):{_0x3efcc7[_0x344da6(0x192)]='x-select',_0x3efcc7[_0x344da6(0x182)]=_0x344da6(0x18f);break;}case'STRING':{_0x2117ba[_0x344da6(0x16b)]=_0x3e6eba[_0x344da6(0x174)];break;}case'TEXT':{_0x3efcc7[_0x344da6(0x181)]='textarea';break;}case _0x344da6(0x180):{_0x3efcc7[_0x344da6(0x192)]='ElDatePicker',_0x2117ba[_0x344da6(0x177)]='calendar';break;}}},fillFieldForeign=(_0x23108c,_0x1773fd,_0x2a9fd0)=>{const _0x17813e=a81_0x354177,_0x4819e9=Object[_0x17813e(0x15d)](_0x1773fd['associations']),_0xe14748=_0x4819e9[_0x17813e(0x18d)](_0x27149c=>_0x27149c[_0x17813e(0x167)]),_0x4cfc3d=_0x1773fd[_0x17813e(0x186)][_0x17813e(0x178)][_0x17813e(0x161)];if(_0xe14748['includes'](_0x2a9fd0)){const _0x5d4014=_0x4819e9['find'](_0x1028bf=>_0x1028bf[_0x17813e(0x167)]===_0x2a9fd0);delete _0x23108c[_0x17813e(0x164)][_0x17813e(0x17b)],delete _0x23108c[_0x17813e(0x181)],_0x23108c[_0x17813e(0x182)]=[],_0x23108c[_0x17813e(0x192)]=_0x17813e(0x172);const _0x4b0c0d=_0x5d4014[_0x17813e(0x176)][_0x17813e(0x16f)]||'';Object[_0x17813e(0x16d)](_0x23108c[_0x17813e(0x164)],{'modelName':_0x4cfc3d+'.'+_0x5d4014[_0x17813e(0x176)][_0x17813e(0x182)][_0x17813e(0x175)],'text':_0x4b0c0d,'value':_0x4b0c0d});}else viewOnlyFields['includes'](_0x2a9fd0)&&(delete _0x23108c['formAttrs']['precision'],delete _0x23108c['type'],operatorFields[_0x17813e(0x162)](_0x2a9fd0)&&(_0x23108c['visible']=![]));};export{importFile,getModel,getSequeliezeDataType,makeFields,calcColumnWidth};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1d68cf,_0x43a5e8){const _0x472565=a82_0x4622,_0x412510=_0x1d68cf();while(!![]){try{const _0x308f51=parseInt(_0x472565(0x1d1))/0x1+-parseInt(_0x472565(0x1dc))/0x2*(-parseInt(_0x472565(0x1d0))/0x3)+parseInt(_0x472565(0x1df))/0x4+-parseInt(_0x472565(0x1ca))/0x5*(parseInt(_0x472565(0x1c4))/0x6)+-parseInt(_0x472565(0x1cc))/0x7+-parseInt(_0x472565(0x1cb))/0x8+parseInt(_0x472565(0x1d9))/0x9*(parseInt(_0x472565(0x1c7))/0xa);if(_0x308f51===_0x43a5e8)break;else _0x412510['push'](_0x412510['shift']());}catch(_0x425468){_0x412510['push'](_0x412510['shift']());}}}(a82_0x1c2b,0x9ac3a));import a82_0x494bce from'node:path';import a82_0xcfcd7a from'node-plop/src/generator-runner.js';function a82_0x4622(_0x18450f,_0x5c0624){const _0x1c2bcb=a82_0x1c2b();return a82_0x4622=function(_0x462210,_0x4570ae){_0x462210=_0x462210-0x1c4;let _0x1f7989=_0x1c2bcb[_0x462210];return _0x1f7989;},a82_0x4622(_0x18450f,_0x5c0624);}const getGenerator=(_0x17fd00,_0x230ec3,_0x6289f4)=>{const _0x49a747=a82_0x4622,_0x5cb09f=a82_0xcfcd7a(_0x17fd00,_0x6289f4),_0x36939e=_0x17fd00[_0x49a747(0x1d4)](_0x230ec3);return Object[_0x49a747(0x1da)](_0x36939e,{'runActions':(_0x50ad16,_0x50f155)=>_0x5cb09f[_0x49a747(0x1c8)](_0x36939e,_0x50ad16,_0x50f155),'runPrompts':(_0x13a36f=[])=>_0x5cb09f[_0x49a747(0x1c6)](_0x36939e,_0x13a36f)}),_0x36939e;},absPath=(_0x56209a,_0x435cb2)=>{const _0x26d61d=a82_0x4622;return a82_0x494bce['resolve'](_0x56209a[_0x26d61d(0x1d2)](),_0x435cb2);},addValidator=(_0x265ba1,_0xd839c8)=>{const _0x4c72a8=a82_0x4622;_0x265ba1[_0x4c72a8(0x1de)]=_0x3eb1ef=>{const _0x268679=_0x4c72a8;return/.+/[_0x268679(0x1c9)](_0x3eb1ef)?!![]:_0x268679(0x1d3)+_0xd839c8;};},makeInputPrompt=(_0x20aa00,_0x36c6e6,_0x2c8c60=!![])=>{const _0x13037e=a82_0x4622,_0x121569={'type':_0x13037e(0x1cf),'name':_0x20aa00,'message':'请输入\x20'+_0x36c6e6+'('+(_0x2c8c60?'必填':'选填')+')'};return _0x2c8c60&&addValidator(_0x121569,_0x20aa00),_0x121569;},makeConfirmPrompt=(_0x4886a8,_0x4314e4,_0x4b0568)=>{const _0x3a5f9f=a82_0x4622,_0x24a594={'type':_0x3a5f9f(0x1c5),'name':_0x4886a8,'message':_0x4314e4,'default':_0x4b0568};return _0x24a594;},makeSelectPrompt=(_0x17bd9d,_0x872b7e,_0x27388b,_0x42f91b)=>{const _0x4423c9={'type':'list','name':_0x17bd9d,'choices':_0x872b7e,'message':_0x27388b,'default':_0x42f91b};return _0x4423c9;},makePartial=_0x8f68a4=>{const _0x53277d=a82_0x4622,_0x493260=JSON[_0x53277d(0x1d8)](_0x8f68a4,null,0x2)['split']('\x0a')[_0x53277d(0x1dd)](0x1,-0x1)['map']((_0x3cc10f,_0xe1a52a)=>{const _0x57b438=_0x53277d;_0x3cc10f=_0x3cc10f[_0x57b438(0x1dd)](0x2);let _0xf3e50=_0x3cc10f[_0x57b438(0x1cd)](':');return _0xf3e50[0x0]['indexOf']('-')>=0x0?_0xf3e50[0x0]=_0xf3e50[0x0][_0x57b438(0x1db)]('\x22','\x27'):_0xf3e50[0x0]=_0xf3e50[0x0][_0x57b438(0x1db)]('\x22',''),_0xf3e50=_0xf3e50[_0x57b438(0x1d5)]((_0x1c02a8,_0x466506)=>{const _0xcbe090=_0x57b438;return _0x466506===0x0?_0x1c02a8:_0x1c02a8[_0xcbe090(0x1db)]('\x22','\x27');}),_0xf3e50['join'](':');});let _0x5d9262=_0x493260[_0x53277d(0x1d6)]('\x0a')+'\x0a';return _0x5d9262=_0x5d9262[_0x53277d(0x1db)](_0x53277d(0x1ce),'')['replaceAll'](_0x53277d(0x1d7),''),_0x5d9262;},plopUtils={'getGenerator':getGenerator,'absPath':absPath,'addValidator':addValidator,'makeInputPrompt':makeInputPrompt,'makeConfirmPrompt':makeConfirmPrompt,'makeSelectPrompt':makeSelectPrompt,'makePartial':makePartial};export default plopUtils;function a82_0x1c2b(){const _0xca3e75=['validate','3695952WdpUAA','1860690RyiCos','confirm','runGeneratorPrompts','10HtoyYL','runGeneratorActions','test','5hYmFdw','3739136zJbJXn','8426495KKUjBc','split','\x27$$\x20','input','1136361xcPDcI','36568wCsmrJ','getPlopfilePath','请输入','getGenerator','map','join','\x20$$\x27','stringify','11482767FqcfWk','assign','replaceAll','2ZcJKSc','slice'];a82_0x1c2b=function(){return _0xca3e75;};return a82_0x1c2b();}
|
package/packages/utils/crypt.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4265c7,_0x2ad3b7){const _0x25f77a=a83_0x2056,_0x317cb2=_0x4265c7();while(!![]){try{const _0x552f62=parseInt(_0x25f77a(0x138))/0x1*(parseInt(_0x25f77a(0x137))/0x2)+parseInt(_0x25f77a(0x12e))/0x3+-parseInt(_0x25f77a(0x139))/0x4+parseInt(_0x25f77a(0x13a))/0x5+-parseInt(_0x25f77a(0x13b))/0x6+parseInt(_0x25f77a(0x130))/0x7*(-parseInt(_0x25f77a(0x131))/0x8)+-parseInt(_0x25f77a(0x133))/0x9;if(_0x552f62===_0x2ad3b7)break;else _0x317cb2['push'](_0x317cb2['shift']());}catch(_0x2c6f35){_0x317cb2['push'](_0x317cb2['shift']());}}}(a83_0x59ee,0x3c78b));function a83_0x2056(_0x1d980e,_0x17a3be){const _0x59ee5b=a83_0x59ee();return a83_0x2056=function(_0x2056d4,_0x48e81d){_0x2056d4=_0x2056d4-0x12e;let _0x5a92b4=_0x59ee5b[_0x2056d4];return _0x5a92b4;},a83_0x2056(_0x1d980e,_0x17a3be);}const simple={'encrypt'(_0xdb9159){const _0x33c7b9=a83_0x2056;return _0xdb9159=encodeURIComponent(_0xdb9159),_0xdb9159=btoa(_0xdb9159),_0xdb9159=_0xdb9159[_0x33c7b9(0x132)](''),_0xdb9159=_0xdb9159[_0x33c7b9(0x136)](_0x21e8c0=>String[_0x33c7b9(0x134)](_0x21e8c0['charCodeAt'](0x0)+0x6)),_0xdb9159[_0x33c7b9(0x12f)](),_0xdb9159=_0xdb9159['join'](''),_0xdb9159;},'decrypt'(_0xe8c86){const _0x224bda=a83_0x2056;return _0xe8c86=_0xe8c86[_0x224bda(0x132)](''),_0xe8c86[_0x224bda(0x12f)](),_0xe8c86=_0xe8c86['map'](_0x395088=>String[_0x224bda(0x134)](_0x395088['charCodeAt'](0x0)-0x6)),_0xe8c86=_0xe8c86[_0x224bda(0x135)](''),_0xe8c86=atob(_0xe8c86),_0xe8c86=decodeURIComponent(_0xe8c86),_0xe8c86;}};export{simple};export default{'simple':simple};function a83_0x59ee(){const _0x554d0e=['map','2dLhjux','482397doBjzp','1222552iWVJGN','1800665ageAgb','665202HLMCMy','1471041iyBgHa','reverse','49sASVUr','300112dJZRwt','split','3654747AxiblX','fromCharCode','join'];a83_0x59ee=function(){return _0x554d0e;};return a83_0x59ee();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x313dfc,_0x4f1f9e){const _0x38e285=a84_0x555e,_0x49f48d=_0x313dfc();while(!![]){try{const _0x36188a=parseInt(_0x38e285(0xbb))/0x1+-parseInt(_0x38e285(0xc7))/0x2+parseInt(_0x38e285(0xba))/0x3*(parseInt(_0x38e285(0xb6))/0x4)+-parseInt(_0x38e285(0xc2))/0x5*(-parseInt(_0x38e285(0xbc))/0x6)+parseInt(_0x38e285(0xb9))/0x7+-parseInt(_0x38e285(0xbf))/0x8+parseInt(_0x38e285(0xc1))/0x9*(-parseInt(_0x38e285(0xb7))/0xa);if(_0x36188a===_0x4f1f9e)break;else _0x49f48d['push'](_0x49f48d['shift']());}catch(_0x1aed9f){_0x49f48d['push'](_0x49f48d['shift']());}}}(a84_0x455a,0x279f4));const {highdict}=StardustJs,_checkOk=(_0x14e8c8,_0x41e6bf)=>{const _0x3b09a1=a84_0x555e;let _0x382d7e=_0x41e6bf;if(typeof _0x41e6bf===_0x3b09a1(0xc8))_0x382d7e=highdict['get'](_0x14e8c8,_0x41e6bf);else typeof _0x41e6bf==='function'&&(_0x382d7e=_0x41e6bf(_0x14e8c8));return!!_0x382d7e;};export const when=_0x306ab7=>{return(_0x2b00b2,{name:_0x441193,addInitializer:_0x10aaaf,..._0x2c5325})=>{_0x10aaaf(function(){const _0x53a9c9=this,_0x17c01e=_0x53a9c9[_0x441193];_0x53a9c9[_0x441193]=function(..._0x1553b9){const _0x9ff700=a84_0x555e;if(!_checkOk(_0x53a9c9,_0x306ab7))return;return _0x17c01e[_0x9ff700(0xc4)](_0x53a9c9,_0x1553b9);};});};};export const not=_0x332814=>{return(_0x343957,{name:_0x117f05,addInitializer:_0xb44501,..._0x3dda11})=>{_0xb44501(function(){const _0x69b666=this,_0x537d7b=_0x69b666[_0x117f05];_0x69b666[_0x117f05]=function(..._0x109524){const _0x168c69=a84_0x555e;if(_checkOk(_0x69b666,_0x332814))return;return _0x537d7b[_0x168c69(0xc4)](_0x69b666,_0x109524);};});};};function a84_0x555e(_0xa1a727,_0x4e3915){const _0x455a42=a84_0x455a();return a84_0x555e=function(_0x555e41,_0x4ecc0b){_0x555e41=_0x555e41-0xb2;let _0xc9141c=_0x455a42[_0x555e41];return _0xc9141c;},a84_0x555e(_0xa1a727,_0x4e3915);}function a84_0x455a(){const _0x496dc5=['dialog','set','359520ZtEhqe','loading','108HoWOfu','2775GoJHsS','table.loading','apply','table','model.loading','322234EbHNnb','string','invalid\x20params\x20for\x20@loading','model','then','get','96776TMSghN','453770izmJye','dialog.loading','1641262RDHGVt','27BfjpVa','236996DpZtyV','2418HKCgMd'];a84_0x455a=function(){return _0x496dc5;};return a84_0x455a();}export const loading=_0x3dc9e0=>{return(_0x49945b,{name:_0x3f748d,addInitializer:_0x145afd,..._0x2e3129})=>{_0x145afd(function(){const _0x27f055=a84_0x555e,_0x166fe9=this,_0x2847fb=_0x166fe9[_0x3f748d];_0x3dc9e0??=_0x166fe9[_0x27f055(0xc5)]&&_0x27f055(0xc3)||_0x166fe9[_0x27f055(0xb3)]&&_0x27f055(0xc6)||_0x166fe9[_0x27f055(0xbd)]&&_0x27f055(0xb8)||_0x27f055(0xc0),_0x166fe9[_0x3f748d]=function(..._0x47556a){const _0xb094a7=_0x27f055;if(!_0x3dc9e0)throw _0xb094a7(0xb2);if(highdict[_0xb094a7(0xb5)](_0x166fe9,_0x3dc9e0))return;highdict[_0xb094a7(0xbe)](_0x166fe9,_0x3dc9e0,!![]);const _0x3a5828=_0x2847fb['apply'](_0x166fe9,_0x47556a);if(_0x3a5828 instanceof Promise)return _0x3a5828[_0xb094a7(0xb4)]((..._0x3c9726)=>{const _0x217f61=_0xb094a7;return highdict[_0x217f61(0xbe)](_0x166fe9,_0x3dc9e0,![]),_0x3c9726;});return highdict[_0xb094a7(0xbe)](_0x166fe9,_0x3dc9e0,![]),_0x3a5828;};});};};export default{'when':when,'not':not,'loading':loading};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a85_0x22b5(){const _0x53e01b=['indexOf','nodeName','202160MLmoXi','2112817mHuoJf','VITE_PROD_DEBUGGERABLE_DOMAINS','F12','parse','ctrlKey','documentElement','KeyU','832324ZBZoMa','location','name','contextmenu','toString','shiftKey','clear','IMG','includes','code','PROD','href','KeyC','117BugJPv','2414095fknUlJ','675675HeEuuO','keydown','target','innerHTML','933980ZnklUV','addEventListener','pushState','INPUT','6uDqzuf','KeyI','preventDefault','PICTURE','CANVAS','KeyJ','YWJvdXQlM0FibGFuaw==','VITE_DEV_DEBUGGERABLE_DOMAINS','354194vsHpqQ'];a85_0x22b5=function(){return _0x53e01b;};return a85_0x22b5();}(function(_0x32a727,_0x424d9c){const _0x1d1fc2=a85_0x5e53,_0xc64a47=_0x32a727();while(!![]){try{const _0x3f8046=parseInt(_0x1d1fc2(0x1b0))/0x1+parseInt(_0x1d1fc2(0x1a4))/0x2+-parseInt(_0x1d1fc2(0x1a0))/0x3+parseInt(_0x1d1fc2(0x1bb))/0x4+parseInt(_0x1d1fc2(0x19f))/0x5*(-parseInt(_0x1d1fc2(0x1a8))/0x6)+parseInt(_0x1d1fc2(0x1b4))/0x7+parseInt(_0x1d1fc2(0x1b3))/0x8*(-parseInt(_0x1d1fc2(0x19e))/0x9);if(_0x3f8046===_0x424d9c)break;else _0xc64a47['push'](_0xc64a47['shift']());}catch(_0x10788a){_0xc64a47['push'](_0xc64a47['shift']());}}}(a85_0x22b5,0x47e8e));import a85_0x3d4169 from'../assets/devtools-detector.js';const {addListener,launch}=a85_0x3d4169,disallowDevtools=(_0x5df65b={},_0x158222)=>{const _0x2da2d1=a85_0x5e53,_0x5bc611=_0x502fff=>{const _0x113a58=a85_0x5e53;_0x502fff&&(document[_0x113a58(0x1b9)][_0x113a58(0x1a3)]=decodeURIComponent(atob('JUU0JUI4JUJBJUU0JUJBJTg2JUU3JUJEJTkxJUU3JUFCJTk5JUU3JTlBJTg0JUU1JUFFJTg5JUU1JTg1JUE4JUVGJUJDJThDJUU3JUE2JTgxJUU2JUFEJUEyJUU4JUIwJTgzJUU4JUFGJTk1')),window[_0x113a58(0x1bc)][_0x113a58(0x19c)]=decodeURIComponent(atob(_0x113a58(0x1ae))));};addListener(_0x5bc611),(!window['eval']['name']||!console[_0x2da2d1(0x1c1)][_0x2da2d1(0x1bd)]||!RegExp[_0x2da2d1(0x1bf)][_0x2da2d1(0x1bf)]()[_0x2da2d1(0x199)]('toString')||!history[_0x2da2d1(0x1a6)][_0x2da2d1(0x1bf)][_0x2da2d1(0x1bf)]()[_0x2da2d1(0x199)](_0x2da2d1(0x1bf)))&&_0x5bc611(!![]),!(_0x158222||JSON[_0x2da2d1(0x1b7)](_0x5df65b[_0x2da2d1(0x19b)]?_0x5df65b[_0x2da2d1(0x1b5)]:_0x5df65b[_0x2da2d1(0x1af)]))[_0x2da2d1(0x199)](window['location']['hostname'])&&(launch(),window[_0x2da2d1(0x1a5)](_0x2da2d1(0x1be),_0x4dbe95=>{const _0x5a3949=_0x2da2d1;!(_0x4dbe95[_0x5a3949(0x1a2)]instanceof SVGElement)&&![_0x5a3949(0x1c2),_0x5a3949(0x1ac),'AUDIO','VIDEO',_0x5a3949(0x1ab),_0x5a3949(0x1a7),'TEXTAREA'][_0x5a3949(0x199)](_0x4dbe95[_0x5a3949(0x1a2)][_0x5a3949(0x1b2)])&&_0x4dbe95[_0x5a3949(0x1aa)]();},!![]),window[_0x2da2d1(0x1a5)](_0x2da2d1(0x1a1),_0x14b9bc=>{const _0x2dd255=_0x2da2d1;(_0x14b9bc['code']===_0x2dd255(0x1b6)||(_0x14b9bc['metaKey']||_0x14b9bc[_0x2dd255(0x1b8)])&&(_0x14b9bc['altKey']||_0x14b9bc[_0x2dd255(0x1c0)])&&[_0x2dd255(0x1ba),_0x2dd255(0x1a9),_0x2dd255(0x1ad),_0x2dd255(0x19d)][_0x2dd255(0x1b1)](_0x14b9bc[_0x2dd255(0x19a)])>=0x0)&&_0x14b9bc[_0x2dd255(0x1aa)]();},!![]));};function a85_0x5e53(_0x48a032,_0x5061a6){const _0x22b54d=a85_0x22b5();return a85_0x5e53=function(_0x5e5369,_0x216595){_0x5e5369=_0x5e5369-0x199;let _0x558a85=_0x22b54d[_0x5e5369];return _0x558a85;},a85_0x5e53(_0x48a032,_0x5061a6);}export default disallowDevtools;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86_0x1664c0=a86_0x4ca8;function a86_0x4ca8(_0x278538,_0x4dabe3){const _0x2293e1=a86_0x2293();return a86_0x4ca8=function(_0x4ca88f,_0x3fd82a){_0x4ca88f=_0x4ca88f-0x11c;let _0x40247e=_0x2293e1[_0x4ca88f];return _0x40247e;},a86_0x4ca8(_0x278538,_0x4dabe3);}(function(_0x74ac4e,_0x5df0b3){const _0x3ee2ea=a86_0x4ca8,_0x22efca=_0x74ac4e();while(!![]){try{const _0x1907b3=parseInt(_0x3ee2ea(0x12d))/0x1+parseInt(_0x3ee2ea(0x134))/0x2+-parseInt(_0x3ee2ea(0x137))/0x3*(-parseInt(_0x3ee2ea(0x135))/0x4)+-parseInt(_0x3ee2ea(0x130))/0x5*(parseInt(_0x3ee2ea(0x12e))/0x6)+-parseInt(_0x3ee2ea(0x131))/0x7+-parseInt(_0x3ee2ea(0x13f))/0x8*(parseInt(_0x3ee2ea(0x13e))/0x9)+parseInt(_0x3ee2ea(0x121))/0xa;if(_0x1907b3===_0x5df0b3)break;else _0x22efca['push'](_0x22efca['shift']());}catch(_0x16d8ff){_0x22efca['push'](_0x22efca['shift']());}}}(a86_0x2293,0x29d9b));export const pop=_0x4d8209=>{const _0x4cdf76=a86_0x4ca8,{width:_0x2d5504,height:_0x109923}=_0x4d8209[_0x4cdf76(0x124)]();_0x4d8209['width']=_0x2d5504,_0x4d8209[_0x4cdf76(0x11d)]=_0x109923;const _0x1fa99b=_0x4d8209[_0x4cdf76(0x133)]('2d');class _0x3c086d{constructor(_0x64a801,_0x41b3fe,_0x19c592,_0x3c6591,_0x4cf499,_0x2432b5,_0x54257d){const _0x40dd20=_0x4cdf76;this['x']=_0x64a801,this['y']=_0x41b3fe,this['radius']=_0x19c592,this['color']=_0x3c6591,this['vx']=_0x4cf499,this['vy']=_0x2432b5,this[_0x40dd20(0x140)]=_0x54257d;}[_0x4cdf76(0x142)](){const _0x5aa894=_0x4cdf76;this['x']+=this['vx'],this['y']+=this['vy'],this[_0x5aa894(0x140)]['beginPath'](),this[_0x5aa894(0x140)][_0x5aa894(0x144)]=this['color'],this['ctx'][_0x5aa894(0x13b)](this['x'],this['y'],this[_0x5aa894(0x132)],0x0,Math['PI']*0x2),this[_0x5aa894(0x140)]['fill'](),this['detectWall']();}['detectWall'](){const _0x586c18=_0x4cdf76;if(this['x']<this[_0x586c18(0x132)])this['x']=this[_0x586c18(0x132)],this['vx']=-this['vx'];else this['x']+this[_0x586c18(0x132)]>_0x2d5504&&(this['x']=_0x2d5504-this[_0x586c18(0x132)],this['vx']=-this['vx']);if(this['y']<this[_0x586c18(0x132)])this['y']=this[_0x586c18(0x132)],this['vy']=-this['vy'];else this['y']+this['radius']>_0x109923&&(this['y']=_0x109923-this['radius'],this['vy']=-this['vy']);}}const _0x574aa0=()=>_0x1fa99b[_0x4cdf76(0x136)](0x0,0x0,_0x2d5504,_0x109923),_0x24cbb8=_0x13db5c=>Math['floor'](Math['random']()*_0x13db5c);let _0x2259c2=0x0,_0x570916=0.01,_0xd276e1=0x0;const _0x1c8b85=()=>{const _0x13c38d=_0x4cdf76,_0x3753d6=_0x1fa99b['createLinearGradient'](0x0,0x0,_0x2d5504*1.5,_0x109923*1.5);!_0xd276e1?(_0x2259c2+=_0x570916,_0x2259c2<=0x0&&(_0x2259c2=0x0,_0x570916=-_0x570916,_0xd276e1=_0x3b2b7b*0x1e),_0x2259c2>=0x1&&(_0x2259c2=0x1,_0x570916=-_0x570916,_0xd276e1=_0x3b2b7b*0x1e)):_0xd276e1--,_0x3753d6['addColorStop'](0x0,'rgba(250,\x20220,\x2020,\x200.5)'),_0x3753d6[_0x13c38d(0x145)](_0x2259c2,'rgba(20,\x2020,\x2020,\x200.5)'),_0x1fa99b[_0x13c38d(0x144)]=_0x3753d6,_0x1fa99b[_0x13c38d(0x12a)](0x0,0x0,_0x2d5504,_0x109923);},_0x1244cd=Math[_0x4cdf76(0x11f)](_0x2d5504/0x64),_0x50edc8=Math[_0x4cdf76(0x11f)](_0x109923/0x64),_0x3b2b7b=0x14,_0x11826c=Math[_0x4cdf76(0x138)](0x3e8/_0x3b2b7b),_0x4bb8f6=Array[_0x4cdf76(0x12c)]({'length':0x34})[_0x4cdf76(0x13c)](()=>{const _0x856676=_0x4cdf76,_0x5024aa=Math['floor'](_0x24cbb8(_0x1244cd+_0x50edc8)*1.5+_0x24cbb8(0x5));let _0xeb9da2=_0x24cbb8(_0x2d5504),_0x27910d=_0x24cbb8(_0x109923);_0xeb9da2=Math[_0x856676(0x139)](Math[_0x856676(0x12f)](_0x5024aa,_0xeb9da2),_0x2d5504-_0x5024aa),_0x27910d=Math[_0x856676(0x139)](Math[_0x856676(0x12f)](_0x5024aa,_0x27910d),_0x109923-_0x5024aa);let _0x2dfc70=_0x24cbb8(0x2)?(_0x24cbb8(0x2)+0x2)*_0x1244cd:(_0x24cbb8(-0x1)-0x2)*_0x1244cd,_0x204d5f=_0x24cbb8(0x2)?(_0x24cbb8(0x2)+0x2)*_0x50edc8:(_0x24cbb8(-0x1)-0x2)*_0x50edc8;return _0x2dfc70=Math['floor'](_0x2dfc70/_0x3b2b7b),_0x204d5f=Math[_0x856676(0x11f)](_0x204d5f/_0x3b2b7b),new _0x3c086d(_0xeb9da2,_0x27910d,_0x5024aa,'rgba('+_0x24cbb8(0x100)+',\x20'+_0x24cbb8(0x100)+',\x20'+_0x24cbb8(0x100)+',\x20'+(_0x24cbb8(0x5)+0x5)/0xa+')',_0x2dfc70,_0x204d5f,_0x1fa99b);});let _0x5c691c,_0x299f4d;_0x4d8209[_0x4cdf76(0x122)](_0x4cdf76(0x146),_0x2a3b5e=>{const _0x27d26d=_0x4cdf76;_0x5c691c=_0x2a3b5e['pageX'],_0x299f4d=_0x2a3b5e[_0x27d26d(0x128)];}),_0x4d8209['addEventListener'](_0x4cdf76(0x141),_0x635e6a=>{const _0x269e03=_0x4cdf76;if(_0x5c691c===undefined){_0x5c691c=_0x635e6a['pageX'],_0x299f4d=_0x635e6a[_0x269e03(0x128)];return;}const _0x262951=_0x635e6a['pageX']-_0x5c691c,_0x117e63=_0x635e6a['pageY']-_0x299f4d;_0x4bb8f6[_0x269e03(0x13a)](_0x3ec9ab=>{_0x3ec9ab['x']+=_0x262951/_0x3b2b7b,_0x3ec9ab['y']+=_0x117e63/_0x3b2b7b;}),_0x5c691c=_0x635e6a[_0x269e03(0x125)],_0x299f4d=_0x635e6a['pageY'];});let _0x4ae784=Date[_0x4cdf76(0x11e)](),_0x30f2d4=null;const _0x19d6f9=()=>{const _0x137459=_0x4cdf76;Date['now']()-_0x4ae784>=_0x11826c&&(_0x574aa0(),_0x1c8b85(),_0x4bb8f6[_0x137459(0x13a)](_0x10bcb5=>_0x10bcb5[_0x137459(0x142)]()),_0x4ae784=Date[_0x137459(0x11e)]()),_0x30f2d4=requestAnimationFrame(_0x19d6f9);};return _0x30f2d4=requestAnimationFrame(_0x19d6f9),()=>cancelAnimationFrame(_0x30f2d4);};export const createWatermark=({text:_0x2fe76e,gap:_0x144265,fontSize:_0x1ebb8e,color:_0x2618f8,width:width=window[a86_0x1664c0(0x13d)],height:height=window['innerHeight'],drawMode:drawMode=a86_0x1664c0(0x123)})=>{const _0x5c281f=a86_0x1664c0,_0x5749bd=document[_0x5c281f(0x11c)](_0x5c281f(0x12b));_0x5749bd[_0x5c281f(0x127)]=width,_0x5749bd[_0x5c281f(0x11d)]=height;const _0x2adf1e=_0x5749bd[_0x5c281f(0x133)]('2d');_0x2adf1e[_0x5c281f(0x126)]=_0x1ebb8e+_0x5c281f(0x129),_0x2adf1e[drawMode+'Style']=_0x2618f8;const _0xcc7eb3=_0x2adf1e[_0x5c281f(0x120)](_0x2fe76e)[_0x5c281f(0x127)],_0x347019=_0xcc7eb3+_0x144265,_0x3d55ab=_0x1ebb8e+_0x144265;for(let _0x27261f=_0x144265/0x2;_0x27261f<height;_0x27261f+=_0x3d55ab){for(let _0x5ecbaa=_0x144265/0x2;_0x5ecbaa<width;_0x5ecbaa+=_0x347019){_0x2adf1e[drawMode+_0x5c281f(0x143)](_0x2fe76e,_0x5ecbaa,_0x27261f);}}return _0x5749bd;};function a86_0x2293(){const _0x577800=['arc','map','innerWidth','672354iIMUaT','32fnSbeh','ctx','mousemove','update','Text','fillStyle','addColorStop','mouseover','createElement','height','now','floor','measureText','6357840aPaTYP','addEventListener','fill','getBoundingClientRect','pageX','font','width','pageY','px\x20Arial','fillRect','canvas','from','106166EQjatO','408bEKbez','max','21510wdnxZz','1643635uHHhDw','radius','getContext','68428PddgYt','8scpwJy','clearRect','332130GCsImF','round','min','forEach'];a86_0x2293=function(){return _0x577800;};return a86_0x2293();}export default{'pop':pop,'createWatermark':createWatermark};
|
package/packages/utils/funcs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x545d2e,_0x5d5b74){const _0x13aa1a=a87_0x101b,_0x4f95ff=_0x545d2e();while(!![]){try{const _0x37c15a=-parseInt(_0x13aa1a(0xa9))/0x1+parseInt(_0x13aa1a(0xa8))/0x2*(parseInt(_0x13aa1a(0xa6))/0x3)+parseInt(_0x13aa1a(0x8f))/0x4*(-parseInt(_0x13aa1a(0x83))/0x5)+parseInt(_0x13aa1a(0xab))/0x6+-parseInt(_0x13aa1a(0x82))/0x7*(parseInt(_0x13aa1a(0x80))/0x8)+-parseInt(_0x13aa1a(0xa5))/0x9*(parseInt(_0x13aa1a(0x7b))/0xa)+-parseInt(_0x13aa1a(0x96))/0xb*(-parseInt(_0x13aa1a(0x88))/0xc);if(_0x37c15a===_0x5d5b74)break;else _0x4f95ff['push'](_0x4f95ff['shift']());}catch(_0x278aaa){_0x4f95ff['push'](_0x4f95ff['shift']());}}}(a87_0xc51d,0xba5e3));import{toRaw,markRaw}from'vue';function a87_0x101b(_0x2a4085,_0x34178e){const _0xc51da4=a87_0xc51d();return a87_0x101b=function(_0x101b12,_0x4f1f79){_0x101b12=_0x101b12-0x71;let _0xd5a7fc=_0xc51da4[_0x101b12];return _0xd5a7fc;},a87_0x101b(_0x2a4085,_0x34178e);}export const validateForm=async _0x4c6724=>{const _0x157219=a87_0x101b,_0x152b14=await _0x4c6724[_0x157219(0x90)]?.[_0x157219(0x91)]()[_0x157219(0x72)](()=>!![])[_0x157219(0x71)](()=>![]),_0x10c521=await Promise['all'](_0x4c6724['formItems']?.[_0x157219(0x9a)](_0x608d33=>{const _0x2d3503=_0x157219;return _0x608d33['comp']?.[_0x2d3503(0x92)](_0x2d3503(0x94))||_0x608d33['comp']?.[_0x2d3503(0x92)](_0x2d3503(0x85));})['map'](_0x2d002d=>validateForm(_0x2d002d[_0x157219(0x8e)])));return _0x152b14&&_0x10c521[_0x157219(0x9c)](_0x472a4d=>_0x472a4d);};export const formatPrecision=(_0x5aa9a7,_0x50485e)=>{const _0x57ec92=a87_0x101b;if(typeof _0x5aa9a7!==_0x57ec92(0x8a)){const _0x422dd2=parseFloat(_0x5aa9a7)||null;if(typeof _0x422dd2!==_0x57ec92(0x8a))return _0x5aa9a7;_0x5aa9a7=_0x422dd2;}return _0x5aa9a7[_0x57ec92(0x78)](_0x50485e)*0x1;};export const formatOptions=(_0x469136,_0x3ecfb5)=>{const _0x55e14b=a87_0x101b,_0x560982=_0x469136[_0x55e14b(0xae)]?_0x469136[_0x55e14b(0x87)]:toRaw(_0x469136),{text:text='text',value:value='value'}=_0x3ecfb5,_0x30212f=_0x560982['map'](_0x4da4ba=>{const _0x4ffe14=_0x55e14b;return typeof _0x4da4ba===_0x4ffe14(0x79)?{'text':_0x4da4ba[text],'value':_0x4da4ba[value],'disabled':_0x4da4ba[_0x4ffe14(0x77)],'raw':markRaw(_0x4da4ba)}:{'text':_0x4da4ba,'value':_0x4da4ba};});if(!_0x3ecfb5[_0x55e14b(0x9b)])return _0x30212f;const _0x2ef9d7=typeof _0x3ecfb5[_0x55e14b(0x9b)]===_0x55e14b(0x97)?_0x3ecfb5['sort']:_0x3ecfb5[_0x55e14b(0x8c)]||_0x55e14b(0x8c);return _0x30212f[_0x55e14b(0x9b)]((_0x549fb0,_0x3fea29)=>{return _0x549fb0[_0x2ef9d7]['localeCompare'](_0x3fea29[_0x2ef9d7]);});};export const injectVanFieldProvide=_0x552e44=>{const _0x320150=a87_0x101b,_0x4ec6b5=_0x552e44['_'][_0x320150(0x95)],_0x4c04b2=Object['getOwnPropertySymbols'](_0x4ec6b5);if(!_0x4c04b2[_0x320150(0xac)])return;_0x552e44[_0x320150(0x9f)]=_0x4ec6b5[_0x4c04b2[0x0]];if(!_0x552e44[_0x320150(0x9f)]?.[_0x320150(0x7e)])return _0x552e44[_0x320150(0x9f)]=null;_0x552e44[_0x320150(0x9f)][_0x320150(0x7e)]['value']=()=>_0x552e44[_0x320150(0xaf)];};export const getUrlType=_0x1fdbc7=>{const _0x45b395=a87_0x101b,_0x5af184=_0x1fdbc7?.['split']('.')[_0x45b395(0x99)]()[_0x45b395(0x74)]();if([_0x45b395(0x7c),_0x45b395(0xa7),_0x45b395(0xb2),_0x45b395(0x86),_0x45b395(0x75)]['includes'](_0x5af184))return _0x45b395(0x7f);else{if([_0x45b395(0x81),_0x45b395(0xa0),'ogg',_0x45b395(0x84),_0x45b395(0x73),_0x45b395(0x98)][_0x45b395(0x89)](_0x5af184))return'video';else{if(_0x5af184==='pdf')return _0x45b395(0xa1);else{if(_0x5af184===_0x45b395(0x76)||_0x5af184===_0x45b395(0xb0))return _0x45b395(0xb0);else{if(_0x5af184===_0x45b395(0x8b)||_0x5af184===_0x45b395(0x7a))return _0x45b395(0x7a);else{if(_0x5af184===_0x45b395(0xaa)||_0x5af184===_0x45b395(0x9d))return _0x45b395(0x9d);else{if([_0x45b395(0x7d),_0x45b395(0xb1),'7z',_0x45b395(0xa3),_0x45b395(0x8d)][_0x45b395(0x89)](_0x5af184))return _0x45b395(0x7d);}}}}}}return _0x45b395(0x9e);};function a87_0xc51d(){const _0x8352f6=['toLowerCase','webp','doc','disabled','toFixed','object','xlsx','2546530HOwpjU','png','zip','customValue','image','9710640aWeBRS','mp4','7pNJvXq','4605qxIQsY','3gpp','x-form','gif','value','12IUccge','includes','number','xls','text','gzip','form','732IMaPZK','formRef','validate','endsWith','file-icons:microsoft-excel','XForm','provides','20939963tuMVKp','string','mov','pop','filter','sort','every','pptx','others','provide','webm','pdf','bi:file-pdf-fill','tar','file-icons:microsoft-powerpoint','18ZEnIQF','2398857YYFJrK','jpg','2kMzNYw','434943CCoJkj','ppt','2320398kazfey','length','formkit:zip','__v_isRef','modelValue','docx','rar','jpeg','catch','then','avi'];a87_0xc51d=function(){return _0x8352f6;};return a87_0xc51d();}export const getFiletypeIcon=_0x1a14e8=>{const _0x395e3c=a87_0x101b;if(_0x1a14e8==='pdf')return'iwwa:file-pdf';if(_0x1a14e8===_0x395e3c(0xb0))return'file-icons:microsoft-word';if(_0x1a14e8==='xlsx')return _0x395e3c(0x93);if(_0x1a14e8===_0x395e3c(0x9d))return _0x395e3c(0xa4);if(_0x1a14e8===_0x395e3c(0x7d))return _0x395e3c(0xad);return _0x395e3c(0xa2);};export default{'validateForm':validateForm,'formatPrecision':formatPrecision,'formatOptions':formatOptions,'injectVanFieldProvide':injectVanFieldProvide,'getUrlType':getUrlType,'getFiletypeIcon':getFiletypeIcon};
|
package/packages/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4e057f,_0x4943e9){var _0x64105c=a88_0x3eda,_0x899eeb=_0x4e057f();while(!![]){try{var _0x27f4c0=-parseInt(_0x64105c(0x7c))/0x1*(parseInt(_0x64105c(0x7d))/0x2)+parseInt(_0x64105c(0x7e))/0x3+-parseInt(_0x64105c(0x81))/0x4+-parseInt(_0x64105c(0x7a))/0x5+-parseInt(_0x64105c(0x82))/0x6*(-parseInt(_0x64105c(0x7b))/0x7)+parseInt(_0x64105c(0x83))/0x8*(parseInt(_0x64105c(0x80))/0x9)+parseInt(_0x64105c(0x7f))/0xa;if(_0x27f4c0===_0x4943e9)break;else _0x899eeb['push'](_0x899eeb['shift']());}catch(_0xaf1238){_0x899eeb['push'](_0x899eeb['shift']());}}}(a88_0x4799,0xdffbe));import a88_0x52642c from'./crypt.js';import a88_0x53ccd3 from'./decorators.js';function a88_0x4799(){var _0x21123a=['300jvrOty','1948173qGmMhx','13307000YCsQHx','18xKPrcM','5017384IeEpQw','6wZXMxr','4088464PxMikU','4356320hZEnyX','7246337PjPNgj','6629wuuZZK'];a88_0x4799=function(){return _0x21123a;};return a88_0x4799();}function a88_0x3eda(_0x253aec,_0x365a7a){var _0x479965=a88_0x4799();return a88_0x3eda=function(_0x3eda04,_0x5a98a1){_0x3eda04=_0x3eda04-0x7a;var _0x3bd415=_0x479965[_0x3eda04];return _0x3bd415;},a88_0x3eda(_0x253aec,_0x365a7a);}import a88_0x2752ef from'./effects.js';import{validateForm,formatPrecision,formatOptions,getUrlType,getFiletypeIcon}from'./funcs.js';import{Message,Notify,Confirm,Prompt}from'./message.js';import a88_0x338548 from'./middlewares.js';import{baseForm,baseTable,baseDialog,baseModel}from'./model.js';import{initFields,initModel,initTable,initDialog,initForm,initFormRules,initDefaultForm,isWhenMatched,triggers}from'./modelUtils.js';export{a88_0x52642c as crypt,a88_0x2752ef as effects,validateForm,formatPrecision,formatOptions,getUrlType,getFiletypeIcon,Message,Notify,Confirm,Prompt,baseForm,baseTable,baseDialog,baseModel,initFields,initModel,initTable,initDialog,initForm,initFormRules,initDefaultForm,isWhenMatched,triggers};export default{'crypt':a88_0x52642c,'decorators':a88_0x53ccd3,'effects':a88_0x2752ef,'validateForm':validateForm,'formatPrecision':formatPrecision,'formatOptions':formatOptions,'getUrlType':getUrlType,'getFiletypeIcon':getFiletypeIcon,'Message':Message,'Notify':Notify,'Confirm':Confirm,'Prompt':Prompt,'middlewares':a88_0x338548,'baseForm':baseForm,'baseTable':baseTable,'baseDialog':baseDialog,'baseModel':baseModel,'initFields':initFields,'initModel':initModel,'initTable':initTable,'initDialog':initDialog,'initForm':initForm,'initFormRules':initFormRules,'initDefaultForm':initDefaultForm,'isWhenMatched':isWhenMatched,'triggers':triggers};
|