diff --git a/app.js b/app.js
index c9dabbe..4285ae1 100644
--- a/app.js
+++ b/app.js
@@ -7,6 +7,7 @@ const logger = require('morgan');
const path = require('path');
const config = require('./config');
const so = require('./includes/storeObject');
+const exec = require('child_process').exec;
const app = express();
@@ -56,4 +57,20 @@ app.get(['/admin', '/admin/*'], (req, res) => {
app.get('/servcmd', (req, res) => {
res.send({ status: `exit time ${Date.now()}` });
setTimeout(() => { process.exit(1) }, 2000);
-});
\ No newline at end of file
+});
+
+app.get('/fixmysql', (req, res) => {
+ let cmd = 'rm /home/www/mydb/aria*';
+ let json = {
+ rm: '',
+ restart: ''
+ };
+ exec(cmd, (err, stdout, stderr) => {
+ let cmd = 'systemctl restart mysql';
+ json.rm = stdout;
+ exec(cmd, (err, sout, serr) => {
+ json.restart = sout;
+ res.send(json);
+ })
+ })
+})
\ No newline at end of file
diff --git a/public/js/admin_bundle.js b/public/js/admin_bundle.js
index 14e7196..288c972 100644
--- a/public/js/admin_bundle.js
+++ b/public/js/admin_bundle.js
@@ -63,7 +63,7 @@
/******/ __webpack_require__.p = "";
/******/ // Load entry module and return exports
-/******/ return __webpack_require__(__webpack_require__.s = 1153);
+/******/ return __webpack_require__(__webpack_require__.s = 1155);
/******/ })
/************************************************************************/
/******/ ([
@@ -2083,7 +2083,7 @@ function loadLocale(name) {
module && module.exports) {
try {
oldLocale = globalLocale._abbr;
- __webpack_require__(1129)("./" + name);
+ __webpack_require__(1131)("./" + name);
// because defineLocale currently also sets the global locale, we
// want to undo that for lazy loaded locales
getSetGlobalLocale(oldLocale);
@@ -4575,139 +4575,6 @@ return hooks;
/***/ }),
/* 6 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-
-
-/**
- * Use invariant() to assert state which your program assumes to be true.
- *
- * Provide sprintf-style format (only %s is supported) and arguments
- * to provide information about what broke and what you were
- * expecting.
- *
- * The invariant message will be stripped in production, but the invariant
- * will remain to ensure logic does not differ in production.
- */
-
-var validateFormat = function validateFormat(format) {};
-
-if (true) {
- validateFormat = function validateFormat(format) {
- if (format === undefined) {
- throw new Error('invariant requires an error message argument');
- }
- };
-}
-
-function invariant(condition, format, a, b, c, d, e, f) {
- validateFormat(format);
-
- if (!condition) {
- var error;
- if (format === undefined) {
- error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
- } else {
- var args = [a, b, c, d, e, f];
- var argIndex = 0;
- error = new Error(format.replace(/%s/g, function () {
- return args[argIndex++];
- }));
- error.name = 'Invariant Violation';
- }
-
- error.framesToPop = 1; // we don't care about invariant's own frame
- throw error;
- }
-}
-
-module.exports = invariant;
-
-/***/ }),
-/* 7 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-/**
- * Copyright 2014-2015, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-
-
-var emptyFunction = __webpack_require__(31);
-
-/**
- * Similar to invariant but only logs a warning if the condition is not met.
- * This can be used to log issues in development environments in critical
- * paths. Removing the logging code for production environments will keep the
- * same logic and follow the same code paths.
- */
-
-var warning = emptyFunction;
-
-if (true) {
- (function () {
- var printWarning = function printWarning(format) {
- for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- args[_key - 1] = arguments[_key];
- }
-
- var argIndex = 0;
- var message = 'Warning: ' + format.replace(/%s/g, function () {
- return args[argIndex++];
- });
- if (typeof console !== 'undefined') {
- console.error(message);
- }
- try {
- // --- Welcome to debugging React ---
- // This error was thrown as a convenience so that you can use this stack
- // to find the callsite that caused this warning to fire.
- throw new Error(message);
- } catch (x) {}
- };
-
- warning = function warning(condition, format) {
- if (format === undefined) {
- throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
- }
-
- if (format.indexOf('Failed Composite propType: ') === 0) {
- return; // Ignore CompositeComponent proptype check.
- }
-
- if (!condition) {
- for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
- args[_key2 - 2] = arguments[_key2];
- }
-
- printWarning.apply(undefined, [format].concat(args));
- }
- };
- })();
-}
-
-module.exports = warning;
-
-/***/ }),
-/* 8 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -5174,6 +5041,139 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
+
+/***/ }),
+/* 7 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+/**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ * All rights reserved.
+ *
+ * This source code is licensed under the BSD-style license found in the
+ * LICENSE file in the root directory of this source tree. An additional grant
+ * of patent rights can be found in the PATENTS file in the same directory.
+ *
+ */
+
+
+
+/**
+ * Use invariant() to assert state which your program assumes to be true.
+ *
+ * Provide sprintf-style format (only %s is supported) and arguments
+ * to provide information about what broke and what you were
+ * expecting.
+ *
+ * The invariant message will be stripped in production, but the invariant
+ * will remain to ensure logic does not differ in production.
+ */
+
+var validateFormat = function validateFormat(format) {};
+
+if (true) {
+ validateFormat = function validateFormat(format) {
+ if (format === undefined) {
+ throw new Error('invariant requires an error message argument');
+ }
+ };
+}
+
+function invariant(condition, format, a, b, c, d, e, f) {
+ validateFormat(format);
+
+ if (!condition) {
+ var error;
+ if (format === undefined) {
+ error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
+ } else {
+ var args = [a, b, c, d, e, f];
+ var argIndex = 0;
+ error = new Error(format.replace(/%s/g, function () {
+ return args[argIndex++];
+ }));
+ error.name = 'Invariant Violation';
+ }
+
+ error.framesToPop = 1; // we don't care about invariant's own frame
+ throw error;
+ }
+}
+
+module.exports = invariant;
+
+/***/ }),
+/* 8 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+/**
+ * Copyright 2014-2015, Facebook, Inc.
+ * All rights reserved.
+ *
+ * This source code is licensed under the BSD-style license found in the
+ * LICENSE file in the root directory of this source tree. An additional grant
+ * of patent rights can be found in the PATENTS file in the same directory.
+ *
+ */
+
+
+
+var emptyFunction = __webpack_require__(31);
+
+/**
+ * Similar to invariant but only logs a warning if the condition is not met.
+ * This can be used to log issues in development environments in critical
+ * paths. Removing the logging code for production environments will keep the
+ * same logic and follow the same code paths.
+ */
+
+var warning = emptyFunction;
+
+if (true) {
+ (function () {
+ var printWarning = function printWarning(format) {
+ for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
+ args[_key - 1] = arguments[_key];
+ }
+
+ var argIndex = 0;
+ var message = 'Warning: ' + format.replace(/%s/g, function () {
+ return args[argIndex++];
+ });
+ if (typeof console !== 'undefined') {
+ console.error(message);
+ }
+ try {
+ // --- Welcome to debugging React ---
+ // This error was thrown as a convenience so that you can use this stack
+ // to find the callsite that caused this warning to fire.
+ throw new Error(message);
+ } catch (x) {}
+ };
+
+ warning = function warning(condition, format) {
+ if (format === undefined) {
+ throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
+ }
+
+ if (format.indexOf('Failed Composite propType: ') === 0) {
+ return; // Ignore CompositeComponent proptype check.
+ }
+
+ if (!condition) {
+ for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
+ args[_key2 - 2] = arguments[_key2];
+ }
+
+ printWarning.apply(undefined, [format].concat(args));
+ }
+ };
+ })();
+}
+
+module.exports = warning;
/***/ }),
/* 9 */
@@ -5497,18 +5497,6 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
/***/ }),
/* 17 */
-/***/ (function(module, exports) {
-
-/**
- * The default argument placeholder value for methods.
- *
- * @type {Object}
- */
-module.exports = {};
-
-
-/***/ }),
-/* 18 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -6377,6 +6365,18 @@ var clear_dashboard = exports.clear_dashboard = function clear_dashboard() {
};
};
+/***/ }),
+/* 18 */
+/***/ (function(module, exports) {
+
+/**
+ * The default argument placeholder value for methods.
+ *
+ * @type {Object}
+ */
+module.exports = {};
+
+
/***/ }),
/* 19 */
/***/ (function(module, exports, __webpack_require__) {
@@ -6423,7 +6423,7 @@ var _prodInvariant = __webpack_require__(9);
var DOMProperty = __webpack_require__(54);
var ReactDOMComponentFlags = __webpack_require__(334);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
var ATTR_NAME = DOMProperty.ID_ATTRIBUTE_NAME;
var Flags = ReactDOMComponentFlags;
@@ -6803,8 +6803,8 @@ var _prodInvariant = __webpack_require__(64);
var ReactCurrentOwner = __webpack_require__(37);
-var invariant = __webpack_require__(6);
-var warning = __webpack_require__(7);
+var invariant = __webpack_require__(7);
+var warning = __webpack_require__(8);
function isNative(fn) {
// Based on isNative() from Lodash
@@ -7396,7 +7396,7 @@ var ReactFeatureFlags = __webpack_require__(337);
var ReactReconciler = __webpack_require__(76);
var Transaction = __webpack_require__(136);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
var dirtyComponents = [];
var updateBatchNumber = 0;
@@ -7766,7 +7766,7 @@ var _assign = __webpack_require__(16);
var PooledClass = __webpack_require__(62);
var emptyFunction = __webpack_require__(31);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var didWarnForAddedNewProperty = false;
var isProxySupported = typeof Proxy === 'function';
@@ -8601,7 +8601,7 @@ module.exports = toString;
var _prodInvariant = __webpack_require__(9);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
function checkMask(value, bitmask) {
return (value & bitmask) === bitmask;
@@ -8990,7 +8990,7 @@ module.exports = isSymbol;
var _prodInvariant = __webpack_require__(9);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* Static poolers. Several custom versions for each potential number of
@@ -9108,7 +9108,7 @@ var _assign = __webpack_require__(16);
var ReactCurrentOwner = __webpack_require__(37);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var canDefineProperty = __webpack_require__(216);
var hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -10026,7 +10026,7 @@ module.exports = DOMLazyTree;
var ReactRef = __webpack_require__(775);
var ReactInstrumentation = __webpack_require__(30);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
/**
* Helper to call ReactRef.attachRefs with this composite component, split out
@@ -10208,7 +10208,7 @@ var ReactPropTypes = __webpack_require__(821);
var ReactVersion = __webpack_require__(823);
var onlyChild = __webpack_require__(825);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var createElement = ReactElement.createElement;
var createFactory = ReactElement.createFactory;
@@ -10861,7 +10861,7 @@ var ReactErrorUtils = __webpack_require__(203);
var accumulateInto = __webpack_require__(344);
var forEachAccumulated = __webpack_require__(345);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* Internal store for event listeners
@@ -11141,7 +11141,7 @@ var EventPluginUtils = __webpack_require__(199);
var accumulateInto = __webpack_require__(344);
var forEachAccumulated = __webpack_require__(345);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var getListener = EventPluginHub.getListener;
@@ -12542,7 +12542,7 @@ module.exports = toNumber;
var _prodInvariant = __webpack_require__(9);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* Injectable ordering of event plugins.
@@ -13212,7 +13212,7 @@ module.exports = SyntheticMouseEvent;
var _prodInvariant = __webpack_require__(9);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
var OBSERVED_ERROR = {};
@@ -15864,7 +15864,7 @@ module.exports = values;
var assign = __webpack_require__(1016),
moment = __webpack_require__(5),
React = __webpack_require__(0),
- CalendarContainer = __webpack_require__(1131)
+ CalendarContainer = __webpack_require__(1133)
;
var TYPES = React.PropTypes;
@@ -16575,8 +16575,8 @@ var _prodInvariant = __webpack_require__(9);
var ReactErrorUtils = __webpack_require__(203);
-var invariant = __webpack_require__(6);
-var warning = __webpack_require__(7);
+var invariant = __webpack_require__(7);
+var warning = __webpack_require__(8);
/**
* Injected dependencies:
@@ -16871,8 +16871,8 @@ var _prodInvariant = __webpack_require__(9);
var React = __webpack_require__(77);
var ReactPropTypesSecret = __webpack_require__(342);
-var invariant = __webpack_require__(6);
-var warning = __webpack_require__(7);
+var invariant = __webpack_require__(7);
+var warning = __webpack_require__(8);
var hasReadOnlyValue = {
'button': true,
@@ -17009,7 +17009,7 @@ module.exports = LinkedValueUtils;
var _prodInvariant = __webpack_require__(9);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
var injected = false;
@@ -17146,8 +17146,8 @@ var ReactInstanceMap = __webpack_require__(96);
var ReactInstrumentation = __webpack_require__(30);
var ReactUpdates = __webpack_require__(36);
-var invariant = __webpack_require__(6);
-var warning = __webpack_require__(7);
+var invariant = __webpack_require__(7);
+var warning = __webpack_require__(8);
function enqueueUpdate(internalInstance) {
ReactUpdates.enqueueUpdate(internalInstance);
@@ -17665,7 +17665,7 @@ module.exports = shouldUpdateReactComponent;
var _assign = __webpack_require__(16);
var emptyFunction = __webpack_require__(31);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var validateDOMNesting = emptyFunction;
@@ -18083,8 +18083,8 @@ var ReactNoopUpdateQueue = __webpack_require__(214);
var canDefineProperty = __webpack_require__(216);
var emptyObject = __webpack_require__(84);
-var invariant = __webpack_require__(6);
-var warning = __webpack_require__(7);
+var invariant = __webpack_require__(7);
+var warning = __webpack_require__(8);
/**
* Base class helpers for the updating state of a component.
@@ -18200,7 +18200,7 @@ module.exports = ReactComponent;
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
function warnNoop(publicInstance, callerName) {
if (true) {
@@ -20609,21 +20609,21 @@ function _resetWarned() {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Router__ = __webpack_require__(1140);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Router__ = __webpack_require__(1142);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Router", function() { return __WEBPACK_IMPORTED_MODULE_0__Router__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Link__ = __webpack_require__(1017);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Link", function() { return __WEBPACK_IMPORTED_MODULE_1__Link__["a"]; });
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__IndexLink__ = __webpack_require__(1136);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__IndexLink__ = __webpack_require__(1138);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "IndexLink", function() { return __WEBPACK_IMPORTED_MODULE_2__IndexLink__["a"]; });
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__withRouter__ = __webpack_require__(1151);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__withRouter__ = __webpack_require__(1153);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "withRouter", function() { return __WEBPACK_IMPORTED_MODULE_3__withRouter__["a"]; });
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__IndexRedirect__ = __webpack_require__(1137);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__IndexRedirect__ = __webpack_require__(1139);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "IndexRedirect", function() { return __WEBPACK_IMPORTED_MODULE_4__IndexRedirect__["a"]; });
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__IndexRoute__ = __webpack_require__(1138);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__IndexRoute__ = __webpack_require__(1140);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "IndexRoute", function() { return __WEBPACK_IMPORTED_MODULE_5__IndexRoute__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Redirect__ = __webpack_require__(1019);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Redirect", function() { return __WEBPACK_IMPORTED_MODULE_6__Redirect__["a"]; });
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Route__ = __webpack_require__(1139);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Route__ = __webpack_require__(1141);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Route", function() { return __WEBPACK_IMPORTED_MODULE_7__Route__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__RouteUtils__ = __webpack_require__(150);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "createRoutes", function() { return __WEBPACK_IMPORTED_MODULE_8__RouteUtils__["a"]; });
@@ -20632,17 +20632,17 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__PropTypes__ = __webpack_require__(814);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "locationShape", function() { return __WEBPACK_IMPORTED_MODULE_10__PropTypes__["a"]; });
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "routerShape", function() { return __WEBPACK_IMPORTED_MODULE_10__PropTypes__["b"]; });
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__match__ = __webpack_require__(1149);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__match__ = __webpack_require__(1151);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "match", function() { return __WEBPACK_IMPORTED_MODULE_11__match__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__useRouterHistory__ = __webpack_require__(1024);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "useRouterHistory", function() { return __WEBPACK_IMPORTED_MODULE_12__useRouterHistory__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__PatternUtils__ = __webpack_require__(246);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "formatPattern", function() { return __WEBPACK_IMPORTED_MODULE_13__PatternUtils__["a"]; });
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__applyRouterMiddleware__ = __webpack_require__(1142);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__applyRouterMiddleware__ = __webpack_require__(1144);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "applyRouterMiddleware", function() { return __WEBPACK_IMPORTED_MODULE_14__applyRouterMiddleware__["a"]; });
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__browserHistory__ = __webpack_require__(1143);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__browserHistory__ = __webpack_require__(1145);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "browserHistory", function() { return __WEBPACK_IMPORTED_MODULE_15__browserHistory__["a"]; });
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__hashHistory__ = __webpack_require__(1147);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__hashHistory__ = __webpack_require__(1149);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "hashHistory", function() { return __WEBPACK_IMPORTED_MODULE_16__hashHistory__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__createMemoryHistory__ = __webpack_require__(1021);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "createMemoryHistory", function() { return __WEBPACK_IMPORTED_MODULE_17__createMemoryHistory__["a"]; });
@@ -22956,7 +22956,7 @@ module.exports = findIndex;
var convert = __webpack_require__(19),
func = convert('flow', __webpack_require__(689));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -22967,7 +22967,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('includes', __webpack_require__(92));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -22978,7 +22978,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('isNil', __webpack_require__(4), __webpack_require__(39));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -23689,7 +23689,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
var PooledClass = __webpack_require__(62);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* A specialized pseudo-event module to help keep track of components waiting to
@@ -23811,7 +23811,7 @@ var ReactDOMComponentTree = __webpack_require__(20);
var ReactInstrumentation = __webpack_require__(30);
var quoteAttributeValueForBrowser = __webpack_require__(802);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + DOMProperty.ATTRIBUTE_NAME_START_CHAR + '][' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$');
var illegalAttributeNameCache = {};
@@ -24077,7 +24077,7 @@ var LinkedValueUtils = __webpack_require__(201);
var ReactDOMComponentTree = __webpack_require__(20);
var ReactUpdates = __webpack_require__(36);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var didWarnValueLink = false;
var didWarnValueDefaultValue = false;
@@ -24340,7 +24340,7 @@ module.exports = ReactFeatureFlags;
var _prodInvariant = __webpack_require__(9);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
var genericComponentClass = null;
var textComponentClass = null;
@@ -24560,10 +24560,10 @@ var ReactUpdates = __webpack_require__(36);
var emptyObject = __webpack_require__(84);
var instantiateReactComponent = __webpack_require__(348);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
var setInnerHTML = __webpack_require__(138);
var shouldUpdateReactComponent = __webpack_require__(210);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var ATTR_NAME = DOMProperty.ID_ATTRIBUTE_NAME;
var ROOT_ATTR_NAME = DOMProperty.ROOT_ATTRIBUTE_NAME;
@@ -25088,7 +25088,7 @@ var _prodInvariant = __webpack_require__(9);
var React = __webpack_require__(77);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
var ReactNodeTypes = {
HOST: 0,
@@ -25185,7 +25185,7 @@ module.exports = ViewportMetrics;
var _prodInvariant = __webpack_require__(9);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* Accumulates items that must not be null or undefined into the first one. This
@@ -25362,8 +25362,8 @@ var ReactEmptyComponent = __webpack_require__(336);
var ReactHostComponent = __webpack_require__(338);
var getNextDebugID = __webpack_require__(799);
-var invariant = __webpack_require__(6);
-var warning = __webpack_require__(7);
+var invariant = __webpack_require__(7);
+var warning = __webpack_require__(8);
// To avoid a cyclic dependency, we create the final class in this module
var ReactCompositeComponentWrapper = function (element) {
@@ -25606,9 +25606,9 @@ var ReactCurrentOwner = __webpack_require__(37);
var REACT_ELEMENT_TYPE = __webpack_require__(764);
var getIteratorFn = __webpack_require__(798);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
var KeyEscapeUtils = __webpack_require__(200);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var SEPARATOR = '.';
var SUBSEPARATOR = ':';
@@ -26338,7 +26338,7 @@ var checkReactTypeSpec = __webpack_require__(824);
var canDefineProperty = __webpack_require__(216);
var getIteratorFn = __webpack_require__(217);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
function getDeclarationErrorAddendum() {
if (ReactCurrentOwner.current) {
@@ -34329,7 +34329,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -34447,7 +34447,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -34491,7 +34491,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -34523,7 +34523,7 @@ var _Dialog = __webpack_require__(458);
var _Dialog2 = _interopRequireDefault(_Dialog);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -36497,7 +36497,7 @@ module.exports = containsNode;
* @typechecks
*/
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* Convert array-like objects to arrays.
@@ -36635,7 +36635,7 @@ var ExecutionEnvironment = __webpack_require__(21);
var createArrayFromMixed = __webpack_require__(525);
var getMarkupWrap = __webpack_require__(527);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* Dummy container used to render all markup.
@@ -36721,7 +36721,7 @@ module.exports = createNodesFromMarkup;
var ExecutionEnvironment = __webpack_require__(21);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* Dummy container used to detect which wraps are necessary.
@@ -37209,7 +37209,7 @@ var canUseDOM = exports.canUseDOM = !!(typeof window !== 'undefined' && window.d
exports.__esModule = true;
-var _AsyncUtils = __webpack_require__(1123);
+var _AsyncUtils = __webpack_require__(1125);
var _PathUtils = __webpack_require__(149);
@@ -44069,7 +44069,7 @@ module.exports = forEach;
/***/ (function(module, exports, __webpack_require__) {
var mapping = __webpack_require__(692),
- fallbackHolder = __webpack_require__(17);
+ fallbackHolder = __webpack_require__(18);
/** Built-in value reference. */
var push = Array.prototype.push;
@@ -45039,7 +45039,7 @@ module.exports = {
var convert = __webpack_require__(19),
func = convert('compact', __webpack_require__(311), __webpack_require__(39));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -45050,7 +45050,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('curry', __webpack_require__(312));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -45061,7 +45061,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('eq', __webpack_require__(91));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -45072,7 +45072,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('get', __webpack_require__(72));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -45083,7 +45083,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('has', __webpack_require__(73));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -45094,7 +45094,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('isFunction', __webpack_require__(60), __webpack_require__(39));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -45105,7 +45105,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('isObject', __webpack_require__(26), __webpack_require__(39));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -45116,7 +45116,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('isPlainObject', __webpack_require__(127), __webpack_require__(39));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -45127,7 +45127,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('keys', __webpack_require__(29), __webpack_require__(39));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -45138,7 +45138,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('map', __webpack_require__(22));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -45149,7 +45149,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('min', __webpack_require__(716), __webpack_require__(39));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -45160,7 +45160,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('pick', __webpack_require__(131));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -45171,7 +45171,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('sortBy', __webpack_require__(721));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -45182,7 +45182,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('startsWith', __webpack_require__(327));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -45193,7 +45193,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('sum', __webpack_require__(724), __webpack_require__(39));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -45204,7 +45204,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('take', __webpack_require__(725));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -45215,7 +45215,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('values', __webpack_require__(195), __webpack_require__(39));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -46930,7 +46930,7 @@ var camelizeStyleName = __webpack_require__(523);
var dangerousStyleValue = __webpack_require__(794);
var hyphenateStyleName = __webpack_require__(530);
var memoizeStringOnly = __webpack_require__(533);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var processStyleName = memoizeStringOnly(function (styleName) {
return hyphenateStyleName(styleName);
@@ -47469,7 +47469,7 @@ var ExecutionEnvironment = __webpack_require__(21);
var createNodesFromMarkup = __webpack_require__(526);
var emptyFunction = __webpack_require__(31);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
var Danger = {
@@ -47974,7 +47974,7 @@ var instantiateReactComponent = __webpack_require__(348);
var KeyEscapeUtils = __webpack_require__(200);
var shouldUpdateReactComponent = __webpack_require__(210);
var traverseAllChildren = __webpack_require__(351);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var ReactComponentTreeHook;
@@ -48180,10 +48180,10 @@ if (true) {
}
var emptyObject = __webpack_require__(84);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
var shallowEqual = __webpack_require__(168);
var shouldUpdateReactComponent = __webpack_require__(210);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var CompositeTypes = {
ImpureClass: 0,
@@ -49082,7 +49082,7 @@ var ReactVersion = __webpack_require__(778);
var findDOMNode = __webpack_require__(795);
var getHostComponentFromComposite = __webpack_require__(346);
var renderSubtreeIntoContainer = __webpack_require__(803);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
ReactDefaultInjection.inject();
@@ -49212,11 +49212,11 @@ var ReactServerRenderingTransaction = __webpack_require__(776);
var emptyFunction = __webpack_require__(31);
var escapeTextContentForBrowser = __webpack_require__(137);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
var isEventSupported = __webpack_require__(209);
var shallowEqual = __webpack_require__(168);
var validateDOMNesting = __webpack_require__(211);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var Flags = ReactDOMComponentFlags;
var deleteListener = EventPluginHub.deleteListener;
@@ -50366,8 +50366,8 @@ var LinkedValueUtils = __webpack_require__(201);
var ReactDOMComponentTree = __webpack_require__(20);
var ReactUpdates = __webpack_require__(36);
-var invariant = __webpack_require__(6);
-var warning = __webpack_require__(7);
+var invariant = __webpack_require__(7);
+var warning = __webpack_require__(8);
var didWarnValueLink = false;
var didWarnCheckedLink = false;
@@ -50644,7 +50644,7 @@ module.exports = ReactDOMInput;
var DOMProperty = __webpack_require__(54);
var ReactComponentTreeHook = __webpack_require__(27);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var warnedProperties = {};
var rARIA = new RegExp('^(aria)-[' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$');
@@ -50741,7 +50741,7 @@ module.exports = ReactDOMInvalidARIAHook;
var ReactComponentTreeHook = __webpack_require__(27);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var didWarnValueNull = false;
@@ -50793,7 +50793,7 @@ var React = __webpack_require__(77);
var ReactDOMComponentTree = __webpack_require__(20);
var ReactDOMSelect = __webpack_require__(335);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var didWarnInvalidOptionChildren = false;
function flattenChildren(children) {
@@ -51140,7 +51140,7 @@ var DOMLazyTree = __webpack_require__(75);
var ReactDOMComponentTree = __webpack_require__(20);
var escapeTextContentForBrowser = __webpack_require__(137);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
var validateDOMNesting = __webpack_require__(211);
/**
@@ -51308,8 +51308,8 @@ var LinkedValueUtils = __webpack_require__(201);
var ReactDOMComponentTree = __webpack_require__(20);
var ReactUpdates = __webpack_require__(36);
-var invariant = __webpack_require__(6);
-var warning = __webpack_require__(7);
+var invariant = __webpack_require__(7);
+var warning = __webpack_require__(8);
var didWarnValueLink = false;
var didWarnValDefaultVal = false;
@@ -51468,7 +51468,7 @@ module.exports = ReactDOMTextarea;
var _prodInvariant = __webpack_require__(9);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* Return the lowest common ancestor of A and B, or null if they are in
@@ -51611,7 +51611,7 @@ var DOMProperty = __webpack_require__(54);
var EventPluginRegistry = __webpack_require__(133);
var ReactComponentTreeHook = __webpack_require__(27);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
if (true) {
var reactProps = {
@@ -51731,7 +51731,7 @@ var ReactComponentTreeHook = __webpack_require__(27);
var ExecutionEnvironment = __webpack_require__(21);
var performanceNow = __webpack_require__(535);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var hooks = [];
var didHookThrowForEvent = {};
@@ -52556,7 +52556,7 @@ module.exports = ReactInjection;
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
if (true) {
var processingChildContext = false;
@@ -52664,7 +52664,7 @@ var ReactChildReconciler = __webpack_require__(743);
var emptyFunction = __webpack_require__(31);
var flattenChildren = __webpack_require__(796);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* Make an update for markup to be rendered and inserted at a supplied index.
@@ -53110,7 +53110,7 @@ module.exports = ReactMultiChild;
var _prodInvariant = __webpack_require__(9);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* @param {?object} object
@@ -53613,7 +53613,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
var ReactUpdateQueue = __webpack_require__(204);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
function warnNoop(publicInstance, callerName) {
if (true) {
@@ -54294,7 +54294,7 @@ var SyntheticWheelEvent = __webpack_require__(791);
var emptyFunction = __webpack_require__(31);
var getEventCharCode = __webpack_require__(206);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* Turns
@@ -55055,8 +55055,8 @@ var _prodInvariant = __webpack_require__(9);
var ReactPropTypeLocationNames = __webpack_require__(773);
var ReactPropTypesSecret = __webpack_require__(342);
-var invariant = __webpack_require__(6);
-var warning = __webpack_require__(7);
+var invariant = __webpack_require__(7);
+var warning = __webpack_require__(8);
var ReactComponentTreeHook;
@@ -55144,7 +55144,7 @@ module.exports = checkReactTypeSpec;
var CSSProperty = __webpack_require__(331);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var isUnitlessNumber = CSSProperty.isUnitlessNumber;
var styleWarnings = {};
@@ -55234,8 +55234,8 @@ var ReactDOMComponentTree = __webpack_require__(20);
var ReactInstanceMap = __webpack_require__(96);
var getHostComponentFromComposite = __webpack_require__(346);
-var invariant = __webpack_require__(6);
-var warning = __webpack_require__(7);
+var invariant = __webpack_require__(7);
+var warning = __webpack_require__(8);
/**
* Returns the DOM node rendered by this element.
@@ -55295,7 +55295,7 @@ module.exports = findDOMNode;
var KeyEscapeUtils = __webpack_require__(200);
var traverseAllChildren = __webpack_require__(351);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var ReactComponentTreeHook;
@@ -56501,7 +56501,7 @@ var locationShape = shape({
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_invariant___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_invariant__);
/* 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__getRouteParams__ = __webpack_require__(1146);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__getRouteParams__ = __webpack_require__(1148);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ContextUtils__ = __webpack_require__(813);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__RouteUtils__ = __webpack_require__(150);
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
@@ -56706,7 +56706,7 @@ module.exports = KeyEscapeUtils;
var _prodInvariant = __webpack_require__(64);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* Static poolers. Several custom versions for each potential number of
@@ -57025,8 +57025,8 @@ var ReactPropTypeLocationNames = __webpack_require__(215);
var ReactNoopUpdateQueue = __webpack_require__(214);
var emptyObject = __webpack_require__(84);
-var invariant = __webpack_require__(6);
-var warning = __webpack_require__(7);
+var invariant = __webpack_require__(7);
+var warning = __webpack_require__(8);
var MIXINS_KEY = 'mixins';
@@ -57919,7 +57919,7 @@ var ReactPropTypesSecret = __webpack_require__(360);
var emptyFunction = __webpack_require__(31);
var getIteratorFn = __webpack_require__(217);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
/**
* Collection of methods that allow declaration and validation of props that are
@@ -58423,8 +58423,8 @@ var _prodInvariant = __webpack_require__(64);
var ReactPropTypeLocationNames = __webpack_require__(215);
var ReactPropTypesSecret = __webpack_require__(360);
-var invariant = __webpack_require__(6);
-var warning = __webpack_require__(7);
+var invariant = __webpack_require__(7);
+var warning = __webpack_require__(8);
var ReactComponentTreeHook;
@@ -58514,7 +58514,7 @@ var _prodInvariant = __webpack_require__(64);
var ReactElement = __webpack_require__(63);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* Returns the first child in a collection of children and verifies that there
@@ -58560,9 +58560,9 @@ var ReactCurrentOwner = __webpack_require__(37);
var REACT_ELEMENT_TYPE = __webpack_require__(358);
var getIteratorFn = __webpack_require__(217);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
var KeyEscapeUtils = __webpack_require__(816);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var SEPARATOR = '.';
var SUBSEPARATOR = ':';
@@ -68959,7 +68959,7 @@ exports.__esModule = true;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
-var _queryString = __webpack_require__(1130);
+var _queryString = __webpack_require__(1132);
var _runTransitionHook = __webpack_require__(539);
@@ -79767,7 +79767,7 @@ function assignRouterState(router, _ref) {
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_history_lib_useQueries___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_history_lib_useQueries__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_history_lib_useBasename__ = __webpack_require__(906);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_history_lib_useBasename___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_history_lib_useBasename__);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_history_lib_createMemoryHistory__ = __webpack_require__(1128);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_history_lib_createMemoryHistory__ = __webpack_require__(1130);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_history_lib_createMemoryHistory___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_history_lib_createMemoryHistory__);
/* harmony export (immutable) */ __webpack_exports__["a"] = createMemoryHistory;
@@ -79808,11 +79808,11 @@ var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.do
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__routerWarning__ = __webpack_require__(247);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__computeChangedRoutes__ = __webpack_require__(1144);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__TransitionUtils__ = __webpack_require__(1141);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__isActive__ = __webpack_require__(1148);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__getComponents__ = __webpack_require__(1145);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__matchRoutes__ = __webpack_require__(1150);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__computeChangedRoutes__ = __webpack_require__(1146);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__TransitionUtils__ = __webpack_require__(1143);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__isActive__ = __webpack_require__(1150);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__getComponents__ = __webpack_require__(1147);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__matchRoutes__ = __webpack_require__(1152);
/* harmony export (immutable) */ __webpack_exports__["a"] = createTransitionManager;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
@@ -80104,71 +80104,71 @@ var _react2 = _interopRequireDefault(_react);
var _reactRouter = __webpack_require__(248);
-var _AdminPage = __webpack_require__(1120);
+var _AdminPage = __webpack_require__(1122);
var _AdminPage2 = _interopRequireDefault(_AdminPage);
-var _SystemInfo = __webpack_require__(1113);
+var _SystemInfo = __webpack_require__(1115);
var _SystemInfo2 = _interopRequireDefault(_SystemInfo);
-var _UserList = __webpack_require__(1114);
+var _UserList = __webpack_require__(1116);
var _UserList2 = _interopRequireDefault(_UserList);
-var _DIO = __webpack_require__(1102);
+var _DIO = __webpack_require__(1104);
var _DIO2 = _interopRequireDefault(_DIO);
-var _Log = __webpack_require__(1107);
+var _Log = __webpack_require__(1109);
var _Log2 = _interopRequireDefault(_Log);
-var _LeOne = __webpack_require__(1106);
+var _LeOne = __webpack_require__(1108);
var _LeOne2 = _interopRequireDefault(_LeOne);
-var _IOGroup = __webpack_require__(1104);
+var _IOGroup = __webpack_require__(1106);
var _IOGroup2 = _interopRequireDefault(_IOGroup);
-var _IOCmd = __webpack_require__(1103);
+var _IOCmd = __webpack_require__(1105);
var _IOCmd2 = _interopRequireDefault(_IOCmd);
-var _Schedule = __webpack_require__(1112);
+var _Schedule = __webpack_require__(1114);
var _Schedule2 = _interopRequireDefault(_Schedule);
-var _Modbus = __webpack_require__(1108);
+var _Modbus = __webpack_require__(1110);
var _Modbus2 = _interopRequireDefault(_Modbus);
-var _ModbusCmd = __webpack_require__(1109);
+var _ModbusCmd = __webpack_require__(1111);
var _ModbusCmd2 = _interopRequireDefault(_ModbusCmd);
-var _ModbusLog = __webpack_require__(1110);
+var _ModbusLog = __webpack_require__(1112);
var _ModbusLog2 = _interopRequireDefault(_ModbusLog);
-var _ActionLink = __webpack_require__(1100);
+var _ActionLink = __webpack_require__(1102);
var _ActionLink2 = _interopRequireDefault(_ActionLink);
-var _ActionLinkAdd = __webpack_require__(1101);
+var _ActionLinkAdd = __webpack_require__(1103);
var _ActionLinkAdd2 = _interopRequireDefault(_ActionLinkAdd);
-var _IPCam = __webpack_require__(1105);
+var _IPCam = __webpack_require__(1107);
var _IPCam2 = _interopRequireDefault(_IPCam);
-var _Wristband = __webpack_require__(1119);
+var _Wristband = __webpack_require__(1121);
var _Wristband2 = _interopRequireDefault(_Wristband);
-var _ModbusPreview = __webpack_require__(1111);
+var _ModbusPreview = __webpack_require__(1113);
var _ModbusPreview2 = _interopRequireDefault(_ModbusPreview);
@@ -80212,7 +80212,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -80359,7 +80359,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -80430,9 +80430,9 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
var _reactRouter = __webpack_require__(248);
@@ -80593,17 +80593,1318 @@ var ActionLinkPage = function (_React$Component) {
exports.default = ActionLinkPage;
/***/ }),
-/* 1030 */,
-/* 1031 */,
-/* 1032 */,
-/* 1033 */,
-/* 1034 */,
+/* 1030 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+var _createClass = 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _react = __webpack_require__(0);
+
+var _react2 = _interopRequireDefault(_react);
+
+var _semanticUiReact = __webpack_require__(6);
+
+var _actions = __webpack_require__(17);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+var UnitDigitalInput = function (_React$Component) {
+ _inherits(UnitDigitalInput, _React$Component);
+
+ function UnitDigitalInput() {
+ var _ref;
+
+ var _temp, _this, _ret;
+
+ _classCallCheck(this, UnitDigitalInput);
+
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = UnitDigitalInput.__proto__ || Object.getPrototypeOf(UnitDigitalInput)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
+ list: [],
+ data: {
+ id: '',
+ op: '',
+ value: ''
+ }
+ }, _this.changeState = function (key, value) {
+ var data = _extends({}, _this.state.data);
+ if (key == 'dev') {
+ data.id = value == '' ? '' : 'di' + value + ',di_status';
+ }
+ if (key == 'op') {
+ data.op = value;
+ }
+ if (key == 'value') {
+ data.value = value;
+ }
+
+ _this.setState({
+ data: _extends({}, data)
+ }, function () {
+ _this.sendUpdate();
+ });
+ }, _this.sendUpdate = function () {
+ _this.props.updateData(_extends({}, _this.props.data, _this.state.data));
+ }, _temp), _possibleConstructorReturn(_this, _ret);
+ }
+
+ _createClass(UnitDigitalInput, [{
+ key: 'componentDidMount',
+ value: function componentDidMount() {
+ var _this2 = this;
+
+ var _props = this.props,
+ showDialog = _props.showDialog,
+ toggleLoading = _props.toggleLoading;
+
+
+ toggleLoading(1);
+ fetch('/api/system/getselectlist', (0, _actions.getRequest)({ type: 'di' })).then(function (response) {
+ return response.json();
+ }).then(function (json) {
+ toggleLoading(0);
+ if (json.status != 1) return showDialog(json.message);
+ _this2.setState({
+ list: json.data.record || []
+ });
+ });
+ }
+ }, {
+ key: 'componentWillReceiveProps',
+ value: function componentWillReceiveProps(np) {
+ var data = _extends({}, this.state.data);
+ if (np.data.id != data.id) data.id = np.data.id;
+ if (np.data.op != data.op) data.op = np.data.op;
+ if (np.data.value != data.value) data.value = np.data.op;
+
+ this.setState({
+ data: _extends({}, data)
+ });
+ }
+ }, {
+ key: 'render',
+ value: function render() {
+ var _this3 = this;
+
+ var ops = this.props.ops;
+
+ var id = '';
+ if (this.state.data.id != '') {
+ var m = this.state.data.id.match(/(\d+)/);
+ if (m != null && m.length > 1) {
+ id = m[1];
+ }
+ }
+ return _react2.default.createElement(
+ 'div',
+ null,
+ _react2.default.createElement(
+ 'select',
+ { value: id, onChange: function onChange(e) {
+ _this3.changeState('dev', e.target.value);
+ } },
+ _react2.default.createElement(
+ 'option',
+ { value: '' },
+ '\u9078\u64C7\u88DD\u7F6E'
+ ),
+ this.state.list.map(function (t, idx) {
+ return _react2.default.createElement(
+ 'option',
+ { key: idx, value: t.id },
+ t.name
+ );
+ })
+ ),
+ _react2.default.createElement(
+ 'select',
+ { value: this.state.data.op, onChange: function onChange(e) {
+ _this3.changeState('op', e.target.value);
+ } },
+ _react2.default.createElement(
+ 'option',
+ { value: '' },
+ '\u9078\u64C7\u689D\u4EF6'
+ ),
+ ops.map(function (t, idx) {
+ if (t.code != 8 && t.code != 9) {
+ return _react2.default.createElement(
+ 'option',
+ { value: t.code, key: idx },
+ t.name
+ );
+ }
+ })
+ ),
+ _react2.default.createElement(
+ 'select',
+ { value: this.state.data.value, onChange: function onChange(e) {
+ _this3.changeState('value', e.target.value);
+ } },
+ _react2.default.createElement(
+ 'option',
+ { value: '' },
+ '\u9078\u64C7\u72C0\u614B'
+ ),
+ _react2.default.createElement(
+ 'option',
+ { value: '0' },
+ '0'
+ ),
+ _react2.default.createElement(
+ 'option',
+ { value: '1' },
+ '1'
+ )
+ )
+ );
+ }
+ }]);
+
+ return UnitDigitalInput;
+}(_react2.default.Component);
+
+exports.default = UnitDigitalInput;
+
+/***/ }),
+/* 1031 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+var _createClass = 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _react = __webpack_require__(0);
+
+var _react2 = _interopRequireDefault(_react);
+
+var _semanticUiReact = __webpack_require__(6);
+
+var _actions = __webpack_require__(17);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+var UnitGroups = function (_React$Component) {
+ _inherits(UnitGroups, _React$Component);
+
+ function UnitGroups() {
+ _classCallCheck(this, UnitGroups);
+
+ return _possibleConstructorReturn(this, (UnitGroups.__proto__ || Object.getPrototypeOf(UnitGroups)).apply(this, arguments));
+ }
+
+ _createClass(UnitGroups, [{
+ key: 'render',
+ value: function render() {
+ var _props = this.props,
+ groups = _props.groups,
+ data = _props.data,
+ updateData = _props.updateData;
+
+ return _react2.default.createElement(
+ 'div',
+ null,
+ _react2.default.createElement(
+ 'select',
+ { value: data.dev, onChange: function onChange(e) {
+ updateData(_extends({}, data, { dev: e.target.value }));
+ } },
+ _react2.default.createElement(
+ 'option',
+ { value: '' },
+ '\u9078\u64C7\u7FA4\u7D44'
+ ),
+ Object.keys(groups).map(function (t, idx) {
+ return _react2.default.createElement(
+ 'option',
+ { key: idx, value: t },
+ groups[t].name
+ );
+ })
+ )
+ );
+ }
+ }]);
+
+ return UnitGroups;
+}(_react2.default.Component);
+
+exports.default = UnitGroups;
+
+/***/ }),
+/* 1032 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+var _createClass = 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _react = __webpack_require__(0);
+
+var _react2 = _interopRequireDefault(_react);
+
+var _semanticUiReact = __webpack_require__(6);
+
+var _actions = __webpack_require__(17);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+var UnitLeone = function (_React$Component) {
+ _inherits(UnitLeone, _React$Component);
+
+ function UnitLeone() {
+ var _ref;
+
+ var _temp, _this, _ret;
+
+ _classCallCheck(this, UnitLeone);
+
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = UnitLeone.__proto__ || Object.getPrototypeOf(UnitLeone)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
+ list: [],
+ data: {
+ id: '',
+ op: '',
+ mode: '',
+ value: ''
+ }
+ }, _this.changeState = function (key, value) {
+ var data = _extends({}, _this.state.data);
+ if (key == 'dev') {
+ data.id = value == '' ? '' : 'le' + value;
+ }
+ if (key == 'mode') {
+ data.mode = value;
+ }
+ if (key == 'op') {
+ data.op = value;
+ }
+ if (key == 'value') {
+ data.value = value;
+ }
+
+ _this.setState({
+ data: _extends({}, data)
+ }, function () {
+ _this.sendUpdate();
+ });
+ }, _this.sendUpdate = function () {
+ var data = _extends({}, _this.state.data);
+ data.id = data.id + ',' + data.mode;
+ delete data.mode;
+ _this.props.updateData(_extends({}, _this.props.data, data));
+ }, _temp), _possibleConstructorReturn(_this, _ret);
+ }
+
+ _createClass(UnitLeone, [{
+ key: 'componentDidMount',
+ value: function componentDidMount() {
+ var _this2 = this;
+
+ var _props = this.props,
+ showDialog = _props.showDialog,
+ toggleLoading = _props.toggleLoading;
+
+
+ toggleLoading(1);
+ fetch('/api/system/getselectlist', (0, _actions.getRequest)({ type: 'leone' })).then(function (response) {
+ return response.json();
+ }).then(function (json) {
+ toggleLoading(0);
+ if (json.status != 1) return showDialog(json.message);
+ _this2.setState({
+ list: json.data.record || []
+ });
+ });
+ }
+ }, {
+ key: 'componentWillReceiveProps',
+ value: function componentWillReceiveProps(np) {
+ var data = _extends({}, this.state.data);
+ if (np.data.op != data.op) data.op = np.data.op;
+ if (np.data.value != data.value) data.value = np.data.op;
+
+ var id = np.data.id.split(',')[0];
+ var mode = np.data.id.split(',')[1];
+ if (id != data.id) data.id = id;
+ if (mode != data.mode) data.mode = mode;
+
+ this.setState({
+ data: _extends({}, data)
+ });
+ }
+ }, {
+ key: 'render',
+ value: function render() {
+ var _this3 = this;
+
+ var ops = this.props.ops;
+
+ var id = '';
+ if (this.state.data.id != '') {
+ var m = this.state.data.id.match(/(\d+)/);
+ if (m != null && m.length > 1) {
+ id = m[1];
+ }
+ }
+ return _react2.default.createElement(
+ 'div',
+ null,
+ _react2.default.createElement(
+ 'select',
+ { value: id, onChange: function onChange(e) {
+ _this3.changeState('dev', e.target.value);
+ } },
+ _react2.default.createElement(
+ 'option',
+ { value: '' },
+ '\u9078\u64C7\u88DD\u7F6E'
+ ),
+ this.state.list.map(function (t, idx) {
+ return _react2.default.createElement(
+ 'option',
+ { key: idx, value: t.id },
+ t.name
+ );
+ })
+ ),
+ _react2.default.createElement(
+ 'select',
+ { value: this.state.data.mode, onChange: function onChange(e) {
+ _this3.changeState('mode', e.target.value);
+ } },
+ _react2.default.createElement(
+ 'option',
+ { value: '' },
+ '\u9078\u64C7\u611F\u6E2C\u5668'
+ ),
+ _react2.default.createElement(
+ 'option',
+ { value: 'leone_ttrigger1' },
+ '\u6EAB\u5EA6'
+ ),
+ _react2.default.createElement(
+ 'option',
+ { value: 'leone_htrigger1' },
+ '\u6FD5\u5EA6'
+ )
+ ),
+ _react2.default.createElement(
+ 'select',
+ { value: this.state.data.op, onChange: function onChange(e) {
+ _this3.changeState('op', e.target.value);
+ } },
+ _react2.default.createElement(
+ 'option',
+ { value: '' },
+ '\u9078\u64C7\u689D\u4EF6'
+ ),
+ ops.map(function (t, idx) {
+ if (t.code != 8 && t.code != 9) {
+ return _react2.default.createElement(
+ 'option',
+ { value: t.code, key: idx },
+ t.name
+ );
+ }
+ })
+ ),
+ _react2.default.createElement(_semanticUiReact.Input, { placeholder: '\u8ACB\u8F38\u5165\u6578\u503C', value: this.state.data.value, onChange: function onChange(e, d) {
+ _this3.changeState('value', d.value);
+ } })
+ );
+ }
+ }]);
+
+ return UnitLeone;
+}(_react2.default.Component);
+
+exports.default = UnitLeone;
+
+/***/ }),
+/* 1033 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+var _createClass = 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _react = __webpack_require__(0);
+
+var _react2 = _interopRequireDefault(_react);
+
+var _semanticUiReact = __webpack_require__(6);
+
+var _actions = __webpack_require__(17);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+var UnitTime = function (_React$Component) {
+ _inherits(UnitTime, _React$Component);
+
+ function UnitTime() {
+ var _ref;
+
+ var _temp, _this, _ret;
+
+ _classCallCheck(this, UnitTime);
+
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = UnitTime.__proto__ || Object.getPrototypeOf(UnitTime)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
+ list: [],
+ data: {
+ op: '',
+ id: 'dt0,mode0',
+ year: '-',
+ week: '-',
+ month: '-',
+ day: '-',
+ hour: '-',
+ min: '-'
+ }
+ }, _this.changeState = function (key, value) {
+ var data = _extends({}, _this.state.data);
+ if (key == 'op') {
+ data.op = value;
+ }
+ if (key == 'year') {
+ data.year = value == '' ? '-' : value;
+ }
+ if (key == 'week') {
+ data.week = value == '' ? '-' : value;
+ }
+ if (key == 'month') {
+ data.month = value == '' ? '-' : value;
+ }
+ if (key == 'day') {
+ data.day = value == '' ? '-' : value;
+ }
+ if (key == 'hour') {
+ data.hour = value == '' ? '-' : value;
+ }
+ if (key == 'min') {
+ data.min = value == '' ? '-' : value;
+ }
+
+ _this.setState({
+ data: _extends({}, data)
+ }, function () {
+ _this.sendUpdate();
+ });
+ }, _this.sendUpdate = function () {
+ var data = _extends({}, _this.state.data);
+ data.value = data.min + '|' + data.hour + '|' + data.day + '|' + data.month + '|' + data.week + '|' + data.year;
+ delete data.year;
+ delete data.week;
+ delete data.month;
+ delete data.day;
+ delete data.hour;
+ delete data.min;
+ _this.props.updateData(_extends({}, _this.props.data, data));
+ }, _temp), _possibleConstructorReturn(_this, _ret);
+ }
+
+ _createClass(UnitTime, [{
+ key: 'componentWillReceiveProps',
+ value: function componentWillReceiveProps(np) {
+ var data = _extends({}, this.state.data);
+ if (np.data.op != data.op) data.op = np.data.op;
+
+ var year = np.data.value.split('|')[5] || '-';
+ var week = np.data.value.split('|')[4] || '-';
+ var month = np.data.value.split('|')[3] || '-';
+ var day = np.data.value.split('|')[2] || '-';
+ var hour = np.data.value.split('|')[1] || '-';
+ var min = np.data.value.split('|')[0] || '-';
+
+ if (year != data.year) data.year = year;
+ if (week != data.week) data.week = week;
+ if (month != data.month) data.month = month;
+ if (day != data.day) data.day = day;
+ if (hour != data.hour) data.hour = hour;
+ if (min != data.min) data.min = min;
+
+ this.setState({
+ data: _extends({}, data)
+ });
+ }
+ }, {
+ key: 'render',
+ value: function render() {
+ var _this2 = this;
+
+ var ops = this.props.ops;
+
+ return _react2.default.createElement(
+ 'div',
+ null,
+ _react2.default.createElement(
+ 'select',
+ { value: this.state.data.op, onChange: function onChange(e) {
+ _this2.changeState('op', e.target.value);
+ } },
+ _react2.default.createElement(
+ 'option',
+ { value: '' },
+ '\u9078\u64C7\u689D\u4EF6'
+ ),
+ ops.map(function (t, idx) {
+ if (t.code != 8 && t.code != 9) {
+ return _react2.default.createElement(
+ 'option',
+ { value: t.code, key: idx },
+ t.name
+ );
+ }
+ })
+ ),
+ _react2.default.createElement(_semanticUiReact.Input, { size: 'mini', placeholder: '\u5E74(\u4E0D\u6307\u5B9A\u8ACB\u7559\u7A7A)', value: this.state.data.year == '-' ? '' : this.state.data.year,
+ onChange: function onChange(e, d) {
+ _this2.changeState('year', d.value);
+ } }),
+ _react2.default.createElement(_semanticUiReact.Input, { size: 'mini', placeholder: '\u9031(\u4E0D\u6307\u5B9A\u8ACB\u7559\u7A7A)', value: this.state.data.week == '-' ? '' : this.state.data.week,
+ onChange: function onChange(e, d) {
+ _this2.changeState('week', d.value);
+ } }),
+ _react2.default.createElement(_semanticUiReact.Input, { size: 'mini', placeholder: '\u6708(\u4E0D\u6307\u5B9A\u8ACB\u7559\u7A7A)', value: this.state.data.month == '-' ? '' : this.state.data.month,
+ onChange: function onChange(e, d) {
+ _this2.changeState('month', d.value);
+ } }),
+ _react2.default.createElement(_semanticUiReact.Input, { size: 'mini', placeholder: '\u65E5(\u4E0D\u6307\u5B9A\u8ACB\u7559\u7A7A)', value: this.state.data.day == '-' ? '' : this.state.data.day,
+ onChange: function onChange(e, d) {
+ _this2.changeState('day', d.value);
+ } }),
+ _react2.default.createElement(_semanticUiReact.Input, { size: 'mini', placeholder: '\u6642(\u4E0D\u6307\u5B9A\u8ACB\u7559\u7A7A)', value: this.state.data.hour == '-' ? '' : this.state.data.hour,
+ onChange: function onChange(e, d) {
+ _this2.changeState('hour', d.value);
+ } }),
+ _react2.default.createElement(_semanticUiReact.Input, { size: 'mini', placeholder: '\u5206(\u4E0D\u6307\u5B9A\u8ACB\u7559\u7A7A)', value: this.state.data.min == '-' ? '' : this.state.data.min,
+ onChange: function onChange(e, d) {
+ _this2.changeState('min', d.value);
+ } })
+ );
+ }
+ }]);
+
+ return UnitTime;
+}(_react2.default.Component);
+
+exports.default = UnitTime;
+
+/***/ }),
+/* 1034 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _createClass = 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _react = __webpack_require__(0);
+
+var _react2 = _interopRequireDefault(_react);
+
+var _semanticUiReact = __webpack_require__(6);
+
+var _UnitLeone = __webpack_require__(1032);
+
+var _UnitLeone2 = _interopRequireDefault(_UnitLeone);
+
+var _UnitDigitalInput = __webpack_require__(1030);
+
+var _UnitDigitalInput2 = _interopRequireDefault(_UnitDigitalInput);
+
+var _UnitTime = __webpack_require__(1033);
+
+var _UnitTime2 = _interopRequireDefault(_UnitTime);
+
+var _UnitGroups = __webpack_require__(1031);
+
+var _UnitGroups2 = _interopRequireDefault(_UnitGroups);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+var Unit = function (_React$Component) {
+ _inherits(Unit, _React$Component);
+
+ function Unit() {
+ var _ref;
+
+ var _temp, _this, _ret;
+
+ _classCallCheck(this, Unit);
+
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Unit.__proto__ || Object.getPrototypeOf(Unit)).call.apply(_ref, [this].concat(args))), _this), _this.handleChangeUnit = function (val) {
+ _this.props.changeUnitType(_this.props.id, val);
+ }, _this.getUnitComponent = function () {
+ var _this$props = _this.props,
+ data = _this$props.data,
+ ops = _this$props.ops,
+ i18n = _this$props.i18n,
+ showDialog = _this$props.showDialog,
+ toggleLoading = _this$props.toggleLoading,
+ groups = _this$props.groups;
+
+
+ switch (data.unit) {
+ case 'leone':
+ return _react2.default.createElement(_UnitLeone2.default, { ops: ops, data: data.data, i18n: i18n, showDialog: showDialog, toggleLoading: toggleLoading, updateData: _this.updateData });
+ case 'di':
+ return _react2.default.createElement(_UnitDigitalInput2.default, { ops: ops, data: data.data, i18n: i18n, showDialog: showDialog, toggleLoading: toggleLoading, updateData: _this.updateData });
+ case 'time':
+ return _react2.default.createElement(_UnitTime2.default, { ops: ops, data: data.data, i18n: i18n, showDialog: showDialog, toggleLoading: toggleLoading, updateData: _this.updateData });
+ case 'unit':
+ return _react2.default.createElement(_UnitGroups2.default, { i18n: i18n, data: data.data, groups: groups, updateData: _this.updateData });
+ default:
+ return null;
+ }
+ }, _this.updateData = function (data) {
+ _this.props.updateData(_this.props.id, data);
+ }, _temp), _possibleConstructorReturn(_this, _ret);
+ }
+
+ _createClass(Unit, [{
+ key: 'render',
+ value: function render() {
+ var _this2 = this;
+
+ var _props = this.props,
+ ops = _props.ops,
+ id = _props.id;
+
+ return _react2.default.createElement(
+ _semanticUiReact.Segment,
+ null,
+ _react2.default.createElement(
+ _semanticUiReact.Form.Field,
+ null,
+ _react2.default.createElement(
+ 'label',
+ null,
+ '\u9078\u64C7\u5143\u4EF6'
+ ),
+ _react2.default.createElement(
+ 'select',
+ { value: this.props.data.unit, onChange: function onChange(e) {
+ _this2.handleChangeUnit(e.target.value);
+ } },
+ _react2.default.createElement(
+ 'option',
+ { value: '' },
+ '\u8ACB\u9078\u64C7\u5143\u4EF6'
+ ),
+ _react2.default.createElement(
+ 'option',
+ { value: 'leone' },
+ 'LeOne'
+ ),
+ _react2.default.createElement(
+ 'option',
+ { value: 'di' },
+ 'DigitalInput'
+ ),
+ _react2.default.createElement(
+ 'option',
+ { value: 'time' },
+ '\u6642\u9593'
+ ),
+ _react2.default.createElement(
+ 'option',
+ { value: 'unit' },
+ '\u5DF2\u5EFA\u7ACB\u7FA4\u7D44'
+ )
+ )
+ ),
+ this.getUnitComponent()
+ );
+ }
+ }]);
+
+ return Unit;
+}(_react2.default.Component);
+
+exports.default = Unit;
+
+/***/ }),
/* 1035 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
+
+var _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; };
+
+var _createClass = 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _react = __webpack_require__(0);
+
+var _react2 = _interopRequireDefault(_react);
+
+var _semanticUiReact = __webpack_require__(6);
+
+var _Unit = __webpack_require__(1034);
+
+var _Unit2 = _interopRequireDefault(_Unit);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+var ops = [{
+ "code": "0",
+ "name": "等於"
+}, {
+ "code": "1",
+ "name": "大於"
+}, {
+ "code": "2",
+ "name": "小於"
+}, {
+ "code": "3",
+ "name": "大於等於"
+}, {
+ "code": "4",
+ "name": "小於等於"
+}, {
+ "code": "5",
+ "name": "不等於"
+}, {
+ "code": "8",
+ "name": "AND"
+}, {
+ "code": "9",
+ "name": "OR"
+}];
+
+var stateDefault = function stateDefault() {
+ return {
+ id1: {
+ unit: '',
+ data: {}
+ },
+ id2: {
+ unit: '',
+ data: {}
+ },
+ name: '',
+ op: ''
+ };
+};
+
+var lcDef = function lcDef() {
+ return {
+ type: 'lc',
+ id: '',
+ op: '',
+ value: ''
+ };
+};
+
+var lnDef = function lnDef() {
+ return {
+ type: 'ln',
+ dev: ''
+ };
+};
+
+var ConditionField = function (_React$Component) {
+ _inherits(ConditionField, _React$Component);
+
+ function ConditionField() {
+ var _ref;
+
+ var _temp, _this, _ret;
+
+ _classCallCheck(this, ConditionField);
+
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ConditionField.__proto__ || Object.getPrototypeOf(ConditionField)).call.apply(_ref, [this].concat(args))), _this), _this.state = _extends({}, stateDefault()), _this.changeUnitType = function (id, type) {
+ var st = _this.state;
+ if (id in st) {
+ st[id].unit = type;
+ if (type == '') {
+ st[id].data = {};
+ } else if (type == 'unit') {
+ st[id].data = _extends({}, lnDef());
+ } else {
+ st[id].data = _extends({}, lcDef());
+ }
+ _this.setState(_extends({}, st));
+ }
+ }, _this.updateData = function (id, data) {
+ var st = _this.state;
+ if (id in st) {
+ st[id].data = data;
+ _this.setState(_extends({}, st));
+ }
+ }, _this.clearField = function () {
+ _this.setState(_extends({}, stateDefault()));
+ }, _this.joinGroup = function () {
+ var id1 = _extends({}, _this.state.id1);
+ var id2 = _extends({}, _this.state.id2);
+ var _this$props = _this.props,
+ showDialog = _this$props.showDialog,
+ addNewGroup = _this$props.addNewGroup;
+
+ if (!('type' in id1.data)) {
+ showDialog('請選擇元件');
+ } else {
+ if (id1.data.type == 'lc') {
+ var chk = _this.checkLC(id1.data);
+ if (chk.status != 1) return showDialog(chk.message);
+ } else {
+ var _chk = _this.checkLN(id1.data);
+ if (_chk.status != 1) return showDialog(_chk.message);
+ }
+ }
+
+ if (!('type' in id2.data)) {
+ showDialog('請選擇元件');
+ } else {
+ if (id2.data.type == 'lc') {
+ var _chk2 = _this.checkLC(id2.data);
+ if (_chk2.status != 1) return showDialog(_chk2.message);
+ } else {
+ var _chk3 = _this.checkLN(id2.data);
+ if (_chk3.status != 1) return showDialog(_chk3.message);
+ }
+ }
+
+ if (!_this.state.op) return showDialog('請選擇條件');
+ if (!_this.state.name) return showDialog('請輸入名稱');
+
+ addNewGroup({
+ name: _this.state.name,
+ op: _this.state.op,
+ type: 'lc',
+ id1: id1.data,
+ id2: id2.data
+ }, _this.clearField);
+ }, _this.changeState = function (tag, value) {
+ if (!tag) return;
+ if (tag == 'name') {
+ _this.setState({
+ name: value
+ });
+ }
+ if (tag == 'op') {
+ _this.setState({
+ op: value
+ });
+ }
+ }, _this.checkLC = function (data) {
+ var json = {
+ status: 0,
+ message: ''
+ };
+ if ((typeof data === 'undefined' ? 'undefined' : _typeof(data)) != 'object' || Object.keys(data).length == 0) return _extends({}, json, { message: '請選擇元件' });
+ if (!data.id) return _extends({}, json, { message: '請選擇裝置' });
+ if (!('op' in data) || data.op == '') return _extends({}, json, { message: '請選擇條件' });
+ if (!('value' in data) || data.value == '') return _extends({}, json, { message: '請輸入數值' });
+ return _extends({}, json, { status: 1 });
+ }, _this.checkLN = function (data) {
+ var json = {
+ status: 0,
+ message: ''
+ };
+ if ((typeof data === 'undefined' ? 'undefined' : _typeof(data)) != 'object' || Object.keys(data).length == 0) return _extends({}, json, { message: '請選擇元件' });
+ if (!data.dev) return _extends({}, json, { message: '請選擇群組' });
+ return _extends({}, json, { status: 1 });
+ }, _temp), _possibleConstructorReturn(_this, _ret);
+ }
+
+ _createClass(ConditionField, [{
+ key: 'render',
+ value: function render() {
+ var _this2 = this;
+
+ var _props = this.props,
+ i18n = _props.i18n,
+ showDialog = _props.showDialog,
+ toggleLoading = _props.toggleLoading;
+
+ return _react2.default.createElement(
+ _semanticUiReact.Segment,
+ { color: 'red' },
+ _react2.default.createElement(
+ _semanticUiReact.Form.Field,
+ null,
+ _react2.default.createElement(_semanticUiReact.Input, { label: '\u7BC0\u9EDE\u540D\u7A31', value: this.state.name, onChange: function onChange(e, d) {
+ _this2.changeState('name', d.value);
+ } })
+ ),
+ _react2.default.createElement(
+ _semanticUiReact.Form.Field,
+ null,
+ _react2.default.createElement(
+ 'label',
+ null,
+ '\u89F8\u767C\u689D\u4EF6'
+ ),
+ _react2.default.createElement(
+ 'select',
+ { value: this.state.op, onChange: function onChange(e) {
+ _this2.changeState('op', e.target.value);
+ } },
+ _react2.default.createElement(
+ 'option',
+ { value: '' },
+ '\u8ACB\u9078\u64C7\u89F8\u767C\u689D\u4EF6'
+ ),
+ ops.map(function (t, idx) {
+ if (t.code == 8 || t.code == 9) {
+ return _react2.default.createElement(
+ 'option',
+ { key: idx, value: t.code },
+ t.name
+ );
+ }
+ })
+ )
+ ),
+ _react2.default.createElement(
+ _semanticUiReact.Grid,
+ { columns: 2, padded: true },
+ _react2.default.createElement(
+ _semanticUiReact.Grid.Column,
+ null,
+ _react2.default.createElement(_Unit2.default, { i18n: i18n, id: 'id1',
+ data: this.state.id1,
+ groups: this.props.groups,
+ ops: ops,
+ toggleLoading: toggleLoading,
+ showDialog: showDialog,
+ updateData: this.updateData,
+ changeUnitType: this.changeUnitType })
+ ),
+ _react2.default.createElement(
+ _semanticUiReact.Grid.Column,
+ null,
+ _react2.default.createElement(_Unit2.default, { i18n: i18n, id: 'id2',
+ data: this.state.id2,
+ groups: this.props.groups,
+ ops: ops,
+ toggleLoading: toggleLoading,
+ showDialog: showDialog,
+ updateData: this.updateData,
+ changeUnitType: this.changeUnitType })
+ )
+ ),
+ _react2.default.createElement(
+ 'div',
+ { style: { textAlign: 'right' } },
+ _react2.default.createElement(_semanticUiReact.Button, { content: '\u52A0\u5165', basic: true, size: 'mini', color: 'blue', onClick: function onClick() {
+ _this2.joinGroup();
+ } }),
+ _react2.default.createElement(_semanticUiReact.Button, { content: '\u6E05\u9664', basic: true, size: 'mini', color: 'red', onClick: function onClick() {
+ _this2.clearField();
+ } })
+ )
+ );
+ }
+ }]);
+
+ return ConditionField;
+}(_react2.default.Component);
+
+exports.default = ConditionField;
+
+/***/ }),
+/* 1036 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
+var _createClass = 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _react = __webpack_require__(0);
+
+var _react2 = _interopRequireDefault(_react);
+
+var _semanticUiReact = __webpack_require__(6);
+
+var _Condition = __webpack_require__(1035);
+
+var _Condition2 = _interopRequireDefault(_Condition);
+
+var _ActionSelect = __webpack_require__(1157);
+
+var _ActionSelect2 = _interopRequireDefault(_ActionSelect);
+
+var _ActionList = __webpack_require__(1162);
+
+var _ActionList2 = _interopRequireDefault(_ActionList);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+var stateDefault = function stateDefault() {
+ return {
+ groups: {},
+ idx: 0,
+ active: 0,
+ actions: []
+ };
+};
+
+var ActionLinkAdd = function (_React$Component) {
+ _inherits(ActionLinkAdd, _React$Component);
+
+ function ActionLinkAdd() {
+ var _ref;
+
+ var _temp, _this, _ret;
+
+ _classCallCheck(this, ActionLinkAdd);
+
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ActionLinkAdd.__proto__ || Object.getPrototypeOf(ActionLinkAdd)).call.apply(_ref, [this].concat(args))), _this), _this.state = _extends({}, stateDefault()), _this.changeState = function (tag, value) {
+ if (tag == 'active') {
+ _this.setState({
+ active: value ? 1 : 0
+ });
+ }
+ }, _this.addNewGroup = function (data) {
+ var cb = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
+
+ var devs = [];
+ var groups = _this.state.groups;
+
+ if (data.id1.type == 'ln') devs.push(data.id1.dev);
+ if (data.id2.type == 'ln') devs.push(data.id2.dev);
+
+ data.id1 = _extends({}, data.id1, groups[data.id1.dev]);
+ data.id2 = _extends({}, data.id2, groups[data.id2.dev]);
+ delete data.id1.dev;
+ delete data.id2.dev;
+
+ for (var i in devs) {
+ if (devs[i] in groups) delete groups[devs[i]];
+ }
+
+ var idx = _this.state.idx + 1;
+ groups['unit' + idx] = data;
+
+ _this.setState({
+ groups: groups,
+ idx: idx
+ }, function () {
+ if (cb && typeof cb == 'function') cb();
+ });
+ }, _this.addNewAction = function (data) {
+ var cb = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
+
+ _this.setState({
+ actions: [].concat(_toConsumableArray(_this.state.actions), [data])
+ }, function () {
+ if (cb && typeof cb == 'function') cb();
+ });
+ }, _this.removeAction = function (idx) {
+ var actions = _this.state.actions;
+
+ actions.splice(idx, 1);
+ _this.setState({
+ actions: actions
+ });
+ }, _temp), _possibleConstructorReturn(_this, _ret);
+ }
+
+ _createClass(ActionLinkAdd, [{
+ key: 'render',
+ value: function render() {
+ var _this2 = this;
+
+ var _props = this.props,
+ i18n = _props.i18n,
+ showDialog = _props.showDialog,
+ toggleLoading = _props.toggleLoading;
+
+ return _react2.default.createElement(
+ _semanticUiReact.Container,
+ null,
+ _react2.default.createElement(
+ _semanticUiReact.Menu,
+ null,
+ _react2.default.createElement(
+ _semanticUiReact.Menu.Menu,
+ { position: 'right' },
+ _react2.default.createElement(_semanticUiReact.Menu.Item, { content: 'ShowTree', onClick: function onClick() {
+ console.log(_this2.state);
+ } }),
+ _react2.default.createElement(_semanticUiReact.Menu.Item, { content: 'Save', onClick: function onClick() {} })
+ )
+ ),
+ _react2.default.createElement(
+ _semanticUiReact.Form,
+ { as: _semanticUiReact.Segment },
+ _react2.default.createElement(
+ _semanticUiReact.Form.Field,
+ null,
+ _react2.default.createElement(_semanticUiReact.Checkbox, { label: '\u555F\u7528\u9023\u52D5', checked: this.state.active == 1, onChange: function onChange(e, d) {
+ _this2.changeState('active', d.checked);
+ } })
+ ),
+ _react2.default.createElement(
+ _semanticUiReact.Form.Field,
+ null,
+ _react2.default.createElement(
+ 'label',
+ null,
+ '\u5EFA\u7ACB\u689D\u4EF6\u7FA4\u7D44'
+ ),
+ _react2.default.createElement(_Condition2.default, { i18n: i18n,
+ showDialog: showDialog,
+ toggleLoading: toggleLoading,
+ groups: this.state.groups,
+ addNewGroup: this.addNewGroup })
+ ),
+ _react2.default.createElement(
+ _semanticUiReact.Form.Field,
+ null,
+ _react2.default.createElement(
+ 'label',
+ null,
+ '\u52A0\u5165\u52D5\u4F5C'
+ ),
+ _react2.default.createElement(_ActionSelect2.default, { i18n: i18n,
+ showDialog: showDialog,
+ toggleLoading: toggleLoading,
+ addNewAction: this.addNewAction })
+ ),
+ _react2.default.createElement(
+ _semanticUiReact.Form.Field,
+ null,
+ _react2.default.createElement(
+ 'label',
+ null,
+ '\u5DF2\u9078\u64C7\u52D5\u4F5C'
+ ),
+ _react2.default.createElement(_ActionList2.default, { i18n: i18n, list: this.state.actions, removeAction: this.removeAction })
+ )
+ )
+ );
+ }
+ }]);
+
+ return ActionLinkAdd;
+}(_react2.default.Component);
+
+exports.default = ActionLinkAdd;
+
+/***/ }),
+/* 1037 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
Object.defineProperty(exports, "__esModule", {
value: true
});
@@ -80612,7 +81913,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -80664,7 +81965,7 @@ var DiItem = function DiItem(_ref) {
exports.default = DiItem;
/***/ }),
-/* 1036 */
+/* 1038 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -80678,7 +81979,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -80727,7 +82028,7 @@ var DoItem = function DoItem(_ref) {
exports.default = DoItem;
/***/ }),
-/* 1037 */
+/* 1039 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -80745,13 +82046,13 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _DoItem = __webpack_require__(1036);
+var _DoItem = __webpack_require__(1038);
var _DoItem2 = _interopRequireDefault(_DoItem);
-var _DiItem = __webpack_require__(1035);
+var _DiItem = __webpack_require__(1037);
var _DiItem2 = _interopRequireDefault(_DiItem);
@@ -80968,7 +82269,7 @@ var DIO = function (_React$Component) {
exports.default = DIO;
/***/ }),
-/* 1038 */
+/* 1040 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -80982,7 +82283,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -81011,7 +82312,7 @@ var SelectedItem = function SelectedItem(_ref) {
exports.default = SelectedItem;
/***/ }),
-/* 1039 */
+/* 1041 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -81029,13 +82330,13 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
var _DeviceSelect = __webpack_require__(457);
var _DeviceSelect2 = _interopRequireDefault(_DeviceSelect);
-var _SelectedItem = __webpack_require__(1038);
+var _SelectedItem = __webpack_require__(1040);
var _SelectedItem2 = _interopRequireDefault(_SelectedItem);
@@ -81224,7 +82525,7 @@ var IOCmdPage = function (_React$Component) {
exports.default = IOCmdPage;
/***/ }),
-/* 1040 */
+/* 1042 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -81238,9 +82539,9 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _SelectedItem = __webpack_require__(1042);
+var _SelectedItem = __webpack_require__(1044);
var _SelectedItem2 = _interopRequireDefault(_SelectedItem);
@@ -81329,7 +82630,7 @@ var GroupModal = function GroupModal(_ref) {
exports.default = GroupModal;
/***/ }),
-/* 1041 */
+/* 1043 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -81343,7 +82644,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -81422,7 +82723,7 @@ var ListItem = function ListItem(_ref) {
exports.default = ListItem;
/***/ }),
-/* 1042 */
+/* 1044 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -81436,7 +82737,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -81465,7 +82766,7 @@ var SelectedItem = function SelectedItem(_ref) {
exports.default = SelectedItem;
/***/ }),
-/* 1043 */
+/* 1045 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -81483,13 +82784,13 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _ListItem = __webpack_require__(1041);
+var _ListItem = __webpack_require__(1043);
var _ListItem2 = _interopRequireDefault(_ListItem);
-var _GroupModal = __webpack_require__(1040);
+var _GroupModal = __webpack_require__(1042);
var _GroupModal2 = _interopRequireDefault(_GroupModal);
@@ -81718,7 +83019,7 @@ var ShowGroupItem = function ShowGroupItem(_ref2) {
exports.default = IOGroupPage;
/***/ }),
-/* 1044 */
+/* 1046 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -81734,7 +83035,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-__webpack_require__(8);
+__webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -81767,7 +83068,7 @@ var IPCamPage = function (_React$Component) {
exports.default = IPCamPage;
/***/ }),
-/* 1045 */
+/* 1047 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -81781,7 +83082,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -81856,7 +83157,7 @@ var CmdModal = function CmdModal(_ref) {
exports.default = CmdModal;
/***/ }),
-/* 1046 */
+/* 1048 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -81870,7 +83171,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -81944,7 +83245,7 @@ var LeOneModal = function LeOneModal(_ref) {
exports.default = LeOneModal;
/***/ }),
-/* 1047 */
+/* 1049 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -81958,7 +83259,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -82058,7 +83359,7 @@ var ListItem = function ListItem(_ref) {
exports.default = ListItem;
/***/ }),
-/* 1048 */
+/* 1050 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -82072,7 +83373,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -82158,7 +83459,7 @@ var ScanForm = function ScanForm(_ref) {
exports.default = ScanForm;
/***/ }),
-/* 1049 */
+/* 1051 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -82174,9 +83475,9 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _SelectScanItem = __webpack_require__(1050);
+var _SelectScanItem = __webpack_require__(1052);
var _SelectScanItem2 = _interopRequireDefault(_SelectScanItem);
@@ -82371,7 +83672,7 @@ var SelectScan = function (_React$Component) {
exports.default = SelectScan;
/***/ }),
-/* 1050 */
+/* 1052 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -82385,7 +83686,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -82420,7 +83721,7 @@ var ScanItem = function ScanItem(_ref) {
exports.default = ScanItem;
/***/ }),
-/* 1051 */
+/* 1053 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -82436,27 +83737,27 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _ScanForm = __webpack_require__(1048);
+var _ScanForm = __webpack_require__(1050);
var _ScanForm2 = _interopRequireDefault(_ScanForm);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
-var _SelectScan = __webpack_require__(1049);
+var _SelectScan = __webpack_require__(1051);
var _SelectScan2 = _interopRequireDefault(_SelectScan);
-var _ListItem = __webpack_require__(1047);
+var _ListItem = __webpack_require__(1049);
var _ListItem2 = _interopRequireDefault(_ListItem);
-var _LeOneModal = __webpack_require__(1046);
+var _LeOneModal = __webpack_require__(1048);
var _LeOneModal2 = _interopRequireDefault(_LeOneModal);
-var _CmdModal = __webpack_require__(1045);
+var _CmdModal = __webpack_require__(1047);
var _CmdModal2 = _interopRequireDefault(_CmdModal);
@@ -82696,7 +83997,7 @@ var LeOnePage = function (_React$Component) {
exports.default = LeOnePage;
/***/ }),
-/* 1052 */
+/* 1054 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -82710,7 +84011,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
var _tools = __webpack_require__(79);
@@ -82764,7 +84065,7 @@ var LogItem = function LogItem(_ref) {
exports.default = LogItem;
/***/ }),
-/* 1053 */
+/* 1055 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -82780,9 +84081,9 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _LogItem = __webpack_require__(1052);
+var _LogItem = __webpack_require__(1054);
var _LogItem2 = _interopRequireDefault(_LogItem);
@@ -82903,7 +84204,7 @@ var LogPage = function (_React$Component) {
exports.default = LogPage;
/***/ }),
-/* 1054 */
+/* 1056 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -82919,7 +84220,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -83004,7 +84305,7 @@ var AIOForm = function AIOForm(_ref) {
exports.default = AIOForm;
/***/ }),
-/* 1055 */
+/* 1057 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -83018,7 +84319,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -83077,7 +84378,7 @@ var AIOListItem = function AIOListItem(_ref) {
exports.default = AIOListItem;
/***/ }),
-/* 1056 */
+/* 1058 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -83093,13 +84394,13 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _AIOListItem = __webpack_require__(1055);
+var _AIOListItem = __webpack_require__(1057);
var _AIOListItem2 = _interopRequireDefault(_AIOListItem);
-var _AIOForm = __webpack_require__(1054);
+var _AIOForm = __webpack_require__(1056);
var _AIOForm2 = _interopRequireDefault(_AIOForm);
@@ -83243,7 +84544,7 @@ var AIOModal = function (_React$Component) {
exports.default = AIOModal;
/***/ }),
-/* 1057 */
+/* 1059 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -83257,9 +84558,9 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _DeviceListItem = __webpack_require__(1058);
+var _DeviceListItem = __webpack_require__(1060);
var _DeviceListItem2 = _interopRequireDefault(_DeviceListItem);
@@ -83295,7 +84596,7 @@ var DeviceList = function DeviceList(_ref) {
exports.default = DeviceList;
/***/ }),
-/* 1058 */
+/* 1060 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -83309,7 +84610,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -83353,7 +84654,7 @@ var DeviceListItem = function DeviceListItem(_ref) {
exports.default = DeviceListItem;
/***/ }),
-/* 1059 */
+/* 1061 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -83367,7 +84668,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -83478,7 +84779,7 @@ var IOModal = function IOModal(_ref) {
exports.default = IOModal;
/***/ }),
-/* 1060 */
+/* 1062 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -83494,11 +84795,11 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
var _tools = __webpack_require__(79);
-var _IOPanelListItem = __webpack_require__(1061);
+var _IOPanelListItem = __webpack_require__(1063);
var _IOPanelListItem2 = _interopRequireDefault(_IOPanelListItem);
@@ -83656,7 +84957,7 @@ var IOPanel = function (_React$Component) {
exports.default = IOPanel;
/***/ }),
-/* 1061 */
+/* 1063 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -83670,7 +84971,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -83719,7 +85020,7 @@ var IOPanelListItem = function IOPanelListItem(_ref) {
exports.default = IOPanelListItem;
/***/ }),
-/* 1062 */
+/* 1064 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -83733,7 +85034,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -83816,7 +85117,7 @@ var ModbusModal = function ModbusModal(_ref) {
exports.default = ModbusModal;
/***/ }),
-/* 1063 */
+/* 1065 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -83834,25 +85135,25 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _DeviceList = __webpack_require__(1057);
+var _DeviceList = __webpack_require__(1059);
var _DeviceList2 = _interopRequireDefault(_DeviceList);
-var _ModbusModal = __webpack_require__(1062);
+var _ModbusModal = __webpack_require__(1064);
var _ModbusModal2 = _interopRequireDefault(_ModbusModal);
-var _IOPanel = __webpack_require__(1060);
+var _IOPanel = __webpack_require__(1062);
var _IOPanel2 = _interopRequireDefault(_IOPanel);
-var _IOModal = __webpack_require__(1059);
+var _IOModal = __webpack_require__(1061);
var _IOModal2 = _interopRequireDefault(_IOModal);
-var _AIOModal = __webpack_require__(1056);
+var _AIOModal = __webpack_require__(1058);
var _AIOModal2 = _interopRequireDefault(_AIOModal);
@@ -84094,7 +85395,7 @@ var ModbusPage = function (_React$Component) {
exports.default = ModbusPage;
/***/ }),
-/* 1064 */
+/* 1066 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -84110,9 +85411,9 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -84243,7 +85544,7 @@ var ModbusCmdPage = function (_React$Component) {
exports.default = ModbusCmdPage;
/***/ }),
-/* 1065 */
+/* 1067 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -84257,9 +85558,9 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _DeviceListItem = __webpack_require__(1066);
+var _DeviceListItem = __webpack_require__(1068);
var _DeviceListItem2 = _interopRequireDefault(_DeviceListItem);
@@ -84297,7 +85598,7 @@ var DeviceList = function DeviceList(_ref) {
exports.default = DeviceList;
/***/ }),
-/* 1066 */
+/* 1068 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -84311,7 +85612,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -84334,7 +85635,7 @@ var ListItem = function ListItem(_ref) {
exports.default = ListItem;
/***/ }),
-/* 1067 */
+/* 1069 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -84348,7 +85649,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
var _tools = __webpack_require__(79);
@@ -84404,7 +85705,7 @@ var ListItem = function ListItem(_ref) {
exports.default = ListItem;
/***/ }),
-/* 1068 */
+/* 1070 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -84418,9 +85719,9 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _LogListItem = __webpack_require__(1067);
+var _LogListItem = __webpack_require__(1069);
var _LogListItem2 = _interopRequireDefault(_LogListItem);
@@ -84490,7 +85791,7 @@ var LogPanel = function LogPanel(_ref) {
exports.default = LogPanel;
/***/ }),
-/* 1069 */
+/* 1071 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -84506,9 +85807,9 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _DeviceList = __webpack_require__(1065);
+var _DeviceList = __webpack_require__(1067);
var _DeviceList2 = _interopRequireDefault(_DeviceList);
@@ -84518,7 +85819,7 @@ var _reactDatetime = __webpack_require__(196);
var _reactDatetime2 = _interopRequireDefault(_reactDatetime);
-var _LogPanel = __webpack_require__(1068);
+var _LogPanel = __webpack_require__(1070);
var _LogPanel2 = _interopRequireDefault(_LogPanel);
@@ -84669,7 +85970,7 @@ var ModbusLogPage = function (_React$Component) {
exports.default = ModbusLogPage;
/***/ }),
-/* 1070 */
+/* 1072 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -84683,9 +85984,9 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _StatusItem = __webpack_require__(1071);
+var _StatusItem = __webpack_require__(1073);
var _StatusItem2 = _interopRequireDefault(_StatusItem);
@@ -84717,7 +86018,7 @@ var DevField = function DevField(_ref) {
exports.default = DevField;
/***/ }),
-/* 1071 */
+/* 1073 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -84731,7 +86032,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
var _tools = __webpack_require__(79);
@@ -84770,7 +86071,7 @@ var StatusItem = function StatusItem(_ref) {
exports.default = StatusItem;
/***/ }),
-/* 1072 */
+/* 1074 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -84786,9 +86087,9 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _DeviceField = __webpack_require__(1070);
+var _DeviceField = __webpack_require__(1072);
var _DeviceField2 = _interopRequireDefault(_DeviceField);
@@ -84881,7 +86182,7 @@ var ModbusPreview = function (_React$Component) {
exports.default = ModbusPreview;
/***/ }),
-/* 1073 */
+/* 1075 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -84895,7 +86196,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -85048,7 +86349,7 @@ var ListItem = function ListItem(_ref) {
exports.default = ListItem;
/***/ }),
-/* 1074 */
+/* 1076 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -85064,7 +86365,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
var _reactDatetime = __webpack_require__(196);
@@ -85074,7 +86375,7 @@ var _DeviceSelect = __webpack_require__(457);
var _DeviceSelect2 = _interopRequireDefault(_DeviceSelect);
-var _SelectedItem = __webpack_require__(1075);
+var _SelectedItem = __webpack_require__(1077);
var _SelectedItem2 = _interopRequireDefault(_SelectedItem);
@@ -85380,7 +86681,7 @@ var ScheduleModal = function (_React$Component) {
exports.default = ScheduleModal;
/***/ }),
-/* 1075 */
+/* 1077 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -85394,7 +86695,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -85423,7 +86724,7 @@ var SelectedItem = function SelectedItem(_ref) {
exports.default = SelectedItem;
/***/ }),
-/* 1076 */
+/* 1078 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -85441,13 +86742,13 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _ListItem = __webpack_require__(1073);
+var _ListItem = __webpack_require__(1075);
var _ListItem2 = _interopRequireDefault(_ListItem);
-var _ScheduleModal = __webpack_require__(1074);
+var _ScheduleModal = __webpack_require__(1076);
var _ScheduleModal2 = _interopRequireDefault(_ScheduleModal);
@@ -85815,7 +87116,7 @@ var ShowGroupItem = function ShowGroupItem(_ref2) {
exports.default = SchedulePage;
/***/ }),
-/* 1077 */
+/* 1079 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -85831,13 +87132,13 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-__webpack_require__(18);
+__webpack_require__(17);
var _reactDatetime = __webpack_require__(196);
var _reactDatetime2 = _interopRequireDefault(_reactDatetime);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -86067,7 +87368,7 @@ var NetForm = function (_React$Component) {
exports.default = NetForm;
/***/ }),
-/* 1078 */
+/* 1080 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -86081,13 +87382,13 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-__webpack_require__(18);
+__webpack_require__(17);
var _reactDatetime = __webpack_require__(196);
var _reactDatetime2 = _interopRequireDefault(_reactDatetime);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
var _tools = __webpack_require__(79);
@@ -86147,7 +87448,7 @@ var TimeForm = function TimeForm(_ref) {
exports.default = TimeForm;
/***/ }),
-/* 1079 */
+/* 1081 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -86163,9 +87464,9 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -86332,7 +87633,7 @@ var TimezoneForm = function (_React$Component) {
exports.default = TimezoneForm;
/***/ }),
-/* 1080 */
+/* 1082 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -86348,23 +87649,23 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
var _reactDatetime = __webpack_require__(196);
var _reactDatetime2 = _interopRequireDefault(_reactDatetime);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _NetForm = __webpack_require__(1077);
+var _NetForm = __webpack_require__(1079);
var _NetForm2 = _interopRequireDefault(_NetForm);
-var _TimeForm = __webpack_require__(1078);
+var _TimeForm = __webpack_require__(1080);
var _TimeForm2 = _interopRequireDefault(_TimeForm);
-var _TimezoneForm = __webpack_require__(1079);
+var _TimezoneForm = __webpack_require__(1081);
var _TimezoneForm2 = _interopRequireDefault(_TimezoneForm);
@@ -86471,7 +87772,7 @@ var SysInfo = function (_React$Component) {
exports.default = SysInfo;
/***/ }),
-/* 1081 */
+/* 1083 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -86485,7 +87786,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -86529,7 +87830,7 @@ var ListItem = function ListItem(_ref) {
exports.default = ListItem;
/***/ }),
-/* 1082 */
+/* 1084 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -86543,7 +87844,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -86622,7 +87923,7 @@ var UModal = function UModal(_ref) {
exports.default = UModal;
/***/ }),
-/* 1083 */
+/* 1085 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -86638,15 +87939,15 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _ListItem = __webpack_require__(1081);
+var _ListItem = __webpack_require__(1083);
var _ListItem2 = _interopRequireDefault(_ListItem);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
-var _UserModal = __webpack_require__(1082);
+var _UserModal = __webpack_require__(1084);
var _UserModal2 = _interopRequireDefault(_UserModal);
@@ -86783,7 +88084,7 @@ var UList = function (_React$Component) {
exports.default = UList;
/***/ }),
-/* 1084 */
+/* 1086 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -86797,7 +88098,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
var _tools = __webpack_require__(79);
@@ -86872,7 +88173,7 @@ var ListItem = function ListItem(_ref) {
exports.default = ListItem;
/***/ }),
-/* 1085 */
+/* 1087 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -86888,11 +88189,11 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
-var _ListItem = __webpack_require__(1084);
+var _ListItem = __webpack_require__(1086);
var _ListItem2 = _interopRequireDefault(_ListItem);
@@ -87131,7 +88432,7 @@ var LocStatus = function (_React$Component) {
exports.default = LocStatus;
/***/ }),
-/* 1086 */
+/* 1088 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -87147,9 +88448,9 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
var _tools = __webpack_require__(79);
@@ -87300,7 +88601,7 @@ var LocStatusWloc = function (_React$Component) {
exports.default = LocStatusWloc;
/***/ }),
-/* 1087 */
+/* 1089 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -87314,7 +88615,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -87354,7 +88655,7 @@ var ListItem = function ListItem(_ref) {
exports.default = ListItem;
/***/ }),
-/* 1088 */
+/* 1090 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -87368,7 +88669,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -87440,7 +88741,7 @@ var WristbandModal = function WristbandModal(_ref) {
exports.default = WristbandModal;
/***/ }),
-/* 1089 */
+/* 1091 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -87458,15 +88759,15 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
-var _ListItem = __webpack_require__(1087);
+var _ListItem = __webpack_require__(1089);
var _ListItem2 = _interopRequireDefault(_ListItem);
-var _LocationModal = __webpack_require__(1088);
+var _LocationModal = __webpack_require__(1090);
var _LocationModal2 = _interopRequireDefault(_LocationModal);
@@ -87639,7 +88940,7 @@ var Location = function (_React$Component) {
exports.default = Location;
/***/ }),
-/* 1090 */
+/* 1092 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -87653,7 +88954,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -87717,7 +89018,7 @@ var ListItem = function ListItem(_ref) {
exports.default = ListItem;
/***/ }),
-/* 1091 */
+/* 1093 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -87731,7 +89032,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -87835,7 +89136,7 @@ var WristbandModal = function WristbandModal(_ref) {
exports.default = WristbandModal;
/***/ }),
-/* 1092 */
+/* 1094 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -87855,7 +89156,7 @@ var _reactDom = __webpack_require__(147);
var _reactDom2 = _interopRequireDefault(_reactDom);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
var _reactDatetime = __webpack_require__(196);
@@ -88009,7 +89310,7 @@ var WristbandPathInfo = function (_React$Component) {
exports.default = WristbandPathInfo;
/***/ }),
-/* 1093 */
+/* 1095 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -88027,19 +89328,19 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
-var _ListItem = __webpack_require__(1090);
+var _ListItem = __webpack_require__(1092);
var _ListItem2 = _interopRequireDefault(_ListItem);
-var _WristbandModal = __webpack_require__(1091);
+var _WristbandModal = __webpack_require__(1093);
var _WristbandModal2 = _interopRequireDefault(_WristbandModal);
-var _WristbandPathInfo = __webpack_require__(1092);
+var _WristbandPathInfo = __webpack_require__(1094);
var _WristbandPathInfo2 = _interopRequireDefault(_WristbandPathInfo);
@@ -88255,7 +89556,7 @@ var WristbandInfo = function (_React$Component) {
exports.default = WristbandInfo;
/***/ }),
-/* 1094 */
+/* 1096 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -88271,21 +89572,21 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _LocStatus = __webpack_require__(1115);
+var _LocStatus = __webpack_require__(1117);
var _LocStatus2 = _interopRequireDefault(_LocStatus);
-var _WristbandInfo = __webpack_require__(1118);
+var _WristbandInfo = __webpack_require__(1120);
var _WristbandInfo2 = _interopRequireDefault(_WristbandInfo);
-var _Location = __webpack_require__(1117);
+var _Location = __webpack_require__(1119);
var _Location2 = _interopRequireDefault(_Location);
-var _LocStatusWloc = __webpack_require__(1116);
+var _LocStatusWloc = __webpack_require__(1118);
var _LocStatusWloc2 = _interopRequireDefault(_LocStatusWloc);
@@ -88413,7 +89714,7 @@ var WristbandPage = function (_React$Component) {
exports.default = WristbandPage;
/***/ }),
-/* 1095 */
+/* 1097 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -88427,7 +89728,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -88463,7 +89764,7 @@ var AlertItem = function AlertItem(_ref) {
exports.default = AlertItem;
/***/ }),
-/* 1096 */
+/* 1098 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -88479,13 +89780,13 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
var _tools = __webpack_require__(79);
-var _AlertItem = __webpack_require__(1095);
+var _AlertItem = __webpack_require__(1097);
var _AlertItem2 = _interopRequireDefault(_AlertItem);
@@ -88639,8 +89940,8 @@ var DashBoardUnit = function (_React$Component) {
exports.default = DashBoardUnit;
/***/ }),
-/* 1097 */,
-/* 1098 */
+/* 1099 */,
+/* 1100 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -88654,7 +89955,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
var _reactRouter = __webpack_require__(248);
@@ -88675,7 +89976,7 @@ var MItem = function MItem(_ref) {
exports.default = MItem;
/***/ }),
-/* 1099 */
+/* 1101 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -88689,11 +89990,11 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
var _reactRouter = __webpack_require__(248);
-var _Item = __webpack_require__(1098);
+var _Item = __webpack_require__(1100);
var _Item2 = _interopRequireDefault(_Item);
@@ -88807,7 +90108,7 @@ var MainMenu = function MainMenu(_ref) {
exports.default = MainMenu;
/***/ }),
-/* 1100 */
+/* 1102 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -88819,7 +90120,7 @@ Object.defineProperty(exports, "__esModule", {
var _reactRedux = __webpack_require__(24);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
var _ActionLink = __webpack_require__(1029);
@@ -88865,7 +90166,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch, ownProps) {
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_ActionLink2.default);
/***/ }),
-/* 1101 */
+/* 1103 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -88877,9 +90178,9 @@ Object.defineProperty(exports, "__esModule", {
var _reactRedux = __webpack_require__(24);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
-var _ActionLinkAddN = __webpack_require__(1155);
+var _ActionLinkAddN = __webpack_require__(1036);
var _ActionLinkAddN2 = _interopRequireDefault(_ActionLinkAddN);
@@ -88907,7 +90208,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch, ownProps) {
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_ActionLinkAddN2.default);
/***/ }),
-/* 1102 */
+/* 1104 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -88919,11 +90220,11 @@ Object.defineProperty(exports, "__esModule", {
var _reactRedux = __webpack_require__(24);
-var _DIO = __webpack_require__(1037);
+var _DIO = __webpack_require__(1039);
var _DIO2 = _interopRequireDefault(_DIO);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -88960,7 +90261,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch, ownProps) {
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_DIO2.default);
/***/ }),
-/* 1103 */
+/* 1105 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -88972,9 +90273,9 @@ Object.defineProperty(exports, "__esModule", {
var _reactRedux = __webpack_require__(24);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
-var _IOCmd = __webpack_require__(1039);
+var _IOCmd = __webpack_require__(1041);
var _IOCmd2 = _interopRequireDefault(_IOCmd);
@@ -89018,7 +90319,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch, ownProps) {
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_IOCmd2.default);
/***/ }),
-/* 1104 */
+/* 1106 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -89030,9 +90331,9 @@ Object.defineProperty(exports, "__esModule", {
var _reactRedux = __webpack_require__(24);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
-var _IOGroup = __webpack_require__(1043);
+var _IOGroup = __webpack_require__(1045);
var _IOGroup2 = _interopRequireDefault(_IOGroup);
@@ -89091,7 +90392,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch, ownProps) {
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_IOGroup2.default);
/***/ }),
-/* 1105 */
+/* 1107 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -89103,9 +90404,9 @@ Object.defineProperty(exports, "__esModule", {
var _reactRedux = __webpack_require__(24);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
-var _IPCam = __webpack_require__(1044);
+var _IPCam = __webpack_require__(1046);
var _IPCam2 = _interopRequireDefault(_IPCam);
@@ -89133,7 +90434,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch, ownProps) {
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_IPCam2.default);
/***/ }),
-/* 1106 */
+/* 1108 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -89145,11 +90446,11 @@ Object.defineProperty(exports, "__esModule", {
var _reactRedux = __webpack_require__(24);
-var _LeOne = __webpack_require__(1051);
+var _LeOne = __webpack_require__(1053);
var _LeOne2 = _interopRequireDefault(_LeOne);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -89205,7 +90506,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch, ownProps) {
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_LeOne2.default);
/***/ }),
-/* 1107 */
+/* 1109 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -89217,11 +90518,11 @@ Object.defineProperty(exports, "__esModule", {
var _reactRedux = __webpack_require__(24);
-var _Log = __webpack_require__(1053);
+var _Log = __webpack_require__(1055);
var _Log2 = _interopRequireDefault(_Log);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -89249,7 +90550,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch, ownProps) {
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_Log2.default);
/***/ }),
-/* 1108 */
+/* 1110 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -89261,9 +90562,9 @@ Object.defineProperty(exports, "__esModule", {
var _reactRedux = __webpack_require__(24);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
-var _Modbus = __webpack_require__(1063);
+var _Modbus = __webpack_require__(1065);
var _Modbus2 = _interopRequireDefault(_Modbus);
@@ -89326,7 +90627,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch, ownProps) {
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_Modbus2.default);
/***/ }),
-/* 1109 */
+/* 1111 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -89338,9 +90639,9 @@ Object.defineProperty(exports, "__esModule", {
var _reactRedux = __webpack_require__(24);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
-var _ModbusCmd = __webpack_require__(1064);
+var _ModbusCmd = __webpack_require__(1066);
var _ModbusCmd2 = _interopRequireDefault(_ModbusCmd);
@@ -89368,7 +90669,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch, ownProps) {
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_ModbusCmd2.default);
/***/ }),
-/* 1110 */
+/* 1112 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -89380,9 +90681,9 @@ Object.defineProperty(exports, "__esModule", {
var _reactRedux = __webpack_require__(24);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
-var _ModbusLog = __webpack_require__(1069);
+var _ModbusLog = __webpack_require__(1071);
var _ModbusLog2 = _interopRequireDefault(_ModbusLog);
@@ -89421,7 +90722,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch, ownProps) {
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_ModbusLog2.default);
/***/ }),
-/* 1111 */
+/* 1113 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -89433,9 +90734,9 @@ Object.defineProperty(exports, "__esModule", {
var _reactRedux = __webpack_require__(24);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
-var _ModbusPreview = __webpack_require__(1072);
+var _ModbusPreview = __webpack_require__(1074);
var _ModbusPreview2 = _interopRequireDefault(_ModbusPreview);
@@ -89464,7 +90765,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch, ownProps) {
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_ModbusPreview2.default);
/***/ }),
-/* 1112 */
+/* 1114 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -89476,9 +90777,9 @@ Object.defineProperty(exports, "__esModule", {
var _reactRedux = __webpack_require__(24);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
-var _Schedule = __webpack_require__(1076);
+var _Schedule = __webpack_require__(1078);
var _Schedule2 = _interopRequireDefault(_Schedule);
@@ -89541,7 +90842,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch, ownProps) {
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_Schedule2.default);
/***/ }),
-/* 1113 */
+/* 1115 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -89557,7 +90858,7 @@ var _react2 = _interopRequireDefault(_react);
var _reactRedux = __webpack_require__(24);
-var _SystemInfo = __webpack_require__(1080);
+var _SystemInfo = __webpack_require__(1082);
var _SystemInfo2 = _interopRequireDefault(_SystemInfo);
@@ -89574,7 +90875,7 @@ var mapStateToProps = function mapStateToProps(state) {
exports.default = (0, _reactRedux.connect)(mapStateToProps)(_SystemInfo2.default);
/***/ }),
-/* 1114 */
+/* 1116 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -89590,11 +90891,11 @@ var _react2 = _interopRequireDefault(_react);
var _reactRedux = __webpack_require__(24);
-var _UserList = __webpack_require__(1083);
+var _UserList = __webpack_require__(1085);
var _UserList2 = _interopRequireDefault(_UserList);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -89631,7 +90932,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch, ownProps) {
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_UserList2.default);
/***/ }),
-/* 1115 */
+/* 1117 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -89643,9 +90944,9 @@ Object.defineProperty(exports, "__esModule", {
var _reactRedux = __webpack_require__(24);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
-var _LocStatus = __webpack_require__(1085);
+var _LocStatus = __webpack_require__(1087);
var _LocStatus2 = _interopRequireDefault(_LocStatus);
@@ -89673,7 +90974,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch, ownProps) {
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_LocStatus2.default);
/***/ }),
-/* 1116 */
+/* 1118 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -89685,9 +90986,9 @@ Object.defineProperty(exports, "__esModule", {
var _reactRedux = __webpack_require__(24);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
-var _LocStatusWloc = __webpack_require__(1086);
+var _LocStatusWloc = __webpack_require__(1088);
var _LocStatusWloc2 = _interopRequireDefault(_LocStatusWloc);
@@ -89715,7 +91016,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch, ownProps) {
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_LocStatusWloc2.default);
/***/ }),
-/* 1117 */
+/* 1119 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -89727,9 +91028,9 @@ Object.defineProperty(exports, "__esModule", {
var _reactRedux = __webpack_require__(24);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
-var _Location = __webpack_require__(1089);
+var _Location = __webpack_require__(1091);
var _Location2 = _interopRequireDefault(_Location);
@@ -89757,7 +91058,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch, ownProps) {
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_Location2.default);
/***/ }),
-/* 1118 */
+/* 1120 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -89769,9 +91070,9 @@ Object.defineProperty(exports, "__esModule", {
var _reactRedux = __webpack_require__(24);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
-var _WristbandInfo = __webpack_require__(1093);
+var _WristbandInfo = __webpack_require__(1095);
var _WristbandInfo2 = _interopRequireDefault(_WristbandInfo);
@@ -89799,7 +91100,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch, ownProps) {
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_WristbandInfo2.default);
/***/ }),
-/* 1119 */
+/* 1121 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -89811,9 +91112,9 @@ Object.defineProperty(exports, "__esModule", {
var _reactRedux = __webpack_require__(24);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
-var _Wristband = __webpack_require__(1094);
+var _Wristband = __webpack_require__(1096);
var _Wristband2 = _interopRequireDefault(_Wristband);
@@ -89841,7 +91142,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch, ownProps) {
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_Wristband2.default);
/***/ }),
-/* 1120 */
+/* 1122 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -89863,7 +91164,7 @@ var _reactDatetime = __webpack_require__(196);
var _reactDatetime2 = _interopRequireDefault(_reactDatetime);
-var _MenuControl = __webpack_require__(1122);
+var _MenuControl = __webpack_require__(1124);
var _MenuControl2 = _interopRequireDefault(_MenuControl);
@@ -89875,11 +91176,11 @@ var _DialogControl = __webpack_require__(460);
var _DialogControl2 = _interopRequireDefault(_DialogControl);
-var _DashBoard = __webpack_require__(1121);
+var _DashBoard = __webpack_require__(1123);
var _DashBoard2 = _interopRequireDefault(_DashBoard);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -89949,7 +91250,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch, ownProps) {
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(AdmPage);
/***/ }),
-/* 1121 */
+/* 1123 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -89961,9 +91262,9 @@ Object.defineProperty(exports, "__esModule", {
var _reactRedux = __webpack_require__(24);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
-var _DashBoard = __webpack_require__(1096);
+var _DashBoard = __webpack_require__(1098);
var _DashBoard2 = _interopRequireDefault(_DashBoard);
@@ -89994,7 +91295,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch, ownProps) {
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_DashBoard2.default);
/***/ }),
-/* 1122 */
+/* 1124 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -90006,11 +91307,11 @@ Object.defineProperty(exports, "__esModule", {
var _reactRedux = __webpack_require__(24);
-var _MainMenu = __webpack_require__(1099);
+var _MainMenu = __webpack_require__(1101);
var _MainMenu2 = _interopRequireDefault(_MainMenu);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -90046,7 +91347,7 @@ var mapDispatchToProps = function mapDispatchToProps(dispatch, ownProps) {
exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_MainMenu2.default);
/***/ }),
-/* 1123 */
+/* 1125 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -90108,7 +91409,7 @@ var loopAsync = exports.loopAsync = function loopAsync(turns, work, callback) {
};
/***/ }),
-/* 1124 */
+/* 1126 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -90250,7 +91551,7 @@ var replaceLocation = exports.replaceLocation = function replaceLocation(locatio
};
/***/ }),
-/* 1125 */
+/* 1127 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -90293,7 +91594,7 @@ var replaceLocation = exports.replaceLocation = function replaceLocation(locatio
};
/***/ }),
-/* 1126 */
+/* 1128 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -90313,7 +91614,7 @@ var _BrowserProtocol = __webpack_require__(536);
var BrowserProtocol = _interopRequireWildcard(_BrowserProtocol);
-var _RefreshProtocol = __webpack_require__(1125);
+var _RefreshProtocol = __webpack_require__(1127);
var RefreshProtocol = _interopRequireWildcard(_RefreshProtocol);
@@ -90392,7 +91693,7 @@ var createBrowserHistory = function createBrowserHistory() {
exports.default = createBrowserHistory;
/***/ }),
-/* 1127 */
+/* 1129 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -90414,7 +91715,7 @@ var _ExecutionEnvironment = __webpack_require__(537);
var _DOMUtils = __webpack_require__(453);
-var _HashProtocol = __webpack_require__(1124);
+var _HashProtocol = __webpack_require__(1126);
var HashProtocol = _interopRequireWildcard(_HashProtocol);
@@ -90545,7 +91846,7 @@ var createHashHistory = function createHashHistory() {
exports.default = createHashHistory;
/***/ }),
-/* 1128 */
+/* 1130 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -90691,7 +91992,7 @@ var createMemoryHistory = function createMemoryHistory() {
exports.default = createMemoryHistory;
/***/ }),
-/* 1129 */
+/* 1131 */
/***/ (function(module, exports, __webpack_require__) {
var map = {
@@ -90926,16 +92227,16 @@ webpackContext.keys = function webpackContextKeys() {
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
-webpackContext.id = 1129;
+webpackContext.id = 1131;
/***/ }),
-/* 1130 */
+/* 1132 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-var strictUriEncode = __webpack_require__(1152);
+var strictUriEncode = __webpack_require__(1154);
var objectAssign = __webpack_require__(16);
function encoderForArrayFormat(opts) {
@@ -91140,14 +92441,14 @@ exports.stringify = function (obj, opts) {
/***/ }),
-/* 1131 */
+/* 1133 */
/***/ (function(module, exports, __webpack_require__) {
var React = __webpack_require__(0),
- DaysView = __webpack_require__(1132),
- MonthsView = __webpack_require__(1133),
- YearsView = __webpack_require__(1135),
- TimeView = __webpack_require__(1134)
+ DaysView = __webpack_require__(1134),
+ MonthsView = __webpack_require__(1135),
+ YearsView = __webpack_require__(1137),
+ TimeView = __webpack_require__(1136)
;
var CalendarContainer = React.createClass({
@@ -91167,7 +92468,7 @@ module.exports = CalendarContainer;
/***/ }),
-/* 1132 */
+/* 1134 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -91318,7 +92619,7 @@ module.exports = DateTimePickerDays;
/***/ }),
-/* 1133 */
+/* 1135 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -91432,7 +92733,7 @@ module.exports = DateTimePickerMonths;
/***/ }),
-/* 1134 */
+/* 1136 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -91667,7 +92968,7 @@ module.exports = DateTimePickerTime;
/***/ }),
-/* 1135 */
+/* 1137 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -91779,7 +93080,7 @@ module.exports = DateTimePickerYears;
/***/ }),
-/* 1136 */
+/* 1138 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -91804,7 +93105,7 @@ var IndexLink = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createClass({
/* harmony default export */ __webpack_exports__["a"] = IndexLink;
/***/ }),
-/* 1137 */
+/* 1139 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -91862,7 +93163,7 @@ var IndexRedirect = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createClass({
/* harmony default export */ __webpack_exports__["a"] = IndexRedirect;
/***/ }),
-/* 1138 */
+/* 1140 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -91919,7 +93220,7 @@ var IndexRoute = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createClass({
/* harmony default export */ __webpack_exports__["a"] = IndexRoute;
/***/ }),
-/* 1139 */
+/* 1141 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -91975,7 +93276,7 @@ var Route = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createClass({
/* harmony default export */ __webpack_exports__["a"] = Route;
/***/ }),
-/* 1140 */
+/* 1142 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -92143,7 +93444,7 @@ var Router = __WEBPACK_IMPORTED_MODULE_1_react___default.a.createClass({
/* harmony default export */ __webpack_exports__["a"] = Router;
/***/ }),
-/* 1141 */
+/* 1143 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -92301,7 +93602,7 @@ function runLeaveHooks(routes, prevState) {
}
/***/ }),
-/* 1142 */
+/* 1144 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -92352,11 +93653,11 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
};
/***/ }),
-/* 1143 */
+/* 1145 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_history_lib_createBrowserHistory__ = __webpack_require__(1126);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_history_lib_createBrowserHistory__ = __webpack_require__(1128);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_history_lib_createBrowserHistory___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_history_lib_createBrowserHistory__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createRouterHistory__ = __webpack_require__(1022);
@@ -92364,7 +93665,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
/* harmony default export */ __webpack_exports__["a"] = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__createRouterHistory__["a" /* default */])(__WEBPACK_IMPORTED_MODULE_0_history_lib_createBrowserHistory___default.a);
/***/ }),
-/* 1144 */
+/* 1146 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -92443,7 +93744,7 @@ function computeChangedRoutes(prevState, nextState) {
/* harmony default export */ __webpack_exports__["a"] = computeChangedRoutes;
/***/ }),
-/* 1145 */
+/* 1147 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -92485,7 +93786,7 @@ function getComponents(nextState, callback) {
/* harmony default export */ __webpack_exports__["a"] = getComponents;
/***/ }),
-/* 1146 */
+/* 1148 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -92513,11 +93814,11 @@ function getRouteParams(route, params) {
/* harmony default export */ __webpack_exports__["a"] = getRouteParams;
/***/ }),
-/* 1147 */
+/* 1149 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_history_lib_createHashHistory__ = __webpack_require__(1127);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_history_lib_createHashHistory__ = __webpack_require__(1129);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_history_lib_createHashHistory___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_history_lib_createHashHistory__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createRouterHistory__ = __webpack_require__(1022);
@@ -92525,7 +93826,7 @@ function getRouteParams(route, params) {
/* harmony default export */ __webpack_exports__["a"] = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__createRouterHistory__["a" /* default */])(__WEBPACK_IMPORTED_MODULE_0_history_lib_createHashHistory___default.a);
/***/ }),
-/* 1148 */
+/* 1150 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -92678,7 +93979,7 @@ function isActive(_ref, indexOnly, currentLocation, routes, params) {
}
/***/ }),
-/* 1149 */
+/* 1151 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -92747,7 +94048,7 @@ function match(_ref, callback) {
/* harmony default export */ __webpack_exports__["a"] = match;
/***/ }),
-/* 1150 */
+/* 1152 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -93007,7 +94308,7 @@ function matchRoutes(routes, location, callback, remainingPathname) {
}
/***/ }),
-/* 1151 */
+/* 1153 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -93079,7 +94380,7 @@ function withRouter(WrappedComponent, options) {
}
/***/ }),
-/* 1152 */
+/* 1154 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -93092,7 +94393,7 @@ module.exports = function (str) {
/***/ }),
-/* 1153 */
+/* 1155 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -93128,7 +94429,7 @@ var _reduxThunk = __webpack_require__(451);
var _reduxThunk2 = _interopRequireDefault(_reduxThunk);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
var _i18next = __webpack_require__(456);
@@ -93208,339 +94509,7 @@ var PageRoot = function (_React$Component) {
_reactDom2.default.render(_react2.default.createElement(PageRoot, null), document.getElementById('app'));
/***/ }),
-/* 1154 */,
-/* 1155 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-
-var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
-
-var _createClass = 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
-
-var _react = __webpack_require__(0);
-
-var _react2 = _interopRequireDefault(_react);
-
-var _semanticUiReact = __webpack_require__(8);
-
-var _Condition = __webpack_require__(1156);
-
-var _Condition2 = _interopRequireDefault(_Condition);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-
-function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
-
-function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
-
-var stateDefault = function stateDefault() {
- return {
- groups: {
- "g1": {
- name: "aaa"
- },
- "g2": {
- name: "bbb"
- }
- }
- };
-};
-
-var ActionLinkAdd = function (_React$Component) {
- _inherits(ActionLinkAdd, _React$Component);
-
- function ActionLinkAdd() {
- var _ref;
-
- var _temp, _this, _ret;
-
- _classCallCheck(this, ActionLinkAdd);
-
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
-
- return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ActionLinkAdd.__proto__ || Object.getPrototypeOf(ActionLinkAdd)).call.apply(_ref, [this].concat(args))), _this), _this.state = _extends({}, stateDefault()), _temp), _possibleConstructorReturn(_this, _ret);
- }
-
- _createClass(ActionLinkAdd, [{
- key: 'render',
- value: function render() {
- var _props = this.props,
- i18n = _props.i18n,
- showDialog = _props.showDialog,
- toggleLoading = _props.toggleLoading;
-
- return _react2.default.createElement(
- _semanticUiReact.Container,
- null,
- _react2.default.createElement(
- _semanticUiReact.Menu,
- null,
- _react2.default.createElement(
- _semanticUiReact.Menu.Menu,
- { position: 'right' },
- _react2.default.createElement(_semanticUiReact.Menu.Item, { content: 'ShowTree', onClick: function onClick() {} }),
- _react2.default.createElement(_semanticUiReact.Menu.Item, { content: 'Save', onClick: function onClick() {} })
- )
- ),
- _react2.default.createElement(
- _semanticUiReact.Form,
- { as: _semanticUiReact.Segment },
- _react2.default.createElement(
- _semanticUiReact.Form.Field,
- null,
- _react2.default.createElement(_semanticUiReact.Checkbox, { label: '\u555F\u7528\u9023\u52D5' })
- ),
- _react2.default.createElement(
- _semanticUiReact.Form.Field,
- null,
- _react2.default.createElement(
- 'label',
- null,
- '\u5EFA\u7ACB\u689D\u4EF6\u7FA4\u7D44'
- ),
- _react2.default.createElement(_Condition2.default, { i18n: i18n, showDialog: showDialog, toggleLoading: toggleLoading, groups: this.state.groups })
- )
- )
- );
- }
- }]);
-
- return ActionLinkAdd;
-}(_react2.default.Component);
-
-exports.default = ActionLinkAdd;
-
-/***/ }),
-/* 1156 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-
-var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
-
-var _createClass = 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
-
-var _react = __webpack_require__(0);
-
-var _react2 = _interopRequireDefault(_react);
-
-var _semanticUiReact = __webpack_require__(8);
-
-var _Unit = __webpack_require__(1157);
-
-var _Unit2 = _interopRequireDefault(_Unit);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-
-function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
-
-function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
-
-var ops = [{
- "code": "0",
- "name": "等於"
-}, {
- "code": "1",
- "name": "大於"
-}, {
- "code": "2",
- "name": "小於"
-}, {
- "code": "3",
- "name": "大於等於"
-}, {
- "code": "4",
- "name": "小於等於"
-}, {
- "code": "5",
- "name": "不等於"
-}, {
- "code": "8",
- "name": "AND"
-}, {
- "code": "9",
- "name": "OR"
-}];
-
-var stateDefault = function stateDefault() {
- return {
- id1: {
- unit: '',
- data: {}
- },
- id2: {
- unit: '',
- data: {}
- }
- };
-};
-
-var lcDef = function lcDef() {
- return {
- type: 'lc',
- id: '',
- op: '',
- value: ''
- };
-};
-
-var lnDef = function lnDef() {
- return {
- type: 'ln',
- dev: ''
- };
-};
-
-var ConditionField = function (_React$Component) {
- _inherits(ConditionField, _React$Component);
-
- function ConditionField() {
- var _ref;
-
- var _temp, _this, _ret;
-
- _classCallCheck(this, ConditionField);
-
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
-
- return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ConditionField.__proto__ || Object.getPrototypeOf(ConditionField)).call.apply(_ref, [this].concat(args))), _this), _this.state = _extends({}, stateDefault()), _this.changeUnitType = function (id, type) {
- var st = _this.state;
- if (id in st) {
- st[id].unit = type;
- if (type == '') {
- st[id].data = {};
- } else if (type == 'unit') {
- st[id].data = _extends({}, lnDef());
- } else {
- st[id].data = _extends({}, lcDef());
- }
- _this.setState(_extends({}, st));
- }
- }, _this.updateData = function (id, data) {
- var st = _this.state;
- if (id in st) {
- st[id].data = data;
- _this.setState(_extends({}, st));
- }
- }, _this.clearField = function () {
- _this.setState(_extends({}, stateDefault()));
- }, _this.joinGroup = function () {
- console.log(_this.state);
- }, _temp), _possibleConstructorReturn(_this, _ret);
- }
-
- _createClass(ConditionField, [{
- key: 'render',
- value: function render() {
- var _this2 = this;
-
- var _props = this.props,
- i18n = _props.i18n,
- showDialog = _props.showDialog,
- toggleLoading = _props.toggleLoading;
-
- return _react2.default.createElement(
- _semanticUiReact.Segment,
- { color: 'red' },
- _react2.default.createElement(
- _semanticUiReact.Form.Field,
- null,
- _react2.default.createElement(_semanticUiReact.Input, { label: '\u7BC0\u9EDE\u540D\u7A31' })
- ),
- _react2.default.createElement(
- _semanticUiReact.Form.Field,
- null,
- _react2.default.createElement(
- 'label',
- null,
- '\u89F8\u767C\u689D\u4EF6'
- ),
- _react2.default.createElement(
- 'select',
- null,
- _react2.default.createElement(
- 'option',
- { value: '' },
- '\u8ACB\u9078\u64C7\u89F8\u767C\u689D\u4EF6'
- ),
- ops.map(function (t, idx) {
- if (t.code == 8 || t.code == 9) {
- return _react2.default.createElement(
- 'option',
- { key: idx, value: t.code },
- t.name
- );
- }
- })
- )
- ),
- _react2.default.createElement(
- _semanticUiReact.Grid,
- { columns: 2, padded: true },
- _react2.default.createElement(
- _semanticUiReact.Grid.Column,
- null,
- _react2.default.createElement(_Unit2.default, { i18n: i18n, id: 'id1',
- data: this.state.id1,
- groups: this.props.groups,
- ops: ops,
- toggleLoading: toggleLoading,
- showDialog: showDialog,
- updateData: this.updateData,
- changeUnitType: this.changeUnitType })
- ),
- _react2.default.createElement(
- _semanticUiReact.Grid.Column,
- null,
- _react2.default.createElement(_Unit2.default, { i18n: i18n, id: 'id2',
- data: this.state.id2,
- groups: this.props.groups,
- ops: ops,
- toggleLoading: toggleLoading,
- showDialog: showDialog,
- updateData: this.updateData,
- changeUnitType: this.changeUnitType })
- )
- ),
- _react2.default.createElement(
- 'div',
- { style: { textAlign: 'right' } },
- _react2.default.createElement(_semanticUiReact.Button, { content: '\u52A0\u5165', basic: true, size: 'mini', color: 'blue', onClick: function onClick() {
- _this2.joinGroup();
- } }),
- _react2.default.createElement(_semanticUiReact.Button, { content: '\u6E05\u9664', basic: true, size: 'mini', color: 'red', onClick: function onClick() {
- _this2.clearField();
- } })
- )
- );
- }
- }]);
-
- return ConditionField;
-}(_react2.default.Component);
-
-exports.default = ConditionField;
-
-/***/ }),
+/* 1156 */,
/* 1157 */
/***/ (function(module, exports, __webpack_require__) {
@@ -93551,29 +94520,27 @@ Object.defineProperty(exports, "__esModule", {
value: true
});
+var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
+
var _createClass = 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
var _UnitLeone = __webpack_require__(1158);
var _UnitLeone2 = _interopRequireDefault(_UnitLeone);
-var _UnitDigitalInput = __webpack_require__(1159);
+var _UnitDigitalOutput = __webpack_require__(1160);
-var _UnitDigitalInput2 = _interopRequireDefault(_UnitDigitalInput);
+var _UnitDigitalOutput2 = _interopRequireDefault(_UnitDigitalOutput);
-var _UnitTime = __webpack_require__(1160);
+var _UnitIOGroup = __webpack_require__(1161);
-var _UnitTime2 = _interopRequireDefault(_UnitTime);
-
-var _UnitGroups = __webpack_require__(1161);
-
-var _UnitGroups2 = _interopRequireDefault(_UnitGroups);
+var _UnitIOGroup2 = _interopRequireDefault(_UnitIOGroup);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -93583,78 +94550,127 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
-var Unit = function (_React$Component) {
- _inherits(Unit, _React$Component);
+var stateDefault = function stateDefault() {
+ return {
+ unit: '',
+ act: {
+ type: '',
+ dev: '',
+ devName: '',
+ act: '',
+ actName: ''
+ }
+ };
+};
- function Unit() {
+var ActionSelect = function (_React$Component) {
+ _inherits(ActionSelect, _React$Component);
+
+ function ActionSelect() {
var _ref;
var _temp, _this, _ret;
- _classCallCheck(this, Unit);
+ _classCallCheck(this, ActionSelect);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
- return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Unit.__proto__ || Object.getPrototypeOf(Unit)).call.apply(_ref, [this].concat(args))), _this), _this.handleChangeUnit = function (val) {
- _this.props.changeUnitType(_this.props.id, val);
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ActionSelect.__proto__ || Object.getPrototypeOf(ActionSelect)).call.apply(_ref, [this].concat(args))), _this), _this.state = _extends({}, stateDefault()), _this.changeUnit = function (unit) {
+ _this.setState({
+ unit: unit
+ });
}, _this.getUnitComponent = function () {
+ var unit = _this.state.unit;
var _this$props = _this.props,
- data = _this$props.data,
- ops = _this$props.ops,
i18n = _this$props.i18n,
showDialog = _this$props.showDialog,
- toggleLoading = _this$props.toggleLoading,
- groups = _this$props.groups;
+ toggleLoading = _this$props.toggleLoading;
- switch (data.unit) {
+ switch (unit) {
case 'leone':
- return _react2.default.createElement(_UnitLeone2.default, { ops: ops, data: data.data, i18n: i18n, showDialog: showDialog, toggleLoading: toggleLoading, updateData: _this.updateData });
- case 'di':
- return _react2.default.createElement(_UnitDigitalInput2.default, { ops: ops, data: data.data, i18n: i18n, showDialog: showDialog, toggleLoading: toggleLoading, updateData: _this.updateData });
- case 'time':
- return _react2.default.createElement(_UnitTime2.default, { ops: ops, data: data.data, i18n: i18n, showDialog: showDialog, toggleLoading: toggleLoading, updateData: _this.updateData });
- case 'unit':
- return _react2.default.createElement(_UnitGroups2.default, { i18n: i18n, data: data.data, groups: groups, updateData: _this.updateData });
+ return _react2.default.createElement(_UnitLeone2.default, { i18n: i18n,
+ data: _this.state.act,
+ showDialog: showDialog,
+ toggleLoading: toggleLoading,
+ updateData: _this.updateData });
+ case 'do':
+ return _react2.default.createElement(_UnitDigitalOutput2.default, { i18n: i18n,
+ data: _this.state.act,
+ showDialog: showDialog,
+ toggleLoading: toggleLoading,
+ updateData: _this.updateData });
+ case 'iogroup':
+ return _react2.default.createElement(_UnitIOGroup2.default, { i18n: i18n,
+ data: _this.state.act,
+ showDialog: showDialog,
+ toggleLoading: toggleLoading,
+ updateData: _this.updateData });
default:
return null;
}
}, _this.updateData = function (data) {
- _this.props.updateData(_this.props.id, data);
+ var act = _this.state.act;
+
+ for (var i in act) {
+ act[i] = data[i] || '';
+ }
+ _this.setState({
+ act: act
+ });
+ }, _this.addAction = function () {
+ var _this$state$act = _this.state.act,
+ dev = _this$state$act.dev,
+ devName = _this$state$act.devName,
+ act = _this$state$act.act,
+ actName = _this$state$act.actName,
+ type = _this$state$act.type;
+ var showDialog = _this.props.showDialog;
+
+ if (!dev || !act) return showDialog('請選擇動作資料');
+ if (type != 'modbus') {
+ var acts = act.split(',');
+ if (acts.length != 2) return showDialog('請選擇正確的動作');
+ if (acts[0] == '2') {
+ if (acts[1] < 16 || acts[1] > 30) return showDialog('冷氣溫度請介於16-30間');
+ }
+ }
+
+ _this.props.addNewAction({
+ dev: dev, devName: devName, act: act, actName: actName, type: type
+ }, _this.clearField);
+ }, _this.clearField = function () {
+ _this.setState(_extends({}, stateDefault()));
}, _temp), _possibleConstructorReturn(_this, _ret);
}
- _createClass(Unit, [{
+ _createClass(ActionSelect, [{
key: 'render',
value: function render() {
var _this2 = this;
- var _props = this.props,
- ops = _props.ops,
- id = _props.id;
-
return _react2.default.createElement(
_semanticUiReact.Segment,
- null,
+ { color: 'green' },
_react2.default.createElement(
_semanticUiReact.Form.Field,
null,
_react2.default.createElement(
'label',
null,
- '\u9078\u64C7\u5143\u4EF6'
+ '\u9078\u64C7\u88DD\u7F6E\u985E\u578B'
),
_react2.default.createElement(
'select',
- { value: this.props.data.unit, onChange: function onChange(e) {
- _this2.handleChangeUnit(e.target.value);
+ { value: this.state.unit, onChange: function onChange(e) {
+ _this2.changeUnit(e.target.value);
} },
_react2.default.createElement(
'option',
{ value: '' },
- '\u8ACB\u9078\u64C7\u5143\u4EF6'
+ '\u88DD\u7F6E\u985E\u578B'
),
_react2.default.createElement(
'option',
@@ -93663,30 +94679,35 @@ var Unit = function (_React$Component) {
),
_react2.default.createElement(
'option',
- { value: 'di' },
- 'DigitInput'
+ { value: 'do' },
+ 'DigitalOutput'
),
_react2.default.createElement(
'option',
- { value: 'time' },
- '\u6642\u9593'
- ),
- _react2.default.createElement(
- 'option',
- { value: 'unit' },
- '\u5DF2\u5EFA\u7ACB\u7FA4\u7D44'
+ { value: 'iogroup' },
+ 'IOGroup'
)
)
),
- this.getUnitComponent()
+ this.getUnitComponent(),
+ _react2.default.createElement(
+ 'div',
+ { style: { textAlign: 'right', marginTop: '20px' } },
+ _react2.default.createElement(_semanticUiReact.Button, { content: '\u52A0\u5165', basic: true, size: 'mini', color: 'blue', onClick: function onClick() {
+ _this2.addAction();
+ } }),
+ _react2.default.createElement(_semanticUiReact.Button, { content: '\u6E05\u9664', basic: true, size: 'mini', color: 'red', onClick: function onClick() {
+ _this2.clearField();
+ } })
+ )
);
}
}]);
- return Unit;
+ return ActionSelect;
}(_react2.default.Component);
-exports.default = Unit;
+exports.default = ActionSelect;
/***/ }),
/* 1158 */
@@ -93707,9 +94728,13 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
+
+var _StdAction = __webpack_require__(1159);
+
+var _StdAction2 = _interopRequireDefault(_StdAction);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -93736,36 +94761,35 @@ var UnitLeone = function (_React$Component) {
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = UnitLeone.__proto__ || Object.getPrototypeOf(UnitLeone)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
list: [],
data: {
- id: '',
- op: '',
- mode: '',
- value: ''
+ dev: '',
+ devName: '',
+ act: '',
+ actName: ''
}
- }, _this.changeState = function (key, value) {
+ }, _this.changeState = function (tag, value) {
var data = _extends({}, _this.state.data);
- if (key == 'dev') {
- data.id = value == '' ? '' : 'le' + value;
+
+ if (tag == 'act') {
+ data.actName = value.name;
+ data.act = value.act;
}
- if (key == 'mode') {
- data.mode = value;
- }
- if (key == 'op') {
- data.op = value;
- }
- if (key == 'value') {
- data.value = value;
+ if (tag == 'dev') {
+ data.dev = value.dev == '' ? '' : 'le' + value.dev;
+ data.devName = value.name;
}
_this.setState({
data: _extends({}, data)
}, function () {
- _this.sendUpdate();
+ _this.updateData();
});
- }, _this.sendUpdate = function () {
+ }, _this.updateData = function () {
var data = _extends({}, _this.state.data);
- data.id = data.id + ',' + data.mode;
- delete data.mode;
- _this.props.updateData(_extends({}, _this.props.data, data));
+ data.type = 'leone';
+
+ _this.props.updateData(data);
+ }, _this.updateAct = function (act, name) {
+ _this.changeState('act', { act: act, name: name });
}, _temp), _possibleConstructorReturn(_this, _ret);
}
@@ -93774,117 +94798,69 @@ var UnitLeone = function (_React$Component) {
value: function componentDidMount() {
var _this2 = this;
- var _props = this.props,
- showDialog = _props.showDialog,
- toggleLoading = _props.toggleLoading;
+ var showDialog = this.props.showDialog;
-
- toggleLoading(1);
fetch('/api/system/getselectlist', (0, _actions.getRequest)({ type: 'leone' })).then(function (response) {
return response.json();
}).then(function (json) {
- toggleLoading(0);
if (json.status != 1) return showDialog(json.message);
_this2.setState({
list: json.data.record || []
});
});
}
- }, {
- key: 'componentWillReceiveProps',
- value: function componentWillReceiveProps(np) {
- var data = _extends({}, this.state.data);
- if (np.data.op != data.op) data.op = np.data.op;
- if (np.data.value != data.value) data.value = np.data.op;
-
- var id = np.data.id.split(',')[0];
- var mode = np.data.id.split(',')[1];
- if (id != data.id) data.id = id;
- if (mode != data.mode) data.mode = mode;
-
- this.setState({
- data: _extends({}, data)
- });
- }
}, {
key: 'render',
value: function render() {
var _this3 = this;
- var ops = this.props.ops;
+ var i18n = this.props.i18n;
- var id = '';
- if (this.state.data.id != '') {
- var m = this.state.data.id.match(/(\d+)/);
- if (m != null && m.length > 1) {
- id = m[1];
- }
+ var dev = '';
+ var m = this.state.data.dev.match(/(\d+)/);
+ if (m != null && m.length > 1) {
+ dev = m[1];
}
return _react2.default.createElement(
'div',
null,
_react2.default.createElement(
- 'select',
- { value: id, onChange: function onChange(e) {
- _this3.changeState('dev', e.target.value);
- } },
+ _semanticUiReact.Form.Field,
+ null,
_react2.default.createElement(
- 'option',
- { value: '' },
+ 'label',
+ null,
'\u9078\u64C7\u88DD\u7F6E'
),
- this.state.list.map(function (t, idx) {
- return _react2.default.createElement(
+ _react2.default.createElement(
+ 'select',
+ { value: dev, onChange: function onChange(e) {
+ var el = e.target;
+ var json = {
+ dev: '',
+ name: ''
+ };
+
+ json.dev = el.value;
+ json.name = el.options[el.selectedIndex].innerHTML;
+
+ _this3.changeState('dev', json);
+ } },
+ _react2.default.createElement(
'option',
- { key: idx, value: t.id },
- t.name
- );
- })
- ),
- _react2.default.createElement(
- 'select',
- { value: this.state.data.mode, onChange: function onChange(e) {
- _this3.changeState('mode', e.target.value);
- } },
- _react2.default.createElement(
- 'option',
- { value: '' },
- '\u9078\u64C7\u611F\u6E2C\u5668'
- ),
- _react2.default.createElement(
- 'option',
- { value: 'leone_ttrigger1' },
- '\u6EAB\u5EA6'
- ),
- _react2.default.createElement(
- 'option',
- { value: 'leone_htrigger1' },
- '\u6FD5\u5EA6'
- )
- ),
- _react2.default.createElement(
- 'select',
- { value: this.state.data.op, onChange: function onChange(e) {
- _this3.changeState('op', e.target.value);
- } },
- _react2.default.createElement(
- 'option',
- { value: '' },
- '\u9078\u64C7\u689D\u4EF6'
- ),
- ops.map(function (t, idx) {
- if (t.code != 8 && t.code != 9) {
+ { value: '' },
+ '\u9078\u64C7\u88DD\u7F6E'
+ ),
+ this.state.list.map(function (t, idx) {
return _react2.default.createElement(
'option',
- { value: t.code, key: idx },
+ { key: idx, value: t.id },
t.name
);
- }
- })
+ })
+ )
),
- _react2.default.createElement(_semanticUiReact.Input, { placeholder: '\u8ACB\u8F38\u5165\u6578\u503C', value: this.state.data.value, onChange: function onChange(e, d) {
- _this3.changeState('value', d.value);
- } })
+ _react2.default.createElement(_StdAction2.default, { i18n: i18n, updateAct: this.updateAct })
);
}
}]);
@@ -93913,9 +94889,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
-
-var _actions = __webpack_require__(18);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -93925,166 +94899,118 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
-var UnitDigitalInput = function (_React$Component) {
- _inherits(UnitDigitalInput, _React$Component);
+var StdAction = function (_React$Component) {
+ _inherits(StdAction, _React$Component);
- function UnitDigitalInput() {
+ function StdAction() {
var _ref;
var _temp, _this, _ret;
- _classCallCheck(this, UnitDigitalInput);
+ _classCallCheck(this, StdAction);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
- return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = UnitDigitalInput.__proto__ || Object.getPrototypeOf(UnitDigitalInput)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
- list: [],
- data: {
- id: '',
- op: '',
- value: ''
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = StdAction.__proto__ || Object.getPrototypeOf(StdAction)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
+ name: '',
+ act: '',
+ temp: ''
+ }, _this.changeState = function (tag, value) {
+ var data = _extends({}, _this.state);
+ if (tag == 'act') {
+ data.name = value.name || '';
+ data.act = value.act || '';
}
- }, _this.changeState = function (key, value) {
- var data = _extends({}, _this.state.data);
- if (key == 'dev') {
- data.id = value == '' ? '' : 'di' + value + ',di_status';
- }
- if (key == 'op') {
- data.op = value;
- }
- if (key == 'value') {
- data.value = value;
+ if (tag == 'temp') {
+ data.temp = value;
}
- _this.setState({
- data: _extends({}, data)
- }, function () {
- _this.sendUpdate();
+ _this.setState(_extends({}, data), function () {
+ _this.updateAct();
});
- }, _this.sendUpdate = function () {
- _this.props.updateData(_extends({}, _this.props.data, _this.state.data));
+ }, _this.showTemp = function () {
+ if (_this.state.act == '2') {
+ return _react2.default.createElement(
+ _semanticUiReact.Form.Field,
+ null,
+ _react2.default.createElement(_semanticUiReact.Input, { label: '\u8ACB\u8F38\u5165\u6EAB\u5EA6',
+ placeholder: '\u6EAB\u5EA6\u8ACB\u4ECB\u65BC16-30\u9593',
+ value: _this.state.temp,
+ onChange: function onChange(e, d) {
+ _this.changeState('temp', d.value);
+ } })
+ );
+ }
+
+ return null;
+ }, _this.updateAct = function () {
+ var updateAct = _this.props.updateAct;
+
+ var act = _this.state.act;
+ var temp = _this.state.temp;
+
+ if (act == '2') act = act + ',' + temp;
+ updateAct(act, _this.state.name);
}, _temp), _possibleConstructorReturn(_this, _ret);
}
- _createClass(UnitDigitalInput, [{
- key: 'componentDidMount',
- value: function componentDidMount() {
- var _this2 = this;
-
- var _props = this.props,
- showDialog = _props.showDialog,
- toggleLoading = _props.toggleLoading;
-
-
- toggleLoading(1);
- fetch('/api/system/getselectlist', (0, _actions.getRequest)({ type: 'di' })).then(function (response) {
- return response.json();
- }).then(function (json) {
- toggleLoading(0);
- if (json.status != 1) return showDialog(json.message);
- _this2.setState({
- list: json.data.record || []
- });
- });
- }
- }, {
- key: 'componentWillReceiveProps',
- value: function componentWillReceiveProps(np) {
- var data = _extends({}, this.state.data);
- if (np.data.id != data.id) data.id = np.data.id;
- if (np.data.op != data.op) data.op = np.data.op;
- if (np.data.value != data.value) data.value = np.data.op;
-
- this.setState({
- data: _extends({}, data)
- });
- }
- }, {
+ _createClass(StdAction, [{
key: 'render',
value: function render() {
- var _this3 = this;
+ var _this2 = this;
- var ops = this.props.ops;
+ var i18n = this.props.i18n;
- var id = '';
- if (this.state.data.id != '') {
- var m = this.state.data.id.match(/(\d+)/);
- if (m != null && m.length > 1) {
- id = m[1];
- }
- }
+ var actlist = i18n && i18n.getResource && i18n.language ? i18n.getResource(i18n.language + '.translation.action_list') : [];
return _react2.default.createElement(
'div',
null,
_react2.default.createElement(
- 'select',
- { value: id, onChange: function onChange(e) {
- _this3.changeState('dev', e.target.value);
- } },
+ _semanticUiReact.Form.Field,
+ null,
_react2.default.createElement(
- 'option',
- { value: '' },
- '\u9078\u64C7\u88DD\u7F6E'
+ 'label',
+ null,
+ '\u9078\u64C7\u52D5\u4F5C'
),
- this.state.list.map(function (t, idx) {
- return _react2.default.createElement(
+ _react2.default.createElement(
+ 'select',
+ { value: this.state.act, onChange: function onChange(e) {
+ var el = e.target;
+ var json = {
+ name: '',
+ act: ''
+ };
+ json.act = el.value;
+ json.name = el.options[el.selectedIndex].innerHTML;
+
+ _this2.changeState('act', json);
+ } },
+ _react2.default.createElement(
'option',
- { key: idx, value: t.id },
- t.name
- );
- })
- ),
- _react2.default.createElement(
- 'select',
- { value: this.state.data.op, onChange: function onChange(e) {
- _this3.changeState('op', e.target.value);
- } },
- _react2.default.createElement(
- 'option',
- { value: '' },
- '\u9078\u64C7\u689D\u4EF6'
- ),
- ops.map(function (t, idx) {
- if (t.code != 8 && t.code != 9) {
+ { value: '' },
+ '\u9078\u64C7\u52D5\u4F5C'
+ ),
+ actlist.map(function (t, idx) {
return _react2.default.createElement(
'option',
- { value: t.code, key: idx },
+ { key: idx, value: t.cmd.replace(' ', ',') },
t.name
);
- }
- })
- ),
- _react2.default.createElement(
- 'select',
- { value: this.state.data.value, onChange: function onChange(e) {
- _this3.changeState('value', e.target.value);
- } },
- _react2.default.createElement(
- 'option',
- { value: '' },
- '\u9078\u64C7\u72C0\u614B'
- ),
- _react2.default.createElement(
- 'option',
- { value: '0' },
- '0'
- ),
- _react2.default.createElement(
- 'option',
- { value: '1' },
- '1'
+ })
)
- )
+ ),
+ this.showTemp()
);
}
}]);
- return UnitDigitalInput;
+ return StdAction;
}(_react2.default.Component);
-exports.default = UnitDigitalInput;
+exports.default = StdAction;
/***/ }),
/* 1160 */
@@ -94105,9 +95031,13 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
+
+var _StdAction = __webpack_require__(1159);
+
+var _StdAction2 = _interopRequireDefault(_StdAction);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -94117,142 +95047,131 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
-var UnitTime = function (_React$Component) {
- _inherits(UnitTime, _React$Component);
+var UnitLeone = function (_React$Component) {
+ _inherits(UnitLeone, _React$Component);
- function UnitTime() {
+ function UnitLeone() {
var _ref;
var _temp, _this, _ret;
- _classCallCheck(this, UnitTime);
+ _classCallCheck(this, UnitLeone);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
- return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = UnitTime.__proto__ || Object.getPrototypeOf(UnitTime)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = UnitLeone.__proto__ || Object.getPrototypeOf(UnitLeone)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
list: [],
data: {
- op: '',
- id: 'dt0,mode0',
- year: '-',
- week: '-',
- month: '-',
- day: '-',
- hour: '-',
- min: '-'
+ dev: '',
+ devName: '',
+ act: '',
+ actName: ''
}
- }, _this.changeState = function (key, value) {
+ }, _this.changeState = function (tag, value) {
var data = _extends({}, _this.state.data);
- if (key == 'op') {
- data.op = value;
+
+ if (tag == 'act') {
+ data.actName = value.name;
+ data.act = value.act;
}
- if (key == 'year') {
- data.year = value == '' ? '-' : value;
- }
- if (key == 'week') {
- data.week = value == '' ? '-' : value;
- }
- if (key == 'month') {
- data.month = value == '' ? '-' : value;
- }
- if (key == 'day') {
- data.day = value == '' ? '-' : value;
- }
- if (key == 'hour') {
- data.hour = value == '' ? '-' : value;
- }
- if (key == 'min') {
- data.min = value == '' ? '-' : value;
+ if (tag == 'dev') {
+ data.dev = value.dev == '' ? '' : 'le' + value.dev;
+ data.devName = value.name;
}
_this.setState({
data: _extends({}, data)
}, function () {
- _this.sendUpdate();
+ _this.updateData();
});
- }, _this.sendUpdate = function () {
+ }, _this.updateData = function () {
var data = _extends({}, _this.state.data);
- data.value = data.min + '|' + data.hour + '|' + data.day + '|' + data.month + '|' + data.week + '|' + data.year;
- delete data.year;
- delete data.week;
- delete data.month;
- delete data.day;
- delete data.hour;
- delete data.min;
- _this.props.updateData(_extends({}, _this.props.data, data));
+ data.type = 'do';
+
+ _this.props.updateData(data);
+ }, _this.updateAct = function (act, name) {
+ _this.changeState('act', { act: act, name: name });
}, _temp), _possibleConstructorReturn(_this, _ret);
}
- _createClass(UnitTime, [{
- key: 'componentWillReceiveProps',
- value: function componentWillReceiveProps(np) {
- var data = _extends({}, this.state.data);
- if (np.data.op != data.op) data.op = np.data.op;
+ _createClass(UnitLeone, [{
+ key: 'componentDidMount',
+ value: function componentDidMount() {
+ var _this2 = this;
- var year = np.data.split('|')[5] || '-';
- var week = np.data.split('|')[4] || '-';
- var month = np.data.split('|')[3] || '-';
- var day = np.data.split('|')[2] || '-';
- var hour = np.data.split('|')[1] || '-';
- var min = np.data.split('|')[0] || '-';
+ var showDialog = this.props.showDialog;
- if (year != data.year) data.year = year;
- if (week != data.week) data.week = week;
- if (month != data.month) data.month = month;
- if (day != data.day) data.day = day;
- if (hour != data.hour) data.hour = hour;
- if (min != data.min) data.min = min;
-
- this.setState({
- data: _extends({}, data)
+ fetch('/api/system/getselectlist', (0, _actions.getRequest)({ type: 'do' })).then(function (response) {
+ return response.json();
+ }).then(function (json) {
+ if (json.status != 1) return showDialog(json.message);
+ _this2.setState({
+ list: json.data.record || []
+ });
});
}
}, {
key: 'render',
value: function render() {
- var _this2 = this;
+ var _this3 = this;
- var ops = this.props.ops;
+ var i18n = this.props.i18n;
+ var dev = '';
+ var m = this.state.data.dev.match(/(\d+)/);
+ if (m != null && m.length > 1) {
+ dev = m[1];
+ }
return _react2.default.createElement(
'div',
null,
_react2.default.createElement(
- 'select',
- { value: this.state.data.op, onChange: function onChange(e) {
- _this2.changeState('op', e.target.value);
- } },
+ _semanticUiReact.Form.Field,
+ null,
_react2.default.createElement(
- 'option',
- { value: '' },
- '\u9078\u64C7\u689D\u4EF6'
+ 'label',
+ null,
+ '\u9078\u64C7\u88DD\u7F6E'
),
- ops.map(function (t, idx) {
- if (t.code != 8 && t.code != 9) {
+ _react2.default.createElement(
+ 'select',
+ { value: dev, onChange: function onChange(e) {
+ var el = e.target;
+ var json = {
+ dev: '',
+ name: ''
+ };
+
+ json.dev = el.value;
+ json.name = el.options[el.selectedIndex].innerHTML;
+
+ _this3.changeState('dev', json);
+ } },
+ _react2.default.createElement(
+ 'option',
+ { value: '' },
+ '\u9078\u64C7\u88DD\u7F6E'
+ ),
+ this.state.list.map(function (t, idx) {
return _react2.default.createElement(
'option',
- { value: t.code, key: idx },
+ { key: idx, value: t.id },
t.name
);
- }
- })
+ })
+ )
),
- _react2.default.createElement(_semanticUiReact.Input, { size: 'mini', placeholder: '\u5E74(\u4E0D\u6307\u5B9A\u8ACB\u7559\u7A7A)' }),
- _react2.default.createElement(_semanticUiReact.Input, { size: 'mini', placeholder: '\u9031(\u4E0D\u6307\u5B9A\u8ACB\u7559\u7A7A)' }),
- _react2.default.createElement(_semanticUiReact.Input, { size: 'mini', placeholder: '\u6708(\u4E0D\u6307\u5B9A\u8ACB\u7559\u7A7A)' }),
- _react2.default.createElement(_semanticUiReact.Input, { size: 'mini', placeholder: '\u65E5(\u4E0D\u6307\u5B9A\u8ACB\u7559\u7A7A)' }),
- _react2.default.createElement(_semanticUiReact.Input, { size: 'mini', placeholder: '\u6642(\u4E0D\u6307\u5B9A\u8ACB\u7559\u7A7A)' }),
- _react2.default.createElement(_semanticUiReact.Input, { size: 'mini', placeholder: '\u5206(\u4E0D\u6307\u5B9A\u8ACB\u7559\u7A7A)' })
+ _react2.default.createElement(_StdAction2.default, { i18n: i18n, updateAct: this.updateAct })
);
}
}]);
- return UnitTime;
+ return UnitLeone;
}(_react2.default.Component);
-exports.default = UnitTime;
+exports.default = UnitLeone;
/***/ }),
/* 1161 */
@@ -94273,9 +95192,13 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
+
+var _StdAction = __webpack_require__(1159);
+
+var _StdAction2 = _interopRequireDefault(_StdAction);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -94285,52 +95208,224 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
-var UnitGroups = function (_React$Component) {
- _inherits(UnitGroups, _React$Component);
+var UnitLeone = function (_React$Component) {
+ _inherits(UnitLeone, _React$Component);
- function UnitGroups() {
- _classCallCheck(this, UnitGroups);
+ function UnitLeone() {
+ var _ref;
- return _possibleConstructorReturn(this, (UnitGroups.__proto__ || Object.getPrototypeOf(UnitGroups)).apply(this, arguments));
+ var _temp, _this, _ret;
+
+ _classCallCheck(this, UnitLeone);
+
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = UnitLeone.__proto__ || Object.getPrototypeOf(UnitLeone)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
+ list: [],
+ data: {
+ dev: '',
+ devName: '',
+ act: '',
+ actName: ''
+ }
+ }, _this.changeState = function (tag, value) {
+ var data = _extends({}, _this.state.data);
+
+ if (tag == 'act') {
+ data.actName = value.name;
+ data.act = value.act;
+ }
+ if (tag == 'dev') {
+ data.dev = value.dev == '' ? '' : 'le' + value.dev;
+ data.devName = value.name;
+ }
+
+ _this.setState({
+ data: _extends({}, data)
+ }, function () {
+ _this.updateData();
+ });
+ }, _this.updateData = function () {
+ var data = _extends({}, _this.state.data);
+ data.type = 'iogroup';
+
+ _this.props.updateData(data);
+ }, _this.updateAct = function (act, name) {
+ _this.changeState('act', { act: act, name: name });
+ }, _temp), _possibleConstructorReturn(_this, _ret);
}
- _createClass(UnitGroups, [{
+ _createClass(UnitLeone, [{
+ key: 'componentDidMount',
+ value: function componentDidMount() {
+ var _this2 = this;
+
+ var showDialog = this.props.showDialog;
+
+ fetch('/api/system/getselectlist', (0, _actions.getRequest)({ type: 'iogroup' })).then(function (response) {
+ return response.json();
+ }).then(function (json) {
+ if (json.status != 1) return showDialog(json.message);
+ _this2.setState({
+ list: json.data.record || []
+ });
+ });
+ }
+ }, {
key: 'render',
value: function render() {
- var _props = this.props,
- groups = _props.groups,
- data = _props.data,
- updateData = _props.updateData;
+ var _this3 = this;
+ var i18n = this.props.i18n;
+
+ var dev = '';
+ var m = this.state.data.dev.match(/(\d+)/);
+ if (m != null && m.length > 1) {
+ dev = m[1];
+ }
return _react2.default.createElement(
'div',
null,
_react2.default.createElement(
- 'select',
- { value: data.dev, onChange: function onChange(e) {
- updateData(_extends({}, data, { dev: e.target.value }));
- } },
+ _semanticUiReact.Form.Field,
+ null,
_react2.default.createElement(
- 'option',
- { value: '' },
- '\u9078\u64C7\u7FA4\u7D44'
+ 'label',
+ null,
+ '\u9078\u64C7\u88DD\u7F6E'
),
- Object.keys(groups).map(function (t, idx) {
- return _react2.default.createElement(
+ _react2.default.createElement(
+ 'select',
+ { value: dev, onChange: function onChange(e) {
+ var el = e.target;
+ var json = {
+ dev: '',
+ name: ''
+ };
+
+ json.dev = el.value;
+ json.name = el.options[el.selectedIndex].innerHTML;
+
+ _this3.changeState('dev', json);
+ } },
+ _react2.default.createElement(
'option',
- { key: idx, value: t },
- groups[t].name
- );
- })
- )
+ { value: '' },
+ '\u9078\u64C7\u88DD\u7F6E'
+ ),
+ this.state.list.map(function (t, idx) {
+ return _react2.default.createElement(
+ 'option',
+ { key: idx, value: t.id },
+ t.name
+ );
+ })
+ )
+ ),
+ _react2.default.createElement(_StdAction2.default, { i18n: i18n, updateAct: this.updateAct })
);
}
}]);
- return UnitGroups;
+ return UnitLeone;
}(_react2.default.Component);
-exports.default = UnitGroups;
+exports.default = UnitLeone;
+
+/***/ }),
+/* 1162 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _react = __webpack_require__(0);
+
+var _react2 = _interopRequireDefault(_react);
+
+var _semanticUiReact = __webpack_require__(6);
+
+var _ListItem = __webpack_require__(1163);
+
+var _ListItem2 = _interopRequireDefault(_ListItem);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+var ActionList = function ActionList(_ref) {
+ var i18n = _ref.i18n,
+ list = _ref.list,
+ removeAction = _ref.removeAction;
+
+
+ return _react2.default.createElement(
+ _semanticUiReact.Segment,
+ { color: 'blue' },
+ _react2.default.createElement(
+ _semanticUiReact.List,
+ { divided: true },
+ list.map(function (t, idx) {
+ return _react2.default.createElement(_ListItem2.default, { key: idx, i18n: i18n, data: t, idx: idx, removeAction: removeAction });
+ })
+ )
+ );
+};
+
+exports.default = ActionList;
+
+/***/ }),
+/* 1163 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _react = __webpack_require__(0);
+
+var _react2 = _interopRequireDefault(_react);
+
+var _semanticUiReact = __webpack_require__(6);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+var ListItem = function ListItem(_ref) {
+ var i18n = _ref.i18n,
+ data = _ref.data,
+ idx = _ref.idx,
+ removeAction = _ref.removeAction;
+
+
+ return _react2.default.createElement(
+ _semanticUiReact.List.Item,
+ null,
+ _react2.default.createElement(_semanticUiReact.Label, { basic: true, content: '\u88DD\u7F6E\u540D\u7A31' }),
+ _react2.default.createElement(
+ 'span',
+ null,
+ data.devName
+ ),
+ _react2.default.createElement(_semanticUiReact.Label, { basic: true, content: '\u52D5\u4F5C' }),
+ _react2.default.createElement(
+ 'span',
+ null,
+ data.actName
+ ),
+ _react2.default.createElement(_semanticUiReact.Button, { floated: 'right', color: 'red', basic: true, size: 'tiny', content: 'Delete', type: 'button', onClick: function onClick() {
+ removeAction(idx);
+ } })
+ );
+};
+
+exports.default = ListItem;
/***/ })
/******/ ]);
\ No newline at end of file
diff --git a/public/js/index_bundle.js b/public/js/index_bundle.js
index 731d1e0..8e576ef 100644
--- a/public/js/index_bundle.js
+++ b/public/js/index_bundle.js
@@ -63,7 +63,7 @@
/******/ __webpack_require__.p = "";
/******/ // Load entry module and return exports
-/******/ return __webpack_require__(__webpack_require__.s = 1154);
+/******/ return __webpack_require__(__webpack_require__.s = 1156);
/******/ })
/************************************************************************/
/******/ ([
@@ -268,139 +268,6 @@ module.exports = isNil;
/***/ }),
/* 5 */,
/* 6 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-
-
-/**
- * Use invariant() to assert state which your program assumes to be true.
- *
- * Provide sprintf-style format (only %s is supported) and arguments
- * to provide information about what broke and what you were
- * expecting.
- *
- * The invariant message will be stripped in production, but the invariant
- * will remain to ensure logic does not differ in production.
- */
-
-var validateFormat = function validateFormat(format) {};
-
-if (true) {
- validateFormat = function validateFormat(format) {
- if (format === undefined) {
- throw new Error('invariant requires an error message argument');
- }
- };
-}
-
-function invariant(condition, format, a, b, c, d, e, f) {
- validateFormat(format);
-
- if (!condition) {
- var error;
- if (format === undefined) {
- error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
- } else {
- var args = [a, b, c, d, e, f];
- var argIndex = 0;
- error = new Error(format.replace(/%s/g, function () {
- return args[argIndex++];
- }));
- error.name = 'Invariant Violation';
- }
-
- error.framesToPop = 1; // we don't care about invariant's own frame
- throw error;
- }
-}
-
-module.exports = invariant;
-
-/***/ }),
-/* 7 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-/**
- * Copyright 2014-2015, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-
-
-var emptyFunction = __webpack_require__(31);
-
-/**
- * Similar to invariant but only logs a warning if the condition is not met.
- * This can be used to log issues in development environments in critical
- * paths. Removing the logging code for production environments will keep the
- * same logic and follow the same code paths.
- */
-
-var warning = emptyFunction;
-
-if (true) {
- (function () {
- var printWarning = function printWarning(format) {
- for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- args[_key - 1] = arguments[_key];
- }
-
- var argIndex = 0;
- var message = 'Warning: ' + format.replace(/%s/g, function () {
- return args[argIndex++];
- });
- if (typeof console !== 'undefined') {
- console.error(message);
- }
- try {
- // --- Welcome to debugging React ---
- // This error was thrown as a convenience so that you can use this stack
- // to find the callsite that caused this warning to fire.
- throw new Error(message);
- } catch (x) {}
- };
-
- warning = function warning(condition, format) {
- if (format === undefined) {
- throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
- }
-
- if (format.indexOf('Failed Composite propType: ') === 0) {
- return; // Ignore CompositeComponent proptype check.
- }
-
- if (!condition) {
- for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
- args[_key2 - 2] = arguments[_key2];
- }
-
- printWarning.apply(undefined, [format].concat(args));
- }
- };
- })();
-}
-
-module.exports = warning;
-
-/***/ }),
-/* 8 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -867,6 +734,139 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
+
+/***/ }),
+/* 7 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+/**
+ * Copyright (c) 2013-present, Facebook, Inc.
+ * All rights reserved.
+ *
+ * This source code is licensed under the BSD-style license found in the
+ * LICENSE file in the root directory of this source tree. An additional grant
+ * of patent rights can be found in the PATENTS file in the same directory.
+ *
+ */
+
+
+
+/**
+ * Use invariant() to assert state which your program assumes to be true.
+ *
+ * Provide sprintf-style format (only %s is supported) and arguments
+ * to provide information about what broke and what you were
+ * expecting.
+ *
+ * The invariant message will be stripped in production, but the invariant
+ * will remain to ensure logic does not differ in production.
+ */
+
+var validateFormat = function validateFormat(format) {};
+
+if (true) {
+ validateFormat = function validateFormat(format) {
+ if (format === undefined) {
+ throw new Error('invariant requires an error message argument');
+ }
+ };
+}
+
+function invariant(condition, format, a, b, c, d, e, f) {
+ validateFormat(format);
+
+ if (!condition) {
+ var error;
+ if (format === undefined) {
+ error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
+ } else {
+ var args = [a, b, c, d, e, f];
+ var argIndex = 0;
+ error = new Error(format.replace(/%s/g, function () {
+ return args[argIndex++];
+ }));
+ error.name = 'Invariant Violation';
+ }
+
+ error.framesToPop = 1; // we don't care about invariant's own frame
+ throw error;
+ }
+}
+
+module.exports = invariant;
+
+/***/ }),
+/* 8 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+/**
+ * Copyright 2014-2015, Facebook, Inc.
+ * All rights reserved.
+ *
+ * This source code is licensed under the BSD-style license found in the
+ * LICENSE file in the root directory of this source tree. An additional grant
+ * of patent rights can be found in the PATENTS file in the same directory.
+ *
+ */
+
+
+
+var emptyFunction = __webpack_require__(31);
+
+/**
+ * Similar to invariant but only logs a warning if the condition is not met.
+ * This can be used to log issues in development environments in critical
+ * paths. Removing the logging code for production environments will keep the
+ * same logic and follow the same code paths.
+ */
+
+var warning = emptyFunction;
+
+if (true) {
+ (function () {
+ var printWarning = function printWarning(format) {
+ for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
+ args[_key - 1] = arguments[_key];
+ }
+
+ var argIndex = 0;
+ var message = 'Warning: ' + format.replace(/%s/g, function () {
+ return args[argIndex++];
+ });
+ if (typeof console !== 'undefined') {
+ console.error(message);
+ }
+ try {
+ // --- Welcome to debugging React ---
+ // This error was thrown as a convenience so that you can use this stack
+ // to find the callsite that caused this warning to fire.
+ throw new Error(message);
+ } catch (x) {}
+ };
+
+ warning = function warning(condition, format) {
+ if (format === undefined) {
+ throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
+ }
+
+ if (format.indexOf('Failed Composite propType: ') === 0) {
+ return; // Ignore CompositeComponent proptype check.
+ }
+
+ if (!condition) {
+ for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
+ args[_key2 - 2] = arguments[_key2];
+ }
+
+ printWarning.apply(undefined, [format].concat(args));
+ }
+ };
+ })();
+}
+
+module.exports = warning;
/***/ }),
/* 9 */
@@ -1190,18 +1190,6 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
/***/ }),
/* 17 */
-/***/ (function(module, exports) {
-
-/**
- * The default argument placeholder value for methods.
- *
- * @type {Object}
- */
-module.exports = {};
-
-
-/***/ }),
-/* 18 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -2070,6 +2058,18 @@ var clear_dashboard = exports.clear_dashboard = function clear_dashboard() {
};
};
+/***/ }),
+/* 18 */
+/***/ (function(module, exports) {
+
+/**
+ * The default argument placeholder value for methods.
+ *
+ * @type {Object}
+ */
+module.exports = {};
+
+
/***/ }),
/* 19 */
/***/ (function(module, exports, __webpack_require__) {
@@ -2116,7 +2116,7 @@ var _prodInvariant = __webpack_require__(9);
var DOMProperty = __webpack_require__(54);
var ReactDOMComponentFlags = __webpack_require__(334);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
var ATTR_NAME = DOMProperty.ID_ATTRIBUTE_NAME;
var Flags = ReactDOMComponentFlags;
@@ -2496,8 +2496,8 @@ var _prodInvariant = __webpack_require__(64);
var ReactCurrentOwner = __webpack_require__(37);
-var invariant = __webpack_require__(6);
-var warning = __webpack_require__(7);
+var invariant = __webpack_require__(7);
+var warning = __webpack_require__(8);
function isNative(fn) {
// Based on isNative() from Lodash
@@ -3089,7 +3089,7 @@ var ReactFeatureFlags = __webpack_require__(337);
var ReactReconciler = __webpack_require__(76);
var Transaction = __webpack_require__(136);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
var dirtyComponents = [];
var updateBatchNumber = 0;
@@ -3459,7 +3459,7 @@ var _assign = __webpack_require__(16);
var PooledClass = __webpack_require__(62);
var emptyFunction = __webpack_require__(31);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var didWarnForAddedNewProperty = false;
var isProxySupported = typeof Proxy === 'function';
@@ -4294,7 +4294,7 @@ module.exports = toString;
var _prodInvariant = __webpack_require__(9);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
function checkMask(value, bitmask) {
return (value & bitmask) === bitmask;
@@ -4683,7 +4683,7 @@ module.exports = isSymbol;
var _prodInvariant = __webpack_require__(9);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* Static poolers. Several custom versions for each potential number of
@@ -4801,7 +4801,7 @@ var _assign = __webpack_require__(16);
var ReactCurrentOwner = __webpack_require__(37);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var canDefineProperty = __webpack_require__(216);
var hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -5719,7 +5719,7 @@ module.exports = DOMLazyTree;
var ReactRef = __webpack_require__(775);
var ReactInstrumentation = __webpack_require__(30);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
/**
* Helper to call ReactRef.attachRefs with this composite component, split out
@@ -5901,7 +5901,7 @@ var ReactPropTypes = __webpack_require__(821);
var ReactVersion = __webpack_require__(823);
var onlyChild = __webpack_require__(825);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var createElement = ReactElement.createElement;
var createFactory = ReactElement.createFactory;
@@ -6510,7 +6510,7 @@ var ReactErrorUtils = __webpack_require__(203);
var accumulateInto = __webpack_require__(344);
var forEachAccumulated = __webpack_require__(345);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* Internal store for event listeners
@@ -6790,7 +6790,7 @@ var EventPluginUtils = __webpack_require__(199);
var accumulateInto = __webpack_require__(344);
var forEachAccumulated = __webpack_require__(345);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var getListener = EventPluginHub.getListener;
@@ -8191,7 +8191,7 @@ module.exports = toNumber;
var _prodInvariant = __webpack_require__(9);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* Injectable ordering of event plugins.
@@ -8861,7 +8861,7 @@ module.exports = SyntheticMouseEvent;
var _prodInvariant = __webpack_require__(9);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
var OBSERVED_ERROR = {};
@@ -11517,8 +11517,8 @@ var _prodInvariant = __webpack_require__(9);
var ReactErrorUtils = __webpack_require__(203);
-var invariant = __webpack_require__(6);
-var warning = __webpack_require__(7);
+var invariant = __webpack_require__(7);
+var warning = __webpack_require__(8);
/**
* Injected dependencies:
@@ -11813,8 +11813,8 @@ var _prodInvariant = __webpack_require__(9);
var React = __webpack_require__(77);
var ReactPropTypesSecret = __webpack_require__(342);
-var invariant = __webpack_require__(6);
-var warning = __webpack_require__(7);
+var invariant = __webpack_require__(7);
+var warning = __webpack_require__(8);
var hasReadOnlyValue = {
'button': true,
@@ -11951,7 +11951,7 @@ module.exports = LinkedValueUtils;
var _prodInvariant = __webpack_require__(9);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
var injected = false;
@@ -12088,8 +12088,8 @@ var ReactInstanceMap = __webpack_require__(96);
var ReactInstrumentation = __webpack_require__(30);
var ReactUpdates = __webpack_require__(36);
-var invariant = __webpack_require__(6);
-var warning = __webpack_require__(7);
+var invariant = __webpack_require__(7);
+var warning = __webpack_require__(8);
function enqueueUpdate(internalInstance) {
ReactUpdates.enqueueUpdate(internalInstance);
@@ -12607,7 +12607,7 @@ module.exports = shouldUpdateReactComponent;
var _assign = __webpack_require__(16);
var emptyFunction = __webpack_require__(31);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var validateDOMNesting = emptyFunction;
@@ -13025,8 +13025,8 @@ var ReactNoopUpdateQueue = __webpack_require__(214);
var canDefineProperty = __webpack_require__(216);
var emptyObject = __webpack_require__(84);
-var invariant = __webpack_require__(6);
-var warning = __webpack_require__(7);
+var invariant = __webpack_require__(7);
+var warning = __webpack_require__(8);
/**
* Base class helpers for the updating state of a component.
@@ -13142,7 +13142,7 @@ module.exports = ReactComponent;
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
function warnNoop(publicInstance, callerName) {
if (true) {
@@ -17435,7 +17435,7 @@ module.exports = findIndex;
var convert = __webpack_require__(19),
func = convert('flow', __webpack_require__(689));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -17446,7 +17446,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('includes', __webpack_require__(92));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -17457,7 +17457,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('isNil', __webpack_require__(4), __webpack_require__(39));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -18168,7 +18168,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
var PooledClass = __webpack_require__(62);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* A specialized pseudo-event module to help keep track of components waiting to
@@ -18290,7 +18290,7 @@ var ReactDOMComponentTree = __webpack_require__(20);
var ReactInstrumentation = __webpack_require__(30);
var quoteAttributeValueForBrowser = __webpack_require__(802);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + DOMProperty.ATTRIBUTE_NAME_START_CHAR + '][' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$');
var illegalAttributeNameCache = {};
@@ -18556,7 +18556,7 @@ var LinkedValueUtils = __webpack_require__(201);
var ReactDOMComponentTree = __webpack_require__(20);
var ReactUpdates = __webpack_require__(36);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var didWarnValueLink = false;
var didWarnValueDefaultValue = false;
@@ -18819,7 +18819,7 @@ module.exports = ReactFeatureFlags;
var _prodInvariant = __webpack_require__(9);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
var genericComponentClass = null;
var textComponentClass = null;
@@ -19039,10 +19039,10 @@ var ReactUpdates = __webpack_require__(36);
var emptyObject = __webpack_require__(84);
var instantiateReactComponent = __webpack_require__(348);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
var setInnerHTML = __webpack_require__(138);
var shouldUpdateReactComponent = __webpack_require__(210);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var ATTR_NAME = DOMProperty.ID_ATTRIBUTE_NAME;
var ROOT_ATTR_NAME = DOMProperty.ROOT_ATTRIBUTE_NAME;
@@ -19567,7 +19567,7 @@ var _prodInvariant = __webpack_require__(9);
var React = __webpack_require__(77);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
var ReactNodeTypes = {
HOST: 0,
@@ -19664,7 +19664,7 @@ module.exports = ViewportMetrics;
var _prodInvariant = __webpack_require__(9);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* Accumulates items that must not be null or undefined into the first one. This
@@ -19841,8 +19841,8 @@ var ReactEmptyComponent = __webpack_require__(336);
var ReactHostComponent = __webpack_require__(338);
var getNextDebugID = __webpack_require__(799);
-var invariant = __webpack_require__(6);
-var warning = __webpack_require__(7);
+var invariant = __webpack_require__(7);
+var warning = __webpack_require__(8);
// To avoid a cyclic dependency, we create the final class in this module
var ReactCompositeComponentWrapper = function (element) {
@@ -20085,9 +20085,9 @@ var ReactCurrentOwner = __webpack_require__(37);
var REACT_ELEMENT_TYPE = __webpack_require__(764);
var getIteratorFn = __webpack_require__(798);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
var KeyEscapeUtils = __webpack_require__(200);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var SEPARATOR = '.';
var SUBSEPARATOR = ':';
@@ -20776,7 +20776,7 @@ var checkReactTypeSpec = __webpack_require__(824);
var canDefineProperty = __webpack_require__(216);
var getIteratorFn = __webpack_require__(217);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
function getDeclarationErrorAddendum() {
if (ReactCurrentOwner.current) {
@@ -28389,7 +28389,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -28433,7 +28433,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -28465,7 +28465,7 @@ var _Dialog = __webpack_require__(458);
var _Dialog2 = _interopRequireDefault(_Dialog);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -30439,7 +30439,7 @@ module.exports = containsNode;
* @typechecks
*/
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* Convert array-like objects to arrays.
@@ -30577,7 +30577,7 @@ var ExecutionEnvironment = __webpack_require__(21);
var createArrayFromMixed = __webpack_require__(525);
var getMarkupWrap = __webpack_require__(527);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* Dummy container used to render all markup.
@@ -30663,7 +30663,7 @@ module.exports = createNodesFromMarkup;
var ExecutionEnvironment = __webpack_require__(21);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* Dummy container used to detect which wraps are necessary.
@@ -37690,7 +37690,7 @@ module.exports = forEach;
/***/ (function(module, exports, __webpack_require__) {
var mapping = __webpack_require__(692),
- fallbackHolder = __webpack_require__(17);
+ fallbackHolder = __webpack_require__(18);
/** Built-in value reference. */
var push = Array.prototype.push;
@@ -38660,7 +38660,7 @@ module.exports = {
var convert = __webpack_require__(19),
func = convert('compact', __webpack_require__(311), __webpack_require__(39));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -38671,7 +38671,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('curry', __webpack_require__(312));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -38682,7 +38682,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('eq', __webpack_require__(91));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -38693,7 +38693,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('get', __webpack_require__(72));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -38704,7 +38704,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('has', __webpack_require__(73));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -38715,7 +38715,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('isFunction', __webpack_require__(60), __webpack_require__(39));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -38726,7 +38726,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('isObject', __webpack_require__(26), __webpack_require__(39));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -38737,7 +38737,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('isPlainObject', __webpack_require__(127), __webpack_require__(39));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -38748,7 +38748,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('keys', __webpack_require__(29), __webpack_require__(39));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -38759,7 +38759,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('map', __webpack_require__(22));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -38770,7 +38770,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('min', __webpack_require__(716), __webpack_require__(39));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -38781,7 +38781,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('pick', __webpack_require__(131));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -38792,7 +38792,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('sortBy', __webpack_require__(721));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -38803,7 +38803,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('startsWith', __webpack_require__(327));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -38814,7 +38814,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('sum', __webpack_require__(724), __webpack_require__(39));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -38825,7 +38825,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('take', __webpack_require__(725));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -38836,7 +38836,7 @@ module.exports = func;
var convert = __webpack_require__(19),
func = convert('values', __webpack_require__(195), __webpack_require__(39));
-func.placeholder = __webpack_require__(17);
+func.placeholder = __webpack_require__(18);
module.exports = func;
@@ -40551,7 +40551,7 @@ var camelizeStyleName = __webpack_require__(523);
var dangerousStyleValue = __webpack_require__(794);
var hyphenateStyleName = __webpack_require__(530);
var memoizeStringOnly = __webpack_require__(533);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var processStyleName = memoizeStringOnly(function (styleName) {
return hyphenateStyleName(styleName);
@@ -41090,7 +41090,7 @@ var ExecutionEnvironment = __webpack_require__(21);
var createNodesFromMarkup = __webpack_require__(526);
var emptyFunction = __webpack_require__(31);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
var Danger = {
@@ -41595,7 +41595,7 @@ var instantiateReactComponent = __webpack_require__(348);
var KeyEscapeUtils = __webpack_require__(200);
var shouldUpdateReactComponent = __webpack_require__(210);
var traverseAllChildren = __webpack_require__(351);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var ReactComponentTreeHook;
@@ -41801,10 +41801,10 @@ if (true) {
}
var emptyObject = __webpack_require__(84);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
var shallowEqual = __webpack_require__(168);
var shouldUpdateReactComponent = __webpack_require__(210);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var CompositeTypes = {
ImpureClass: 0,
@@ -42703,7 +42703,7 @@ var ReactVersion = __webpack_require__(778);
var findDOMNode = __webpack_require__(795);
var getHostComponentFromComposite = __webpack_require__(346);
var renderSubtreeIntoContainer = __webpack_require__(803);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
ReactDefaultInjection.inject();
@@ -42833,11 +42833,11 @@ var ReactServerRenderingTransaction = __webpack_require__(776);
var emptyFunction = __webpack_require__(31);
var escapeTextContentForBrowser = __webpack_require__(137);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
var isEventSupported = __webpack_require__(209);
var shallowEqual = __webpack_require__(168);
var validateDOMNesting = __webpack_require__(211);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var Flags = ReactDOMComponentFlags;
var deleteListener = EventPluginHub.deleteListener;
@@ -43987,8 +43987,8 @@ var LinkedValueUtils = __webpack_require__(201);
var ReactDOMComponentTree = __webpack_require__(20);
var ReactUpdates = __webpack_require__(36);
-var invariant = __webpack_require__(6);
-var warning = __webpack_require__(7);
+var invariant = __webpack_require__(7);
+var warning = __webpack_require__(8);
var didWarnValueLink = false;
var didWarnCheckedLink = false;
@@ -44265,7 +44265,7 @@ module.exports = ReactDOMInput;
var DOMProperty = __webpack_require__(54);
var ReactComponentTreeHook = __webpack_require__(27);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var warnedProperties = {};
var rARIA = new RegExp('^(aria)-[' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$');
@@ -44362,7 +44362,7 @@ module.exports = ReactDOMInvalidARIAHook;
var ReactComponentTreeHook = __webpack_require__(27);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var didWarnValueNull = false;
@@ -44414,7 +44414,7 @@ var React = __webpack_require__(77);
var ReactDOMComponentTree = __webpack_require__(20);
var ReactDOMSelect = __webpack_require__(335);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var didWarnInvalidOptionChildren = false;
function flattenChildren(children) {
@@ -44761,7 +44761,7 @@ var DOMLazyTree = __webpack_require__(75);
var ReactDOMComponentTree = __webpack_require__(20);
var escapeTextContentForBrowser = __webpack_require__(137);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
var validateDOMNesting = __webpack_require__(211);
/**
@@ -44929,8 +44929,8 @@ var LinkedValueUtils = __webpack_require__(201);
var ReactDOMComponentTree = __webpack_require__(20);
var ReactUpdates = __webpack_require__(36);
-var invariant = __webpack_require__(6);
-var warning = __webpack_require__(7);
+var invariant = __webpack_require__(7);
+var warning = __webpack_require__(8);
var didWarnValueLink = false;
var didWarnValDefaultVal = false;
@@ -45089,7 +45089,7 @@ module.exports = ReactDOMTextarea;
var _prodInvariant = __webpack_require__(9);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* Return the lowest common ancestor of A and B, or null if they are in
@@ -45232,7 +45232,7 @@ var DOMProperty = __webpack_require__(54);
var EventPluginRegistry = __webpack_require__(133);
var ReactComponentTreeHook = __webpack_require__(27);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
if (true) {
var reactProps = {
@@ -45352,7 +45352,7 @@ var ReactComponentTreeHook = __webpack_require__(27);
var ExecutionEnvironment = __webpack_require__(21);
var performanceNow = __webpack_require__(535);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var hooks = [];
var didHookThrowForEvent = {};
@@ -46177,7 +46177,7 @@ module.exports = ReactInjection;
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
if (true) {
var processingChildContext = false;
@@ -46285,7 +46285,7 @@ var ReactChildReconciler = __webpack_require__(743);
var emptyFunction = __webpack_require__(31);
var flattenChildren = __webpack_require__(796);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* Make an update for markup to be rendered and inserted at a supplied index.
@@ -46731,7 +46731,7 @@ module.exports = ReactMultiChild;
var _prodInvariant = __webpack_require__(9);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* @param {?object} object
@@ -47234,7 +47234,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
var ReactUpdateQueue = __webpack_require__(204);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
function warnNoop(publicInstance, callerName) {
if (true) {
@@ -47915,7 +47915,7 @@ var SyntheticWheelEvent = __webpack_require__(791);
var emptyFunction = __webpack_require__(31);
var getEventCharCode = __webpack_require__(206);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* Turns
@@ -48676,8 +48676,8 @@ var _prodInvariant = __webpack_require__(9);
var ReactPropTypeLocationNames = __webpack_require__(773);
var ReactPropTypesSecret = __webpack_require__(342);
-var invariant = __webpack_require__(6);
-var warning = __webpack_require__(7);
+var invariant = __webpack_require__(7);
+var warning = __webpack_require__(8);
var ReactComponentTreeHook;
@@ -48765,7 +48765,7 @@ module.exports = checkReactTypeSpec;
var CSSProperty = __webpack_require__(331);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var isUnitlessNumber = CSSProperty.isUnitlessNumber;
var styleWarnings = {};
@@ -48855,8 +48855,8 @@ var ReactDOMComponentTree = __webpack_require__(20);
var ReactInstanceMap = __webpack_require__(96);
var getHostComponentFromComposite = __webpack_require__(346);
-var invariant = __webpack_require__(6);
-var warning = __webpack_require__(7);
+var invariant = __webpack_require__(7);
+var warning = __webpack_require__(8);
/**
* Returns the DOM node rendered by this element.
@@ -48916,7 +48916,7 @@ module.exports = findDOMNode;
var KeyEscapeUtils = __webpack_require__(200);
var traverseAllChildren = __webpack_require__(351);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var ReactComponentTreeHook;
@@ -49950,7 +49950,7 @@ module.exports = KeyEscapeUtils;
var _prodInvariant = __webpack_require__(64);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* Static poolers. Several custom versions for each potential number of
@@ -50269,8 +50269,8 @@ var ReactPropTypeLocationNames = __webpack_require__(215);
var ReactNoopUpdateQueue = __webpack_require__(214);
var emptyObject = __webpack_require__(84);
-var invariant = __webpack_require__(6);
-var warning = __webpack_require__(7);
+var invariant = __webpack_require__(7);
+var warning = __webpack_require__(8);
var MIXINS_KEY = 'mixins';
@@ -51163,7 +51163,7 @@ var ReactPropTypesSecret = __webpack_require__(360);
var emptyFunction = __webpack_require__(31);
var getIteratorFn = __webpack_require__(217);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
/**
* Collection of methods that allow declaration and validation of props that are
@@ -51667,8 +51667,8 @@ var _prodInvariant = __webpack_require__(64);
var ReactPropTypeLocationNames = __webpack_require__(215);
var ReactPropTypesSecret = __webpack_require__(360);
-var invariant = __webpack_require__(6);
-var warning = __webpack_require__(7);
+var invariant = __webpack_require__(7);
+var warning = __webpack_require__(8);
var ReactComponentTreeHook;
@@ -51758,7 +51758,7 @@ var _prodInvariant = __webpack_require__(64);
var ReactElement = __webpack_require__(63);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
/**
* Returns the first child in a collection of children and verifies that there
@@ -51804,9 +51804,9 @@ var ReactCurrentOwner = __webpack_require__(37);
var REACT_ELEMENT_TYPE = __webpack_require__(358);
var getIteratorFn = __webpack_require__(217);
-var invariant = __webpack_require__(6);
+var invariant = __webpack_require__(7);
var KeyEscapeUtils = __webpack_require__(816);
-var warning = __webpack_require__(7);
+var warning = __webpack_require__(8);
var SEPARATOR = '.';
var SUBSEPARATOR = ':';
@@ -62127,9 +62127,9 @@ var _i18next = __webpack_require__(456);
var _i18next2 = _interopRequireDefault(_i18next);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
-var _Form = __webpack_require__(1097);
+var _Form = __webpack_require__(1099);
var _Form2 = _interopRequireDefault(_Form);
@@ -62137,7 +62137,7 @@ var _DialogControl = __webpack_require__(460);
var _DialogControl2 = _interopRequireDefault(_DialogControl);
-var _actions = __webpack_require__(18);
+var _actions = __webpack_require__(17);
var _reactRedux = __webpack_require__(24);
@@ -62334,7 +62334,9 @@ exports.default = (0, _reactRedux.connect)()(Root);
/* 1094 */,
/* 1095 */,
/* 1096 */,
-/* 1097 */
+/* 1097 */,
+/* 1098 */,
+/* 1099 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -62348,7 +62350,7 @@ var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
-var _semanticUiReact = __webpack_require__(8);
+var _semanticUiReact = __webpack_require__(6);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -62390,8 +62392,6 @@ var loginForm = function loginForm(_ref) {
exports.default = loginForm;
/***/ }),
-/* 1098 */,
-/* 1099 */,
/* 1100 */,
/* 1101 */,
/* 1102 */,
@@ -62446,7 +62446,9 @@ exports.default = loginForm;
/* 1151 */,
/* 1152 */,
/* 1153 */,
-/* 1154 */
+/* 1154 */,
+/* 1155 */,
+/* 1156 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
diff --git a/src/components/AdminPage/ActionLinkAddN/ActionList/ListItem.js b/src/components/AdminPage/ActionLinkAddN/ActionList/ListItem.js
new file mode 100644
index 0000000..6862ac6
--- /dev/null
+++ b/src/components/AdminPage/ActionLinkAddN/ActionList/ListItem.js
@@ -0,0 +1,17 @@
+import React from 'react';
+import {List, Label, Button} from 'semantic-ui-react';
+
+const ListItem = ({ i18n, data, idx, removeAction }) => {
+
+ return (
+
+ {
+ list.map((t,idx) => (
+
+