version-manager.js 5.6 KB

1
  1. var _0x2e49=['version','upgrade','package_download_url','dialogMsgBox','update_version_tips','localVersion','btn_ok','csEvent','../../../vue','shift','use\x20strict','update','enableUpdate','getServicePluginInfo','value','csEditor','service','\x20:\x20','defineProperty','info','selected','getVersionDesc','service_component_name','package_version_desc','switchVersion','remoteVersion','default','select_version_please','srv','versionStr','ver\x20:\x20','compareVersion','dialog_title','csProtocol','enableSwitch','service_id','__importDefault','new_ver','switch','not_installed','readFile','emit','action','btn_cancel','hide-verm','getPluginVerByURL','switch_version_tips','../../core/plugin','extend'];(function(_0x440a94,_0x381bbd){var _0x2e4919=function(_0x21f918){while(--_0x21f918){_0x440a94['push'](_0x440a94['shift']());}};_0x2e4919(++_0x381bbd);}(_0x2e49,0x1ea));var _0x21f9=function(_0x440a94,_0x381bbd){_0x440a94=_0x440a94-0xdd;var _0x2e4919=_0x2e49[_0x440a94];return _0x2e4919;};var _0x14e1c5=_0x21f9,_0x2c9b=[_0x14e1c5(0x10c),'../../../utils',_0x14e1c5(0xeb),_0x14e1c5(0xe1),_0x14e1c5(0xde),_0x14e1c5(0x107),_0x14e1c5(0xff),_0x14e1c5(0x106),_0x14e1c5(0xdf),_0x14e1c5(0xfe),'service:switch-version',_0x14e1c5(0xf4),'__esModule',_0x14e1c5(0xfc),_0x14e1c5(0x102),_0x14e1c5(0x10d),_0x14e1c5(0xe2),_0x14e1c5(0xe8),'csUtil',_0x14e1c5(0xf9),_0x14e1c5(0x109),_0x14e1c5(0xf1),_0x14e1c5(0x103),'upgradeStr',_0x14e1c5(0xe9),_0x14e1c5(0xfd),_0x14e1c5(0xf2),_0x14e1c5(0x100),'target',_0x14e1c5(0xed),'remoteVersion',_0x14e1c5(0x101),_0x14e1c5(0xfa),_0x14e1c5(0xf7),_0x14e1c5(0xf5),'srvInfo','./version-manager.html',_0x14e1c5(0xfb),_0x14e1c5(0x104),_0x14e1c5(0x108),_0x14e1c5(0xf3),_0x14e1c5(0xe0),_0x14e1c5(0xe3),_0x14e1c5(0xec),_0x14e1c5(0xe4)];(function(_0x4750a0,_0x46caa7){var _0x3630d7=function(_0x15d3e7){var _0x12f892=_0x21f9;while(--_0x15d3e7){_0x4750a0['push'](_0x4750a0[_0x12f892(0xe6)]());}};_0x3630d7(++_0x46caa7);}(_0x2c9b,0x154));var _0x5540=function(_0x4e8355,_0x37e06){_0x4e8355=_0x4e8355-0x198;var _0x4b975f=_0x2c9b[_0x4e8355];return _0x4b975f;},_0x1f6fc6=_0x5540;_0x14e1c5(0xe7);var __importDefault=this&&this[_0x1f6fc6(0x19e)]||function(_0x595a2c){var _0x297c7b=_0x1f6fc6;return _0x595a2c&&_0x595a2c[_0x297c7b(0x1b8)]?_0x595a2c:{'default':_0x595a2c};};Object[_0x14e1c5(0xef)](exports,_0x1f6fc6(0x1b8),{'value':!0x0});const vue_1=__importDefault(require(_0x14e1c5(0xe5))),plugin_1=__importDefault(require(_0x1f6fc6(0x1ac))),utils_1=require(_0x1f6fc6(0x1ad));exports[_0x14e1c5(0xf7)]=vue_1[_0x1f6fc6(0x1a0)][_0x1f6fc6(0x1bb)]({'template':utils_1['csFile'][_0x14e1c5(0x105)](__dirname,_0x1f6fc6(0x1a3)),'props':{'service':{'type':Object},'action':{'type':String,'default':()=>_0x1f6fc6(0x1c2)}},'data'(){var _0x335de4=_0x14e1c5,_0x3e25d5=_0x1f6fc6;return{'srv':this[_0x3e25d5(0x19c)],'srvInfo':plugin_1['default'][_0x335de4(0xea)](this[_0x3e25d5(0x19c)][_0x3e25d5(0x1a7)]),'versionStr':'','upgradeStr':'','localVersion':'','remoteVersion':'','enableUpdate':!0x1,'enableSwitch':!0x1,'selected':''};},async 'created'(){var _0x4e7531=_0x14e1c5,_0x4e7094=_0x1f6fc6,_0x1d289e,_0x30af6b;this[_0x4e7094(0x19d)]=plugin_1[_0x4e7094(0x1a0)][_0x4e7531(0x10a)](this[_0x4e7094(0x1bf)][_0x4e7094(0x1b4)]),this[_0x4e7531(0xe2)]=(null===(_0x1d289e=this['srvInfo'])||void 0x0===_0x1d289e?void 0x0:_0x1d289e[_0x4e7531(0xdd)])||utils_1[_0x4e7094(0x1aa)]['tr'](_0x4e7094(0x1a5)),_0x4e7094(0x1bd)===this[_0x4e7094(0x1b1)]?(this[_0x4e7094(0x19f)]=utils_1[_0x4e7094(0x1aa)]['tr'](_0x4e7094(0x1ba))+_0x4e7531(0xee)+this['remoteVersion'],this[_0x4e7094(0x1c3)]=this[_0x4e7094(0x1bf)][_0x4e7094(0x1b7)]):_0x4e7094(0x1c2)===this[_0x4e7094(0x1b1)]&&(this[_0x4e7094(0x19f)]=_0x4e7094(0x1a4)+this[_0x4e7094(0x1bc)],this[_0x4e7094(0x1c3)]=(await utils_1[_0x4e7094(0x1b5)][_0x4e7094(0x199)](this[_0x4e7094(0x1bf)][_0x4e7094(0x19a)],this[_0x4e7094(0x1bc)]))[_0x4e7094(0x1b7)]||'',''===this['upgradeStr']&&(null===(_0x30af6b=this[_0x4e7094(0x1a2)])||void 0x0===_0x30af6b?void 0x0:_0x30af6b[_0x4e7531(0xdd)])&&(this[_0x4e7094(0x1c3)]=this[_0x4e7094(0x1a2)][_0x4e7094(0x1b0)]||'')),this[_0x4e7094(0x1b2)]=!0x1,this[_0x4e7094(0x1c4)]=0x1===utils_1[_0x4e7094(0x1be)][_0x4e7094(0x1b9)](this[_0x4e7531(0xf6)],this[_0x4e7094(0x1bc)]);},'methods':{'handleClose'(){var _0x3f60de=_0x1f6fc6;utils_1[_0x3f60de(0x1ab)]['emit'](_0x3f60de(0x1c0));},async 'handleSelectChange'(_0x349677){var _0x387231=_0x14e1c5,_0x673728=_0x1f6fc6;this[_0x673728(0x1c1)]=_0x349677[_0x673728(0x19b)][_0x673728(0x1ae)],this[_0x673728(0x1b2)]=!(this[_0x673728(0x1c1)]===utils_1[_0x673728(0x1aa)]['tr'](_0x387231(0xf8))||this[_0x673728(0x1c1)]===this[_0x673728(0x1bc)]),this[_0x673728(0x1c3)]=(await utils_1[_0x673728(0x1b5)][_0x387231(0xf2)](this[_0x673728(0x1bf)][_0x673728(0x19a)],this[_0x673728(0x1c1)]))[_0x673728(0x1b7)];},'handleSwitch'(){var _0x37ca8a=_0x14e1c5,_0x354818=_0x1f6fc6;this[_0x354818(0x1a1)](this[_0x354818(0x1c1)],_0x37ca8a(0x103));},'handleUpdate'(){var _0xcbdc15=_0x1f6fc6;this[_0xcbdc15(0x1a1)](this[_0xcbdc15(0x19d)],_0xcbdc15(0x1bd));},async 'switchVersion'(_0x4f1029,_0x1cc51d){var _0x52287e=_0x14e1c5,_0x125532=_0x1f6fc6;if(0x0!==await utils_1[_0x52287e(0xec)][_0x125532(0x1a8)](_0x52287e(0xf0),utils_1[_0x125532(0x1aa)]['tr'](_0x125532(0x1bd)===this[_0x125532(0x1b1)]?_0x125532(0x1af):_0x52287e(0x10b)),utils_1[_0x52287e(0xec)]['tr'](_0x125532(0x198)),[utils_1[_0x125532(0x1aa)]['tr'](_0x125532(0x1a9)),utils_1[_0x125532(0x1aa)]['tr'](_0x125532(0x1a6))],0x0))return;let _0x46110d=await utils_1[_0x125532(0x1b5)][_0x125532(0x199)](this[_0x52287e(0xf9)][_0x125532(0x19a)],_0x4f1029);utils_1[_0x125532(0x1ab)][_0x125532(0x1b3)](_0x125532(0x1b6),_0x46110d[_0x125532(0x1b4)],_0x1cc51d),utils_1[_0x125532(0x1ab)][_0x125532(0x1b3)](_0x52287e(0x109));}}});