123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715 |
- webpackJsonp([4],[
- /* 0 */,
- /* 1 */,
- /* 2 */,
- /* 3 */,
- /* 4 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__network__ = __webpack_require__(22);
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
- /* harmony default export */ __webpack_exports__["a"] = (_extends({}, __WEBPACK_IMPORTED_MODULE_0__network__["a" /* default */], {
- // api 接口
- login: '/job/login',
- job: {
- savejob: '/job/save',
- deljob: '/job/del',
- joblist: '/job/list',
- killjob: '/job/kill',
- loglist: '/job/cronLog',
- workerlist: '/job/workerList'
- }
- }));
- /***/ }),
- /* 5 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
- var getURL = function getURL(search, name) {
- var reg = new RegExp("[?&]" + name + "=([^&]*)(&|$)", "i");
- var r = search.match(reg);
- if (r != null) return unescape(r[1]);
- return null;
- };
- function setCookie(c_name, value, expiredays) {
- var exdate = new Date();
- exdate.setDate(exdate.getDate() + expiredays);
- document.cookie = c_name + "=" + escape(value) + (expiredays == null ? "" : ";expires=" + exdate.toGMTString());
- }
- //取回cookie
- function getCookie(c_name) {
- if (document.cookie.length > 0) {
- var c_start = document.cookie.indexOf(c_name + "=");
- var c_end;
- if (c_start != -1) {
- c_start = c_start + c_name.length + 1;
- c_end = document.cookie.indexOf(";", c_start);
- if (c_end == -1) c_end = document.cookie.length;
- return unescape(document.cookie.substring(c_start, c_end));
- }
- }
- return "";
- }
- var getStorage = function getStorage(name) {
- if (window.localStorage) {
- return window.localStorage.getItem(name);
- } else {
- return getCookie(name);
- }
- };
- function delCookie(key) {
- var date = new Date();
- date.setTime(date.getTime() - 1);
- var delValue = getCookie(key);
- if (!!delValue) {
- document.cookie = key + '=' + delValue + ';expires=' + date.toGMTString();
- }
- }
- // String.prototype.
- var clearEmpty = function clearEmpty(Obj) {
- var newObject = {};
- for (var key in Obj) {
- if (Obj.hasOwnProperty(key)) {
- var element = Obj[key];
- if (typeof element === 'string') {
- if (element) {
- newObject[key] = element;
- }
- continue;
- }
- if (['boolean', 'number'].indexOf(typeof element === "undefined" ? "undefined" : _typeof(element)) >= 0) {
- newObject[key] = element;
- continue;
- }
- if (element instanceof Object) {
- if (!isEmptyObject(element)) {
- var obj = clearEmpty(element);
- if (!isEmptyObject(obj)) {
- newObject[key] = clearEmpty(element);
- }
- continue;
- }
- }
- if (element instanceof Array) {
- if (element.length > 0) {
- newObject[key] = element;
- continue;
- }
- }
- }
- }
- return newObject;
- };
- /**
- *
- * @desc 随机生成颜色
- * @return {String}
- */
- function randomColor() {
- return '#' + ('00000' + (Math.random() * 0x1000000 << 0).toString(16)).slice(-6);
- }
- /**
- *
- * @desc 生成指定范围随机数
- * @param {Number} min
- * @param {Number} max
- * @return {Number}
- */
- function randomNum(min, max) {
- return Math.floor(min + Math.random() * (max - min));
- }
- /**
- * @desc 格式化${startTime}距现在的已过时间
- * @param {Date} startTime
- * @return {String}
- */
- function formatPassTime(startTime) {
- var currentTime = Date.parse(new Date()),
- time = currentTime - startTime,
- day = parseInt(time / (1000 * 60 * 60 * 24)),
- hour = parseInt(time / (1000 * 60 * 60)),
- min = parseInt(time / (1000 * 60)),
- month = parseInt(day / 30),
- year = parseInt(month / 12);
- if (year) return year + "年前";
- if (month) return month + "个月前";
- if (day) return day + "天前";
- if (hour) return hour + "小时前";
- if (min) return min + "分钟前";else return '刚刚';
- }
- /**
- *
- * @desc 格式化现在距${endTime}的剩余时间
- * @param {Date} endTime
- * @return {String}
- */
- function formatRemainTime(endTime) {
- var startDate = new Date(); //开始时间
- var endDate = new Date(endTime); //结束时间
- var t = endDate.getTime() - startDate.getTime(); //时间差
- var d = 0,
- h = 0,
- m = 0,
- s = 0;
- if (t >= 0) {
- d = Math.floor(t / 1000 / 3600 / 24);
- h = Math.floor(t / 1000 / 60 / 60 % 24);
- m = Math.floor(t / 1000 / 60 % 60);
- s = Math.floor(t / 1000 % 60);
- }
- return d + "天 " + h + "小时 " + m + "分钟 " + s + "秒";
- }
- /**
- *
- * @desc 判断是否NaN
- * @param {Any} value
- * @return {Boolean}
- */
- function isNaN(value) {
- return value !== value;
- };
- /**
- *
- * @desc 判断两个数组是否相等
- * @param {Array} arr1
- * @param {Array} arr2
- * @return {Boolean}
- */
- function arrayEqual(arr1, arr2) {
- if (arr1 === arr2) return true;
- if (arr1.length != arr2.length) return false;
- for (var i = 0; i < arr1.length; ++i) {
- if (arr1[i] !== arr2[i]) return false;
- }
- return true;
- }
- /**
- *
- * @desc 获取浏览器类型和版本
- * @return {String}
- */
- function getExplore() {
- var sys = {},
- ua = navigator.userAgent.toLowerCase(),
- s;
- (s = ua.match(/rv:([\d.]+)\) like gecko/)) ? sys.ie = s[1] : (s = ua.match(/msie ([\d\.]+)/)) ? sys.ie = s[1] : (s = ua.match(/edge\/([\d\.]+)/)) ? sys.edge = s[1] : (s = ua.match(/firefox\/([\d\.]+)/)) ? sys.firefox = s[1] : (s = ua.match(/(?:opera|opr).([\d\.]+)/)) ? sys.opera = s[1] : (s = ua.match(/chrome\/([\d\.]+)/)) ? sys.chrome = s[1] : (s = ua.match(/version\/([\d\.]+).*safari/)) ? sys.safari = s[1] : 0;
- // 根据关系进行判断
- if (sys.ie) return 'IE: ' + sys.ie;
- if (sys.edge) return 'EDGE: ' + sys.edge;
- if (sys.firefox) return 'Firefox: ' + sys.firefox;
- if (sys.chrome) return 'Chrome: ' + sys.chrome;
- if (sys.opera) return 'Opera: ' + sys.opera;
- if (sys.safari) return 'Safari: ' + sys.safari;
- return 'Unkonwn';
- }
- /**
- * @desc 深拷贝,支持常见类型
- * @param {Any} values
- */
- function deepClone(values) {
- var copy;
- // Handle the 3 simple types, and null or undefined
- if (null == values || "object" != (typeof values === "undefined" ? "undefined" : _typeof(values))) return values;
- // Handle Date
- if (values instanceof Date) {
- copy = new Date();
- copy.setTime(values.getTime());
- return copy;
- }
- // Handle Array
- if (values instanceof Array) {
- copy = [];
- for (var i = 0, len = values.length; i < len; i++) {
- copy[i] = deepClone(values[i]);
- }
- return copy;
- }
- // Handle Object
- if (values instanceof Object) {
- copy = {};
- for (var attr in values) {
- if (values.hasOwnProperty(attr)) copy[attr] = deepClone(values[attr]);
- }
- return copy;
- }
- throw new Error("Unable to copy values! Its type isn't supported.");
- }
- /**
- *
- * @desc 判断`obj`是否为空
- * @param {Object} obj
- * @return {Boolean}
- */
- function isEmptyObject(obj) {
- if (!obj || (typeof obj === "undefined" ? "undefined" : _typeof(obj)) !== 'object' || Array.isArray(obj)) return false;
- return !Object.keys(obj).length;
- }
- function selectObject(src, arr) {
- var newObj = {};
- arr.forEach(function (item) {
- newObj[item] = src[item];
- });
- return newObj;
- }
- Date.prototype.Format = function (fmt) {
- var o = {
- "M+": this.getMonth() + 1, //月份
- "d+": this.getDate(), //日
- "h+": this.getHours(), //小时
- "m+": this.getMinutes(), //分
- "s+": this.getSeconds(), //秒
- "q+": Math.floor((this.getMonth() + 3) / 3), //季度
- "S": this.getMilliseconds() //毫秒
- };
- if (/(y+)/.test(fmt)) {
- fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
- }
- for (var k in o) {
- console.log(o[k]);
- if (new RegExp("(" + k + ")").test(fmt)) {
- fmt = fmt.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length));
- }
- }
- return fmt;
- };
- function timeFormat(millsecond) {
- // 前缀补0: 2018-08-07 08:01:03.345
- function paddingNum(num, n) {
- var len = num.toString().length;
- while (len < n) {
- num = '0' + num;
- len++;
- }
- return num;
- }
- var date = new Date(millsecond);
- var year = date.getFullYear();
- var month = paddingNum(date.getMonth() + 1, 2);
- var day = paddingNum(date.getDate(), 2);
- var hour = paddingNum(date.getHours(), 2);
- var minute = paddingNum(date.getMinutes(), 2);
- var second = paddingNum(date.getSeconds(), 2);
- var millsecond = paddingNum(date.getMilliseconds(), 3);
- return year + "-" + month + "-" + day + " " + hour + ":" + minute + ":" + second + "." + millsecond;
- }
- /* harmony default export */ __webpack_exports__["a"] = ({
- getURL: getURL,
- setCookie: setCookie,
- getCookie: getCookie,
- delCookie: delCookie,
- getStorage: getStorage,
- clearEmpty: clearEmpty,
- randomColor: randomColor,
- formatPassTime: formatPassTime,
- formatRemainTime: formatRemainTime,
- isNaN: isNaN,
- arrayEqual: arrayEqual,
- getExplore: getExplore,
- deepClone: deepClone,
- isEmptyObject: isEmptyObject,
- selectObject: selectObject,
- timeFormat: timeFormat
- });
- /***/ }),
- /* 6 */,
- /* 7 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__api__ = __webpack_require__(4);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__common__ = __webpack_require__(5);
- /* harmony default export */ __webpack_exports__["a"] = ({
- install: function install(Vue) {
- Vue.mixin({
- data: function data() {
- return {
- tableHeight: 300,
- mixinSelectItems: []
- };
- },
- mounted: function mounted() {
- var _this = this;
- // 设置表格高度
- this.$nextTick(function () {
- // 加入分页得时候再用,控制 table 得高度
- if (_this.$refs.table) {
- _this.tableHeight = window.innerHeight - _this.$refs.table.$el.offsetTop - 100;
- }
- });
- },
- methods: {
- handleSelectionChange: function handleSelectionChange(val) {
- this.mixinSelectItems = val;
- },
- getKeys: function getKeys(key) {
- return this.mixinSelectItems.length > 0 ? this.mixinSelectItems.map(function (item) {
- return item[key];
- }) : [];
- }
- }
- });
- Vue.prototype.$api = __WEBPACK_IMPORTED_MODULE_0__api__["a" /* default */];
- Vue.prototype.$tools = __WEBPACK_IMPORTED_MODULE_1__common__["a" /* default */];
- }
- });
- /***/ }),
- /* 8 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- var util = {};
- util.title = function (title) {
- title = title ? title + ' - Home' : 'iView project';
- window.document.title = title;
- };
- /* harmony default export */ __webpack_exports__["a"] = (util);
- /***/ }),
- /* 9 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- var routers = [{
- path: '/index',
- meta: {
- title: ''
- },
- component: function component(resolve) {
- return __webpack_require__.e/* require */(2).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(32)]; (resolve.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}.bind(this)).catch(__webpack_require__.oe);
- },
- children: [{
- path: '/list',
- name: '任务列表',
- component: function component(resolve) {
- return __webpack_require__.e/* require */(0).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(33)]; (resolve.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}.bind(this)).catch(__webpack_require__.oe);
- }
- }, {
- path: '/list2',
- name: '列表2',
- component: function component(resolve) {
- return __webpack_require__.e/* require */(3).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(35)]; (resolve.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}.bind(this)).catch(__webpack_require__.oe);
- }
- }]
- }, {
- path: '/login',
- meta: {
- title: '登录'
- },
- component: function component(resolve) {
- return __webpack_require__.e/* require */(1).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(34)]; (resolve.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}.bind(this)).catch(__webpack_require__.oe);
- }
- }, {
- path: '/',
- redirect: 'login'
- }];
- /* harmony default export */ __webpack_exports__["a"] = (routers);
- /***/ }),
- /* 10 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_vuex__ = __webpack_require__(17);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__libs_api__ = __webpack_require__(4);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__job__ = __webpack_require__(24);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__libs_common__ = __webpack_require__(5);
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
- __WEBPACK_IMPORTED_MODULE_0_vue__["default"].use(__WEBPACK_IMPORTED_MODULE_1_vuex__["a" /* default */]);
- var HANDLE_LOGIN = 'HANDLE_LOGIN';
- /* harmony default export */ __webpack_exports__["a"] = (new __WEBPACK_IMPORTED_MODULE_1_vuex__["a" /* default */].Store({
- state: {},
- actions: _defineProperty({}, HANDLE_LOGIN, async function (_ref) {
- var commit = _ref.commit;
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var res = await __WEBPACK_IMPORTED_MODULE_2__libs_api__["a" /* default */].post(__WEBPACK_IMPORTED_MODULE_2__libs_api__["a" /* default */].login, params);
- commit(HANDLE_LOGIN, res);
- return res;
- }),
- mutations: _defineProperty({}, HANDLE_LOGIN, function (state, _ref2) {
- var data = _ref2.data;
- __WEBPACK_IMPORTED_MODULE_4__libs_common__["a" /* default */].setCookie('token', data.token, 10);
- }),
- modules: {
- job: __WEBPACK_IMPORTED_MODULE_3__job__["a" /* default */]
- }
- }));
- /***/ }),
- /* 11 */,
- /* 12 */,
- /* 13 */
- /***/ (function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ }),
- /* 14 */,
- /* 15 */
- /***/ (function(module, exports, __webpack_require__) {
- /* styles */
- __webpack_require__(26)
- __webpack_require__(27)
- var Component = __webpack_require__(16)(
- /* script */
- __webpack_require__(19),
- /* template */
- __webpack_require__(30),
- /* scopeId */
- "data-v-866dc8e0",
- /* cssModules */
- null
- )
- Component.options.__file = "D:\\workarea\\normal\\crontab\\src\\app.vue"
- if (Component.esModule && Object.keys(Component.esModule).some(function (key) {return key !== "default" && key !== "__esModule"})) {console.error("named exports are not supported in *.vue files.")}
- if (Component.options.functional) {console.error("[vue-loader] app.vue: functional components are not supported with templates, they should use render functions.")}
- /* hot reload */
- if (false) {(function () {
- var hotAPI = require("vue-loader/node_modules/vue-hot-reload-api")
- hotAPI.install(require("vue"), false)
- if (!hotAPI.compatible) return
- module.hot.accept()
- if (!module.hot.data) {
- hotAPI.createRecord("data-v-866dc8e0", Component.options)
- } else {
- hotAPI.reload("data-v-866dc8e0", Component.options)
- }
- })()}
- module.exports = Component.exports
- /***/ }),
- /* 16 */
- /***/ (function(module, exports) {
- // this module is a runtime utility for cleaner component module output and will
- // be included in the final webpack user bundle
- module.exports = function normalizeComponent (
- rawScriptExports,
- compiledTemplate,
- scopeId,
- cssModules
- ) {
- var esModule
- var scriptExports = rawScriptExports = rawScriptExports || {}
- // ES6 modules interop
- var type = typeof rawScriptExports.default
- if (type === 'object' || type === 'function') {
- esModule = rawScriptExports
- scriptExports = rawScriptExports.default
- }
- // Vue.extend constructor export interop
- var options = typeof scriptExports === 'function'
- ? scriptExports.options
- : scriptExports
- // render functions
- if (compiledTemplate) {
- options.render = compiledTemplate.render
- options.staticRenderFns = compiledTemplate.staticRenderFns
- }
- // scopedId
- if (scopeId) {
- options._scopeId = scopeId
- }
- // inject cssModules
- if (cssModules) {
- var computed = Object.create(options.computed || null)
- Object.keys(cssModules).forEach(function (key) {
- var module = cssModules[key]
- computed[key] = function () { return module }
- })
- options.computed = computed
- }
- return {
- esModule: esModule,
- exports: scriptExports,
- options: options
- }
- }
- /***/ }),
- /* 17 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(global) {/* unused harmony export Store */
- /* unused harmony export install */
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return mapState; });
- /* unused harmony export mapMutations */
- /* unused harmony export mapGetters */
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return mapActions; });
- /* unused harmony export createNamespacedHelpers */
- /**
- * vuex v3.1.1
- * (c) 2019 Evan You
- * @license MIT
- */
- function applyMixin (Vue) {
- var version = Number(Vue.version.split('.')[0]);
- if (version >= 2) {
- Vue.mixin({ beforeCreate: vuexInit });
- } else {
- // override init and inject vuex init procedure
- // for 1.x backwards compatibility.
- var _init = Vue.prototype._init;
- Vue.prototype._init = function (options) {
- if ( options === void 0 ) options = {};
- options.init = options.init
- ? [vuexInit].concat(options.init)
- : vuexInit;
- _init.call(this, options);
- };
- }
- /**
- * Vuex init hook, injected into each instances init hooks list.
- */
- function vuexInit () {
- var options = this.$options;
- // store injection
- if (options.store) {
- this.$store = typeof options.store === 'function'
- ? options.store()
- : options.store;
- } else if (options.parent && options.parent.$store) {
- this.$store = options.parent.$store;
- }
- }
- }
- var target = typeof window !== 'undefined'
- ? window
- : typeof global !== 'undefined'
- ? global
- : {};
- var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
- function devtoolPlugin (store) {
- if (!devtoolHook) { return }
- store._devtoolHook = devtoolHook;
- devtoolHook.emit('vuex:init', store);
- devtoolHook.on('vuex:travel-to-state', function (targetState) {
- store.replaceState(targetState);
- });
- store.subscribe(function (mutation, state) {
- devtoolHook.emit('vuex:mutation', mutation, state);
- });
- }
- /**
- * Get the first item that pass the test
- * by second argument function
- *
- * @param {Array} list
- * @param {Function} f
- * @return {*}
- */
- /**
- * forEach for object
- */
- function forEachValue (obj, fn) {
- Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
- }
- function isObject (obj) {
- return obj !== null && typeof obj === 'object'
- }
- function isPromise (val) {
- return val && typeof val.then === 'function'
- }
- function assert (condition, msg) {
- if (!condition) { throw new Error(("[vuex] " + msg)) }
- }
- function partial (fn, arg) {
- return function () {
- return fn(arg)
- }
- }
- // Base data struct for store's module, package with some attribute and method
- var Module = function Module (rawModule, runtime) {
- this.runtime = runtime;
- // Store some children item
- this._children = Object.create(null);
- // Store the origin module object which passed by programmer
- this._rawModule = rawModule;
- var rawState = rawModule.state;
- // Store the origin module's state
- this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
- };
- var prototypeAccessors = { namespaced: { configurable: true } };
- prototypeAccessors.namespaced.get = function () {
- return !!this._rawModule.namespaced
- };
- Module.prototype.addChild = function addChild (key, module) {
- this._children[key] = module;
- };
- Module.prototype.removeChild = function removeChild (key) {
- delete this._children[key];
- };
- Module.prototype.getChild = function getChild (key) {
- return this._children[key]
- };
- Module.prototype.update = function update (rawModule) {
- this._rawModule.namespaced = rawModule.namespaced;
- if (rawModule.actions) {
- this._rawModule.actions = rawModule.actions;
- }
- if (rawModule.mutations) {
- this._rawModule.mutations = rawModule.mutations;
- }
- if (rawModule.getters) {
- this._rawModule.getters = rawModule.getters;
- }
- };
- Module.prototype.forEachChild = function forEachChild (fn) {
- forEachValue(this._children, fn);
- };
- Module.prototype.forEachGetter = function forEachGetter (fn) {
- if (this._rawModule.getters) {
- forEachValue(this._rawModule.getters, fn);
- }
- };
- Module.prototype.forEachAction = function forEachAction (fn) {
- if (this._rawModule.actions) {
- forEachValue(this._rawModule.actions, fn);
- }
- };
- Module.prototype.forEachMutation = function forEachMutation (fn) {
- if (this._rawModule.mutations) {
- forEachValue(this._rawModule.mutations, fn);
- }
- };
- Object.defineProperties( Module.prototype, prototypeAccessors );
- var ModuleCollection = function ModuleCollection (rawRootModule) {
- // register root module (Vuex.Store options)
- this.register([], rawRootModule, false);
- };
- ModuleCollection.prototype.get = function get (path) {
- return path.reduce(function (module, key) {
- return module.getChild(key)
- }, this.root)
- };
- ModuleCollection.prototype.getNamespace = function getNamespace (path) {
- var module = this.root;
- return path.reduce(function (namespace, key) {
- module = module.getChild(key);
- return namespace + (module.namespaced ? key + '/' : '')
- }, '')
- };
- ModuleCollection.prototype.update = function update$1 (rawRootModule) {
- update([], this.root, rawRootModule);
- };
- ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
- var this$1 = this;
- if ( runtime === void 0 ) runtime = true;
- if (false) {
- assertRawModule(path, rawModule);
- }
- var newModule = new Module(rawModule, runtime);
- if (path.length === 0) {
- this.root = newModule;
- } else {
- var parent = this.get(path.slice(0, -1));
- parent.addChild(path[path.length - 1], newModule);
- }
- // register nested modules
- if (rawModule.modules) {
- forEachValue(rawModule.modules, function (rawChildModule, key) {
- this$1.register(path.concat(key), rawChildModule, runtime);
- });
- }
- };
- ModuleCollection.prototype.unregister = function unregister (path) {
- var parent = this.get(path.slice(0, -1));
- var key = path[path.length - 1];
- if (!parent.getChild(key).runtime) { return }
- parent.removeChild(key);
- };
- function update (path, targetModule, newModule) {
- if (false) {
- assertRawModule(path, newModule);
- }
- // update target module
- targetModule.update(newModule);
- // update nested modules
- if (newModule.modules) {
- for (var key in newModule.modules) {
- if (!targetModule.getChild(key)) {
- if (false) {
- console.warn(
- "[vuex] trying to add a new module '" + key + "' on hot reloading, " +
- 'manual reload is needed'
- );
- }
- return
- }
- update(
- path.concat(key),
- targetModule.getChild(key),
- newModule.modules[key]
- );
- }
- }
- }
- var functionAssert = {
- assert: function (value) { return typeof value === 'function'; },
- expected: 'function'
- };
- var objectAssert = {
- assert: function (value) { return typeof value === 'function' ||
- (typeof value === 'object' && typeof value.handler === 'function'); },
- expected: 'function or object with "handler" function'
- };
- var assertTypes = {
- getters: functionAssert,
- mutations: functionAssert,
- actions: objectAssert
- };
- function assertRawModule (path, rawModule) {
- Object.keys(assertTypes).forEach(function (key) {
- if (!rawModule[key]) { return }
- var assertOptions = assertTypes[key];
- forEachValue(rawModule[key], function (value, type) {
- assert(
- assertOptions.assert(value),
- makeAssertionMessage(path, key, type, value, assertOptions.expected)
- );
- });
- });
- }
- function makeAssertionMessage (path, key, type, value, expected) {
- var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
- if (path.length > 0) {
- buf += " in module \"" + (path.join('.')) + "\"";
- }
- buf += " is " + (JSON.stringify(value)) + ".";
- return buf
- }
- var Vue; // bind on install
- var Store = function Store (options) {
- var this$1 = this;
- if ( options === void 0 ) options = {};
- // Auto install if it is not done yet and `window` has `Vue`.
- // To allow users to avoid auto-installation in some cases,
- // this code should be placed here. See #731
- if (!Vue && typeof window !== 'undefined' && window.Vue) {
- install(window.Vue);
- }
- if (false) {
- assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
- assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
- assert(this instanceof Store, "store must be called with the new operator.");
- }
- var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
- var strict = options.strict; if ( strict === void 0 ) strict = false;
- // store internal state
- this._committing = false;
- this._actions = Object.create(null);
- this._actionSubscribers = [];
- this._mutations = Object.create(null);
- this._wrappedGetters = Object.create(null);
- this._modules = new ModuleCollection(options);
- this._modulesNamespaceMap = Object.create(null);
- this._subscribers = [];
- this._watcherVM = new Vue();
- // bind commit and dispatch to self
- var store = this;
- var ref = this;
- var dispatch = ref.dispatch;
- var commit = ref.commit;
- this.dispatch = function boundDispatch (type, payload) {
- return dispatch.call(store, type, payload)
- };
- this.commit = function boundCommit (type, payload, options) {
- return commit.call(store, type, payload, options)
- };
- // strict mode
- this.strict = strict;
- var state = this._modules.root.state;
- // init root module.
- // this also recursively registers all sub-modules
- // and collects all module getters inside this._wrappedGetters
- installModule(this, state, [], this._modules.root);
- // initialize the store vm, which is responsible for the reactivity
- // (also registers _wrappedGetters as computed properties)
- resetStoreVM(this, state);
- // apply plugins
- plugins.forEach(function (plugin) { return plugin(this$1); });
- var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
- if (useDevtools) {
- devtoolPlugin(this);
- }
- };
- var prototypeAccessors$1 = { state: { configurable: true } };
- prototypeAccessors$1.state.get = function () {
- return this._vm._data.$$state
- };
- prototypeAccessors$1.state.set = function (v) {
- if (false) {
- assert(false, "use store.replaceState() to explicit replace store state.");
- }
- };
- Store.prototype.commit = function commit (_type, _payload, _options) {
- var this$1 = this;
- // check object-style commit
- var ref = unifyObjectStyle(_type, _payload, _options);
- var type = ref.type;
- var payload = ref.payload;
- var options = ref.options;
- var mutation = { type: type, payload: payload };
- var entry = this._mutations[type];
- if (!entry) {
- if (false) {
- console.error(("[vuex] unknown mutation type: " + type));
- }
- return
- }
- this._withCommit(function () {
- entry.forEach(function commitIterator (handler) {
- handler(payload);
- });
- });
- this._subscribers.forEach(function (sub) { return sub(mutation, this$1.state); });
- if (
- false
- ) {
- console.warn(
- "[vuex] mutation type: " + type + ". Silent option has been removed. " +
- 'Use the filter functionality in the vue-devtools'
- );
- }
- };
- Store.prototype.dispatch = function dispatch (_type, _payload) {
- var this$1 = this;
- // check object-style dispatch
- var ref = unifyObjectStyle(_type, _payload);
- var type = ref.type;
- var payload = ref.payload;
- var action = { type: type, payload: payload };
- var entry = this._actions[type];
- if (!entry) {
- if (false) {
- console.error(("[vuex] unknown action type: " + type));
- }
- return
- }
- try {
- this._actionSubscribers
- .filter(function (sub) { return sub.before; })
- .forEach(function (sub) { return sub.before(action, this$1.state); });
- } catch (e) {
- if (false) {
- console.warn("[vuex] error in before action subscribers: ");
- console.error(e);
- }
- }
- var result = entry.length > 1
- ? Promise.all(entry.map(function (handler) { return handler(payload); }))
- : entry[0](payload);
- return result.then(function (res) {
- try {
- this$1._actionSubscribers
- .filter(function (sub) { return sub.after; })
- .forEach(function (sub) { return sub.after(action, this$1.state); });
- } catch (e) {
- if (false) {
- console.warn("[vuex] error in after action subscribers: ");
- console.error(e);
- }
- }
- return res
- })
- };
- Store.prototype.subscribe = function subscribe (fn) {
- return genericSubscribe(fn, this._subscribers)
- };
- Store.prototype.subscribeAction = function subscribeAction (fn) {
- var subs = typeof fn === 'function' ? { before: fn } : fn;
- return genericSubscribe(subs, this._actionSubscribers)
- };
- Store.prototype.watch = function watch (getter, cb, options) {
- var this$1 = this;
- if (false) {
- assert(typeof getter === 'function', "store.watch only accepts a function.");
- }
- return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
- };
- Store.prototype.replaceState = function replaceState (state) {
- var this$1 = this;
- this._withCommit(function () {
- this$1._vm._data.$$state = state;
- });
- };
- Store.prototype.registerModule = function registerModule (path, rawModule, options) {
- if ( options === void 0 ) options = {};
- if (typeof path === 'string') { path = [path]; }
- if (false) {
- assert(Array.isArray(path), "module path must be a string or an Array.");
- assert(path.length > 0, 'cannot register the root module by using registerModule.');
- }
- this._modules.register(path, rawModule);
- installModule(this, this.state, path, this._modules.get(path), options.preserveState);
- // reset store to update getters...
- resetStoreVM(this, this.state);
- };
- Store.prototype.unregisterModule = function unregisterModule (path) {
- var this$1 = this;
- if (typeof path === 'string') { path = [path]; }
- if (false) {
- assert(Array.isArray(path), "module path must be a string or an Array.");
- }
- this._modules.unregister(path);
- this._withCommit(function () {
- var parentState = getNestedState(this$1.state, path.slice(0, -1));
- Vue.delete(parentState, path[path.length - 1]);
- });
- resetStore(this);
- };
- Store.prototype.hotUpdate = function hotUpdate (newOptions) {
- this._modules.update(newOptions);
- resetStore(this, true);
- };
- Store.prototype._withCommit = function _withCommit (fn) {
- var committing = this._committing;
- this._committing = true;
- fn();
- this._committing = committing;
- };
- Object.defineProperties( Store.prototype, prototypeAccessors$1 );
- function genericSubscribe (fn, subs) {
- if (subs.indexOf(fn) < 0) {
- subs.push(fn);
- }
- return function () {
- var i = subs.indexOf(fn);
- if (i > -1) {
- subs.splice(i, 1);
- }
- }
- }
- function resetStore (store, hot) {
- store._actions = Object.create(null);
- store._mutations = Object.create(null);
- store._wrappedGetters = Object.create(null);
- store._modulesNamespaceMap = Object.create(null);
- var state = store.state;
- // init all modules
- installModule(store, state, [], store._modules.root, true);
- // reset vm
- resetStoreVM(store, state, hot);
- }
- function resetStoreVM (store, state, hot) {
- var oldVm = store._vm;
- // bind store public getters
- store.getters = {};
- var wrappedGetters = store._wrappedGetters;
- var computed = {};
- forEachValue(wrappedGetters, function (fn, key) {
- // use computed to leverage its lazy-caching mechanism
- // direct inline function use will lead to closure preserving oldVm.
- // using partial to return function with only arguments preserved in closure enviroment.
- computed[key] = partial(fn, store);
- Object.defineProperty(store.getters, key, {
- get: function () { return store._vm[key]; },
- enumerable: true // for local getters
- });
- });
- // use a Vue instance to store the state tree
- // suppress warnings just in case the user has added
- // some funky global mixins
- var silent = Vue.config.silent;
- Vue.config.silent = true;
- store._vm = new Vue({
- data: {
- $$state: state
- },
- computed: computed
- });
- Vue.config.silent = silent;
- // enable strict mode for new vm
- if (store.strict) {
- enableStrictMode(store);
- }
- if (oldVm) {
- if (hot) {
- // dispatch changes in all subscribed watchers
- // to force getter re-evaluation for hot reloading.
- store._withCommit(function () {
- oldVm._data.$$state = null;
- });
- }
- Vue.nextTick(function () { return oldVm.$destroy(); });
- }
- }
- function installModule (store, rootState, path, module, hot) {
- var isRoot = !path.length;
- var namespace = store._modules.getNamespace(path);
- // register in namespace map
- if (module.namespaced) {
- store._modulesNamespaceMap[namespace] = module;
- }
- // set state
- if (!isRoot && !hot) {
- var parentState = getNestedState(rootState, path.slice(0, -1));
- var moduleName = path[path.length - 1];
- store._withCommit(function () {
- Vue.set(parentState, moduleName, module.state);
- });
- }
- var local = module.context = makeLocalContext(store, namespace, path);
- module.forEachMutation(function (mutation, key) {
- var namespacedType = namespace + key;
- registerMutation(store, namespacedType, mutation, local);
- });
- module.forEachAction(function (action, key) {
- var type = action.root ? key : namespace + key;
- var handler = action.handler || action;
- registerAction(store, type, handler, local);
- });
- module.forEachGetter(function (getter, key) {
- var namespacedType = namespace + key;
- registerGetter(store, namespacedType, getter, local);
- });
- module.forEachChild(function (child, key) {
- installModule(store, rootState, path.concat(key), child, hot);
- });
- }
- /**
- * make localized dispatch, commit, getters and state
- * if there is no namespace, just use root ones
- */
- function makeLocalContext (store, namespace, path) {
- var noNamespace = namespace === '';
- var local = {
- dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
- var args = unifyObjectStyle(_type, _payload, _options);
- var payload = args.payload;
- var options = args.options;
- var type = args.type;
- if (!options || !options.root) {
- type = namespace + type;
- if (false) {
- console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
- return
- }
- }
- return store.dispatch(type, payload)
- },
- commit: noNamespace ? store.commit : function (_type, _payload, _options) {
- var args = unifyObjectStyle(_type, _payload, _options);
- var payload = args.payload;
- var options = args.options;
- var type = args.type;
- if (!options || !options.root) {
- type = namespace + type;
- if (false) {
- console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
- return
- }
- }
- store.commit(type, payload, options);
- }
- };
- // getters and state object must be gotten lazily
- // because they will be changed by vm update
- Object.defineProperties(local, {
- getters: {
- get: noNamespace
- ? function () { return store.getters; }
- : function () { return makeLocalGetters(store, namespace); }
- },
- state: {
- get: function () { return getNestedState(store.state, path); }
- }
- });
- return local
- }
- function makeLocalGetters (store, namespace) {
- var gettersProxy = {};
- var splitPos = namespace.length;
- Object.keys(store.getters).forEach(function (type) {
- // skip if the target getter is not match this namespace
- if (type.slice(0, splitPos) !== namespace) { return }
- // extract local getter type
- var localType = type.slice(splitPos);
- // Add a port to the getters proxy.
- // Define as getter property because
- // we do not want to evaluate the getters in this time.
- Object.defineProperty(gettersProxy, localType, {
- get: function () { return store.getters[type]; },
- enumerable: true
- });
- });
- return gettersProxy
- }
- function registerMutation (store, type, handler, local) {
- var entry = store._mutations[type] || (store._mutations[type] = []);
- entry.push(function wrappedMutationHandler (payload) {
- handler.call(store, local.state, payload);
- });
- }
- function registerAction (store, type, handler, local) {
- var entry = store._actions[type] || (store._actions[type] = []);
- entry.push(function wrappedActionHandler (payload, cb) {
- var res = handler.call(store, {
- dispatch: local.dispatch,
- commit: local.commit,
- getters: local.getters,
- state: local.state,
- rootGetters: store.getters,
- rootState: store.state
- }, payload, cb);
- if (!isPromise(res)) {
- res = Promise.resolve(res);
- }
- if (store._devtoolHook) {
- return res.catch(function (err) {
- store._devtoolHook.emit('vuex:error', err);
- throw err
- })
- } else {
- return res
- }
- });
- }
- function registerGetter (store, type, rawGetter, local) {
- if (store._wrappedGetters[type]) {
- if (false) {
- console.error(("[vuex] duplicate getter key: " + type));
- }
- return
- }
- store._wrappedGetters[type] = function wrappedGetter (store) {
- return rawGetter(
- local.state, // local state
- local.getters, // local getters
- store.state, // root state
- store.getters // root getters
- )
- };
- }
- function enableStrictMode (store) {
- store._vm.$watch(function () { return this._data.$$state }, function () {
- if (false) {
- assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
- }
- }, { deep: true, sync: true });
- }
- function getNestedState (state, path) {
- return path.length
- ? path.reduce(function (state, key) { return state[key]; }, state)
- : state
- }
- function unifyObjectStyle (type, payload, options) {
- if (isObject(type) && type.type) {
- options = payload;
- payload = type;
- type = type.type;
- }
- if (false) {
- assert(typeof type === 'string', ("expects string as the type, but found " + (typeof type) + "."));
- }
- return { type: type, payload: payload, options: options }
- }
- function install (_Vue) {
- if (Vue && _Vue === Vue) {
- if (false) {
- console.error(
- '[vuex] already installed. Vue.use(Vuex) should be called only once.'
- );
- }
- return
- }
- Vue = _Vue;
- applyMixin(Vue);
- }
- /**
- * Reduce the code which written in Vue.js for getting the state.
- * @param {String} [namespace] - Module's namespace
- * @param {Object|Array} states # Object's item can be a function which accept state and getters for param, you can do something for state and getters in it.
- * @param {Object}
- */
- var mapState = normalizeNamespace(function (namespace, states) {
- var res = {};
- normalizeMap(states).forEach(function (ref) {
- var key = ref.key;
- var val = ref.val;
- res[key] = function mappedState () {
- var state = this.$store.state;
- var getters = this.$store.getters;
- if (namespace) {
- var module = getModuleByNamespace(this.$store, 'mapState', namespace);
- if (!module) {
- return
- }
- state = module.context.state;
- getters = module.context.getters;
- }
- return typeof val === 'function'
- ? val.call(this, state, getters)
- : state[val]
- };
- // mark vuex getter for devtools
- res[key].vuex = true;
- });
- return res
- });
- /**
- * Reduce the code which written in Vue.js for committing the mutation
- * @param {String} [namespace] - Module's namespace
- * @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept anthor params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
- * @return {Object}
- */
- var mapMutations = normalizeNamespace(function (namespace, mutations) {
- var res = {};
- normalizeMap(mutations).forEach(function (ref) {
- var key = ref.key;
- var val = ref.val;
- res[key] = function mappedMutation () {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
- // Get the commit method from store
- var commit = this.$store.commit;
- if (namespace) {
- var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
- if (!module) {
- return
- }
- commit = module.context.commit;
- }
- return typeof val === 'function'
- ? val.apply(this, [commit].concat(args))
- : commit.apply(this.$store, [val].concat(args))
- };
- });
- return res
- });
- /**
- * Reduce the code which written in Vue.js for getting the getters
- * @param {String} [namespace] - Module's namespace
- * @param {Object|Array} getters
- * @return {Object}
- */
- var mapGetters = normalizeNamespace(function (namespace, getters) {
- var res = {};
- normalizeMap(getters).forEach(function (ref) {
- var key = ref.key;
- var val = ref.val;
- // The namespace has been mutated by normalizeNamespace
- val = namespace + val;
- res[key] = function mappedGetter () {
- if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
- return
- }
- if (false) {
- console.error(("[vuex] unknown getter: " + val));
- return
- }
- return this.$store.getters[val]
- };
- // mark vuex getter for devtools
- res[key].vuex = true;
- });
- return res
- });
- /**
- * Reduce the code which written in Vue.js for dispatch the action
- * @param {String} [namespace] - Module's namespace
- * @param {Object|Array} actions # Object's item can be a function which accept `dispatch` function as the first param, it can accept anthor params. You can dispatch action and do any other things in this function. specially, You need to pass anthor params from the mapped function.
- * @return {Object}
- */
- var mapActions = normalizeNamespace(function (namespace, actions) {
- var res = {};
- normalizeMap(actions).forEach(function (ref) {
- var key = ref.key;
- var val = ref.val;
- res[key] = function mappedAction () {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
- // get dispatch function from store
- var dispatch = this.$store.dispatch;
- if (namespace) {
- var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
- if (!module) {
- return
- }
- dispatch = module.context.dispatch;
- }
- return typeof val === 'function'
- ? val.apply(this, [dispatch].concat(args))
- : dispatch.apply(this.$store, [val].concat(args))
- };
- });
- return res
- });
- /**
- * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
- * @param {String} namespace
- * @return {Object}
- */
- var createNamespacedHelpers = function (namespace) { return ({
- mapState: mapState.bind(null, namespace),
- mapGetters: mapGetters.bind(null, namespace),
- mapMutations: mapMutations.bind(null, namespace),
- mapActions: mapActions.bind(null, namespace)
- }); };
- /**
- * Normalize the map
- * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
- * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
- * @param {Array|Object} map
- * @return {Object}
- */
- function normalizeMap (map) {
- return Array.isArray(map)
- ? map.map(function (key) { return ({ key: key, val: key }); })
- : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
- }
- /**
- * Return a function expect two param contains namespace and map. it will normalize the namespace and then the param's function will handle the new namespace and the map.
- * @param {Function} fn
- * @return {Function}
- */
- function normalizeNamespace (fn) {
- return function (namespace, map) {
- if (typeof namespace !== 'string') {
- map = namespace;
- namespace = '';
- } else if (namespace.charAt(namespace.length - 1) !== '/') {
- namespace += '/';
- }
- return fn(namespace, map)
- }
- }
- /**
- * Search a special module from store by namespace. if module not exist, print error message.
- * @param {Object} store
- * @param {String} helper
- * @param {String} namespace
- * @return {Object}
- */
- function getModuleByNamespace (store, helper, namespace) {
- var module = store._modulesNamespaceMap[namespace];
- if (false) {
- console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
- }
- return module
- }
- var index_esm = {
- Store: Store,
- install: install,
- version: '3.1.1',
- mapState: mapState,
- mapMutations: mapMutations,
- mapGetters: mapGetters,
- mapActions: mapActions,
- createNamespacedHelpers: createNamespacedHelpers
- };
- /* harmony default export */ __webpack_exports__["a"] = (index_esm);
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(0)))
- /***/ }),
- /* 18 */
- /***/ (function(module, exports, __webpack_require__) {
- /* WEBPACK VAR INJECTION */(function(process, global) {var __WEBPACK_AMD_DEFINE_RESULT__;/**
- * [js-md5]{@link https://github.com/emn178/js-md5}
- *
- * @namespace md5
- * @version 0.7.3
- * @author Chen, Yi-Cyuan [emn178@gmail.com]
- * @copyright Chen, Yi-Cyuan 2014-2017
- * @license MIT
- */
- (function () {
- 'use strict';
- var ERROR = 'input is invalid type';
- var WINDOW = typeof window === 'object';
- var root = WINDOW ? window : {};
- if (root.JS_MD5_NO_WINDOW) {
- WINDOW = false;
- }
- var WEB_WORKER = !WINDOW && typeof self === 'object';
- var NODE_JS = !root.JS_MD5_NO_NODE_JS && typeof process === 'object' && process.versions && process.versions.node;
- if (NODE_JS) {
- root = global;
- } else if (WEB_WORKER) {
- root = self;
- }
- var COMMON_JS = !root.JS_MD5_NO_COMMON_JS && typeof module === 'object' && module.exports;
- var AMD = "function" === 'function' && __webpack_require__(31);
- var ARRAY_BUFFER = !root.JS_MD5_NO_ARRAY_BUFFER && typeof ArrayBuffer !== 'undefined';
- var HEX_CHARS = '0123456789abcdef'.split('');
- var EXTRA = [128, 32768, 8388608, -2147483648];
- var SHIFT = [0, 8, 16, 24];
- var OUTPUT_TYPES = ['hex', 'array', 'digest', 'buffer', 'arrayBuffer', 'base64'];
- var BASE64_ENCODE_CHAR = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split('');
- var blocks = [], buffer8;
- if (ARRAY_BUFFER) {
- var buffer = new ArrayBuffer(68);
- buffer8 = new Uint8Array(buffer);
- blocks = new Uint32Array(buffer);
- }
- if (root.JS_MD5_NO_NODE_JS || !Array.isArray) {
- Array.isArray = function (obj) {
- return Object.prototype.toString.call(obj) === '[object Array]';
- };
- }
- if (ARRAY_BUFFER && (root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView)) {
- ArrayBuffer.isView = function (obj) {
- return typeof obj === 'object' && obj.buffer && obj.buffer.constructor === ArrayBuffer;
- };
- }
- /**
- * @method hex
- * @memberof md5
- * @description Output hash as hex string
- * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
- * @returns {String} Hex string
- * @example
- * md5.hex('The quick brown fox jumps over the lazy dog');
- * // equal to
- * md5('The quick brown fox jumps over the lazy dog');
- */
- /**
- * @method digest
- * @memberof md5
- * @description Output hash as bytes array
- * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
- * @returns {Array} Bytes array
- * @example
- * md5.digest('The quick brown fox jumps over the lazy dog');
- */
- /**
- * @method array
- * @memberof md5
- * @description Output hash as bytes array
- * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
- * @returns {Array} Bytes array
- * @example
- * md5.array('The quick brown fox jumps over the lazy dog');
- */
- /**
- * @method arrayBuffer
- * @memberof md5
- * @description Output hash as ArrayBuffer
- * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
- * @returns {ArrayBuffer} ArrayBuffer
- * @example
- * md5.arrayBuffer('The quick brown fox jumps over the lazy dog');
- */
- /**
- * @method buffer
- * @deprecated This maybe confuse with Buffer in node.js. Please use arrayBuffer instead.
- * @memberof md5
- * @description Output hash as ArrayBuffer
- * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
- * @returns {ArrayBuffer} ArrayBuffer
- * @example
- * md5.buffer('The quick brown fox jumps over the lazy dog');
- */
- /**
- * @method base64
- * @memberof md5
- * @description Output hash as base64 string
- * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
- * @returns {String} base64 string
- * @example
- * md5.base64('The quick brown fox jumps over the lazy dog');
- */
- var createOutputMethod = function (outputType) {
- return function (message) {
- return new Md5(true).update(message)[outputType]();
- };
- };
- /**
- * @method create
- * @memberof md5
- * @description Create Md5 object
- * @returns {Md5} Md5 object.
- * @example
- * var hash = md5.create();
- */
- /**
- * @method update
- * @memberof md5
- * @description Create and update Md5 object
- * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
- * @returns {Md5} Md5 object.
- * @example
- * var hash = md5.update('The quick brown fox jumps over the lazy dog');
- * // equal to
- * var hash = md5.create();
- * hash.update('The quick brown fox jumps over the lazy dog');
- */
- var createMethod = function () {
- var method = createOutputMethod('hex');
- if (NODE_JS) {
- method = nodeWrap(method);
- }
- method.create = function () {
- return new Md5();
- };
- method.update = function (message) {
- return method.create().update(message);
- };
- for (var i = 0; i < OUTPUT_TYPES.length; ++i) {
- var type = OUTPUT_TYPES[i];
- method[type] = createOutputMethod(type);
- }
- return method;
- };
- var nodeWrap = function (method) {
- var crypto = eval("require('crypto')");
- var Buffer = eval("require('buffer').Buffer");
- var nodeMethod = function (message) {
- if (typeof message === 'string') {
- return crypto.createHash('md5').update(message, 'utf8').digest('hex');
- } else {
- if (message === null || message === undefined) {
- throw ERROR;
- } else if (message.constructor === ArrayBuffer) {
- message = new Uint8Array(message);
- }
- }
- if (Array.isArray(message) || ArrayBuffer.isView(message) ||
- message.constructor === Buffer) {
- return crypto.createHash('md5').update(new Buffer(message)).digest('hex');
- } else {
- return method(message);
- }
- };
- return nodeMethod;
- };
- /**
- * Md5 class
- * @class Md5
- * @description This is internal class.
- * @see {@link md5.create}
- */
- function Md5(sharedMemory) {
- if (sharedMemory) {
- blocks[0] = blocks[16] = blocks[1] = blocks[2] = blocks[3] =
- blocks[4] = blocks[5] = blocks[6] = blocks[7] =
- blocks[8] = blocks[9] = blocks[10] = blocks[11] =
- blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0;
- this.blocks = blocks;
- this.buffer8 = buffer8;
- } else {
- if (ARRAY_BUFFER) {
- var buffer = new ArrayBuffer(68);
- this.buffer8 = new Uint8Array(buffer);
- this.blocks = new Uint32Array(buffer);
- } else {
- this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
- }
- }
- this.h0 = this.h1 = this.h2 = this.h3 = this.start = this.bytes = this.hBytes = 0;
- this.finalized = this.hashed = false;
- this.first = true;
- }
- /**
- * @method update
- * @memberof Md5
- * @instance
- * @description Update hash
- * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
- * @returns {Md5} Md5 object.
- * @see {@link md5.update}
- */
- Md5.prototype.update = function (message) {
- if (this.finalized) {
- return;
- }
- var notString, type = typeof message;
- if (type !== 'string') {
- if (type === 'object') {
- if (message === null) {
- throw ERROR;
- } else if (ARRAY_BUFFER && message.constructor === ArrayBuffer) {
- message = new Uint8Array(message);
- } else if (!Array.isArray(message)) {
- if (!ARRAY_BUFFER || !ArrayBuffer.isView(message)) {
- throw ERROR;
- }
- }
- } else {
- throw ERROR;
- }
- notString = true;
- }
- var code, index = 0, i, length = message.length, blocks = this.blocks;
- var buffer8 = this.buffer8;
- while (index < length) {
- if (this.hashed) {
- this.hashed = false;
- blocks[0] = blocks[16];
- blocks[16] = blocks[1] = blocks[2] = blocks[3] =
- blocks[4] = blocks[5] = blocks[6] = blocks[7] =
- blocks[8] = blocks[9] = blocks[10] = blocks[11] =
- blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0;
- }
- if (notString) {
- if (ARRAY_BUFFER) {
- for (i = this.start; index < length && i < 64; ++index) {
- buffer8[i++] = message[index];
- }
- } else {
- for (i = this.start; index < length && i < 64; ++index) {
- blocks[i >> 2] |= message[index] << SHIFT[i++ & 3];
- }
- }
- } else {
- if (ARRAY_BUFFER) {
- for (i = this.start; index < length && i < 64; ++index) {
- code = message.charCodeAt(index);
- if (code < 0x80) {
- buffer8[i++] = code;
- } else if (code < 0x800) {
- buffer8[i++] = 0xc0 | (code >> 6);
- buffer8[i++] = 0x80 | (code & 0x3f);
- } else if (code < 0xd800 || code >= 0xe000) {
- buffer8[i++] = 0xe0 | (code >> 12);
- buffer8[i++] = 0x80 | ((code >> 6) & 0x3f);
- buffer8[i++] = 0x80 | (code & 0x3f);
- } else {
- code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff));
- buffer8[i++] = 0xf0 | (code >> 18);
- buffer8[i++] = 0x80 | ((code >> 12) & 0x3f);
- buffer8[i++] = 0x80 | ((code >> 6) & 0x3f);
- buffer8[i++] = 0x80 | (code & 0x3f);
- }
- }
- } else {
- for (i = this.start; index < length && i < 64; ++index) {
- code = message.charCodeAt(index);
- if (code < 0x80) {
- blocks[i >> 2] |= code << SHIFT[i++ & 3];
- } else if (code < 0x800) {
- blocks[i >> 2] |= (0xc0 | (code >> 6)) << SHIFT[i++ & 3];
- blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];
- } else if (code < 0xd800 || code >= 0xe000) {
- blocks[i >> 2] |= (0xe0 | (code >> 12)) << SHIFT[i++ & 3];
- blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3];
- blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];
- } else {
- code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff));
- blocks[i >> 2] |= (0xf0 | (code >> 18)) << SHIFT[i++ & 3];
- blocks[i >> 2] |= (0x80 | ((code >> 12) & 0x3f)) << SHIFT[i++ & 3];
- blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3];
- blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];
- }
- }
- }
- }
- this.lastByteIndex = i;
- this.bytes += i - this.start;
- if (i >= 64) {
- this.start = i - 64;
- this.hash();
- this.hashed = true;
- } else {
- this.start = i;
- }
- }
- if (this.bytes > 4294967295) {
- this.hBytes += this.bytes / 4294967296 << 0;
- this.bytes = this.bytes % 4294967296;
- }
- return this;
- };
- Md5.prototype.finalize = function () {
- if (this.finalized) {
- return;
- }
- this.finalized = true;
- var blocks = this.blocks, i = this.lastByteIndex;
- blocks[i >> 2] |= EXTRA[i & 3];
- if (i >= 56) {
- if (!this.hashed) {
- this.hash();
- }
- blocks[0] = blocks[16];
- blocks[16] = blocks[1] = blocks[2] = blocks[3] =
- blocks[4] = blocks[5] = blocks[6] = blocks[7] =
- blocks[8] = blocks[9] = blocks[10] = blocks[11] =
- blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0;
- }
- blocks[14] = this.bytes << 3;
- blocks[15] = this.hBytes << 3 | this.bytes >>> 29;
- this.hash();
- };
- Md5.prototype.hash = function () {
- var a, b, c, d, bc, da, blocks = this.blocks;
- if (this.first) {
- a = blocks[0] - 680876937;
- a = (a << 7 | a >>> 25) - 271733879 << 0;
- d = (-1732584194 ^ a & 2004318071) + blocks[1] - 117830708;
- d = (d << 12 | d >>> 20) + a << 0;
- c = (-271733879 ^ (d & (a ^ -271733879))) + blocks[2] - 1126478375;
- c = (c << 17 | c >>> 15) + d << 0;
- b = (a ^ (c & (d ^ a))) + blocks[3] - 1316259209;
- b = (b << 22 | b >>> 10) + c << 0;
- } else {
- a = this.h0;
- b = this.h1;
- c = this.h2;
- d = this.h3;
- a += (d ^ (b & (c ^ d))) + blocks[0] - 680876936;
- a = (a << 7 | a >>> 25) + b << 0;
- d += (c ^ (a & (b ^ c))) + blocks[1] - 389564586;
- d = (d << 12 | d >>> 20) + a << 0;
- c += (b ^ (d & (a ^ b))) + blocks[2] + 606105819;
- c = (c << 17 | c >>> 15) + d << 0;
- b += (a ^ (c & (d ^ a))) + blocks[3] - 1044525330;
- b = (b << 22 | b >>> 10) + c << 0;
- }
- a += (d ^ (b & (c ^ d))) + blocks[4] - 176418897;
- a = (a << 7 | a >>> 25) + b << 0;
- d += (c ^ (a & (b ^ c))) + blocks[5] + 1200080426;
- d = (d << 12 | d >>> 20) + a << 0;
- c += (b ^ (d & (a ^ b))) + blocks[6] - 1473231341;
- c = (c << 17 | c >>> 15) + d << 0;
- b += (a ^ (c & (d ^ a))) + blocks[7] - 45705983;
- b = (b << 22 | b >>> 10) + c << 0;
- a += (d ^ (b & (c ^ d))) + blocks[8] + 1770035416;
- a = (a << 7 | a >>> 25) + b << 0;
- d += (c ^ (a & (b ^ c))) + blocks[9] - 1958414417;
- d = (d << 12 | d >>> 20) + a << 0;
- c += (b ^ (d & (a ^ b))) + blocks[10] - 42063;
- c = (c << 17 | c >>> 15) + d << 0;
- b += (a ^ (c & (d ^ a))) + blocks[11] - 1990404162;
- b = (b << 22 | b >>> 10) + c << 0;
- a += (d ^ (b & (c ^ d))) + blocks[12] + 1804603682;
- a = (a << 7 | a >>> 25) + b << 0;
- d += (c ^ (a & (b ^ c))) + blocks[13] - 40341101;
- d = (d << 12 | d >>> 20) + a << 0;
- c += (b ^ (d & (a ^ b))) + blocks[14] - 1502002290;
- c = (c << 17 | c >>> 15) + d << 0;
- b += (a ^ (c & (d ^ a))) + blocks[15] + 1236535329;
- b = (b << 22 | b >>> 10) + c << 0;
- a += (c ^ (d & (b ^ c))) + blocks[1] - 165796510;
- a = (a << 5 | a >>> 27) + b << 0;
- d += (b ^ (c & (a ^ b))) + blocks[6] - 1069501632;
- d = (d << 9 | d >>> 23) + a << 0;
- c += (a ^ (b & (d ^ a))) + blocks[11] + 643717713;
- c = (c << 14 | c >>> 18) + d << 0;
- b += (d ^ (a & (c ^ d))) + blocks[0] - 373897302;
- b = (b << 20 | b >>> 12) + c << 0;
- a += (c ^ (d & (b ^ c))) + blocks[5] - 701558691;
- a = (a << 5 | a >>> 27) + b << 0;
- d += (b ^ (c & (a ^ b))) + blocks[10] + 38016083;
- d = (d << 9 | d >>> 23) + a << 0;
- c += (a ^ (b & (d ^ a))) + blocks[15] - 660478335;
- c = (c << 14 | c >>> 18) + d << 0;
- b += (d ^ (a & (c ^ d))) + blocks[4] - 405537848;
- b = (b << 20 | b >>> 12) + c << 0;
- a += (c ^ (d & (b ^ c))) + blocks[9] + 568446438;
- a = (a << 5 | a >>> 27) + b << 0;
- d += (b ^ (c & (a ^ b))) + blocks[14] - 1019803690;
- d = (d << 9 | d >>> 23) + a << 0;
- c += (a ^ (b & (d ^ a))) + blocks[3] - 187363961;
- c = (c << 14 | c >>> 18) + d << 0;
- b += (d ^ (a & (c ^ d))) + blocks[8] + 1163531501;
- b = (b << 20 | b >>> 12) + c << 0;
- a += (c ^ (d & (b ^ c))) + blocks[13] - 1444681467;
- a = (a << 5 | a >>> 27) + b << 0;
- d += (b ^ (c & (a ^ b))) + blocks[2] - 51403784;
- d = (d << 9 | d >>> 23) + a << 0;
- c += (a ^ (b & (d ^ a))) + blocks[7] + 1735328473;
- c = (c << 14 | c >>> 18) + d << 0;
- b += (d ^ (a & (c ^ d))) + blocks[12] - 1926607734;
- b = (b << 20 | b >>> 12) + c << 0;
- bc = b ^ c;
- a += (bc ^ d) + blocks[5] - 378558;
- a = (a << 4 | a >>> 28) + b << 0;
- d += (bc ^ a) + blocks[8] - 2022574463;
- d = (d << 11 | d >>> 21) + a << 0;
- da = d ^ a;
- c += (da ^ b) + blocks[11] + 1839030562;
- c = (c << 16 | c >>> 16) + d << 0;
- b += (da ^ c) + blocks[14] - 35309556;
- b = (b << 23 | b >>> 9) + c << 0;
- bc = b ^ c;
- a += (bc ^ d) + blocks[1] - 1530992060;
- a = (a << 4 | a >>> 28) + b << 0;
- d += (bc ^ a) + blocks[4] + 1272893353;
- d = (d << 11 | d >>> 21) + a << 0;
- da = d ^ a;
- c += (da ^ b) + blocks[7] - 155497632;
- c = (c << 16 | c >>> 16) + d << 0;
- b += (da ^ c) + blocks[10] - 1094730640;
- b = (b << 23 | b >>> 9) + c << 0;
- bc = b ^ c;
- a += (bc ^ d) + blocks[13] + 681279174;
- a = (a << 4 | a >>> 28) + b << 0;
- d += (bc ^ a) + blocks[0] - 358537222;
- d = (d << 11 | d >>> 21) + a << 0;
- da = d ^ a;
- c += (da ^ b) + blocks[3] - 722521979;
- c = (c << 16 | c >>> 16) + d << 0;
- b += (da ^ c) + blocks[6] + 76029189;
- b = (b << 23 | b >>> 9) + c << 0;
- bc = b ^ c;
- a += (bc ^ d) + blocks[9] - 640364487;
- a = (a << 4 | a >>> 28) + b << 0;
- d += (bc ^ a) + blocks[12] - 421815835;
- d = (d << 11 | d >>> 21) + a << 0;
- da = d ^ a;
- c += (da ^ b) + blocks[15] + 530742520;
- c = (c << 16 | c >>> 16) + d << 0;
- b += (da ^ c) + blocks[2] - 995338651;
- b = (b << 23 | b >>> 9) + c << 0;
- a += (c ^ (b | ~d)) + blocks[0] - 198630844;
- a = (a << 6 | a >>> 26) + b << 0;
- d += (b ^ (a | ~c)) + blocks[7] + 1126891415;
- d = (d << 10 | d >>> 22) + a << 0;
- c += (a ^ (d | ~b)) + blocks[14] - 1416354905;
- c = (c << 15 | c >>> 17) + d << 0;
- b += (d ^ (c | ~a)) + blocks[5] - 57434055;
- b = (b << 21 | b >>> 11) + c << 0;
- a += (c ^ (b | ~d)) + blocks[12] + 1700485571;
- a = (a << 6 | a >>> 26) + b << 0;
- d += (b ^ (a | ~c)) + blocks[3] - 1894986606;
- d = (d << 10 | d >>> 22) + a << 0;
- c += (a ^ (d | ~b)) + blocks[10] - 1051523;
- c = (c << 15 | c >>> 17) + d << 0;
- b += (d ^ (c | ~a)) + blocks[1] - 2054922799;
- b = (b << 21 | b >>> 11) + c << 0;
- a += (c ^ (b | ~d)) + blocks[8] + 1873313359;
- a = (a << 6 | a >>> 26) + b << 0;
- d += (b ^ (a | ~c)) + blocks[15] - 30611744;
- d = (d << 10 | d >>> 22) + a << 0;
- c += (a ^ (d | ~b)) + blocks[6] - 1560198380;
- c = (c << 15 | c >>> 17) + d << 0;
- b += (d ^ (c | ~a)) + blocks[13] + 1309151649;
- b = (b << 21 | b >>> 11) + c << 0;
- a += (c ^ (b | ~d)) + blocks[4] - 145523070;
- a = (a << 6 | a >>> 26) + b << 0;
- d += (b ^ (a | ~c)) + blocks[11] - 1120210379;
- d = (d << 10 | d >>> 22) + a << 0;
- c += (a ^ (d | ~b)) + blocks[2] + 718787259;
- c = (c << 15 | c >>> 17) + d << 0;
- b += (d ^ (c | ~a)) + blocks[9] - 343485551;
- b = (b << 21 | b >>> 11) + c << 0;
- if (this.first) {
- this.h0 = a + 1732584193 << 0;
- this.h1 = b - 271733879 << 0;
- this.h2 = c - 1732584194 << 0;
- this.h3 = d + 271733878 << 0;
- this.first = false;
- } else {
- this.h0 = this.h0 + a << 0;
- this.h1 = this.h1 + b << 0;
- this.h2 = this.h2 + c << 0;
- this.h3 = this.h3 + d << 0;
- }
- };
- /**
- * @method hex
- * @memberof Md5
- * @instance
- * @description Output hash as hex string
- * @returns {String} Hex string
- * @see {@link md5.hex}
- * @example
- * hash.hex();
- */
- Md5.prototype.hex = function () {
- this.finalize();
- var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3;
- return HEX_CHARS[(h0 >> 4) & 0x0F] + HEX_CHARS[h0 & 0x0F] +
- HEX_CHARS[(h0 >> 12) & 0x0F] + HEX_CHARS[(h0 >> 8) & 0x0F] +
- HEX_CHARS[(h0 >> 20) & 0x0F] + HEX_CHARS[(h0 >> 16) & 0x0F] +
- HEX_CHARS[(h0 >> 28) & 0x0F] + HEX_CHARS[(h0 >> 24) & 0x0F] +
- HEX_CHARS[(h1 >> 4) & 0x0F] + HEX_CHARS[h1 & 0x0F] +
- HEX_CHARS[(h1 >> 12) & 0x0F] + HEX_CHARS[(h1 >> 8) & 0x0F] +
- HEX_CHARS[(h1 >> 20) & 0x0F] + HEX_CHARS[(h1 >> 16) & 0x0F] +
- HEX_CHARS[(h1 >> 28) & 0x0F] + HEX_CHARS[(h1 >> 24) & 0x0F] +
- HEX_CHARS[(h2 >> 4) & 0x0F] + HEX_CHARS[h2 & 0x0F] +
- HEX_CHARS[(h2 >> 12) & 0x0F] + HEX_CHARS[(h2 >> 8) & 0x0F] +
- HEX_CHARS[(h2 >> 20) & 0x0F] + HEX_CHARS[(h2 >> 16) & 0x0F] +
- HEX_CHARS[(h2 >> 28) & 0x0F] + HEX_CHARS[(h2 >> 24) & 0x0F] +
- HEX_CHARS[(h3 >> 4) & 0x0F] + HEX_CHARS[h3 & 0x0F] +
- HEX_CHARS[(h3 >> 12) & 0x0F] + HEX_CHARS[(h3 >> 8) & 0x0F] +
- HEX_CHARS[(h3 >> 20) & 0x0F] + HEX_CHARS[(h3 >> 16) & 0x0F] +
- HEX_CHARS[(h3 >> 28) & 0x0F] + HEX_CHARS[(h3 >> 24) & 0x0F];
- };
- /**
- * @method toString
- * @memberof Md5
- * @instance
- * @description Output hash as hex string
- * @returns {String} Hex string
- * @see {@link md5.hex}
- * @example
- * hash.toString();
- */
- Md5.prototype.toString = Md5.prototype.hex;
- /**
- * @method digest
- * @memberof Md5
- * @instance
- * @description Output hash as bytes array
- * @returns {Array} Bytes array
- * @see {@link md5.digest}
- * @example
- * hash.digest();
- */
- Md5.prototype.digest = function () {
- this.finalize();
- var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3;
- return [
- h0 & 0xFF, (h0 >> 8) & 0xFF, (h0 >> 16) & 0xFF, (h0 >> 24) & 0xFF,
- h1 & 0xFF, (h1 >> 8) & 0xFF, (h1 >> 16) & 0xFF, (h1 >> 24) & 0xFF,
- h2 & 0xFF, (h2 >> 8) & 0xFF, (h2 >> 16) & 0xFF, (h2 >> 24) & 0xFF,
- h3 & 0xFF, (h3 >> 8) & 0xFF, (h3 >> 16) & 0xFF, (h3 >> 24) & 0xFF
- ];
- };
- /**
- * @method array
- * @memberof Md5
- * @instance
- * @description Output hash as bytes array
- * @returns {Array} Bytes array
- * @see {@link md5.array}
- * @example
- * hash.array();
- */
- Md5.prototype.array = Md5.prototype.digest;
- /**
- * @method arrayBuffer
- * @memberof Md5
- * @instance
- * @description Output hash as ArrayBuffer
- * @returns {ArrayBuffer} ArrayBuffer
- * @see {@link md5.arrayBuffer}
- * @example
- * hash.arrayBuffer();
- */
- Md5.prototype.arrayBuffer = function () {
- this.finalize();
- var buffer = new ArrayBuffer(16);
- var blocks = new Uint32Array(buffer);
- blocks[0] = this.h0;
- blocks[1] = this.h1;
- blocks[2] = this.h2;
- blocks[3] = this.h3;
- return buffer;
- };
- /**
- * @method buffer
- * @deprecated This maybe confuse with Buffer in node.js. Please use arrayBuffer instead.
- * @memberof Md5
- * @instance
- * @description Output hash as ArrayBuffer
- * @returns {ArrayBuffer} ArrayBuffer
- * @see {@link md5.buffer}
- * @example
- * hash.buffer();
- */
- Md5.prototype.buffer = Md5.prototype.arrayBuffer;
- /**
- * @method base64
- * @memberof Md5
- * @instance
- * @description Output hash as base64 string
- * @returns {String} base64 string
- * @see {@link md5.base64}
- * @example
- * hash.base64();
- */
- Md5.prototype.base64 = function () {
- var v1, v2, v3, base64Str = '', bytes = this.array();
- for (var i = 0; i < 15;) {
- v1 = bytes[i++];
- v2 = bytes[i++];
- v3 = bytes[i++];
- base64Str += BASE64_ENCODE_CHAR[v1 >>> 2] +
- BASE64_ENCODE_CHAR[(v1 << 4 | v2 >>> 4) & 63] +
- BASE64_ENCODE_CHAR[(v2 << 2 | v3 >>> 6) & 63] +
- BASE64_ENCODE_CHAR[v3 & 63];
- }
- v1 = bytes[i];
- base64Str += BASE64_ENCODE_CHAR[v1 >>> 2] +
- BASE64_ENCODE_CHAR[(v1 << 4) & 63] +
- '==';
- return base64Str;
- };
- var exports = createMethod();
- if (COMMON_JS) {
- module.exports = exports;
- } else {
- /**
- * @method md5
- * @description Md5 hash function, export to global in browsers.
- * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
- * @returns {String} md5 hashes
- * @example
- * md5(''); // d41d8cd98f00b204e9800998ecf8427e
- * md5('The quick brown fox jumps over the lazy dog'); // 9e107d9d372bb6826bd81d3542a419d6
- * md5('The quick brown fox jumps over the lazy dog.'); // e4d909c290d0fb1ca068ffaddf22cbd0
- *
- * // It also supports UTF-8 encoding
- * md5('中文'); // a7bac2239fcdcb3a067903d8077c4a07
- *
- * // It also supports byte `Array`, `Uint8Array`, `ArrayBuffer`
- * md5([]); // d41d8cd98f00b204e9800998ecf8427e
- * md5(new Uint8Array([])); // d41d8cd98f00b204e9800998ecf8427e
- */
- root.md5 = exports;
- if (AMD) {
- !(__WEBPACK_AMD_DEFINE_RESULT__ = function () {
- return exports;
- }.call(exports, __webpack_require__, exports, module),
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
- }
- }
- })();
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(6), __webpack_require__(0)))
- /***/ }),
- /* 19 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ __webpack_exports__["default"] = ({
- data: function data() {
- return {};
- },
- mounted: function mounted() {},
- beforeDestroy: function beforeDestroy() {},
- methods: {}
- });
- /***/ }),
- /* 20 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__env__ = __webpack_require__(21);
- var BASE_URL = 'http://192.168.11.208:8070';
- var config = {
- env: __WEBPACK_IMPORTED_MODULE_0__env__["a" /* default */],
- baseUrl: BASE_URL,
- timeout: 20000
- };
- /* harmony default export */ __webpack_exports__["a"] = (config);
- /***/ }),
- /* 21 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony default export */ __webpack_exports__["a"] = ("production");
- /***/ }),
- /* 22 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__config_config_js__ = __webpack_require__(20);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__common__ = __webpack_require__(5);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_js_md5__ = __webpack_require__(18);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_js_md5___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_js_md5__);
- var baseUrl = __WEBPACK_IMPORTED_MODULE_0__config_config_js__["a" /* default */].baseUrl;
- /* harmony default export */ __webpack_exports__["a"] = ({
- baseUrl: baseUrl,
- getSign: function getSign(data) {
- return __WEBPACK_IMPORTED_MODULE_2_js_md5___default()(data);
- },
- formatParams: function formatParams(object) {
- var ret = [];
- for (var key in object) {
- if (object.hasOwnProperty(key)) {
- var element = object[key];
- if (element !== '' && element !== undefined && element !== null) {
- ret.push(key + '=' + element);
- }
- }
- }
- return ret.join('&');
- },
- ajax: function ajax(_ref) {
- var url = _ref.url,
- data = _ref.data,
- token = _ref.token,
- _ref$method = _ref.method,
- method = _ref$method === undefined ? 'POST' : _ref$method;
- var params = this.formatParams(data);
- var headers = {
- 'Content-Type': 'application/x-www-form-urlencoded'
- };
- if (token) {
- headers.token = token;
- }
- var requstUrl = method == 'POST' ? '' + baseUrl + url : params == '' ? '' + baseUrl + url : '' + baseUrl + url + '?' + params;
- var options = {
- method: method,
- headers: headers,
- body: params
- };
- if (method == 'GET') {
- delete options.body;
- }
- var res = fetch(requstUrl, options).then(function (req) {
- return req.json();
- });
- return res;
- },
- get: function get(url, data) {
- var token = __WEBPACK_IMPORTED_MODULE_1__common__["a" /* default */].getCookie('token') || null;
- var ret = this.ajax({
- url: url,
- data: data,
- token: token,
- method: 'GET'
- });
- ret.then(function (_ref2) {
- var code = _ref2.code,
- msg = _ref2.msg;
- if (code != 1) {
- window.$Message.error({
- content: msg,
- duration: 2,
- onClose: function onClose() {
- switch (code) {
- case -2:
- window.location.href = '/login';
- break;
- default:
- break;
- }
- }
- });
- }
- }).catch(function (res) {});
- return ret;
- },
- post: function post(url, data) {
- var token = __WEBPACK_IMPORTED_MODULE_1__common__["a" /* default */].getCookie('token') || null;
- if (!token && url.indexOf('login') == -1) {
- return new Promise(function (res, rej) {
- window.$Message.error('未登录');
- window.location.href = '/login';
- });
- }
- var ret = this.ajax({
- url: url,
- data: data,
- token: token
- });
- ret.then(function (_ref3) {
- var code = _ref3.code,
- msg = _ref3.msg;
- if (code != 1) {
- console.log('=======================');
- window.$Message.error({
- content: msg,
- duration: 2,
- onClose: function onClose() {
- switch (code) {
- case -2:
- window.location.href = '/login';
- break;
- default:
- break;
- }
- }
- });
- }
- }).catch(function (res) {});
- return ret;
- }
- });
- /***/ }),
- /* 23 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_iview__ = __webpack_require__(2);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_iview___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_iview__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_vue_router__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__router__ = __webpack_require__(9);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__libs_util__ = __webpack_require__(8);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__app_vue__ = __webpack_require__(15);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__app_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__app_vue__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_iview_dist_styles_iview_css__ = __webpack_require__(13);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_iview_dist_styles_iview_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_iview_dist_styles_iview_css__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__libs_mixins__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__store_store__ = __webpack_require__(10);
- __WEBPACK_IMPORTED_MODULE_0_vue__["default"].use(__WEBPACK_IMPORTED_MODULE_2_vue_router__["a" /* default */]);
- __WEBPACK_IMPORTED_MODULE_0_vue__["default"].use(__WEBPACK_IMPORTED_MODULE_1_iview___default.a);
- __WEBPACK_IMPORTED_MODULE_0_vue__["default"].use(__WEBPACK_IMPORTED_MODULE_7__libs_mixins__["a" /* default */]);
- // 路由配置
- var RouterConfig = {
- mode: 'history',
- routes: __WEBPACK_IMPORTED_MODULE_3__router__["a" /* default */]
- };
- var router = new __WEBPACK_IMPORTED_MODULE_2_vue_router__["a" /* default */](RouterConfig);
- router.beforeEach(function (to, from, next) {
- __WEBPACK_IMPORTED_MODULE_1_iview___default.a.LoadingBar.start();
- __WEBPACK_IMPORTED_MODULE_4__libs_util__["a" /* default */].title(to.meta.title);
- next();
- });
- router.afterEach(function (to, from, next) {
- __WEBPACK_IMPORTED_MODULE_1_iview___default.a.LoadingBar.finish();
- window.scrollTo(0, 0);
- });
- var app = new __WEBPACK_IMPORTED_MODULE_0_vue__["default"]({
- el: '#app',
- router: router,
- store: __WEBPACK_IMPORTED_MODULE_8__store_store__["a" /* default */],
- render: function render(h) {
- return h(__WEBPACK_IMPORTED_MODULE_5__app_vue___default.a);
- }
- });
- window.$Message = app.$Message;
- /***/ }),
- /* 24 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__libs_api__ = __webpack_require__(4);
- var _actions, _mutations;
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
- var JOB_LIST = "JOB_LIST";
- var ADD_JOB = "ADD_JOB";
- var DEL_JOB = "DEL_JOB";
- var KILL_JOB = "KILL_JOB";
- var GET_LOG_LIST = "GET_LOG_LIST";
- var GET_WORKER_LIST = "GET_WORKER_LIST";
- /* harmony default export */ __webpack_exports__["a"] = ({
- namespaced: true,
- state: {
- list: [],
- workerList: []
- },
- actions: (_actions = {}, _defineProperty(_actions, GET_WORKER_LIST, async function (_ref, params) {
- var commit = _ref.commit;
- var res = await __WEBPACK_IMPORTED_MODULE_0__libs_api__["a" /* default */].post(__WEBPACK_IMPORTED_MODULE_0__libs_api__["a" /* default */].job.workerlist, params);
- commit(GET_WORKER_LIST, res);
- }), _defineProperty(_actions, GET_LOG_LIST, async function (_ref2) {
- var commit = _ref2.commit;
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var res = await __WEBPACK_IMPORTED_MODULE_0__libs_api__["a" /* default */].post(__WEBPACK_IMPORTED_MODULE_0__libs_api__["a" /* default */].job.loglist, params);
- return res;
- }), _defineProperty(_actions, JOB_LIST, async function (_ref3) {
- var commit = _ref3.commit;
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var res = await __WEBPACK_IMPORTED_MODULE_0__libs_api__["a" /* default */].post(__WEBPACK_IMPORTED_MODULE_0__libs_api__["a" /* default */].job.joblist, params);
- commit(JOB_LIST, res);
- return res;
- }), _defineProperty(_actions, ADD_JOB, async function (_ref4) {
- var commit = _ref4.commit;
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var type;
- params.isEditJob ? type = 2 : type = 1;
- delete params.isEditJob;
- var job = JSON.stringify(params);
- var res = await __WEBPACK_IMPORTED_MODULE_0__libs_api__["a" /* default */].post(__WEBPACK_IMPORTED_MODULE_0__libs_api__["a" /* default */].job.savejob, { job: job, type: type });
- return res;
- }), _defineProperty(_actions, DEL_JOB, async function (_ref5) {
- var commit = _ref5.commit;
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var res = await __WEBPACK_IMPORTED_MODULE_0__libs_api__["a" /* default */].post(__WEBPACK_IMPORTED_MODULE_0__libs_api__["a" /* default */].job.deljob, params);
- return res;
- }), _defineProperty(_actions, KILL_JOB, async function (_ref6) {
- var commit = _ref6.commit;
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var res = await __WEBPACK_IMPORTED_MODULE_0__libs_api__["a" /* default */].post(__WEBPACK_IMPORTED_MODULE_0__libs_api__["a" /* default */].job.killjob, params);
- return res;
- }), _actions),
- mutations: (_mutations = {}, _defineProperty(_mutations, GET_WORKER_LIST, function (state, _ref7) {
- var data = _ref7.data;
- var d = [];
- for (var i = 0; i < data.length; i++) {
- d.push({
- ipNode: data[i]
- });
- }
- state.workerList = d || [];
- }), _defineProperty(_mutations, JOB_LIST, function (state, _ref8) {
- var code = _ref8.code,
- data = _ref8.data,
- msg = _ref8.msg;
- state.list = data || [];
- }), _mutations)
- });
- /***/ }),
- /* 25 */,
- /* 26 */
- /***/ (function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ }),
- /* 27 */
- /***/ (function(module, exports) {
- // removed by extract-text-webpack-plugin
- /***/ }),
- /* 28 */,
- /* 29 */,
- /* 30 */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- attrs: {
- "id": "app"
- }
- }, [_c('router-view')], 1)
- },staticRenderFns: []}
- module.exports.render._withStripped = true
- if (false) {
- module.hot.accept()
- if (module.hot.data) {
- require("vue-loader/node_modules/vue-hot-reload-api").rerender("data-v-866dc8e0", module.exports)
- }
- }
- /***/ }),
- /* 31 */
- /***/ (function(module, exports) {
- /* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {/* globals __webpack_amd_options__ */
- module.exports = __webpack_amd_options__;
- /* WEBPACK VAR INJECTION */}.call(exports, {}))
- /***/ })
- ],[23]);
|