25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 

1 satır
17 KiB

  1. {"ast":null,"code":"import _classCallCheck from \"/Users/michielcarman/Projects/React Access/ClientApp/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/Users/michielcarman/Projects/React Access/ClientApp/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _possibleConstructorReturn from \"/Users/michielcarman/Projects/React Access/ClientApp/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn\";\nimport _getPrototypeOf from \"/Users/michielcarman/Projects/React Access/ClientApp/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"/Users/michielcarman/Projects/React Access/ClientApp/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits\";\nvar _jsxFileName = \"/Users/michielcarman/Projects/React Access/ClientApp/src/containers/Manage/Users/UserEdit.tsx\";\nimport React, { Component } from 'react';\nimport { Card, CardBody, CardHeader, Col, Container, Row } from 'reactstrap';\nimport { EditUserData } from '../../../shared/components/mockdata/UsersMockData';\nimport FormGroup from '../../../shared/components/form/FormGroup';\nimport { Link } from 'react-router-dom';\n\nvar UserEdit = /*#__PURE__*/function (_Component) {\n _inherits(UserEdit, _Component);\n\n function UserEdit() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, UserEdit);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(UserEdit)).call.apply(_getPrototypeOf2, [this].concat(args)));\n _this.userData = EditUserData;\n return _this;\n }\n\n _createClass(UserEdit, [{\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(Container, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 15,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(Row, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 16,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(Col, {\n md: 12,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 17,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(\"h3\", {\n className: \"page-title\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 18,\n columnNumber: 25\n }\n }, \"Edit User\"))), /*#__PURE__*/React.createElement(Row, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 21,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(Col, {\n md: 12,\n lg: 12,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(Card, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 23,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(CardHeader, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(\"h4\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 33\n }\n }, \"User Information\")), /*#__PURE__*/React.createElement(CardBody, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 29\n }\n }, /*#__PURE__*/React.createElement(Row, {\n className: \"form\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 33\n }\n }, /*#__PURE__*/React.createElement(Col, {\n md: 6,\n lg: 6,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(FormGroup, {\n key: \"fg1\",\n inputType: \"text\",\n inputLabel: \"First Name\",\n inputClass: \"\",\n inputId: \"userfname\",\n defaultValue: this.userData.firstName,\n inputDisabled: false,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 41\n }\n }), /*#__PURE__*/React.createElement(FormGroup, {\n key: \"fg2\",\n inputType: \"text\",\n inputLabel: \"Last Name\",\n inputClass: \"\",\n inputId: \"lastName\",\n defaultValue: this.userData.lastName,\n inputDisabled: false,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 41\n }\n }), /*#__PURE__*/React.createElement(FormGroup, {\n key: \"fg3\",\n inputType: \"text\",\n inputLabel: \"username\",\n inputClass: \"\",\n inputId: \"username\",\n defaultValue: this.userData.username,\n inputDisabled: false,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 41\n }\n })), /*#__PURE__*/React.createElement(Col, {\n md: 6,\n lg: 6,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 37\n }\n }, /*#__PURE__*/React.createElement(FormGroup, {\n key: \"fg4\",\n inputType: \"email\",\n inputLabel: \"Email\",\n inputClass: \"\",\n inputId: \"email\",\n defaultValue: this.userData.email,\n inputDisabled: false,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 59,\n columnNumber: 41\n }\n }), /*#__PURE__*/React.createElement(FormGroup, {\n key: \"fg5\",\n inputType: \"text\",\n inputLabel: \"Account Privileges\",\n inputClass: \"\",\n inputId: \"roles\" //selectOpts={['Readonly', 'Writeaccess', 'Admin']}\n ,\n defaultValue: this.userData.privileges,\n inputDisabled: false,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 68,\n columnNumber: 41\n }\n }), /*#__PURE__*/React.createElement(FormGroup, {\n key: \"fg6\",\n inputType: \"select\",\n inputLabel: \"Account Status\",\n inputClass: \"\",\n inputId: \"status\",\n selectOpts: ['Active', 'Inactive'],\n defaultValue: this.userData.status,\n inputDisabled: false,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 79,\n columnNumber: 41\n }\n }))))), /*#__PURE__*/React.createElement(\"button\", {\n className: \"btn btn-primary\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 95,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"i\", {\n className: \"fas fa-save fa-fw\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 95,\n columnNumber: 61\n }\n }), \" Save User\"), /*#__PURE__*/React.createElement(Link, {\n to: '/manage/users',\n className: \"btn btn-link red no-hover\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 96,\n columnNumber: 25\n }\n }, /*#__PURE__*/React.createElement(\"i\", {\n className: \"fas fa-times-circle fa-fw\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 96,\n columnNumber: 90\n }\n }), \" Cancel\"))));\n }\n }]);\n\n return UserEdit;\n}(Component);\n\nexport { UserEdit as default };","map":{"version":3,"sources":["/Users/michielcarman/Projects/React Access/ClientApp/src/containers/Manage/Users/UserEdit.tsx"],"names":["React","Component","Card","CardBody","CardHeader","Col","Container","Row","EditUserData","FormGroup","Link","UserEdit","userData","firstName","lastName","username","email","privileges","status"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,IAAT,EAAeC,QAAf,EAAyBC,UAAzB,EAAqCC,GAArC,EAA0CC,SAA1C,EAAqDC,GAArD,QAAgE,YAAhE;AACA,SAASC,YAAT,QAA6B,mDAA7B;AACA,OAAOC,SAAP,MAAsB,2CAAtB;AAEA,SAASC,IAAT,QAAqB,kBAArB;;IAGqBC,Q;;;;;;;;;;;;;;;UAEjBC,Q,GAAWJ,Y;;;;;;6BAEF;AACL,0BACI,oBAAC,SAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBACI,oBAAC,GAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAC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BAAC,SAAD;AACI,QAAA,GAAG,EAAC,KADR;AAEI,QAAA,SAAS,EAAC,QAFd;AAGI,QAAA,UAAU,EAAC,gBAHf;AAII,QAAA,UAAU,EAAC,EAJf;AAKI,QAAA,OAAO,EAAC,QALZ;AAMI,QAAA,UAAU,EAAE,CAAC,QAAD,EAAW,UAAX,CANhB;AAOI,QAAA,YAAY,EAAE,KAAKL,QAAL,CAAcM,MAPhC;AAQI,QAAA,aAAa,EAAE,KARnB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QArBJ,CA9BJ,CADJ,CAJJ,CADJ,eAyEI;AAAQ,QAAA,SAAS,EAAC,iBAAlB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAoC;AAAG,QAAA,SAAS,EAAC,mBAAb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAApC,eAzEJ,eA0EI,oBAAC,IAAD;AAAM,QAAA,EAAE,EAAE,eAAV;AAA2B,QAAA,SAAS,EAAC,2BAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAiE;AAAG,QAAA,SAAS,EAAC,2BAAb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAAjE,YA1EJ,CADJ,CANJ,CADJ;AAuFH;;;;EA5FiCjB,S;;SAAjBU,Q","sourcesContent":["import React, { Component } from 'react'\nimport { Card, CardBody, CardHeader, Col, Container, Row } from 'reactstrap'\nimport { EditUserData } from '../../../shared/components/mockdata/UsersMockData';\nimport FormGroup from '../../../shared/components/form/FormGroup';\nimport { SubmissionButtonsGroup } from '../../../shared/components/SubmissionButtonsGroup/SubmissionButtonsGroup';\nimport { Link } from 'react-router-dom';\n\n\nexport default class UserEdit extends Component {\n\n userData = EditUserData;\n\n render() {\n return (\n <Container>\n <Row>\n <Col md={12}>\n <h3 className=\"page-title\">Edit User</h3>\n </Col>\n </Row>\n <Row>\n <Col md={12} lg={12}>\n <Card>\n <CardHeader>\n <h4>User Information</h4>\n </CardHeader>\n <CardBody>\n <Row className='form'>\n <Col md={6} lg={6}>\n <FormGroup\n key='fg1'\n inputType='text'\n inputLabel='First Name'\n inputClass=''\n inputId='userfname'\n defaultValue={this.userData.firstName}\n inputDisabled={false}\n />\n <FormGroup\n key='fg2'\n inputType='text'\n inputLabel='Last Name'\n inputClass=''\n inputId='lastName'\n defaultValue={this.userData.lastName}\n inputDisabled={false}\n />\n <FormGroup\n key='fg3'\n inputType='text'\n inputLabel='username'\n inputClass=''\n inputId='username'\n defaultValue={this.userData.username}\n inputDisabled={false}\n />\n </Col>\n <Col md={6} lg={6}>\n <FormGroup\n key='fg4'\n inputType='email'\n inputLabel='Email'\n inputClass=''\n inputId='email'\n defaultValue={this.userData.email}\n inputDisabled={false}\n />\n <FormGroup\n key='fg5'\n inputType='text'\n inputLabel='Account Privileges'\n inputClass=''\n inputId='roles'\n //selectOpts={['Readonly', 'Writeaccess', 'Admin']}\n\n defaultValue={this.userData.privileges}\n inputDisabled={false}\n />\n <FormGroup\n key='fg6'\n inputType='select'\n inputLabel='Account Status'\n inputClass=''\n inputId='status'\n selectOpts={['Active', 'Inactive']}\n defaultValue={this.userData.status}\n inputDisabled={false}\n />\n </Col>\n </Row>\n\n </CardBody>\n </Card>\n\n <button className=\"btn btn-primary\"><i className=\"fas fa-save fa-fw\"></i> Save User</button>\n <Link to={'/manage/users'} className=\"btn btn-link red no-hover\"><i className=\"fas fa-times-circle fa-fw\"></i> Cancel</Link>\n </Col>\n </Row>\n </Container>\n )\n }\n}\n"]},"metadata":{},"sourceType":"module"}