zmp-cli 3.15.6-beta.1 → 3.15.7
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/build/index.js +1 -1
- package/config/index.js +1 -1
- package/create/index.js +1 -1
- package/create/init-zmp-ui.js +1 -1
- package/create/utils/colors.js +1 -1
- package/create/utils/generate-app-config.js +1 -1
- package/create/utils/generate-gitignore.js +1 -1
- package/create/utils/generate-npm-scripts.js +1 -1
- package/create/utils/generate-package-json.js +1 -1
- package/create/utils/generate-readme.js +1 -1
- package/create/utils/get-options.js +1 -1
- package/create/utils/indent.js +1 -1
- package/create/utils/npm-scripts.js +1 -1
- package/create/utils/string.js +1 -1
- package/create/utils/styles-extension.js +1 -1
- package/create/utils/template-if.js +1 -1
- package/deploy/index.js +1 -1
- package/deploy/utils/get-options.js +1 -1
- package/deploy/utils/request-upload.js +1 -1
- package/deploy/utils/upload-app.js +1 -1
- package/index.js +1 -1
- package/login/index.js +1 -1
- package/login/utils/get-options.js +1 -1
- package/login/utils/zalo-login.js +1 -1
- package/migrate/icons/update-icon-v3.js +1 -1
- package/migrate/index.js +1 -1
- package/migrate/utils/get-options.js +1 -1
- package/migrate/utils/migrate-react.js +1 -1
- package/package.json +1 -1
- package/start/generate-hr-config.js +1 -1
- package/start/index.js +1 -1
- package/sync/index-to-app-config.js +1 -1
- package/sync/index.js +1 -1
- package/utils/axios.js +1 -1
- package/utils/check-update.js +1 -1
- package/utils/constants.js +1 -1
- package/utils/env.js +1 -1
- package/utils/error.js +1 -1
- package/utils/find-files-by-ext.js +1 -1
- package/utils/find-free-port.js +1 -1
- package/utils/fs-extra.js +1 -1
- package/utils/generate-pages-map.js +1 -1
- package/utils/get-app-info.js +1 -1
- package/utils/get-current-project.js +1 -1
- package/utils/get-ip.js +1 -1
- package/utils/log.js +1 -1
- package/utils/node-blob.js +1 -1
- package/utils/resumable.d.js +1 -1
- package/utils/resumable.js +1 -1
- package/utils/spinner.js +1 -1
- package/utils/tunnel.js +1 -1
- package/create/templates/react/dist/generate-scripts.dev.js +0 -23
- package/create/templates/react-typescript/dist/generate-scripts.dev.js +0 -23
- package/deploy/utils/dist/request-upload.dev.js +0 -62
- package/deploy/utils/dist/upload-app.dev.js +0 -113
- package/login/utils/dist/zalo-login.dev.js +0 -41
package/build/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x50ffc2=_0x4ef1;(function(_0x16aacd,_0x3acc14){const _0x4df43b=_0x4ef1,_0x5518e3=_0x16aacd();while(!![]){try{const _0x45e8cc=parseInt(_0x4df43b(0x1fb))/0x1*(parseInt(_0x4df43b(0x1d3))/0x2)+parseInt(_0x4df43b(0x1e2))/0x3*(parseInt(_0x4df43b(0x1ef))/0x4)+-parseInt(_0x4df43b(0x1d8))/0x5*(parseInt(_0x4df43b(0x1cb))/0x6)+-parseInt(_0x4df43b(0x200))/0x7+-parseInt(_0x4df43b(0x1f7))/0x8+parseInt(_0x4df43b(0x1c7))/0x9+parseInt(_0x4df43b(0x1ce))/0xa;if(_0x45e8cc===_0x3acc14)break;else _0x5518e3['push'](_0x5518e3['shift']());}catch(_0x4443a9){_0x5518e3['push'](_0x5518e3['shift']());}}}(_0xbd49,0xcfd36));function _0x4ef1(_0x2b03a3,_0x39ca5f){const _0xbd491e=_0xbd49();return _0x4ef1=function(_0x4ef15e,_0x2ec769){_0x4ef15e=_0x4ef15e-0x1c1;let _0x5966c5=_0xbd491e[_0x4ef15e];return _0x5966c5;},_0x4ef1(_0x2b03a3,_0x39ca5f);}const e=require(_0x50ffc2(0x1fc)),r=require(_0x50ffc2(0x1c5)),t=require('path'),{build:i}=require(_0x50ffc2(0x1e6)),s=require(_0x50ffc2(0x202))[_0x50ffc2(0x1e0)],a=require(_0x50ffc2(0x1e4)),l=require('@rollup/plugin-replace'),n=require(_0x50ffc2(0x1cc)),o=require(_0x50ffc2(0x1dd)),u=require('../utils/get-app-info'),p=require('../utils/env'),c=require('../config'),m=require(_0x50ffc2(0x1c9)),g=p[_0x50ffc2(0x1ff)](_0x50ffc2(0x205))||_0x50ffc2(0x1ea),y=e['gray'](_0x50ffc2(0x1f1)),d=e[_0x50ffc2(0x208)]('Warning:\x20This\x20CLI\x20version\x20will\x20work\x20better\x20with\x20zmp-framework\x20version\x201.5.0\x20or\x20higher'),f=r(_0x50ffc2(0x1ea)===g?'Building\x20for\x20production...':_0x50ffc2(0x1c2));function _0xbd49(){const _0x47f768=['30392840NJfDbb','statusStart','zdn_url','Build\x20Done!\x0a','appConfig','43220ZlAgUz','appId','latestVersion','vite.config.ts','es2015','5zSyQgp','forEach','mode','imports','listCSS','../utils/fs-extra','exit','stderr','default','error','3IUoEJr','writeFileSync','lodash','statusDone','vite','set','stringify','fileName','production','exports','appConfigJson','has','get','947740MwFYEL','local','Building...\x20(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','asset','isArray','bold','filename','filter','13065976UHeZEU','isImplicitEntry','statusError','nextVersion','20vhsCOH','chalk','isDynamicEntry','chunk','getEnv','9992766aOAtPF','type','@rollup/plugin-dynamic-import-vars','join','assets/[name].[hash].module.js','NODE_ENV','pick','map','yellow','listSyncJS','push','Building\x20development\x20version...','cwd','www/','ora','www','14191083hkyApS','.css','../utils/generate-pages-map','vite.config.js','8239002chnzRi','../utils/log','env'];_0xbd49=function(){return _0x47f768;};return _0xbd49();}module[_0x50ffc2(0x1eb)]=async(_0x26d613={},_0x589c30,{exitOnError:_0x1dae75=!0x0}={})=>{const _0x108297=_0x50ffc2;let _0x1fb8b7=_0x26d613[_0x108297(0x1c3)]||process[_0x108297(0x1c3)](),_0xd0dbec=_0x53cab6=>t[_0x108297(0x203)](_0x1fb8b7,_0x53cab6),_0x2c6223=_0x26d613[_0x108297(0x1ec)]||require(_0xd0dbec(c[_0x108297(0x1f5)][_0x108297(0x1d2)]));_0x589c30||(_0x589c30={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),_0x589c30['text'](d),f['start'](),_0x589c30[_0x108297(0x1cf)](y);try{let _0x5a5aad=p[_0x108297(0x1ff)](c[_0x108297(0x1cd)][_0x108297(0x1d4)]),_0x534b5c=_0x26d613[_0x108297(0x1fa)];if(!_0x534b5c){let _0x495547=await u(_0x5a5aad,_0x26d613),_0x3d948a=_0x495547&&_0x495547[_0x108297(0x1d5)]&&Number(_0x495547[_0x108297(0x1d5)]);null==_0x3d948a&&(_0x3d948a=0x0),_0x534b5c=_0x3d948a+0x1;}let _0x1385f0=_0x108297(0x1ca);o['existsSync'](t['join'](_0x1fb8b7,_0x108297(0x1d6)))&&(_0x1385f0=_0x108297(0x1d6));let _0x13549d=(await i({'configFile':t[_0x108297(0x203)](_0x1fb8b7,_0x1385f0),'root':_0x1fb8b7,'base':''+c[_0x108297(0x1d0)]+_0x5a5aad+'/'+_0x534b5c+'/','css':{'modules':{'scopeBehaviour':_0x108297(0x1f0)}},'mode':_0x26d613[_0x108297(0x1da)],'build':{'target':_0x108297(0x1d7),'outDir':t[_0x108297(0x203)](_0x1fb8b7,_0x108297(0x1c6)),'assetsInlineLimit':0x0,'cssCodeSplit':!0x1,'cssTarget':[_0x108297(0x1d7),'safari13.1'],'rollupOptions':{'plugins':[l({'values':{'ZMP_IMPORT_PAGES':()=>m(_0x1fb8b7)}}),s({'warnOnError':!0x0})],'output':{'entryFileNames':_0x108297(0x204),'chunkFileNames':_0x108297(0x204)}}},'logLevel':'error'}))['output'][_0x108297(0x207)](_0x30ff99=>a[_0x108297(0x206)](_0x30ff99,['fileName',_0x108297(0x201),_0x108297(0x1db),'isEntry',_0x108297(0x1f8),_0x108297(0x1fd)])),_0x1b4210=new Map();_0x13549d[_0x108297(0x1d9)](_0x2dd165=>{const _0x42ff32=_0x108297;_0x1b4210[_0x42ff32(0x1e7)](_0x2dd165[_0x42ff32(0x1e9)],_0x2dd165);});let _0x427893=_0x13549d[_0x108297(0x1f6)](_0x421f2e=>_0x108297(0x1fe)===_0x421f2e[_0x108297(0x201)]&&_0x421f2e['isEntry']),_0x5f4a72=[],_0x27b279=(_0x50d18c,_0x1cafa3=new Set())=>{const _0x20b56e=_0x108297;let _0x432269=[];return _0x50d18c['imports'][_0x20b56e(0x1d9)](_0x53a34b=>{const _0x251ec3=_0x20b56e;let _0x479c40=_0x1b4210[_0x251ec3(0x1ee)](_0x53a34b);_0x479c40?.['type']!==_0x251ec3(0x1fe)||_0x1cafa3[_0x251ec3(0x1ed)](_0x53a34b)||(_0x1cafa3['add'](_0x53a34b),_0x432269['push'](..._0x27b279(_0x479c40,_0x1cafa3)),_0x432269[_0x251ec3(0x1c1)](_0x479c40));}),_0x432269;};_0x427893[_0x108297(0x1d9)](_0x228b6a=>{const _0x179957=_0x108297;let _0x32e4c3=_0x27b279(_0x228b6a);_0x5f4a72[_0x179957(0x1c1)](..._0x32e4c3);});let _0x57c9b9=_0x13549d[_0x108297(0x1f6)](_0x623a58=>!!(_0x108297(0x1f2)===_0x623a58[_0x108297(0x201)]&&_0x623a58[_0x108297(0x1e9)]['endsWith'](_0x108297(0x1c8)))),_0x45c6b8={..._0x2c6223,'listCSS':[...Array['isArray'](_0x2c6223[_0x108297(0x1dc)])?_0x2c6223['listCSS']:[],..._0x57c9b9[_0x108297(0x207)](_0x581813=>_0x581813[_0x108297(0x1e9)])],'listSyncJS':[...Array[_0x108297(0x1f3)](_0x2c6223[_0x108297(0x209)])?_0x2c6223['listSyncJS']:[],..._0x427893[_0x108297(0x207)](_0x1a6ea3=>_0x1a6ea3[_0x108297(0x1e9)])],'listAsyncJS':[..._0x5f4a72[_0x108297(0x207)](_0x5aebd2=>_0x5aebd2[_0x108297(0x1e9)]),...Array[_0x108297(0x1f3)](_0x2c6223['listAsyncJS'])?_0x2c6223['listAsyncJS']:[]]};return o[_0x108297(0x1e3)](_0xd0dbec(_0x108297(0x1c4)+c['filename'][_0x108297(0x1d2)]),JSON[_0x108297(0x1e8)](_0x45c6b8)),_0x589c30[_0x108297(0x1e5)](''+e[_0x108297(0x1f4)]['green'](_0x108297(0x1d1))),_0x45c6b8;}catch(_0x5980a5){_0x589c30[_0x108297(0x1f9)]('Error\x20building\x20project'),n[_0x108297(0x1e1)](_0x5980a5[_0x108297(0x1df)]||_0x5980a5),_0x1dae75&&process[_0x108297(0x1de)](0x1);return;}};
|
package/config/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x3de9(){var _0x74353b=['559094VOgVWB','4570192EMtOSa','5FpArbb','app/upload-chunk','1257815YecOKr','app/get-info','184368fhFdDX','octet','3712590EGHUZu','admin/login','app-config.json','cwd','Request\x20Timeout','App\x20config\x20not\x20found.\x20Please\x20re-init\x20project.\x20(Tips:\x20Run\x20\x27zmp\x20init\x27)','/.env','https://zmp-api.developers.zalo.me/','exports','8QBAKfs','332066mydmUE','//h5.zdn.vn/zapps/','18917082GvxAPm'];_0x3de9=function(){return _0x74353b;};return _0x3de9();}function _0x5d9c(_0x3660cf,_0x4de083){var _0x3de97b=_0x3de9();return _0x5d9c=function(_0x5d9c45,_0x2ba2ab){_0x5d9c45=_0x5d9c45-0x6b;var _0x183c8b=_0x3de97b[_0x5d9c45];return _0x183c8b;},_0x5d9c(_0x3660cf,_0x4de083);}var _0x498ba1=_0x5d9c;(function(_0x54d27b,_0x16bd2f){var _0xb105ee=_0x5d9c,_0x3e3c6c=_0x54d27b();while(!![]){try{var _0x4097df=-parseInt(_0xb105ee(0x70))/0x1*(parseInt(_0xb105ee(0x6e))/0x2)+-parseInt(_0xb105ee(0x74))/0x3+parseInt(_0xb105ee(0x6f))/0x4+-parseInt(_0xb105ee(0x72))/0x5+-parseInt(_0xb105ee(0x76))/0x6+parseInt(_0xb105ee(0x6b))/0x7*(parseInt(_0xb105ee(0x7f))/0x8)+parseInt(_0xb105ee(0x6d))/0x9;if(_0x4097df===_0x16bd2f)break;else _0x3e3c6c['push'](_0x3e3c6c['shift']());}catch(_0x4d4d3d){_0x3e3c6c['push'](_0x3e3c6c['shift']());}}}(_0x3de9,0xeaf3d));module[_0x498ba1(0x7e)]={'filename':{'appConfig':_0x498ba1(0x78),'zmpConfig':'zmp-cli.json','packageJson':'package.json'},'api_domain':_0x498ba1(0x7d),'zdn_url':_0x498ba1(0x6c),'path':{'login':_0x498ba1(0x77),'requestLogin':'admin/request-login','checkLoginStatus':'admin/get-login-status','uploadAppByChunk':_0x498ba1(0x71),'requestUploadResumable':'app/request-upload','getAppInfo':_0x498ba1(0x73)},'dirname':__dirname,'root_env':()=>process[_0x498ba1(0x79)]()+_0x498ba1(0x7c),'env':{'appId':'APP_ID','token':'ZMP_TOKEN'},'error_code':{'app_config_not_found':-0x578,'permission_denied':-0x7d1,'request_timeout':-0x7d3},'error_msg':{'app_config_not_found':_0x498ba1(0x7b),'permission_denied':'Permission\x20denied.\x20Please\x20login\x20again.\x20(Tips:\x20Run\x20\x27zmp\x20login\x27)','request_timeout':_0x498ba1(0x7a)},'resumable_option':{'chunkSize':0x7d000,'simultaneousUploads':0x4,'testChunks':!0x0,'throttleProgressCallbacks':0x1,'method':_0x498ba1(0x75),'forceChunkSize':!0x1}};
|
package/create/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x3f729c=_0x1130;(function(_0x1edfe5,_0x5409b0){const _0x3881c4=_0x1130,_0x50741b=_0x1edfe5();while(!![]){try{const _0x4f6731=parseInt(_0x3881c4(0x163))/0x1+-parseInt(_0x3881c4(0x15c))/0x2*(parseInt(_0x3881c4(0x149))/0x3)+parseInt(_0x3881c4(0x193))/0x4*(parseInt(_0x3881c4(0x16f))/0x5)+parseInt(_0x3881c4(0x173))/0x6+parseInt(_0x3881c4(0x146))/0x7+parseInt(_0x3881c4(0x170))/0x8+parseInt(_0x3881c4(0x16c))/0x9;if(_0x4f6731===_0x5409b0)break;else _0x50741b['push'](_0x50741b['shift']());}catch(_0x31baff){_0x50741b['push'](_0x50741b['shift']());}}}(_0x2554,0xae118));function _0x1130(_0x18c96f,_0x2f654f){const _0x2554d2=_0x2554();return _0x1130=function(_0x1130b1,_0x47158c){_0x1130b1=_0x1130b1-0x142;let _0x2dc3ef=_0x2554d2[_0x1130b1];return _0x2dc3ef;},_0x1130(_0x18c96f,_0x2f654f);}const e=require(_0x3f729c(0x16e)),t=require(_0x3f729c(0x186)),r=require(_0x3f729c(0x165)),n=require(_0x3f729c(0x14a)),i=require(_0x3f729c(0x148)),s=require(_0x3f729c(0x17b)),a=require(_0x3f729c(0x166)),{generateTailWindScripts:o}=require('./utils/generate-npm-scripts'),c=require('./utils/generate-app-config'),l=require(_0x3f729c(0x157)),u=require(_0x3f729c(0x191)),p=require(_0x3f729c(0x16a)),g=require(_0x3f729c(0x14d)),d=require(_0x3f729c(0x16b)),m=require(_0x3f729c(0x147)),f=require(_0x3f729c(0x15a)),j=r[_0x3f729c(0x17d)](_0x3f729c(0x14e));function _0x2554(){const _0x5bc2d2=['../utils/fs-extra','222123uOoSXM','log-symbols','length','from','./utils/generate-gitignore','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','content','package.json','stderr','zmp-ui','\x20Run\x20\x22npm\x20run\x20','resolve','dependencies','\x22\x20-\x20','./templates/create-folders','icon','name','./init-zmp-ui','\x20&&\x20npm\x20install\x20','36NQbmoc','filename','error','Creating\x20project\x20files','\x0a\x20\x20','Executing\x20NPM\x20Scripts','cd\x20','491333MgltRZ','https://mini.zalo.me/','chalk','./utils/generate-npm-scripts','newProject','\x20in\x20project\x20root\x20folder\x20with\x20further\x20instructions\x0a\x20\x20\x20\x20','.gitignore','./utils/generate-readme','../utils/log','6101235LdtrLe','text','exec-sh','54185RdIstn','5219584OHWoIm','exit','\x20--save','427782mZeQzs','promise','Error\x20installing\x20NPM\x20Dependencies','description','npm\x20run\x20postinstall','\x0a\x20\x20-\x20📖\x20Check\x20','writeFileSync','Error\x20creating\x20project\x20files','./utils/generate-package-json','writeFileAsync','gray','statusError','Error\x20installing\x20NPM\x20Dev\x20Dependencies','Next\x20steps:','package','postInstall','appConfig','exports','\x0a\x20\x20-\x20📖\x20Visit\x20documentation\x20at\x20','path','statusDone','join','includeTailwind','replace','success','stringify','bold','statusStart','README.md','Generating\x20package.json','./templates/copy-assets','Creating\x20required\x20folders\x20structure','52xDhdIV','Generating\x20app-config.json','\x20--save-dev','npm\x20install\x20','map','Done!','cwd','copyFileAsync','\x20&&\x20npm\x20run\x20postinstall','82936DxNHNw','../config'];_0x2554=function(){return _0x5bc2d2;};return _0x2554();}module[_0x3f729c(0x184)]=async(_0x358c4d={},_0x37d631,{exitOnError:_0x25c141=!0x0,iconFile:_0x556e11=null}={})=>{const _0x5cf00f=_0x3f729c;if(_0x358c4d[_0x5cf00f(0x167)]&&_0x5cf00f(0x152)===_0x358c4d[_0x5cf00f(0x181)]){await f(_0x358c4d,_0x37d631);return;}let _0x3d2aa3=_0x358c4d[_0x5cf00f(0x143)]||process['cwd'](),_0x196bea=_0x3d2aa3===process[_0x5cf00f(0x143)]();function _0x5dad30(_0x3cd6ad){const _0x2220e1=_0x5cf00f;d[_0x2220e1(0x15e)](_0x3cd6ad[_0x2220e1(0x151)]||_0x3cd6ad),_0x25c141&&process['exit'](0x1);}_0x37d631||(_0x37d631={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),_0x37d631[_0x5cf00f(0x18e)](_0x5cf00f(0x194));let _0x3f9fb0=c(_0x358c4d);if(i[_0x5cf00f(0x179)](t[_0x5cf00f(0x188)](_0x3d2aa3,m[_0x5cf00f(0x15d)][_0x5cf00f(0x183)]),_0x3f9fb0['content']),_0x37d631['statusDone'](_0x5cf00f(0x194)),!_0x358c4d[_0x5cf00f(0x167)]){let _0x9ae5c0=a(['r'])[_0x5cf00f(0x197)](_0x248905=>_0x248905[_0x5cf00f(0x158)]+_0x5cf00f(0x153)+_0x248905[_0x5cf00f(0x159)]+_0x5cf00f(0x156)+_0x248905[_0x5cf00f(0x176)]);_0x37d631['text'](_0x9ae5c0[_0x5cf00f(0x188)]('\x0a')),process[_0x5cf00f(0x171)](0x0);}_0x37d631[_0x5cf00f(0x18e)](_0x5cf00f(0x190));let _0x36a667=s(_0x358c4d);i['writeFileSync'](t[_0x5cf00f(0x188)](_0x3d2aa3,_0x5cf00f(0x150)),_0x36a667['content']),i['writeFileSync'](t['join'](_0x3d2aa3,m[_0x5cf00f(0x15d)]['zmpConfig']),JSON[_0x5cf00f(0x18c)](_0x358c4d,'',0x2)),_0x37d631[_0x5cf00f(0x187)](_0x5cf00f(0x190)),_0x37d631['statusStart']('Creating\x20required\x20folders\x20structure');try{l(_0x358c4d);}catch(_0x1d6f68){_0x37d631[_0x5cf00f(0x17e)]('Error\x20creating\x20required\x20folders\x20structure'),_0x5dad30(_0x1d6f68);}_0x37d631['statusDone'](_0x5cf00f(0x192)),_0x37d631[_0x5cf00f(0x18e)]('Installing\x20NPM\x20Dependencies\x20'+j);try{_0x196bea?await e['promise'](_0x5cf00f(0x196)+_0x36a667[_0x5cf00f(0x155)][_0x5cf00f(0x188)]('\x20')+_0x5cf00f(0x172),!0x0):await e['promise'](_0x5cf00f(0x162)+_0x3d2aa3[_0x5cf00f(0x18a)](/ /g,'\x5c\x20')+_0x5cf00f(0x15b)+_0x36a667['dependencies'][_0x5cf00f(0x188)]('\x20')+_0x5cf00f(0x172),!0x0);}catch(_0xbbca43){_0x37d631[_0x5cf00f(0x17e)](_0x5cf00f(0x175)),_0x5dad30(_0xbbca43);return;}_0x37d631[_0x5cf00f(0x187)]('Installing\x20NPM\x20Dependencies'),_0x37d631[_0x5cf00f(0x18e)]('Installing\x20NPM\x20Dev\x20Dependencies\x20'+j);try{_0x196bea?await e[_0x5cf00f(0x174)](_0x5cf00f(0x196)+_0x36a667['devDependencies'][_0x5cf00f(0x188)]('\x20')+_0x5cf00f(0x195),!0x0):await e[_0x5cf00f(0x174)](_0x5cf00f(0x162)+_0x3d2aa3[_0x5cf00f(0x18a)](/ /g,'\x5c\x20')+_0x5cf00f(0x15b)+_0x36a667['devDependencies']['join']('\x20')+_0x5cf00f(0x195),!0x0);}catch(_0x2b813d){_0x37d631['statusError'](_0x5cf00f(0x17f)),_0x5dad30(_0x2b813d);return;}if(_0x37d631['statusDone']('Installing\x20NPM\x20Dev\x20Dependencies'),_0x36a667['postInstall']&&_0x36a667[_0x5cf00f(0x182)][_0x5cf00f(0x14b)]){_0x37d631[_0x5cf00f(0x18e)](_0x5cf00f(0x161));try{_0x196bea?await e[_0x5cf00f(0x174)](_0x5cf00f(0x177),!0x0):await e['promise'](_0x5cf00f(0x162)+_0x3d2aa3['replace'](/ /g,'\x5c\x20')+_0x5cf00f(0x145),!0x0);}catch(_0x216f58){_0x37d631[_0x5cf00f(0x17e)]('Error\x20executing\x20NPM\x20Scripts'),_0x5dad30(_0x216f58);return;}_0x37d631[_0x5cf00f(0x187)](_0x5cf00f(0x161));}_0x37d631['statusStart'](_0x5cf00f(0x15f));let _0x49dbbb=u(_0x358c4d,_0x556e11);try{await Promise['all'](_0x49dbbb['map'](_0x3fd442=>_0x3fd442[_0x5cf00f(0x14c)]?i[_0x5cf00f(0x144)](_0x3fd442['from'],_0x3fd442['to']):_0x3fd442['content']?i[_0x5cf00f(0x17c)](_0x3fd442['to'],_0x3fd442[_0x5cf00f(0x14f)]):Promise[_0x5cf00f(0x154)]()));}catch(_0x5b5527){_0x37d631[_0x5cf00f(0x17e)](_0x5cf00f(0x17a)),_0x5dad30(_0x5b5527);return;}let _0x1b9212=p(_0x358c4d);try{i[_0x5cf00f(0x179)](t[_0x5cf00f(0x188)](_0x3d2aa3,_0x5cf00f(0x18f)),_0x1b9212);}catch(_0x197fdd){_0x37d631['statusError'](_0x5cf00f(0x17a)),_0x5dad30(_0x197fdd);return;}let _0x2a390c=g(_0x358c4d);try{i[_0x5cf00f(0x179)](t['join'](_0x3d2aa3,_0x5cf00f(0x169)),_0x2a390c);}catch(_0x3562e3){_0x37d631['statusError'](_0x5cf00f(0x17a)),_0x5dad30(_0x3562e3);return;}_0x37d631[_0x5cf00f(0x187)](_0x5cf00f(0x15f));let _0x3315d6=a(['s','r'])[_0x5cf00f(0x197)](_0x9a7671=>'-\x20'+_0x9a7671[_0x5cf00f(0x158)]+_0x5cf00f(0x153)+_0x9a7671[_0x5cf00f(0x159)]+_0x5cf00f(0x156)+_0x9a7671[_0x5cf00f(0x176)]);_0x358c4d[_0x5cf00f(0x189)]&&(_0x3315d6=[..._0x3315d6,...o(['t'])[_0x5cf00f(0x197)](_0xd61556=>'-\x20'+_0xd61556[_0x5cf00f(0x158)]+_0x5cf00f(0x153)+_0xd61556[_0x5cf00f(0x159)]+_0x5cf00f(0x156)+_0xd61556[_0x5cf00f(0x176)])]);let _0x3f111f='\x0a'+r[_0x5cf00f(0x18d)](n[_0x5cf00f(0x18b)])+'\x20'+r[_0x5cf00f(0x18d)](_0x5cf00f(0x142))+'\x20💪\x0a\x0a'+r[_0x5cf00f(0x18d)](n['info'])+'\x20'+r[_0x5cf00f(0x18d)](_0x5cf00f(0x180))+'\x0a\x20\x20'+_0x3315d6[_0x5cf00f(0x188)](_0x5cf00f(0x160))+_0x5cf00f(0x185)+r[_0x5cf00f(0x18d)](_0x5cf00f(0x164))+_0x5cf00f(0x178)+r['bold'](_0x5cf00f(0x18f))+_0x5cf00f(0x168);_0x37d631[_0x5cf00f(0x16d)](_0x3f111f);};
|
package/create/init-zmp-ui.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x584257=_0x55e6;function _0x214f(){const _0x303ce7=['Error\x20creating\x20required\x20folders\x20structure','text','Generating\x20app-config.json','\x0a\x20\x20-\x20📖\x20Visit\x20documentation\x20at\x20','README.md','3846kjtmtv','../utils/fs-extra','content','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','./utils/generate-package-json','icon','name','description','Creating\x20project\x20files','27rLtxxO','2480srQCDL','406200otkAAn','zmpConfig','all','\x0a\x20\x20-\x20📖\x20Check\x20','success','copyFileAsync','exit','\x20💪\x0a\x0a','statusStart','\x20--save-dev','gray','52323RfCmLC','Executing\x20NPM\x20Scripts','map','stderr','cwd','Error\x20installing\x20NPM\x20Dependencies','620144GJIbTf','package.json','filename','./templates/copy-assets','Done!','./templates/create-folders','exports','Error\x20executing\x20NPM\x20Scripts','info','\x0a\x20\x20','\x20&&\x20npm\x20install\x20','path','\x22\x20-\x20','join','from','bold','./utils/generate-readme','error','devDependencies','Error\x20creating\x20project\x20files','Next\x20steps:','Creating\x20required\x20folders\x20structure','../utils/log','Error\x20installing\x20NPM\x20Dev\x20Dependencies','\x20--save','cd\x20','.gitignore','newProject','\x20Run\x20\x22npm\x20run\x20','writeFileSync','chalk','2399792zHAYCO','postInstall','Installing\x20NPM\x20Dependencies','dependencies','replace','stringify','promise','398876ipdyZg','../config','statusError','https://mini.zalo.me/','28ZCIJrK','statusDone','2886224LsPIPL','npm\x20install\x20','1rUTjdH'];_0x214f=function(){return _0x303ce7;};return _0x214f();}function _0x55e6(_0x4cfce8,_0x4318e7){const _0x214fca=_0x214f();return _0x55e6=function(_0x55e6be,_0x2843f6){_0x55e6be=_0x55e6be-0x1ac;let _0x1f3029=_0x214fca[_0x55e6be];return _0x1f3029;},_0x55e6(_0x4cfce8,_0x4318e7);}(function(_0x40bd7b,_0x35ef7d){const _0x475875=_0x55e6,_0x27b464=_0x40bd7b();while(!![]){try{const _0x3d6d87=-parseInt(_0x475875(0x1eb))/0x1*(parseInt(_0x475875(0x1e3))/0x2)+parseInt(_0x475875(0x1b7))/0x3*(parseInt(_0x475875(0x1e7))/0x4)+-parseInt(_0x475875(0x1fb))/0x5*(-parseInt(_0x475875(0x1f1))/0x6)+parseInt(_0x475875(0x1bd))/0x7+-parseInt(_0x475875(0x1dc))/0x8+parseInt(_0x475875(0x1fa))/0x9*(-parseInt(_0x475875(0x1ac))/0xa)+parseInt(_0x475875(0x1e9))/0xb;if(_0x3d6d87===_0x35ef7d)break;else _0x27b464['push'](_0x27b464['shift']());}catch(_0x19455f){_0x27b464['push'](_0x27b464['shift']());}}}(_0x214f,0x296ff));const e=require('exec-sh'),t=require(_0x584257(0x1c8)),r=require(_0x584257(0x1db)),n=require('log-symbols'),s=require(_0x584257(0x1f2)),i=require(_0x584257(0x1f5)),a=require('./utils/generate-npm-scripts'),o=require('./utils/generate-app-config'),c=require(_0x584257(0x1c2)),l=require(_0x584257(0x1c0)),u=require(_0x584257(0x1cd)),p=require('./utils/generate-gitignore'),g=require(_0x584257(0x1d3)),d=require(_0x584257(0x1e4)),m=r[_0x584257(0x1b6)](_0x584257(0x1f4));module[_0x584257(0x1c3)]=async(_0x241a96={},_0x4ebdba,{exitOnError:_0x4f98b4=!0x0,iconFile:_0x2a5392=null}={})=>{const _0x25e889=_0x584257;let _0x406162=_0x241a96[_0x25e889(0x1bb)]||process['cwd'](),_0x1f695b=_0x406162===process['cwd']();function _0x4fb5aa(_0x3719ec){const _0x24786d=_0x25e889;g[_0x24786d(0x1ce)](_0x3719ec[_0x24786d(0x1ba)]||_0x3719ec),_0x4f98b4&&process[_0x24786d(0x1b2)](0x1);}_0x4ebdba||(_0x4ebdba={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),_0x4ebdba[_0x25e889(0x1b4)](_0x25e889(0x1ee));let _0x3ccb3a=o(_0x241a96);if(s[_0x25e889(0x1da)](t[_0x25e889(0x1ca)](_0x406162,d['filename']['appConfig']),_0x3ccb3a[_0x25e889(0x1f3)]),_0x4ebdba[_0x25e889(0x1e8)](_0x25e889(0x1ee)),!_0x241a96[_0x25e889(0x1d8)]){let _0x18059a=a(['r'])[_0x25e889(0x1b9)](_0x184b61=>_0x184b61[_0x25e889(0x1f6)]+_0x25e889(0x1d9)+_0x184b61[_0x25e889(0x1f7)]+_0x25e889(0x1c9)+_0x184b61[_0x25e889(0x1f8)]);_0x4ebdba['text'](_0x18059a[_0x25e889(0x1ca)]('\x0a')),process[_0x25e889(0x1b2)](0x0);}_0x4ebdba[_0x25e889(0x1b4)]('Generating\x20package.json');let _0x34005d=i(_0x241a96);s[_0x25e889(0x1da)](t[_0x25e889(0x1ca)](_0x406162,_0x25e889(0x1be)),_0x34005d[_0x25e889(0x1f3)]),s[_0x25e889(0x1da)](t[_0x25e889(0x1ca)](_0x406162,d[_0x25e889(0x1bf)][_0x25e889(0x1ad)]),JSON[_0x25e889(0x1e1)](_0x241a96,'',0x2)),_0x4ebdba[_0x25e889(0x1e8)]('Generating\x20package.json'),_0x4ebdba[_0x25e889(0x1b4)]('Creating\x20required\x20folders\x20structure');try{c(_0x241a96);}catch(_0x33c18d){_0x4ebdba[_0x25e889(0x1e5)](_0x25e889(0x1ec)),_0x4fb5aa(_0x33c18d);}_0x4ebdba[_0x25e889(0x1e8)](_0x25e889(0x1d2)),_0x4ebdba[_0x25e889(0x1b4)]('Installing\x20NPM\x20Dependencies\x20'+m);try{_0x1f695b?await e[_0x25e889(0x1e2)](_0x25e889(0x1ea)+_0x34005d[_0x25e889(0x1df)][_0x25e889(0x1ca)]('\x20')+_0x25e889(0x1d5),!0x0):await e[_0x25e889(0x1e2)]('cd\x20'+_0x406162[_0x25e889(0x1e0)](/ /g,'\x5c\x20')+'\x20&&\x20npm\x20install\x20'+_0x34005d[_0x25e889(0x1df)][_0x25e889(0x1ca)]('\x20')+'\x20--save',!0x0);}catch(_0x39c8e2){_0x4ebdba[_0x25e889(0x1e5)](_0x25e889(0x1bc)),_0x4fb5aa(_0x39c8e2);return;}_0x4ebdba[_0x25e889(0x1e8)](_0x25e889(0x1de)),_0x4ebdba[_0x25e889(0x1b4)]('Installing\x20NPM\x20Dev\x20Dependencies\x20'+m);try{_0x1f695b?await e[_0x25e889(0x1e2)](_0x25e889(0x1ea)+_0x34005d[_0x25e889(0x1cf)][_0x25e889(0x1ca)]('\x20')+'\x20--save-dev',!0x0):await e[_0x25e889(0x1e2)](_0x25e889(0x1d6)+_0x406162[_0x25e889(0x1e0)](/ /g,'\x5c\x20')+_0x25e889(0x1c7)+_0x34005d[_0x25e889(0x1cf)][_0x25e889(0x1ca)]('\x20')+_0x25e889(0x1b5),!0x0);}catch(_0x5aa072){_0x4ebdba[_0x25e889(0x1e5)](_0x25e889(0x1d4)),_0x4fb5aa(_0x5aa072);return;}if(_0x4ebdba['statusDone']('Installing\x20NPM\x20Dev\x20Dependencies'),_0x34005d['postInstall']&&_0x34005d[_0x25e889(0x1dd)]['length']){_0x4ebdba['statusStart'](_0x25e889(0x1b8));try{_0x1f695b?await e[_0x25e889(0x1e2)]('npm\x20run\x20postinstall',!0x0):await e[_0x25e889(0x1e2)](_0x25e889(0x1d6)+_0x406162[_0x25e889(0x1e0)](/ /g,'\x5c\x20')+'\x20&&\x20npm\x20run\x20postinstall',!0x0);}catch(_0x5d30e3){_0x4ebdba[_0x25e889(0x1e5)](_0x25e889(0x1c4)),_0x4fb5aa(_0x5d30e3);return;}_0x4ebdba[_0x25e889(0x1e8)](_0x25e889(0x1b8));}_0x4ebdba[_0x25e889(0x1b4)]('Creating\x20project\x20files');let _0x24a7ea=l(_0x241a96,_0x2a5392);try{await Promise[_0x25e889(0x1ae)](_0x24a7ea[_0x25e889(0x1b9)](_0x258225=>_0x258225[_0x25e889(0x1cb)]?s[_0x25e889(0x1b1)](_0x258225[_0x25e889(0x1cb)],_0x258225['to']):_0x258225[_0x25e889(0x1f3)]?s['writeFileAsync'](_0x258225['to'],_0x258225[_0x25e889(0x1f3)]):Promise['resolve']()));}catch(_0x4ef002){_0x4ebdba[_0x25e889(0x1e5)]('Error\x20creating\x20project\x20files'),_0x4fb5aa(_0x4ef002);return;}let _0x924b9f=u(_0x241a96);try{s[_0x25e889(0x1da)](t[_0x25e889(0x1ca)](_0x406162,_0x25e889(0x1f0)),_0x924b9f);}catch(_0x35b32d){_0x4ebdba['statusError'](_0x25e889(0x1d0)),_0x4fb5aa(_0x35b32d);return;}let _0xfc2955=p(_0x241a96);try{s[_0x25e889(0x1da)](t[_0x25e889(0x1ca)](_0x406162,_0x25e889(0x1d7)),_0xfc2955);}catch(_0x44a533){_0x4ebdba[_0x25e889(0x1e5)](_0x25e889(0x1d0)),_0x4fb5aa(_0x44a533);return;}_0x4ebdba[_0x25e889(0x1e8)](_0x25e889(0x1f9));let _0x3d70c6=a(['s','r'])[_0x25e889(0x1b9)](_0x48cc5a=>'-\x20'+_0x48cc5a[_0x25e889(0x1f6)]+'\x20Run\x20\x22npm\x20run\x20'+_0x48cc5a[_0x25e889(0x1f7)]+'\x22\x20-\x20'+_0x48cc5a[_0x25e889(0x1f8)]),_0x139175='\x0a'+r[_0x25e889(0x1cc)](n[_0x25e889(0x1b0)])+'\x20'+r[_0x25e889(0x1cc)](_0x25e889(0x1c1))+_0x25e889(0x1b3)+r[_0x25e889(0x1cc)](n[_0x25e889(0x1c5)])+'\x20'+r[_0x25e889(0x1cc)](_0x25e889(0x1d1))+_0x25e889(0x1c6)+_0x3d70c6['join'](_0x25e889(0x1c6))+_0x25e889(0x1ef)+r[_0x25e889(0x1cc)](_0x25e889(0x1e6))+_0x25e889(0x1af)+r['bold']('README.md')+'\x20in\x20project\x20root\x20folder\x20with\x20further\x20instructions\x0a\x20\x20\x20\x20';_0x4ebdba[_0x25e889(0x1ed)](_0x139175);};
|
package/create/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x307902=_0x50ab;(function(_0xd90c6b,_0x5c32cf){const _0x4bdec3=_0x50ab,_0x47c88f=_0xd90c6b();while(!![]){try{const _0x533694=parseInt(_0x4bdec3(0xc6))/0x1*(parseInt(_0x4bdec3(0xc9))/0x2)+parseInt(_0x4bdec3(0xce))/0x3*(-parseInt(_0x4bdec3(0xcd))/0x4)+parseInt(_0x4bdec3(0xd2))/0x5*(-parseInt(_0x4bdec3(0xd9))/0x6)+-parseInt(_0x4bdec3(0xcb))/0x7+-parseInt(_0x4bdec3(0xd3))/0x8*(parseInt(_0x4bdec3(0xcc))/0x9)+-parseInt(_0x4bdec3(0xdc))/0xa+-parseInt(_0x4bdec3(0xc4))/0xb*(-parseInt(_0x4bdec3(0xd1))/0xc);if(_0x533694===_0x5c32cf)break;else _0x47c88f['push'](_0x47c88f['shift']());}catch(_0x448ee7){_0x47c88f['push'](_0x47c88f['shift']());}}}(_0x1934,0xe8ff0));function e(_0x4f0570){const _0xa7ba8b=_0x50ab;let _0x5d5ac5=_0x4f0570[_0xa7ba8b(0xc7)](/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(_0x490c64,_0x16424b,_0x5b2060,_0x5073cf)=>_0x16424b+_0x16424b+_0x5b2060+_0x5b2060+_0x5073cf+_0x5073cf),_0x2090dd=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i[_0xa7ba8b(0xdb)](_0x5d5ac5);return _0x2090dd?_0x2090dd['slice'](0x1)['map'](_0x2f318e=>parseInt(_0x2f318e,0x10)):null;}function _0x1934(){const _0x414c39=['var(--zmp-theme-color)','24oxVLbW','max','exec','16713920aDDcPa','isNaN','3724391hYGLsn','min','2deVIWi','replace','round','1504686qyiNdw','length','10575229jigGcp','1773945GZheGb','3620LbmEyg','1245wpBQsw','abs','exports','204Gctxpb','1218190kWYOSv','72skxJEs','toString','join','map','var(--zmp-theme-color-shade)'];_0x1934=function(){return _0x414c39;};return _0x1934();}function o(_0x3db529,_0x5287b4,_0x953243){const _0x3806e6=_0x50ab;let _0x337dcb=[_0x3db529,_0x5287b4,_0x953243][_0x3806e6(0xd6)](_0x5c12fb=>{const _0xea9188=_0x3806e6;let _0x55fb9a=_0x5c12fb[_0xea9188(0xd4)](0x10);return 0x1===_0x55fb9a['length']?'0'+_0x55fb9a:_0x55fb9a;})['join']('');return'#'+_0x337dcb;}function t(_0x28c9c3,_0x582f6b,_0x47e73b){const _0x563226=_0x50ab;let _0x1cb975,_0x1a63e3=Math['max'](_0x28c9c3/=0xff,_0x582f6b/=0xff,_0x47e73b/=0xff),_0x232193=Math[_0x563226(0xc5)](_0x28c9c3,_0x582f6b,_0x47e73b),_0xf31fd9=_0x1a63e3-_0x232193;0x0===_0xf31fd9?_0x1cb975=0x0:_0x1a63e3===_0x28c9c3?_0x1cb975=(_0x582f6b-_0x47e73b)/_0xf31fd9%0x6:_0x1a63e3===_0x582f6b?_0x1cb975=(_0x47e73b-_0x28c9c3)/_0xf31fd9+0x2:_0x1a63e3===_0x47e73b&&(_0x1cb975=(_0x28c9c3-_0x582f6b)/_0xf31fd9+0x4);let _0x4695d6=(_0x232193+_0x1a63e3)/0x2;return[0x3c*_0x1cb975,0x0===_0xf31fd9?0x0:_0xf31fd9/(0x1-Math[_0x563226(0xcf)](0x2*_0x4695d6-0x1)),_0x4695d6];}function _0x50ab(_0x35a9dc,_0x278118){const _0x1934ef=_0x1934();return _0x50ab=function(_0x50ab4f,_0x4b1f41){_0x50ab4f=_0x50ab4f-0xc4;let _0x1498df=_0x1934ef[_0x50ab4f];return _0x1498df;},_0x50ab(_0x35a9dc,_0x278118);}function r(_0x224ea6,_0x59cf00,_0x4ebf60){const _0xea1888=_0x50ab;let _0x250703,_0x25b642=(0x1-Math[_0xea1888(0xcf)](0x2*_0x4ebf60-0x1))*_0x59cf00,_0xa19f0c=_0x224ea6/0x3c,_0x393541=_0x25b642*(0x1-Math['abs'](_0xa19f0c%0x2-0x1));Number[_0xea1888(0xdd)](_0x224ea6)||void 0x0===_0x224ea6?_0x250703=[0x0,0x0,0x0]:_0xa19f0c<=0x1?_0x250703=[_0x25b642,_0x393541,0x0]:_0xa19f0c<=0x2?_0x250703=[_0x393541,_0x25b642,0x0]:_0xa19f0c<=0x3?_0x250703=[0x0,_0x25b642,_0x393541]:_0xa19f0c<=0x4?_0x250703=[0x0,_0x393541,_0x25b642]:_0xa19f0c<=0x5?_0x250703=[_0x393541,0x0,_0x25b642]:_0xa19f0c<=0x6&&(_0x250703=[_0x25b642,0x0,_0x393541]);let _0x4e0ef9=_0x4ebf60-_0x25b642/0x2;return _0x250703[_0xea1888(0xd6)](_0x2acd3c=>Math[_0xea1888(0xda)](0x0,Math[_0xea1888(0xc5)](0xff,Math[_0xea1888(0xc8)](0xff*(_0x2acd3c+_0x4e0ef9)))));}module[_0x307902(0xd0)]={'colorHexToRgb':e,'colorHslToRgb':r,'colorRgbToHex':o,'colorRgbToHsl':t,'colorThemeCSSProperties':function(..._0x51f3bd){const _0x41fc22=_0x307902;let _0x414ebc,_0x12fae4;if(0x1===_0x51f3bd[_0x41fc22(0xca)]?([_0x414ebc]=_0x51f3bd,_0x12fae4=e(_0x414ebc)):0x3===_0x51f3bd[_0x41fc22(0xca)]&&(_0x414ebc=o(..._0x12fae4=_0x51f3bd)),!_0x12fae4)return{};let _0x9a65db=t(..._0x12fae4),_0x5321fd=[_0x9a65db[0x0],_0x9a65db[0x1],Math[_0x41fc22(0xda)](0x0,_0x9a65db[0x2]-0.08)],_0x2217b2=[_0x9a65db[0x0],_0x9a65db[0x1],Math[_0x41fc22(0xda)](0x0,_0x9a65db[0x2]+0.08)],_0x237851=o(...r(..._0x5321fd)),_0x58ce37=o(...r(..._0x2217b2)),_0x16569a=o(...r(_0x9a65db[0x0],_0x9a65db[0x1],Math[_0x41fc22(0xda)](0x0,_0x9a65db[0x2]+0.6)));return{'--zmp-theme-color':_0x414ebc,'--zmp-theme-color-rgb':_0x12fae4[_0x41fc22(0xd5)](',\x20'),'--zmp-theme-color-shade':_0x237851,'--zmp-theme-color-tint':_0x58ce37,'--zmp-checkbox-active-color-disabled':_0x41fc22(0xd7),'--zmp-radio-active-color-disabled':_0x41fc22(0xd7),'--zmp-toggle-active-color-disabled':'var(--zmp-theme-color-shade)','--zmp-picker-action-button-hover-bg-color':_0x41fc22(0xd7),'--zmp-button-pressed-bg-color-primary':_0x41fc22(0xd7),'\x20--zmp-button-bg-color-secondary':_0x16569a,'--zmp-button-pressed-bg-color-secondary':_0x16569a,'--zmp-button-pressed-color-secondary':'var(--zmp-theme-color)','--zmp-button-border-color-secondary':'var(--zmp-theme-color)','--zmp-tabbar-fill-link-active-color':_0x41fc22(0xd8),'--zmp-tabbar-fill-link-active-border-color':_0x41fc22(0xd8),'--zmp-fab-pressed-bg-color':_0x41fc22(0xd7)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3b749e=_0x2b90;(function(_0x3a2a1e,_0x2b3aac){const _0xdc1c88=_0x2b90,_0x1db24e=_0x3a2a1e();while(!![]){try{const _0x25e210=parseInt(_0xdc1c88(0x1d6))/0x1+-parseInt(_0xdc1c88(0x1d5))/0x2*(-parseInt(_0xdc1c88(0x1ca))/0x3)+-parseInt(_0xdc1c88(0x1d3))/0x4*(-parseInt(_0xdc1c88(0x1cb))/0x5)+parseInt(_0xdc1c88(0x1ce))/0x6*(parseInt(_0xdc1c88(0x1d9))/0x7)+parseInt(_0xdc1c88(0x1d1))/0x8*(parseInt(_0xdc1c88(0x1cd))/0x9)+-parseInt(_0xdc1c88(0x1c9))/0xa+-parseInt(_0xdc1c88(0x1d4))/0xb;if(_0x25e210===_0x2b3aac)break;else _0x1db24e['push'](_0x1db24e['shift']());}catch(_0x144849){_0x1db24e['push'](_0x1db24e['shift']());}}}(_0x14e9,0xbc1ab));function _0x2b90(_0x345c52,_0x5c4db0){const _0x14e92c=_0x14e9();return _0x2b90=function(_0x2b9020,_0x485299){_0x2b9020=_0x2b9020-0x1c9;let _0x5edc3e=_0x14e92c[_0x2b9020];return _0x5edc3e;},_0x2b90(_0x345c52,_0x5c4db0);}module[_0x3b749e(0x1d8)]=function(_0x45b829){const _0x2517fc=_0x3b749e;let {name:_0x3ca232}=_0x45b829,_0x2e9c3d={'title':_0x3ca232,'headerTitle':_0x3ca232,'headerColor':_0x2517fc(0x1cc),'textColor':_0x2517fc(0x1d2),'statusBarColor':_0x2517fc(0x1cc),'leftButton':_0x2517fc(0x1cf),'statusBar':_0x2517fc(0x1d0),'actionBarHidden':!0x1,'hideAndroidBottomNavigationBar':!0x1,'hideIOSSafeAreaBottom':!0x1};return{'content':JSON['stringify']({'app':_0x2e9c3d,'debug':!0x1,'listCSS':[],'listSyncJS':[],'listAsyncJS':[]},'',0x2)[_0x2517fc(0x1d7)](),'appConfig':_0x2e9c3d};};function _0x14e9(){const _0x3952e2=['exports','178759LHXpVk','3156780HzEOQm','39759mrJesz','2890gVZHkp','#1843EF','2457360ONLvpU','270ftZIfo','back','normal','8aAxrDs','white','2944JIciLD','18152079RicUam','22bOmAmr','742946JoRDoP','trim'];_0x14e9=function(){return _0x3952e2;};return _0x14e9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x44d735=_0x30d2;(function(_0xb6abe9,_0x1da4dc){var _0x332e31=_0x30d2,_0x34dfe6=_0xb6abe9();while(!![]){try{var _0x39940c=parseInt(_0x332e31(0xd7))/0x1+-parseInt(_0x332e31(0xd6))/0x2+parseInt(_0x332e31(0xe1))/0x3+-parseInt(_0x332e31(0xdd))/0x4*(-parseInt(_0x332e31(0xe0))/0x5)+parseInt(_0x332e31(0xdb))/0x6*(parseInt(_0x332e31(0xd9))/0x7)+parseInt(_0x332e31(0xd5))/0x8+parseInt(_0x332e31(0xdc))/0x9*(-parseInt(_0x332e31(0xda))/0xa);if(_0x39940c===_0x1da4dc)break;else _0x34dfe6['push'](_0x34dfe6['shift']());}catch(_0x296647){_0x34dfe6['push'](_0x34dfe6['shift']());}}}(_0x492f,0x83cff));function _0x492f(){var _0x1d8a1c=['523490ttdLhH','6153702XbUdoi','414HCdmYO','1752vhqefr','exports','./template-if','11075uoHYpG','2311500tkYlZF','6603056PeEQiD','2060700eCcjkP','386638omLCbt','\x0a#\x20Logs\x0alogs\x0a*.log\x0anpm-debug.log*\x0ayarn-debug.log*\x0ayarn-error.log*\x0a\x0a#\x20Runtime\x20data\x0apids\x0a*.pid\x0a*.seed\x0a*.pid.lock\x0a\x0a#\x20Dependency\x20directories\x0anode_modules/\x0a\x0a#\x20Optional\x20npm\x20cache\x20directory\x0a.npm\x0a\x0a#\x20Optional\x20eslint\x20cache\x0a.eslintcache\x0a\x0a#\x20Optional\x20REPL\x20history\x0a.node_repl_history\x0a\x0a#\x20Yarn\x20Integrity\x20file\x0a.yarn-integrity\x0a\x0a#\x20dotenv\x20environment\x20variables\x20file\x0a.env\x0a\x0a#\x20Misc\x0a.DS_Store\x0aThumbs.db\x0a\x0a#\x20Production\x20build\x0awww/\x0a','7xqRxXn'];_0x492f=function(){return _0x1d8a1c;};return _0x492f();}function _0x30d2(_0x4c35ee,_0x2b19fa){var _0x492f44=_0x492f();return _0x30d2=function(_0x30d2a4,_0x24a607){_0x30d2a4=_0x30d2a4-0xd5;var _0x3306d7=_0x492f44[_0x30d2a4];return _0x3306d7;},_0x30d2(_0x4c35ee,_0x2b19fa);}require(_0x44d735(0xdf)),module[_0x44d735(0xde)]=_0x2b77c4=>_0x44d735(0xd8);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x224a(){const _0x42f2f4=['tailwind','3412090mxSPgP','77KIwhjM','2855007kuYuPK','17709MMVKvt','8rurTog','name','icon','275666kwoEFq','3538766dBZYTV','description','508USZoKr','1uAGgge','script','264102CcHKoP','default','8412440EcUgjl'];_0x224a=function(){return _0x42f2f4;};return _0x224a();}const _0x60152a=_0x21fd;(function(_0x57b585,_0x5a026c){const _0x10050f=_0x21fd,_0x5b3b22=_0x57b585();while(!![]){try{const _0x5a1623=-parseInt(_0x10050f(0x7c))/0x1*(-parseInt(_0x10050f(0x78))/0x2)+parseInt(_0x10050f(0x74))/0x3*(-parseInt(_0x10050f(0x7b))/0x4)+parseInt(_0x10050f(0x71))/0x5+-parseInt(_0x10050f(0x7e))/0x6*(parseInt(_0x10050f(0x72))/0x7)+-parseInt(_0x10050f(0x75))/0x8*(parseInt(_0x10050f(0x73))/0x9)+parseInt(_0x10050f(0x80))/0xa+parseInt(_0x10050f(0x79))/0xb;if(_0x5a1623===_0x5a026c)break;else _0x5b3b22['push'](_0x5b3b22['shift']());}catch(_0x1631f4){_0x5b3b22['push'](_0x5b3b22['shift']());}}}(_0x224a,0x697ee));function _0x21fd(_0x2c5aaa,_0x5afd9c){const _0x224afd=_0x224a();return _0x21fd=function(_0x21fdab,_0x591404){_0x21fdab=_0x21fdab-0x70;let _0x321074=_0x224afd[_0x21fdab];return _0x321074;},_0x21fd(_0x2c5aaa,_0x5afd9c);}const i=require('./npm-scripts');module['exports']=(_0x52da6f=['s','r'])=>_0x52da6f['map'](_0xd015a4=>({'icon':i[_0x60152a(0x7f)][_0xd015a4][_0x60152a(0x77)],'name':i[_0x60152a(0x7f)][_0xd015a4][_0x60152a(0x76)],'script':i['default'][_0xd015a4][_0x60152a(0x7d)],'description':i[_0x60152a(0x7f)][_0xd015a4]['description']})),module['exports']['generateTailWindScripts']=(_0x79c64f=['t'])=>_0x79c64f['map'](_0x96b7e9=>({'icon':i[_0x60152a(0x70)][_0x96b7e9][_0x60152a(0x77)],'name':i[_0x60152a(0x70)][_0x96b7e9][_0x60152a(0x76)],'script':i[_0x60152a(0x70)][_0x96b7e9][_0x60152a(0x7d)],'description':i[_0x60152a(0x70)][_0x96b7e9][_0x60152a(0x7a)]}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0xd020(_0xf72d51,_0x9756b0){const _0xb7a9c4=_0xb7a9();return _0xd020=function(_0xd020e1,_0x33e4d3){_0xd020e1=_0xd020e1-0x1f4;let _0x39e8ca=_0xb7a9c4[_0xd020e1];return _0x39e8ca;},_0xd020(_0xf72d51,_0x9756b0);}const _0x5a466a=_0xd020;function _0xb7a9(){const _0x226914=['react-router-dom','exports','1220fHwCxH','recoil','postcss-cli@^8','cross-env','zmp-framework','postcss@^8','swiper','1crLLfV','less','vue','postinstall','./generate-npm-scripts','1219799GnqpSr','1100LzGDkb','react-typescript','@vitejs/plugin-react-refresh','\x22,\x0a\x20\x20\x22private\x22:\x20true,\x0a\x20\x20\x22version\x22:\x20\x221.0.0\x22,\x0a\x20\x20\x22description\x22:\x20\x22','6774JVftHP','\x20&&\x20','@vue/compiler-sfc','core','join','stringify','script','25762ZVcYCV','name','stylus','@types/react','zmp-ui','\x0a{\x0a\x20\x20\x22name\x22:\x20\x22','react-dom','@types/react-router-dom','vite@2.6.14',',\x0a\x20\x20\x22dependencies\x22:\x20{},\x0a\x20\x20\x22devDependencies\x22:\x20{}\x0a}\x0a','length','1063376nwEhjJ','package','replace','@types/react-dom','4OSrzHG','sass','prop-types','1398951LvKIWG','vue@3','forEach','258728OXbWnv','push','react','731316pZGbJl'];_0xb7a9=function(){return _0x226914;};return _0xb7a9();}(function(_0x1a0df0,_0x5506a4){const _0x43c00f=_0xd020,_0x2fdbf2=_0x1a0df0();while(!![]){try{const _0x53c11f=parseInt(_0x43c00f(0x216))/0x1*(-parseInt(_0x43c00f(0x209))/0x2)+parseInt(_0x43c00f(0x20c))/0x3*(-parseInt(_0x43c00f(0x203))/0x4)+-parseInt(_0x43c00f(0x21c))/0x5*(parseInt(_0x43c00f(0x220))/0x6)+parseInt(_0x43c00f(0x21b))/0x7+parseInt(_0x43c00f(0x1ff))/0x8+parseInt(_0x43c00f(0x206))/0x9+-parseInt(_0x43c00f(0x20f))/0xa*(-parseInt(_0x43c00f(0x1f4))/0xb);if(_0x53c11f===_0x5506a4)break;else _0x2fdbf2['push'](_0x2fdbf2['shift']());}catch(_0x1b6b2b){_0x2fdbf2['push'](_0x2fdbf2['shift']());}}}(_0xb7a9,0x1ef6a));const e=require('./generate-npm-scripts'),{generateTailWindScripts:s}=require(_0x5a466a(0x21a));module[_0x5a466a(0x20e)]=function(_0x3fc912){const _0x3657da=_0x5a466a;let {name:_0x12fcd3,framework:_0x434a0b,cssPreProcessor:_0x39baeb,includeTailwind:_0x16735b,stateManagement:_0x475122}=_0x3fc912,_0x3635a9=_0x3657da(0x1f8)===_0x3fc912[_0x3657da(0x200)]?[_0x3657da(0x1f8),'zmp-sdk',_0x3657da(0x20d)]:[_0x3657da(0x213),'zmp-sdk',_0x3657da(0x215)],_0x3187bd=[_0x3657da(0x20b),_0x3657da(0x1fa),_0x3657da(0x205)],_0x503322=['autoprefixer','tailwindcss',_0x3657da(0x214),_0x3657da(0x211)];_0x3657da(0x218)===_0x434a0b?_0x3635a9['push'](_0x3657da(0x207),_0x3657da(0x213)):(_0x3657da(0x20b)===_0x434a0b||_0x3657da(0x21d)===_0x434a0b)&&(_0x3635a9[_0x3657da(0x20a)](..._0x3187bd),'recoil'===_0x475122&&_0x3635a9['push'](_0x3657da(0x210)));let _0x85fa67=[_0x3657da(0x212),'postcss-preset-env@6.7.0',_0x3657da(0x1fc)];_0x3657da(0x21d)===_0x434a0b&&(_0x85fa67[_0x3657da(0x20a)](_0x3657da(0x1f7),_0x3657da(0x202)),_0x3657da(0x1f8)===_0x3fc912[_0x3657da(0x200)]&&_0x85fa67[_0x3657da(0x20a)](_0x3657da(0x1fb))),_0x3657da(0x1f6)===_0x39baeb?_0x85fa67['push'](_0x3657da(0x1f6)):_0x3657da(0x217)===_0x39baeb?_0x85fa67[_0x3657da(0x20a)]('less'):'scss'===_0x39baeb&&_0x85fa67['push'](_0x3657da(0x204));let _0x4bf425=[_0x3657da(0x21e)];_0x3657da(0x20b)===_0x434a0b||_0x3657da(0x21d)===_0x434a0b?_0x85fa67['push'](_0x4bf425,..._0x16735b?_0x503322:[]):_0x3657da(0x218)===_0x434a0b?_0x85fa67[_0x3657da(0x20a)]('@vitejs/plugin-vue@2.3.3',_0x3657da(0x222),..._0x16735b?_0x503322:[]):_0x3657da(0x223)===_0x434a0b&&_0x85fa67['push']('zmp-loader',..._0x16735b?_0x503322:[]),_0x3657da(0x1f8)===_0x3fc912[_0x3657da(0x200)]&&(_0x3635a9[_0x3657da(0x20a)]('recoil'),_0x3635a9['push'](..._0x3187bd),_0x85fa67[_0x3657da(0x20a)](_0x4bf425,..._0x16735b?_0x503322:[]));let _0x223e5c={};e()[_0x3657da(0x208)](_0x201624=>{const _0x3d7c85=_0x3657da;_0x223e5c[_0x201624[_0x3d7c85(0x1f5)]]=_0x201624['script'];}),_0x16735b&&s()[_0x3657da(0x208)](_0x31c588=>{const _0x169467=_0x3657da;_0x223e5c[_0x31c588[_0x169467(0x1f5)]]=_0x31c588[_0x169467(0x226)];});let _0x4ae491=[];return _0x4ae491[_0x3657da(0x1fe)]&&(_0x223e5c[_0x3657da(0x219)]=_0x4ae491[_0x3657da(0x224)](_0x3657da(0x221))),{'content':(_0x3657da(0x1f9)+_0x12fcd3['toLowerCase']()[_0x3657da(0x201)](/[ ]{2,}/,'\x20')[_0x3657da(0x201)](/ /g,'-')+_0x3657da(0x21f)+_0x12fcd3+'\x22,\x0a\x20\x20\x22repository\x22\x20:\x20\x22\x22,\x0a\x20\x20\x22license\x22\x20:\x20\x22UNLICENSED\x22,\x0a\x20\x20\x22browserslist\x22:\x20[\x0a\x20\x20\x20\x20\x22Android\x20>=\x205\x22,\x0a\x20\x20\x20\x20\x22IOS\x20>=\x209.3\x22,\x0a\x20\x20\x20\x20\x22Edge\x20>=\x2015\x22,\x0a\x20\x20\x20\x20\x22Safari\x20>=\x209.1\x22,\x0a\x20\x20\x20\x20\x22Chrome\x20>=\x2049\x22,\x0a\x20\x20\x20\x20\x22Firefox\x20>=\x2031\x22,\x0a\x20\x20\x20\x20\x22Samsung\x20>=\x205\x22\x0a\x20\x20],\x0a\x20\x20\x22scripts\x22\x20:\x20'+JSON[_0x3657da(0x225)](_0x223e5c)+_0x3657da(0x1fd))['trim'](),'dependencies':_0x3635a9,'devDependencies':_0x85fa67,'postInstall':_0x4ae491};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2dd897=_0x5591;(function(_0x3b2c35,_0x4b741e){const _0x4ea957=_0x5591,_0x259907=_0x3b2c35();while(!![]){try{const _0x1dae80=parseInt(_0x4ea957(0x10f))/0x1+parseInt(_0x4ea957(0x10d))/0x2+parseInt(_0x4ea957(0x10e))/0x3+-parseInt(_0x4ea957(0x113))/0x4+parseInt(_0x4ea957(0x10b))/0x5+-parseInt(_0x4ea957(0x10a))/0x6*(parseInt(_0x4ea957(0x114))/0x7)+parseInt(_0x4ea957(0x10c))/0x8*(-parseInt(_0x4ea957(0x109))/0x9);if(_0x1dae80===_0x4b741e)break;else _0x259907['push'](_0x259907['shift']());}catch(_0x10eedb){_0x259907['push'](_0x259907['shift']());}}}(_0x573c,0x819a6));function _0x5591(_0x355333,_0x58165b){const _0x573cfb=_0x573c();return _0x5591=function(_0x559148,_0x42e5df){_0x559148=_0x559148-0x107;let _0x549cb3=_0x573cfb[_0x559148];return _0x549cb3;},_0x5591(_0x355333,_0x58165b);}function _0x573c(){const _0x5bf889=['249578NaRfNz','\x0a```\x0a\x0a##\x20NPM\x20Scripts\x0a\x0a','description','icon','./generate-npm-scripts','trim','exports','replace','map','531gxQrel','54eGwbXE','1698810DENeRH','63864oPvOxE','102996leiqBt','2722848OIbESU','837690bBrXPu','name','\x0a\x0a#\x20','join','3255316thQQGc'];_0x573c=function(){return _0x5bf889;};return _0x573c();}const e=require(_0x2dd897(0x118));module[_0x2dd897(0x11a)]=_0x277362=>{const _0x368955=_0x2dd897;let {name:_0x44eb9b}=_0x277362,_0x2202ba=e()[_0x368955(0x108)](_0x4aa347=>'*\x20'+_0x4aa347[_0x368955(0x117)]+'\x20`'+_0x4aa347[_0x368955(0x110)]+'`\x20-\x20'+_0x4aa347[_0x368955(0x116)]);return(_0x368955(0x111)+_0x44eb9b+'\x0a\x0a##\x20ZMP\x20CLI\x20Options\x0a\x0aZMP\x20app\x20created\x20with\x20following\x20options:\x0a\x0a```\x0a'+JSON['stringify'](_0x277362,null,0x2)+_0x368955(0x115)+_0x2202ba[_0x368955(0x112)]('\x0a')+'\x0a')[_0x368955(0x119)]()[_0x368955(0x107)](/[\n]{3,}/,'\x0a');};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1f864f=_0x3677;(function(_0xc25af4,_0x9750e1){const _0x18d53c=_0x3677,_0x2836dc=_0xc25af4();while(!![]){try{const _0x1875fb=-parseInt(_0x18d53c(0x170))/0x1*(-parseInt(_0x18d53c(0x157))/0x2)+-parseInt(_0x18d53c(0x18a))/0x3*(-parseInt(_0x18d53c(0x17e))/0x4)+parseInt(_0x18d53c(0x18f))/0x5+-parseInt(_0x18d53c(0x172))/0x6+-parseInt(_0x18d53c(0x18e))/0x7+-parseInt(_0x18d53c(0x180))/0x8+parseInt(_0x18d53c(0x184))/0x9*(-parseInt(_0x18d53c(0x188))/0xa);if(_0x1875fb===_0x9750e1)break;else _0x2836dc['push'](_0x2836dc['shift']());}catch(_0x4af34e){_0x2836dc['push'](_0x2836dc['shift']());}}}(_0x330a,0x5e9c2));const e=require(_0x1f864f(0x18b));var t=require(_0x1f864f(0x190));const {projectFramework:o}=require('../../utils/constants'),a=t[_0x1f864f(0x174)]('\x09-\x20Including\x20Tailwind\x20CSS\x0a\x09-\x20Including\x20Recoil\x20(React\x20only)'),n=[{'type':'list','name':_0x1f864f(0x16f),'message':'What\x20action\x20you\x20want\x20to\x20do?','choices':[{'name':_0x1f864f(0x179),'value':!0x0},{'name':'Using\x20ZMP\x20to\x20deploy\x20only','value':!0x1}]},{'type':'input','name':'name','message':'App\x20(project)\x20name:','default':_0x1f864f(0x16a),'validate':_0x4087c2=>new Promise((_0x30da01,_0x5c16fd)=>{const _0x4be9eb=_0x1f864f;_0x4087c2?_0x30da01(!0x0):_0x5c16fd(Error(_0x4be9eb(0x183)));})},{'type':_0x1f864f(0x160),'name':_0x1f864f(0x159),'when':_0x346c8d=>_0x346c8d[_0x1f864f(0x16f)],'message':_0x1f864f(0x166),'choices':[{'name':_0x1f864f(0x16d),'value':_0x1f864f(0x16d)}]},{'type':_0x1f864f(0x160),'name':'framework','when':_0x1167a1=>'zmp-ui'==_0x1167a1[_0x1f864f(0x159)],'message':_0x1f864f(0x191),'choices':[{'name':_0x1f864f(0x185),'value':o[_0x1f864f(0x17d)]},{'name':_0x1f864f(0x175),'value':o[_0x1f864f(0x15f)]}]},{'type':_0x1f864f(0x160),'name':'cssPreProcessor','when':_0x4060fb=>_0x4060fb[_0x1f864f(0x16f)],'message':_0x1f864f(0x18d),'default':!0x1,'choices':[{'name':_0x1f864f(0x152),'value':!0x1},{'name':_0x1f864f(0x153),'value':_0x1f864f(0x15a)},{'name':_0x1f864f(0x177),'value':_0x1f864f(0x156)},{'name':_0x1f864f(0x17a),'value':_0x1f864f(0x181)}]},{'type':_0x1f864f(0x160),'name':_0x1f864f(0x173),'when':_0x4ff16b=>_0x1f864f(0x16d)===_0x4ff16b[_0x1f864f(0x159)],'message':_0x1f864f(0x164),'choices':[{'name':'Blank','value':_0x1f864f(0x155)},{'name':_0x1f864f(0x187),'value':'single-view'}]},{'type':_0x1f864f(0x160),'name':_0x1f864f(0x16e),'when':_0x4e782e=>_0x4e782e[_0x1f864f(0x16f)]&&_0x1f864f(0x16d)!==_0x4e782e[_0x1f864f(0x159)],'message':_0x1f864f(0x15d),'choices':[{'name':_0x1f864f(0x182),'value':!0x1},{'name':_0x1f864f(0x15b),'value':!0x0}]},{'type':_0x1f864f(0x178),'name':_0x1f864f(0x169),'message':_0x1f864f(0x15e),'when':_0x6ffb6b=>!0x0===_0x6ffb6b[_0x1f864f(0x16e)],'validate':_0x5a0184=>new Promise((_0x5cf024,_0x5119b8)=>{const _0x2a6701=_0x1f864f;let _0x3ffaef=_0x5a0184[_0x2a6701(0x17c)](/#/g,'');0x3===_0x3ffaef['length']||0x6===_0x3ffaef[_0x2a6701(0x167)]?_0x5cf024(!0x0):_0x5119b8(Error(_0x2a6701(0x18c)));}),'filter':_0x28395f=>_0x28395f[_0x1f864f(0x17c)](/#/g,'')},{'type':'list','name':_0x1f864f(0x189),'when':_0x1e9949=>_0x1e9949[_0x1f864f(0x16f)],'message':_0x1f864f(0x165)+a,'default':!0x1,'choices':[{'name':_0x1f864f(0x16c),'value':!0x1},{'name':'Yes,\x20I\x20want\x20to\x20get\x20more\x20options','value':!0x0}]},{'type':'list','name':_0x1f864f(0x16b),'when':_0x22de20=>_0x22de20[_0x1f864f(0x189)],'message':_0x1f864f(0x17f),'default':!0x0,'choices':[{'name':'Yes,\x20I\x20want\x20to\x20iclude\x20Tailwind\x20CSS','value':!0x0},{'name':'No','value':!0x1}]}];module[_0x1f864f(0x163)]=function(){const _0x2d3cd0=_0x1f864f;return e[_0x2d3cd0(0x168)](n)[_0x2d3cd0(0x17b)](_0x2b86dc=>(_0x2b86dc['theming']={'customColor':_0x2b86dc[_0x2d3cd0(0x16e)],'color':_0x2b86dc[_0x2d3cd0(0x16e)]&&_0x2b86dc[_0x2d3cd0(0x169)]?'#'+_0x2b86dc[_0x2d3cd0(0x169)]:_0x2d3cd0(0x171),'darkTheme':!0x1,'iconFonts':_0x2b86dc[_0x2d3cd0(0x162)],'fillBars':!0x1,'useUiKits':_0x2b86dc[_0x2d3cd0(0x186)]},_0x2b86dc[_0x2d3cd0(0x158)]=!0x1,_0x2b86dc[_0x2d3cd0(0x16b)]=_0x2b86dc[_0x2d3cd0(0x189)]&&_0x2b86dc[_0x2d3cd0(0x16b)],_0x2b86dc['stateManagement']||(_0x2b86dc[_0x2d3cd0(0x154)]=_0x2d3cd0(0x161)),_0x2d3cd0(0x16d)===_0x2b86dc[_0x2d3cd0(0x159)]&&(_0x2b86dc[_0x2d3cd0(0x154)]=_0x2d3cd0(0x15c)),delete _0x2b86dc[_0x2d3cd0(0x16e)],delete _0x2b86dc[_0x2d3cd0(0x169)],delete _0x2b86dc[_0x2d3cd0(0x162)],delete _0x2b86dc[_0x2d3cd0(0x186)],delete _0x2b86dc[_0x2d3cd0(0x189)],Promise[_0x2d3cd0(0x176)](_0x2b86dc)));};function _0x3677(_0x389462,_0x3048f2){const _0x330a87=_0x330a();return _0x3677=function(_0x3677ff,_0x2bb918){_0x3677ff=_0x3677ff-0x152;let _0x205955=_0x330a87[_0x3677ff];return _0x205955;},_0x3677(_0x389462,_0x3048f2);}function _0x330a(){const _0x531398=['React\x20Typescript','resolve','SCSS\x20(SASS)','input','Create\x20a\x20new\x20ZMP\x20project','Stylus','then','replace','REACT','4mBzUGK','Do\x20you\x20want\x20to\x20include\x20Tailwind\x20CSS?','1882320unjTdL','stylus','No,\x20use\x20default\x20color\x20theme','App\x20name\x20is\x20required','891hVVqTe','ReactJS','useUIKits','Single\x20View','49230vpHPzo','moreOptions','649617lLnmhc','inquirer','It\x20doesn\x27t\x20look\x20like\x20a\x20correct\x20HEX\x20number','Do\x20you\x20want\x20to\x20setup\x20CSS\x20Pre-Processor','1207451sFsZLs','3857970ThexJH','chalk','What\x20type\x20of\x20framework/library\x20do\x20you\x20prefer?','No,\x20i\x20am\x20good\x20with\x20CSS','Less','stateManagement','blank','scss','2zApqqQ','customBuild','package','less','Yes,\x20i\x20want\x20to\x20specify\x20my\x20brand\x20color','recoil','Do\x20you\x20want\x20to\x20specify\x20custom\x20theme\x20color?','Enter\x20custom\x20theme\x20color\x20in\x20HEX\x20format\x20(e.g.\x20ff0000)','REACT_TYPESCRIPT','list','store','themingIconFonts','exports','Choose\x20starter\x20template:','More\x20Options?\x0a','Choose\x20an\x20UI\x20library','length','prompt','themingColor','My\x20App','includeTailwind','No,\x20I\x20want\x20to\x20complete\x20initializing\x20process\x20now','zmp-ui','themingCustomColor','newProject','382528lhvtaG','#007aff','527874jljdjF','template','italic'];_0x330a=function(){return _0x531398;};return _0x330a();}
|
package/create/utils/indent.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x2b64(_0xdb4cb0,_0x34071d){const _0x2d7f95=_0x2d7f();return _0x2b64=function(_0x2b644c,_0x26e701){_0x2b644c=_0x2b644c-0x183;let _0x268982=_0x2d7f95[_0x2b644c];return _0x268982;},_0x2b64(_0xdb4cb0,_0x34071d);}const _0x3216f5=_0x2b64;function _0x2d7f(){const _0x27b2a6=['4122045YWToXJ','length','repeat','1889490fGTThw','293228tdxBip','map','1NLIAKH','14rNgswj','12802190srxdPI','3619995HIFoyh','filter','max','forEach','split','543124HgUsBr','exports','2413312ZVqowN','trim','match','15xiSyvX','min','replace'];_0x2d7f=function(){return _0x27b2a6;};return _0x2d7f();}(function(_0x5ae674,_0x1e6aa9){const _0x36293c=_0x2b64,_0x3355a0=_0x5ae674();while(!![]){try{const _0x2dcdcb=parseInt(_0x36293c(0x189))/0x1*(parseInt(_0x36293c(0x187))/0x2)+-parseInt(_0x36293c(0x196))/0x3*(-parseInt(_0x36293c(0x191))/0x4)+parseInt(_0x36293c(0x18c))/0x5+-parseInt(_0x36293c(0x186))/0x6*(parseInt(_0x36293c(0x18a))/0x7)+parseInt(_0x36293c(0x193))/0x8+parseInt(_0x36293c(0x183))/0x9+-parseInt(_0x36293c(0x18b))/0xa;if(_0x2dcdcb===_0x1e6aa9)break;else _0x3355a0['push'](_0x3355a0['shift']());}catch(_0x34580a){_0x3355a0['push'](_0x3355a0['shift']());}}}(_0x2d7f,0x61722));module[_0x3216f5(0x192)]=(_0x5b6066,_0xe85355)=>{const _0x297881=_0x3216f5;let _0x48360b;return void 0x0===_0x5b6066?_0xe85355[_0x297881(0x194)]():(_0xe85355[_0x297881(0x190)]('\x0a')[_0x297881(0x18f)](_0xe4bcc7=>{const _0xb7b9b5=_0x297881;let _0x263739=_0xe4bcc7[_0xb7b9b5(0x195)](/[ ]*/);if(_0x263739){if(_0x263739[0x0][_0xb7b9b5(0x184)]===_0xe4bcc7['length'])return;_0x48360b=void 0x0===_0x48360b?_0x263739[0x0]['length']:Math[_0xb7b9b5(0x197)](_0x48360b,_0x263739[0x0][_0xb7b9b5(0x184)]);}}),void 0x0===_0x48360b)?_0xe85355[_0x297881(0x194)]():_0xe85355[_0x297881(0x190)]('\x0a')[_0x297881(0x188)](_0x2b7cdd=>{const _0x24b1df=_0x297881;let _0x32dfd9=_0x2b7cdd[_0x24b1df(0x195)](/[ ]*/),_0x6bca92=0x0;return _0x32dfd9&&(_0x6bca92=Math[_0x24b1df(0x18e)](_0x32dfd9[0x0][_0x24b1df(0x184)]-_0x48360b,0x0)),''+'\x20'[_0x24b1df(0x185)](_0x5b6066+_0x6bca92)+_0x2b7cdd[_0x24b1df(0x198)](/^\s+/,'');})[_0x297881(0x188)](_0xd2e103=>!_0xd2e103[_0x297881(0x194)]()[_0x297881(0x184)]&&_0xd2e103[_0x297881(0x184)]?_0xd2e103['trim']():_0xd2e103)[_0x297881(0x18d)]((_0x500660,_0x41908e,_0x1d7450)=>(0x0!==_0x41908e||!!_0x500660[_0x297881(0x194)]()['length']||!_0x500660['length'])&&(_0x41908e!==_0x1d7450['length']-0x1||!!_0x500660[_0x297881(0x194)]()[_0x297881(0x184)]||!_0x500660[_0x297881(0x184)]))['join']('\x0a');};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x4160c0=_0x4ed9;(function(_0x32f0bf,_0x2a7a14){const _0x14b14c=_0x4ed9,_0x22aa0d=_0x32f0bf();while(!![]){try{const _0x1d5ad2=-parseInt(_0x14b14c(0x177))/0x1*(parseInt(_0x14b14c(0x171))/0x2)+-parseInt(_0x14b14c(0x173))/0x3+parseInt(_0x14b14c(0x189))/0x4+-parseInt(_0x14b14c(0x185))/0x5*(-parseInt(_0x14b14c(0x174))/0x6)+-parseInt(_0x14b14c(0x172))/0x7+parseInt(_0x14b14c(0x180))/0x8*(-parseInt(_0x14b14c(0x17f))/0x9)+parseInt(_0x14b14c(0x176))/0xa;if(_0x1d5ad2===_0x2a7a14)break;else _0x22aa0d['push'](_0x22aa0d['shift']());}catch(_0x580a42){_0x22aa0d['push'](_0x22aa0d['shift']());}}}(_0x392b,0xc99af));function _0x4ed9(_0x55083d,_0x1e5074){const _0x392b4e=_0x392b();return _0x4ed9=function(_0x4ed95c,_0x4145de){_0x4ed95c=_0x4ed95c-0x16e;let _0x15708e=_0x392b4e[_0x4ed95c];return _0x15708e;},_0x4ed9(_0x55083d,_0x1e5074);}const e={'d':_0x4160c0(0x188),'p':_0x4160c0(0x17a),'s':_0x4160c0(0x179),'v':_0x4160c0(0x18b),'r':'deploy','t':_0x4160c0(0x17b)};function s(_0x547bdd){const _0x2fc588=_0x4160c0;return _0x547bdd[_0x2fc588(0x182)]('_')[0x0][_0x2fc588(0x182)]('')[_0x2fc588(0x17d)](_0x5d4762=>e[_0x5d4762])[_0x2fc588(0x18a)]('-');}const t={'default':{'s':{'icon':'🔥','script':'zmp\x20start','description':_0x4160c0(0x186)},'r':{'icon':'🙏','script':_0x4160c0(0x178),'description':_0x4160c0(0x187)}},'httpServer':{'v':{'icon':'🔧','script':_0x4160c0(0x17e),'description':'run\x20development\x20server'},'s':{'icon':'🔥','script':'npm\x20run\x20serve','description':_0x4160c0(0x186)}},'tailwind':{'t':{'icon':'🔧','script':_0x4160c0(0x175),'description':_0x4160c0(0x16f)}}};function _0x392b(){const _0x1d2407=['2517752XhyvED','httpServer','split','name','default','25EQaldT','run\x20development\x20server','deploy\x20mini\x20app\x20for\x20production','dev','4199364pzmaHk','join','serve','exports','build\x20tailwind\x20css','tailwind','2szOisP','5589444rgYdxL','998313MEUtpq','1259610OhlFOW','postcss\x20src/css/tailwind.css\x20-o\x20src/css/styles.css','8983550fORdGH','726114kWPWsM','zmp\x20deploy','start','prod','build:css','keys','map','http-server\x20./www/\x20-o\x20-c\x201\x20-a\x20localhost\x20-p\x208080','9ybjWmK'];_0x392b=function(){return _0x1d2407;};return _0x392b();}Object[_0x4160c0(0x17c)](t[_0x4160c0(0x184)])['forEach'](_0x4a8a97=>{const _0x68a582=_0x4160c0;t[_0x68a582(0x184)][_0x4a8a97][_0x68a582(0x183)]=s(_0x4a8a97);}),Object[_0x4160c0(0x17c)](t[_0x4160c0(0x181)])['forEach'](_0x1c08c8=>{const _0xa9844a=_0x4160c0;t[_0xa9844a(0x181)][_0x1c08c8][_0xa9844a(0x183)]=s(_0x1c08c8);}),Object[_0x4160c0(0x17c)](t[_0x4160c0(0x170)])['forEach'](_0x353693=>{const _0xd6163f=_0x4160c0;t[_0xd6163f(0x170)][_0x353693]['name']=s(_0x353693);}),module[_0x4160c0(0x16e)]=t;
|
package/create/utils/string.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x1f7beb=_0x1638;(function(_0x4b5a07,_0x141cd5){var _0xa28e98=_0x1638,_0x529223=_0x4b5a07();while(!![]){try{var _0x266f94=parseInt(_0xa28e98(0x1d2))/0x1+-parseInt(_0xa28e98(0x1d5))/0x2*(-parseInt(_0xa28e98(0x1cd))/0x3)+parseInt(_0xa28e98(0x1c7))/0x4*(-parseInt(_0xa28e98(0x1d4))/0x5)+-parseInt(_0xa28e98(0x1c8))/0x6*(parseInt(_0xa28e98(0x1ce))/0x7)+-parseInt(_0xa28e98(0x1c9))/0x8*(-parseInt(_0xa28e98(0x1d1))/0x9)+-parseInt(_0xa28e98(0x1d7))/0xa+parseInt(_0xa28e98(0x1cf))/0xb;if(_0x266f94===_0x141cd5)break;else _0x529223['push'](_0x529223['shift']());}catch(_0x47f82e){_0x529223['push'](_0x529223['shift']());}}}(_0x5cda,0x67bcd));function _0x5cda(){var _0x57ee38=['116374OPcZpE','map','49085GjQbRr','20926lcXCDR','exports','1844840yAHTUi','332BLymVr','6BNJDSG','64vyFdBa','toUpperCase','split','join','105hHnZrN','236922vxuine','4897277LdcgzP','substring','596547ldZpHB'];_0x5cda=function(){return _0x57ee38;};return _0x5cda();}function _0x1638(_0x314575,_0x506781){var _0x5cda3c=_0x5cda();return _0x1638=function(_0x163852,_0x21c498){_0x163852=_0x163852-0x1c7;var _0x11b68a=_0x5cda3c[_0x163852];return _0x11b68a;},_0x1638(_0x314575,_0x506781);}module[_0x1f7beb(0x1d6)]={'capitalize':_0x421247=>_0x421247?_0x421247[_0x1f7beb(0x1cb)](/[,.\-_\s]/)[_0x1f7beb(0x1d3)](_0x61d413=>_0x61d413[0x0][_0x1f7beb(0x1ca)]()+_0x61d413[_0x1f7beb(0x1d0)](0x1))[_0x1f7beb(0x1cc)](''):''};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x4ef40a=_0x218e;(function(_0x22d5ed,_0xab1ab5){var _0x1d7239=_0x218e,_0x21a5bb=_0x22d5ed();while(!![]){try{var _0x51a03f=parseInt(_0x1d7239(0xe0))/0x1+-parseInt(_0x1d7239(0xd9))/0x2*(-parseInt(_0x1d7239(0xe3))/0x3)+-parseInt(_0x1d7239(0xe1))/0x4+parseInt(_0x1d7239(0xda))/0x5*(parseInt(_0x1d7239(0xd7))/0x6)+-parseInt(_0x1d7239(0xde))/0x7*(-parseInt(_0x1d7239(0xd8))/0x8)+parseInt(_0x1d7239(0xdc))/0x9*(parseInt(_0x1d7239(0xe4))/0xa)+-parseInt(_0x1d7239(0xdf))/0xb*(parseInt(_0x1d7239(0xdd))/0xc);if(_0x51a03f===_0xab1ab5)break;else _0x21a5bb['push'](_0x21a5bb['shift']());}catch(_0x284772){_0x21a5bb['push'](_0x21a5bb['shift']());}}}(_0x4c4a,0x32b17));module[_0x4ef40a(0xe2)]=_0x440c71=>_0x440c71?{'less':'less','stylus':_0x4ef40a(0xe5),'scss':_0x4ef40a(0xdb)}[_0x440c71]:'css';function _0x218e(_0x5a7019,_0x1e428a){var _0x4c4ac7=_0x4c4a();return _0x218e=function(_0x218e45,_0x4045b3){_0x218e45=_0x218e45-0xd7;var _0x4a8502=_0x4c4ac7[_0x218e45];return _0x4a8502;},_0x218e(_0x5a7019,_0x1e428a);}function _0x4c4a(){var _0x34b9a3=['2050edJdjt','styl','10902BoXTjK','654392hnHRnb','202646ExWWWg','120rILtcg','scss','1008PdtreR','1116TYHYJw','14kdDOjJ','4829rxwiiQ','118771FTzELg','1212468MEtijN','exports','6wbjWds'];_0x4c4a=function(){return _0x34b9a3;};return _0x4c4a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function _0x5f4f(_0x1ee042,_0x3256bd){var _0x3107cb=_0x3107();return _0x5f4f=function(_0x5f4fa4,_0x1ed903){_0x5f4fa4=_0x5f4fa4-0x1d5;var _0x5d3f6c=_0x3107cb[_0x5f4fa4];return _0x5d3f6c;},_0x5f4f(_0x1ee042,_0x3256bd);}var _0x26045d=_0x5f4f;(function(_0x59a474,_0x55ca28){var _0x421211=_0x5f4f,_0x3ace20=_0x59a474();while(!![]){try{var _0x5885c1=parseInt(_0x421211(0x1d7))/0x1*(parseInt(_0x421211(0x1db))/0x2)+-parseInt(_0x421211(0x1d8))/0x3+parseInt(_0x421211(0x1de))/0x4+-parseInt(_0x421211(0x1da))/0x5*(-parseInt(_0x421211(0x1d6))/0x6)+parseInt(_0x421211(0x1d9))/0x7+-parseInt(_0x421211(0x1df))/0x8+parseInt(_0x421211(0x1dd))/0x9*(parseInt(_0x421211(0x1dc))/0xa);if(_0x5885c1===_0x55ca28)break;else _0x3ace20['push'](_0x3ace20['shift']());}catch(_0x5dff19){_0x3ace20['push'](_0x3ace20['shift']());}}}(_0x3107,0xd1568));function _0x3107(){var _0x43fada=['32989RbUAxm','5030619wOPXhb','1667582FxPRWn','5HMMBSw','36SyloYm','170dbjZDP','759915WyNZwv','2425748FGLnLK','6611688MSksKd','trim','2921532JJdQyA'];_0x3107=function(){return _0x43fada;};return _0x3107();}module['exports']=(_0x23be30,_0x339762,_0x15a739)=>_0x23be30?_0x339762()[_0x26045d(0x1d5)]():_0x15a739?_0x15a739()['trim']():'';
|