UNPKG

youzanyun-devtool-worker

Version:

- web - ws - proxy

25 lines 35 kB
!function(e){function n(n){for(var t,_,r=n[0],m=n[1],a=n[2],d=0,u=[];d<r.length;d++)_=r[d],Object.prototype.hasOwnProperty.call(s,_)&&s[_]&&u.push(s[_][0]),s[_]=0;for(t in m)Object.prototype.hasOwnProperty.call(m,t)&&(e[t]=m[t]);for(c&&c(n);u.length;)u.shift()();return l.push.apply(l,a||[]),o()}function o(){for(var e,n=0;n<l.length;n++){for(var o=l[n],t=!0,r=1;r<o.length;r++){var m=o[r];0!==s[m]&&(t=!1)}t&&(l.splice(n--,1),e=_(_.s=o[0]))}return e}var t={},s={login:0},l=[];function _(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,_),o.l=!0,o.exports}_.e=function(){return Promise.resolve()},_.m=e,_.c=t,_.d=function(e,n,o){_.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:o})},_.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},_.t=function(e,n){if(1&n&&(e=_(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(_.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var t in e)_.d(o,t,function(n){return e[n]}.bind(null,t));return o},_.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return _.d(n,"a",n),n},_.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},_.p="/react-ui/";var r=window.webpackJsonp=window.webpackJsonp||[],m=r.push.bind(r);r.push=n,r=r.slice();for(var a=0;a<r.length;a++)n(r[a]);var c=m;l.push(["./src/pages/login/main.js","vendor"]),o()}({"./node_modules/moment/locale sync recursive ^\\.\\/.*$": /*!**************************************************!*\ !*** ./node_modules/moment/locale sync ^\.\/.*$ ***! \**************************************************/ /*! no static exports found */function(module,exports,__webpack_require__){eval('var map = {\n\t"./af": "./node_modules/moment/locale/af.js",\n\t"./af.js": "./node_modules/moment/locale/af.js",\n\t"./ar": "./node_modules/moment/locale/ar.js",\n\t"./ar-dz": "./node_modules/moment/locale/ar-dz.js",\n\t"./ar-dz.js": "./node_modules/moment/locale/ar-dz.js",\n\t"./ar-kw": "./node_modules/moment/locale/ar-kw.js",\n\t"./ar-kw.js": "./node_modules/moment/locale/ar-kw.js",\n\t"./ar-ly": "./node_modules/moment/locale/ar-ly.js",\n\t"./ar-ly.js": "./node_modules/moment/locale/ar-ly.js",\n\t"./ar-ma": "./node_modules/moment/locale/ar-ma.js",\n\t"./ar-ma.js": "./node_modules/moment/locale/ar-ma.js",\n\t"./ar-sa": "./node_modules/moment/locale/ar-sa.js",\n\t"./ar-sa.js": "./node_modules/moment/locale/ar-sa.js",\n\t"./ar-tn": "./node_modules/moment/locale/ar-tn.js",\n\t"./ar-tn.js": "./node_modules/moment/locale/ar-tn.js",\n\t"./ar.js": "./node_modules/moment/locale/ar.js",\n\t"./az": "./node_modules/moment/locale/az.js",\n\t"./az.js": "./node_modules/moment/locale/az.js",\n\t"./be": "./node_modules/moment/locale/be.js",\n\t"./be.js": "./node_modules/moment/locale/be.js",\n\t"./bg": "./node_modules/moment/locale/bg.js",\n\t"./bg.js": "./node_modules/moment/locale/bg.js",\n\t"./bm": "./node_modules/moment/locale/bm.js",\n\t"./bm.js": "./node_modules/moment/locale/bm.js",\n\t"./bn": "./node_modules/moment/locale/bn.js",\n\t"./bn.js": "./node_modules/moment/locale/bn.js",\n\t"./bo": "./node_modules/moment/locale/bo.js",\n\t"./bo.js": "./node_modules/moment/locale/bo.js",\n\t"./br": "./node_modules/moment/locale/br.js",\n\t"./br.js": "./node_modules/moment/locale/br.js",\n\t"./bs": "./node_modules/moment/locale/bs.js",\n\t"./bs.js": "./node_modules/moment/locale/bs.js",\n\t"./ca": "./node_modules/moment/locale/ca.js",\n\t"./ca.js": "./node_modules/moment/locale/ca.js",\n\t"./cs": "./node_modules/moment/locale/cs.js",\n\t"./cs.js": "./node_modules/moment/locale/cs.js",\n\t"./cv": "./node_modules/moment/locale/cv.js",\n\t"./cv.js": "./node_modules/moment/locale/cv.js",\n\t"./cy": "./node_modules/moment/locale/cy.js",\n\t"./cy.js": "./node_modules/moment/locale/cy.js",\n\t"./da": "./node_modules/moment/locale/da.js",\n\t"./da.js": "./node_modules/moment/locale/da.js",\n\t"./de": "./node_modules/moment/locale/de.js",\n\t"./de-at": "./node_modules/moment/locale/de-at.js",\n\t"./de-at.js": "./node_modules/moment/locale/de-at.js",\n\t"./de-ch": "./node_modules/moment/locale/de-ch.js",\n\t"./de-ch.js": "./node_modules/moment/locale/de-ch.js",\n\t"./de.js": "./node_modules/moment/locale/de.js",\n\t"./dv": "./node_modules/moment/locale/dv.js",\n\t"./dv.js": "./node_modules/moment/locale/dv.js",\n\t"./el": "./node_modules/moment/locale/el.js",\n\t"./el.js": "./node_modules/moment/locale/el.js",\n\t"./en-SG": "./node_modules/moment/locale/en-SG.js",\n\t"./en-SG.js": "./node_modules/moment/locale/en-SG.js",\n\t"./en-au": "./node_modules/moment/locale/en-au.js",\n\t"./en-au.js": "./node_modules/moment/locale/en-au.js",\n\t"./en-ca": "./node_modules/moment/locale/en-ca.js",\n\t"./en-ca.js": "./node_modules/moment/locale/en-ca.js",\n\t"./en-gb": "./node_modules/moment/locale/en-gb.js",\n\t"./en-gb.js": "./node_modules/moment/locale/en-gb.js",\n\t"./en-ie": "./node_modules/moment/locale/en-ie.js",\n\t"./en-ie.js": "./node_modules/moment/locale/en-ie.js",\n\t"./en-il": "./node_modules/moment/locale/en-il.js",\n\t"./en-il.js": "./node_modules/moment/locale/en-il.js",\n\t"./en-nz": "./node_modules/moment/locale/en-nz.js",\n\t"./en-nz.js": "./node_modules/moment/locale/en-nz.js",\n\t"./eo": "./node_modules/moment/locale/eo.js",\n\t"./eo.js": "./node_modules/moment/locale/eo.js",\n\t"./es": "./node_modules/moment/locale/es.js",\n\t"./es-do": "./node_modules/moment/locale/es-do.js",\n\t"./es-do.js": "./node_modules/moment/locale/es-do.js",\n\t"./es-us": "./node_modules/moment/locale/es-us.js",\n\t"./es-us.js": "./node_modules/moment/locale/es-us.js",\n\t"./es.js": "./node_modules/moment/locale/es.js",\n\t"./et": "./node_modules/moment/locale/et.js",\n\t"./et.js": "./node_modules/moment/locale/et.js",\n\t"./eu": "./node_modules/moment/locale/eu.js",\n\t"./eu.js": "./node_modules/moment/locale/eu.js",\n\t"./fa": "./node_modules/moment/locale/fa.js",\n\t"./fa.js": "./node_modules/moment/locale/fa.js",\n\t"./fi": "./node_modules/moment/locale/fi.js",\n\t"./fi.js": "./node_modules/moment/locale/fi.js",\n\t"./fo": "./node_modules/moment/locale/fo.js",\n\t"./fo.js": "./node_modules/moment/locale/fo.js",\n\t"./fr": "./node_modules/moment/locale/fr.js",\n\t"./fr-ca": "./node_modules/moment/locale/fr-ca.js",\n\t"./fr-ca.js": "./node_modules/moment/locale/fr-ca.js",\n\t"./fr-ch": "./node_modules/moment/locale/fr-ch.js",\n\t"./fr-ch.js": "./node_modules/moment/locale/fr-ch.js",\n\t"./fr.js": "./node_modules/moment/locale/fr.js",\n\t"./fy": "./node_modules/moment/locale/fy.js",\n\t"./fy.js": "./node_modules/moment/locale/fy.js",\n\t"./ga": "./node_modules/moment/locale/ga.js",\n\t"./ga.js": "./node_modules/moment/locale/ga.js",\n\t"./gd": "./node_modules/moment/locale/gd.js",\n\t"./gd.js": "./node_modules/moment/locale/gd.js",\n\t"./gl": "./node_modules/moment/locale/gl.js",\n\t"./gl.js": "./node_modules/moment/locale/gl.js",\n\t"./gom-latn": "./node_modules/moment/locale/gom-latn.js",\n\t"./gom-latn.js": "./node_modules/moment/locale/gom-latn.js",\n\t"./gu": "./node_modules/moment/locale/gu.js",\n\t"./gu.js": "./node_modules/moment/locale/gu.js",\n\t"./he": "./node_modules/moment/locale/he.js",\n\t"./he.js": "./node_modules/moment/locale/he.js",\n\t"./hi": "./node_modules/moment/locale/hi.js",\n\t"./hi.js": "./node_modules/moment/locale/hi.js",\n\t"./hr": "./node_modules/moment/locale/hr.js",\n\t"./hr.js": "./node_modules/moment/locale/hr.js",\n\t"./hu": "./node_modules/moment/locale/hu.js",\n\t"./hu.js": "./node_modules/moment/locale/hu.js",\n\t"./hy-am": "./node_modules/moment/locale/hy-am.js",\n\t"./hy-am.js": "./node_modules/moment/locale/hy-am.js",\n\t"./id": "./node_modules/moment/locale/id.js",\n\t"./id.js": "./node_modules/moment/locale/id.js",\n\t"./is": "./node_modules/moment/locale/is.js",\n\t"./is.js": "./node_modules/moment/locale/is.js",\n\t"./it": "./node_modules/moment/locale/it.js",\n\t"./it-ch": "./node_modules/moment/locale/it-ch.js",\n\t"./it-ch.js": "./node_modules/moment/locale/it-ch.js",\n\t"./it.js": "./node_modules/moment/locale/it.js",\n\t"./ja": "./node_modules/moment/locale/ja.js",\n\t"./ja.js": "./node_modules/moment/locale/ja.js",\n\t"./jv": "./node_modules/moment/locale/jv.js",\n\t"./jv.js": "./node_modules/moment/locale/jv.js",\n\t"./ka": "./node_modules/moment/locale/ka.js",\n\t"./ka.js": "./node_modules/moment/locale/ka.js",\n\t"./kk": "./node_modules/moment/locale/kk.js",\n\t"./kk.js": "./node_modules/moment/locale/kk.js",\n\t"./km": "./node_modules/moment/locale/km.js",\n\t"./km.js": "./node_modules/moment/locale/km.js",\n\t"./kn": "./node_modules/moment/locale/kn.js",\n\t"./kn.js": "./node_modules/moment/locale/kn.js",\n\t"./ko": "./node_modules/moment/locale/ko.js",\n\t"./ko.js": "./node_modules/moment/locale/ko.js",\n\t"./ku": "./node_modules/moment/locale/ku.js",\n\t"./ku.js": "./node_modules/moment/locale/ku.js",\n\t"./ky": "./node_modules/moment/locale/ky.js",\n\t"./ky.js": "./node_modules/moment/locale/ky.js",\n\t"./lb": "./node_modules/moment/locale/lb.js",\n\t"./lb.js": "./node_modules/moment/locale/lb.js",\n\t"./lo": "./node_modules/moment/locale/lo.js",\n\t"./lo.js": "./node_modules/moment/locale/lo.js",\n\t"./lt": "./node_modules/moment/locale/lt.js",\n\t"./lt.js": "./node_modules/moment/locale/lt.js",\n\t"./lv": "./node_modules/moment/locale/lv.js",\n\t"./lv.js": "./node_modules/moment/locale/lv.js",\n\t"./me": "./node_modules/moment/locale/me.js",\n\t"./me.js": "./node_modules/moment/locale/me.js",\n\t"./mi": "./node_modules/moment/locale/mi.js",\n\t"./mi.js": "./node_modules/moment/locale/mi.js",\n\t"./mk": "./node_modules/moment/locale/mk.js",\n\t"./mk.js": "./node_modules/moment/locale/mk.js",\n\t"./ml": "./node_modules/moment/locale/ml.js",\n\t"./ml.js": "./node_modules/moment/locale/ml.js",\n\t"./mn": "./node_modules/moment/locale/mn.js",\n\t"./mn.js": "./node_modules/moment/locale/mn.js",\n\t"./mr": "./node_modules/moment/locale/mr.js",\n\t"./mr.js": "./node_modules/moment/locale/mr.js",\n\t"./ms": "./node_modules/moment/locale/ms.js",\n\t"./ms-my": "./node_modules/moment/locale/ms-my.js",\n\t"./ms-my.js": "./node_modules/moment/locale/ms-my.js",\n\t"./ms.js": "./node_modules/moment/locale/ms.js",\n\t"./mt": "./node_modules/moment/locale/mt.js",\n\t"./mt.js": "./node_modules/moment/locale/mt.js",\n\t"./my": "./node_modules/moment/locale/my.js",\n\t"./my.js": "./node_modules/moment/locale/my.js",\n\t"./nb": "./node_modules/moment/locale/nb.js",\n\t"./nb.js": "./node_modules/moment/locale/nb.js",\n\t"./ne": "./node_modules/moment/locale/ne.js",\n\t"./ne.js": "./node_modules/moment/locale/ne.js",\n\t"./nl": "./node_modules/moment/locale/nl.js",\n\t"./nl-be": "./node_modules/moment/locale/nl-be.js",\n\t"./nl-be.js": "./node_modules/moment/locale/nl-be.js",\n\t"./nl.js": "./node_modules/moment/locale/nl.js",\n\t"./nn": "./node_modules/moment/locale/nn.js",\n\t"./nn.js": "./node_modules/moment/locale/nn.js",\n\t"./pa-in": "./node_modules/moment/locale/pa-in.js",\n\t"./pa-in.js": "./node_modules/moment/locale/pa-in.js",\n\t"./pl": "./node_modules/moment/locale/pl.js",\n\t"./pl.js": "./node_modules/moment/locale/pl.js",\n\t"./pt": "./node_modules/moment/locale/pt.js",\n\t"./pt-br": "./node_modules/moment/locale/pt-br.js",\n\t"./pt-br.js": "./node_modules/moment/locale/pt-br.js",\n\t"./pt.js": "./node_modules/moment/locale/pt.js",\n\t"./ro": "./node_modules/moment/locale/ro.js",\n\t"./ro.js": "./node_modules/moment/locale/ro.js",\n\t"./ru": "./node_modules/moment/locale/ru.js",\n\t"./ru.js": "./node_modules/moment/locale/ru.js",\n\t"./sd": "./node_modules/moment/locale/sd.js",\n\t"./sd.js": "./node_modules/moment/locale/sd.js",\n\t"./se": "./node_modules/moment/locale/se.js",\n\t"./se.js": "./node_modules/moment/locale/se.js",\n\t"./si": "./node_modules/moment/locale/si.js",\n\t"./si.js": "./node_modules/moment/locale/si.js",\n\t"./sk": "./node_modules/moment/locale/sk.js",\n\t"./sk.js": "./node_modules/moment/locale/sk.js",\n\t"./sl": "./node_modules/moment/locale/sl.js",\n\t"./sl.js": "./node_modules/moment/locale/sl.js",\n\t"./sq": "./node_modules/moment/locale/sq.js",\n\t"./sq.js": "./node_modules/moment/locale/sq.js",\n\t"./sr": "./node_modules/moment/locale/sr.js",\n\t"./sr-cyrl": "./node_modules/moment/locale/sr-cyrl.js",\n\t"./sr-cyrl.js": "./node_modules/moment/locale/sr-cyrl.js",\n\t"./sr.js": "./node_modules/moment/locale/sr.js",\n\t"./ss": "./node_modules/moment/locale/ss.js",\n\t"./ss.js": "./node_modules/moment/locale/ss.js",\n\t"./sv": "./node_modules/moment/locale/sv.js",\n\t"./sv.js": "./node_modules/moment/locale/sv.js",\n\t"./sw": "./node_modules/moment/locale/sw.js",\n\t"./sw.js": "./node_modules/moment/locale/sw.js",\n\t"./ta": "./node_modules/moment/locale/ta.js",\n\t"./ta.js": "./node_modules/moment/locale/ta.js",\n\t"./te": "./node_modules/moment/locale/te.js",\n\t"./te.js": "./node_modules/moment/locale/te.js",\n\t"./tet": "./node_modules/moment/locale/tet.js",\n\t"./tet.js": "./node_modules/moment/locale/tet.js",\n\t"./tg": "./node_modules/moment/locale/tg.js",\n\t"./tg.js": "./node_modules/moment/locale/tg.js",\n\t"./th": "./node_modules/moment/locale/th.js",\n\t"./th.js": "./node_modules/moment/locale/th.js",\n\t"./tl-ph": "./node_modules/moment/locale/tl-ph.js",\n\t"./tl-ph.js": "./node_modules/moment/locale/tl-ph.js",\n\t"./tlh": "./node_modules/moment/locale/tlh.js",\n\t"./tlh.js": "./node_modules/moment/locale/tlh.js",\n\t"./tr": "./node_modules/moment/locale/tr.js",\n\t"./tr.js": "./node_modules/moment/locale/tr.js",\n\t"./tzl": "./node_modules/moment/locale/tzl.js",\n\t"./tzl.js": "./node_modules/moment/locale/tzl.js",\n\t"./tzm": "./node_modules/moment/locale/tzm.js",\n\t"./tzm-latn": "./node_modules/moment/locale/tzm-latn.js",\n\t"./tzm-latn.js": "./node_modules/moment/locale/tzm-latn.js",\n\t"./tzm.js": "./node_modules/moment/locale/tzm.js",\n\t"./ug-cn": "./node_modules/moment/locale/ug-cn.js",\n\t"./ug-cn.js": "./node_modules/moment/locale/ug-cn.js",\n\t"./uk": "./node_modules/moment/locale/uk.js",\n\t"./uk.js": "./node_modules/moment/locale/uk.js",\n\t"./ur": "./node_modules/moment/locale/ur.js",\n\t"./ur.js": "./node_modules/moment/locale/ur.js",\n\t"./uz": "./node_modules/moment/locale/uz.js",\n\t"./uz-latn": "./node_modules/moment/locale/uz-latn.js",\n\t"./uz-latn.js": "./node_modules/moment/locale/uz-latn.js",\n\t"./uz.js": "./node_modules/moment/locale/uz.js",\n\t"./vi": "./node_modules/moment/locale/vi.js",\n\t"./vi.js": "./node_modules/moment/locale/vi.js",\n\t"./x-pseudo": "./node_modules/moment/locale/x-pseudo.js",\n\t"./x-pseudo.js": "./node_modules/moment/locale/x-pseudo.js",\n\t"./yo": "./node_modules/moment/locale/yo.js",\n\t"./yo.js": "./node_modules/moment/locale/yo.js",\n\t"./zh-cn": "./node_modules/moment/locale/zh-cn.js",\n\t"./zh-cn.js": "./node_modules/moment/locale/zh-cn.js",\n\t"./zh-hk": "./node_modules/moment/locale/zh-hk.js",\n\t"./zh-hk.js": "./node_modules/moment/locale/zh-hk.js",\n\t"./zh-tw": "./node_modules/moment/locale/zh-tw.js",\n\t"./zh-tw.js": "./node_modules/moment/locale/zh-tw.js"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error("Cannot find module \'" + req + "\'");\n\t\te.code = \'MODULE_NOT_FOUND\';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = "./node_modules/moment/locale sync recursive ^\\\\.\\\\/.*$";\n\n//# sourceURL=webpack:///./node_modules/moment/locale_sync_^\\.\\/.*$?')},"./src/lib/api.js": /*!************************!*\ !*** ./src/lib/api.js ***! \************************/ /*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_0__);\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _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; }\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n // import { message } from 'antd';\n\nvar Api =\n/*#__PURE__*/\nfunction () {\n function Api() {\n _classCallCheck(this, Api);\n }\n\n _createClass(Api, [{\n key: \"ajax\",\n value: function () {\n var _ajax = _asyncToGenerator(\n /*#__PURE__*/\n regeneratorRuntime.mark(function _callee(options) {\n var res;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!options.url.startsWith('http')) {\n options.url = options.url;\n }\n\n options.method = options.method || 'get';\n options.withCredentials = true;\n options.contentType = 'application/json; charset=utf-8';\n _context.next = 6;\n return axios__WEBPACK_IMPORTED_MODULE_0___default()(options);\n\n case 6:\n res = _context.sent;\n\n if (!(+res.status === 200)) {\n _context.next = 15;\n break;\n }\n\n if (!(String(res.data.code) === '0' || String(res.data.code) === '200')) {\n _context.next = 12;\n break;\n }\n\n return _context.abrupt(\"return\", res.data.data);\n\n case 12:\n throw new Error(res.data.msg || res.data.message);\n\n case 13:\n _context.next = 16;\n break;\n\n case 15:\n throw formatError(res);\n\n case 16:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n function ajax(_x) {\n return _ajax.apply(this, arguments);\n }\n\n return ajax;\n }()\n }, {\n key: \"jsonp\",\n value: function jsonp(options) {\n return this.ajax(_objectSpread({\n dataType: 'jsonp'\n }, options));\n }\n }]);\n\n return Api;\n}();\n\nfunction formatError(err) {\n if (err.msg === 'Network Error') {\n err.msg = '网络错误,请稍后再试';\n }\n\n return err;\n} // 挂载常用方法\n\n\n['post', 'get', 'delete', 'put'].forEach(function (method) {\n Api.prototype[method] = function (options) {\n return this.ajax(_objectSpread({\n method: method\n }, options));\n };\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (new Api());\n\n//# sourceURL=webpack:///./src/lib/api.js?")},"./src/pages/login/Login.jsx": /*!***********************************!*\ !*** ./src/pages/login/Login.jsx ***! \***********************************/ /*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var antd_es_popover_style_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! antd/es/popover/style/css */ "./node_modules/antd/es/popover/style/css.js");\n/* harmony import */ var antd_es_popover__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! antd/es/popover */ "./node_modules/antd/es/popover/index.js");\n/* harmony import */ var antd_es_button_style_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! antd/es/button/style/css */ "./node_modules/antd/es/button/style/css.js");\n/* harmony import */ var antd_es_button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! antd/es/button */ "./node_modules/antd/es/button/index.js");\n/* harmony import */ var antd_es_spin_style_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd/es/spin/style/css */ "./node_modules/antd/es/spin/style/css.js");\n/* harmony import */ var antd_es_spin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! antd/es/spin */ "./node_modules/antd/es/spin/index.js");\n/* harmony import */ var antd_es_icon_style_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! antd/es/icon/style/css */ "./node_modules/antd/es/icon/style/css.js");\n/* harmony import */ var antd_es_icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! antd/es/icon */ "./node_modules/antd/es/icon/index.js");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _login_scss__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./login.scss */ "./src/pages/login/login.scss");\n/* harmony import */ var _login_scss__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_login_scss__WEBPACK_IMPORTED_MODULE_9__);\n\n\n\n\n\n\n\n\n\nfunction _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _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; }\n\n\n\n\nvar Login =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(Login, _React$Component);\n\n function Login(props) {\n var _this;\n\n _classCallCheck(this, Login);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(Login).call(this, props));\n\n _defineProperty(_assertThisInitialized(_this), "handleLogin", function () {\n _this.setState({\n logining: true\n });\n\n setTimeout(function () {\n _this.setState({\n logining: false,\n errorTips: \'未检测到登录状态,请重试\'\n });\n }, 60 * 1000);\n var url = "https://diy.youzanyun.com/third-login/success?callback=".concat(encodeURIComponent(\'http://127.0.0.1:31240/api/third-login/info\'));\n window.electronBridge.openBrowser(url);\n });\n\n _this.state = {\n logining: false,\n errorTips: \'\'\n };\n return _this;\n }\n\n _createClass(Login, [{\n key: "render",\n value: function render() {\n var _this$state = this.state,\n logining = _this$state.logining,\n errorTips = _this$state.errorTips;\n return react__WEBPACK_IMPORTED_MODULE_8__["createElement"]("div", {\n className: "login-form"\n }, react__WEBPACK_IMPORTED_MODULE_8__["createElement"]("div", {\n className: "logo-wrapper"\n }, react__WEBPACK_IMPORTED_MODULE_8__["createElement"]("div", {\n className: "logo"\n }), react__WEBPACK_IMPORTED_MODULE_8__["createElement"]("div", {\n style: {\n color: \'#c8c9cc\'\n }\n }, "|"), react__WEBPACK_IMPORTED_MODULE_8__["createElement"]("div", null, "\\u5F00\\u53D1\\u8005\\u5DE5\\u5177")), react__WEBPACK_IMPORTED_MODULE_8__["createElement"]("div", {\n style: {\n textAlign: \'center\'\n }\n }, logining ? react__WEBPACK_IMPORTED_MODULE_8__["createElement"]("div", null, react__WEBPACK_IMPORTED_MODULE_8__["createElement"]("div", null, react__WEBPACK_IMPORTED_MODULE_8__["createElement"](antd_es_spin__WEBPACK_IMPORTED_MODULE_5__["default"], {\n indicator: react__WEBPACK_IMPORTED_MODULE_8__["createElement"](antd_es_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {\n type: "loading",\n style: {\n fontSize: 24,\n marginRight: \'10px\'\n },\n spin: true\n })\n }), "\\u767B\\u5F55\\u4E2D\\uFF0C\\u8BF7\\u7A0D\\u5019...")) : react__WEBPACK_IMPORTED_MODULE_8__["createElement"]("div", {\n className: "login-btn-wrapper"\n }, react__WEBPACK_IMPORTED_MODULE_8__["createElement"](antd_es_button__WEBPACK_IMPORTED_MODULE_3__["default"], {\n type: "primary",\n style: {\n width: \'100%\'\n },\n onClick: this.handleLogin\n }, "\\u524D\\u5F80\\u767B\\u5F55"), react__WEBPACK_IMPORTED_MODULE_8__["createElement"](antd_es_popover__WEBPACK_IMPORTED_MODULE_1__["default"], {\n content: "\\u5EFA\\u8BAE\\u8BBE\\u7F6EChrome\\u4E3A\\u9ED8\\u8BA4\\u6D4F\\u89C8\\u5668,\\u6682\\u4E0D\\u652F\\u6301Safari\\u6D4F\\u89C8\\u5668"\n }, react__WEBPACK_IMPORTED_MODULE_8__["createElement"](antd_es_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {\n type: "exclamation-circle",\n className: "login-tip"\n })), react__WEBPACK_IMPORTED_MODULE_8__["createElement"]("div", {\n style: {\n marginTop: \'40px\'\n }\n }, errorTips))));\n }\n }]);\n\n return Login;\n}(react__WEBPACK_IMPORTED_MODULE_8__["Component"]);\n\n/* harmony default export */ __webpack_exports__["default"] = (Login);\n\n//# sourceURL=webpack:///./src/pages/login/Login.jsx?')},"./src/pages/login/api/index.js": /*!**************************************!*\ !*** ./src/pages/login/api/index.js ***! \**************************************/ /*! exports provided: getUserInfo, default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getUserInfo", function() { return getUserInfo; });\n/* harmony import */ var _lib_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/lib/api.js */ "./src/lib/api.js");\n/* harmony import */ var spring4js_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! spring4js-browser */ "./node_modules/spring4js-browser/index.js");\n/* harmony import */ var spring4js_browser__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(spring4js_browser__WEBPACK_IMPORTED_MODULE_1__);\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }\n\n\n\nvar connection = new spring4js_browser__WEBPACK_IMPORTED_MODULE_1__["WsConnection"](\'ws://127.0.0.1:31240/rpc\');\nvar client = new spring4js_browser__WEBPACK_IMPORTED_MODULE_1__["Client"]({\n connection: connection\n});\nvar userService = client.getServiceProxy(\'userService\');\nuserService.onChangeUserEvent(\n/*#__PURE__*/\nfunction () {\n var _ref = _asyncToGenerator(\n /*#__PURE__*/\n regeneratorRuntime.mark(function _callee(event) {\n var success, userName;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n success = event.success, userName = event.userName;\n\n if (!success) {\n _context.next = 6;\n break;\n }\n\n _context.next = 4;\n return userService.setUserInfo(userName);\n\n case 4:\n window.electronBridge.windowOperate(\'focus\');\n location.href = \'/html/project\';\n\n case 6:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n}());\nfunction getUserInfo() {\n return _lib_api_js__WEBPACK_IMPORTED_MODULE_0__["default"].get({\n url: \'/api/user/get\',\n params: {}\n });\n}\n/* harmony default export */ __webpack_exports__["default"] = ({\n getUserInfo: getUserInfo\n});\n\n//# sourceURL=webpack:///./src/pages/login/api/index.js?')},"./src/pages/login/login.scss": /*!************************************!*\ !*** ./src/pages/login/login.scss ***! \************************************/ /*! no static exports found */function(module,exports,__webpack_require__){eval("// extracted by mini-css-extract-plugin\n\n//# sourceURL=webpack:///./src/pages/login/login.scss?")},"./src/pages/login/main.js": /*!*********************************!*\ !*** ./src/pages/login/main.js ***! \*********************************/ /*! no exports provided */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! regenerator-runtime/runtime */ "./node_modules/regenerator-runtime/runtime.js");\n/* harmony import */ var regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");\n/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _Login__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Login */ "./src/pages/login/Login.jsx");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./api/index */ "./src/pages/login/api/index.js");\n\n\n\n\n\nreact_dom__WEBPACK_IMPORTED_MODULE_2___default.a.render(react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Login__WEBPACK_IMPORTED_MODULE_3__["default"], null), document.getElementById(\'app\'));\n\n//# sourceURL=webpack:///./src/pages/login/main.js?')}});