1 line
14 KiB
JSON
1 line
14 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/register/register.tsx","dependencies":[{"path":"/var/www/html/payroll_manager/front-end/src/main/webapp/app/modules/account/register/register.tsx","mtime":1533613271821},{"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 { AvForm, AvField } from 'availity-reactstrap-validation';\nimport { Row, Col, Alert, Button } from 'reactstrap';\nimport PasswordStrengthBar from 'app/shared/layout/password/password-strength-bar';\nimport { handleRegister, reset } from './register.reducer';\nvar RegisterPage = /** @class */ (function (_super) {\n tslib_1.__extends(RegisterPage, _super);\n function RegisterPage() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.state = {\n password: ''\n };\n _this.handleValidSubmit = function (event, values) {\n _this.props.handleRegister(values.username, values.email, values.firstPassword);\n event.preventDefault();\n };\n _this.updatePassword = function (event) {\n _this.setState({ password: event.target.value });\n };\n return _this;\n }\n RegisterPage.prototype.componentWillUnmount = function () {\n this.props.reset();\n };\n RegisterPage.prototype.render = function () {\n return (React.createElement(\"div\", null,\n React.createElement(Row, { className: \"justify-content-center\" },\n React.createElement(Col, { md: \"8\" },\n React.createElement(\"h1\", { id: \"register-title\" }, \"Registration\"))),\n React.createElement(Row, { className: \"justify-content-center\" },\n React.createElement(Col, { md: \"8\" },\n React.createElement(AvForm, { id: \"register-form\", onValidSubmit: this.handleValidSubmit },\n React.createElement(AvField, { name: \"username\", label: \"Username\", placeholder: \"Your username\", validate: {\n required: { value: true, errorMessage: 'Your username is required.' },\n pattern: { value: '^[_.@A-Za-z0-9-]*$', errorMessage: 'Your username can only contain letters and digits.' },\n minLength: { value: 1, errorMessage: 'Your username is required to be at least 1 character.' },\n maxLength: { value: 50, errorMessage: 'Your username cannot be longer than 50 characters.' }\n } }),\n React.createElement(AvField, { name: \"email\", label: \"Email\", placeholder: \"Your email\", type: \"email\", validate: {\n required: { value: true, errorMessage: 'Your email is required.' },\n minLength: { value: 5, errorMessage: 'Your email is required to be at least 5 characters.' },\n maxLength: { value: 254, errorMessage: 'Your email cannot be longer than 50 characters.' }\n } }),\n React.createElement(AvField, { name: \"firstPassword\", label: \"New password\", placeholder: \"New password\", type: \"password\", onChange: this.updatePassword, validate: {\n required: { value: true, errorMessage: 'Your password is required.' },\n minLength: { value: 4, errorMessage: 'Your password is required to be at least 4 characters.' },\n maxLength: { value: 50, errorMessage: 'Your password cannot be longer than 50 characters.' }\n } }),\n React.createElement(PasswordStrengthBar, { password: this.state.password }),\n React.createElement(AvField, { name: \"secondPassword\", label: \"New password confirmation\", placeholder: \"Confirm the new password\", type: \"password\", validate: {\n required: { value: true, errorMessage: 'Your confirmation password is required.' },\n minLength: { value: 4, errorMessage: 'Your confirmation password is required to be at least 4 characters.' },\n maxLength: { value: 50, errorMessage: 'Your confirmation password cannot be longer than 50 characters.' },\n match: { value: 'firstPassword', errorMessage: 'The password and its confirmation do not match!' }\n } }),\n React.createElement(Button, { id: \"register-submit\", color: \"primary\", type: \"submit\" }, \"Register\")),\n React.createElement(\"p\", null, \"\\u00A0\"),\n React.createElement(Alert, { color: \"warning\" },\n React.createElement(\"span\", null, \"If you want to\"),\n React.createElement(\"a\", { className: \"alert-link\" }, \" sign in\"),\n React.createElement(\"span\", null,\n \", you can try the default accounts:\",\n React.createElement(\"br\", null),\n \"- Administrator (login=\\\"admin\\\" and password=\\\"admin\\\")\",\n React.createElement(\"br\", null),\n \"- User (login=\\\"user\\\" and password=\\\"user\\\").\"))))));\n };\n return RegisterPage;\n}(React.Component));\nexport { RegisterPage };\nvar mapDispatchToProps = { handleRegister: handleRegister, reset: reset };\nexport default connect(null, mapDispatchToProps)(RegisterPage);\n",{"version":3,"file":"/var/www/html/payroll_manager/front-end/src/main/webapp/app/modules/account/register/register.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/register/register.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAErD,OAAO,mBAAmB,MAAM,kDAAkD,CAAC;AAEnF,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAQ3D;IAAkC,wCAA+C;IAAjF;QAAA,qEA+FC;QA9FC,WAAK,GAAmB;YACtB,QAAQ,EAAE,EAAE;SACb,CAAC;QAMF,uBAAiB,GAAG,UAAC,KAAK,EAAE,MAAM;YAChC,KAAI,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC;YAC/E,KAAK,CAAC,cAAc,EAAE,CAAC;QACzB,CAAC,CAAC;QAEF,oBAAc,GAAG,UAAA,KAAK;YACpB,KAAI,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,MAAM,CAA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wBACtC;;4BAEE,+BAAM;;4BACN,+BAAM;6EACD,CACD,CACJ,CACF,CACF,CACP,CAAC;IACJ,CAAC;IACH,mBAAC;AAAD,CAAC,AA/FD,CAAkC,KAAK,CAAC,SAAS,GA+FhD;;AAED,IAAM,kBAAkB,GAAG,EAAE,cAAc,gBAAA,EAAE,KAAK,OAAA,EAAE,CAAC;AAGrD,eAAe,OAAO,CACpB,IAAI,EACJ,kBAAkB,CACnB,CAAC,YAAY,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { connect } from 'react-redux';\nimport { AvForm, AvField } from 'availity-reactstrap-validation';\nimport { Row, Col, Alert, Button } from 'reactstrap';\n\nimport PasswordStrengthBar from 'app/shared/layout/password/password-strength-bar';\nimport { IRootState } from 'app/shared/reducers';\nimport { handleRegister, reset } from './register.reducer';\n\nexport type IRegisterProps = DispatchProps;\n\nexport interface IRegisterState {\n password: string;\n}\n\nexport class RegisterPage extends React.Component<IRegisterProps, IRegisterState> {\n state: IRegisterState = {\n password: ''\n };\n\n componentWillUnmount() {\n this.props.reset();\n }\n\n handleValidSubmit = (event, values) => {\n this.props.handleRegister(values.username, values.email, values.firstPassword);\n event.preventDefault();\n };\n\n updatePassword = event => {\n this.setState({ password: event.target.value });\n };\n\n render() {\n return (\n <div>\n <Row className=\"justify-content-center\">\n <Col md=\"8\">\n <h1 id=\"register-title\">Registration</h1>\n </Col>\n </Row>\n <Row className=\"justify-content-center\">\n <Col md=\"8\">\n <AvForm id=\"register-form\" onValidSubmit={this.handleValidSubmit}>\n <AvField\n name=\"username\"\n label=\"Username\"\n placeholder=\"Your username\"\n validate={{\n required: { value: true, errorMessage: 'Your username is required.' },\n pattern: { value: '^[_.@A-Za-z0-9-]*$', errorMessage: 'Your username can only contain letters and digits.' },\n minLength: { value: 1, errorMessage: 'Your username is required to be at least 1 character.' },\n maxLength: { value: 50, errorMessage: 'Your username cannot be longer than 50 characters.' }\n }}\n />\n <AvField\n name=\"email\"\n label=\"Email\"\n placeholder=\"Your email\"\n type=\"email\"\n validate={{\n required: { value: true, errorMessage: 'Your email is required.' },\n minLength: { value: 5, errorMessage: 'Your email is required to be at least 5 characters.' },\n maxLength: { value: 254, errorMessage: 'Your email cannot be longer than 50 characters.' }\n }}\n />\n <AvField\n name=\"firstPassword\"\n label=\"New password\"\n placeholder=\"New password\"\n type=\"password\"\n onChange={this.updatePassword}\n validate={{\n required: { value: true, errorMessage: 'Your password is required.' },\n minLength: { value: 4, errorMessage: 'Your password is required to be at least 4 characters.' },\n maxLength: { value: 50, errorMessage: 'Your password cannot be longer than 50 characters.' }\n }}\n />\n <PasswordStrengthBar password={this.state.password} />\n <AvField\n name=\"secondPassword\"\n label=\"New password confirmation\"\n placeholder=\"Confirm the new password\"\n type=\"password\"\n validate={{\n required: { value: true, errorMessage: 'Your confirmation password is required.' },\n minLength: { value: 4, errorMessage: 'Your confirmation password is required to be at least 4 characters.' },\n maxLength: { value: 50, errorMessage: 'Your confirmation password cannot be longer than 50 characters.' },\n match: { value: 'firstPassword', errorMessage: 'The password and its confirmation do not match!' }\n }}\n />\n <Button id=\"register-submit\" color=\"primary\" type=\"submit\">\n Register\n </Button>\n </AvForm>\n <p> </p>\n <Alert color=\"warning\">\n <span>If you want to</span>\n <a className=\"alert-link\"> sign in</a>\n <span>\n , you can try the default accounts:\n <br />- Administrator (login=\"admin\" and password=\"admin\")\n <br />- User (login=\"user\" and password=\"user\").\n </span>\n </Alert>\n </Col>\n </Row>\n </div>\n );\n }\n}\n\nconst mapDispatchToProps = { handleRegister, reset };\ntype DispatchProps = typeof mapDispatchToProps;\n\nexport default connect(\n null,\n mapDispatchToProps\n)(RegisterPage);\n"]}]} |