You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5308 lines
276 KiB
5308 lines
276 KiB
webpackJsonp([16],{
|
|
|
|
/***/ 1337:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
module.exports = __webpack_require__(1531);
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1437:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return fetchOJList; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return fetchDeleteOJItem; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return fetchPostOjForm; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return fetchGetOjById; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return fetchDebuggerCode; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return fetchCodeSubmit; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return fetchStartProgram; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return fetchUserProgramDetail; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return fetchUserCommitRecord; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return fetchUserCommitRecordDetail; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return publishTask; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return cancelPublicTask; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return fetchUpdateCode; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return fetchUserCodeSubmit; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return fetchRestoreInitialCode; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return fetchUserInfoForNew; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return fetchUploadImage; });
|
|
/* unused harmony export fetchUploadImageUrl */
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator__ = __webpack_require__(1337);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios__ = __webpack_require__(12);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_axios__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(1);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__);
|
|
function _asyncToGenerator(fn){return function(){var gen=fn.apply(this,arguments);return new Promise(function(resolve,reject){function step(key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{return Promise.resolve(value).then(function(value){step("next",value);},function(err){step("throw",err);});}}return step("next");});};}/*
|
|
* @Description: 开发者社区接口
|
|
* @Author: tangjiang
|
|
* @Github:
|
|
* @Date: 2019-11-20 10:55:38
|
|
* @LastEditors: tangjiang
|
|
* @LastEditTime: 2019-12-17 14:10:37
|
|
*/var fetchOJList=function(){var _ref=_asyncToGenerator(/*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee(params){var obj;return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:console.log('传递的参数: ',params);obj={};Object.keys(params).forEach(function(key){if(params[key]){obj[key]=params[key];}});return _context.abrupt('return',__WEBPACK_IMPORTED_MODULE_1_axios___default.a.get('/problems.json',{params:obj}));case 4:case'end':return _context.stop();}}},_callee,this);}));return function fetchOJList(_x){return _ref.apply(this,arguments);};}();// 删除OJ列表
|
|
var fetchDeleteOJItem=function(){var _ref2=_asyncToGenerator(/*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee2(identifier){var url;return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee2$(_context2){while(1){switch(_context2.prev=_context2.next){case 0:url='/problems/'+identifier+'.json';return _context2.abrupt('return',__WEBPACK_IMPORTED_MODULE_1_axios___default.a.delete(url));case 2:case'end':return _context2.stop();}}},_callee2,this);}));return function fetchDeleteOJItem(_x2){return _ref2.apply(this,arguments);};}();// 提交
|
|
var fetchPostOjForm=function(){var _ref3=_asyncToGenerator(/*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee3(paramsObj){var params,submitType,identifier,url;return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee3$(_context3){while(1){switch(_context3.prev=_context3.next){case 0:params=paramsObj.params,submitType=paramsObj.submitType,identifier=paramsObj.identifier;url=submitType==='add'?'/problems.json':'/problems/'+identifier+'.json';// return axios.post(url, params);
|
|
// if (identifier) {
|
|
// return axios.post(url, params);
|
|
// } else {
|
|
// return
|
|
// }
|
|
return _context3.abrupt('return',identifier?__WEBPACK_IMPORTED_MODULE_1_axios___default.a.put(url,params):__WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(url,params));case 3:case'end':return _context3.stop();}}},_callee3,this);}));return function fetchPostOjForm(_x3){return _ref3.apply(this,arguments);};}();// 根据id号获取OJ信息
|
|
var fetchGetOjById=function(){var _ref4=_asyncToGenerator(/*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee4(id){var url;return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee4$(_context4){while(1){switch(_context4.prev=_context4.next){case 0:url='/problems/'+id+'/edit.json';return _context4.abrupt('return',__WEBPACK_IMPORTED_MODULE_1_axios___default.a.get(url));case 2:case'end':return _context4.stop();}}},_callee4,this);}));return function fetchGetOjById(_x4){return _ref4.apply(this,arguments);};}();// 调试代码
|
|
var fetchDebuggerCode=function(){var _ref5=_asyncToGenerator(/*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee5(identifier,params){var url;return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee5$(_context5){while(1){switch(_context5.prev=_context5.next){case 0:url='/myproblems/'+identifier+'/code_debug.json';return _context5.abrupt('return',__WEBPACK_IMPORTED_MODULE_1_axios___default.a.get(url,{params:params}));case 2:case'end':return _context5.stop();}}},_callee5,this);}));return function fetchDebuggerCode(_x5,_x6){return _ref5.apply(this,arguments);};}();// 调试代码成功后,循环调用提交接口
|
|
var fetchCodeSubmit=function(){var _ref6=_asyncToGenerator(/*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee6(identifier,params){var url;return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee6$(_context6){while(1){switch(_context6.prev=_context6.next){case 0:url='/myproblems/'+identifier+'/result.json';return _context6.abrupt('return',__WEBPACK_IMPORTED_MODULE_1_axios___default.a.get(url,{params:params}));case 2:case'end':return _context6.stop();}}},_callee6,this);}));return function fetchCodeSubmit(_x7,_x8){return _ref6.apply(this,arguments);};}();// 开启编程题接口
|
|
var fetchStartProgram=function(){var _ref7=_asyncToGenerator(/*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee7(identifier){var url;return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee7$(_context7){while(1){switch(_context7.prev=_context7.next){case 0:url='/problems/'+identifier+'/start.json';return _context7.abrupt('return',__WEBPACK_IMPORTED_MODULE_1_axios___default.a.get(url));case 2:case'end':return _context7.stop();}}},_callee7,this);}));return function fetchStartProgram(_x9){return _ref7.apply(this,arguments);};}();// 用户编程题详情
|
|
var fetchUserProgramDetail=function(){var _ref8=_asyncToGenerator(/*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee8(identifier){var url;return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee8$(_context8){while(1){switch(_context8.prev=_context8.next){case 0:url='/myproblems/'+identifier+'.json';return _context8.abrupt('return',__WEBPACK_IMPORTED_MODULE_1_axios___default.a.get(url));case 2:case'end':return _context8.stop();}}},_callee8,this);}));return function fetchUserProgramDetail(_x10){return _ref8.apply(this,arguments);};}();// 获取提交记录
|
|
var fetchUserCommitRecord=function(){var _ref9=_asyncToGenerator(/*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee9(identifier){var url;return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee9$(_context9){while(1){switch(_context9.prev=_context9.next){case 0:console.log('identifier=====',identifier);url='/myproblems/'+identifier+'/submit_records.json';return _context9.abrupt('return',__WEBPACK_IMPORTED_MODULE_1_axios___default.a.get(url));case 3:case'end':return _context9.stop();}}},_callee9,this);}));return function fetchUserCommitRecord(_x11){return _ref9.apply(this,arguments);};}();// 获取提交记录详情
|
|
var fetchUserCommitRecordDetail=function(){var _ref10=_asyncToGenerator(/*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee10(identifier){var url,params;return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee10$(_context10){while(1){switch(_context10.prev=_context10.next){case 0:url='/myproblems/record_detail.json';params={id:identifier};return _context10.abrupt('return',__WEBPACK_IMPORTED_MODULE_1_axios___default.a.get(url,{params:params}));case 3:case'end':return _context10.stop();}}},_callee10,this);}));return function fetchUserCommitRecordDetail(_x12){return _ref10.apply(this,arguments);};}();// 恢复初始代码
|
|
// export async function restoreInitialCode (identifier) {
|
|
// const url = `/myproblems/${identifier}/restore_initial_code.json`;
|
|
// return axios.get(url);
|
|
// }
|
|
// 发布任务
|
|
var publishTask=function(){var _ref11=_asyncToGenerator(/*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee11(identifier){var url;return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee11$(_context11){while(1){switch(_context11.prev=_context11.next){case 0:url='/problems/'+identifier+'/publish.json';return _context11.abrupt('return',__WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(url));case 2:case'end':return _context11.stop();}}},_callee11,this);}));return function publishTask(_x13){return _ref11.apply(this,arguments);};}();// 撤销发布
|
|
var cancelPublicTask=function(){var _ref12=_asyncToGenerator(/*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee12(identifier){var url;return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee12$(_context12){while(1){switch(_context12.prev=_context12.next){case 0:url='/problems/'+identifier+'/cancel_publish.json';return _context12.abrupt('return',__WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(url));case 2:case'end':return _context12.stop();}}},_callee12,this);}));return function cancelPublicTask(_x14){return _ref12.apply(this,arguments);};}();// 更新用户编辑代码
|
|
var fetchUpdateCode=function(){var _ref13=_asyncToGenerator(/*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee13(identifier,params){var url;return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee13$(_context13){while(1){switch(_context13.prev=_context13.next){case 0:url='/myproblems/'+identifier+'/update_code.json';return _context13.abrupt('return',__WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(url,params));case 2:case'end':return _context13.stop();}}},_callee13,this);}));return function fetchUpdateCode(_x15,_x16){return _ref13.apply(this,arguments);};}();// 用户提交代码
|
|
var fetchUserCodeSubmit=function(){var _ref14=_asyncToGenerator(/*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee14(identifier){var url;return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee14$(_context14){while(1){switch(_context14.prev=_context14.next){case 0:url='/myproblems/'+identifier+'/code_submit.json';return _context14.abrupt('return',__WEBPACK_IMPORTED_MODULE_1_axios___default.a.get(url));case 2:case'end':return _context14.stop();}}},_callee14,this);}));return function fetchUserCodeSubmit(_x17){return _ref14.apply(this,arguments);};}();// 恢复初始代码
|
|
var fetchRestoreInitialCode=function(){var _ref15=_asyncToGenerator(/*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee15(identifier){var url;return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee15$(_context15){while(1){switch(_context15.prev=_context15.next){case 0:// const url = `/myproblems/${identifier}/restore_initial_code.json`;
|
|
url='/myproblems/'+identifier+'/sync_code.json';return _context15.abrupt('return',__WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(url));case 2:case'end':return _context15.stop();}}},_callee15,this);}));return function fetchRestoreInitialCode(_x18){return _ref15.apply(this,arguments);};}();// 新建时调用获取用户信息接口
|
|
var fetchUserInfoForNew=function(){var _ref16=_asyncToGenerator(/*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee16(){var url;return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee16$(_context16){while(1){switch(_context16.prev=_context16.next){case 0:url='/problems/new.json';return _context16.abrupt('return',__WEBPACK_IMPORTED_MODULE_1_axios___default.a.get(url));case 2:case'end':return _context16.stop();}}},_callee16,this);}));return function fetchUserInfoForNew(){return _ref16.apply(this,arguments);};}();// 文件上传
|
|
var fetchUploadImage=function(){var _ref17=_asyncToGenerator(/*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee17(file){var url;return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee17$(_context17){while(1){switch(_context17.prev=_context17.next){case 0:url='/attachments.json';return _context17.abrupt('return',__WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(url,file));case 2:case'end':return _context17.stop();}}},_callee17,this);}));return function fetchUploadImage(_x19){return _ref17.apply(this,arguments);};}();// 根据id号获取图片url
|
|
var fetchUploadImageUrl=function(){var _ref18=_asyncToGenerator(/*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee18(id){var url;return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee18$(_context18){while(1){switch(_context18.prev=_context18.next){case 0:url='/attachments/'+id;return _context18.abrupt('return',__WEBPACK_IMPORTED_MODULE_1_axios___default.a.get(url));case 2:case'end':return _context18.stop();}}},_callee18,this);}));return function fetchUploadImageUrl(_x20){return _ref18.apply(this,arguments);};}();
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1531:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
/**
|
|
* Copyright (c) 2014-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
// This method of obtaining a reference to the global object needs to be
|
|
// kept identical to the way it is obtained in runtime.js
|
|
var g = (function() { return this })() || Function("return this")();
|
|
|
|
// Use `getOwnPropertyNames` because not all browsers support calling
|
|
// `hasOwnProperty` on the global `self` object in a worker. See #183.
|
|
var hadRuntime = g.regeneratorRuntime &&
|
|
Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0;
|
|
|
|
// Save the old regeneratorRuntime in case it needs to be restored later.
|
|
var oldRuntime = hadRuntime && g.regeneratorRuntime;
|
|
|
|
// Force reevalutation of runtime.js.
|
|
g.regeneratorRuntime = undefined;
|
|
|
|
module.exports = __webpack_require__(1532);
|
|
|
|
if (hadRuntime) {
|
|
// Restore the original runtime.
|
|
g.regeneratorRuntime = oldRuntime;
|
|
} else {
|
|
// Remove the global property added by runtime.js.
|
|
try {
|
|
delete g.regeneratorRuntime;
|
|
} catch(e) {
|
|
g.regeneratorRuntime = undefined;
|
|
}
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1532:
|
|
/***/ (function(module, exports) {
|
|
|
|
/**
|
|
* Copyright (c) 2014-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
!(function(global) {
|
|
"use strict";
|
|
|
|
var Op = Object.prototype;
|
|
var hasOwn = Op.hasOwnProperty;
|
|
var undefined; // More compressible than void 0.
|
|
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
|
|
var inModule = typeof module === "object";
|
|
var runtime = global.regeneratorRuntime;
|
|
if (runtime) {
|
|
if (inModule) {
|
|
// If regeneratorRuntime is defined globally and we're in a module,
|
|
// make the exports object identical to regeneratorRuntime.
|
|
module.exports = runtime;
|
|
}
|
|
// Don't bother evaluating the rest of this file if the runtime was
|
|
// already defined globally.
|
|
return;
|
|
}
|
|
|
|
// Define the runtime globally (as expected by generated code) as either
|
|
// module.exports (if we're in a module) or a new, empty object.
|
|
runtime = global.regeneratorRuntime = inModule ? module.exports : {};
|
|
|
|
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
|
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
|
var generator = Object.create(protoGenerator.prototype);
|
|
var context = new Context(tryLocsList || []);
|
|
|
|
// The ._invoke method unifies the implementations of the .next,
|
|
// .throw, and .return methods.
|
|
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
|
|
return generator;
|
|
}
|
|
runtime.wrap = wrap;
|
|
|
|
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
// record like context.tryEntries[i].completion. This interface could
|
|
// have been (and was previously) designed to take a closure to be
|
|
// invoked without arguments, but in all the cases we care about we
|
|
// already have an existing method we want to call, so there's no need
|
|
// to create a new function object. We can even get away with assuming
|
|
// the method takes exactly one argument, since that happens to be true
|
|
// in every case, so we don't have to touch the arguments object. The
|
|
// only additional allocation required is the completion record, which
|
|
// has a stable shape and so hopefully should be cheap to allocate.
|
|
function tryCatch(fn, obj, arg) {
|
|
try {
|
|
return { type: "normal", arg: fn.call(obj, arg) };
|
|
} catch (err) {
|
|
return { type: "throw", arg: err };
|
|
}
|
|
}
|
|
|
|
var GenStateSuspendedStart = "suspendedStart";
|
|
var GenStateSuspendedYield = "suspendedYield";
|
|
var GenStateExecuting = "executing";
|
|
var GenStateCompleted = "completed";
|
|
|
|
// Returning this object from the innerFn has the same effect as
|
|
// breaking out of the dispatch switch statement.
|
|
var ContinueSentinel = {};
|
|
|
|
// Dummy constructor functions that we use as the .constructor and
|
|
// .constructor.prototype properties for functions that return Generator
|
|
// objects. For full spec compliance, you may wish to configure your
|
|
// minifier not to mangle the names of these two functions.
|
|
function Generator() {}
|
|
function GeneratorFunction() {}
|
|
function GeneratorFunctionPrototype() {}
|
|
|
|
// This is a polyfill for %IteratorPrototype% for environments that
|
|
// don't natively support it.
|
|
var IteratorPrototype = {};
|
|
IteratorPrototype[iteratorSymbol] = function () {
|
|
return this;
|
|
};
|
|
|
|
var getProto = Object.getPrototypeOf;
|
|
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
if (NativeIteratorPrototype &&
|
|
NativeIteratorPrototype !== Op &&
|
|
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
// This environment has a native %IteratorPrototype%; use it instead
|
|
// of the polyfill.
|
|
IteratorPrototype = NativeIteratorPrototype;
|
|
}
|
|
|
|
var Gp = GeneratorFunctionPrototype.prototype =
|
|
Generator.prototype = Object.create(IteratorPrototype);
|
|
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
|
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
|
GeneratorFunctionPrototype[toStringTagSymbol] =
|
|
GeneratorFunction.displayName = "GeneratorFunction";
|
|
|
|
// Helper for defining the .next, .throw, and .return methods of the
|
|
// Iterator interface in terms of a single ._invoke method.
|
|
function defineIteratorMethods(prototype) {
|
|
["next", "throw", "return"].forEach(function(method) {
|
|
prototype[method] = function(arg) {
|
|
return this._invoke(method, arg);
|
|
};
|
|
});
|
|
}
|
|
|
|
runtime.isGeneratorFunction = function(genFun) {
|
|
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
return ctor
|
|
? ctor === GeneratorFunction ||
|
|
// For the native GeneratorFunction constructor, the best we can
|
|
// do is to check its .name property.
|
|
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
|
: false;
|
|
};
|
|
|
|
runtime.mark = function(genFun) {
|
|
if (Object.setPrototypeOf) {
|
|
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
} else {
|
|
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
if (!(toStringTagSymbol in genFun)) {
|
|
genFun[toStringTagSymbol] = "GeneratorFunction";
|
|
}
|
|
}
|
|
genFun.prototype = Object.create(Gp);
|
|
return genFun;
|
|
};
|
|
|
|
// Within the body of any async function, `await x` is transformed to
|
|
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
// meant to be awaited.
|
|
runtime.awrap = function(arg) {
|
|
return { __await: arg };
|
|
};
|
|
|
|
function AsyncIterator(generator) {
|
|
function invoke(method, arg, resolve, reject) {
|
|
var record = tryCatch(generator[method], generator, arg);
|
|
if (record.type === "throw") {
|
|
reject(record.arg);
|
|
} else {
|
|
var result = record.arg;
|
|
var value = result.value;
|
|
if (value &&
|
|
typeof value === "object" &&
|
|
hasOwn.call(value, "__await")) {
|
|
return Promise.resolve(value.__await).then(function(value) {
|
|
invoke("next", value, resolve, reject);
|
|
}, function(err) {
|
|
invoke("throw", err, resolve, reject);
|
|
});
|
|
}
|
|
|
|
return Promise.resolve(value).then(function(unwrapped) {
|
|
// When a yielded Promise is resolved, its final value becomes
|
|
// the .value of the Promise<{value,done}> result for the
|
|
// current iteration. If the Promise is rejected, however, the
|
|
// result for this iteration will be rejected with the same
|
|
// reason. Note that rejections of yielded Promises are not
|
|
// thrown back into the generator function, as is the case
|
|
// when an awaited Promise is rejected. This difference in
|
|
// behavior between yield and await is important, because it
|
|
// allows the consumer to decide what to do with the yielded
|
|
// rejection (swallow it and continue, manually .throw it back
|
|
// into the generator, abandon iteration, whatever). With
|
|
// await, by contrast, there is no opportunity to examine the
|
|
// rejection reason outside the generator function, so the
|
|
// only option is to throw it from the await expression, and
|
|
// let the generator function handle the exception.
|
|
result.value = unwrapped;
|
|
resolve(result);
|
|
}, reject);
|
|
}
|
|
}
|
|
|
|
var previousPromise;
|
|
|
|
function enqueue(method, arg) {
|
|
function callInvokeWithMethodAndArg() {
|
|
return new Promise(function(resolve, reject) {
|
|
invoke(method, arg, resolve, reject);
|
|
});
|
|
}
|
|
|
|
return previousPromise =
|
|
// If enqueue has been called before, then we want to wait until
|
|
// all previous Promises have been resolved before calling invoke,
|
|
// so that results are always delivered in the correct order. If
|
|
// enqueue has not been called before, then it is important to
|
|
// call invoke immediately, without waiting on a callback to fire,
|
|
// so that the async generator function has the opportunity to do
|
|
// any necessary setup in a predictable way. This predictability
|
|
// is why the Promise constructor synchronously invokes its
|
|
// executor callback, and why async functions synchronously
|
|
// execute code before the first await. Since we implement simple
|
|
// async functions in terms of async generators, it is especially
|
|
// important to get this right, even though it requires care.
|
|
previousPromise ? previousPromise.then(
|
|
callInvokeWithMethodAndArg,
|
|
// Avoid propagating failures to Promises returned by later
|
|
// invocations of the iterator.
|
|
callInvokeWithMethodAndArg
|
|
) : callInvokeWithMethodAndArg();
|
|
}
|
|
|
|
// Define the unified helper method that is used to implement .next,
|
|
// .throw, and .return (see defineIteratorMethods).
|
|
this._invoke = enqueue;
|
|
}
|
|
|
|
defineIteratorMethods(AsyncIterator.prototype);
|
|
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
|
|
return this;
|
|
};
|
|
runtime.AsyncIterator = AsyncIterator;
|
|
|
|
// Note that simple async functions are implemented on top of
|
|
// AsyncIterator objects; they just return a Promise for the value of
|
|
// the final result produced by the iterator.
|
|
runtime.async = function(innerFn, outerFn, self, tryLocsList) {
|
|
var iter = new AsyncIterator(
|
|
wrap(innerFn, outerFn, self, tryLocsList)
|
|
);
|
|
|
|
return runtime.isGeneratorFunction(outerFn)
|
|
? iter // If outerFn is a generator, return the full iterator.
|
|
: iter.next().then(function(result) {
|
|
return result.done ? result.value : iter.next();
|
|
});
|
|
};
|
|
|
|
function makeInvokeMethod(innerFn, self, context) {
|
|
var state = GenStateSuspendedStart;
|
|
|
|
return function invoke(method, arg) {
|
|
if (state === GenStateExecuting) {
|
|
throw new Error("Generator is already running");
|
|
}
|
|
|
|
if (state === GenStateCompleted) {
|
|
if (method === "throw") {
|
|
throw arg;
|
|
}
|
|
|
|
// Be forgiving, per 25.3.3.3.3 of the spec:
|
|
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
return doneResult();
|
|
}
|
|
|
|
context.method = method;
|
|
context.arg = arg;
|
|
|
|
while (true) {
|
|
var delegate = context.delegate;
|
|
if (delegate) {
|
|
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
if (delegateResult) {
|
|
if (delegateResult === ContinueSentinel) continue;
|
|
return delegateResult;
|
|
}
|
|
}
|
|
|
|
if (context.method === "next") {
|
|
// Setting context._sent for legacy support of Babel's
|
|
// function.sent implementation.
|
|
context.sent = context._sent = context.arg;
|
|
|
|
} else if (context.method === "throw") {
|
|
if (state === GenStateSuspendedStart) {
|
|
state = GenStateCompleted;
|
|
throw context.arg;
|
|
}
|
|
|
|
context.dispatchException(context.arg);
|
|
|
|
} else if (context.method === "return") {
|
|
context.abrupt("return", context.arg);
|
|
}
|
|
|
|
state = GenStateExecuting;
|
|
|
|
var record = tryCatch(innerFn, self, context);
|
|
if (record.type === "normal") {
|
|
// If an exception is thrown from innerFn, we leave state ===
|
|
// GenStateExecuting and loop back for another invocation.
|
|
state = context.done
|
|
? GenStateCompleted
|
|
: GenStateSuspendedYield;
|
|
|
|
if (record.arg === ContinueSentinel) {
|
|
continue;
|
|
}
|
|
|
|
return {
|
|
value: record.arg,
|
|
done: context.done
|
|
};
|
|
|
|
} else if (record.type === "throw") {
|
|
state = GenStateCompleted;
|
|
// Dispatch the exception by looping back around to the
|
|
// context.dispatchException(context.arg) call above.
|
|
context.method = "throw";
|
|
context.arg = record.arg;
|
|
}
|
|
}
|
|
};
|
|
}
|
|
|
|
// Call delegate.iterator[context.method](context.arg) and handle the
|
|
// result, either by returning a { value, done } result from the
|
|
// delegate iterator, or by modifying context.method and context.arg,
|
|
// setting context.delegate to null, and returning the ContinueSentinel.
|
|
function maybeInvokeDelegate(delegate, context) {
|
|
var method = delegate.iterator[context.method];
|
|
if (method === undefined) {
|
|
// A .throw or .return when the delegate iterator has no .throw
|
|
// method always terminates the yield* loop.
|
|
context.delegate = null;
|
|
|
|
if (context.method === "throw") {
|
|
if (delegate.iterator.return) {
|
|
// If the delegate iterator has a return method, give it a
|
|
// chance to clean up.
|
|
context.method = "return";
|
|
context.arg = undefined;
|
|
maybeInvokeDelegate(delegate, context);
|
|
|
|
if (context.method === "throw") {
|
|
// If maybeInvokeDelegate(context) changed context.method from
|
|
// "return" to "throw", let that override the TypeError below.
|
|
return ContinueSentinel;
|
|
}
|
|
}
|
|
|
|
context.method = "throw";
|
|
context.arg = new TypeError(
|
|
"The iterator does not provide a 'throw' method");
|
|
}
|
|
|
|
return ContinueSentinel;
|
|
}
|
|
|
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
|
|
if (record.type === "throw") {
|
|
context.method = "throw";
|
|
context.arg = record.arg;
|
|
context.delegate = null;
|
|
return ContinueSentinel;
|
|
}
|
|
|
|
var info = record.arg;
|
|
|
|
if (! info) {
|
|
context.method = "throw";
|
|
context.arg = new TypeError("iterator result is not an object");
|
|
context.delegate = null;
|
|
return ContinueSentinel;
|
|
}
|
|
|
|
if (info.done) {
|
|
// Assign the result of the finished delegate to the temporary
|
|
// variable specified by delegate.resultName (see delegateYield).
|
|
context[delegate.resultName] = info.value;
|
|
|
|
// Resume execution at the desired location (see delegateYield).
|
|
context.next = delegate.nextLoc;
|
|
|
|
// If context.method was "throw" but the delegate handled the
|
|
// exception, let the outer generator proceed normally. If
|
|
// context.method was "next", forget context.arg since it has been
|
|
// "consumed" by the delegate iterator. If context.method was
|
|
// "return", allow the original .return call to continue in the
|
|
// outer generator.
|
|
if (context.method !== "return") {
|
|
context.method = "next";
|
|
context.arg = undefined;
|
|
}
|
|
|
|
} else {
|
|
// Re-yield the result returned by the delegate method.
|
|
return info;
|
|
}
|
|
|
|
// The delegate iterator is finished, so forget it and continue with
|
|
// the outer generator.
|
|
context.delegate = null;
|
|
return ContinueSentinel;
|
|
}
|
|
|
|
// Define Generator.prototype.{next,throw,return} in terms of the
|
|
// unified ._invoke helper method.
|
|
defineIteratorMethods(Gp);
|
|
|
|
Gp[toStringTagSymbol] = "Generator";
|
|
|
|
// A Generator should always return itself as the iterator object when the
|
|
// @@iterator function is called on it. Some browsers' implementations of the
|
|
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
// object to not be returned from this call. This ensures that doesn't happen.
|
|
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
Gp[iteratorSymbol] = function() {
|
|
return this;
|
|
};
|
|
|
|
Gp.toString = function() {
|
|
return "[object Generator]";
|
|
};
|
|
|
|
function pushTryEntry(locs) {
|
|
var entry = { tryLoc: locs[0] };
|
|
|
|
if (1 in locs) {
|
|
entry.catchLoc = locs[1];
|
|
}
|
|
|
|
if (2 in locs) {
|
|
entry.finallyLoc = locs[2];
|
|
entry.afterLoc = locs[3];
|
|
}
|
|
|
|
this.tryEntries.push(entry);
|
|
}
|
|
|
|
function resetTryEntry(entry) {
|
|
var record = entry.completion || {};
|
|
record.type = "normal";
|
|
delete record.arg;
|
|
entry.completion = record;
|
|
}
|
|
|
|
function Context(tryLocsList) {
|
|
// The root entry object (effectively a try statement without a catch
|
|
// or a finally block) gives us a place to store values thrown from
|
|
// locations where there is no enclosing try statement.
|
|
this.tryEntries = [{ tryLoc: "root" }];
|
|
tryLocsList.forEach(pushTryEntry, this);
|
|
this.reset(true);
|
|
}
|
|
|
|
runtime.keys = function(object) {
|
|
var keys = [];
|
|
for (var key in object) {
|
|
keys.push(key);
|
|
}
|
|
keys.reverse();
|
|
|
|
// Rather than returning an object with a next method, we keep
|
|
// things simple and return the next function itself.
|
|
return function next() {
|
|
while (keys.length) {
|
|
var key = keys.pop();
|
|
if (key in object) {
|
|
next.value = key;
|
|
next.done = false;
|
|
return next;
|
|
}
|
|
}
|
|
|
|
// To avoid creating an additional object, we just hang the .value
|
|
// and .done properties off the next function object itself. This
|
|
// also ensures that the minifier will not anonymize the function.
|
|
next.done = true;
|
|
return next;
|
|
};
|
|
};
|
|
|
|
function values(iterable) {
|
|
if (iterable) {
|
|
var iteratorMethod = iterable[iteratorSymbol];
|
|
if (iteratorMethod) {
|
|
return iteratorMethod.call(iterable);
|
|
}
|
|
|
|
if (typeof iterable.next === "function") {
|
|
return iterable;
|
|
}
|
|
|
|
if (!isNaN(iterable.length)) {
|
|
var i = -1, next = function next() {
|
|
while (++i < iterable.length) {
|
|
if (hasOwn.call(iterable, i)) {
|
|
next.value = iterable[i];
|
|
next.done = false;
|
|
return next;
|
|
}
|
|
}
|
|
|
|
next.value = undefined;
|
|
next.done = true;
|
|
|
|
return next;
|
|
};
|
|
|
|
return next.next = next;
|
|
}
|
|
}
|
|
|
|
// Return an iterator with no values.
|
|
return { next: doneResult };
|
|
}
|
|
runtime.values = values;
|
|
|
|
function doneResult() {
|
|
return { value: undefined, done: true };
|
|
}
|
|
|
|
Context.prototype = {
|
|
constructor: Context,
|
|
|
|
reset: function(skipTempReset) {
|
|
this.prev = 0;
|
|
this.next = 0;
|
|
// Resetting context._sent for legacy support of Babel's
|
|
// function.sent implementation.
|
|
this.sent = this._sent = undefined;
|
|
this.done = false;
|
|
this.delegate = null;
|
|
|
|
this.method = "next";
|
|
this.arg = undefined;
|
|
|
|
this.tryEntries.forEach(resetTryEntry);
|
|
|
|
if (!skipTempReset) {
|
|
for (var name in this) {
|
|
// Not sure about the optimal order of these conditions:
|
|
if (name.charAt(0) === "t" &&
|
|
hasOwn.call(this, name) &&
|
|
!isNaN(+name.slice(1))) {
|
|
this[name] = undefined;
|
|
}
|
|
}
|
|
}
|
|
},
|
|
|
|
stop: function() {
|
|
this.done = true;
|
|
|
|
var rootEntry = this.tryEntries[0];
|
|
var rootRecord = rootEntry.completion;
|
|
if (rootRecord.type === "throw") {
|
|
throw rootRecord.arg;
|
|
}
|
|
|
|
return this.rval;
|
|
},
|
|
|
|
dispatchException: function(exception) {
|
|
if (this.done) {
|
|
throw exception;
|
|
}
|
|
|
|
var context = this;
|
|
function handle(loc, caught) {
|
|
record.type = "throw";
|
|
record.arg = exception;
|
|
context.next = loc;
|
|
|
|
if (caught) {
|
|
// If the dispatched exception was caught by a catch block,
|
|
// then let that catch block handle the exception normally.
|
|
context.method = "next";
|
|
context.arg = undefined;
|
|
}
|
|
|
|
return !! caught;
|
|
}
|
|
|
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
var entry = this.tryEntries[i];
|
|
var record = entry.completion;
|
|
|
|
if (entry.tryLoc === "root") {
|
|
// Exception thrown outside of any try block that could handle
|
|
// it, so set the completion value of the entire function to
|
|
// throw the exception.
|
|
return handle("end");
|
|
}
|
|
|
|
if (entry.tryLoc <= this.prev) {
|
|
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
|
|
if (hasCatch && hasFinally) {
|
|
if (this.prev < entry.catchLoc) {
|
|
return handle(entry.catchLoc, true);
|
|
} else if (this.prev < entry.finallyLoc) {
|
|
return handle(entry.finallyLoc);
|
|
}
|
|
|
|
} else if (hasCatch) {
|
|
if (this.prev < entry.catchLoc) {
|
|
return handle(entry.catchLoc, true);
|
|
}
|
|
|
|
} else if (hasFinally) {
|
|
if (this.prev < entry.finallyLoc) {
|
|
return handle(entry.finallyLoc);
|
|
}
|
|
|
|
} else {
|
|
throw new Error("try statement without catch or finally");
|
|
}
|
|
}
|
|
}
|
|
},
|
|
|
|
abrupt: function(type, arg) {
|
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
var entry = this.tryEntries[i];
|
|
if (entry.tryLoc <= this.prev &&
|
|
hasOwn.call(entry, "finallyLoc") &&
|
|
this.prev < entry.finallyLoc) {
|
|
var finallyEntry = entry;
|
|
break;
|
|
}
|
|
}
|
|
|
|
if (finallyEntry &&
|
|
(type === "break" ||
|
|
type === "continue") &&
|
|
finallyEntry.tryLoc <= arg &&
|
|
arg <= finallyEntry.finallyLoc) {
|
|
// Ignore the finally entry if control is not jumping to a
|
|
// location outside the try/catch block.
|
|
finallyEntry = null;
|
|
}
|
|
|
|
var record = finallyEntry ? finallyEntry.completion : {};
|
|
record.type = type;
|
|
record.arg = arg;
|
|
|
|
if (finallyEntry) {
|
|
this.method = "next";
|
|
this.next = finallyEntry.finallyLoc;
|
|
return ContinueSentinel;
|
|
}
|
|
|
|
return this.complete(record);
|
|
},
|
|
|
|
complete: function(record, afterLoc) {
|
|
if (record.type === "throw") {
|
|
throw record.arg;
|
|
}
|
|
|
|
if (record.type === "break" ||
|
|
record.type === "continue") {
|
|
this.next = record.arg;
|
|
} else if (record.type === "return") {
|
|
this.rval = this.arg = record.arg;
|
|
this.method = "return";
|
|
this.next = "end";
|
|
} else if (record.type === "normal" && afterLoc) {
|
|
this.next = afterLoc;
|
|
}
|
|
|
|
return ContinueSentinel;
|
|
},
|
|
|
|
finish: function(finallyLoc) {
|
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
var entry = this.tryEntries[i];
|
|
if (entry.finallyLoc === finallyLoc) {
|
|
this.complete(entry.completion, entry.afterLoc);
|
|
resetTryEntry(entry);
|
|
return ContinueSentinel;
|
|
}
|
|
}
|
|
},
|
|
|
|
"catch": function(tryLoc) {
|
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
var entry = this.tryEntries[i];
|
|
if (entry.tryLoc === tryLoc) {
|
|
var record = entry.completion;
|
|
if (record.type === "throw") {
|
|
var thrown = record.arg;
|
|
resetTryEntry(entry);
|
|
}
|
|
return thrown;
|
|
}
|
|
}
|
|
|
|
// The context.catch method must only be called with a location
|
|
// argument that corresponds to a known catch block.
|
|
throw new Error("illegal catch attempt");
|
|
},
|
|
|
|
delegateYield: function(iterable, resultName, nextLoc) {
|
|
this.delegate = {
|
|
iterator: values(iterable),
|
|
resultName: resultName,
|
|
nextLoc: nextLoc
|
|
};
|
|
|
|
if (this.method === "next") {
|
|
// Deliberately forget the last sent value so that we don't
|
|
// accidentally pass it on to the delegate.
|
|
this.arg = undefined;
|
|
}
|
|
|
|
return ContinueSentinel;
|
|
}
|
|
};
|
|
})(
|
|
// In sloppy mode, unbound `this` refers to the global object, fallback to
|
|
// Function constructor if we're in global strict mode. That is sadly a form
|
|
// of indirect eval which violates Content Security Policy.
|
|
(function() { return this })() || Function("return this")()
|
|
);
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1643:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/*
|
|
* @Description:
|
|
* @Author: tangjiang
|
|
* @Github:
|
|
* @Date: 2019-11-20 23:10:48
|
|
* @LastEditors: tangjiang
|
|
* @LastEditTime: 2019-12-06 15:53:27
|
|
*/var CONST={jcLabel:{name:'任务名称',language:'编程语言',description:'描述',difficult:'难易度',category:'分类',openOrNot:'公开程序',timeLimit:'时间限制'},fontSetting:{title:'代码格式',type:'select',content:[{text:'显示风格',type:'style',value:[{key:'dark',text:'黑色背景',value:'dark'},{key:'light',text:'白色背景',value:'light'}]},{text:'字体大小',type:'font',value:[{key:1,text:'12px',value:12},{key:1,text:'14px',value:14},{key:1,text:'16px',value:16},{key:1,text:'18px',value:18},{key:1,text:'24px',value:24},{key:1,text:'30px',value:30}]}]},opacitySetting:{title:'代码格式',type:'label',content:[{text:'字体大小',value:'CTRL + S'},{text:'唤出快捷键列表',value:'F1/ALT + F1'},{text:'向左缩进',value:'CTRL + ['},{text:'向右缩进',value:'CTRL + ]'},{text:'跳到匹配的括号',value:'CTRL + SHIFT + \\'},{text:'转到行首',value:'HOME'},{text:'转到行尾',value:'END'}]},tagBackground:{1:'#52c41a',2:'#faad14',3:'#f5222d'},diffText:{1:'简单',2:'中等',3:'困难'},reviewResult:{'-1':'测试用例结果不匹配','0':'评测通过','1':'','2':'评测超时','3':'评测pod失败','4':'编译失败','5':'执行失败'}};/* harmony default export */ __webpack_exports__["a"] = (CONST);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 1648:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__testAction_js__ = __webpack_require__(2100);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ojList__ = __webpack_require__(2101);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ojForm__ = __webpack_require__(2102);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ojForUser__ = __webpack_require__(2103);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__common__ = __webpack_require__(2104);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__user__ = __webpack_require__(2105);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__jupyter__ = __webpack_require__(2106);
|
|
/*
|
|
* @Description: 全局导出 action 类型
|
|
* @Author: tangjiang
|
|
* @Date: 2019-11-13 20:12:23
|
|
* @Last Modified by: tangjiang
|
|
* @Last Modified time: 2019-11-14 09:55:47
|
|
*//* harmony default export */ __webpack_exports__["a"] = ({toggleTodo:__WEBPACK_IMPORTED_MODULE_0__testAction_js__["a" /* default */],getOJList:__WEBPACK_IMPORTED_MODULE_1__ojList__["c" /* getOJList */],deleteItem:__WEBPACK_IMPORTED_MODULE_1__ojList__["b" /* deleteItem */],changePaginationInfo:__WEBPACK_IMPORTED_MODULE_1__ojList__["a" /* changePaginationInfo */],getOJFormById:__WEBPACK_IMPORTED_MODULE_2__ojForm__["d" /* getOJFormById */],saveOJFormId:__WEBPACK_IMPORTED_MODULE_2__ojForm__["f" /* saveOJFormId */],clearOJFormStore:__WEBPACK_IMPORTED_MODULE_2__ojForm__["b" /* clearOJFormStore */],validateOjForm:__WEBPACK_IMPORTED_MODULE_2__ojForm__["p" /* validateOjForm */],saveOjFormCode:__WEBPACK_IMPORTED_MODULE_2__ojForm__["g" /* saveOjFormCode */],validateOJName:__WEBPACK_IMPORTED_MODULE_2__ojForm__["l" /* validateOJName */],validateOjLanguage:__WEBPACK_IMPORTED_MODULE_2__ojForm__["q" /* validateOjLanguage */],validateOjDescription:__WEBPACK_IMPORTED_MODULE_2__ojForm__["n" /* validateOjDescription */],validateOjDifficult:__WEBPACK_IMPORTED_MODULE_2__ojForm__["o" /* validateOjDifficult */],validateOjTimeLimit:__WEBPACK_IMPORTED_MODULE_2__ojForm__["r" /* validateOjTimeLimit */],validateOjCategory:__WEBPACK_IMPORTED_MODULE_2__ojForm__["m" /* validateOjCategory */],validateOpenOrNot:__WEBPACK_IMPORTED_MODULE_2__ojForm__["s" /* validateOpenOrNot */],handleClickCancelPublish:__WEBPACK_IMPORTED_MODULE_2__ojForm__["e" /* handleClickCancelPublish */],addTestCase:__WEBPACK_IMPORTED_MODULE_2__ojForm__["a" /* addTestCase */],deleteTestCase:__WEBPACK_IMPORTED_MODULE_2__ojForm__["c" /* deleteTestCase */],testCaseInputChange:__WEBPACK_IMPORTED_MODULE_2__ojForm__["h" /* testCaseInputChange */],testCaseOutputChange:__WEBPACK_IMPORTED_MODULE_2__ojForm__["i" /* testCaseOutputChange */],debuggerCode:__WEBPACK_IMPORTED_MODULE_3__ojForUser__["b" /* debuggerCode */],startProgramQuestion:__WEBPACK_IMPORTED_MODULE_3__ojForUser__["k" /* startProgramQuestion */],changeShowOrHideControl:__WEBPACK_IMPORTED_MODULE_4__common__["c" /* changeShowOrHideControl */],changeLoadingState:__WEBPACK_IMPORTED_MODULE_4__common__["a" /* changeLoadingState */],getUserCommitRecord:__WEBPACK_IMPORTED_MODULE_3__ojForUser__["c" /* getUserCommitRecord */],getUserCommitRecordDetail:__WEBPACK_IMPORTED_MODULE_3__ojForUser__["d" /* getUserCommitRecordDetail */],updateCode:__WEBPACK_IMPORTED_MODULE_3__ojForUser__["m" /* updateCode */],saveUserInputCode:__WEBPACK_IMPORTED_MODULE_3__ojForUser__["i" /* saveUserInputCode */],changeUserCodeTab:__WEBPACK_IMPORTED_MODULE_3__ojForUser__["a" /* changeUserCodeTab */],changeSubmitLoadingStatus:__WEBPACK_IMPORTED_MODULE_4__common__["d" /* changeSubmitLoadingStatus */],submitUserCode:__WEBPACK_IMPORTED_MODULE_3__ojForUser__["l" /* submitUserCode */],changePublishLoadingStatus:__WEBPACK_IMPORTED_MODULE_4__common__["b" /* changePublishLoadingStatus */],isMyPublish:__WEBPACK_IMPORTED_MODULE_4__common__["e" /* isMyPublish */],getUserProgramDetail:__WEBPACK_IMPORTED_MODULE_3__ojForUser__["e" /* getUserProgramDetail */],updateTestAndValidate:__WEBPACK_IMPORTED_MODULE_2__ojForm__["k" /* updateTestAndValidate */],updateOpenTestCaseIndex:__WEBPACK_IMPORTED_MODULE_2__ojForm__["j" /* updateOpenTestCaseIndex */],saveUserProgramIdentifier:__WEBPACK_IMPORTED_MODULE_3__ojForUser__["j" /* saveUserProgramIdentifier */],restoreInitialCode:__WEBPACK_IMPORTED_MODULE_3__ojForUser__["f" /* restoreInitialCode */],getUserInfoForNew:__WEBPACK_IMPORTED_MODULE_5__user__["a" /* getUserInfoForNew */],saveUserCodeForInterval:__WEBPACK_IMPORTED_MODULE_3__ojForUser__["h" /* saveUserCodeForInterval */],saveEditorCodeForDetail:__WEBPACK_IMPORTED_MODULE_3__ojForUser__["g" /* saveEditorCodeForDetail */],// jupyter
|
|
getJupyterTpiDataSet:__WEBPACK_IMPORTED_MODULE_6__jupyter__["d" /* getJupyterTpiDataSet */],getJupyterTpiUrl:__WEBPACK_IMPORTED_MODULE_6__jupyter__["e" /* getJupyterTpiUrl */],getJupyterInfo:__WEBPACK_IMPORTED_MODULE_6__jupyter__["c" /* getJupyterInfo */],syncJupyterCode:__WEBPACK_IMPORTED_MODULE_6__jupyter__["g" /* syncJupyterCode */],changeGetJupyterUrlState:__WEBPACK_IMPORTED_MODULE_6__jupyter__["b" /* changeGetJupyterUrlState */],saveJupyterTpi:__WEBPACK_IMPORTED_MODULE_6__jupyter__["f" /* saveJupyterTpi */],changeCurrentPage:__WEBPACK_IMPORTED_MODULE_6__jupyter__["a" /* changeCurrentPage */]// isUpdateCodeCtx
|
|
});
|
|
|
|
/***/ }),
|
|
|
|
/***/ 2100:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export (immutable) */ __webpack_exports__["a"] = toggleTodo;
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__actionTypes__ = __webpack_require__(51);
|
|
function toggleTodo(){return{type:__WEBPACK_IMPORTED_MODULE_0__actionTypes__["a" /* default */].ADD_TODO};}
|
|
|
|
/***/ }),
|
|
|
|
/***/ 2101:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getOJList; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return changePaginationInfo; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return deleteItem; });
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__actionTypes__ = __webpack_require__(51);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__services_ojService__ = __webpack_require__(1437);
|
|
/*
|
|
* @Description: 开发者社区action
|
|
* @Author: tangjiang
|
|
* @Github:
|
|
* @Date: 2019-11-20 10:48:24
|
|
* @LastEditors: tangjiang
|
|
* @LastEditTime: 2019-12-10 20:40:55
|
|
*/var getOJList=function getOJList(params){return function(dispatch){Object(__WEBPACK_IMPORTED_MODULE_1__services_ojService__["f" /* fetchOJList */])(params).then(function(res){var data=res.data;dispatch({type:__WEBPACK_IMPORTED_MODULE_0__actionTypes__["a" /* default */].GET_OJ_LIST,payload:data});// 改变总页娄
|
|
dispatch({type:__WEBPACK_IMPORTED_MODULE_0__actionTypes__["a" /* default */].CHANGE_PAGINATION_INFO,payload:{total:data.hacks_count}});});};};// 改变分页数据
|
|
var changePaginationInfo=function changePaginationInfo(obj){return{type:__WEBPACK_IMPORTED_MODULE_0__actionTypes__["a" /* default */].CHANGE_PAGINATION_INFO,payload:obj};};// 删除
|
|
var deleteItem=function deleteItem(identifier){return function(dispatch,getState){var pagination=getState().ojListReducer.pagination;Object(__WEBPACK_IMPORTED_MODULE_1__services_ojService__["d" /* fetchDeleteOJItem */])(identifier).then(function(res){if(res.status===200){dispatch(getOJList(pagination));}});};};
|
|
|
|
/***/ }),
|
|
|
|
/***/ 2102:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return validateOjForm; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return handleClickCancelPublish; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return saveOjFormCode; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return validateOJName; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return validateOjLanguage; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return validateOjDescription; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return validateOjDifficult; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return validateOjTimeLimit; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return validateOjCategory; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return validateOpenOrNot; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addTestCase; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return deleteTestCase; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getOJFormById; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return saveOJFormId; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return clearOJFormStore; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return testCaseInputChange; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return testCaseOutputChange; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return updateTestAndValidate; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return updateOpenTestCaseIndex; });
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_notification_style_css__ = __webpack_require__(46);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_notification_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_notification_style_css__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_notification__ = __webpack_require__(47);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_notification___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd_lib_notification__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__actionTypes__ = __webpack_require__(51);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__constants__ = __webpack_require__(1643);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__services_ojService__ = __webpack_require__(1437);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_js_base64__ = __webpack_require__(188);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_js_base64___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_js_base64__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_educoder__ = __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;}/*
|
|
* @Description: 开发者社区编辑模块
|
|
* @Author: tangjiang
|
|
* @Github:
|
|
* @Date: 2019-11-20 16:35:46
|
|
* @LastEditors: tangjiang
|
|
* @LastEditTime: 2019-12-19 17:20:48
|
|
*/var jcLabel=__WEBPACK_IMPORTED_MODULE_3__constants__["a" /* default */].jcLabel;// 表单字段映射
|
|
var maps={name:{label:jcLabel['name'],type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].VALIDATE_OJ_NAME},language:{label:jcLabel['language'],type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].VALIDATE_OJ_LANGUAGE},description:{label:jcLabel['description'],type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].VALIDATE_OJ_DESCRIPTION},difficult:{label:jcLabel['difficult'],type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].VALIDATE_OJ_DIFFICULT},timeLimit:{label:jcLabel['timeLimit'],type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].VALIDATE_OJ_TIMELIMIT},category:{label:jcLabel['category'],type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].VALIDATE_OJ_CATEGORY},openOrNot:{label:jcLabel['openOrNot'],type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].VALIDATE_OJ_OPENORNOT},input:{label:'输入'},output:{label:'输出'}};// 非空校验
|
|
var emptyValidate=function emptyValidate(key,value){if([undefined,'',null].includes(value)){return _defineProperty({},key,{validateStatus:'error',errMsg:maps[key].label+'\u4E0D\u80FD\u4E3A\u7A7A'});}else{return _defineProperty({},key,{validateStatus:'',errMsg:''});}};// 组装字段值及校验信息
|
|
var payloadInfo=function payloadInfo(key,value,errMsg,validateInfo){return{ojForm:_defineProperty({},key,errMsg?'':value),ojFormValidate:_defineProperty({},key,validateInfo)};};// 接口调用成功后,跳转至列表页
|
|
function linkToDev(dispatch,props){Object(__WEBPACK_IMPORTED_MODULE_6_educoder__["_3" /* toStore */])('oj_description','');dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].IS_MY_SOURCE,payload:true});setTimeout(function(){props.history.push('/problems');},1000);}// 表单提交验证
|
|
var validateOjForm=function validateOjForm(props,type){return function(dispatch,getState){var _getState$ojFormReduc=getState().ojFormReducer,ojForm=_getState$ojFormReduc.ojForm,testCases=_getState$ojFormReduc.testCases,identifier=_getState$ojFormReduc.identifier,code=_getState$ojFormReduc.code;// console.log('code', code);
|
|
/** 表单验证开始 */var keys=Object.keys(ojForm);// 循环判断每个字段是否为空
|
|
var hasSuccess=true;keys.forEach(function(key){var value=ojForm[key];var validateResult=emptyValidate(key,value);var errMsg=validateResult[key].errMsg;if(errMsg){hasSuccess=false;dispatch({type:maps[key].type,payload:payloadInfo(key,value,errMsg,validateResult[key])});}});// 验证测试用例中的数组是否都有对应的值
|
|
var tcValidResult=[];// 验证测试用例: 1.必须要有输出值 2. 输入值与输出值必须唯一
|
|
testCases.forEach(function(obj,i){var tempObj={};['input','output'].forEach(function(key){var value=obj[key];// 非空校验
|
|
var validateResult=emptyValidate(key,value);var errMsg=validateResult[key].errMsg;if(errMsg){hasSuccess=false;}else{// 唯一性校验
|
|
var bool=testCases.some(function(item,j){if(i!==j){return item[key]===value;}else{return false;}});if(bool){hasSuccess=false;validateResult=_defineProperty({},key,{validateStatus:'error',errMsg:key==='input'?'输入值必须是唯一的':'输出值必须是唯一的'});}}Object.assign(tempObj,validateResult);});tcValidResult.push(tempObj);});if(testCases.length===0){hasSuccess=false;__WEBPACK_IMPORTED_MODULE_1_antd_lib_notification___default.a['error']({message:'提示',description:'测试用例必须输入!'});}// if (!code) {
|
|
// hasSuccess = false;
|
|
// notification['error']({
|
|
// message: '必填',
|
|
// description: '代码块内容必须输入!'
|
|
// });
|
|
// }
|
|
// 更改测试用例验证结果
|
|
dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].UPDATE_TEST_AND_VALIDATE,payload:{testCaseValidate:tcValidResult}});// 验证成功后,调用提交接口
|
|
if(!hasSuccess){dispatch({// 提交
|
|
type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].SUBMIT_LOADING_STATUS,payload:false});dispatch({// 发布
|
|
type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].PUBLISH_LOADING_STATUS,payload:false});}/** 表单验证结束 *//** 表单验证通过后,调用保存 or 更新 or 发布 */if(hasSuccess){// console.log('表单保存的数据为: ', getState());
|
|
var _getState=getState(),ojFormReducer=_getState.ojFormReducer;var _code=ojFormReducer.code,score=ojFormReducer.score,_ojForm2=ojFormReducer.ojForm,_ojFormReducer$testCa=ojFormReducer.testCases,_testCases=_ojFormReducer$testCa===undefined?[]:_ojFormReducer$testCa;var category=_ojForm2.category,description=_ojForm2.description,difficult=_ojForm2.difficult,language=_ojForm2.language,name=_ojForm2.name,openOrNot=_ojForm2.openOrNot,timeLimit=_ojForm2.timeLimit;var paramsObj={};var hack={// 编程题干
|
|
name:name,description:JSON.stringify(description),difficult:difficult,category:category,'open_or_not':openOrNot,'time_limit':timeLimit,score:score};var hack_codes={// 代码区域参数
|
|
code:__WEBPACK_IMPORTED_MODULE_5_js_base64__["Base64"].encode(_code),language:language};if(!identifier){// 新增
|
|
var tempTc=_testCases.map(function(tc){delete tc.isAdd;return tc;});paramsObj['params']={hack:hack,hack_sets:tempTc,hack_codes:hack_codes};paramsObj['submitType']='add';}else{// 存在时调用更新接口
|
|
var update_hack_sets=[];// 编辑的测试集
|
|
var hack_sets=[];// 新增的测试集
|
|
_testCases.forEach(function(tc){if(tc.isAdd){// 新增
|
|
delete tc.isAdd;hack_sets.push(tc);}else{delete tc.isAdd;update_hack_sets.push(tc);}});paramsObj['params']={hack:hack,hack_sets:hack_sets,hack_codes:hack_codes,update_hack_sets:update_hack_sets};paramsObj['submitType']='update';paramsObj['identifier']=identifier;}// 调用保存或更新
|
|
if(type==='publish'){// 提示发布信息
|
|
Object(__WEBPACK_IMPORTED_MODULE_4__services_ojService__["q" /* publishTask */])(identifier).then(function(res){if(res.data.status===0){// message.success('发布成功!');
|
|
__WEBPACK_IMPORTED_MODULE_1_antd_lib_notification___default.a.success({message:'提示',description:'发布成功!'});linkToDev(dispatch,props);}dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].PUBLISH_LOADING_STATUS,payload:false});}).catch(function(){dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].PUBLISH_LOADING_STATUS,payload:false});});}else{// 调用更新
|
|
Object(__WEBPACK_IMPORTED_MODULE_4__services_ojService__["g" /* fetchPostOjForm */])(paramsObj).then(function(res){if(res.status===200){// 保存成功后,重新跳转至列表页
|
|
if(res.data.status===0){// message.success(paramsObj['submitType'] === 'update' ? '更新成功' : '保存成功');
|
|
__WEBPACK_IMPORTED_MODULE_1_antd_lib_notification___default.a.success({message:'提示',description:paramsObj['submitType']==='update'?'更新成功':'保存成功'});linkToDev(dispatch,props);}dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].SUBMIT_LOADING_STATUS,payload:false});}}).catch(function(err){dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].SUBMIT_LOADING_STATUS,payload:false});});}}};};// 撤销发布
|
|
var handleClickCancelPublish=function handleClickCancelPublish(props,identifier){return function(dispatch){Object(__WEBPACK_IMPORTED_MODULE_4__services_ojService__["a" /* cancelPublicTask */])(identifier).then(function(res){dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].PUBLISH_LOADING_STATUS,payload:false});if(res.status=200){var data=res.data;if(data.status===0){// message.success('撤销发布成功!');
|
|
__WEBPACK_IMPORTED_MODULE_1_antd_lib_notification___default.a.success({message:'提示',description:'撤销发布成功!'});linkToDev(dispatch,props);}}}).catch(function(){dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].PUBLISH_LOADING_STATUS,payload:false});});};};// 保存提交的代码
|
|
var saveOjFormCode=function saveOjFormCode(value){return{type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].SAVE_OJ_FORM_CODE,payload:value};};// 验证任务名称
|
|
var validateOJName=function validateOJName(value){var validate=emptyValidate('name',value)['name'];var errMsg=validate.errMsg;return{type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].VALIDATE_OJ_NAME,payload:payloadInfo('name',value,errMsg,validate)};};// 验证编程语言
|
|
var validateOjLanguage=function validateOjLanguage(value){var validate=emptyValidate('language',value)['language'];var errMsg=validate.errMsg;return{type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].VALIDATE_OJ_LANGUAGE,payload:payloadInfo('language',value,errMsg,validate)};};// 验证描述
|
|
var validateOjDescription=function validateOjDescription(value){// createAction('description', value, types.VALIDATE_OJ_DESCRIPTION);
|
|
var validate=emptyValidate('description',value)['description'];var errMsg=validate.errMsg;return{type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].VALIDATE_OJ_DESCRIPTION,payload:payloadInfo('description',value,errMsg,validate)};};// 验证难易度
|
|
var validateOjDifficult=function validateOjDifficult(value){// createAction('difficult', value, types.VALIDATE_OJ_DIFFICULT);
|
|
var validate=emptyValidate('difficult',value)['difficult'];var errMsg=validate.errMsg;return{type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].VALIDATE_OJ_DIFFICULT,payload:payloadInfo('difficult',value,errMsg,validate)};};// 验证时间限制
|
|
var validateOjTimeLimit=function validateOjTimeLimit(value){// createAction('timeLimit', value, types.VALIDATE_OJ_TIMELIMIT);
|
|
var validate=emptyValidate('timeLimit',value)['timeLimit'];var errMsg=validate.errMsg;return{type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].VALIDATE_OJ_TIMELIMIT,payload:payloadInfo('timeLimit',value,errMsg,validate)};};// 验证分类
|
|
var validateOjCategory=function validateOjCategory(value){// createAction('category', value, types.VALIDATE_OJ_CATEGORY);
|
|
var validate=emptyValidate('category',value)['category'];var errMsg=validate.errMsg;return{type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].VALIDATE_OJ_CATEGORY,payload:payloadInfo('category',value,errMsg,validate)};};// 验证公开程序
|
|
var validateOpenOrNot=function validateOpenOrNot(value){var validate=emptyValidate('openOrNot',value)['openOrNot'];var errMsg=validate.errMsg;return{type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].VALIDATE_OJ_OPENORNOT,payload:payloadInfo('openOrNot',value,errMsg,validate)};};// 新增测试用例
|
|
var addTestCase=function addTestCase(obj){return{type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].ADD_TEST_CASE,payload:obj};};// 删除测试用例
|
|
var deleteTestCase=function deleteTestCase(obj){return{type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].DELETE_TEST_CASE,payload:obj};};// 根据id号编辑OJ
|
|
var getOJFormById=function getOJFormById(id){return function(dispatch){Object(__WEBPACK_IMPORTED_MODULE_4__services_ojService__["e" /* fetchGetOjById */])(id).then(function(res){console.log('获取OJ表单信息成功: ',res);dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].SAVE_EDIT_OJ_FORM_AND_TEST_CASE,payload:res.data});// 保存用户信息
|
|
dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].SAVE_USER_INFO,payload:res.data.user});});};};// 保存表单 id 信息
|
|
var saveOJFormId=function saveOJFormId(id){return{type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].SAVE_OJ_FORM_ID,payload:id};};// 清空值
|
|
var clearOJFormStore=function clearOJFormStore(){return{type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].CLEAR_JSFORM_STORE};};// 测试用例输入值改变时
|
|
var testCaseInputChange=function testCaseInputChange(value,index){return function(dispatch,getState){// 非空校验
|
|
var validate=emptyValidate('input',value)['input'];if(!validate.errMsg){// 唯一性校验
|
|
var _errMsg='';var testCases=getState().ojFormReducer.testCases;var bool=testCases.some(function(item,i){if(i!==index){if(item['input']===value){_errMsg='\u4E0E\u6D4B\u8BD5\u7528\u4F8B'+index+'\u7684\u8F93\u5165\u503C\u91CD\u590D\u4E86\uFF0C\u8BF7\u91CD\u65B0\u586B\u5199';}return item['input']===value;}else{return false;}});if(bool){validate={validateStatus:'error',errMsg:_errMsg};}}dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].TEST_CASE_INPUT_CHANGE,payload:{input:validate,value:value,index:index}});};};// 测试用例输出值改变时
|
|
var testCaseOutputChange=function testCaseOutputChange(value,index){// const validate = emptyValidate('output', value)['output'];
|
|
// return {
|
|
// type: types.TEST_CASE_OUTPUT_CHANGE,
|
|
// payload: {
|
|
// output: validate,
|
|
// value,
|
|
// index
|
|
// }
|
|
// }
|
|
return function(dispatch,getState){// 非空校验
|
|
var validate=emptyValidate('output',value)['output'];if(!validate.errMsg){// 唯一性校验
|
|
var testCases=getState().ojFormReducer.testCases;var _errMsg='';var bool=testCases.some(function(item,i){if(i!==index){if(item['output']===value){_errMsg='\u4E0E\u6D4B\u8BD5\u7528\u4F8B'+index+'\u7684\u8F93\u5165\u503C\u91CD\u590D\u4E86\uFF0C\u8BF7\u91CD\u65B0\u586B\u5199';}return item['output']===value;}else{return false;}});if(bool){validate={validateStatus:'error',errMsg:_errMsg};}}dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].TEST_CASE_OUTPUT_CHANGE,payload:{output:validate,value:value,index:index}});};};// // 调试代码时,更改对应的状态值
|
|
// export const changeTestCodeStatus = () => {
|
|
// 更新测试用命及验证
|
|
var updateTestAndValidate=function updateTestAndValidate(obj){return function(dispatch){dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].UPDATE_TEST_AND_VALIDATE,payload:obj});};// return {
|
|
// type: types.UPDATE_TEST_AND_VALIDATE,
|
|
// payload: obj
|
|
// }
|
|
};// 更新测试用例索引
|
|
var updateOpenTestCaseIndex=function updateOpenTestCaseIndex(value){return{type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].UPDATE_OPEN_TESTCASE_INDEX,payload:value};};
|
|
|
|
/***/ }),
|
|
|
|
/***/ 2103:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return startProgramQuestion; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return saveUserProgramIdentifier; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getUserProgramDetail; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return saveUserCodeForInterval; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return updateCode; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return debuggerCode; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getUserCommitRecord; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getUserCommitRecordDetail; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return saveUserInputCode; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return changeUserCodeTab; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return submitUserCode; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return restoreInitialCode; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return saveEditorCodeForDetail; });
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_notification_style_css__ = __webpack_require__(46);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_notification_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_notification_style_css__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_notification__ = __webpack_require__(47);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_notification___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd_lib_notification__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__actionTypes__ = __webpack_require__(51);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_js_base64__ = __webpack_require__(188);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_js_base64___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_js_base64__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__services_ojService__ = __webpack_require__(1437);
|
|
/*
|
|
* @Description:
|
|
* @Author: tangjiang
|
|
* @Github:
|
|
* @Date: 2019-11-27 13:42:11
|
|
* @LastEditors: tangjiang
|
|
* @LastEditTime: 2019-12-19 15:11:56
|
|
*/// 进入编程页面时,首先调用开启编程题接口
|
|
var startProgramQuestion=function startProgramQuestion(id,props){return function(dispatch){Object(__WEBPACK_IMPORTED_MODULE_4__services_ojService__["i" /* fetchStartProgram */])(id).then(function(res){var status=res.status,data=res.data;if(status===200){var identifier=data.identifier;dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].SAVE_USER_PROGRAM_ID,payload:identifier});// 保存id值
|
|
dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].SAVE_HACK_IDENTIFIER,payload:id});// 跳转至开启编程
|
|
if(identifier){// let data = Object.assign({}, props);
|
|
// const path = {
|
|
// pathname: `/myproblems/${identifier}`,
|
|
// state: data
|
|
// }
|
|
// console.log(path);
|
|
// props.history.push(`/myproblems/${identifier}`);
|
|
props.history.push({pathname:"/myproblems/"+identifier});}}});};};// 保存 identifier, 防止刷新时读取不到
|
|
var saveUserProgramIdentifier=function saveUserProgramIdentifier(identifier){return{type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].SAVE_USER_PROGRAM_ID,payload:identifier};};// 获取用户编程题详情
|
|
var getUserProgramDetail=function getUserProgramDetail(identifier,type){// 调用用户编程详情接口
|
|
return function(dispatch){Object(__WEBPACK_IMPORTED_MODULE_4__services_ojService__["p" /* fetchUserProgramDetail */])(identifier).then(function(res){var status=res.status,_res$data=res.data,data=_res$data===undefined?{}:_res$data;if(status===200){if(data.status===401)return;if(!type){dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].USER_PROGRAM_DETAIL,payload:data});}else{dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].GET_COMMIT_RECORD_DETAIL_BY_ID,payload:data});}// 保存默认测试用例
|
|
dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].SAVE_USE_TEST_CASE_VALUE,payload:data.test_case||{}});// 代码是否更新
|
|
var _modify_code=false;if(data.hack){_modify_code=data.hack.modify_code;}dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].SAVE_NOTICE_COUNT,payload:_modify_code});// 保存用户登录信息
|
|
dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].SAVE_USER_INFO,payload:data.user});}});};};var saveUserCodeForInterval=function saveUserCodeForInterval(identifier,code){return function(dispatch){dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].AUTO_UPDATE_CODE,payload:true});Object(__WEBPACK_IMPORTED_MODULE_4__services_ojService__["j" /* fetchUpdateCode */])(identifier,{code:__WEBPACK_IMPORTED_MODULE_3_js_base64__["Base64"].encode(code)}).then(function(res){if(res.data.status===401){return;};setTimeout(function(){dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].AUTO_UPDATE_CODE,payload:false});},1000);console.log('代码保存成功',res);}).catch(function(){dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].AUTO_UPDATE_CODE,payload:false});});};};/**
|
|
* @description 保存或更新之前先更新代码
|
|
* @param {*} identifier
|
|
* @param {*} inputValue 输入值: 自定义 | 系统返回的
|
|
* @param {*} type 测评类型 debug | submit
|
|
*/var updateCode=function updateCode(identifier,inputValue,type){return function(dispatch,getState){var _getState$ojForUserRe=getState().ojForUserReducer,userCode=_getState$ojForUserRe.userCode,isUpdateCode=_getState$ojForUserRe.isUpdateCode;if(isUpdateCode){Object(__WEBPACK_IMPORTED_MODULE_4__services_ojService__["j" /* fetchUpdateCode */])(identifier,{code:userCode}).then(function(res){// 是否更新了代码, 目的是当代码没有更新时不调用更新代码接口,目录没有实现
|
|
// TODO 需要优化
|
|
if(res.data.status===401){dispatch({// 改变 loading 值
|
|
type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].LOADING_STATUS,payload:false});return;};dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].IS_UPDATE_CODE,flag:false});// debuggerCode(identifier, inputValue);
|
|
dispatch(debuggerCode(identifier,inputValue,type));});}else{// 没有更新时,直接调用调试接口
|
|
dispatch(debuggerCode(identifier,inputValue,type));}};};/**
|
|
* @description 调试代码
|
|
* @param {*} identifier
|
|
* @param {*} inputValue 输入值: 自定义 | 系统返回的
|
|
* @param {*} type 测评类型 debug | submit
|
|
*/var debuggerCode=function debuggerCode(identifier,value,type){return function(dispatch,getState){// 调用之前 先保存 code
|
|
// TODO
|
|
// console.log(identifier, value);
|
|
var _getState$ojForUserRe2=getState().ojForUserReducer.hack.time_limit,time_limit=_getState$ojForUserRe2===undefined?0:_getState$ojForUserRe2;if(!type||type==='debug'){dispatch({// 加载中...
|
|
type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].TEST_CODE_STATUS,payload:'loading'});}Object(__WEBPACK_IMPORTED_MODULE_4__services_ojService__["c" /* fetchDebuggerCode */])(identifier,value).then(function(res){// console.log('调用调试代码成功并返回结果: ', res);
|
|
var status=res.status;if(status===200){var getCodeSubmit=function getCodeSubmit(intervalTime,finalTime,count,timer){var excuteTime=count++*intervalTime;// 当前执行时间
|
|
Object(__WEBPACK_IMPORTED_MODULE_4__services_ojService__["b" /* fetchCodeSubmit */])(identifier,{mode:type}).then(function(res){var status=res.data.status;// 评测返回结果
|
|
// 清除定时器条件: 评测通过或者评测时间大于指定时间
|
|
if(+status===0||excuteTime/1000>finalTime+1){clearInterval(timer);// 清除定时器
|
|
timer=null;var returnData=null;if(status===1){// 结果没有返回
|
|
returnData={error_line:-1,error_msg:'',execute_memory:'',execute_time:finalTime,input:'',output:'',status:2,expected_output:''};}else{// 成功返回结果
|
|
returnData=res.data.data;}// 返回评测结果
|
|
dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].COMMIT_RECORD_DETAIL,payload:returnData});if(!type||type==='debug'){dispatch({// 改变 loading 值
|
|
type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].LOADING_STATUS,payload:false});// 保存执行状态
|
|
dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].TEST_CODE_STATUS,payload:'finish'});}else{// 回滚提交按钮状态
|
|
dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].SUBMIT_LOADING_STATUS,payload:false});// 改变tab值至提交记录(只在提交时才跳转,测评时,切换到代码执行结果就可以了)
|
|
dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].CHANGE_USER_CODE_TAB,payload:'record'});// 重新调用一下提交记录接口
|
|
dispatch(getUserCommitRecord(identifier));}}}).catch(function(err){// 评测异常时
|
|
// 清除定时器
|
|
clearInterval(timer);timer=null;// 回滚按钮状态
|
|
if(!type||type==='debug'){dispatch({// 改变 loading 值
|
|
type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].LOADING_STATUS,payload:false});}else{// 回滚提交按钮状态
|
|
dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].SUBMIT_LOADING_STATUS,payload:false});}});};// 开启定时器,调用监听接口
|
|
// 调试代码成功后,调用轮循接口, 注意: 代码执行的时间要小于设置的时间限制
|
|
var intervalTime=500;var count=1;/**
|
|
* @param {*} excuteTime 执行时间
|
|
* @param {*} finalTime 总时间
|
|
* @param {*} count 执行次数
|
|
* @param {*} timer 定时器
|
|
*/if(res.data.status===401){dispatch({// 改变 loading 值
|
|
type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].LOADING_STATUS,payload:false});return;};var timer=setInterval(function(){getCodeSubmit(intervalTime,time_limit,count++,timer);},intervalTime);}}).catch(function(){dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].TEST_CODE_STATUS,payload:'error'});dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].LOADING_STATUS,payload:false});dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].SUBMIT_LOADING_STATUS,payload:false});});};};// 获取提交记录
|
|
var getUserCommitRecord=function getUserCommitRecord(identifier){return function(dispatch){Object(__WEBPACK_IMPORTED_MODULE_4__services_ojService__["m" /* fetchUserCommitRecord */])(identifier).then(function(res){var status=res.status,data=res.data;if(status===200){dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].COMMIT_RECORD,payload:data});}});};};// 获取提交记录详情
|
|
var getUserCommitRecordDetail=function getUserCommitRecordDetail(identifier){return function(dispatch){Object(__WEBPACK_IMPORTED_MODULE_4__services_ojService__["n" /* fetchUserCommitRecordDetail */])(identifier).then(function(res){console.log('提交记录详情======》》》》',res);var data=res.data;if(data.status===401)return;dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].GET_COMMIT_RECORD_DETAIL_BY_ID,payload:data});});};};// 保存用户时时输入的代码
|
|
var saveUserInputCode=function saveUserInputCode(code){return{type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].SAVE_USER_CODE,payload:code};};// 监听是否更新代码块内容
|
|
// export const isUpdateCodeCtx = (flag) => {
|
|
// return {
|
|
// type: types.IS_UPDATE_CODE,
|
|
// payload: flag
|
|
// };
|
|
// }
|
|
// 改变学员测评 tab 值
|
|
var changeUserCodeTab=function changeUserCodeTab(key){return{type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].CHANGE_USER_CODE_TAB,payload:key};};/**
|
|
* @description 用户提交代码, 先调用保存代码接口,再调提交接口,成功后调用调试接口
|
|
* @param {*} identifier
|
|
*/var submitUserCode=function submitUserCode(identifier,inputValue,type){return function(dispatch,getState){var _getState$ojForUserRe3=getState().ojForUserReducer,userCode=_getState$ojForUserRe3.userCode,isUpdateCode=_getState$ojForUserRe3.isUpdateCode;function userCodeSubmit(){Object(__WEBPACK_IMPORTED_MODULE_4__services_ojService__["l" /* fetchUserCodeSubmit */])(identifier).then(function(res){// console.log('用户提交代码成功======》》》》》', res);
|
|
if(res.status===200){if(res.data.status===401){dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].SUBMIT_LOADING_STATUS,payload:false});return;};// 将编辑代码清空
|
|
dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].SAVE_EDITOR_CODE,payload:''});dispatch(debuggerCode(identifier,inputValue,type||'submit'));}}).catch(function(){dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].SUBMIT_LOADING_STATUS,payload:false});});}if(isUpdateCode){Object(__WEBPACK_IMPORTED_MODULE_4__services_ojService__["j" /* fetchUpdateCode */])(identifier,{code:userCode}).then(function(res){// 是否更新了代码, 目的是当代码没有更新时不调用更新代码接口,目录没有实现
|
|
// TODO 需要优化
|
|
if(res.data.status===401){dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].SUBMIT_LOADING_STATUS,payload:false});return;};dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].IS_UPDATE_CODE,flag:false});userCodeSubmit();}).catch(function(){dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].SUBMIT_LOADING_STATUS,payload:false});});}else{userCodeSubmit();}};};// 恢复初始代码
|
|
var restoreInitialCode=function restoreInitialCode(identifier,msg){return function(dispatch){Object(__WEBPACK_IMPORTED_MODULE_4__services_ojService__["h" /* fetchRestoreInitialCode */])(identifier).then(function(res){if(res.data.status===401)return;// console.log('恢复初始代码====》》》》', res);
|
|
var status=res.status,data=res.data;if(status===200){dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].RESTORE_INITIAL_CODE,payload:data.code});__WEBPACK_IMPORTED_MODULE_1_antd_lib_notification___default.a.success({message:'提示',description:msg});dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].SAVE_NOTICE_COUNT,payload:false});}});};};// 保存详情页面中的编辑代码
|
|
var saveEditorCodeForDetail=function saveEditorCodeForDetail(code){return{type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].SAVE_EDITOR_CODE,payload:code};};// 更新通知状态
|
|
|
|
/***/ }),
|
|
|
|
/***/ 2104:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return changeShowOrHideControl; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return changeLoadingState; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return changeSubmitLoadingStatus; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return changePublishLoadingStatus; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isMyPublish; });
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__actionTypes__ = __webpack_require__(51);
|
|
/*
|
|
* @Description: 控制全局
|
|
* @Author: tangjiang
|
|
* @Github:
|
|
* @Date: 2019-11-27 16:30:50
|
|
* @LastEditors: tangjiang
|
|
* @LastEditTime: 2019-12-19 19:42:10
|
|
*/// 切换控制台显示与隐藏
|
|
var changeShowOrHideControl=function changeShowOrHideControl(flag){return{type:__WEBPACK_IMPORTED_MODULE_0__actionTypes__["a" /* default */].SHOW_OR_HIDE_CONTROL,payload:flag};};// 改变 loading 状态值
|
|
var changeLoadingState=function changeLoadingState(flag){return{type:__WEBPACK_IMPORTED_MODULE_0__actionTypes__["a" /* default */].LOADING_STATUS,payload:flag};};// 改变提交按钮状态值
|
|
var changeSubmitLoadingStatus=function changeSubmitLoadingStatus(flag){return{type:__WEBPACK_IMPORTED_MODULE_0__actionTypes__["a" /* default */].SUBMIT_LOADING_STATUS,payload:flag};};// 发布按钮状态
|
|
var changePublishLoadingStatus=function changePublishLoadingStatus(flag){return{type:__WEBPACK_IMPORTED_MODULE_0__actionTypes__["a" /* default */].PUBLISH_LOADING_STATUS,payload:flag};};// 是否是我发布的
|
|
var isMyPublish=function isMyPublish(flag){return{type:__WEBPACK_IMPORTED_MODULE_0__actionTypes__["a" /* default */].IS_MY_SOURCE,payload:flag};};
|
|
|
|
/***/ }),
|
|
|
|
/***/ 2105:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getUserInfoForNew; });
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__actionTypes__ = __webpack_require__(51);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__services_ojService__ = __webpack_require__(1437);
|
|
/*
|
|
* @Description:
|
|
* @Author: tangjiang
|
|
* @Github:
|
|
* @Date: 2019-12-06 15:09:22
|
|
* @LastEditors: tangjiang
|
|
* @LastEditTime: 2019-12-09 20:34:50
|
|
*/// 获取用户信息
|
|
var getUserInfoForNew=function getUserInfoForNew(){return function(dispatch){// 调用获取用户信息, 如果没有登录直接调用登录,成功后保存当前用户信息
|
|
Object(__WEBPACK_IMPORTED_MODULE_1__services_ojService__["o" /* fetchUserInfoForNew */])().then(function(res){// console.log('获取用户信息成功: ', res);
|
|
var data=res.data;if(data.status===401)return;dispatch({type:__WEBPACK_IMPORTED_MODULE_0__actionTypes__["a" /* default */].SAVE_USER_INFO,payload:data.user});});};};
|
|
|
|
/***/ }),
|
|
|
|
/***/ 2106:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getJupyterInfo; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getJupyterTpiDataSet; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getJupyterTpiUrl; });
|
|
/* unused harmony export saveJupyterIdentifier */
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return syncJupyterCode; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return changeGetJupyterUrlState; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return saveJupyterTpi; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return changeCurrentPage; });
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_message_style_css__ = __webpack_require__(177);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_message_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_message_style_css__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_message__ = __webpack_require__(178);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_message___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd_lib_message__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__actionTypes__ = __webpack_require__(51);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__services_jupyterServer__ = __webpack_require__(2107);
|
|
/*
|
|
* @Description: jupyter tpi 相关内容
|
|
* @Author: tangjiang
|
|
* @Github:
|
|
* @Date: 2019-12-12 09:01:30
|
|
* @LastEditors: tangjiang
|
|
* @LastEditTime: 2019-12-13 23:03:27
|
|
*/// 获取 jupyter 相关信息
|
|
var getJupyterInfo=function getJupyterInfo(id){return function(dispatch,getState){var jupyter_pagination=getState().jupyterReducer.jupyter_pagination;console.log(jupyter_pagination);Object(__WEBPACK_IMPORTED_MODULE_3__services_jupyterServer__["a" /* fetchJupyterInfo */])(id).then(function(res){if(res.data.status===401)return;if(res.status===200){var data=res.data;// if (data.status === 0) {
|
|
dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].SAVE_JUPYTER_INFO,payload:data});var identifier=data.identifier,myshixun_identifier=data.myshixun_identifier;dispatch(saveJupyterIdentifier(identifier));// 调用获取数据集接口
|
|
dispatch(getJupyterTpiDataSet(identifier,jupyter_pagination));// 调用获取url接口
|
|
dispatch(getJupyterTpiUrl({identifier:myshixun_identifier}));// }
|
|
}});};};// 获取 jupyter tpi 数据集
|
|
var getJupyterTpiDataSet=function getJupyterTpiDataSet(identifier,params){return function(dispatch,getState){if(!params){params=getState().jupyterReducer.jupyter_pagination;}Object(__WEBPACK_IMPORTED_MODULE_3__services_jupyterServer__["b" /* fetchJupyterTpiDataSet */])(identifier,params).then(function(res){if(res.data.status===401)return;// 用户未登录
|
|
if(res.status===200){var _res$data=res.data,data_sets=_res$data.data_sets,data_sets_count=_res$data.data_sets_count;dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].GET_JUPYTER_DATA_SETS,payload:{data_sets:data_sets,data_sets_count:data_sets_count}});}});};};// 获取 jupyter tpi 地址
|
|
var getJupyterTpiUrl=function getJupyterTpiUrl(obj){return function(dispatch,getState){var jupyter_info=getState().jupyterReducer.jupyter_info;if(!obj.identifier&&!jupyter_info.myshixun_identifier)return;var id=obj.identifier||jupyter_info.myshixun_identifier;Object(__WEBPACK_IMPORTED_MODULE_3__services_jupyterServer__["c" /* fetchJupyterTpiUrl */])({identifier:id}).then(function(res){if(res.data.status===401)return;// 用户未登录
|
|
console.log('获取url',res);if(res.status===200){var _res$data2=res.data,status=_res$data2.status,_res$data2$url=_res$data2.url,url=_res$data2$url===undefined?'':_res$data2$url,port=_res$data2.port;dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].GET_JUPYTER_TPI_URL,payload:{status:status,url:url,port:port}});}});};};// 保存 jupyter identifer
|
|
var saveJupyterIdentifier=function saveJupyterIdentifier(identifier){return{type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].SAVE_JUPYTER_IDENTIFIER,payload:identifier};};// 重置代码
|
|
var syncJupyterCode=function syncJupyterCode(identifier,msg){return function(dispatch){Object(__WEBPACK_IMPORTED_MODULE_3__services_jupyterServer__["e" /* fetchSyncJupyterCode */])(identifier).then(function(res){// console.log('同步代码成功: ', res);
|
|
if(res.data.status===401)return;if(res.status===200){var status=res.data.status;if(status===0){__WEBPACK_IMPORTED_MODULE_1_antd_lib_message___default.a.success(msg);setTimeout(function(){window.location.reload();},300);}}});};};// 改变状态值
|
|
var changeGetJupyterUrlState=function changeGetJupyterUrlState(status){return{type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].CHANGE_JUPYTER_URL_STATE,payload:status};};// 保存 jupyter tpi
|
|
var saveJupyterTpi=function saveJupyterTpi(){return function(dispatch,getState){var _getState$jupyterRedu=getState().jupyterReducer,jupyter_tpi_code=_getState$jupyterRedu.jupyter_tpi_code,jupyter_info=_getState$jupyterRedu.jupyter_info;// console.log(jupyter_info.myshixun_identifier, jupyter_tpi_code);
|
|
if(!jupyter_info.myshixun_identifier)return;var params={identifier:jupyter_info.myshixun_identifier,jupyter_port:jupyter_tpi_code};console.log(params);Object(__WEBPACK_IMPORTED_MODULE_3__services_jupyterServer__["d" /* fetchSaveJupyterTpi */])(params).then(function(res){dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].LOADING_STATUS,payload:false});if(res.status===200){var data=res.data;if(data.status===0){__WEBPACK_IMPORTED_MODULE_1_antd_lib_message___default.a.success('保存成功!');}}}).catch(function(){dispatch({type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].LOADING_STATUS,payload:false});});};};// 改变当前页数
|
|
var changeCurrentPage=function changeCurrentPage(current){return{type:__WEBPACK_IMPORTED_MODULE_2__actionTypes__["a" /* default */].CHANGE_JUPYTER_CURRENT_PAGE,payload:current};};
|
|
|
|
/***/ }),
|
|
|
|
/***/ 2107:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return fetchJupyterInfo; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return fetchJupyterTpiDataSet; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return fetchJupyterTpiUrl; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return fetchSyncJupyterCode; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return fetchSaveJupyterTpi; });
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator__ = __webpack_require__(1337);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios__ = __webpack_require__(12);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_axios__);
|
|
function _asyncToGenerator(fn){return function(){var gen=fn.apply(this,arguments);return new Promise(function(resolve,reject){function step(key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{return Promise.resolve(value).then(function(value){step("next",value);},function(err){step("throw",err);});}}return step("next");});};}/*
|
|
* @Description: jupyter相关接口
|
|
* @Author: tangjiang
|
|
* @Github:
|
|
* @Date: 2019-12-12 09:07:07
|
|
* @LastEditors: tangjiang
|
|
* @LastEditTime: 2019-12-13 16:00:45
|
|
*/// 获取 jupyter实训相关的内容
|
|
var fetchJupyterInfo=function(){var _ref=_asyncToGenerator(/*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee(identifier){var url;return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:url='/tasks/'+identifier+'/jupyter.json';return _context.abrupt('return',__WEBPACK_IMPORTED_MODULE_1_axios___default.a.get(url));case 2:case'end':return _context.stop();}}},_callee,this);}));return function fetchJupyterInfo(_x){return _ref.apply(this,arguments);};}();// 获取数据集
|
|
var fetchJupyterTpiDataSet=function(){var _ref2=_asyncToGenerator(/*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee2(identifier,params){var url;return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee2$(_context2){while(1){switch(_context2.prev=_context2.next){case 0:url='/shixuns/'+identifier+'/get_data_sets.json';return _context2.abrupt('return',__WEBPACK_IMPORTED_MODULE_1_axios___default.a.get(url,{params:params}));case 2:case'end':return _context2.stop();}}},_callee2,this);}));return function fetchJupyterTpiDataSet(_x2,_x3){return _ref2.apply(this,arguments);};}();// 获取 tpi url
|
|
var fetchJupyterTpiUrl=function(){var _ref3=_asyncToGenerator(/*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee3(params){var url;return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee3$(_context3){while(1){switch(_context3.prev=_context3.next){case 0:url='/jupyters/get_info_with_tpi.json';return _context3.abrupt('return',__WEBPACK_IMPORTED_MODULE_1_axios___default.a.get(url,{params:params}));case 2:case'end':return _context3.stop();}}},_callee3,this);}));return function fetchJupyterTpiUrl(_x4){return _ref3.apply(this,arguments);};}();// 同步代码功能
|
|
var fetchSyncJupyterCode=function(){var _ref4=_asyncToGenerator(/*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee4(identifier){var url;return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee4$(_context4){while(1){switch(_context4.prev=_context4.next){case 0:url='/myshixuns/'+identifier+'/sync_code.json';return _context4.abrupt('return',__WEBPACK_IMPORTED_MODULE_1_axios___default.a.post(url));case 2:case'end':return _context4.stop();}}},_callee4,this);}));return function fetchSyncJupyterCode(_x5){return _ref4.apply(this,arguments);};}();// jupyter 保存
|
|
var fetchSaveJupyterTpi=function(){var _ref5=_asyncToGenerator(/*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee5(params){var url;return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee5$(_context5){while(1){switch(_context5.prev=_context5.next){case 0:url='/jupyters/save_with_tpi.json';return _context5.abrupt('return',__WEBPACK_IMPORTED_MODULE_1_axios___default.a.get(url,{params:params}));case 2:case'end':return _context5.stop();}}},_callee5,this);}));return function fetchSaveJupyterTpi(_x6){return _ref5.apply(this,arguments);};}();
|
|
|
|
/***/ }),
|
|
|
|
/***/ 2282:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* unused harmony export UserInfo */
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__index_scss__ = __webpack_require__(2283);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__index_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__index_scss__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_educoder__ = __webpack_require__(5);
|
|
/*
|
|
* @Description: 用户头像及昵称
|
|
* @Author: tangjiang
|
|
* @Github:
|
|
* @Date: 2019-12-09 17:11:28
|
|
* @LastEditors: tangjiang
|
|
* @LastEditTime: 2019-12-09 17:36:55
|
|
*/function UserInfo(props){var _props$userInfo=props.userInfo,image_url=_props$userInfo.image_url,name=_props$userInfo.name;return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement('div',{className:'avator_nicker'},__WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement('img',{style:{display:image_url?'inline-block':'none'},alt:'\u7528\u6237\u5934\u50CF',className:'student_img',src:Object(__WEBPACK_IMPORTED_MODULE_2_educoder__["M" /* getImageUrl */])('images/'+image_url||'images/educoder/headNavLogo.png?1526520218')}),__WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement('span',{className:'student_nicker'},name||''));}/* harmony default export */ __webpack_exports__["a"] = (UserInfo);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 2283:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
|
|
// load the styles
|
|
var content = __webpack_require__(2284);
|
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
// Prepare cssTransformation
|
|
var transform;
|
|
|
|
var options = {"hmr":true}
|
|
options.transform = transform
|
|
// add the styles to the DOM
|
|
var update = __webpack_require__(291)(content, options);
|
|
if(content.locals) module.exports = content.locals;
|
|
// Hot Module Replacement
|
|
if(false) {
|
|
// When the styles change, update the <style> tags
|
|
if(!content.locals) {
|
|
module.hot.accept("!!../../../../../node_modules/_css-loader@0.28.7@css-loader/index.js??ref--1-oneOf-3-1!../../../../../node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js!./index.scss", function() {
|
|
var newContent = require("!!../../../../../node_modules/_css-loader@0.28.7@css-loader/index.js??ref--1-oneOf-3-1!../../../../../node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js!./index.scss");
|
|
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
|
update(newContent);
|
|
});
|
|
}
|
|
// When the module is disposed, remove the <style> tags
|
|
module.hot.dispose(function() { update(); });
|
|
}
|
|
|
|
/***/ }),
|
|
|
|
/***/ 2284:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
exports = module.exports = __webpack_require__(290)(true);
|
|
// imports
|
|
|
|
|
|
// module
|
|
exports.push([module.i, ".avator_nicker{position:absolute;color:#fff;line-height:65px}.avator_nicker .student_img,.avator_nicker .student_nicker{display:inline-block;vertical-align:top}.avator_nicker .student_nicker{margin-left:10px}.avator_nicker .student_img{width:30px;height:30px;border-radius:50%;margin-top:15px}", "", {"version":3,"sources":["/Users/alec/educoder/public/react/src/modules/developer/components/userInfo/index.scss"],"names":[],"mappings":"AAAA,eAAe,kBAAkB,WAAW,gBAAgB,CAAC,2DAA2D,qBAAqB,kBAAkB,CAAC,+BAA+B,gBAAgB,CAAC,4BAA4B,WAAW,YAAY,kBAAkB,eAAe,CAAC","file":"index.scss","sourcesContent":[".avator_nicker{position:absolute;color:#fff;line-height:65px}.avator_nicker .student_img,.avator_nicker .student_nicker{display:inline-block;vertical-align:top}.avator_nicker .student_nicker{margin-left:10px}.avator_nicker .student_img{width:30px;height:30px;border-radius:50%;margin-top:15px}\n"],"sourceRoot":""}]);
|
|
|
|
// exports
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 2849:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* unused harmony export Pane */
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_style_proptype__ = __webpack_require__(2850);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_style_proptype___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_style_proptype__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_lifecycles_compat__ = __webpack_require__(7);
|
|
|
|
|
|
|
|
|
|
|
|
function _classCallCheck(instance, Constructor) {
|
|
if (!(instance instanceof Constructor)) {
|
|
throw new TypeError("Cannot call a class as a function");
|
|
}
|
|
}
|
|
|
|
function _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);
|
|
}
|
|
}
|
|
|
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
return Constructor;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
function _objectSpread(target) {
|
|
for (var i = 1; i < arguments.length; i++) {
|
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
var ownKeys = Object.keys(source);
|
|
|
|
if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
|
|
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
}));
|
|
}
|
|
|
|
ownKeys.forEach(function (key) {
|
|
_defineProperty(target, key, source[key]);
|
|
});
|
|
}
|
|
|
|
return target;
|
|
}
|
|
|
|
function _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);
|
|
}
|
|
|
|
function _getPrototypeOf(o) {
|
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
};
|
|
return _getPrototypeOf(o);
|
|
}
|
|
|
|
function _setPrototypeOf(o, p) {
|
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
o.__proto__ = p;
|
|
return o;
|
|
};
|
|
|
|
return _setPrototypeOf(o, p);
|
|
}
|
|
|
|
function _assertThisInitialized(self) {
|
|
if (self === void 0) {
|
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
}
|
|
|
|
return self;
|
|
}
|
|
|
|
function _possibleConstructorReturn(self, call) {
|
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
return call;
|
|
}
|
|
|
|
return _assertThisInitialized(self);
|
|
}
|
|
|
|
var Pane =
|
|
/*#__PURE__*/
|
|
function (_React$PureComponent) {
|
|
_inherits(Pane, _React$PureComponent);
|
|
|
|
function Pane() {
|
|
_classCallCheck(this, Pane);
|
|
|
|
return _possibleConstructorReturn(this, _getPrototypeOf(Pane).apply(this, arguments));
|
|
}
|
|
|
|
_createClass(Pane, [{
|
|
key: "render",
|
|
value: function render() {
|
|
var _this$props = this.props,
|
|
children = _this$props.children,
|
|
className = _this$props.className,
|
|
split = _this$props.split,
|
|
styleProps = _this$props.style,
|
|
size = _this$props.size,
|
|
eleRef = _this$props.eleRef;
|
|
var classes = ['Pane', split, className];
|
|
var style = {
|
|
flex: 1,
|
|
position: 'relative',
|
|
outline: 'none'
|
|
};
|
|
|
|
if (size !== undefined) {
|
|
if (split === 'vertical') {
|
|
style.width = size;
|
|
} else {
|
|
style.height = size;
|
|
style.display = 'flex';
|
|
}
|
|
|
|
style.flex = 'none';
|
|
}
|
|
|
|
style = Object.assign({}, style, styleProps || {});
|
|
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", {
|
|
ref: eleRef,
|
|
className: classes.join(' '),
|
|
style: style
|
|
}, children);
|
|
}
|
|
}]);
|
|
|
|
return Pane;
|
|
}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.PureComponent);
|
|
|
|
Pane.propTypes = {
|
|
className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string.isRequired,
|
|
children: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node.isRequired,
|
|
size: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),
|
|
split: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf(['vertical', 'horizontal']),
|
|
style: __WEBPACK_IMPORTED_MODULE_2_react_style_proptype___default.a,
|
|
eleRef: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func
|
|
};
|
|
Pane.defaultProps = {};
|
|
|
|
var RESIZER_DEFAULT_CLASSNAME = 'Resizer';
|
|
|
|
var Resizer =
|
|
/*#__PURE__*/
|
|
function (_React$Component) {
|
|
_inherits(Resizer, _React$Component);
|
|
|
|
function Resizer() {
|
|
_classCallCheck(this, Resizer);
|
|
|
|
return _possibleConstructorReturn(this, _getPrototypeOf(Resizer).apply(this, arguments));
|
|
}
|
|
|
|
_createClass(Resizer, [{
|
|
key: "render",
|
|
value: function render() {
|
|
var _this$props = this.props,
|
|
className = _this$props.className,
|
|
_onClick = _this$props.onClick,
|
|
_onDoubleClick = _this$props.onDoubleClick,
|
|
_onMouseDown = _this$props.onMouseDown,
|
|
_onTouchEnd = _this$props.onTouchEnd,
|
|
_onTouchStart = _this$props.onTouchStart,
|
|
resizerClassName = _this$props.resizerClassName,
|
|
split = _this$props.split,
|
|
style = _this$props.style;
|
|
var classes = [resizerClassName, split, className];
|
|
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("span", {
|
|
role: "presentation",
|
|
className: classes.join(' '),
|
|
style: style,
|
|
onMouseDown: function onMouseDown(event) {
|
|
return _onMouseDown(event);
|
|
},
|
|
onTouchStart: function onTouchStart(event) {
|
|
event.preventDefault();
|
|
|
|
_onTouchStart(event);
|
|
},
|
|
onTouchEnd: function onTouchEnd(event) {
|
|
event.preventDefault();
|
|
|
|
_onTouchEnd(event);
|
|
},
|
|
onClick: function onClick(event) {
|
|
if (_onClick) {
|
|
event.preventDefault();
|
|
|
|
_onClick(event);
|
|
}
|
|
},
|
|
onDoubleClick: function onDoubleClick(event) {
|
|
if (_onDoubleClick) {
|
|
event.preventDefault();
|
|
|
|
_onDoubleClick(event);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}]);
|
|
|
|
return Resizer;
|
|
}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);
|
|
|
|
Resizer.propTypes = {
|
|
className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string.isRequired,
|
|
onClick: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,
|
|
onDoubleClick: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,
|
|
onMouseDown: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired,
|
|
onTouchStart: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired,
|
|
onTouchEnd: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired,
|
|
split: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf(['vertical', 'horizontal']),
|
|
style: __WEBPACK_IMPORTED_MODULE_2_react_style_proptype___default.a,
|
|
resizerClassName: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string.isRequired
|
|
};
|
|
Resizer.defaultProps = {
|
|
resizerClassName: RESIZER_DEFAULT_CLASSNAME
|
|
};
|
|
|
|
function unFocus(document, window) {
|
|
if (document.selection) {
|
|
document.selection.empty();
|
|
} else {
|
|
try {
|
|
window.getSelection().removeAllRanges(); // eslint-disable-next-line no-empty
|
|
} catch (e) {}
|
|
}
|
|
}
|
|
|
|
function getDefaultSize(defaultSize, minSize, maxSize, draggedSize) {
|
|
if (typeof draggedSize === 'number') {
|
|
var min = typeof minSize === 'number' ? minSize : 0;
|
|
var max = typeof maxSize === 'number' && maxSize >= 0 ? maxSize : Infinity;
|
|
return Math.max(min, Math.min(max, draggedSize));
|
|
}
|
|
|
|
if (defaultSize !== undefined) {
|
|
return defaultSize;
|
|
}
|
|
|
|
return minSize;
|
|
}
|
|
|
|
function removeNullChildren(children) {
|
|
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.toArray(children).filter(function (c) {
|
|
return c;
|
|
});
|
|
}
|
|
|
|
var SplitPane =
|
|
/*#__PURE__*/
|
|
function (_React$Component) {
|
|
_inherits(SplitPane, _React$Component);
|
|
|
|
function SplitPane(props) {
|
|
var _this;
|
|
|
|
_classCallCheck(this, SplitPane);
|
|
|
|
_this = _possibleConstructorReturn(this, _getPrototypeOf(SplitPane).call(this, props));
|
|
_this.onMouseDown = _this.onMouseDown.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
_this.onTouchStart = _this.onTouchStart.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
_this.onMouseMove = _this.onMouseMove.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
_this.onTouchMove = _this.onTouchMove.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
_this.onMouseUp = _this.onMouseUp.bind(_assertThisInitialized(_assertThisInitialized(_this))); // order of setting panel sizes.
|
|
// 1. size
|
|
// 2. getDefaultSize(defaultSize, minsize, maxSize)
|
|
|
|
var size = props.size,
|
|
defaultSize = props.defaultSize,
|
|
minSize = props.minSize,
|
|
maxSize = props.maxSize,
|
|
primary = props.primary;
|
|
var initialSize = size !== undefined ? size : getDefaultSize(defaultSize, minSize, maxSize, null);
|
|
_this.state = {
|
|
active: false,
|
|
resized: false,
|
|
pane1Size: primary === 'first' ? initialSize : undefined,
|
|
pane2Size: primary === 'second' ? initialSize : undefined,
|
|
// these are props that are needed in static functions. ie: gDSFP
|
|
instanceProps: {
|
|
size: size
|
|
}
|
|
};
|
|
return _this;
|
|
}
|
|
|
|
_createClass(SplitPane, [{
|
|
key: "componentDidMount",
|
|
value: function componentDidMount() {
|
|
document.addEventListener('mouseup', this.onMouseUp);
|
|
document.addEventListener('mousemove', this.onMouseMove);
|
|
document.addEventListener('touchmove', this.onTouchMove);
|
|
this.setState(SplitPane.getSizeUpdate(this.props, this.state));
|
|
}
|
|
}, {
|
|
key: "componentWillUnmount",
|
|
value: function componentWillUnmount() {
|
|
document.removeEventListener('mouseup', this.onMouseUp);
|
|
document.removeEventListener('mousemove', this.onMouseMove);
|
|
document.removeEventListener('touchmove', this.onTouchMove);
|
|
}
|
|
}, {
|
|
key: "onMouseDown",
|
|
value: function onMouseDown(event) {
|
|
var eventWithTouches = Object.assign({}, event, {
|
|
touches: [{
|
|
clientX: event.clientX,
|
|
clientY: event.clientY
|
|
}]
|
|
});
|
|
this.onTouchStart(eventWithTouches);
|
|
}
|
|
}, {
|
|
key: "onTouchStart",
|
|
value: function onTouchStart(event) {
|
|
var _this$props = this.props,
|
|
allowResize = _this$props.allowResize,
|
|
onDragStarted = _this$props.onDragStarted,
|
|
split = _this$props.split;
|
|
|
|
if (allowResize) {
|
|
unFocus(document, window);
|
|
var position = split === 'vertical' ? event.touches[0].clientX : event.touches[0].clientY;
|
|
|
|
if (typeof onDragStarted === 'function') {
|
|
onDragStarted();
|
|
}
|
|
|
|
this.setState({
|
|
active: true,
|
|
position: position
|
|
});
|
|
}
|
|
}
|
|
}, {
|
|
key: "onMouseMove",
|
|
value: function onMouseMove(event) {
|
|
var eventWithTouches = Object.assign({}, event, {
|
|
touches: [{
|
|
clientX: event.clientX,
|
|
clientY: event.clientY
|
|
}]
|
|
});
|
|
this.onTouchMove(eventWithTouches);
|
|
}
|
|
}, {
|
|
key: "onTouchMove",
|
|
value: function onTouchMove(event) {
|
|
var _this$props2 = this.props,
|
|
allowResize = _this$props2.allowResize,
|
|
maxSize = _this$props2.maxSize,
|
|
minSize = _this$props2.minSize,
|
|
onChange = _this$props2.onChange,
|
|
split = _this$props2.split,
|
|
step = _this$props2.step;
|
|
var _this$state = this.state,
|
|
active = _this$state.active,
|
|
position = _this$state.position;
|
|
|
|
if (allowResize && active) {
|
|
unFocus(document, window);
|
|
var isPrimaryFirst = this.props.primary === 'first';
|
|
var ref = isPrimaryFirst ? this.pane1 : this.pane2;
|
|
var ref2 = isPrimaryFirst ? this.pane2 : this.pane1;
|
|
|
|
if (ref) {
|
|
var node = ref;
|
|
var node2 = ref2;
|
|
|
|
if (node.getBoundingClientRect) {
|
|
var width = node.getBoundingClientRect().width;
|
|
var height = node.getBoundingClientRect().height;
|
|
var current = split === 'vertical' ? event.touches[0].clientX : event.touches[0].clientY;
|
|
var size = split === 'vertical' ? width : height;
|
|
var positionDelta = position - current;
|
|
|
|
if (step) {
|
|
if (Math.abs(positionDelta) < step) {
|
|
return;
|
|
} // Integer division
|
|
// eslint-disable-next-line no-bitwise
|
|
|
|
|
|
positionDelta = ~~(positionDelta / step) * step;
|
|
}
|
|
|
|
var sizeDelta = isPrimaryFirst ? positionDelta : -positionDelta;
|
|
var pane1Order = parseInt(window.getComputedStyle(node).order);
|
|
var pane2Order = parseInt(window.getComputedStyle(node2).order);
|
|
|
|
if (pane1Order > pane2Order) {
|
|
sizeDelta = -sizeDelta;
|
|
}
|
|
|
|
var newMaxSize = maxSize;
|
|
|
|
if (maxSize !== undefined && maxSize <= 0) {
|
|
var splitPane = this.splitPane;
|
|
|
|
if (split === 'vertical') {
|
|
newMaxSize = splitPane.getBoundingClientRect().width + maxSize;
|
|
} else {
|
|
newMaxSize = splitPane.getBoundingClientRect().height + maxSize;
|
|
}
|
|
}
|
|
|
|
var newSize = size - sizeDelta;
|
|
var newPosition = position - positionDelta;
|
|
|
|
if (newSize < minSize) {
|
|
newSize = minSize;
|
|
} else if (maxSize !== undefined && newSize > newMaxSize) {
|
|
newSize = newMaxSize;
|
|
} else {
|
|
this.setState({
|
|
position: newPosition,
|
|
resized: true
|
|
});
|
|
}
|
|
|
|
if (onChange) onChange(newSize);
|
|
this.setState(_defineProperty({
|
|
draggedSize: newSize
|
|
}, isPrimaryFirst ? 'pane1Size' : 'pane2Size', newSize));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
key: "onMouseUp",
|
|
value: function onMouseUp() {
|
|
var _this$props3 = this.props,
|
|
allowResize = _this$props3.allowResize,
|
|
onDragFinished = _this$props3.onDragFinished;
|
|
var _this$state2 = this.state,
|
|
active = _this$state2.active,
|
|
draggedSize = _this$state2.draggedSize;
|
|
|
|
if (allowResize && active) {
|
|
if (typeof onDragFinished === 'function') {
|
|
onDragFinished(draggedSize);
|
|
}
|
|
|
|
this.setState({
|
|
active: false
|
|
});
|
|
}
|
|
} // we have to check values since gDSFP is called on every render and more in StrictMode
|
|
|
|
}, {
|
|
key: "render",
|
|
value: function render() {
|
|
var _this2 = this;
|
|
|
|
var _this$props4 = this.props,
|
|
allowResize = _this$props4.allowResize,
|
|
children = _this$props4.children,
|
|
className = _this$props4.className,
|
|
onResizerClick = _this$props4.onResizerClick,
|
|
onResizerDoubleClick = _this$props4.onResizerDoubleClick,
|
|
paneClassName = _this$props4.paneClassName,
|
|
pane1ClassName = _this$props4.pane1ClassName,
|
|
pane2ClassName = _this$props4.pane2ClassName,
|
|
paneStyle = _this$props4.paneStyle,
|
|
pane1StyleProps = _this$props4.pane1Style,
|
|
pane2StyleProps = _this$props4.pane2Style,
|
|
resizerClassName = _this$props4.resizerClassName,
|
|
resizerStyle = _this$props4.resizerStyle,
|
|
split = _this$props4.split,
|
|
styleProps = _this$props4.style;
|
|
var _this$state3 = this.state,
|
|
pane1Size = _this$state3.pane1Size,
|
|
pane2Size = _this$state3.pane2Size;
|
|
var disabledClass = allowResize ? '' : 'disabled';
|
|
var resizerClassNamesIncludingDefault = resizerClassName ? "".concat(resizerClassName, " ").concat(RESIZER_DEFAULT_CLASSNAME) : resizerClassName;
|
|
var notNullChildren = removeNullChildren(children);
|
|
|
|
var style = _objectSpread({
|
|
display: 'flex',
|
|
flex: 1,
|
|
height: '100%',
|
|
position: 'absolute',
|
|
outline: 'none',
|
|
overflow: 'hidden',
|
|
MozUserSelect: 'text',
|
|
WebkitUserSelect: 'text',
|
|
msUserSelect: 'text',
|
|
userSelect: 'text'
|
|
}, styleProps);
|
|
|
|
if (split === 'vertical') {
|
|
Object.assign(style, {
|
|
flexDirection: 'row',
|
|
left: 0,
|
|
right: 0
|
|
});
|
|
} else {
|
|
Object.assign(style, {
|
|
bottom: 0,
|
|
flexDirection: 'column',
|
|
minHeight: '100%',
|
|
top: 0,
|
|
width: '100%'
|
|
});
|
|
}
|
|
|
|
var classes = ['SplitPane', className, split, disabledClass];
|
|
|
|
var pane1Style = _objectSpread({}, paneStyle, pane1StyleProps);
|
|
|
|
var pane2Style = _objectSpread({}, paneStyle, pane2StyleProps);
|
|
|
|
var pane1Classes = ['Pane1', paneClassName, pane1ClassName].join(' ');
|
|
var pane2Classes = ['Pane2', paneClassName, pane2ClassName].join(' ');
|
|
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", {
|
|
className: classes.join(' '),
|
|
ref: function ref(node) {
|
|
_this2.splitPane = node;
|
|
},
|
|
style: style
|
|
}, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Pane, {
|
|
className: pane1Classes,
|
|
key: "pane1",
|
|
eleRef: function eleRef(node) {
|
|
_this2.pane1 = node;
|
|
},
|
|
size: pane1Size,
|
|
split: split,
|
|
style: pane1Style
|
|
}, notNullChildren[0]), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Resizer, {
|
|
className: disabledClass,
|
|
onClick: onResizerClick,
|
|
onDoubleClick: onResizerDoubleClick,
|
|
onMouseDown: this.onMouseDown,
|
|
onTouchStart: this.onTouchStart,
|
|
onTouchEnd: this.onMouseUp,
|
|
key: "resizer",
|
|
resizerClassName: resizerClassNamesIncludingDefault,
|
|
split: split,
|
|
style: resizerStyle || {}
|
|
}), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Pane, {
|
|
className: pane2Classes,
|
|
key: "pane2",
|
|
eleRef: function eleRef(node) {
|
|
_this2.pane2 = node;
|
|
},
|
|
size: pane2Size,
|
|
split: split,
|
|
style: pane2Style
|
|
}, notNullChildren[1]));
|
|
}
|
|
}], [{
|
|
key: "getDerivedStateFromProps",
|
|
value: function getDerivedStateFromProps(nextProps, prevState) {
|
|
return SplitPane.getSizeUpdate(nextProps, prevState);
|
|
}
|
|
}, {
|
|
key: "getSizeUpdate",
|
|
value: function getSizeUpdate(props, state) {
|
|
var newState = {};
|
|
var instanceProps = state.instanceProps;
|
|
|
|
if (instanceProps.size === props.size && props.size !== undefined) {
|
|
return {};
|
|
}
|
|
|
|
var newSize = props.size !== undefined ? props.size : getDefaultSize(props.defaultSize, props.minSize, props.maxSize, state.draggedSize);
|
|
|
|
if (props.size !== undefined) {
|
|
newState.draggedSize = newSize;
|
|
}
|
|
|
|
var isPanel1Primary = props.primary === 'first';
|
|
newState[isPanel1Primary ? 'pane1Size' : 'pane2Size'] = newSize;
|
|
newState[isPanel1Primary ? 'pane2Size' : 'pane1Size'] = undefined;
|
|
newState.instanceProps = {
|
|
size: props.size
|
|
};
|
|
return newState;
|
|
}
|
|
}]);
|
|
|
|
return SplitPane;
|
|
}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);
|
|
|
|
SplitPane.propTypes = {
|
|
allowResize: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,
|
|
children: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node).isRequired,
|
|
className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,
|
|
primary: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf(['first', 'second']),
|
|
minSize: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),
|
|
maxSize: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),
|
|
// eslint-disable-next-line react/no-unused-prop-types
|
|
defaultSize: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),
|
|
size: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),
|
|
split: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf(['vertical', 'horizontal']),
|
|
onDragStarted: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,
|
|
onDragFinished: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,
|
|
onChange: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,
|
|
onResizerClick: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,
|
|
onResizerDoubleClick: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,
|
|
style: __WEBPACK_IMPORTED_MODULE_2_react_style_proptype___default.a,
|
|
resizerStyle: __WEBPACK_IMPORTED_MODULE_2_react_style_proptype___default.a,
|
|
paneClassName: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,
|
|
pane1ClassName: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,
|
|
pane2ClassName: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,
|
|
paneStyle: __WEBPACK_IMPORTED_MODULE_2_react_style_proptype___default.a,
|
|
pane1Style: __WEBPACK_IMPORTED_MODULE_2_react_style_proptype___default.a,
|
|
pane2Style: __WEBPACK_IMPORTED_MODULE_2_react_style_proptype___default.a,
|
|
resizerClassName: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,
|
|
step: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number
|
|
};
|
|
SplitPane.defaultProps = {
|
|
allowResize: true,
|
|
minSize: 50,
|
|
primary: 'first',
|
|
split: 'vertical',
|
|
paneClassName: '',
|
|
pane1ClassName: '',
|
|
pane2ClassName: ''
|
|
};
|
|
Object(__WEBPACK_IMPORTED_MODULE_3_react_lifecycles_compat__["polyfill"])(SplitPane);
|
|
|
|
/* harmony default export */ __webpack_exports__["a"] = (SplitPane);
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 2850:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var properties = __webpack_require__(2851);
|
|
var PropTypes = __webpack_require__(1);
|
|
|
|
module.exports = function(props, propName, componentName) {
|
|
var styles = props[propName];
|
|
if (!styles) {
|
|
return;
|
|
}
|
|
|
|
var failures = [];
|
|
Object.keys(styles).forEach(function(styleKey){
|
|
if (properties.indexOf(styleKey) === -1) {
|
|
failures.push(styleKey);
|
|
}
|
|
});
|
|
if (failures.length) {
|
|
throw new Error('Prop ' + propName + ' passed to ' + componentName + '. Has invalid keys ' + failures.join(', '));
|
|
}
|
|
};
|
|
|
|
module.exports.isRequired = function(props, propName, componentName) {
|
|
if (!props[propName]) {
|
|
throw new Error('Prop ' + propName + ' passed to ' + componentName + ' is required');
|
|
}
|
|
return module.exports(props, propName, componentName);
|
|
};
|
|
|
|
module.exports.supportingArrays = PropTypes.oneOfType([
|
|
PropTypes.arrayOf(module.exports),
|
|
module.exports
|
|
]);
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 2851:
|
|
/***/ (function(module, exports) {
|
|
|
|
// GENERATED DO NOT EDIT
|
|
module.exports = [
|
|
"alignContent",
|
|
"MozAlignContent",
|
|
"WebkitAlignContent",
|
|
"MSAlignContent",
|
|
"OAlignContent",
|
|
"alignItems",
|
|
"MozAlignItems",
|
|
"WebkitAlignItems",
|
|
"MSAlignItems",
|
|
"OAlignItems",
|
|
"alignSelf",
|
|
"MozAlignSelf",
|
|
"WebkitAlignSelf",
|
|
"MSAlignSelf",
|
|
"OAlignSelf",
|
|
"all",
|
|
"MozAll",
|
|
"WebkitAll",
|
|
"MSAll",
|
|
"OAll",
|
|
"animation",
|
|
"MozAnimation",
|
|
"WebkitAnimation",
|
|
"MSAnimation",
|
|
"OAnimation",
|
|
"animationDelay",
|
|
"MozAnimationDelay",
|
|
"WebkitAnimationDelay",
|
|
"MSAnimationDelay",
|
|
"OAnimationDelay",
|
|
"animationDirection",
|
|
"MozAnimationDirection",
|
|
"WebkitAnimationDirection",
|
|
"MSAnimationDirection",
|
|
"OAnimationDirection",
|
|
"animationDuration",
|
|
"MozAnimationDuration",
|
|
"WebkitAnimationDuration",
|
|
"MSAnimationDuration",
|
|
"OAnimationDuration",
|
|
"animationFillMode",
|
|
"MozAnimationFillMode",
|
|
"WebkitAnimationFillMode",
|
|
"MSAnimationFillMode",
|
|
"OAnimationFillMode",
|
|
"animationIterationCount",
|
|
"MozAnimationIterationCount",
|
|
"WebkitAnimationIterationCount",
|
|
"MSAnimationIterationCount",
|
|
"OAnimationIterationCount",
|
|
"animationName",
|
|
"MozAnimationName",
|
|
"WebkitAnimationName",
|
|
"MSAnimationName",
|
|
"OAnimationName",
|
|
"animationPlayState",
|
|
"MozAnimationPlayState",
|
|
"WebkitAnimationPlayState",
|
|
"MSAnimationPlayState",
|
|
"OAnimationPlayState",
|
|
"animationTimingFunction",
|
|
"MozAnimationTimingFunction",
|
|
"WebkitAnimationTimingFunction",
|
|
"MSAnimationTimingFunction",
|
|
"OAnimationTimingFunction",
|
|
"backfaceVisibility",
|
|
"MozBackfaceVisibility",
|
|
"WebkitBackfaceVisibility",
|
|
"MSBackfaceVisibility",
|
|
"OBackfaceVisibility",
|
|
"background",
|
|
"MozBackground",
|
|
"WebkitBackground",
|
|
"MSBackground",
|
|
"OBackground",
|
|
"backgroundAttachment",
|
|
"MozBackgroundAttachment",
|
|
"WebkitBackgroundAttachment",
|
|
"MSBackgroundAttachment",
|
|
"OBackgroundAttachment",
|
|
"backgroundBlendMode",
|
|
"MozBackgroundBlendMode",
|
|
"WebkitBackgroundBlendMode",
|
|
"MSBackgroundBlendMode",
|
|
"OBackgroundBlendMode",
|
|
"backgroundClip",
|
|
"MozBackgroundClip",
|
|
"WebkitBackgroundClip",
|
|
"MSBackgroundClip",
|
|
"OBackgroundClip",
|
|
"backgroundColor",
|
|
"MozBackgroundColor",
|
|
"WebkitBackgroundColor",
|
|
"MSBackgroundColor",
|
|
"OBackgroundColor",
|
|
"backgroundImage",
|
|
"MozBackgroundImage",
|
|
"WebkitBackgroundImage",
|
|
"MSBackgroundImage",
|
|
"OBackgroundImage",
|
|
"backgroundOrigin",
|
|
"MozBackgroundOrigin",
|
|
"WebkitBackgroundOrigin",
|
|
"MSBackgroundOrigin",
|
|
"OBackgroundOrigin",
|
|
"backgroundPosition",
|
|
"MozBackgroundPosition",
|
|
"WebkitBackgroundPosition",
|
|
"MSBackgroundPosition",
|
|
"OBackgroundPosition",
|
|
"backgroundRepeat",
|
|
"MozBackgroundRepeat",
|
|
"WebkitBackgroundRepeat",
|
|
"MSBackgroundRepeat",
|
|
"OBackgroundRepeat",
|
|
"backgroundSize",
|
|
"MozBackgroundSize",
|
|
"WebkitBackgroundSize",
|
|
"MSBackgroundSize",
|
|
"OBackgroundSize",
|
|
"blockSize",
|
|
"MozBlockSize",
|
|
"WebkitBlockSize",
|
|
"MSBlockSize",
|
|
"OBlockSize",
|
|
"border",
|
|
"MozBorder",
|
|
"WebkitBorder",
|
|
"MSBorder",
|
|
"OBorder",
|
|
"borderBlockEnd",
|
|
"MozBorderBlockEnd",
|
|
"WebkitBorderBlockEnd",
|
|
"MSBorderBlockEnd",
|
|
"OBorderBlockEnd",
|
|
"borderBlockEndColor",
|
|
"MozBorderBlockEndColor",
|
|
"WebkitBorderBlockEndColor",
|
|
"MSBorderBlockEndColor",
|
|
"OBorderBlockEndColor",
|
|
"borderBlockEndStyle",
|
|
"MozBorderBlockEndStyle",
|
|
"WebkitBorderBlockEndStyle",
|
|
"MSBorderBlockEndStyle",
|
|
"OBorderBlockEndStyle",
|
|
"borderBlockEndWidth",
|
|
"MozBorderBlockEndWidth",
|
|
"WebkitBorderBlockEndWidth",
|
|
"MSBorderBlockEndWidth",
|
|
"OBorderBlockEndWidth",
|
|
"borderBlockStart",
|
|
"MozBorderBlockStart",
|
|
"WebkitBorderBlockStart",
|
|
"MSBorderBlockStart",
|
|
"OBorderBlockStart",
|
|
"borderBlockStartColor",
|
|
"MozBorderBlockStartColor",
|
|
"WebkitBorderBlockStartColor",
|
|
"MSBorderBlockStartColor",
|
|
"OBorderBlockStartColor",
|
|
"borderBlockStartStyle",
|
|
"MozBorderBlockStartStyle",
|
|
"WebkitBorderBlockStartStyle",
|
|
"MSBorderBlockStartStyle",
|
|
"OBorderBlockStartStyle",
|
|
"borderBlockStartWidth",
|
|
"MozBorderBlockStartWidth",
|
|
"WebkitBorderBlockStartWidth",
|
|
"MSBorderBlockStartWidth",
|
|
"OBorderBlockStartWidth",
|
|
"borderBottom",
|
|
"MozBorderBottom",
|
|
"WebkitBorderBottom",
|
|
"MSBorderBottom",
|
|
"OBorderBottom",
|
|
"borderBottomColor",
|
|
"MozBorderBottomColor",
|
|
"WebkitBorderBottomColor",
|
|
"MSBorderBottomColor",
|
|
"OBorderBottomColor",
|
|
"borderBottomLeftRadius",
|
|
"MozBorderBottomLeftRadius",
|
|
"WebkitBorderBottomLeftRadius",
|
|
"MSBorderBottomLeftRadius",
|
|
"OBorderBottomLeftRadius",
|
|
"borderBottomRightRadius",
|
|
"MozBorderBottomRightRadius",
|
|
"WebkitBorderBottomRightRadius",
|
|
"MSBorderBottomRightRadius",
|
|
"OBorderBottomRightRadius",
|
|
"borderBottomStyle",
|
|
"MozBorderBottomStyle",
|
|
"WebkitBorderBottomStyle",
|
|
"MSBorderBottomStyle",
|
|
"OBorderBottomStyle",
|
|
"borderBottomWidth",
|
|
"MozBorderBottomWidth",
|
|
"WebkitBorderBottomWidth",
|
|
"MSBorderBottomWidth",
|
|
"OBorderBottomWidth",
|
|
"borderCollapse",
|
|
"MozBorderCollapse",
|
|
"WebkitBorderCollapse",
|
|
"MSBorderCollapse",
|
|
"OBorderCollapse",
|
|
"borderColor",
|
|
"MozBorderColor",
|
|
"WebkitBorderColor",
|
|
"MSBorderColor",
|
|
"OBorderColor",
|
|
"borderImage",
|
|
"MozBorderImage",
|
|
"WebkitBorderImage",
|
|
"MSBorderImage",
|
|
"OBorderImage",
|
|
"borderImageOutset",
|
|
"MozBorderImageOutset",
|
|
"WebkitBorderImageOutset",
|
|
"MSBorderImageOutset",
|
|
"OBorderImageOutset",
|
|
"borderImageRepeat",
|
|
"MozBorderImageRepeat",
|
|
"WebkitBorderImageRepeat",
|
|
"MSBorderImageRepeat",
|
|
"OBorderImageRepeat",
|
|
"borderImageSlice",
|
|
"MozBorderImageSlice",
|
|
"WebkitBorderImageSlice",
|
|
"MSBorderImageSlice",
|
|
"OBorderImageSlice",
|
|
"borderImageSource",
|
|
"MozBorderImageSource",
|
|
"WebkitBorderImageSource",
|
|
"MSBorderImageSource",
|
|
"OBorderImageSource",
|
|
"borderImageWidth",
|
|
"MozBorderImageWidth",
|
|
"WebkitBorderImageWidth",
|
|
"MSBorderImageWidth",
|
|
"OBorderImageWidth",
|
|
"borderInlineEnd",
|
|
"MozBorderInlineEnd",
|
|
"WebkitBorderInlineEnd",
|
|
"MSBorderInlineEnd",
|
|
"OBorderInlineEnd",
|
|
"borderInlineEndColor",
|
|
"MozBorderInlineEndColor",
|
|
"WebkitBorderInlineEndColor",
|
|
"MSBorderInlineEndColor",
|
|
"OBorderInlineEndColor",
|
|
"borderInlineEndStyle",
|
|
"MozBorderInlineEndStyle",
|
|
"WebkitBorderInlineEndStyle",
|
|
"MSBorderInlineEndStyle",
|
|
"OBorderInlineEndStyle",
|
|
"borderInlineEndWidth",
|
|
"MozBorderInlineEndWidth",
|
|
"WebkitBorderInlineEndWidth",
|
|
"MSBorderInlineEndWidth",
|
|
"OBorderInlineEndWidth",
|
|
"borderInlineStart",
|
|
"MozBorderInlineStart",
|
|
"WebkitBorderInlineStart",
|
|
"MSBorderInlineStart",
|
|
"OBorderInlineStart",
|
|
"borderInlineStartColor",
|
|
"MozBorderInlineStartColor",
|
|
"WebkitBorderInlineStartColor",
|
|
"MSBorderInlineStartColor",
|
|
"OBorderInlineStartColor",
|
|
"borderInlineStartStyle",
|
|
"MozBorderInlineStartStyle",
|
|
"WebkitBorderInlineStartStyle",
|
|
"MSBorderInlineStartStyle",
|
|
"OBorderInlineStartStyle",
|
|
"borderInlineStartWidth",
|
|
"MozBorderInlineStartWidth",
|
|
"WebkitBorderInlineStartWidth",
|
|
"MSBorderInlineStartWidth",
|
|
"OBorderInlineStartWidth",
|
|
"borderLeft",
|
|
"MozBorderLeft",
|
|
"WebkitBorderLeft",
|
|
"MSBorderLeft",
|
|
"OBorderLeft",
|
|
"borderLeftColor",
|
|
"MozBorderLeftColor",
|
|
"WebkitBorderLeftColor",
|
|
"MSBorderLeftColor",
|
|
"OBorderLeftColor",
|
|
"borderLeftStyle",
|
|
"MozBorderLeftStyle",
|
|
"WebkitBorderLeftStyle",
|
|
"MSBorderLeftStyle",
|
|
"OBorderLeftStyle",
|
|
"borderLeftWidth",
|
|
"MozBorderLeftWidth",
|
|
"WebkitBorderLeftWidth",
|
|
"MSBorderLeftWidth",
|
|
"OBorderLeftWidth",
|
|
"borderRadius",
|
|
"MozBorderRadius",
|
|
"WebkitBorderRadius",
|
|
"MSBorderRadius",
|
|
"OBorderRadius",
|
|
"borderRight",
|
|
"MozBorderRight",
|
|
"WebkitBorderRight",
|
|
"MSBorderRight",
|
|
"OBorderRight",
|
|
"borderRightColor",
|
|
"MozBorderRightColor",
|
|
"WebkitBorderRightColor",
|
|
"MSBorderRightColor",
|
|
"OBorderRightColor",
|
|
"borderRightStyle",
|
|
"MozBorderRightStyle",
|
|
"WebkitBorderRightStyle",
|
|
"MSBorderRightStyle",
|
|
"OBorderRightStyle",
|
|
"borderRightWidth",
|
|
"MozBorderRightWidth",
|
|
"WebkitBorderRightWidth",
|
|
"MSBorderRightWidth",
|
|
"OBorderRightWidth",
|
|
"borderSpacing",
|
|
"MozBorderSpacing",
|
|
"WebkitBorderSpacing",
|
|
"MSBorderSpacing",
|
|
"OBorderSpacing",
|
|
"borderStyle",
|
|
"MozBorderStyle",
|
|
"WebkitBorderStyle",
|
|
"MSBorderStyle",
|
|
"OBorderStyle",
|
|
"borderTop",
|
|
"MozBorderTop",
|
|
"WebkitBorderTop",
|
|
"MSBorderTop",
|
|
"OBorderTop",
|
|
"borderTopColor",
|
|
"MozBorderTopColor",
|
|
"WebkitBorderTopColor",
|
|
"MSBorderTopColor",
|
|
"OBorderTopColor",
|
|
"borderTopLeftRadius",
|
|
"MozBorderTopLeftRadius",
|
|
"WebkitBorderTopLeftRadius",
|
|
"MSBorderTopLeftRadius",
|
|
"OBorderTopLeftRadius",
|
|
"borderTopRightRadius",
|
|
"MozBorderTopRightRadius",
|
|
"WebkitBorderTopRightRadius",
|
|
"MSBorderTopRightRadius",
|
|
"OBorderTopRightRadius",
|
|
"borderTopStyle",
|
|
"MozBorderTopStyle",
|
|
"WebkitBorderTopStyle",
|
|
"MSBorderTopStyle",
|
|
"OBorderTopStyle",
|
|
"borderTopWidth",
|
|
"MozBorderTopWidth",
|
|
"WebkitBorderTopWidth",
|
|
"MSBorderTopWidth",
|
|
"OBorderTopWidth",
|
|
"borderWidth",
|
|
"MozBorderWidth",
|
|
"WebkitBorderWidth",
|
|
"MSBorderWidth",
|
|
"OBorderWidth",
|
|
"bottom",
|
|
"MozBottom",
|
|
"WebkitBottom",
|
|
"MSBottom",
|
|
"OBottom",
|
|
"boxDecorationBreak",
|
|
"MozBoxDecorationBreak",
|
|
"WebkitBoxDecorationBreak",
|
|
"MSBoxDecorationBreak",
|
|
"OBoxDecorationBreak",
|
|
"boxShadow",
|
|
"MozBoxShadow",
|
|
"WebkitBoxShadow",
|
|
"MSBoxShadow",
|
|
"OBoxShadow",
|
|
"boxSizing",
|
|
"MozBoxSizing",
|
|
"WebkitBoxSizing",
|
|
"MSBoxSizing",
|
|
"OBoxSizing",
|
|
"breakAfter",
|
|
"MozBreakAfter",
|
|
"WebkitBreakAfter",
|
|
"MSBreakAfter",
|
|
"OBreakAfter",
|
|
"breakBefore",
|
|
"MozBreakBefore",
|
|
"WebkitBreakBefore",
|
|
"MSBreakBefore",
|
|
"OBreakBefore",
|
|
"breakInside",
|
|
"MozBreakInside",
|
|
"WebkitBreakInside",
|
|
"MSBreakInside",
|
|
"OBreakInside",
|
|
"captionSide",
|
|
"MozCaptionSide",
|
|
"WebkitCaptionSide",
|
|
"MSCaptionSide",
|
|
"OCaptionSide",
|
|
"caretColor",
|
|
"MozCaretColor",
|
|
"WebkitCaretColor",
|
|
"MSCaretColor",
|
|
"OCaretColor",
|
|
"ch",
|
|
"MozCh",
|
|
"WebkitCh",
|
|
"MSCh",
|
|
"OCh",
|
|
"clear",
|
|
"MozClear",
|
|
"WebkitClear",
|
|
"MSClear",
|
|
"OClear",
|
|
"clip",
|
|
"MozClip",
|
|
"WebkitClip",
|
|
"MSClip",
|
|
"OClip",
|
|
"clipPath",
|
|
"MozClipPath",
|
|
"WebkitClipPath",
|
|
"MSClipPath",
|
|
"OClipPath",
|
|
"cm",
|
|
"MozCm",
|
|
"WebkitCm",
|
|
"MSCm",
|
|
"OCm",
|
|
"color",
|
|
"MozColor",
|
|
"WebkitColor",
|
|
"MSColor",
|
|
"OColor",
|
|
"columnCount",
|
|
"MozColumnCount",
|
|
"WebkitColumnCount",
|
|
"MSColumnCount",
|
|
"OColumnCount",
|
|
"columnFill",
|
|
"MozColumnFill",
|
|
"WebkitColumnFill",
|
|
"MSColumnFill",
|
|
"OColumnFill",
|
|
"columnGap",
|
|
"MozColumnGap",
|
|
"WebkitColumnGap",
|
|
"MSColumnGap",
|
|
"OColumnGap",
|
|
"columnRule",
|
|
"MozColumnRule",
|
|
"WebkitColumnRule",
|
|
"MSColumnRule",
|
|
"OColumnRule",
|
|
"columnRuleColor",
|
|
"MozColumnRuleColor",
|
|
"WebkitColumnRuleColor",
|
|
"MSColumnRuleColor",
|
|
"OColumnRuleColor",
|
|
"columnRuleStyle",
|
|
"MozColumnRuleStyle",
|
|
"WebkitColumnRuleStyle",
|
|
"MSColumnRuleStyle",
|
|
"OColumnRuleStyle",
|
|
"columnRuleWidth",
|
|
"MozColumnRuleWidth",
|
|
"WebkitColumnRuleWidth",
|
|
"MSColumnRuleWidth",
|
|
"OColumnRuleWidth",
|
|
"columnSpan",
|
|
"MozColumnSpan",
|
|
"WebkitColumnSpan",
|
|
"MSColumnSpan",
|
|
"OColumnSpan",
|
|
"columnWidth",
|
|
"MozColumnWidth",
|
|
"WebkitColumnWidth",
|
|
"MSColumnWidth",
|
|
"OColumnWidth",
|
|
"columns",
|
|
"MozColumns",
|
|
"WebkitColumns",
|
|
"MSColumns",
|
|
"OColumns",
|
|
"content",
|
|
"MozContent",
|
|
"WebkitContent",
|
|
"MSContent",
|
|
"OContent",
|
|
"counterIncrement",
|
|
"MozCounterIncrement",
|
|
"WebkitCounterIncrement",
|
|
"MSCounterIncrement",
|
|
"OCounterIncrement",
|
|
"counterReset",
|
|
"MozCounterReset",
|
|
"WebkitCounterReset",
|
|
"MSCounterReset",
|
|
"OCounterReset",
|
|
"cursor",
|
|
"MozCursor",
|
|
"WebkitCursor",
|
|
"MSCursor",
|
|
"OCursor",
|
|
"deg",
|
|
"MozDeg",
|
|
"WebkitDeg",
|
|
"MSDeg",
|
|
"ODeg",
|
|
"direction",
|
|
"MozDirection",
|
|
"WebkitDirection",
|
|
"MSDirection",
|
|
"ODirection",
|
|
"display",
|
|
"MozDisplay",
|
|
"WebkitDisplay",
|
|
"MSDisplay",
|
|
"ODisplay",
|
|
"dpcm",
|
|
"MozDpcm",
|
|
"WebkitDpcm",
|
|
"MSDpcm",
|
|
"ODpcm",
|
|
"dpi",
|
|
"MozDpi",
|
|
"WebkitDpi",
|
|
"MSDpi",
|
|
"ODpi",
|
|
"dppx",
|
|
"MozDppx",
|
|
"WebkitDppx",
|
|
"MSDppx",
|
|
"ODppx",
|
|
"em",
|
|
"MozEm",
|
|
"WebkitEm",
|
|
"MSEm",
|
|
"OEm",
|
|
"emptyCells",
|
|
"MozEmptyCells",
|
|
"WebkitEmptyCells",
|
|
"MSEmptyCells",
|
|
"OEmptyCells",
|
|
"ex",
|
|
"MozEx",
|
|
"WebkitEx",
|
|
"MSEx",
|
|
"OEx",
|
|
"filter",
|
|
"MozFilter",
|
|
"WebkitFilter",
|
|
"MSFilter",
|
|
"OFilter",
|
|
"flexBasis",
|
|
"MozFlexBasis",
|
|
"WebkitFlexBasis",
|
|
"MSFlexBasis",
|
|
"OFlexBasis",
|
|
"flexDirection",
|
|
"MozFlexDirection",
|
|
"WebkitFlexDirection",
|
|
"MSFlexDirection",
|
|
"OFlexDirection",
|
|
"flexFlow",
|
|
"MozFlexFlow",
|
|
"WebkitFlexFlow",
|
|
"MSFlexFlow",
|
|
"OFlexFlow",
|
|
"flexGrow",
|
|
"MozFlexGrow",
|
|
"WebkitFlexGrow",
|
|
"MSFlexGrow",
|
|
"OFlexGrow",
|
|
"flexShrink",
|
|
"MozFlexShrink",
|
|
"WebkitFlexShrink",
|
|
"MSFlexShrink",
|
|
"OFlexShrink",
|
|
"flexWrap",
|
|
"MozFlexWrap",
|
|
"WebkitFlexWrap",
|
|
"MSFlexWrap",
|
|
"OFlexWrap",
|
|
"float",
|
|
"MozFloat",
|
|
"WebkitFloat",
|
|
"MSFloat",
|
|
"OFloat",
|
|
"font",
|
|
"MozFont",
|
|
"WebkitFont",
|
|
"MSFont",
|
|
"OFont",
|
|
"fontFamily",
|
|
"MozFontFamily",
|
|
"WebkitFontFamily",
|
|
"MSFontFamily",
|
|
"OFontFamily",
|
|
"fontFeatureSettings",
|
|
"MozFontFeatureSettings",
|
|
"WebkitFontFeatureSettings",
|
|
"MSFontFeatureSettings",
|
|
"OFontFeatureSettings",
|
|
"fontKerning",
|
|
"MozFontKerning",
|
|
"WebkitFontKerning",
|
|
"MSFontKerning",
|
|
"OFontKerning",
|
|
"fontLanguageOverride",
|
|
"MozFontLanguageOverride",
|
|
"WebkitFontLanguageOverride",
|
|
"MSFontLanguageOverride",
|
|
"OFontLanguageOverride",
|
|
"fontSize",
|
|
"MozFontSize",
|
|
"WebkitFontSize",
|
|
"MSFontSize",
|
|
"OFontSize",
|
|
"fontSizeAdjust",
|
|
"MozFontSizeAdjust",
|
|
"WebkitFontSizeAdjust",
|
|
"MSFontSizeAdjust",
|
|
"OFontSizeAdjust",
|
|
"fontStretch",
|
|
"MozFontStretch",
|
|
"WebkitFontStretch",
|
|
"MSFontStretch",
|
|
"OFontStretch",
|
|
"fontStyle",
|
|
"MozFontStyle",
|
|
"WebkitFontStyle",
|
|
"MSFontStyle",
|
|
"OFontStyle",
|
|
"fontSynthesis",
|
|
"MozFontSynthesis",
|
|
"WebkitFontSynthesis",
|
|
"MSFontSynthesis",
|
|
"OFontSynthesis",
|
|
"fontVariant",
|
|
"MozFontVariant",
|
|
"WebkitFontVariant",
|
|
"MSFontVariant",
|
|
"OFontVariant",
|
|
"fontVariantAlternates",
|
|
"MozFontVariantAlternates",
|
|
"WebkitFontVariantAlternates",
|
|
"MSFontVariantAlternates",
|
|
"OFontVariantAlternates",
|
|
"fontVariantCaps",
|
|
"MozFontVariantCaps",
|
|
"WebkitFontVariantCaps",
|
|
"MSFontVariantCaps",
|
|
"OFontVariantCaps",
|
|
"fontVariantEastAsian",
|
|
"MozFontVariantEastAsian",
|
|
"WebkitFontVariantEastAsian",
|
|
"MSFontVariantEastAsian",
|
|
"OFontVariantEastAsian",
|
|
"fontVariantLigatures",
|
|
"MozFontVariantLigatures",
|
|
"WebkitFontVariantLigatures",
|
|
"MSFontVariantLigatures",
|
|
"OFontVariantLigatures",
|
|
"fontVariantNumeric",
|
|
"MozFontVariantNumeric",
|
|
"WebkitFontVariantNumeric",
|
|
"MSFontVariantNumeric",
|
|
"OFontVariantNumeric",
|
|
"fontVariantPosition",
|
|
"MozFontVariantPosition",
|
|
"WebkitFontVariantPosition",
|
|
"MSFontVariantPosition",
|
|
"OFontVariantPosition",
|
|
"fontWeight",
|
|
"MozFontWeight",
|
|
"WebkitFontWeight",
|
|
"MSFontWeight",
|
|
"OFontWeight",
|
|
"fr",
|
|
"MozFr",
|
|
"WebkitFr",
|
|
"MSFr",
|
|
"OFr",
|
|
"grad",
|
|
"MozGrad",
|
|
"WebkitGrad",
|
|
"MSGrad",
|
|
"OGrad",
|
|
"grid",
|
|
"MozGrid",
|
|
"WebkitGrid",
|
|
"MSGrid",
|
|
"OGrid",
|
|
"gridArea",
|
|
"MozGridArea",
|
|
"WebkitGridArea",
|
|
"MSGridArea",
|
|
"OGridArea",
|
|
"gridAutoColumns",
|
|
"MozGridAutoColumns",
|
|
"WebkitGridAutoColumns",
|
|
"MSGridAutoColumns",
|
|
"OGridAutoColumns",
|
|
"gridAutoFlow",
|
|
"MozGridAutoFlow",
|
|
"WebkitGridAutoFlow",
|
|
"MSGridAutoFlow",
|
|
"OGridAutoFlow",
|
|
"gridAutoRows",
|
|
"MozGridAutoRows",
|
|
"WebkitGridAutoRows",
|
|
"MSGridAutoRows",
|
|
"OGridAutoRows",
|
|
"gridColumn",
|
|
"MozGridColumn",
|
|
"WebkitGridColumn",
|
|
"MSGridColumn",
|
|
"OGridColumn",
|
|
"gridColumnEnd",
|
|
"MozGridColumnEnd",
|
|
"WebkitGridColumnEnd",
|
|
"MSGridColumnEnd",
|
|
"OGridColumnEnd",
|
|
"gridColumnGap",
|
|
"MozGridColumnGap",
|
|
"WebkitGridColumnGap",
|
|
"MSGridColumnGap",
|
|
"OGridColumnGap",
|
|
"gridColumnStart",
|
|
"MozGridColumnStart",
|
|
"WebkitGridColumnStart",
|
|
"MSGridColumnStart",
|
|
"OGridColumnStart",
|
|
"gridGap",
|
|
"MozGridGap",
|
|
"WebkitGridGap",
|
|
"MSGridGap",
|
|
"OGridGap",
|
|
"gridRow",
|
|
"MozGridRow",
|
|
"WebkitGridRow",
|
|
"MSGridRow",
|
|
"OGridRow",
|
|
"gridRowEnd",
|
|
"MozGridRowEnd",
|
|
"WebkitGridRowEnd",
|
|
"MSGridRowEnd",
|
|
"OGridRowEnd",
|
|
"gridRowGap",
|
|
"MozGridRowGap",
|
|
"WebkitGridRowGap",
|
|
"MSGridRowGap",
|
|
"OGridRowGap",
|
|
"gridRowStart",
|
|
"MozGridRowStart",
|
|
"WebkitGridRowStart",
|
|
"MSGridRowStart",
|
|
"OGridRowStart",
|
|
"gridTemplate",
|
|
"MozGridTemplate",
|
|
"WebkitGridTemplate",
|
|
"MSGridTemplate",
|
|
"OGridTemplate",
|
|
"gridTemplateAreas",
|
|
"MozGridTemplateAreas",
|
|
"WebkitGridTemplateAreas",
|
|
"MSGridTemplateAreas",
|
|
"OGridTemplateAreas",
|
|
"gridTemplateColumns",
|
|
"MozGridTemplateColumns",
|
|
"WebkitGridTemplateColumns",
|
|
"MSGridTemplateColumns",
|
|
"OGridTemplateColumns",
|
|
"gridTemplateRows",
|
|
"MozGridTemplateRows",
|
|
"WebkitGridTemplateRows",
|
|
"MSGridTemplateRows",
|
|
"OGridTemplateRows",
|
|
"height",
|
|
"MozHeight",
|
|
"WebkitHeight",
|
|
"MSHeight",
|
|
"OHeight",
|
|
"hyphens",
|
|
"MozHyphens",
|
|
"WebkitHyphens",
|
|
"MSHyphens",
|
|
"OHyphens",
|
|
"hz",
|
|
"MozHz",
|
|
"WebkitHz",
|
|
"MSHz",
|
|
"OHz",
|
|
"imageOrientation",
|
|
"MozImageOrientation",
|
|
"WebkitImageOrientation",
|
|
"MSImageOrientation",
|
|
"OImageOrientation",
|
|
"imageRendering",
|
|
"MozImageRendering",
|
|
"WebkitImageRendering",
|
|
"MSImageRendering",
|
|
"OImageRendering",
|
|
"imageResolution",
|
|
"MozImageResolution",
|
|
"WebkitImageResolution",
|
|
"MSImageResolution",
|
|
"OImageResolution",
|
|
"imeMode",
|
|
"MozImeMode",
|
|
"WebkitImeMode",
|
|
"MSImeMode",
|
|
"OImeMode",
|
|
"in",
|
|
"MozIn",
|
|
"WebkitIn",
|
|
"MSIn",
|
|
"OIn",
|
|
"inherit",
|
|
"MozInherit",
|
|
"WebkitInherit",
|
|
"MSInherit",
|
|
"OInherit",
|
|
"initial",
|
|
"MozInitial",
|
|
"WebkitInitial",
|
|
"MSInitial",
|
|
"OInitial",
|
|
"inlineSize",
|
|
"MozInlineSize",
|
|
"WebkitInlineSize",
|
|
"MSInlineSize",
|
|
"OInlineSize",
|
|
"isolation",
|
|
"MozIsolation",
|
|
"WebkitIsolation",
|
|
"MSIsolation",
|
|
"OIsolation",
|
|
"justifyContent",
|
|
"MozJustifyContent",
|
|
"WebkitJustifyContent",
|
|
"MSJustifyContent",
|
|
"OJustifyContent",
|
|
"khz",
|
|
"MozKhz",
|
|
"WebkitKhz",
|
|
"MSKhz",
|
|
"OKhz",
|
|
"left",
|
|
"MozLeft",
|
|
"WebkitLeft",
|
|
"MSLeft",
|
|
"OLeft",
|
|
"letterSpacing",
|
|
"MozLetterSpacing",
|
|
"WebkitLetterSpacing",
|
|
"MSLetterSpacing",
|
|
"OLetterSpacing",
|
|
"lineBreak",
|
|
"MozLineBreak",
|
|
"WebkitLineBreak",
|
|
"MSLineBreak",
|
|
"OLineBreak",
|
|
"lineHeight",
|
|
"MozLineHeight",
|
|
"WebkitLineHeight",
|
|
"MSLineHeight",
|
|
"OLineHeight",
|
|
"listStyle",
|
|
"MozListStyle",
|
|
"WebkitListStyle",
|
|
"MSListStyle",
|
|
"OListStyle",
|
|
"listStyleImage",
|
|
"MozListStyleImage",
|
|
"WebkitListStyleImage",
|
|
"MSListStyleImage",
|
|
"OListStyleImage",
|
|
"listStylePosition",
|
|
"MozListStylePosition",
|
|
"WebkitListStylePosition",
|
|
"MSListStylePosition",
|
|
"OListStylePosition",
|
|
"listStyleType",
|
|
"MozListStyleType",
|
|
"WebkitListStyleType",
|
|
"MSListStyleType",
|
|
"OListStyleType",
|
|
"margin",
|
|
"MozMargin",
|
|
"WebkitMargin",
|
|
"MSMargin",
|
|
"OMargin",
|
|
"marginBlockEnd",
|
|
"MozMarginBlockEnd",
|
|
"WebkitMarginBlockEnd",
|
|
"MSMarginBlockEnd",
|
|
"OMarginBlockEnd",
|
|
"marginBlockStart",
|
|
"MozMarginBlockStart",
|
|
"WebkitMarginBlockStart",
|
|
"MSMarginBlockStart",
|
|
"OMarginBlockStart",
|
|
"marginBottom",
|
|
"MozMarginBottom",
|
|
"WebkitMarginBottom",
|
|
"MSMarginBottom",
|
|
"OMarginBottom",
|
|
"marginInlineEnd",
|
|
"MozMarginInlineEnd",
|
|
"WebkitMarginInlineEnd",
|
|
"MSMarginInlineEnd",
|
|
"OMarginInlineEnd",
|
|
"marginInlineStart",
|
|
"MozMarginInlineStart",
|
|
"WebkitMarginInlineStart",
|
|
"MSMarginInlineStart",
|
|
"OMarginInlineStart",
|
|
"marginLeft",
|
|
"MozMarginLeft",
|
|
"WebkitMarginLeft",
|
|
"MSMarginLeft",
|
|
"OMarginLeft",
|
|
"marginRight",
|
|
"MozMarginRight",
|
|
"WebkitMarginRight",
|
|
"MSMarginRight",
|
|
"OMarginRight",
|
|
"marginTop",
|
|
"MozMarginTop",
|
|
"WebkitMarginTop",
|
|
"MSMarginTop",
|
|
"OMarginTop",
|
|
"mask",
|
|
"MozMask",
|
|
"WebkitMask",
|
|
"MSMask",
|
|
"OMask",
|
|
"maskClip",
|
|
"MozMaskClip",
|
|
"WebkitMaskClip",
|
|
"MSMaskClip",
|
|
"OMaskClip",
|
|
"maskComposite",
|
|
"MozMaskComposite",
|
|
"WebkitMaskComposite",
|
|
"MSMaskComposite",
|
|
"OMaskComposite",
|
|
"maskImage",
|
|
"MozMaskImage",
|
|
"WebkitMaskImage",
|
|
"MSMaskImage",
|
|
"OMaskImage",
|
|
"maskMode",
|
|
"MozMaskMode",
|
|
"WebkitMaskMode",
|
|
"MSMaskMode",
|
|
"OMaskMode",
|
|
"maskOrigin",
|
|
"MozMaskOrigin",
|
|
"WebkitMaskOrigin",
|
|
"MSMaskOrigin",
|
|
"OMaskOrigin",
|
|
"maskPosition",
|
|
"MozMaskPosition",
|
|
"WebkitMaskPosition",
|
|
"MSMaskPosition",
|
|
"OMaskPosition",
|
|
"maskRepeat",
|
|
"MozMaskRepeat",
|
|
"WebkitMaskRepeat",
|
|
"MSMaskRepeat",
|
|
"OMaskRepeat",
|
|
"maskSize",
|
|
"MozMaskSize",
|
|
"WebkitMaskSize",
|
|
"MSMaskSize",
|
|
"OMaskSize",
|
|
"maskType",
|
|
"MozMaskType",
|
|
"WebkitMaskType",
|
|
"MSMaskType",
|
|
"OMaskType",
|
|
"maxHeight",
|
|
"MozMaxHeight",
|
|
"WebkitMaxHeight",
|
|
"MSMaxHeight",
|
|
"OMaxHeight",
|
|
"maxWidth",
|
|
"MozMaxWidth",
|
|
"WebkitMaxWidth",
|
|
"MSMaxWidth",
|
|
"OMaxWidth",
|
|
"minBlockSize",
|
|
"MozMinBlockSize",
|
|
"WebkitMinBlockSize",
|
|
"MSMinBlockSize",
|
|
"OMinBlockSize",
|
|
"minHeight",
|
|
"MozMinHeight",
|
|
"WebkitMinHeight",
|
|
"MSMinHeight",
|
|
"OMinHeight",
|
|
"minInlineSize",
|
|
"MozMinInlineSize",
|
|
"WebkitMinInlineSize",
|
|
"MSMinInlineSize",
|
|
"OMinInlineSize",
|
|
"minWidth",
|
|
"MozMinWidth",
|
|
"WebkitMinWidth",
|
|
"MSMinWidth",
|
|
"OMinWidth",
|
|
"mixBlendMode",
|
|
"MozMixBlendMode",
|
|
"WebkitMixBlendMode",
|
|
"MSMixBlendMode",
|
|
"OMixBlendMode",
|
|
"mm",
|
|
"MozMm",
|
|
"WebkitMm",
|
|
"MSMm",
|
|
"OMm",
|
|
"ms",
|
|
"MozMs",
|
|
"WebkitMs",
|
|
"MSMs",
|
|
"OMs",
|
|
"objectFit",
|
|
"MozObjectFit",
|
|
"WebkitObjectFit",
|
|
"MSObjectFit",
|
|
"OObjectFit",
|
|
"objectPosition",
|
|
"MozObjectPosition",
|
|
"WebkitObjectPosition",
|
|
"MSObjectPosition",
|
|
"OObjectPosition",
|
|
"offsetBlockEnd",
|
|
"MozOffsetBlockEnd",
|
|
"WebkitOffsetBlockEnd",
|
|
"MSOffsetBlockEnd",
|
|
"OOffsetBlockEnd",
|
|
"offsetBlockStart",
|
|
"MozOffsetBlockStart",
|
|
"WebkitOffsetBlockStart",
|
|
"MSOffsetBlockStart",
|
|
"OOffsetBlockStart",
|
|
"offsetInlineEnd",
|
|
"MozOffsetInlineEnd",
|
|
"WebkitOffsetInlineEnd",
|
|
"MSOffsetInlineEnd",
|
|
"OOffsetInlineEnd",
|
|
"offsetInlineStart",
|
|
"MozOffsetInlineStart",
|
|
"WebkitOffsetInlineStart",
|
|
"MSOffsetInlineStart",
|
|
"OOffsetInlineStart",
|
|
"opacity",
|
|
"MozOpacity",
|
|
"WebkitOpacity",
|
|
"MSOpacity",
|
|
"OOpacity",
|
|
"order",
|
|
"MozOrder",
|
|
"WebkitOrder",
|
|
"MSOrder",
|
|
"OOrder",
|
|
"orphans",
|
|
"MozOrphans",
|
|
"WebkitOrphans",
|
|
"MSOrphans",
|
|
"OOrphans",
|
|
"outline",
|
|
"MozOutline",
|
|
"WebkitOutline",
|
|
"MSOutline",
|
|
"OOutline",
|
|
"outlineColor",
|
|
"MozOutlineColor",
|
|
"WebkitOutlineColor",
|
|
"MSOutlineColor",
|
|
"OOutlineColor",
|
|
"outlineOffset",
|
|
"MozOutlineOffset",
|
|
"WebkitOutlineOffset",
|
|
"MSOutlineOffset",
|
|
"OOutlineOffset",
|
|
"outlineStyle",
|
|
"MozOutlineStyle",
|
|
"WebkitOutlineStyle",
|
|
"MSOutlineStyle",
|
|
"OOutlineStyle",
|
|
"outlineWidth",
|
|
"MozOutlineWidth",
|
|
"WebkitOutlineWidth",
|
|
"MSOutlineWidth",
|
|
"OOutlineWidth",
|
|
"overflow",
|
|
"MozOverflow",
|
|
"WebkitOverflow",
|
|
"MSOverflow",
|
|
"OOverflow",
|
|
"overflowWrap",
|
|
"MozOverflowWrap",
|
|
"WebkitOverflowWrap",
|
|
"MSOverflowWrap",
|
|
"OOverflowWrap",
|
|
"overflowX",
|
|
"MozOverflowX",
|
|
"WebkitOverflowX",
|
|
"MSOverflowX",
|
|
"OOverflowX",
|
|
"overflowY",
|
|
"MozOverflowY",
|
|
"WebkitOverflowY",
|
|
"MSOverflowY",
|
|
"OOverflowY",
|
|
"padding",
|
|
"MozPadding",
|
|
"WebkitPadding",
|
|
"MSPadding",
|
|
"OPadding",
|
|
"paddingBlockEnd",
|
|
"MozPaddingBlockEnd",
|
|
"WebkitPaddingBlockEnd",
|
|
"MSPaddingBlockEnd",
|
|
"OPaddingBlockEnd",
|
|
"paddingBlockStart",
|
|
"MozPaddingBlockStart",
|
|
"WebkitPaddingBlockStart",
|
|
"MSPaddingBlockStart",
|
|
"OPaddingBlockStart",
|
|
"paddingBottom",
|
|
"MozPaddingBottom",
|
|
"WebkitPaddingBottom",
|
|
"MSPaddingBottom",
|
|
"OPaddingBottom",
|
|
"paddingInlineEnd",
|
|
"MozPaddingInlineEnd",
|
|
"WebkitPaddingInlineEnd",
|
|
"MSPaddingInlineEnd",
|
|
"OPaddingInlineEnd",
|
|
"paddingInlineStart",
|
|
"MozPaddingInlineStart",
|
|
"WebkitPaddingInlineStart",
|
|
"MSPaddingInlineStart",
|
|
"OPaddingInlineStart",
|
|
"paddingLeft",
|
|
"MozPaddingLeft",
|
|
"WebkitPaddingLeft",
|
|
"MSPaddingLeft",
|
|
"OPaddingLeft",
|
|
"paddingRight",
|
|
"MozPaddingRight",
|
|
"WebkitPaddingRight",
|
|
"MSPaddingRight",
|
|
"OPaddingRight",
|
|
"paddingTop",
|
|
"MozPaddingTop",
|
|
"WebkitPaddingTop",
|
|
"MSPaddingTop",
|
|
"OPaddingTop",
|
|
"pageBreakAfter",
|
|
"MozPageBreakAfter",
|
|
"WebkitPageBreakAfter",
|
|
"MSPageBreakAfter",
|
|
"OPageBreakAfter",
|
|
"pageBreakBefore",
|
|
"MozPageBreakBefore",
|
|
"WebkitPageBreakBefore",
|
|
"MSPageBreakBefore",
|
|
"OPageBreakBefore",
|
|
"pageBreakInside",
|
|
"MozPageBreakInside",
|
|
"WebkitPageBreakInside",
|
|
"MSPageBreakInside",
|
|
"OPageBreakInside",
|
|
"pc",
|
|
"MozPc",
|
|
"WebkitPc",
|
|
"MSPc",
|
|
"OPc",
|
|
"perspective",
|
|
"MozPerspective",
|
|
"WebkitPerspective",
|
|
"MSPerspective",
|
|
"OPerspective",
|
|
"perspectiveOrigin",
|
|
"MozPerspectiveOrigin",
|
|
"WebkitPerspectiveOrigin",
|
|
"MSPerspectiveOrigin",
|
|
"OPerspectiveOrigin",
|
|
"pointerEvents",
|
|
"MozPointerEvents",
|
|
"WebkitPointerEvents",
|
|
"MSPointerEvents",
|
|
"OPointerEvents",
|
|
"position",
|
|
"MozPosition",
|
|
"WebkitPosition",
|
|
"MSPosition",
|
|
"OPosition",
|
|
"pt",
|
|
"MozPt",
|
|
"WebkitPt",
|
|
"MSPt",
|
|
"OPt",
|
|
"px",
|
|
"MozPx",
|
|
"WebkitPx",
|
|
"MSPx",
|
|
"OPx",
|
|
"q",
|
|
"MozQ",
|
|
"WebkitQ",
|
|
"MSQ",
|
|
"OQ",
|
|
"quotes",
|
|
"MozQuotes",
|
|
"WebkitQuotes",
|
|
"MSQuotes",
|
|
"OQuotes",
|
|
"rad",
|
|
"MozRad",
|
|
"WebkitRad",
|
|
"MSRad",
|
|
"ORad",
|
|
"rem",
|
|
"MozRem",
|
|
"WebkitRem",
|
|
"MSRem",
|
|
"ORem",
|
|
"resize",
|
|
"MozResize",
|
|
"WebkitResize",
|
|
"MSResize",
|
|
"OResize",
|
|
"revert",
|
|
"MozRevert",
|
|
"WebkitRevert",
|
|
"MSRevert",
|
|
"ORevert",
|
|
"right",
|
|
"MozRight",
|
|
"WebkitRight",
|
|
"MSRight",
|
|
"ORight",
|
|
"rubyAlign",
|
|
"MozRubyAlign",
|
|
"WebkitRubyAlign",
|
|
"MSRubyAlign",
|
|
"ORubyAlign",
|
|
"rubyMerge",
|
|
"MozRubyMerge",
|
|
"WebkitRubyMerge",
|
|
"MSRubyMerge",
|
|
"ORubyMerge",
|
|
"rubyPosition",
|
|
"MozRubyPosition",
|
|
"WebkitRubyPosition",
|
|
"MSRubyPosition",
|
|
"ORubyPosition",
|
|
"s",
|
|
"MozS",
|
|
"WebkitS",
|
|
"MSS",
|
|
"OS",
|
|
"scrollBehavior",
|
|
"MozScrollBehavior",
|
|
"WebkitScrollBehavior",
|
|
"MSScrollBehavior",
|
|
"OScrollBehavior",
|
|
"scrollSnapCoordinate",
|
|
"MozScrollSnapCoordinate",
|
|
"WebkitScrollSnapCoordinate",
|
|
"MSScrollSnapCoordinate",
|
|
"OScrollSnapCoordinate",
|
|
"scrollSnapDestination",
|
|
"MozScrollSnapDestination",
|
|
"WebkitScrollSnapDestination",
|
|
"MSScrollSnapDestination",
|
|
"OScrollSnapDestination",
|
|
"scrollSnapType",
|
|
"MozScrollSnapType",
|
|
"WebkitScrollSnapType",
|
|
"MSScrollSnapType",
|
|
"OScrollSnapType",
|
|
"shapeImageThreshold",
|
|
"MozShapeImageThreshold",
|
|
"WebkitShapeImageThreshold",
|
|
"MSShapeImageThreshold",
|
|
"OShapeImageThreshold",
|
|
"shapeMargin",
|
|
"MozShapeMargin",
|
|
"WebkitShapeMargin",
|
|
"MSShapeMargin",
|
|
"OShapeMargin",
|
|
"shapeOutside",
|
|
"MozShapeOutside",
|
|
"WebkitShapeOutside",
|
|
"MSShapeOutside",
|
|
"OShapeOutside",
|
|
"tabSize",
|
|
"MozTabSize",
|
|
"WebkitTabSize",
|
|
"MSTabSize",
|
|
"OTabSize",
|
|
"tableLayout",
|
|
"MozTableLayout",
|
|
"WebkitTableLayout",
|
|
"MSTableLayout",
|
|
"OTableLayout",
|
|
"textAlign",
|
|
"MozTextAlign",
|
|
"WebkitTextAlign",
|
|
"MSTextAlign",
|
|
"OTextAlign",
|
|
"textAlignLast",
|
|
"MozTextAlignLast",
|
|
"WebkitTextAlignLast",
|
|
"MSTextAlignLast",
|
|
"OTextAlignLast",
|
|
"textCombineUpright",
|
|
"MozTextCombineUpright",
|
|
"WebkitTextCombineUpright",
|
|
"MSTextCombineUpright",
|
|
"OTextCombineUpright",
|
|
"textDecoration",
|
|
"MozTextDecoration",
|
|
"WebkitTextDecoration",
|
|
"MSTextDecoration",
|
|
"OTextDecoration",
|
|
"textDecorationColor",
|
|
"MozTextDecorationColor",
|
|
"WebkitTextDecorationColor",
|
|
"MSTextDecorationColor",
|
|
"OTextDecorationColor",
|
|
"textDecorationLine",
|
|
"MozTextDecorationLine",
|
|
"WebkitTextDecorationLine",
|
|
"MSTextDecorationLine",
|
|
"OTextDecorationLine",
|
|
"textDecorationStyle",
|
|
"MozTextDecorationStyle",
|
|
"WebkitTextDecorationStyle",
|
|
"MSTextDecorationStyle",
|
|
"OTextDecorationStyle",
|
|
"textEmphasis",
|
|
"MozTextEmphasis",
|
|
"WebkitTextEmphasis",
|
|
"MSTextEmphasis",
|
|
"OTextEmphasis",
|
|
"textEmphasisColor",
|
|
"MozTextEmphasisColor",
|
|
"WebkitTextEmphasisColor",
|
|
"MSTextEmphasisColor",
|
|
"OTextEmphasisColor",
|
|
"textEmphasisPosition",
|
|
"MozTextEmphasisPosition",
|
|
"WebkitTextEmphasisPosition",
|
|
"MSTextEmphasisPosition",
|
|
"OTextEmphasisPosition",
|
|
"textEmphasisStyle",
|
|
"MozTextEmphasisStyle",
|
|
"WebkitTextEmphasisStyle",
|
|
"MSTextEmphasisStyle",
|
|
"OTextEmphasisStyle",
|
|
"textIndent",
|
|
"MozTextIndent",
|
|
"WebkitTextIndent",
|
|
"MSTextIndent",
|
|
"OTextIndent",
|
|
"textOrientation",
|
|
"MozTextOrientation",
|
|
"WebkitTextOrientation",
|
|
"MSTextOrientation",
|
|
"OTextOrientation",
|
|
"textOverflow",
|
|
"MozTextOverflow",
|
|
"WebkitTextOverflow",
|
|
"MSTextOverflow",
|
|
"OTextOverflow",
|
|
"textRendering",
|
|
"MozTextRendering",
|
|
"WebkitTextRendering",
|
|
"MSTextRendering",
|
|
"OTextRendering",
|
|
"textShadow",
|
|
"MozTextShadow",
|
|
"WebkitTextShadow",
|
|
"MSTextShadow",
|
|
"OTextShadow",
|
|
"textTransform",
|
|
"MozTextTransform",
|
|
"WebkitTextTransform",
|
|
"MSTextTransform",
|
|
"OTextTransform",
|
|
"textUnderlinePosition",
|
|
"MozTextUnderlinePosition",
|
|
"WebkitTextUnderlinePosition",
|
|
"MSTextUnderlinePosition",
|
|
"OTextUnderlinePosition",
|
|
"top",
|
|
"MozTop",
|
|
"WebkitTop",
|
|
"MSTop",
|
|
"OTop",
|
|
"touchAction",
|
|
"MozTouchAction",
|
|
"WebkitTouchAction",
|
|
"MSTouchAction",
|
|
"OTouchAction",
|
|
"transform",
|
|
"MozTransform",
|
|
"WebkitTransform",
|
|
"msTransform",
|
|
"OTransform",
|
|
"transformBox",
|
|
"MozTransformBox",
|
|
"WebkitTransformBox",
|
|
"MSTransformBox",
|
|
"OTransformBox",
|
|
"transformOrigin",
|
|
"MozTransformOrigin",
|
|
"WebkitTransformOrigin",
|
|
"MSTransformOrigin",
|
|
"OTransformOrigin",
|
|
"transformStyle",
|
|
"MozTransformStyle",
|
|
"WebkitTransformStyle",
|
|
"MSTransformStyle",
|
|
"OTransformStyle",
|
|
"transition",
|
|
"MozTransition",
|
|
"WebkitTransition",
|
|
"MSTransition",
|
|
"OTransition",
|
|
"transitionDelay",
|
|
"MozTransitionDelay",
|
|
"WebkitTransitionDelay",
|
|
"MSTransitionDelay",
|
|
"OTransitionDelay",
|
|
"transitionDuration",
|
|
"MozTransitionDuration",
|
|
"WebkitTransitionDuration",
|
|
"MSTransitionDuration",
|
|
"OTransitionDuration",
|
|
"transitionProperty",
|
|
"MozTransitionProperty",
|
|
"WebkitTransitionProperty",
|
|
"MSTransitionProperty",
|
|
"OTransitionProperty",
|
|
"transitionTimingFunction",
|
|
"MozTransitionTimingFunction",
|
|
"WebkitTransitionTimingFunction",
|
|
"MSTransitionTimingFunction",
|
|
"OTransitionTimingFunction",
|
|
"turn",
|
|
"MozTurn",
|
|
"WebkitTurn",
|
|
"MSTurn",
|
|
"OTurn",
|
|
"unicodeBidi",
|
|
"MozUnicodeBidi",
|
|
"WebkitUnicodeBidi",
|
|
"MSUnicodeBidi",
|
|
"OUnicodeBidi",
|
|
"unset",
|
|
"MozUnset",
|
|
"WebkitUnset",
|
|
"MSUnset",
|
|
"OUnset",
|
|
"verticalAlign",
|
|
"MozVerticalAlign",
|
|
"WebkitVerticalAlign",
|
|
"MSVerticalAlign",
|
|
"OVerticalAlign",
|
|
"vh",
|
|
"MozVh",
|
|
"WebkitVh",
|
|
"MSVh",
|
|
"OVh",
|
|
"visibility",
|
|
"MozVisibility",
|
|
"WebkitVisibility",
|
|
"MSVisibility",
|
|
"OVisibility",
|
|
"vmax",
|
|
"MozVmax",
|
|
"WebkitVmax",
|
|
"MSVmax",
|
|
"OVmax",
|
|
"vmin",
|
|
"MozVmin",
|
|
"WebkitVmin",
|
|
"MSVmin",
|
|
"OVmin",
|
|
"vw",
|
|
"MozVw",
|
|
"WebkitVw",
|
|
"MSVw",
|
|
"OVw",
|
|
"whiteSpace",
|
|
"MozWhiteSpace",
|
|
"WebkitWhiteSpace",
|
|
"MSWhiteSpace",
|
|
"OWhiteSpace",
|
|
"widows",
|
|
"MozWidows",
|
|
"WebkitWidows",
|
|
"MSWidows",
|
|
"OWidows",
|
|
"width",
|
|
"MozWidth",
|
|
"WebkitWidth",
|
|
"MSWidth",
|
|
"OWidth",
|
|
"willChange",
|
|
"MozWillChange",
|
|
"WebkitWillChange",
|
|
"MSWillChange",
|
|
"OWillChange",
|
|
"wordBreak",
|
|
"MozWordBreak",
|
|
"WebkitWordBreak",
|
|
"MSWordBreak",
|
|
"OWordBreak",
|
|
"wordSpacing",
|
|
"MozWordSpacing",
|
|
"WebkitWordSpacing",
|
|
"MSWordSpacing",
|
|
"OWordSpacing",
|
|
"wordWrap",
|
|
"MozWordWrap",
|
|
"WebkitWordWrap",
|
|
"MSWordWrap",
|
|
"OWordWrap",
|
|
"writingMode",
|
|
"MozWritingMode",
|
|
"WebkitWritingMode",
|
|
"MSWritingMode",
|
|
"OWritingMode",
|
|
"zIndex",
|
|
"MozZIndex",
|
|
"WebkitZIndex",
|
|
"MSZIndex",
|
|
"OZIndex",
|
|
"fontSize",
|
|
"MozFontSize",
|
|
"WebkitFontSize",
|
|
"MSFontSize",
|
|
"OFontSize",
|
|
"flex",
|
|
"MozFlex",
|
|
"WebkitFlex",
|
|
"MSFlex",
|
|
"OFlex",
|
|
"fr",
|
|
"MozFr",
|
|
"WebkitFr",
|
|
"MSFr",
|
|
"OFr",
|
|
"overflowScrolling",
|
|
"MozOverflowScrolling",
|
|
"WebkitOverflowScrolling",
|
|
"MSOverflowScrolling",
|
|
"OOverflowScrolling",
|
|
"userSelect",
|
|
"MozUserSelect",
|
|
"WebkitUserSelect",
|
|
"MSUserSelect",
|
|
"OUserSelect"
|
|
]
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 2886:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_icon_style_css__ = __webpack_require__(169);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_icon_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_icon_style_css__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_icon__ = __webpack_require__(25);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd_lib_icon__);
|
|
/*
|
|
* @Description: 引入阿里图标库
|
|
* @Author: tangjiang
|
|
* @Github:
|
|
* @Date: 2019-12-10 09:03:48
|
|
* @LastEditors: tangjiang
|
|
* @LastEditTime: 2019-12-12 10:53:47
|
|
*/var MyIcon=__WEBPACK_IMPORTED_MODULE_1_antd_lib_icon___default.a.createFromIconfontCN({scriptUrl:'//at.alicdn.com/t/font_1535266_i4ilpm93kp.js'});/* harmony default export */ __webpack_exports__["a"] = (MyIcon);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4749:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
|
|
// load the styles
|
|
var content = __webpack_require__(4750);
|
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
// Prepare cssTransformation
|
|
var transform;
|
|
|
|
var options = {"hmr":true}
|
|
options.transform = transform
|
|
// add the styles to the DOM
|
|
var update = __webpack_require__(291)(content, options);
|
|
if(content.locals) module.exports = content.locals;
|
|
// Hot Module Replacement
|
|
if(false) {
|
|
// When the styles change, update the <style> tags
|
|
if(!content.locals) {
|
|
module.hot.accept("!!../../../../node_modules/_css-loader@0.28.7@css-loader/index.js??ref--1-oneOf-3-1!../../../../node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js!./index.scss", function() {
|
|
var newContent = require("!!../../../../node_modules/_css-loader@0.28.7@css-loader/index.js??ref--1-oneOf-3-1!../../../../node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js!./index.scss");
|
|
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
|
update(newContent);
|
|
});
|
|
}
|
|
// When the module is disposed, remove the <style> tags
|
|
module.hot.dispose(function() { update(); });
|
|
}
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4750:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
exports = module.exports = __webpack_require__(290)(true);
|
|
// imports
|
|
|
|
|
|
// module
|
|
exports.push([module.i, ".Resizer{background:#000;opacity:.2;z-index:1;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;-moz-background-clip:padding;-webkit-background-clip:padding;background-clip:padding-box}.Resizer:hover{-webkit-transition:all 2s ease;transition:all 2s ease}.Resizer.horizontal{height:11px;margin:-5px 0;border-top:5px solid hsla(0,0%,100%,0);border-bottom:5px solid hsla(0,0%,100%,0);cursor:row-resize;width:100%}.Resizer.horizontal:hover{border-top:5px solid rgba(0,0,0,.5);border-bottom:5px solid rgba(0,0,0,.5)}.Resizer.vertical{width:11px;margin:0 -5px;border-left:5px solid hsla(0,0%,100%,0);border-right:5px solid hsla(0,0%,100%,0);cursor:col-resize}.Resizer.vertical:hover{border-left:5px solid rgba(0,0,0,.5);border-right:5px solid rgba(0,0,0,.5)}.Resizer.disabled{cursor:not-allowed}.Resizer.disabled:hover{border-color:transparent}.jupyter_area .jupyter_header{position:relative;height:60px;line-height:60px;background-color:#070f1a;padding-left:30px}.jupyter_area .jupyter_header .jupyter_title{display:flex;flex-direction:column;align-items:center;height:100%;color:#fff}.jupyter_area .jupyter_header .jupyter_title .title_desc{margin-top:12px;font-size:16px}.jupyter_area .jupyter_header .jupyter_title .title_time{font-size:12px}.jupyter_area .jupyter_header .jupyter_btn{position:absolute;right:10px;top:14px}.jupyter_area .jupyter_header .jupyter_btn .btn_common{color:#888}.jupyter_area .jupyter_header .jupyter_btn .btn_common:hover{color:#1890ff}.jupyter_area .jupyter_ctx{position:relative;height:calc(100vh - 60px)}.jupyter_area .update_notice{text-align:center}.jupyter_area .update_notice .update_txt{line-height:18px;font-size:14px}", "", {"version":3,"sources":["/Users/alec/educoder/public/react/src/modules/tpm/jupyter/index.scss"],"names":[],"mappings":"AAAA,SAAS,gBAAgB,WAAY,UAAU,2BAA2B,8BAA8B,sBAAsB,6BAA6B,gCAAgC,2BAA2B,CAAC,eAAe,+BAA+B,sBAAsB,CAAC,oBAAoB,YAAY,cAAc,uCAAyC,0CAA4C,kBAAkB,UAAU,CAAC,0BAA0B,oCAAqC,sCAAuC,CAAC,kBAAkB,WAAW,cAAc,wCAA0C,yCAA2C,iBAAiB,CAAC,wBAAwB,qCAAsC,qCAAsC,CAAC,kBAAkB,kBAAkB,CAAC,wBAAwB,wBAAwB,CAAC,8BAA8B,kBAAkB,YAAY,iBAAiB,yBAAyB,iBAAiB,CAAC,6CAA6C,aAAa,sBAAsB,mBAAmB,YAAY,UAAU,CAAC,yDAAyD,gBAAgB,cAAc,CAAC,yDAAyD,cAAc,CAAC,2CAA2C,kBAAkB,WAAW,QAAQ,CAAC,uDAAuD,UAAU,CAAC,6DAA6D,aAAa,CAAC,2BAA2B,kBAAkB,yBAAyB,CAAC,6BAA6B,iBAAiB,CAAC,yCAAyC,iBAAiB,cAAc,CAAC","file":"index.scss","sourcesContent":[".Resizer{background:#000;opacity:0.2;z-index:1;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;-moz-background-clip:padding;-webkit-background-clip:padding;background-clip:padding-box}.Resizer:hover{-webkit-transition:all 2s ease;transition:all 2s ease}.Resizer.horizontal{height:11px;margin:-5px 0;border-top:5px solid rgba(255,255,255,0);border-bottom:5px solid rgba(255,255,255,0);cursor:row-resize;width:100%}.Resizer.horizontal:hover{border-top:5px solid rgba(0,0,0,0.5);border-bottom:5px solid rgba(0,0,0,0.5)}.Resizer.vertical{width:11px;margin:0 -5px;border-left:5px solid rgba(255,255,255,0);border-right:5px solid rgba(255,255,255,0);cursor:col-resize}.Resizer.vertical:hover{border-left:5px solid rgba(0,0,0,0.5);border-right:5px solid rgba(0,0,0,0.5)}.Resizer.disabled{cursor:not-allowed}.Resizer.disabled:hover{border-color:transparent}.jupyter_area .jupyter_header{position:relative;height:60px;line-height:60px;background-color:#070F1A;padding-left:30px}.jupyter_area .jupyter_header .jupyter_title{display:flex;flex-direction:column;align-items:center;height:100%;color:#fff}.jupyter_area .jupyter_header .jupyter_title .title_desc{margin-top:12px;font-size:16px}.jupyter_area .jupyter_header .jupyter_title .title_time{font-size:12px}.jupyter_area .jupyter_header .jupyter_btn{position:absolute;right:10px;top:14px}.jupyter_area .jupyter_header .jupyter_btn .btn_common{color:#888}.jupyter_area .jupyter_header .jupyter_btn .btn_common:hover{color:#1890ff}.jupyter_area .jupyter_ctx{position:relative;height:calc(100vh - 60px)}.jupyter_area .update_notice{text-align:center}.jupyter_area .update_notice .update_txt{line-height:18px;font-size:14px}\n"],"sourceRoot":""}]);
|
|
|
|
// exports
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4751:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_pagination_style_css__ = __webpack_require__(848);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_pagination_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_pagination_style_css__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_pagination__ = __webpack_require__(849);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_pagination___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd_lib_pagination__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_tooltip_style_css__ = __webpack_require__(165);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_tooltip_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_antd_lib_tooltip_style_css__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_tooltip__ = __webpack_require__(164);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_tooltip___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_antd_lib_tooltip__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_icon_style_css__ = __webpack_require__(169);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_icon_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_antd_lib_icon_style_css__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_icon__ = __webpack_require__(25);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_antd_lib_icon__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_antd_lib_empty_style_css__ = __webpack_require__(179);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_antd_lib_empty_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_antd_lib_empty_style_css__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_antd_lib_empty__ = __webpack_require__(345);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_antd_lib_empty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_antd_lib_empty__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__index_scss__ = __webpack_require__(4752);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__index_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8__index_scss__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react__ = __webpack_require__(0);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_react__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__common_components_MyIcon__ = __webpack_require__(2886);
|
|
var _slicedToArray=function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"])_i["return"]();}finally{if(_d)throw _e;}}return _arr;}return function(arr,i){if(Array.isArray(arr)){return arr;}else if(Symbol.iterator in Object(arr)){return sliceIterator(arr,i);}else{throw new TypeError("Invalid attempt to destructure non-iterable instance");}};}();/*
|
|
* @Description:
|
|
* @Author: tangjiang
|
|
* @Github:
|
|
* @Date: 2019-12-12 10:34:03
|
|
* @LastEditors: tangjiang
|
|
* @LastEditTime: 2019-12-13 22:46:51
|
|
*/function LeftPane(props){// 获取数据集
|
|
var _props$dataSets=props.dataSets,dataSets=_props$dataSets===undefined?[]:_props$dataSets,total=props.total,pagination=props.pagination,onPageChange=props.onPageChange;var emptyCtx=__WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement('div',{className:'jupyter_empty'},__WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_antd_lib_empty___default.a,null));// const listCtx = ;
|
|
var _useState=Object(__WEBPACK_IMPORTED_MODULE_9_react__["useState"])(function(){return emptyCtx;}),_useState2=_slicedToArray(_useState,2),renderCtx=_useState2[0],setRenderCtx=_useState2[1];Object(__WEBPACK_IMPORTED_MODULE_9_react__["useEffect"])(function(){if(dataSets.length>0){console.log('数据集的个数: ',dataSets.length);var oList=dataSets.map(function(item,i){return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement('li',{className:'jupyter_item',key:'key_'+i},__WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_antd_lib_tooltip___default.a,{placement:'right',title:item.file_path,mouseLeaveDelay:0.3},__WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5_antd_lib_icon___default.a,{type:'file-text',className:'jupyter_icon'}),__WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement('span',{className:'jupyter_name'},item.title)));});var oUl=__WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement('ul',{className:'jupyter_data_list'},oList);setRenderCtx(oUl);}},[props]);// 分页处理
|
|
var handleChangePage=function handleChangePage(page){// console.log(page, pageSize);
|
|
// setCurrent(page);
|
|
onPageChange&&onPageChange(page);};return __WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement('div',{className:'jupyter_data_sets_area'},__WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement('h2',{className:'jupyter_h2_title'},__WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10__common_components_MyIcon__["a" /* default */],{type:'iconwenti',className:'jupyter_data_icon'}),' \u6570\u636E\u96C6'),renderCtx,__WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement('div',{className:'jupyter_pagination'},__WEBPACK_IMPORTED_MODULE_9_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_antd_lib_pagination___default.a,{simple:true,current:pagination.page,pageSize:pagination.limit,total:total,onChange:handleChangePage})));}/* harmony default export */ __webpack_exports__["a"] = (LeftPane);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4752:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
|
|
// load the styles
|
|
var content = __webpack_require__(4753);
|
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
// Prepare cssTransformation
|
|
var transform;
|
|
|
|
var options = {"hmr":true}
|
|
options.transform = transform
|
|
// add the styles to the DOM
|
|
var update = __webpack_require__(291)(content, options);
|
|
if(content.locals) module.exports = content.locals;
|
|
// Hot Module Replacement
|
|
if(false) {
|
|
// When the styles change, update the <style> tags
|
|
if(!content.locals) {
|
|
module.hot.accept("!!../../../../../node_modules/_css-loader@0.28.7@css-loader/index.js??ref--1-oneOf-3-1!../../../../../node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js!./index.scss", function() {
|
|
var newContent = require("!!../../../../../node_modules/_css-loader@0.28.7@css-loader/index.js??ref--1-oneOf-3-1!../../../../../node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js!./index.scss");
|
|
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
|
update(newContent);
|
|
});
|
|
}
|
|
// When the module is disposed, remove the <style> tags
|
|
module.hot.dispose(function() { update(); });
|
|
}
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4753:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
exports = module.exports = __webpack_require__(290)(true);
|
|
// imports
|
|
|
|
|
|
// module
|
|
exports.push([module.i, ".jupyter_data_sets_area{height:100%;background:#fff}.jupyter_data_sets_area .jupyter_h2_title{height:44px;line-height:44px;background:#fff;padding:0 30px;font-size:16px;box-sizing:border-box;border-bottom:1px solid #eee}.jupyter_data_sets_area .jupyter_h2_title .jupyter_data_icon{color:#1890ff;font-size:24px;position:relative;top:2px;transform:scale(1.5);margin-right:5px}.jupyter_data_sets_area .jupyter_data_list,.jupyter_data_sets_area .jupyter_empty{height:calc(100vh - 160px);overflow-y:auto}.jupyter_data_sets_area .jupyter_data_list .jupyter_item{line-height:45px;border-bottom:1px solid #eee;padding:0 30px 0 60px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;transition:.3s}.jupyter_data_sets_area .jupyter_data_list .jupyter_item:hover{background-color:hsla(0,0%,92%,.3)}.jupyter_data_sets_area .jupyter_data_list .jupyter_item .jupyter_icon{color:#4abc7d;font-size:16px;transform:scale(1.2);margin-right:5px}.jupyter_data_sets_area .jupyter_data_list .jupyter_item .jupyter_name{color:#000;font-size:16px}.jupyter_data_sets_area .jupyter_empty{display:flex;align-items:center;justify-content:center;width:100%}.jupyter_data_sets_area .jupyter_pagination{display:flex;justify-content:center;align-items:center;height:56px;box-sizing:border-box;border-top:1px solid #eee}", "", {"version":3,"sources":["/Users/alec/educoder/public/react/src/modules/tpm/jupyter/leftPane/index.scss"],"names":[],"mappings":"AAAA,wBAAwB,YAAY,eAAe,CAAC,0CAA0C,YAAY,iBAAiB,gBAAgB,eAAe,eAAe,sBAAsB,4BAA4B,CAAC,6DAA6D,cAAc,eAAe,kBAAkB,QAAQ,qBAAqB,gBAAgB,CAAC,kFAAkF,2BAA2B,eAAe,CAAC,yDAAyD,iBAAiB,6BAA6B,sBAAsB,gBAAgB,uBAAuB,mBAAmB,eAAe,cAAc,CAAC,+DAA+D,kCAAsC,CAAC,uEAAuE,cAAc,eAAe,qBAAqB,gBAAgB,CAAC,uEAAuE,WAAW,cAAc,CAAC,uCAAuC,aAAa,mBAAmB,uBAAuB,UAAU,CAAC,4CAA4C,aAAa,uBAAuB,mBAAmB,YAAY,sBAAsB,yBAAyB,CAAC","file":"index.scss","sourcesContent":[".jupyter_data_sets_area{height:100%;background:#fff}.jupyter_data_sets_area .jupyter_h2_title{height:44px;line-height:44px;background:#fff;padding:0 30px;font-size:16px;box-sizing:border-box;border-bottom:1px solid #eee}.jupyter_data_sets_area .jupyter_h2_title .jupyter_data_icon{color:#1890ff;font-size:24px;position:relative;top:2px;transform:scale(1.5);margin-right:5px}.jupyter_data_sets_area .jupyter_data_list,.jupyter_data_sets_area .jupyter_empty{height:calc(100vh - 160px);overflow-y:auto}.jupyter_data_sets_area .jupyter_data_list .jupyter_item{line-height:45px;border-bottom:1px solid #eee;padding:0 30px 0 60px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;transition:.3s}.jupyter_data_sets_area .jupyter_data_list .jupyter_item:hover{background-color:rgba(235,235,235,0.3)}.jupyter_data_sets_area .jupyter_data_list .jupyter_item .jupyter_icon{color:#4abc7d;font-size:16px;transform:scale(1.2);margin-right:5px}.jupyter_data_sets_area .jupyter_data_list .jupyter_item .jupyter_name{color:#000;font-size:16px}.jupyter_data_sets_area .jupyter_empty{display:flex;align-items:center;justify-content:center;width:100%}.jupyter_data_sets_area .jupyter_pagination{display:flex;justify-content:center;align-items:center;height:56px;box-sizing:border-box;border-top:1px solid #eee}\n"],"sourceRoot":""}]);
|
|
|
|
// exports
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4754:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_button_style_css__ = __webpack_require__(87);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_button_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_button_style_css__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_button__ = __webpack_require__(73);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_button___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd_lib_button__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_spin_style_css__ = __webpack_require__(71);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_spin_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_antd_lib_spin_style_css__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_spin__ = __webpack_require__(72);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_spin___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_antd_lib_spin__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__index_scss__ = __webpack_require__(4755);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__index_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__index_scss__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
|
|
var _slicedToArray=function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"])_i["return"]();}finally{if(_d)throw _e;}}return _arr;}return function(arr,i){if(Array.isArray(arr)){return arr;}else if(Symbol.iterator in Object(arr)){return sliceIterator(arr,i);}else{throw new TypeError("Invalid attempt to destructure non-iterable instance");}};}();/*
|
|
* @Description:
|
|
* @Author: tangjiang
|
|
* @Github:
|
|
* @Date: 2019-12-12 15:04:20
|
|
* @LastEditors: tangjiang
|
|
* @LastEditTime: 2019-12-13 11:25:22
|
|
*/function RightPane(props){var status=props.status,url=props.url,onReloadUrl=props.onReloadUrl,onSave=props.onSave,loading=props.loading;var _useState=Object(__WEBPACK_IMPORTED_MODULE_5_react__["useState"])(function(){return loadInit;}),_useState2=_slicedToArray(_useState,2),renderCtx=_useState2[0],setRenderCtx=_useState2[1];// 重新获取 url
|
|
var handleClickReload=function handleClickReload(){onReloadUrl&&onReloadUrl();};var loadInit=__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('div',{className:'jupyter_loading_init'},__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_antd_lib_spin___default.a,{tip:'\u52A0\u8F7D\u4E2D...'}));var loadError=__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('div',{className:'jupyter_load_url_error'},__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('span',{className:'iconfont icon-jiazaishibai1 icon-error'}),__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('p',{className:'jupyter_error_txt'},'\u5B9E\u8BAD\u52A0\u8F7D\u5931\u8D25\uFF0C',__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('span',{className:'jupyter_reload',onClick:handleClickReload},'\u91CD\u65B0\u52A0\u8F7D')));// 保存
|
|
var handleClickSubmit=function handleClickSubmit(){console.log('调用了保存接口....');onSave&&onSave();};Object(__WEBPACK_IMPORTED_MODULE_5_react__["useEffect"])(function(){if(status===-1){setRenderCtx(function(){return loadInit;});}else if(status===0&&url){setRenderCtx(function(){return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('div',{className:'jupyter_result'},__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('div',{className:'jupyter_iframe'},__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('iframe',{title:' ',width:'100%',height:'100%',src:url,className:'jupyter_iframe_style'})),__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('div',{className:'jupyter_submit'},__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_antd_lib_button___default.a,{loading:loading,type:'primary',onClick:handleClickSubmit},'\u4FDD\u5B58')));});}else{setRenderCtx(function(){return loadError;});}},[status,url,loading]);return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('div',{className:'jupyter_right_pane_area'},renderCtx);}/* harmony default export */ __webpack_exports__["a"] = (RightPane);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4755:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
|
|
// load the styles
|
|
var content = __webpack_require__(4756);
|
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
// Prepare cssTransformation
|
|
var transform;
|
|
|
|
var options = {"hmr":true}
|
|
options.transform = transform
|
|
// add the styles to the DOM
|
|
var update = __webpack_require__(291)(content, options);
|
|
if(content.locals) module.exports = content.locals;
|
|
// Hot Module Replacement
|
|
if(false) {
|
|
// When the styles change, update the <style> tags
|
|
if(!content.locals) {
|
|
module.hot.accept("!!../../../../../node_modules/_css-loader@0.28.7@css-loader/index.js??ref--1-oneOf-3-1!../../../../../node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js!./index.scss", function() {
|
|
var newContent = require("!!../../../../../node_modules/_css-loader@0.28.7@css-loader/index.js??ref--1-oneOf-3-1!../../../../../node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js!./index.scss");
|
|
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
|
update(newContent);
|
|
});
|
|
}
|
|
// When the module is disposed, remove the <style> tags
|
|
module.hot.dispose(function() { update(); });
|
|
}
|
|
|
|
/***/ }),
|
|
|
|
/***/ 4756:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
exports = module.exports = __webpack_require__(290)(true);
|
|
// imports
|
|
|
|
|
|
// module
|
|
exports.push([module.i, ".jupyter_right_pane_area{position:relative;height:calc(100vh - 60px)}.jupyter_right_pane_area .jupyter_load_url_error,.jupyter_right_pane_area .jupyter_loading_init{display:flex;position:relative;align-items:center;justify-content:center;height:100%}.jupyter_right_pane_area .jupyter_load_url_error:before,.jupyter_right_pane_area .jupyter_loading_init:before{position:absolute;left:0;right:0;top:0;bottom:0;content:\"\"}.jupyter_right_pane_area .jupyter_loading_init:before{background-color:rgba(0,0,0,.2)}.jupyter_right_pane_area .jupyter_load_url_error{display:flex;flex-direction:column;justify-content:center;align-items:center}.jupyter_right_pane_area .jupyter_load_url_error .jupyter_error_txt{position:relative;z-index:1;font-size:12px}.jupyter_right_pane_area .jupyter_load_url_error .jupyter_error_txt .jupyter_reload{cursor:pointer;color:#1890ff}.jupyter_right_pane_area .jupyter_load_url_error .icon-error{position:relative;color:#dce0e6;transform:scale(5);top:-35px}.jupyter_right_pane_area .jupyter_result{height:100%}.jupyter_right_pane_area .jupyter_result .jupyter_iframe{height:calc(100% - 56px)}.jupyter_right_pane_area .jupyter_result .jupyter_iframe .jupyter_iframe_style{border:none;outline:none}.jupyter_right_pane_area .jupyter_result .jupyter_submit{display:flex;align-items:center;height:56px;justify-content:flex-end;padding-right:30px}", "", {"version":3,"sources":["/Users/alec/educoder/public/react/src/modules/tpm/jupyter/rightPane/index.scss"],"names":[],"mappings":"AAAA,yBAAyB,kBAAkB,yBAAyB,CAAC,gGAAgG,aAAa,kBAAkB,mBAAmB,uBAAuB,WAAW,CAAC,8GAAgH,kBAAkB,OAAO,QAAQ,MAAM,SAAS,UAAU,CAAC,sDAAuD,+BAAgC,CAAC,iDAAiD,aAAa,sBAAsB,uBAAuB,kBAAkB,CAAC,oEAAoE,kBAAkB,UAAU,cAAc,CAAC,oFAAoF,eAAe,aAAa,CAAC,6DAA6D,kBAAkB,cAAc,mBAAmB,SAAS,CAAC,yCAAyC,WAAW,CAAC,yDAAyD,wBAAwB,CAAC,+EAA+E,YAAY,YAAY,CAAC,yDAAyD,aAAa,mBAAmB,YAAY,yBAAyB,kBAAkB,CAAC","file":"index.scss","sourcesContent":[".jupyter_right_pane_area{position:relative;height:calc(100vh - 60px)}.jupyter_right_pane_area .jupyter_load_url_error,.jupyter_right_pane_area .jupyter_loading_init{display:flex;position:relative;align-items:center;justify-content:center;height:100%}.jupyter_right_pane_area .jupyter_load_url_error::before,.jupyter_right_pane_area .jupyter_loading_init::before{position:absolute;left:0;right:0;top:0;bottom:0;content:''}.jupyter_right_pane_area .jupyter_loading_init::before{background-color:rgba(0,0,0,0.2)}.jupyter_right_pane_area .jupyter_load_url_error{display:flex;flex-direction:column;justify-content:center;align-items:center}.jupyter_right_pane_area .jupyter_load_url_error .jupyter_error_txt{position:relative;z-index:1;font-size:12px}.jupyter_right_pane_area .jupyter_load_url_error .jupyter_error_txt .jupyter_reload{cursor:pointer;color:#1890ff}.jupyter_right_pane_area .jupyter_load_url_error .icon-error{position:relative;color:#DCE0E6;transform:scale(5);top:-35px}.jupyter_right_pane_area .jupyter_result{height:100%}.jupyter_right_pane_area .jupyter_result .jupyter_iframe{height:calc(100% - 56px)}.jupyter_right_pane_area .jupyter_result .jupyter_iframe .jupyter_iframe_style{border:none;outline:none}.jupyter_right_pane_area .jupyter_result .jupyter_submit{display:flex;align-items:center;height:56px;justify-content:flex-end;padding-right:30px}\n"],"sourceRoot":""}]);
|
|
|
|
// exports
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 811:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_button_style_css__ = __webpack_require__(87);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_button_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_button_style_css__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_button__ = __webpack_require__(73);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_button___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd_lib_button__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_modal_style_css__ = __webpack_require__(30);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_modal_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_antd_lib_modal_style_css__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_modal__ = __webpack_require__(31);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_modal___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_antd_lib_modal__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__index_scss__ = __webpack_require__(4749);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__index_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__index_scss__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_split_pane__ = __webpack_require__(2849);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_redux__ = __webpack_require__(327);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__developer_components_userInfo__ = __webpack_require__(2282);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__redux_actions__ = __webpack_require__(1648);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__leftPane__ = __webpack_require__(4751);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__rightPane__ = __webpack_require__(4754);
|
|
var _slicedToArray=function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"])_i["return"]();}finally{if(_d)throw _e;}}return _arr;}return function(arr,i){if(Array.isArray(arr)){return arr;}else if(Symbol.iterator in Object(arr)){return sliceIterator(arr,i);}else{throw new TypeError("Invalid attempt to destructure non-iterable instance");}};}();/*
|
|
* @Description: jupyter tpi
|
|
* @Author: tangjiang
|
|
* @Github:
|
|
* @Date: 2019-12-11 08:35:23
|
|
* @LastEditors: tangjiang
|
|
* @LastEditTime: 2019-12-13 15:25:50
|
|
*/function JupyterTPI(props){// 获取 identifier 值
|
|
var _props$match$params=props.match.params,params=_props$match$params===undefined?{}:_props$match$params,url=props.url,loading=props.loading,total=props.total,pagination=props.pagination,dataSets=props.dataSets,jupyter_info=props.jupyter_info,getJupyterInfo=props.getJupyterInfo,syncJupyterCode=props.syncJupyterCode,jupyter_tpi_url_state=props.jupyter_tpi_url_state,getJupyterTpiDataSet=props.getJupyterTpiDataSet,getJupyterTpiUrl=props.getJupyterTpiUrl,saveJupyterTpi=props.saveJupyterTpi,changeLoadingState=props.changeLoadingState,changeGetJupyterUrlState=props.changeGetJupyterUrlState,jupyter_identifier=props.jupyter_identifier,changeCurrentPage=props.changeCurrentPage;var identifier=params.identifier;var _useState=Object(__WEBPACK_IMPORTED_MODULE_5_react__["useState"])({}),_useState2=_slicedToArray(_useState,2),userInfo=_useState2[0],setUserInfo=_useState2[1];var _useState3=Object(__WEBPACK_IMPORTED_MODULE_5_react__["useState"])({}),_useState4=_slicedToArray(_useState3,2),jupyterInfo=_useState4[0],setJupyterInfo=_useState4[1];var _useState5=Object(__WEBPACK_IMPORTED_MODULE_5_react__["useState"])(true),_useState6=_slicedToArray(_useState5,2),updateTip=_useState6[0],setUpdateTip=_useState6[1];var _useState7=Object(__WEBPACK_IMPORTED_MODULE_5_react__["useState"])(''),_useState8=_slicedToArray(_useState7,2),myIdentifier=_useState8[0],setMyIdentifier=_useState8[1];Object(__WEBPACK_IMPORTED_MODULE_5_react__["useEffect"])(function(){/* 先调用 jupyter的 TPI 接口,
|
|
* 获取 用户信息,
|
|
* 实训的 identifier, 状态, 名称, 是否被修改等信息
|
|
*/getJupyterInfo(identifier);},[identifier]);Object(__WEBPACK_IMPORTED_MODULE_5_react__["useEffect"])(function(){// 设置jupyter信息
|
|
setJupyterInfo(jupyter_info||{});var user=jupyter_info.user,tpm_modified=jupyter_info.tpm_modified,myshixun_identifier=jupyter_info.myshixun_identifier;if(user){setUserInfo(user);}if(myshixun_identifier){setMyIdentifier(myshixun_identifier);}// 同步代码
|
|
if(tpm_modified&&updateTip&&myshixun_identifier){setUpdateTip(false);__WEBPACK_IMPORTED_MODULE_3_antd_lib_modal___default.a.confirm({title:'更新通知',content:__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('div',{className:'update_notice'},__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('p',{className:'update_txt'},'\u5173\u5361\u4EFB\u52A1\u7684\u4EE3\u7801\u6587\u4EF6\u6709\u66F4\u65B0\u5566'),__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('p',{className:'update_txt'},'\u66F4\u65B0\u64CD\u4F5C\u5C06\u4FDD\u7559\u5DF2\u5B8C\u6210\u7684\u8BC4\u6D4B\u8BB0\u5F55\u548C\u6210\u7EE9'),__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('p',{className:'update_txt'},'\u8FD8\u672A\u5B8C\u6210\u8BC4\u6D4B\u7684\u4EFB\u52A1\u4EE3\u7801\uFF0C\u8BF7\u81EA\u884C\u4FDD\u5B58')),okText:'确定',cancelText:'取消',onOk:function onOk(){syncJupyterCode(myshixun_identifier,'同步成功');}});}},[props]);// 重置实训
|
|
var handleClickResetTpi=function handleClickResetTpi(){__WEBPACK_IMPORTED_MODULE_3_antd_lib_modal___default.a.confirm({title:'重置实训',content:__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('p',{style:{lineHeight:'24px'}},'\u4F60\u5728\u672C\u6587\u4EF6\u4E2D\u4FEE\u6539\u7684\u5185\u5BB9\u5C06\u4E22\u5931,',__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('br',null),'\u662F\u5426\u786E\u5B9A\u91CD\u65B0\u52A0\u8F7D\u521D\u59CB\u4EE3\u7801\uFF1F'),okText:'确定',cancelText:'取消',onOk:function onOk(){console.log('调用重置代码....',myIdentifier);if(myIdentifier){syncJupyterCode(myIdentifier,'重置成功');}}});};// 退出实训
|
|
var handleClickQuitTpi=function handleClickQuitTpi(){// console.log(jupyterInfo);
|
|
var identifier=jupyterInfo.identifier;if(!identifier)return;props.history.push('/shixuns/'+identifier+'/challenges');};// 重新获取 jupyter url
|
|
var handleOnReloadUrl=function handleOnReloadUrl(id){// console.log('jupyter 信息: ', jupyterInfo);
|
|
// 改变加载状态值
|
|
changeGetJupyterUrlState(-1);getJupyterTpiUrl({identifier:myIdentifier});};// 保存代码
|
|
var handleOnSave=function handleOnSave(){// 改变按钮状态
|
|
changeLoadingState(true);saveJupyterTpi();};// 分页信息改变时
|
|
var handlePageChange=function handlePageChange(current){// 改变当前页
|
|
changeCurrentPage(current);// 分页查找数据
|
|
getJupyterTpiDataSet(jupyter_identifier);};return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('div',{className:'jupyter_area'},__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('div',{className:'jupyter_header'},__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__developer_components_userInfo__["a" /* default */],{userInfo:userInfo}),__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('p',{className:'jupyter_title'},__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('span',{className:'title_desc',style:{marginTop:'20px'}},jupyterInfo.name),__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('span',{className:'title_time'})),__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('p',{className:'jupyter_btn'},__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_antd_lib_button___default.a,{className:'btn_common',type:'link',icon:'sync',onClick:handleClickResetTpi},'\u91CD\u7F6E\u5B9E\u8BAD'),__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_antd_lib_button___default.a,{className:'btn_common',type:'link',icon:'poweroff',onClick:handleClickQuitTpi},'\u9000\u51FA\u5B9E\u8BAD'))),__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('div',{className:'jupyter_ctx'},__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6_react_split_pane__["a" /* default */],{split:'vertical',minSize:350,maxSize:-350,defaultSize:'30%'},__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('div',{className:'split-pane-left'},__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10__leftPane__["a" /* default */],{dataSets:dataSets,total:total,pagination:pagination,onPageChange:handlePageChange})),__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6_react_split_pane__["a" /* default */],{split:'vertical',defaultSize:'100%',allowResize:false},__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11__rightPane__["a" /* default */],{identifier:myIdentifier,status:jupyter_tpi_url_state,url:url,loading:loading,onReloadUrl:handleOnReloadUrl,onSave:handleOnSave}),__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('div',null)))));}var mapStateToProps=function mapStateToProps(state){var _state$jupyterReducer=state.jupyterReducer,jupyter_info=_state$jupyterReducer.jupyter_info,jupyter_tpi_url=_state$jupyterReducer.jupyter_tpi_url,jupyter_data_set=_state$jupyterReducer.jupyter_data_set,jupyter_tpi_url_state=_state$jupyterReducer.jupyter_tpi_url_state,jupyter_data_set_count=_state$jupyterReducer.jupyter_data_set_count,jupyter_pagination=_state$jupyterReducer.jupyter_pagination,jupyter_identifier=_state$jupyterReducer.jupyter_identifier;var loading=state.commonReducer.loading;return{loading:loading,jupyter_info:jupyter_info,url:jupyter_tpi_url,dataSets:jupyter_data_set,jupyter_tpi_url_state:jupyter_tpi_url_state,total:jupyter_data_set_count,pagination:jupyter_pagination,jupyter_identifier:jupyter_identifier};};var mapDispatchToProps=function mapDispatchToProps(dispatch){return{changeGetJupyterUrlState:function changeGetJupyterUrlState(status){return dispatch(__WEBPACK_IMPORTED_MODULE_9__redux_actions__["a" /* default */].changeGetJupyterUrlState(status));},getJupyterInfo:function getJupyterInfo(identifier){return dispatch(__WEBPACK_IMPORTED_MODULE_9__redux_actions__["a" /* default */].getJupyterInfo(identifier));},// 重置代码
|
|
syncJupyterCode:function syncJupyterCode(identifier,msg){return dispatch(__WEBPACK_IMPORTED_MODULE_9__redux_actions__["a" /* default */].syncJupyterCode(identifier,msg));},getJupyterTpiDataSet:function getJupyterTpiDataSet(identifier,current){return dispatch(__WEBPACK_IMPORTED_MODULE_9__redux_actions__["a" /* default */].getJupyterTpiDataSet(identifier,current));},getJupyterTpiUrl:function getJupyterTpiUrl(identifier){return dispatch(__WEBPACK_IMPORTED_MODULE_9__redux_actions__["a" /* default */].getJupyterTpiUrl(identifier));},saveJupyterTpi:function saveJupyterTpi(){return dispatch(__WEBPACK_IMPORTED_MODULE_9__redux_actions__["a" /* default */].saveJupyterTpi());},changeLoadingState:function changeLoadingState(flag){return dispatch(__WEBPACK_IMPORTED_MODULE_9__redux_actions__["a" /* default */].changeLoadingState(flag));},changeCurrentPage:function changeCurrentPage(current){return dispatch(__WEBPACK_IMPORTED_MODULE_9__redux_actions__["a" /* default */].changeCurrentPage(current));}};};/* harmony default export */ __webpack_exports__["default"] = (Object(__WEBPACK_IMPORTED_MODULE_7_react_redux__["b" /* connect */])(mapStateToProps,mapDispatchToProps)(JupyterTPI));
|
|
|
|
/***/ }),
|
|
|
|
/***/ 837:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
ZERO: 48,
|
|
NINE: 57,
|
|
|
|
NUMPAD_ZERO: 96,
|
|
NUMPAD_NINE: 105,
|
|
|
|
BACKSPACE: 8,
|
|
DELETE: 46,
|
|
ENTER: 13,
|
|
|
|
ARROW_UP: 38,
|
|
ARROW_DOWN: 40
|
|
});
|
|
|
|
/***/ }),
|
|
|
|
/***/ 848:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
__webpack_require__(27);
|
|
|
|
__webpack_require__(901);
|
|
|
|
__webpack_require__(298);
|
|
//# sourceMappingURL=css.js.map
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 849:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports["default"] = void 0;
|
|
|
|
var _Pagination = _interopRequireDefault(__webpack_require__(911));
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
|
|
var _default = _Pagination["default"];
|
|
exports["default"] = _default;
|
|
//# sourceMappingURL=index.js.map
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 860:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Pagination__ = __webpack_require__(903);
|
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__Pagination__["a"]; });
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 901:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
|
|
// load the styles
|
|
var content = __webpack_require__(910);
|
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
// Prepare cssTransformation
|
|
var transform;
|
|
|
|
var options = {"hmr":false}
|
|
options.transform = transform
|
|
// add the styles to the DOM
|
|
var update = __webpack_require__(291)(content, options);
|
|
if(content.locals) module.exports = content.locals;
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 903:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(66);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__ = __webpack_require__(26);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(11);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__ = __webpack_require__(44);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(13);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__ = __webpack_require__(14);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_classnames__ = __webpack_require__(3);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_classnames__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types__ = __webpack_require__(1);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__Pager__ = __webpack_require__(904);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Options__ = __webpack_require__(905);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__KeyCode__ = __webpack_require__(837);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__locale_zh_CN__ = __webpack_require__(906);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_react_lifecycles_compat__ = __webpack_require__(7);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function noop() {}
|
|
|
|
function isInteger(value) {
|
|
return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;
|
|
}
|
|
|
|
function defaultItemRender(page, type, element) {
|
|
return element;
|
|
}
|
|
|
|
function calculatePage(p, state, props) {
|
|
var pageSize = p;
|
|
if (typeof pageSize === 'undefined') {
|
|
pageSize = state.pageSize;
|
|
}
|
|
return Math.floor((props.total - 1) / pageSize) + 1;
|
|
}
|
|
|
|
var Pagination = function (_React$Component) {
|
|
__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default()(Pagination, _React$Component);
|
|
|
|
function Pagination(props) {
|
|
__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Pagination);
|
|
|
|
var _this = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default()(this, (Pagination.__proto__ || Object.getPrototypeOf(Pagination)).call(this, props));
|
|
|
|
_initialiseProps.call(_this);
|
|
|
|
var hasOnChange = props.onChange !== noop;
|
|
var hasCurrent = 'current' in props;
|
|
if (hasCurrent && !hasOnChange) {
|
|
console.warn('Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.'); // eslint-disable-line
|
|
}
|
|
|
|
var current = props.defaultCurrent;
|
|
if ('current' in props) {
|
|
current = props.current;
|
|
}
|
|
|
|
var pageSize = props.defaultPageSize;
|
|
if ('pageSize' in props) {
|
|
pageSize = props.pageSize;
|
|
}
|
|
|
|
_this.state = {
|
|
current: current,
|
|
currentInputValue: current,
|
|
pageSize: pageSize
|
|
};
|
|
return _this;
|
|
}
|
|
|
|
__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default()(Pagination, [{
|
|
key: 'componentDidUpdate',
|
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
// When current page change, fix focused style of prev item
|
|
// A hacky solution of https://github.com/ant-design/ant-design/issues/8948
|
|
var prefixCls = this.props.prefixCls;
|
|
|
|
if (prevState.current !== this.state.current && this.paginationNode) {
|
|
var lastCurrentNode = this.paginationNode.querySelector('.' + prefixCls + '-item-' + prevState.current);
|
|
if (lastCurrentNode && document.activeElement === lastCurrentNode) {
|
|
lastCurrentNode.blur();
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
key: 'getValidValue',
|
|
value: function getValidValue(e) {
|
|
var inputValue = e.target.value;
|
|
var currentInputValue = this.state.currentInputValue;
|
|
|
|
var value = void 0;
|
|
if (inputValue === '') {
|
|
value = inputValue;
|
|
} else if (isNaN(Number(inputValue))) {
|
|
value = currentInputValue;
|
|
} else {
|
|
value = Number(inputValue);
|
|
}
|
|
return value;
|
|
}
|
|
}, {
|
|
key: 'render',
|
|
value: function render() {
|
|
var _props = this.props,
|
|
prefixCls = _props.prefixCls,
|
|
className = _props.className,
|
|
disabled = _props.disabled;
|
|
|
|
// When hideOnSinglePage is true and there is only 1 page, hide the pager
|
|
|
|
if (this.props.hideOnSinglePage === true && this.props.total <= this.state.pageSize) {
|
|
return null;
|
|
}
|
|
|
|
var props = this.props;
|
|
var locale = props.locale;
|
|
|
|
var allPages = calculatePage(undefined, this.state, this.props);
|
|
var pagerList = [];
|
|
var jumpPrev = null;
|
|
var jumpNext = null;
|
|
var firstPager = null;
|
|
var lastPager = null;
|
|
var gotoButton = null;
|
|
|
|
var goButton = props.showQuickJumper && props.showQuickJumper.goButton;
|
|
var pageBufferSize = props.showLessItems ? 1 : 2;
|
|
var _state = this.state,
|
|
current = _state.current,
|
|
pageSize = _state.pageSize;
|
|
|
|
|
|
var prevPage = current - 1 > 0 ? current - 1 : 0;
|
|
var nextPage = current + 1 < allPages ? current + 1 : allPages;
|
|
|
|
var dataOrAriaAttributeProps = Object.keys(props).reduce(function (prev, key) {
|
|
if (key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-' || key === 'role') {
|
|
prev[key] = props[key];
|
|
}
|
|
return prev;
|
|
}, {});
|
|
|
|
if (props.simple) {
|
|
if (goButton) {
|
|
if (typeof goButton === 'boolean') {
|
|
gotoButton = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
|
'button',
|
|
{
|
|
type: 'button',
|
|
onClick: this.handleGoTO,
|
|
onKeyUp: this.handleGoTO
|
|
},
|
|
locale.jump_to_confirm
|
|
);
|
|
} else {
|
|
gotoButton = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
|
'span',
|
|
{
|
|
onClick: this.handleGoTO,
|
|
onKeyUp: this.handleGoTO
|
|
},
|
|
goButton
|
|
);
|
|
}
|
|
gotoButton = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
|
'li',
|
|
{
|
|
title: props.showTitle ? '' + locale.jump_to + this.state.current + '/' + allPages : null,
|
|
className: prefixCls + '-simple-pager'
|
|
},
|
|
gotoButton
|
|
);
|
|
}
|
|
|
|
return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
|
'ul',
|
|
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({
|
|
className: prefixCls + ' ' + prefixCls + '-simple ' + props.className,
|
|
style: props.style,
|
|
ref: this.savePaginationNode
|
|
}, dataOrAriaAttributeProps),
|
|
__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
|
'li',
|
|
{
|
|
title: props.showTitle ? locale.prev_page : null,
|
|
onClick: this.prev,
|
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
onKeyPress: this.runIfEnterPrev,
|
|
className: (this.hasPrev() ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-prev',
|
|
'aria-disabled': !this.hasPrev()
|
|
},
|
|
props.itemRender(prevPage, 'prev', this.getItemIcon(props.prevIcon))
|
|
),
|
|
__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
|
'li',
|
|
{
|
|
title: props.showTitle ? this.state.current + '/' + allPages : null,
|
|
className: prefixCls + '-simple-pager'
|
|
},
|
|
__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('input', {
|
|
type: 'text',
|
|
value: this.state.currentInputValue,
|
|
onKeyDown: this.handleKeyDown,
|
|
onKeyUp: this.handleKeyUp,
|
|
onChange: this.handleKeyUp,
|
|
size: '3'
|
|
}),
|
|
__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
|
'span',
|
|
{ className: prefixCls + '-slash' },
|
|
'/'
|
|
),
|
|
allPages
|
|
),
|
|
__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
|
'li',
|
|
{
|
|
title: props.showTitle ? locale.next_page : null,
|
|
onClick: this.next,
|
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
onKeyPress: this.runIfEnterNext,
|
|
className: (this.hasNext() ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-next',
|
|
'aria-disabled': !this.hasNext()
|
|
},
|
|
props.itemRender(nextPage, 'next', this.getItemIcon(props.nextIcon))
|
|
),
|
|
gotoButton
|
|
);
|
|
}
|
|
|
|
if (allPages <= 5 + pageBufferSize * 2) {
|
|
var pagerProps = {
|
|
locale: locale,
|
|
rootPrefixCls: prefixCls,
|
|
onClick: this.handleChange,
|
|
onKeyPress: this.runIfEnter,
|
|
showTitle: props.showTitle,
|
|
itemRender: props.itemRender
|
|
};
|
|
if (!allPages) {
|
|
pagerList.push(__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__Pager__["a" /* default */], __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, pagerProps, {
|
|
key: 'noPager',
|
|
page: allPages,
|
|
className: prefixCls + '-disabled'
|
|
})));
|
|
}
|
|
for (var i = 1; i <= allPages; i++) {
|
|
var active = this.state.current === i;
|
|
pagerList.push(__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__Pager__["a" /* default */], __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, pagerProps, {
|
|
key: i,
|
|
page: i,
|
|
active: active
|
|
})));
|
|
}
|
|
} else {
|
|
var prevItemTitle = props.showLessItems ? locale.prev_3 : locale.prev_5;
|
|
var nextItemTitle = props.showLessItems ? locale.next_3 : locale.next_5;
|
|
if (props.showPrevNextJumpers) {
|
|
var jumpPrevClassString = prefixCls + '-jump-prev';
|
|
if (props.jumpPrevIcon) {
|
|
jumpPrevClassString += ' ' + prefixCls + '-jump-prev-custom-icon';
|
|
}
|
|
jumpPrev = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
|
'li',
|
|
{
|
|
title: props.showTitle ? prevItemTitle : null,
|
|
key: 'prev',
|
|
onClick: this.jumpPrev,
|
|
tabIndex: '0',
|
|
onKeyPress: this.runIfEnterJumpPrev,
|
|
className: jumpPrevClassString
|
|
},
|
|
props.itemRender(this.getJumpPrevPage(), 'jump-prev', this.getItemIcon(props.jumpPrevIcon))
|
|
);
|
|
var jumpNextClassString = prefixCls + '-jump-next';
|
|
if (props.jumpNextIcon) {
|
|
jumpNextClassString += ' ' + prefixCls + '-jump-next-custom-icon';
|
|
}
|
|
jumpNext = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
|
'li',
|
|
{
|
|
title: props.showTitle ? nextItemTitle : null,
|
|
key: 'next',
|
|
tabIndex: '0',
|
|
onClick: this.jumpNext,
|
|
onKeyPress: this.runIfEnterJumpNext,
|
|
className: jumpNextClassString
|
|
},
|
|
props.itemRender(this.getJumpNextPage(), 'jump-next', this.getItemIcon(props.jumpNextIcon))
|
|
);
|
|
}
|
|
lastPager = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__Pager__["a" /* default */], {
|
|
locale: props.locale,
|
|
last: true,
|
|
rootPrefixCls: prefixCls,
|
|
onClick: this.handleChange,
|
|
onKeyPress: this.runIfEnter,
|
|
key: allPages,
|
|
page: allPages,
|
|
active: false,
|
|
showTitle: props.showTitle,
|
|
itemRender: props.itemRender
|
|
});
|
|
firstPager = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__Pager__["a" /* default */], {
|
|
locale: props.locale,
|
|
rootPrefixCls: prefixCls,
|
|
onClick: this.handleChange,
|
|
onKeyPress: this.runIfEnter,
|
|
key: 1,
|
|
page: 1,
|
|
active: false,
|
|
showTitle: props.showTitle,
|
|
itemRender: props.itemRender
|
|
});
|
|
|
|
var left = Math.max(1, current - pageBufferSize);
|
|
var right = Math.min(current + pageBufferSize, allPages);
|
|
|
|
if (current - 1 <= pageBufferSize) {
|
|
right = 1 + pageBufferSize * 2;
|
|
}
|
|
|
|
if (allPages - current <= pageBufferSize) {
|
|
left = allPages - pageBufferSize * 2;
|
|
}
|
|
|
|
for (var _i = left; _i <= right; _i++) {
|
|
var _active = current === _i;
|
|
pagerList.push(__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__Pager__["a" /* default */], {
|
|
locale: props.locale,
|
|
rootPrefixCls: prefixCls,
|
|
onClick: this.handleChange,
|
|
onKeyPress: this.runIfEnter,
|
|
key: _i,
|
|
page: _i,
|
|
active: _active,
|
|
showTitle: props.showTitle,
|
|
itemRender: props.itemRender
|
|
}));
|
|
}
|
|
|
|
if (current - 1 >= pageBufferSize * 2 && current !== 1 + 2) {
|
|
pagerList[0] = __WEBPACK_IMPORTED_MODULE_6_react___default.a.cloneElement(pagerList[0], {
|
|
className: prefixCls + '-item-after-jump-prev'
|
|
});
|
|
pagerList.unshift(jumpPrev);
|
|
}
|
|
if (allPages - current >= pageBufferSize * 2 && current !== allPages - 2) {
|
|
pagerList[pagerList.length - 1] = __WEBPACK_IMPORTED_MODULE_6_react___default.a.cloneElement(pagerList[pagerList.length - 1], {
|
|
className: prefixCls + '-item-before-jump-next'
|
|
});
|
|
pagerList.push(jumpNext);
|
|
}
|
|
|
|
if (left !== 1) {
|
|
pagerList.unshift(firstPager);
|
|
}
|
|
if (right !== allPages) {
|
|
pagerList.push(lastPager);
|
|
}
|
|
}
|
|
|
|
var totalText = null;
|
|
|
|
if (props.showTotal) {
|
|
totalText = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
|
'li',
|
|
{ className: prefixCls + '-total-text' },
|
|
props.showTotal(props.total, [props.total === 0 ? 0 : (current - 1) * pageSize + 1, current * pageSize > props.total ? props.total : current * pageSize])
|
|
);
|
|
}
|
|
var prevDisabled = !this.hasPrev() || !allPages;
|
|
var nextDisabled = !this.hasNext() || !allPages;
|
|
return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
|
'ul',
|
|
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({
|
|
className: __WEBPACK_IMPORTED_MODULE_7_classnames___default()(prefixCls, className, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()({}, prefixCls + '-disabled', disabled)),
|
|
style: props.style,
|
|
unselectable: 'unselectable',
|
|
ref: this.savePaginationNode
|
|
}, dataOrAriaAttributeProps),
|
|
totalText,
|
|
__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
|
'li',
|
|
{
|
|
title: props.showTitle ? locale.prev_page : null,
|
|
onClick: this.prev,
|
|
tabIndex: prevDisabled ? null : 0,
|
|
onKeyPress: this.runIfEnterPrev,
|
|
className: (!prevDisabled ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-prev',
|
|
'aria-disabled': prevDisabled
|
|
},
|
|
props.itemRender(prevPage, 'prev', this.getItemIcon(props.prevIcon))
|
|
),
|
|
pagerList,
|
|
__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(
|
|
'li',
|
|
{
|
|
title: props.showTitle ? locale.next_page : null,
|
|
onClick: this.next,
|
|
tabIndex: nextDisabled ? null : 0,
|
|
onKeyPress: this.runIfEnterNext,
|
|
className: (!nextDisabled ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-next',
|
|
'aria-disabled': nextDisabled
|
|
},
|
|
props.itemRender(nextPage, 'next', this.getItemIcon(props.nextIcon))
|
|
),
|
|
__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10__Options__["a" /* default */], {
|
|
disabled: disabled,
|
|
locale: props.locale,
|
|
rootPrefixCls: prefixCls,
|
|
selectComponentClass: props.selectComponentClass,
|
|
selectPrefixCls: props.selectPrefixCls,
|
|
changeSize: this.props.showSizeChanger ? this.changePageSize : null,
|
|
current: this.state.current,
|
|
pageSize: this.state.pageSize,
|
|
pageSizeOptions: this.props.pageSizeOptions,
|
|
quickGo: this.shouldDisplayQuickJumper() ? this.handleChange : null,
|
|
goButton: goButton
|
|
})
|
|
);
|
|
}
|
|
}], [{
|
|
key: 'getDerivedStateFromProps',
|
|
value: function getDerivedStateFromProps(props, prevState) {
|
|
var newState = {};
|
|
|
|
if ('current' in props) {
|
|
newState.current = props.current;
|
|
|
|
if (props.current !== prevState.current) {
|
|
newState.currentInputValue = newState.current;
|
|
}
|
|
}
|
|
|
|
if ('pageSize' in props && props.pageSize !== prevState.pageSize) {
|
|
var current = prevState.current;
|
|
var newCurrent = calculatePage(props.pageSize, prevState, props);
|
|
current = current > newCurrent ? newCurrent : current;
|
|
|
|
if (!('current' in props)) {
|
|
newState.current = current;
|
|
newState.currentInputValue = current;
|
|
}
|
|
newState.pageSize = props.pageSize;
|
|
}
|
|
|
|
return newState;
|
|
}
|
|
|
|
/**
|
|
* computed icon node that need to be rendered.
|
|
* @param {React.ReactNode | React.ComponentType<PaginationProps>} icon received icon.
|
|
* @returns {React.ReactNode}
|
|
*/
|
|
|
|
}]);
|
|
|
|
return Pagination;
|
|
}(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component);
|
|
|
|
Pagination.propTypes = {
|
|
disabled: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool,
|
|
prefixCls: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.string,
|
|
className: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.string,
|
|
current: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.number,
|
|
defaultCurrent: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.number,
|
|
total: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.number,
|
|
pageSize: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.number,
|
|
defaultPageSize: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.number,
|
|
onChange: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func,
|
|
hideOnSinglePage: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool,
|
|
showSizeChanger: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool,
|
|
showLessItems: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool,
|
|
onShowSizeChange: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func,
|
|
selectComponentClass: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func,
|
|
showPrevNextJumpers: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool,
|
|
showQuickJumper: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.object]),
|
|
showTitle: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool,
|
|
pageSizeOptions: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.string),
|
|
showTotal: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func,
|
|
locale: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.object,
|
|
style: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.object,
|
|
itemRender: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func,
|
|
prevIcon: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.node]),
|
|
nextIcon: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.node]),
|
|
jumpPrevIcon: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.node]),
|
|
jumpNextIcon: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.node])
|
|
};
|
|
Pagination.defaultProps = {
|
|
defaultCurrent: 1,
|
|
total: 0,
|
|
defaultPageSize: 10,
|
|
onChange: noop,
|
|
className: '',
|
|
selectPrefixCls: 'rc-select',
|
|
prefixCls: 'rc-pagination',
|
|
selectComponentClass: null,
|
|
hideOnSinglePage: false,
|
|
showPrevNextJumpers: true,
|
|
showQuickJumper: false,
|
|
showSizeChanger: false,
|
|
showLessItems: false,
|
|
showTitle: true,
|
|
onShowSizeChange: noop,
|
|
locale: __WEBPACK_IMPORTED_MODULE_12__locale_zh_CN__["a" /* default */],
|
|
style: {},
|
|
itemRender: defaultItemRender
|
|
};
|
|
|
|
var _initialiseProps = function _initialiseProps() {
|
|
var _this2 = this;
|
|
|
|
this.getJumpPrevPage = function () {
|
|
return Math.max(1, _this2.state.current - (_this2.props.showLessItems ? 3 : 5));
|
|
};
|
|
|
|
this.getJumpNextPage = function () {
|
|
return Math.min(calculatePage(undefined, _this2.state, _this2.props), _this2.state.current + (_this2.props.showLessItems ? 3 : 5));
|
|
};
|
|
|
|
this.getItemIcon = function (icon) {
|
|
var prefixCls = _this2.props.prefixCls;
|
|
|
|
var iconNode = icon || __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('a', { className: prefixCls + '-item-link' });
|
|
if (typeof icon === 'function') {
|
|
iconNode = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(icon, __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, _this2.props));
|
|
}
|
|
return iconNode;
|
|
};
|
|
|
|
this.savePaginationNode = function (node) {
|
|
_this2.paginationNode = node;
|
|
};
|
|
|
|
this.isValid = function (page) {
|
|
return isInteger(page) && page !== _this2.state.current;
|
|
};
|
|
|
|
this.shouldDisplayQuickJumper = function () {
|
|
var _props2 = _this2.props,
|
|
showQuickJumper = _props2.showQuickJumper,
|
|
pageSize = _props2.pageSize,
|
|
total = _props2.total;
|
|
|
|
if (total <= pageSize) {
|
|
return false;
|
|
}
|
|
return showQuickJumper;
|
|
};
|
|
|
|
this.handleKeyDown = function (e) {
|
|
if (e.keyCode === __WEBPACK_IMPORTED_MODULE_11__KeyCode__["a" /* default */].ARROW_UP || e.keyCode === __WEBPACK_IMPORTED_MODULE_11__KeyCode__["a" /* default */].ARROW_DOWN) {
|
|
e.preventDefault();
|
|
}
|
|
};
|
|
|
|
this.handleKeyUp = function (e) {
|
|
var value = _this2.getValidValue(e);
|
|
var currentInputValue = _this2.state.currentInputValue;
|
|
|
|
if (value !== currentInputValue) {
|
|
_this2.setState({
|
|
currentInputValue: value
|
|
});
|
|
}
|
|
if (e.keyCode === __WEBPACK_IMPORTED_MODULE_11__KeyCode__["a" /* default */].ENTER) {
|
|
_this2.handleChange(value);
|
|
} else if (e.keyCode === __WEBPACK_IMPORTED_MODULE_11__KeyCode__["a" /* default */].ARROW_UP) {
|
|
_this2.handleChange(value - 1);
|
|
} else if (e.keyCode === __WEBPACK_IMPORTED_MODULE_11__KeyCode__["a" /* default */].ARROW_DOWN) {
|
|
_this2.handleChange(value + 1);
|
|
}
|
|
};
|
|
|
|
this.changePageSize = function (size) {
|
|
var current = _this2.state.current;
|
|
var newCurrent = calculatePage(size, _this2.state, _this2.props);
|
|
current = current > newCurrent ? newCurrent : current;
|
|
// fix the issue:
|
|
// Once 'total' is 0, 'current' in 'onShowSizeChange' is 0, which is not correct.
|
|
if (newCurrent === 0) {
|
|
current = _this2.state.current;
|
|
}
|
|
|
|
if (typeof size === 'number') {
|
|
if (!('pageSize' in _this2.props)) {
|
|
_this2.setState({
|
|
pageSize: size
|
|
});
|
|
}
|
|
if (!('current' in _this2.props)) {
|
|
_this2.setState({
|
|
current: current,
|
|
currentInputValue: current
|
|
});
|
|
}
|
|
}
|
|
_this2.props.onShowSizeChange(current, size);
|
|
};
|
|
|
|
this.handleChange = function (p) {
|
|
var disabled = _this2.props.disabled;
|
|
|
|
|
|
var page = p;
|
|
if (_this2.isValid(page) && !disabled) {
|
|
var currentPage = calculatePage(undefined, _this2.state, _this2.props);
|
|
if (page > currentPage) {
|
|
page = currentPage;
|
|
} else if (page < 1) {
|
|
page = 1;
|
|
}
|
|
|
|
if (!('current' in _this2.props)) {
|
|
_this2.setState({
|
|
current: page,
|
|
currentInputValue: page
|
|
});
|
|
}
|
|
|
|
var pageSize = _this2.state.pageSize;
|
|
_this2.props.onChange(page, pageSize);
|
|
|
|
return page;
|
|
}
|
|
|
|
return _this2.state.current;
|
|
};
|
|
|
|
this.prev = function () {
|
|
if (_this2.hasPrev()) {
|
|
_this2.handleChange(_this2.state.current - 1);
|
|
}
|
|
};
|
|
|
|
this.next = function () {
|
|
if (_this2.hasNext()) {
|
|
_this2.handleChange(_this2.state.current + 1);
|
|
}
|
|
};
|
|
|
|
this.jumpPrev = function () {
|
|
_this2.handleChange(_this2.getJumpPrevPage());
|
|
};
|
|
|
|
this.jumpNext = function () {
|
|
_this2.handleChange(_this2.getJumpNextPage());
|
|
};
|
|
|
|
this.hasPrev = function () {
|
|
return _this2.state.current > 1;
|
|
};
|
|
|
|
this.hasNext = function () {
|
|
return _this2.state.current < calculatePage(undefined, _this2.state, _this2.props);
|
|
};
|
|
|
|
this.runIfEnter = function (event, callback) {
|
|
for (var _len = arguments.length, restParams = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
restParams[_key - 2] = arguments[_key];
|
|
}
|
|
|
|
if (event.key === 'Enter' || event.charCode === 13) {
|
|
callback.apply(undefined, restParams);
|
|
}
|
|
};
|
|
|
|
this.runIfEnterPrev = function (e) {
|
|
_this2.runIfEnter(e, _this2.prev);
|
|
};
|
|
|
|
this.runIfEnterNext = function (e) {
|
|
_this2.runIfEnter(e, _this2.next);
|
|
};
|
|
|
|
this.runIfEnterJumpPrev = function (e) {
|
|
_this2.runIfEnter(e, _this2.jumpPrev);
|
|
};
|
|
|
|
this.runIfEnterJumpNext = function (e) {
|
|
_this2.runIfEnter(e, _this2.jumpNext);
|
|
};
|
|
|
|
this.handleGoTO = function (e) {
|
|
if (e.keyCode === __WEBPACK_IMPORTED_MODULE_11__KeyCode__["a" /* default */].ENTER || e.type === 'click') {
|
|
_this2.handleChange(_this2.state.currentInputValue);
|
|
}
|
|
};
|
|
};
|
|
|
|
Object(__WEBPACK_IMPORTED_MODULE_13_react_lifecycles_compat__["polyfill"])(Pagination);
|
|
|
|
/* harmony default export */ __webpack_exports__["a"] = (Pagination);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 904:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(66);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(1);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_classnames__ = __webpack_require__(3);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_classnames__);
|
|
|
|
|
|
|
|
|
|
|
|
var Pager = function Pager(props) {
|
|
var _classNames;
|
|
|
|
var prefixCls = props.rootPrefixCls + '-item';
|
|
var cls = __WEBPACK_IMPORTED_MODULE_3_classnames___default()(prefixCls, prefixCls + '-' + props.page, (_classNames = {}, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_classNames, prefixCls + '-active', props.active), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_classNames, props.className, !!props.className), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_classNames, prefixCls + '-disabled', !props.page), _classNames));
|
|
|
|
var handleClick = function handleClick() {
|
|
props.onClick(props.page);
|
|
};
|
|
|
|
var handleKeyPress = function handleKeyPress(e) {
|
|
props.onKeyPress(e, props.onClick, props.page);
|
|
};
|
|
|
|
return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
|
|
'li',
|
|
{
|
|
title: props.showTitle ? props.page : null,
|
|
className: cls,
|
|
onClick: handleClick,
|
|
onKeyPress: handleKeyPress,
|
|
tabIndex: '0'
|
|
},
|
|
props.itemRender(props.page, 'page', __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
|
|
'a',
|
|
null,
|
|
props.page
|
|
))
|
|
);
|
|
};
|
|
|
|
Pager.propTypes = {
|
|
page: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number,
|
|
active: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
|
|
last: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
|
|
locale: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object,
|
|
className: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string,
|
|
showTitle: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
|
|
rootPrefixCls: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string,
|
|
onClick: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
|
|
onKeyPress: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
|
|
itemRender: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func
|
|
};
|
|
|
|
/* harmony default export */ __webpack_exports__["a"] = (Pager);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 905:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(11);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__ = __webpack_require__(44);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(13);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(14);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types__ = __webpack_require__(1);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__KeyCode__ = __webpack_require__(837);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Options = function (_React$Component) {
|
|
__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(Options, _React$Component);
|
|
|
|
function Options() {
|
|
var _ref;
|
|
|
|
var _temp, _this, _ret;
|
|
|
|
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default()(this, Options);
|
|
|
|
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
args[_key] = arguments[_key];
|
|
}
|
|
|
|
return _ret = (_temp = (_this = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, (_ref = Options.__proto__ || Object.getPrototypeOf(Options)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
|
|
goInputText: ''
|
|
}, _this.buildOptionText = function (value) {
|
|
return value + ' ' + _this.props.locale.items_per_page;
|
|
}, _this.changeSize = function (value) {
|
|
_this.props.changeSize(Number(value));
|
|
}, _this.handleChange = function (e) {
|
|
_this.setState({
|
|
goInputText: e.target.value
|
|
});
|
|
}, _this.handleBlur = function () {
|
|
var _this$props = _this.props,
|
|
goButton = _this$props.goButton,
|
|
quickGo = _this$props.quickGo;
|
|
|
|
if (goButton) {
|
|
return;
|
|
}
|
|
quickGo(_this.getValidValue());
|
|
}, _this.go = function (e) {
|
|
var goInputText = _this.state.goInputText;
|
|
|
|
if (goInputText === '') {
|
|
return;
|
|
}
|
|
if (e.keyCode === __WEBPACK_IMPORTED_MODULE_6__KeyCode__["a" /* default */].ENTER || e.type === 'click') {
|
|
_this.setState({
|
|
goInputText: ''
|
|
});
|
|
_this.props.quickGo(_this.getValidValue());
|
|
}
|
|
}, _temp), __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(_this, _ret);
|
|
}
|
|
|
|
__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default()(Options, [{
|
|
key: 'getValidValue',
|
|
value: function getValidValue() {
|
|
var _state = this.state,
|
|
goInputText = _state.goInputText,
|
|
current = _state.current;
|
|
|
|
return !goInputText || isNaN(goInputText) ? current : Number(goInputText);
|
|
}
|
|
}, {
|
|
key: 'render',
|
|
value: function render() {
|
|
var _this2 = this;
|
|
|
|
var _props = this.props,
|
|
pageSize = _props.pageSize,
|
|
pageSizeOptions = _props.pageSizeOptions,
|
|
locale = _props.locale,
|
|
rootPrefixCls = _props.rootPrefixCls,
|
|
changeSize = _props.changeSize,
|
|
quickGo = _props.quickGo,
|
|
goButton = _props.goButton,
|
|
selectComponentClass = _props.selectComponentClass,
|
|
buildOptionText = _props.buildOptionText,
|
|
selectPrefixCls = _props.selectPrefixCls,
|
|
disabled = _props.disabled;
|
|
var goInputText = this.state.goInputText;
|
|
|
|
var prefixCls = rootPrefixCls + '-options';
|
|
var Select = selectComponentClass;
|
|
var changeSelect = null;
|
|
var goInput = null;
|
|
var gotoButton = null;
|
|
|
|
if (!changeSize && !quickGo) {
|
|
return null;
|
|
}
|
|
|
|
if (changeSize && Select) {
|
|
var options = pageSizeOptions.map(function (opt, i) {
|
|
return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(
|
|
Select.Option,
|
|
{ key: i, value: opt },
|
|
(buildOptionText || _this2.buildOptionText)(opt)
|
|
);
|
|
});
|
|
|
|
changeSelect = __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(
|
|
Select,
|
|
{
|
|
disabled: disabled,
|
|
prefixCls: selectPrefixCls,
|
|
showSearch: false,
|
|
className: prefixCls + '-size-changer',
|
|
optionLabelProp: 'children',
|
|
dropdownMatchSelectWidth: false,
|
|
value: (pageSize || pageSizeOptions[0]).toString(),
|
|
onChange: this.changeSize,
|
|
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
return triggerNode.parentNode;
|
|
}
|
|
},
|
|
options
|
|
);
|
|
}
|
|
|
|
if (quickGo) {
|
|
if (goButton) {
|
|
gotoButton = typeof goButton === 'boolean' ? __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(
|
|
'button',
|
|
{
|
|
type: 'button',
|
|
onClick: this.go,
|
|
onKeyUp: this.go,
|
|
disabled: disabled
|
|
},
|
|
locale.jump_to_confirm
|
|
) : __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(
|
|
'span',
|
|
{
|
|
onClick: this.go,
|
|
onKeyUp: this.go
|
|
},
|
|
goButton
|
|
);
|
|
}
|
|
goInput = __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(
|
|
'div',
|
|
{ className: prefixCls + '-quick-jumper' },
|
|
locale.jump_to,
|
|
__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement('input', {
|
|
disabled: disabled,
|
|
type: 'text',
|
|
value: goInputText,
|
|
onChange: this.handleChange,
|
|
onKeyUp: this.go,
|
|
onBlur: this.handleBlur
|
|
}),
|
|
locale.page,
|
|
gotoButton
|
|
);
|
|
}
|
|
|
|
return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(
|
|
'li',
|
|
{ className: '' + prefixCls },
|
|
changeSelect,
|
|
goInput
|
|
);
|
|
}
|
|
}]);
|
|
|
|
return Options;
|
|
}(__WEBPACK_IMPORTED_MODULE_4_react___default.a.Component);
|
|
|
|
Options.propTypes = {
|
|
disabled: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool,
|
|
changeSize: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,
|
|
quickGo: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,
|
|
selectComponentClass: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,
|
|
current: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number,
|
|
pageSizeOptions: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string),
|
|
pageSize: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number,
|
|
buildOptionText: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,
|
|
locale: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object,
|
|
rootPrefixCls: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,
|
|
selectPrefixCls: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,
|
|
goButton: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.node])
|
|
};
|
|
Options.defaultProps = {
|
|
pageSizeOptions: ['10', '20', '30', '40']
|
|
};
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["a"] = (Options);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 906:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
// Options.jsx
|
|
items_per_page: '条/页',
|
|
jump_to: '跳至',
|
|
jump_to_confirm: '确定',
|
|
page: '页',
|
|
|
|
// Pagination.jsx
|
|
prev_page: '上一页',
|
|
next_page: '下一页',
|
|
prev_5: '向前 5 页',
|
|
next_5: '向后 5 页',
|
|
prev_3: '向前 3 页',
|
|
next_3: '向后 3 页'
|
|
});
|
|
|
|
/***/ }),
|
|
|
|
/***/ 910:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
exports = module.exports = __webpack_require__(290)(true);
|
|
// imports
|
|
|
|
|
|
// module
|
|
exports.push([module.i, ".ant-pagination{-webkit-box-sizing:border-box;box-sizing:border-box;color:rgba(0,0,0,.65);font-size:14px;font-variant:tabular-nums;line-height:1.5;-webkit-font-feature-settings:\"tnum\";font-feature-settings:\"tnum\"}.ant-pagination,.ant-pagination ol,.ant-pagination ul{margin:0;padding:0;list-style:none}.ant-pagination:after{display:block;clear:both;height:0;overflow:hidden;visibility:hidden;content:\" \"}.ant-pagination-item,.ant-pagination-total-text{display:inline-block;height:32px;margin-right:8px;line-height:30px;vertical-align:middle}.ant-pagination-item{min-width:32px;font-family:Arial;text-align:center;list-style:none;background-color:#fff;border:1px solid #d9d9d9;border-radius:4px;outline:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-pagination-item a{display:block;padding:0 6px;color:rgba(0,0,0,.65);-webkit-transition:none;-o-transition:none;transition:none}.ant-pagination-item a:hover{text-decoration:none}.ant-pagination-item:focus,.ant-pagination-item:hover{border-color:#1890ff;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s}.ant-pagination-item:focus a,.ant-pagination-item:hover a{color:#1890ff}.ant-pagination-item-active{font-weight:500;background:#fff;border-color:#1890ff}.ant-pagination-item-active a{color:#1890ff}.ant-pagination-item-active:focus,.ant-pagination-item-active:hover{border-color:#40a9ff}.ant-pagination-item-active:focus a,.ant-pagination-item-active:hover a{color:#40a9ff}.ant-pagination-jump-next,.ant-pagination-jump-prev{outline:0}.ant-pagination-jump-next .ant-pagination-item-container,.ant-pagination-jump-prev .ant-pagination-item-container{position:relative}.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon,.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon{display:inline-block;font-size:12px;font-size:12px\\9;-webkit-transform:scale(1) rotate(0deg);-ms-transform:scale(1) rotate(0deg);transform:scale(1) rotate(0deg);color:#1890ff;letter-spacing:-1px;opacity:0;-webkit-transition:all .2s;-o-transition:all .2s;transition:all .2s}:root .ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon,:root .ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon{font-size:12px}.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon-svg,.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon-svg{top:0;right:0;bottom:0;left:0;margin:auto}.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-ellipsis,.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-ellipsis{position:absolute;top:0;right:0;bottom:0;left:0;display:block;margin:auto;color:rgba(0,0,0,.25);letter-spacing:2px;text-align:center;text-indent:.13em;opacity:1;-webkit-transition:all .2s;-o-transition:all .2s;transition:all .2s}.ant-pagination-jump-next:focus .ant-pagination-item-link-icon,.ant-pagination-jump-next:hover .ant-pagination-item-link-icon,.ant-pagination-jump-prev:focus .ant-pagination-item-link-icon,.ant-pagination-jump-prev:hover .ant-pagination-item-link-icon{opacity:1}.ant-pagination-jump-next:focus .ant-pagination-item-ellipsis,.ant-pagination-jump-next:hover .ant-pagination-item-ellipsis,.ant-pagination-jump-prev:focus .ant-pagination-item-ellipsis,.ant-pagination-jump-prev:hover .ant-pagination-item-ellipsis{opacity:0}.ant-pagination-jump-next,.ant-pagination-jump-prev,.ant-pagination-prev{margin-right:8px}.ant-pagination-jump-next,.ant-pagination-jump-prev,.ant-pagination-next,.ant-pagination-prev{display:inline-block;min-width:32px;height:32px;color:rgba(0,0,0,.65);font-family:Arial;line-height:32px;text-align:center;vertical-align:middle;list-style:none;border-radius:4px;cursor:pointer;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s}.ant-pagination-next,.ant-pagination-prev{outline:0}.ant-pagination-next a,.ant-pagination-prev a{color:rgba(0,0,0,.65);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ant-pagination-next:hover a,.ant-pagination-prev:hover a{border-color:#40a9ff}.ant-pagination-next .ant-pagination-item-link,.ant-pagination-prev .ant-pagination-item-link{display:block;height:100%;font-size:12px;text-align:center;background-color:#fff;border:1px solid #d9d9d9;border-radius:4px;outline:none;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s}.ant-pagination-next:focus .ant-pagination-item-link,.ant-pagination-next:hover .ant-pagination-item-link,.ant-pagination-prev:focus .ant-pagination-item-link,.ant-pagination-prev:hover .ant-pagination-item-link{color:#1890ff;border-color:#1890ff}.ant-pagination-disabled,.ant-pagination-disabled:focus,.ant-pagination-disabled:hover{cursor:not-allowed}.ant-pagination-disabled .ant-pagination-item-link,.ant-pagination-disabled:focus .ant-pagination-item-link,.ant-pagination-disabled:focus a,.ant-pagination-disabled:hover .ant-pagination-item-link,.ant-pagination-disabled:hover a,.ant-pagination-disabled a{color:rgba(0,0,0,.25);border-color:#d9d9d9;cursor:not-allowed}.ant-pagination-slash{margin:0 10px 0 5px}.ant-pagination-options{display:inline-block;margin-left:16px;vertical-align:middle}.ant-pagination-options-size-changer.ant-select{display:inline-block;width:auto;margin-right:8px}.ant-pagination-options-quick-jumper{display:inline-block;height:32px;line-height:32px;vertical-align:top}.ant-pagination-options-quick-jumper input{position:relative;display:inline-block;width:100%;height:32px;padding:4px 11px;color:rgba(0,0,0,.65);font-size:14px;line-height:1.5;background-color:#fff;background-image:none;border:1px solid #d9d9d9;border-radius:4px;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s;width:50px;margin:0 8px}.ant-pagination-options-quick-jumper input::-moz-placeholder{color:#bfbfbf;opacity:1}.ant-pagination-options-quick-jumper input:-ms-input-placeholder{color:#bfbfbf}.ant-pagination-options-quick-jumper input::-webkit-input-placeholder{color:#bfbfbf}.ant-pagination-options-quick-jumper input:placeholder-shown{-o-text-overflow:ellipsis;text-overflow:ellipsis}.ant-pagination-options-quick-jumper input:focus,.ant-pagination-options-quick-jumper input:hover{border-color:#40a9ff;border-right-width:1px!important}.ant-pagination-options-quick-jumper input:focus{outline:0;-webkit-box-shadow:0 0 0 2px rgba(24,144,255,.2);box-shadow:0 0 0 2px rgba(24,144,255,.2)}.ant-pagination-options-quick-jumper input-disabled{color:rgba(0,0,0,.25);background-color:#f5f5f5;cursor:not-allowed;opacity:1}.ant-pagination-options-quick-jumper input-disabled:hover{border-color:#d9d9d9;border-right-width:1px!important}.ant-pagination-options-quick-jumper input[disabled]{color:rgba(0,0,0,.25);background-color:#f5f5f5;cursor:not-allowed;opacity:1}.ant-pagination-options-quick-jumper input[disabled]:hover{border-color:#d9d9d9;border-right-width:1px!important}textarea.ant-pagination-options-quick-jumper input{max-width:100%;height:auto;min-height:32px;line-height:1.5;vertical-align:bottom;-webkit-transition:all .3s,height 0s;-o-transition:all .3s,height 0s;transition:all .3s,height 0s}.ant-pagination-options-quick-jumper input-lg{height:40px;padding:6px 11px;font-size:16px}.ant-pagination-options-quick-jumper input-sm{height:24px;padding:1px 7px}.ant-pagination-simple .ant-pagination-next,.ant-pagination-simple .ant-pagination-prev{height:24px;line-height:24px;vertical-align:top}.ant-pagination-simple .ant-pagination-next .ant-pagination-item-link,.ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link{height:24px;border:0}.ant-pagination-simple .ant-pagination-next .ant-pagination-item-link:after,.ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link:after{height:24px;line-height:24px}.ant-pagination-simple .ant-pagination-simple-pager{display:inline-block;height:24px;margin-right:8px}.ant-pagination-simple .ant-pagination-simple-pager input{-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;margin-right:8px;padding:0 6px;text-align:center;background-color:#fff;border:1px solid #d9d9d9;border-radius:4px;outline:none;-webkit-transition:border-color .3s;-o-transition:border-color .3s;transition:border-color .3s}.ant-pagination-simple .ant-pagination-simple-pager input:hover{border-color:#1890ff}.ant-pagination.mini .ant-pagination-simple-pager,.ant-pagination.mini .ant-pagination-total-text{height:24px;line-height:24px}.ant-pagination.mini .ant-pagination-item{min-width:24px;height:24px;margin:0;line-height:22px}.ant-pagination.mini .ant-pagination-item:not(.ant-pagination-item-active){background:transparent;border-color:transparent}.ant-pagination.mini .ant-pagination-next,.ant-pagination.mini .ant-pagination-prev{min-width:24px;height:24px;margin:0;line-height:24px}.ant-pagination.mini .ant-pagination-next .ant-pagination-item-link,.ant-pagination.mini .ant-pagination-prev .ant-pagination-item-link{background:transparent;border-color:transparent}.ant-pagination.mini .ant-pagination-next .ant-pagination-item-link:after,.ant-pagination.mini .ant-pagination-prev .ant-pagination-item-link:after{height:24px;line-height:24px}.ant-pagination.mini .ant-pagination-jump-next,.ant-pagination.mini .ant-pagination-jump-prev{height:24px;margin-right:0;line-height:24px}.ant-pagination.mini .ant-pagination-options{margin-left:2px}.ant-pagination.mini .ant-pagination-options-quick-jumper{height:24px;line-height:24px}.ant-pagination.mini .ant-pagination-options-quick-jumper input{height:24px;padding:1px 7px;width:44px}.ant-pagination.ant-pagination-disabled{cursor:not-allowed}.ant-pagination.ant-pagination-disabled .ant-pagination-item{background:#f5f5f5;border-color:#d9d9d9;cursor:not-allowed}.ant-pagination.ant-pagination-disabled .ant-pagination-item a{color:rgba(0,0,0,.25);background:transparent;border:none;cursor:not-allowed}.ant-pagination.ant-pagination-disabled .ant-pagination-item-active{background:#dbdbdb;border-color:transparent}.ant-pagination.ant-pagination-disabled .ant-pagination-item-active a{color:#fff}.ant-pagination.ant-pagination-disabled .ant-pagination-item-link,.ant-pagination.ant-pagination-disabled .ant-pagination-item-link:focus,.ant-pagination.ant-pagination-disabled .ant-pagination-item-link:hover{color:rgba(0,0,0,.45);background:#f5f5f5;border-color:#d9d9d9;cursor:not-allowed}.ant-pagination.ant-pagination-disabled .ant-pagination-jump-next:focus .ant-pagination-item-link-icon,.ant-pagination.ant-pagination-disabled .ant-pagination-jump-next:hover .ant-pagination-item-link-icon,.ant-pagination.ant-pagination-disabled .ant-pagination-jump-prev:focus .ant-pagination-item-link-icon,.ant-pagination.ant-pagination-disabled .ant-pagination-jump-prev:hover .ant-pagination-item-link-icon{opacity:0}.ant-pagination.ant-pagination-disabled .ant-pagination-jump-next:focus .ant-pagination-item-ellipsis,.ant-pagination.ant-pagination-disabled .ant-pagination-jump-next:hover .ant-pagination-item-ellipsis,.ant-pagination.ant-pagination-disabled .ant-pagination-jump-prev:focus .ant-pagination-item-ellipsis,.ant-pagination.ant-pagination-disabled .ant-pagination-jump-prev:hover .ant-pagination-item-ellipsis{opacity:1}@media only screen and (max-width:992px){.ant-pagination-item-after-jump-prev,.ant-pagination-item-before-jump-next{display:none}}@media only screen and (max-width:576px){.ant-pagination-options{display:none}}", "", {"version":3,"sources":["/Users/alec/educoder/public/react/node_modules/_antd@3.26.4@antd/lib/pagination/style/index.css"],"names":[],"mappings":"AAIA,gBACE,8BAA+B,AACvB,sBAAuB,AAG/B,sBAA2B,AAC3B,eAAgB,AAChB,0BAA2B,AAC3B,gBAAiB,AAEjB,qCAAsC,AAC9B,4BAA8B,CACvC,AACD,sDAVE,SAAU,AACV,UAAW,AAKX,eAAiB,CASlB,AACD,sBACE,cAAe,AACf,WAAY,AACZ,SAAU,AACV,gBAAiB,AACjB,kBAAmB,AACnB,WAAa,CACd,AAQD,gDANE,qBAAsB,AACtB,YAAa,AACb,iBAAkB,AAClB,iBAAkB,AAClB,qBAAuB,CAqBxB,AAnBD,qBAEE,eAAgB,AAGhB,kBAAmB,AAEnB,kBAAmB,AAEnB,gBAAiB,AACjB,sBAAuB,AACvB,yBAA0B,AAC1B,kBAAmB,AACnB,UAAW,AACX,eAAgB,AAChB,yBAA0B,AACvB,sBAAuB,AACtB,qBAAsB,AAClB,gBAAkB,CAC3B,AACD,uBACE,cAAe,AACf,cAAe,AACf,sBAA2B,AAC3B,wBAAyB,AACzB,mBAAoB,AACpB,eAAiB,CAClB,AACD,6BACE,oBAAsB,CACvB,AACD,sDAEE,qBAAsB,AACtB,2BAA6B,AAC7B,sBAAwB,AACxB,kBAAqB,CACtB,AACD,0DAEE,aAAe,CAChB,AACD,4BACE,gBAAiB,AACjB,gBAAiB,AACjB,oBAAsB,CACvB,AACD,8BACE,aAAe,CAChB,AACD,oEAEE,oBAAsB,CACvB,AACD,wEAEE,aAAe,CAChB,AACD,oDAEE,SAAW,CACZ,AACD,kHAEE,iBAAmB,CACpB,AACD,gLAEE,qBAAsB,AACtB,eAAgB,AAChB,iBAAmB,AACnB,wCAAyC,AACrC,oCAAqC,AACjC,gCAAiC,AACzC,cAAe,AACf,oBAAqB,AACrB,UAAW,AACX,2BAA6B,AAC7B,sBAAwB,AACxB,kBAAqB,CACtB,AACD,4LAEE,cAAgB,CACjB,AACD,wLAEE,MAAO,AACP,QAAS,AACT,SAAU,AACV,OAAQ,AACR,WAAa,CACd,AACD,8KAEE,kBAAmB,AACnB,MAAO,AACP,QAAS,AACT,SAAU,AACV,OAAQ,AACR,cAAe,AACf,YAAa,AACb,sBAA2B,AAC3B,mBAAoB,AACpB,kBAAmB,AACnB,kBAAoB,AACpB,UAAW,AACX,2BAA6B,AAC7B,sBAAwB,AACxB,kBAAqB,CACtB,AACD,4PAIE,SAAW,CACZ,AACD,wPAIE,SAAW,CACZ,AACD,yEAGE,gBAAkB,CACnB,AACD,8FAIE,qBAAsB,AACtB,eAAgB,AAChB,YAAa,AACb,sBAA2B,AAC3B,kBAAmB,AACnB,iBAAkB,AAClB,kBAAmB,AACnB,sBAAuB,AACvB,gBAAiB,AACjB,kBAAmB,AACnB,eAAgB,AAChB,2BAA6B,AAC7B,sBAAwB,AACxB,kBAAqB,CACtB,AACD,0CAEE,SAAW,CACZ,AACD,8CAEE,sBAA2B,AAC3B,yBAA0B,AACvB,sBAAuB,AACtB,qBAAsB,AAClB,gBAAkB,CAC3B,AACD,0DAEE,oBAAsB,CACvB,AACD,8FAEE,cAAe,AACf,YAAa,AACb,eAAgB,AAChB,kBAAmB,AACnB,sBAAuB,AACvB,yBAA0B,AAC1B,kBAAmB,AACnB,aAAc,AACd,2BAA6B,AAC7B,sBAAwB,AACxB,kBAAqB,CACtB,AACD,oNAIE,cAAe,AACf,oBAAsB,CACvB,AACD,uFAGE,kBAAoB,CACrB,AACD,kQAME,sBAA2B,AAC3B,qBAAsB,AACtB,kBAAoB,CACrB,AACD,sBACE,mBAAqB,CACtB,AACD,wBACE,qBAAsB,AACtB,iBAAkB,AAClB,qBAAuB,CACxB,AACD,gDACE,qBAAsB,AACtB,WAAY,AACZ,gBAAkB,CACnB,AACD,qCACE,qBAAsB,AACtB,YAAa,AACb,iBAAkB,AAClB,kBAAoB,CACrB,AACD,2CACE,kBAAmB,AACnB,qBAAsB,AACtB,WAAY,AACZ,YAAa,AACb,iBAAkB,AAClB,sBAA2B,AAC3B,eAAgB,AAChB,gBAAiB,AACjB,sBAAuB,AACvB,sBAAuB,AACvB,yBAA0B,AAC1B,kBAAmB,AACnB,2BAA6B,AAC7B,sBAAwB,AACxB,mBAAqB,AACrB,WAAY,AACZ,YAAc,CACf,AACD,6DACE,cAAe,AACf,SAAW,CACZ,AACD,iEACE,aAAe,CAChB,AACD,sEACE,aAAe,CAChB,AACD,6DACE,0BAA2B,AACxB,sBAAwB,CAC5B,AAKD,kGAHE,qBAAsB,AACtB,gCAAmC,CAQpC,AAND,iDAGE,UAAW,AACX,iDAAsD,AAC9C,wCAA8C,CACvD,AACD,oDACE,sBAA2B,AAC3B,yBAA0B,AAC1B,mBAAoB,AACpB,SAAW,CACZ,AACD,0DACE,qBAAsB,AACtB,gCAAmC,CACpC,AACD,qDACE,sBAA2B,AAC3B,yBAA0B,AAC1B,mBAAoB,AACpB,SAAW,CACZ,AACD,2DACE,qBAAsB,AACtB,gCAAmC,CACpC,AACD,mDACE,eAAgB,AAChB,YAAa,AACb,gBAAiB,AACjB,gBAAiB,AACjB,sBAAuB,AACvB,qCAAwC,AACxC,gCAAmC,AACnC,4BAAgC,CACjC,AACD,8CACE,YAAa,AACb,iBAAkB,AAClB,cAAgB,CACjB,AACD,8CACE,YAAa,AACb,eAAiB,CAClB,AACD,wFAEE,YAAa,AACb,iBAAkB,AAClB,kBAAoB,CACrB,AACD,4IAEE,YAAa,AACb,QAAU,CACX,AACD,wJAEE,YAAa,AACb,gBAAkB,CACnB,AACD,oDACE,qBAAsB,AACtB,YAAa,AACb,gBAAkB,CACnB,AACD,0DACE,8BAA+B,AACvB,sBAAuB,AAC/B,YAAa,AACb,iBAAkB,AAClB,cAAe,AACf,kBAAmB,AACnB,sBAAuB,AACvB,yBAA0B,AAC1B,kBAAmB,AACnB,aAAc,AACd,oCAAsC,AACtC,+BAAiC,AACjC,2BAA8B,CAC/B,AACD,gEACE,oBAAsB,CACvB,AACD,kGAEE,YAAa,AACb,gBAAkB,CACnB,AACD,0CACE,eAAgB,AAChB,YAAa,AACb,SAAU,AACV,gBAAkB,CACnB,AACD,2EACE,uBAAwB,AACxB,wBAA0B,CAC3B,AACD,oFAEE,eAAgB,AAChB,YAAa,AACb,SAAU,AACV,gBAAkB,CACnB,AACD,wIAEE,uBAAwB,AACxB,wBAA0B,CAC3B,AACD,oJAEE,YAAa,AACb,gBAAkB,CACnB,AACD,8FAEE,YAAa,AACb,eAAgB,AAChB,gBAAkB,CACnB,AACD,6CACE,eAAiB,CAClB,AACD,0DACE,YAAa,AACb,gBAAkB,CACnB,AACD,gEACE,YAAa,AACb,gBAAiB,AACjB,UAAY,CACb,AACD,wCACE,kBAAoB,CACrB,AACD,6DACE,mBAAoB,AACpB,qBAAsB,AACtB,kBAAoB,CACrB,AACD,+DACE,sBAA2B,AAC3B,uBAAwB,AACxB,YAAa,AACb,kBAAoB,CACrB,AACD,oEACE,mBAAoB,AACpB,wBAA0B,CAC3B,AACD,sEACE,UAAY,CACb,AACD,kNAGE,sBAA2B,AAC3B,mBAAoB,AACpB,qBAAsB,AACtB,kBAAoB,CACrB,AACD,4ZAIE,SAAW,CACZ,AACD,wZAIE,SAAW,CACZ,AACD,yCACE,2EAEE,YAAc,CACf,CACF,AACD,yCACE,wBACE,YAAc,CACf,CACF","file":"index.css","sourcesContent":["/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n.ant-pagination {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.65);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5;\n list-style: none;\n -webkit-font-feature-settings: 'tnum';\n font-feature-settings: 'tnum';\n}\n.ant-pagination ul,\n.ant-pagination ol {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.ant-pagination::after {\n display: block;\n clear: both;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n content: ' ';\n}\n.ant-pagination-total-text {\n display: inline-block;\n height: 32px;\n margin-right: 8px;\n line-height: 30px;\n vertical-align: middle;\n}\n.ant-pagination-item {\n display: inline-block;\n min-width: 32px;\n height: 32px;\n margin-right: 8px;\n font-family: Arial;\n line-height: 30px;\n text-align: center;\n vertical-align: middle;\n list-style: none;\n background-color: #fff;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n outline: 0;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.ant-pagination-item a {\n display: block;\n padding: 0 6px;\n color: rgba(0, 0, 0, 0.65);\n -webkit-transition: none;\n -o-transition: none;\n transition: none;\n}\n.ant-pagination-item a:hover {\n text-decoration: none;\n}\n.ant-pagination-item:focus,\n.ant-pagination-item:hover {\n border-color: #1890ff;\n -webkit-transition: all 0.3s;\n -o-transition: all 0.3s;\n transition: all 0.3s;\n}\n.ant-pagination-item:focus a,\n.ant-pagination-item:hover a {\n color: #1890ff;\n}\n.ant-pagination-item-active {\n font-weight: 500;\n background: #fff;\n border-color: #1890ff;\n}\n.ant-pagination-item-active a {\n color: #1890ff;\n}\n.ant-pagination-item-active:focus,\n.ant-pagination-item-active:hover {\n border-color: #40a9ff;\n}\n.ant-pagination-item-active:focus a,\n.ant-pagination-item-active:hover a {\n color: #40a9ff;\n}\n.ant-pagination-jump-prev,\n.ant-pagination-jump-next {\n outline: 0;\n}\n.ant-pagination-jump-prev .ant-pagination-item-container,\n.ant-pagination-jump-next .ant-pagination-item-container {\n position: relative;\n}\n.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon,\n.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon {\n display: inline-block;\n font-size: 12px;\n font-size: 12px \\9;\n -webkit-transform: scale(1) rotate(0deg);\n -ms-transform: scale(1) rotate(0deg);\n transform: scale(1) rotate(0deg);\n color: #1890ff;\n letter-spacing: -1px;\n opacity: 0;\n -webkit-transition: all 0.2s;\n -o-transition: all 0.2s;\n transition: all 0.2s;\n}\n:root .ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon,\n:root .ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon {\n font-size: 12px;\n}\n.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon-svg,\n.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon-svg {\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n margin: auto;\n}\n.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-ellipsis,\n.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-ellipsis {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: block;\n margin: auto;\n color: rgba(0, 0, 0, 0.25);\n letter-spacing: 2px;\n text-align: center;\n text-indent: 0.13em;\n opacity: 1;\n -webkit-transition: all 0.2s;\n -o-transition: all 0.2s;\n transition: all 0.2s;\n}\n.ant-pagination-jump-prev:focus .ant-pagination-item-link-icon,\n.ant-pagination-jump-next:focus .ant-pagination-item-link-icon,\n.ant-pagination-jump-prev:hover .ant-pagination-item-link-icon,\n.ant-pagination-jump-next:hover .ant-pagination-item-link-icon {\n opacity: 1;\n}\n.ant-pagination-jump-prev:focus .ant-pagination-item-ellipsis,\n.ant-pagination-jump-next:focus .ant-pagination-item-ellipsis,\n.ant-pagination-jump-prev:hover .ant-pagination-item-ellipsis,\n.ant-pagination-jump-next:hover .ant-pagination-item-ellipsis {\n opacity: 0;\n}\n.ant-pagination-prev,\n.ant-pagination-jump-prev,\n.ant-pagination-jump-next {\n margin-right: 8px;\n}\n.ant-pagination-prev,\n.ant-pagination-next,\n.ant-pagination-jump-prev,\n.ant-pagination-jump-next {\n display: inline-block;\n min-width: 32px;\n height: 32px;\n color: rgba(0, 0, 0, 0.65);\n font-family: Arial;\n line-height: 32px;\n text-align: center;\n vertical-align: middle;\n list-style: none;\n border-radius: 4px;\n cursor: pointer;\n -webkit-transition: all 0.3s;\n -o-transition: all 0.3s;\n transition: all 0.3s;\n}\n.ant-pagination-prev,\n.ant-pagination-next {\n outline: 0;\n}\n.ant-pagination-prev a,\n.ant-pagination-next a {\n color: rgba(0, 0, 0, 0.65);\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.ant-pagination-prev:hover a,\n.ant-pagination-next:hover a {\n border-color: #40a9ff;\n}\n.ant-pagination-prev .ant-pagination-item-link,\n.ant-pagination-next .ant-pagination-item-link {\n display: block;\n height: 100%;\n font-size: 12px;\n text-align: center;\n background-color: #fff;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n outline: none;\n -webkit-transition: all 0.3s;\n -o-transition: all 0.3s;\n transition: all 0.3s;\n}\n.ant-pagination-prev:focus .ant-pagination-item-link,\n.ant-pagination-next:focus .ant-pagination-item-link,\n.ant-pagination-prev:hover .ant-pagination-item-link,\n.ant-pagination-next:hover .ant-pagination-item-link {\n color: #1890ff;\n border-color: #1890ff;\n}\n.ant-pagination-disabled,\n.ant-pagination-disabled:hover,\n.ant-pagination-disabled:focus {\n cursor: not-allowed;\n}\n.ant-pagination-disabled a,\n.ant-pagination-disabled:hover a,\n.ant-pagination-disabled:focus a,\n.ant-pagination-disabled .ant-pagination-item-link,\n.ant-pagination-disabled:hover .ant-pagination-item-link,\n.ant-pagination-disabled:focus .ant-pagination-item-link {\n color: rgba(0, 0, 0, 0.25);\n border-color: #d9d9d9;\n cursor: not-allowed;\n}\n.ant-pagination-slash {\n margin: 0 10px 0 5px;\n}\n.ant-pagination-options {\n display: inline-block;\n margin-left: 16px;\n vertical-align: middle;\n}\n.ant-pagination-options-size-changer.ant-select {\n display: inline-block;\n width: auto;\n margin-right: 8px;\n}\n.ant-pagination-options-quick-jumper {\n display: inline-block;\n height: 32px;\n line-height: 32px;\n vertical-align: top;\n}\n.ant-pagination-options-quick-jumper input {\n position: relative;\n display: inline-block;\n width: 100%;\n height: 32px;\n padding: 4px 11px;\n color: rgba(0, 0, 0, 0.65);\n font-size: 14px;\n line-height: 1.5;\n background-color: #fff;\n background-image: none;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n -webkit-transition: all 0.3s;\n -o-transition: all 0.3s;\n transition: all 0.3s;\n width: 50px;\n margin: 0 8px;\n}\n.ant-pagination-options-quick-jumper input::-moz-placeholder {\n color: #bfbfbf;\n opacity: 1;\n}\n.ant-pagination-options-quick-jumper input:-ms-input-placeholder {\n color: #bfbfbf;\n}\n.ant-pagination-options-quick-jumper input::-webkit-input-placeholder {\n color: #bfbfbf;\n}\n.ant-pagination-options-quick-jumper input:placeholder-shown {\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n}\n.ant-pagination-options-quick-jumper input:hover {\n border-color: #40a9ff;\n border-right-width: 1px !important;\n}\n.ant-pagination-options-quick-jumper input:focus {\n border-color: #40a9ff;\n border-right-width: 1px !important;\n outline: 0;\n -webkit-box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);\n box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);\n}\n.ant-pagination-options-quick-jumper input-disabled {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-pagination-options-quick-jumper input-disabled:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-pagination-options-quick-jumper input[disabled] {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-pagination-options-quick-jumper input[disabled]:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\ntextarea.ant-pagination-options-quick-jumper input {\n max-width: 100%;\n height: auto;\n min-height: 32px;\n line-height: 1.5;\n vertical-align: bottom;\n -webkit-transition: all 0.3s, height 0s;\n -o-transition: all 0.3s, height 0s;\n transition: all 0.3s, height 0s;\n}\n.ant-pagination-options-quick-jumper input-lg {\n height: 40px;\n padding: 6px 11px;\n font-size: 16px;\n}\n.ant-pagination-options-quick-jumper input-sm {\n height: 24px;\n padding: 1px 7px;\n}\n.ant-pagination-simple .ant-pagination-prev,\n.ant-pagination-simple .ant-pagination-next {\n height: 24px;\n line-height: 24px;\n vertical-align: top;\n}\n.ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link,\n.ant-pagination-simple .ant-pagination-next .ant-pagination-item-link {\n height: 24px;\n border: 0;\n}\n.ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link::after,\n.ant-pagination-simple .ant-pagination-next .ant-pagination-item-link::after {\n height: 24px;\n line-height: 24px;\n}\n.ant-pagination-simple .ant-pagination-simple-pager {\n display: inline-block;\n height: 24px;\n margin-right: 8px;\n}\n.ant-pagination-simple .ant-pagination-simple-pager input {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n height: 100%;\n margin-right: 8px;\n padding: 0 6px;\n text-align: center;\n background-color: #fff;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n outline: none;\n -webkit-transition: border-color 0.3s;\n -o-transition: border-color 0.3s;\n transition: border-color 0.3s;\n}\n.ant-pagination-simple .ant-pagination-simple-pager input:hover {\n border-color: #1890ff;\n}\n.ant-pagination.mini .ant-pagination-total-text,\n.ant-pagination.mini .ant-pagination-simple-pager {\n height: 24px;\n line-height: 24px;\n}\n.ant-pagination.mini .ant-pagination-item {\n min-width: 24px;\n height: 24px;\n margin: 0;\n line-height: 22px;\n}\n.ant-pagination.mini .ant-pagination-item:not(.ant-pagination-item-active) {\n background: transparent;\n border-color: transparent;\n}\n.ant-pagination.mini .ant-pagination-prev,\n.ant-pagination.mini .ant-pagination-next {\n min-width: 24px;\n height: 24px;\n margin: 0;\n line-height: 24px;\n}\n.ant-pagination.mini .ant-pagination-prev .ant-pagination-item-link,\n.ant-pagination.mini .ant-pagination-next .ant-pagination-item-link {\n background: transparent;\n border-color: transparent;\n}\n.ant-pagination.mini .ant-pagination-prev .ant-pagination-item-link::after,\n.ant-pagination.mini .ant-pagination-next .ant-pagination-item-link::after {\n height: 24px;\n line-height: 24px;\n}\n.ant-pagination.mini .ant-pagination-jump-prev,\n.ant-pagination.mini .ant-pagination-jump-next {\n height: 24px;\n margin-right: 0;\n line-height: 24px;\n}\n.ant-pagination.mini .ant-pagination-options {\n margin-left: 2px;\n}\n.ant-pagination.mini .ant-pagination-options-quick-jumper {\n height: 24px;\n line-height: 24px;\n}\n.ant-pagination.mini .ant-pagination-options-quick-jumper input {\n height: 24px;\n padding: 1px 7px;\n width: 44px;\n}\n.ant-pagination.ant-pagination-disabled {\n cursor: not-allowed;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-item {\n background: #f5f5f5;\n border-color: #d9d9d9;\n cursor: not-allowed;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-item a {\n color: rgba(0, 0, 0, 0.25);\n background: transparent;\n border: none;\n cursor: not-allowed;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-item-active {\n background: #dbdbdb;\n border-color: transparent;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-item-active a {\n color: #fff;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-item-link,\n.ant-pagination.ant-pagination-disabled .ant-pagination-item-link:hover,\n.ant-pagination.ant-pagination-disabled .ant-pagination-item-link:focus {\n color: rgba(0, 0, 0, 0.45);\n background: #f5f5f5;\n border-color: #d9d9d9;\n cursor: not-allowed;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-jump-prev:focus .ant-pagination-item-link-icon,\n.ant-pagination.ant-pagination-disabled .ant-pagination-jump-next:focus .ant-pagination-item-link-icon,\n.ant-pagination.ant-pagination-disabled .ant-pagination-jump-prev:hover .ant-pagination-item-link-icon,\n.ant-pagination.ant-pagination-disabled .ant-pagination-jump-next:hover .ant-pagination-item-link-icon {\n opacity: 0;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-jump-prev:focus .ant-pagination-item-ellipsis,\n.ant-pagination.ant-pagination-disabled .ant-pagination-jump-next:focus .ant-pagination-item-ellipsis,\n.ant-pagination.ant-pagination-disabled .ant-pagination-jump-prev:hover .ant-pagination-item-ellipsis,\n.ant-pagination.ant-pagination-disabled .ant-pagination-jump-next:hover .ant-pagination-item-ellipsis {\n opacity: 1;\n}\n@media only screen and (max-width: 992px) {\n .ant-pagination-item-after-jump-prev,\n .ant-pagination-item-before-jump-next {\n display: none;\n }\n}\n@media only screen and (max-width: 576px) {\n .ant-pagination-options {\n display: none;\n }\n}\n"],"sourceRoot":""}]);
|
|
|
|
// exports
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 911:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports["default"] = void 0;
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(0));
|
|
|
|
var _rcPagination = _interopRequireDefault(__webpack_require__(860));
|
|
|
|
var _en_US = _interopRequireDefault(__webpack_require__(306));
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _MiniSelect = _interopRequireDefault(__webpack_require__(912));
|
|
|
|
var _icon = _interopRequireDefault(__webpack_require__(25));
|
|
|
|
var _select = _interopRequireDefault(__webpack_require__(293));
|
|
|
|
var _LocaleReceiver = _interopRequireDefault(__webpack_require__(70));
|
|
|
|
var _configProvider = __webpack_require__(9);
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
|
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
|
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
|
|
function _typeof(obj) { 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); }
|
|
|
|
function _extends() { _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; }; return _extends.apply(this, arguments); }
|
|
|
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
|
|
function _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); } }
|
|
|
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
|
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
|
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
|
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
|
|
function _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); }
|
|
|
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
|
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
var t = {};
|
|
|
|
for (var p in s) {
|
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
}
|
|
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
}
|
|
return t;
|
|
};
|
|
|
|
var Pagination =
|
|
/*#__PURE__*/
|
|
function (_React$Component) {
|
|
_inherits(Pagination, _React$Component);
|
|
|
|
function Pagination() {
|
|
var _this;
|
|
|
|
_classCallCheck(this, Pagination);
|
|
|
|
_this = _possibleConstructorReturn(this, _getPrototypeOf(Pagination).apply(this, arguments));
|
|
|
|
_this.getIconsProps = function (prefixCls) {
|
|
var prevIcon = React.createElement("a", {
|
|
className: "".concat(prefixCls, "-item-link")
|
|
}, React.createElement(_icon["default"], {
|
|
type: "left"
|
|
}));
|
|
var nextIcon = React.createElement("a", {
|
|
className: "".concat(prefixCls, "-item-link")
|
|
}, React.createElement(_icon["default"], {
|
|
type: "right"
|
|
}));
|
|
var jumpPrevIcon = React.createElement("a", {
|
|
className: "".concat(prefixCls, "-item-link")
|
|
}, React.createElement("div", {
|
|
className: "".concat(prefixCls, "-item-container")
|
|
}, React.createElement(_icon["default"], {
|
|
className: "".concat(prefixCls, "-item-link-icon"),
|
|
type: "double-left"
|
|
}), React.createElement("span", {
|
|
className: "".concat(prefixCls, "-item-ellipsis")
|
|
}, "\u2022\u2022\u2022")));
|
|
var jumpNextIcon = React.createElement("a", {
|
|
className: "".concat(prefixCls, "-item-link")
|
|
}, React.createElement("div", {
|
|
className: "".concat(prefixCls, "-item-container")
|
|
}, React.createElement(_icon["default"], {
|
|
className: "".concat(prefixCls, "-item-link-icon"),
|
|
type: "double-right"
|
|
}), React.createElement("span", {
|
|
className: "".concat(prefixCls, "-item-ellipsis")
|
|
}, "\u2022\u2022\u2022")));
|
|
return {
|
|
prevIcon: prevIcon,
|
|
nextIcon: nextIcon,
|
|
jumpPrevIcon: jumpPrevIcon,
|
|
jumpNextIcon: jumpNextIcon
|
|
};
|
|
};
|
|
|
|
_this.renderPagination = function (contextLocale) {
|
|
var _a = _this.props,
|
|
customizePrefixCls = _a.prefixCls,
|
|
customizeSelectPrefixCls = _a.selectPrefixCls,
|
|
className = _a.className,
|
|
size = _a.size,
|
|
customLocale = _a.locale,
|
|
restProps = __rest(_a, ["prefixCls", "selectPrefixCls", "className", "size", "locale"]);
|
|
|
|
var locale = _extends(_extends({}, contextLocale), customLocale);
|
|
|
|
var isSmall = size === 'small';
|
|
return React.createElement(_configProvider.ConfigConsumer, null, function (_ref) {
|
|
var getPrefixCls = _ref.getPrefixCls;
|
|
var prefixCls = getPrefixCls('pagination', customizePrefixCls);
|
|
var selectPrefixCls = getPrefixCls('select', customizeSelectPrefixCls);
|
|
return React.createElement(_rcPagination["default"], _extends({}, restProps, {
|
|
prefixCls: prefixCls,
|
|
selectPrefixCls: selectPrefixCls
|
|
}, _this.getIconsProps(prefixCls), {
|
|
className: (0, _classnames["default"])(className, {
|
|
mini: isSmall
|
|
}),
|
|
selectComponentClass: isSmall ? _MiniSelect["default"] : _select["default"],
|
|
locale: locale
|
|
}));
|
|
});
|
|
};
|
|
|
|
return _this;
|
|
}
|
|
|
|
_createClass(Pagination, [{
|
|
key: "render",
|
|
value: function render() {
|
|
return React.createElement(_LocaleReceiver["default"], {
|
|
componentName: "Pagination",
|
|
defaultLocale: _en_US["default"]
|
|
}, this.renderPagination);
|
|
}
|
|
}]);
|
|
|
|
return Pagination;
|
|
}(React.Component);
|
|
|
|
exports["default"] = Pagination;
|
|
//# sourceMappingURL=Pagination.js.map
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 912:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports["default"] = void 0;
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(0));
|
|
|
|
var _select = _interopRequireDefault(__webpack_require__(293));
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
|
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
|
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
|
|
function _typeof(obj) { 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); }
|
|
|
|
function _extends() { _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; }; return _extends.apply(this, arguments); }
|
|
|
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
|
|
function _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); } }
|
|
|
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
|
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
|
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
|
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
|
|
function _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); }
|
|
|
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
|
|
var MiniSelect =
|
|
/*#__PURE__*/
|
|
function (_React$Component) {
|
|
_inherits(MiniSelect, _React$Component);
|
|
|
|
function MiniSelect() {
|
|
_classCallCheck(this, MiniSelect);
|
|
|
|
return _possibleConstructorReturn(this, _getPrototypeOf(MiniSelect).apply(this, arguments));
|
|
}
|
|
|
|
_createClass(MiniSelect, [{
|
|
key: "render",
|
|
value: function render() {
|
|
return React.createElement(_select["default"], _extends({
|
|
size: "small"
|
|
}, this.props));
|
|
}
|
|
}]);
|
|
|
|
return MiniSelect;
|
|
}(React.Component);
|
|
|
|
exports["default"] = MiniSelect;
|
|
MiniSelect.Option = _select["default"].Option;
|
|
//# sourceMappingURL=MiniSelect.js.map
|
|
|
|
|
|
/***/ })
|
|
|
|
}); |