-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 14.2 KB
/
.eslintcache
1
[{"C:\\Users\\urooj\\Documents\\New React Project\\my-app\\src\\App.js":"1","C:\\Users\\urooj\\Documents\\New React Project\\my-app\\src\\reportWebVitals.js":"2","C:\\Users\\urooj\\Documents\\New React Project\\my-app\\src\\index.js":"3","C:\\Users\\urooj\\Documents\\New React Project\\my-app\\src\\Form.js":"4","C:\\Users\\urooj\\Documents\\New React Project\\my-app\\src\\formDataComponent.js":"5"},{"size":2857,"mtime":1607390129325,"results":"6","hashOfConfig":"7"},{"size":362,"mtime":1607138716439,"results":"8","hashOfConfig":"7"},{"size":614,"mtime":1607401869819,"results":"9","hashOfConfig":"7"},{"size":0,"mtime":1607323425822,"results":"10","hashOfConfig":"7"},{"size":6959,"mtime":1607513920329,"results":"11","hashOfConfig":"7"},{"filePath":"12","messages":"13","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"14"},"1waoxh",{"filePath":"15","messages":"16","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"17","messages":"18","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"19"},{"filePath":"20","messages":"21","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"22","messages":"23","errorCount":0,"warningCount":8,"fixableErrorCount":0,"fixableWarningCount":0,"source":"24"},"C:\\Users\\urooj\\Documents\\New React Project\\my-app\\src\\App.js",["25","26"],"import React, { useState,useRef, Component } from \"react\";\nimport './App.css';\n\nimport '../node_modules/bootstrap/dist/css/bootstrap.min.css';\n\nimport FormComponent from \"./formDataComponent\";\n\n\n\nclass App extends Component\n{\n\n render(){\n\n return(\n \n<FormComponent />\n \n);\n\n}\n\n}\n\nexport default App ;\n\n\n\n\n\n// function App() {\n\n// const[cnic,setCnic]=useState(\"\");\n// const[name,setName]=useState(\"\");\n// const[age,setAge]=useState(\"\");\n\n\n// function head(){\n\n \n// return(\n \n// <h1>REGISTRATION FORM</h1>\n \n// );\n// }\n \n\n// const handleSubmit=()=>{\n// alert(\"What are you doing?\");\n\n// }\n\n\n// return(\n\n \n// <div className=\"RegistrationForm\" \n// style={{\n// display: \"flex\",\n// justifyContent: \"center\",\n// alignItems: \"center\",\n// backgroundColor: \"lightblue\"\n// }}>\n\n// <head/>\n// <form onSubmit={handleSubmit}>\n// <fieldset>\n// <label>\n// <p>NAME :</p>\n// <input name=\"name\" />\n// </label>\n \n\n\n// <label>\n// <p>CNIC :</p>\n// <input name=\"CNIC\"/> \n// </label>\n// <br/>\n \n// <label>\n// <p>AGE :</p>\n// <input name=\"AGE\"/>\n// </label>\n// <br/>\n\n\n// </fieldset>\n// <button type=\"submit\">Submit</button>\n// </form>\n\n// </div>\n\n\n// );\n// }\n\n\n\n\n\n// export default App;\n\n// import { Form, Input, Button, Checkbox } from 'antd';\n\n// const layout = {\n// labelCol: { span: 8 },\n// wrapperCol: { span: 16 },\n// };\n// const tailLayout = {\n// wrapperCol: { offset: 8, span: 16 },\n// };\n\n// const App = () => {\n// const onFinish = values => {\n// console.log('Success:', values);\n// };\n\n// const onFinishFailed = errorInfo => {\n// console.log('Failed:', errorInfo);\n// };\n\n// return (\n// <Form\n// {...layout}\n// name=\"basic\"\n// initialValues={{ remember: true }}\n// onFinish={onFinish}\n// onFinishFailed={onFinishFailed}\n// >\n// <Form.Item\n// label=\"Username\"\n// name=\"username\"\n// rules={[{ required: true, message: 'Please input your username!' }]}\n// >\n// <Input />\n// </Form.Item>\n\n// <Form.Item\n// label=\"Password\"\n// name=\"password\"\n// rules={[{ required: true, message: 'Please input your password!' }]}\n// >\n// <Input.Password />\n// </Form.Item>\n\n// <Form.Item {...tailLayout} name=\"remember\" valuePropName=\"checked\">\n// <Checkbox>Remember me</Checkbox>\n// </Form.Item>\n\n// <Form.Item {...tailLayout}>\n// <Button type=\"primary\" htmlType=\"submit\">\n// Submit\n// </Button>\n// </Form.Item>\n// </Form>\n// );\n// };\n\n// export default Demo;","C:\\Users\\urooj\\Documents\\New React Project\\my-app\\src\\reportWebVitals.js",[],"C:\\Users\\urooj\\Documents\\New React Project\\my-app\\src\\index.js",[],["27","28"],"C:\\Users\\urooj\\Documents\\New React Project\\my-app\\src\\Form.js",[],"C:\\Users\\urooj\\Documents\\New React Project\\my-app\\src\\formDataComponent.js",["29","30","31","32","33","34","35","36"],"import React,{Component} from 'react';\r\nimport '../node_modules/bootstrap/dist/css/bootstrap.min.css';\r\nimport logo1 from './logo1.png'\r\n\r\n// using ES6 modules\r\nimport { Router, Route, Switch } from \"react-router\";\r\n \r\n\r\n\r\nexport default class FormComponent extends Component{\r\n\r\n\r\n\r\n userData;\r\n \r\n\r\n constructor(props) {\r\n super(props);\r\n\r\n this.onChangeName = this.onChangeName.bind(this);\r\n this.onChangeCnic = this.onChangeCnic.bind(this);\r\n this.onChangePhone = this.onChangePhone.bind(this);\r\n this.onSubmit = this.onSubmit.bind(this);\r\n\r\n \r\n \r\n \r\n this.state = {\r\n name: '',\r\n cnic: '',\r\n phone: '',\r\n \r\n }\r\n }\r\n\r\n // Form Events\r\n onChangeName(e) {\r\n this.setState({ name : e.target.value })\r\n }\r\n\r\n onChangeCnic(e) {\r\n this.setState({ cnic : e.target.value })\r\n }\r\n\r\n onChangePhone(e) {\r\n this.setState({ phone : e.target.value })\r\n }\r\n\r\n onSubmit(e) {\r\n e.preventDefault()\r\n\r\n \r\n \r\n if (localStorage.getItem('user'+this.state.cnic)==null){\r\n\r\n localStorage.setItem('user' + this.state.cnic , JSON.stringify(this.state));\r\n this.userData=JSON.parse(localStorage.getItem('user' + this.state.cnic));\r\n \r\n alert(\"Your token no. is your cnic no. which is: \\\" \"+this.userData.cnic + \"\\\"\");\r\n\r\n window.open(\"https://secure.2checkout.com/checkout/buy?merchant=250632487395¤cy=PKR&tpl=default&prod=RLXGHZ76DS&qty=1\");\r\n }\r\n else \r\n alert(\"value already exists\");\r\n \r\n\r\n \r\n \r\n \r\n this.setState({\r\n name: '',\r\n cnic: '',\r\n phone: ''\r\n })\r\n }\r\n\r\n // React Life Cycle\r\n componentDidMount() {\r\n \r\n \r\n this.setState({\r\n name: '',\r\n cnic: '',\r\n phone: ''\r\n })\r\n \r\n \r\n }\r\n/*\r\n componentWillUpdate(nextProps, nextState) {\r\n localStorage.setItem('userInfo', JSON.stringify(nextState));\r\n }\r\n*/\r\n\r\n\r\n\r\nrender()\r\n{\r\n return(\r\n \r\n\r\n\r\n \r\n\r\n \r\n //complete container with header, body and footer\r\n <div classname=\"Compelete\"> \r\n\r\n {/*header of the page */ }\r\n\r\n<header class=\"jumbotron\" >\r\n \r\n <div class=\"containerHeader\" >\r\n <div class=\"row row-header\">\r\n <div class=\"row align-self-center\">\r\n <div class=\"col-2\" >\r\n <img src={logo1} >\r\n </img>\r\n </div>\r\n <div class=\"col-1\"></div>\r\n <div class=\"col-6\"> \r\n <p style={{fontSize:\"30px\",fontStyle:\"italic\"}}><b>WE CARE FOR YOUR COMFORT! <br></br> REGISTER YOURSELF FOR DRIVING TEST !! </b></p>\r\n </div>\r\n \r\n </div>\r\n </div>\r\n </div> \r\n </header>\r\n\r\n\r\n {/*body of the page*/}\r\n\r\n<body>\r\n\r\n<div class=\"row justify-content-center\">\r\n<h1 style={{fontSize:\"48px\",color:\"brown\"}}><b>REGISTRATION FORM </b></h1>\r\n\r\n</div>\r\n\r\n <div className=\"container col-6 col-sm-4\">\r\n <form onSubmit={this.onSubmit}>\r\n <div className=\"form-group\">\r\n <label>Name</label>\r\n <input type=\"text\" name=\"name\" value={this.state.name} autoComplete=\"off\" onChange={this.onChangeName} className=\"form-control\" />\r\n </div>\r\n <div className=\"form-group\">\r\n <label>CNIC NO.</label>\r\n <input type=\"number\" name=\"cnic\" value={this.state.cnic} autoComplete=\"off\" onChange={this.onChangeCnic} className=\"form-control\" />\r\n </div>\r\n <div className=\"form-group\">\r\n <label>Phone</label>\r\n <input type=\"tel\" name=\"phone\" value={this.state.phone} autoComplete=\"off\" onChange={this.onChangePhone} className=\"form-control\" />\r\n </div>\r\n <button type=\"submit\" class=\"btn btn-success btn-block\">Submit</button>\r\n </form>\r\n </div>\r\n\r\n\r\n <br></br>\r\n <br></br>\r\n <br></br>\r\n <br></br>\r\n\r\n\r\n</body>\r\n\r\n {/*footer of the page*/}\r\n\r\n <footer class=\"jumbotron\">\r\n <div class=\"container2\">\r\n <div class=\"row\"> \r\n <div class=\"col-4 offset-1 col-sm-2\">\r\n \r\n <h5>Links</h5>\r\n <ul class=\"list-unstyled\">\r\n <li><a href=\"#\">Home</a></li>\r\n <li><a href=\"#\">About</a></li>\r\n <li><a href=\"#\">Menu</a></li>\r\n <li><a href=\"#\">Contact</a></li>\r\n </ul>\r\n </div>\r\n <div class=\"col-7 col-sm-5\">\r\n <h5>Our Address</h5>\r\n <p>\r\n\t\t 121, Clear Water Bay Road<br></br>\r\n\t\t Clear Water Bay, Karachi,<br></br>\r\n\t\t PAKISTAN<br></br>\r\n <i class=\"fa fa-phone fa-lg\"></i>: +92 1234 5678<br></br>\r\n <i class=\"fa fa-fax fa-lg\"></i>: +92 8765 4321<br></br>\r\n <i class=\"fa fa-envelope fa-lg\"></i>:\r\n <a href=\"mailto:[email protected]\">[email protected]</a>\r\n\t\t </p>\r\n </div>\r\n {/* <div class=\"col-12 col-sm-4 align-self-center\">\r\n <div class=\"text-center\">\r\n <a class=\"btn btn-social-icon btn-google\" href=\"http://google.com/+\"><i class=\"fa fa-google-plus\"></i></a>\r\n <a class=\"btn btn-social-icon btn-facebook\" href=\"http://www.facebook.com/profile.php?id=\"><i class=\"fa fa-facebook\"></i></a>\r\n <a class=\"btn btn-social-icon btn-linkedin\" href=\"http://www.linkedin.com/in/\"><i class=\"fa fa-linkedin\"></i></a>\r\n <a class=\"btn btn-social-icon btn-twitter\" href=\"http://twitter.com/\"><i class=\"fa fa-twitter\"></i></a>\r\n <a class=\"btn btn-social-icon btn-google\" href=\"http://youtube.com/\"><i class=\"fa fa-youtube\"></i></a>\r\n <a class=\"btn btn-social-icon\" href=\"mailto:\"><i class=\"fa fa-envelope-o\"></i></a>\r\n </div>\r\n </div> */}\r\n </div>\r\n <div class=\"row justify-content-center\"> \r\n <div class=\"col-auto\">\r\n <p>© Copyright TRAFFIC POLICE DEPARTMENT</p>\r\n </div>\r\n </div>\r\n </div>\r\n </footer>\r\n\r\n </div>\r\n \r\n \r\n );\r\n\r\n\r\n}\r\n\r\n}\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n",{"ruleId":"37","severity":1,"message":"38","line":1,"column":17,"nodeType":"39","messageId":"40","endLine":1,"endColumn":25},{"ruleId":"37","severity":1,"message":"41","line":1,"column":26,"nodeType":"39","messageId":"40","endLine":1,"endColumn":32},{"ruleId":"42","replacedBy":"43"},{"ruleId":"44","replacedBy":"45"},{"ruleId":"37","severity":1,"message":"46","line":6,"column":10,"nodeType":"39","messageId":"40","endLine":6,"endColumn":16},{"ruleId":"37","severity":1,"message":"47","line":6,"column":18,"nodeType":"39","messageId":"40","endLine":6,"endColumn":23},{"ruleId":"37","severity":1,"message":"48","line":6,"column":25,"nodeType":"39","messageId":"40","endLine":6,"endColumn":31},{"ruleId":"49","severity":1,"message":"50","line":117,"column":21,"nodeType":"51","endLine":117,"endColumn":41},{"ruleId":"52","severity":1,"message":"53","line":176,"column":29,"nodeType":"51","endLine":176,"endColumn":41},{"ruleId":"52","severity":1,"message":"53","line":177,"column":29,"nodeType":"51","endLine":177,"endColumn":41},{"ruleId":"52","severity":1,"message":"53","line":178,"column":29,"nodeType":"51","endLine":178,"endColumn":41},{"ruleId":"52","severity":1,"message":"53","line":179,"column":29,"nodeType":"51","endLine":179,"endColumn":41},"no-unused-vars","'useState' is defined but never used.","Identifier","unusedVar","'useRef' is defined but never used.","no-native-reassign",["54"],"no-negated-in-lhs",["55"],"'Router' is defined but never used.","'Route' is defined but never used.","'Switch' is defined but never used.","jsx-a11y/alt-text","img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.","JSXOpeningElement","jsx-a11y/anchor-is-valid","The href attribute requires a valid value to be accessible. Provide a valid, navigable address as the href value. If you cannot provide a valid href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md","no-global-assign","no-unsafe-negation"]