1 line
6.7 KiB
JSON
1 line
6.7 KiB
JSON
{"remainingRequest":"/var/www/html/payroll_manager/front-end/node_modules/thread-loader/dist/cjs.js??ref--4-2!/var/www/html/payroll_manager/front-end/node_modules/ts-loader/index.js??ref--4-3!/var/www/html/payroll_manager/front-end/node_modules/tslint-loader/index.js!/var/www/html/payroll_manager/front-end/src/main/webapp/app/modules/account/activate/activate.tsx","dependencies":[{"path":"/var/www/html/payroll_manager/front-end/src/main/webapp/app/modules/account/activate/activate.tsx","mtime":1533613271701},{"path":"/var/www/html/payroll_manager/front-end/node_modules/react-hot-loader/webpack.js","mtime":1505850161000},{"path":"/var/www/html/payroll_manager/front-end/node_modules/cache-loader/dist/cjs.js","mtime":0},{"path":"/var/www/html/payroll_manager/front-end/node_modules/thread-loader/dist/cjs.js","mtime":0},{"path":"/var/www/html/payroll_manager/front-end/node_modules/ts-loader/index.js","mtime":1530127508000},{"path":"/var/www/html/payroll_manager/front-end/node_modules/tslint-loader/index.js","mtime":1519899048000}],"contextDependencies":[],"result":["import * as tslib_1 from \"tslib\";\nimport React from 'react';\nimport { connect } from 'react-redux';\nimport { Link } from 'react-router-dom';\nimport { Row, Col, Alert } from 'reactstrap';\nimport { activateAction, reset } from './activate.reducer';\nvar successAlert = (React.createElement(Alert, { color: \"success\" },\n React.createElement(\"strong\", null, \"Your user account has been activated.\"),\n \" Please\",\n React.createElement(Link, { to: \"/login\", className: \"alert-link\" }, \"sign in\"),\n \".\"));\nvar failureAlert = (React.createElement(Alert, { color: \"danger\" },\n React.createElement(\"strong\", null, \"Your user could not be activated.\"),\n \" Please use the registration form to sign up.\"));\nvar ActivatePage = /** @class */ (function (_super) {\n tslib_1.__extends(ActivatePage, _super);\n function ActivatePage() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n ActivatePage.prototype.componentWillUnmount = function () {\n this.props.reset();\n };\n ActivatePage.prototype.componentDidMount = function () {\n var key = this.props.match.params.key;\n this.props.activateAction(key);\n };\n ActivatePage.prototype.render = function () {\n var _a = this.props, activationSuccess = _a.activationSuccess, activationFailure = _a.activationFailure;\n return (React.createElement(\"div\", null,\n React.createElement(Row, { className: \"justify-content-center\" },\n React.createElement(Col, { md: \"8\" },\n React.createElement(\"h1\", null, \"Activation\"),\n activationSuccess ? successAlert : undefined,\n activationFailure ? failureAlert : undefined))));\n };\n return ActivatePage;\n}(React.Component));\nexport { ActivatePage };\nvar mapStateToProps = function (_a) {\n var activate = _a.activate;\n return ({\n activationSuccess: activate.activationSuccess,\n activationFailure: activate.activationFailure\n });\n};\nvar mapDispatchToProps = { activateAction: activateAction, reset: reset };\nexport default connect(mapStateToProps, mapDispatchToProps)(ActivatePage);\n",{"version":3,"file":"/var/www/html/payroll_manager/front-end/src/main/webapp/app/modules/account/activate/activate.tsx","sourceRoot":"","sources":["/var/www/html/payroll_manager/front-end/node_modules/tslint-loader/index.js!/var/www/html/payroll_manager/front-end/src/main/webapp/app/modules/account/activate/activate.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,IAAI,EAAuB,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAG7C,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3D,IAAM,YAAY,GAAG,CACnB,oBAAC,KAAK,IAAC,KAAK,EAAC,SAAS;IACpB,4EAAsD;;IACtD,oBAAC,IAAI,IAAC,EAAE,EAAC,QAAQ,EAAC,SAAS,EAAC,YAAY,cAEjC;QACD,CACT,CAAC;AAEF,IAAM,YAAY,GAAG,CACnB,oBAAC,KAAK,IAAC,KAAK,EAAC,QAAQ;IACnB,wEAAkD;oDAC5C,CACT,CAAC;AAIF;IAAkC,wCAA+B;IAAjE;;IAyBA,CAAC;IAxBC,2CAAoB,GAApB;QACE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;IAED,wCAAiB,GAAjB;QACU,IAAA,iCAAG,CAA6B;QACxC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;IACjC,CAAC;IAED,6BAAM,GAAN;QACQ,IAAA,eAAqD,EAAnD,wCAAiB,EAAE,wCAAiB,CAAgB;QAE5D,OAAO,CACL;YACE,oBAAC,GAAG,IAAC,SAAS,EAAC,wBAAwB;gBACrC,oBAAC,GAAG,IAAC,EAAE,EAAC,GAAG;oBACT,6CAAmB;oBAClB,iBAAiB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS;oBAC5C,iBAAiB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CACzC,CACF,CACF,CACP,CAAC;IACJ,CAAC;IACH,mBAAC;AAAD,CAAC,AAzBD,CAAkC,KAAK,CAAC,SAAS,GAyBhD;;AAED,IAAM,eAAe,GAAG,UAAC,EAAwB;QAAtB,sBAAQ;IAAmB,OAAA,CAAC;QACrD,iBAAiB,EAAE,QAAQ,CAAC,iBAAiB;QAC7C,iBAAiB,EAAE,QAAQ,CAAC,iBAAiB;KAC9C,CAAC;AAHoD,CAGpD,CAAC;AAEH,IAAM,kBAAkB,GAAG,EAAE,cAAc,gBAAA,EAAE,KAAK,OAAA,EAAE,CAAC;AAKrD,eAAe,OAAO,CACpB,eAAe,EACf,kBAAkB,CACnB,CAAC,YAAY,CAAC,CAAC","sourcesContent":["import React from 'react';\nimport { connect } from 'react-redux';\nimport { Link, RouteComponentProps } from 'react-router-dom';\nimport { Row, Col, Alert } from 'reactstrap';\n\nimport { IRootState } from 'app/shared/reducers';\nimport { activateAction, reset } from './activate.reducer';\n\nconst successAlert = (\n <Alert color=\"success\">\n <strong>Your user account has been activated.</strong> Please\n <Link to=\"/login\" className=\"alert-link\">\n sign in\n </Link>.\n </Alert>\n);\n\nconst failureAlert = (\n <Alert color=\"danger\">\n <strong>Your user could not be activated.</strong> Please use the registration form to sign up.\n </Alert>\n);\n\nexport interface IActivateProps extends StateProps, DispatchProps, RouteComponentProps<{ key: any }> {}\n\nexport class ActivatePage extends React.Component<IActivateProps> {\n componentWillUnmount() {\n this.props.reset();\n }\n\n componentDidMount() {\n const { key } = this.props.match.params;\n this.props.activateAction(key);\n }\n\n render() {\n const { activationSuccess, activationFailure } = this.props;\n\n return (\n <div>\n <Row className=\"justify-content-center\">\n <Col md=\"8\">\n <h1>Activation</h1>\n {activationSuccess ? successAlert : undefined}\n {activationFailure ? failureAlert : undefined}\n </Col>\n </Row>\n </div>\n );\n }\n}\n\nconst mapStateToProps = ({ activate }: IRootState) => ({\n activationSuccess: activate.activationSuccess,\n activationFailure: activate.activationFailure\n});\n\nconst mapDispatchToProps = { activateAction, reset };\n\ntype StateProps = ReturnType<typeof mapStateToProps>;\ntype DispatchProps = typeof mapDispatchToProps;\n\nexport default connect(\n mapStateToProps,\n mapDispatchToProps\n)(ActivatePage);\n"]}]} |