UNPKG

mixone

Version:

MixOne is a Node scaffolding tool implemented based on Vite, used for compiling HTML5, JavasCript, Vue, React and other codes. It supports packaging Web applications with multiple HTML entry points (BS architecture) and desktop installation packages (CS a

1 lines 5.8 kB
const P=d;(function(e,f){const K=d,g=e();while(!![]){try{const h=-parseInt(K(0xe3))/0x1*(-parseInt(K(0xb4))/0x2)+parseInt(K(0x9a))/0x3*(parseInt(K(0xc5))/0x4)+parseInt(K(0xe8))/0x5+-parseInt(K(0xd9))/0x6+parseInt(K(0xaf))/0x7*(-parseInt(K(0xa1))/0x8)+-parseInt(K(0xab))/0x9*(-parseInt(K(0xc3))/0xa)+parseInt(K(0xb6))/0xb*(parseInt(K(0xca))/0xc);if(h===f)break;else g['push'](g['shift']());}catch(i){g['push'](g['shift']());}}}(c,0x4bf48));const b=(function(){const L=d,e={'aVdcO':'fPtDj','ZoawN':L(0xd6),'kgKCg':L(0xaa)};let f=!![];return function(g,h){const M=L;if(M(0x96)!==e['kgKCg']){const i=f?function(){const N=M,j={'jHjtf':N(0xbd),'THEYR':'page.jsx'};if(h){if(e[N(0xe6)]!==e[N(0x9b)]){const k=h[N(0xe2)](g,arguments);return h=null,k;}else(i[N(0xe9)](j[N(0x98)])||j[N(0xe9)](j[N(0xc6)]))&&m[N(0xc9)](n);}}:function(){};return f=![],i;}else{const l=h[M(0xe2)](i,arguments);return j=null,l;}};}()),a=b(this,function(){const O=d,e={'bQojN':O(0xa0)};return a['toString']()[O(0xb2)](e[O(0xeb)])[O(0xb1)]()[O(0xae)](a)[O(0xb2)](e[O(0xeb)]);});a();const fs=require('fs'),path=require('path'),statePath=path[P(0xe4)](__dirname,'..',P(0xb7));function setWatchingStatus(e){const Q=P,f={'uoIvn':Q(0xc4),'aPlTN':'Monitoring\x20status\x20set:\x20disabled','Gzzak':function(g,h){return g===h;},'ymUUR':Q(0xc0),'dJtGF':Q(0xcc),'ZXeQa':'VKgsi','BwwKm':Q(0xbe),'XpwNp':function(g,h){return g!==h;},'ekNNc':Q(0xa8),'fiTUV':Q(0xc7)};try{if(f['Gzzak'](f[Q(0xcd)],Q(0xba)))return g[Q(0x91)](h);else{if(e)fs['writeFileSync'](statePath,new Date()['toISOString']()),console[Q(0xd4)](f[Q(0xdb)]);else{if(f['ZXeQa']===Q(0xa2)){if(fs[Q(0x91)](statePath)){if(f['Gzzak'](f[Q(0xd8)],Q(0xbe)))fs[Q(0xdd)](statePath),console['log'](f['aPlTN']);else return g['error'](f[Q(0xdc)],h),![];}}else{if(i){const j=m[Q(0xe2)](n,arguments);return o=null,j;}}}}}catch(j){f[Q(0xbc)](f['ekNNc'],f[Q(0x93)])?console[Q(0xd5)]('Failed\x20to\x20set\x20monitoring\x20status:',j):(h[Q(0xdd)](i),j['log'](f[Q(0xb3)]));}}function d(a,b){const e=c();return d=function(f,g){f=f-0x91;let h=e[f];return h;},d(a,b);}function isWatchingActive(){const R=P,e={'FMWZu':R(0xc4)};try{return fs['existsSync'](statePath);}catch(f){return console[R(0xd5)](e[R(0xa4)],f),![];}}function cleanupWatchStatus(){const S=P,e={'KepOQ':S(0xd3)};try{fs[S(0x91)](statePath)&&(fs[S(0xdd)](statePath),console[S(0xd4)](e[S(0xcf)]));}catch(f){console[S(0xd5)](S(0xdf),f);}}process['on']('exit',cleanupWatchStatus),process['on'](P(0x97),()=>{const T=P,e={'eTsNF':function(f){return f();}};e[T(0xc1)](cleanupWatchStatus),process[T(0x99)](0x0);});function c(){const Y=['GHTzn','mQQYX','apply','476877ONTzXR','join','jneij','aVdcO','lrhHe','756165WIgfFE','endsWith','fVrDZ','bQojN','statSync','pmTDb','toLowerCase','existsSync','kugqc','fiTUV','inGWW','isDirectory','hUGxR','SIGINT','jHjtf','exit','3faYbyQ','ZoawN','fmWla','zsfky','XtKNl','Monitoring\x20status\x20set:\x20disabled','(((.+)+)+)+$','8EAVdbe','VKgsi','ckIUp','FMWZu','qMllT','cGGHk','windows','Kquri','rxBbp','QxqLy','2312829fzJWll','KZjLs','find','constructor','3544912UoTvFq','jbbZk','toString','search','aPlTN','2BHpdNu','-window','2552LxBdde','.watch-status','NdHzo','ddTNp','SqtiN','PbZpC','XpwNp','page.vue','uXrFU','dirname','onUqX','eTsNF','NIWbg','20icYRsk','Failed\x20to\x20check\x20monitoring\x20status:','269092iPzeyU','THEYR','GJdSR','basename','push','1404aBcSKJ','HJQWA','📝\x20Monitoring\x20status\x20set:\x20enabled','ymUUR','readdirSync','KepOQ','page.jsx','jtplC','dGjiQ','Watch\x20status\x20cleaned','log','error','WWfdq','BSYxZ','BwwKm','2513766QoFTWM','hdAld','dJtGF','uoIvn','unlinkSync','nCqSU','Failed\x20to\x20clean\x20watch\x20status:'];c=function(){return Y;};return c();}const getWindowDirectory=e=>{const U=P,f={'ddTNp':'Failed\x20to\x20check\x20monitoring\x20status:','kugqc':function(i,j){return i(j);},'zsfky':U(0xa5),'loOfy':U(0xb5),'dGjiQ':function(i,j){return i!==j;},'fVrDZ':U(0xe5),'PbZpC':U(0xa7),'rxBbp':function(i,j){return i===j;},'nCqSU':function(i,j){return i===j;},'GHTzn':U(0xda)},g=path['normalize'](e);let h=path[U(0xbf)](g);while(!![]){if(f[U(0x9d)]!==U(0xac)){const i=path[U(0xc8)](h),j=path[U(0xbf)](h);if(i[U(0xe9)](f['loOfy'])){if(f[U(0xd2)](f[U(0xea)],f[U(0xea)])){const l=k?function(){const V=U;if(l){const y=u[V(0xe2)](v,arguments);return w=null,y;}}:function(){};return p=![],l;}else return h;}else{if(i===f[U(0xbb)])return h;}if(f[U(0xa9)](h,j)){if(f[U(0xde)](U(0xd1),f[U(0xe0)]))try{return k[U(0x91)](l);}catch(m){return n[U(0xd5)](f[U(0xb9)],m),![];}else break;}h=j;}else h[U(0xc9)](...f[U(0x92)](i,j));}return null;},findPageFiles=e=>{const W=P,f={'gBKAn':'📝\x20Monitoring\x20status\x20set:\x20enabled','HJQWA':function(i,j){return i===j;},'cGGHk':W(0x9c),'MmyCf':W(0xb5),'lrhHe':function(i,j){return i(j);},'BSYxZ':function(i,j){return i!==j;},'ckIUp':'JWvxi','pmTDb':W(0xb0),'XtKNl':W(0xbd),'mQQYX':W(0x94)},g=[],h=fs[W(0xce)](e);for(const i of h){if(f[W(0xcb)](f[W(0xa6)],W(0x9c))){const j=path['join'](e,i),k=fs[W(0xec)](j);k[W(0x95)]()?!i[W(0xe9)](f['MmyCf'])&&g[W(0xc9)](...f[W(0xe7)](findPageFiles,j)):f[W(0xd7)](f[W(0xa3)],f[W(0xed)])?(i[W(0xe9)](f[W(0x9e)])||i[W(0xe9)](W(0xd0)))&&(f[W(0xd7)](f[W(0xe1)],f[W(0xe1)])?j['existsSync'](k)&&(o[W(0xdd)](p),q[W(0xd4)]('Watch\x20status\x20cleaned')):g[W(0xc9)](j)):(g(),h[W(0x99)](0x0));}else o?(y['writeFileSync'](z,new A()['toISOString']()),B[W(0xd4)](f['gBKAn'])):C[W(0x91)](D)&&(H[W(0xdd)](I),J['log'](W(0x9f)));}return g;},isPageComponent=e=>{const X=P,f={'NdHzo':'page.vue','NIWbg':X(0xd0)},g=e[X(0xee)]();return[f[X(0xb8)],f[X(0xc2)],'page.tsx'][X(0xad)](h=>g[X(0xe9)](h))?!![]:![];};module['exports']={'setWatchingStatus':setWatchingStatus,'isWatchingActive':isWatchingActive,'cleanupWatchStatus':cleanupWatchStatus,'getWindowDirectory':getWindowDirectory,'isPageComponent':isPageComponent};