-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 17.3 KB
/
.eslintcache
1
[{"C:\\Users\\chint\\Desktop\\newRoboticHand\\robotichand\\src\\index.js":"1","C:\\Users\\chint\\Desktop\\newRoboticHand\\robotichand\\src\\App.js":"2","C:\\Users\\chint\\Desktop\\newRoboticHand\\robotichand\\src\\reportWebVitals.js":"3","C:\\Users\\chint\\Desktop\\newRoboticHand\\robotichand\\src\\Components\\Control\\Control.js":"4","C:\\Users\\chint\\Desktop\\newRoboticHand\\robotichand\\src\\Components\\SelfieCapture\\SelfieCapture.js":"5","C:\\Users\\chint\\Desktop\\newRoboticHand\\robotichand\\src\\Components\\Toolbar\\Toolbar.js":"6"},{"size":499,"mtime":1607835674047,"results":"7","hashOfConfig":"8"},{"size":4222,"mtime":1607850199474,"results":"9","hashOfConfig":"8"},{"size":362,"mtime":499162500000,"results":"10","hashOfConfig":"8"},{"size":3305,"mtime":1607850977420,"results":"11","hashOfConfig":"8"},{"size":2751,"mtime":1607841403149,"results":"12","hashOfConfig":"8"},{"size":380,"mtime":1607835147828,"results":"13","hashOfConfig":"8"},{"filePath":"14","messages":"15","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"16"},"1mza687",{"filePath":"17","messages":"18","errorCount":0,"warningCount":8,"fixableErrorCount":0,"fixableWarningCount":0,"source":"19","usedDeprecatedRules":"16"},{"filePath":"20","messages":"21","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"16"},{"filePath":"22","messages":"23","errorCount":0,"warningCount":26,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"24","messages":"25","errorCount":0,"warningCount":11,"fixableErrorCount":0,"fixableWarningCount":0,"source":"26","usedDeprecatedRules":"16"},{"filePath":"27","messages":"28","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"29","usedDeprecatedRules":"16"},"C:\\Users\\chint\\Desktop\\newRoboticHand\\robotichand\\src\\index.js",[],["30","31"],"C:\\Users\\chint\\Desktop\\newRoboticHand\\robotichand\\src\\App.js",["32","33","34","35","36","37","38","39"],"import classes from \"./App.module.css\";\nimport React, { Component, useEffect, useState } from \"react\";\nimport SpeechRecognition from 'react-speech-recognition';\nimport Control from \"./Components/Control/Control\";\nimport Toolbar from \"./Components/Toolbar/Toolbar\"\nimport SelfieCapture from \"./Components/SelfieCapture/SelfieCapture\";\nimport { BrowserRouter, Route, Link } from \"react-router-dom\";\nclass App extends Component {\n state = {\n characteristic: null,\n transcript: null,\n };\n\n //connecting to the selected device!\n connect = (device) => {\n //connecting to the gatt server of the device that has been selected!\n device.gatt\n .connect()\n .then((gattServer) => {\n //fetching the service with 0xFFE0 id\n return gattServer.getPrimaryService(0xffe0);\n })\n .then((service) => {\n\t\t\t\tconsole.log(service)\n //fetching the characteristic 0xFFE1 of the service\n return service.getCharacteristic(0xffe1);\n })\n .then((characteristic) => {\n\t\t\t\tconsole.log(characteristic)\n this.setState({ characteristic });\n console.log(\"characteristic received!\");\n })\n .catch((e) => {\n console.log(e);\n });\n };\n componentDidMount = () => {\n\t\tconsole.log(window.navigator.platform,\"window plattform\")\n //opens up the dialog box for available devices\n if (\"speechSynthesis\" in window) {\n\t\t\t//this gives the recognition object!!!\n const recognition = SpeechRecognition.getRecognition({cancelBubble:true})\n recognition.continuous = true;\n\n // recognition.continuous = false;\n recognition.start();\n console.log(\"STARTED\");\t\n recognition.onstart = () => {\n console.log(\"started the service\");\n\t\t\t};\n\n recognition.lang = \"en-IN\";\n let i = 0;\n let transcript;\n recognition.onresult = (e) => {\n\t\t\t\tif(e.results[e.resultIndex].isFinal===true){\n transcript =e.results[e.resultIndex][0].transcript;\n\t\t\t\tconsole.log(transcript)\n\t\t\t\tthis.setState({transcript})\n\t\t\t};\n\t\t\t\n\t\t\t//check for the \n\t\t\tif(window.navigator.platform=='Android' || window.navigator.platform=='iPhone' || \n\t\t\twindow.navigator.platform=='iPod' ||window.navigator.platform=='iPad'){\n\t\t\t\trecognition.onend = function() {\n\t\t\t setTimeout(()=>{\n\t\t\t\tconsole.info(\"voice recognition ended, restarting...\");\n\t\t\t\tconsole.log(recognition.continuous)\n\t\t\t\trecognition.start();\n\t\t\t },5000)\n\t\t\t}\n\t\t\t}\n\n\t\t\t\t}\n } else {\n console.log(\"not supported\");\n }\n };\n\n //clicking handler!\n clicked = () => {\n navigator.geolocation.getCurrentPosition((p) => console.log(p));\n\n navigator.bluetooth\n .requestDevice({\n filters: [{ services: [0xffe0] }],\n })\n .then((device) => {\n device.addEventListener(\"gattserverdisconnected\", (e) => {\n console.log(\"disconeected!!\");\n this.connect(device);\n });\n this.connect(device);\n })\n .catch((e) => {\n //can add the exception component!!\n console.log(\"helllo\")\n console.log(e);\n });\n };\n render() {\n return (\n <BrowserRouter basename=\"https://vishal-1408.github.io/RoboticHand-HackOff-v3.0-\">\n <div className={classes.App}>\n <Toolbar></Toolbar> \n <div className={classes.Content}>\n <button className={classes.Button} onClick={this.clicked}>\n {this.state.characteristic ? \"Disconnect\" : \"Connect\"}\n </button>\n\t\t\t\t<Route path=\"/\" exact render={(props)=><Control {...props} transcript={this.state.transcript} char={this.state.characteristic}/>}></Route>\n <Route path=\"/camera\" render={(props)=><SelfieCapture {...props} transcript={this.state.transcript}/>}/>\n </div>\n </div>\n </BrowserRouter>\n );\n }\n}\n\nexport default App;\n","C:\\Users\\chint\\Desktop\\newRoboticHand\\robotichand\\src\\reportWebVitals.js",[],"C:\\Users\\chint\\Desktop\\newRoboticHand\\robotichand\\src\\Components\\Control\\Control.js",["40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","65"],"C:\\Users\\chint\\Desktop\\newRoboticHand\\robotichand\\src\\Components\\SelfieCapture\\SelfieCapture.js",["66","67","68","69","70","71","72","73","74","75","76"],"import classes from './SelfieCapture.module.css';\r\nimport { render } from '@testing-library/react';\r\nimport React, { useEffect ,createRef,useState, Component} from 'react';\r\n\r\n\r\n\r\nclass SelfieCapture extends Component{\r\n state ={\r\n capture:null\r\n }\r\n\r\n video=React.createRef();\r\n imgRef =React.createRef();\r\n\r\n shouldComponentUpdate(nextProps,nextState){\r\n return true\r\n }\r\n componentDidMount(){\r\n navigator.mediaDevices.getUserMedia({video: {zoom:true}})\r\n .then((mediaStream)=>{\r\n // setSrc({src:mediaStream})\r\n this.video.current.srcObject=mediaStream;\r\n // this.setState({video:true});\r\n //outpoutting the stream to video tag which has autoplay attribute!\r\n const mediaStreamTrack = mediaStream.getVideoTracks()[0];\r\n let Capture = new ImageCapture(mediaStreamTrack);\r\n this.setState({capture:Capture});\r\n //Capture object used to do anything with poictures!!!even zooming in etc!!!\r\n })\r\n .catch(error => console.error('getUserMedia() error:', error));\r\n }\r\n\r\n saved=()=>{\r\n this.imgRef.current.parentNode.click();\r\n \r\n }\r\n // componentDidUpdate(oldProps,oldState){\r\n // console.log(\"updated\",oldProps,oldState)\r\n // }\r\n CapturePhoto=()=>{\r\n this.state.capture.takePhoto()\r\n .then(blob => {\r\n //obtaining the url\r\n this.imgRef.current.src=URL.createObjectURL(blob);\r\n this.imgRef.current.parentNode.href=URL.createObjectURL(blob);\r\n })\r\n .catch(error => console.error('takePhoto() error:', error));\r\n } \r\n\r\n\r\n\r\n\r\n render(){\r\n // this.j+=1;\r\n if(this.props.transcript!=null){\r\n if(this.props.transcript.indexOf(\"capture\")!=-1 || this.props.transcript.indexOf(\"image\")!=-1){\r\n this.CapturePhoto();\r\n }\r\n if(this.props.transcript.indexOf(\"save\")!=-1){\r\n setTimeout(()=>{\r\n this.saved()\r\n },300)\r\n }\r\n if(this.props.transcript.indexOf(\"go back\")!=-1 || this.props.transcript.indexOf(\"back\")!=-1){\r\n \r\n this.props.history.push(\"/\")\r\n }\r\n \r\n }\r\n return(\r\n <React.Fragment>\r\n {<video autoPlay ref={this.video} className={classes.Video}\r\n ></video>}\r\n <div>\r\n Things you can say:\r\n <ul>\r\n <li>Capture: take a picture</li>\r\n <li>Save : save the pickture taken!</li>\r\n <li>Go Back: for going back</li>\r\n </ul>\r\n </div>\r\n <h3>Preview: </h3>\r\n {<a download ><img ref={this.imgRef} className={classes.Img}/></a>}\r\n </React.Fragment>\r\n )\r\n }\r\n}\r\n\r\nexport default SelfieCapture;","C:\\Users\\chint\\Desktop\\newRoboticHand\\robotichand\\src\\Components\\Toolbar\\Toolbar.js",["77","78","79"],"import React from \"react\";\r\nimport classes from \"./Toolbar.module.css\"\r\nimport { BrowserRouter, Route, Link } from \"react-router-dom\";\r\n\r\nconst toolbar = (props)=>{\r\n return(\r\n <header className={classes.Header}>\r\n <Link to=\"/\">HOME</Link>\r\n <img />\r\n <Link to=\"/camera\">Camera</Link>\r\n </header>\r\n )\r\n}\r\n\r\nexport default toolbar;",{"ruleId":"80","replacedBy":"81"},{"ruleId":"82","replacedBy":"83"},{"ruleId":"84","severity":1,"message":"85","line":2,"column":28,"nodeType":"86","messageId":"87","endLine":2,"endColumn":37},{"ruleId":"84","severity":1,"message":"88","line":2,"column":39,"nodeType":"86","messageId":"87","endLine":2,"endColumn":47},{"ruleId":"84","severity":1,"message":"89","line":7,"column":32,"nodeType":"86","messageId":"87","endLine":7,"endColumn":36},{"ruleId":"84","severity":1,"message":"90","line":53,"column":17,"nodeType":"86","messageId":"87","endLine":53,"endColumn":18},{"ruleId":"91","severity":1,"message":"92","line":63,"column":32,"nodeType":"93","messageId":"94","endLine":63,"endColumn":34},{"ruleId":"91","severity":1,"message":"92","line":63,"column":72,"nodeType":"93","messageId":"94","endLine":63,"endColumn":74},{"ruleId":"91","severity":1,"message":"92","line":64,"column":29,"nodeType":"93","messageId":"94","endLine":64,"endColumn":31},{"ruleId":"91","severity":1,"message":"92","line":64,"column":65,"nodeType":"93","messageId":"94","endLine":64,"endColumn":67},{"ruleId":"84","severity":1,"message":"95","line":3,"column":10,"nodeType":"86","messageId":"87","endLine":3,"endColumn":18},{"ruleId":"91","severity":1,"message":"96","line":8,"column":36,"nodeType":"93","messageId":"94","endLine":8,"endColumn":38},{"ruleId":"91","severity":1,"message":"96","line":12,"column":43,"nodeType":"93","messageId":"94","endLine":12,"endColumn":45},{"ruleId":"91","severity":1,"message":"96","line":12,"column":86,"nodeType":"93","messageId":"94","endLine":12,"endColumn":88},{"ruleId":"91","severity":1,"message":"96","line":15,"column":37,"nodeType":"93","messageId":"94","endLine":15,"endColumn":39},{"ruleId":"91","severity":1,"message":"96","line":15,"column":75,"nodeType":"93","messageId":"94","endLine":15,"endColumn":77},{"ruleId":"91","severity":1,"message":"96","line":19,"column":35,"nodeType":"93","messageId":"94","endLine":19,"endColumn":37},{"ruleId":"91","severity":1,"message":"96","line":24,"column":38,"nodeType":"93","messageId":"94","endLine":24,"endColumn":40},{"ruleId":"91","severity":1,"message":"96","line":28,"column":37,"nodeType":"93","messageId":"94","endLine":28,"endColumn":39},{"ruleId":"91","severity":1,"message":"96","line":32,"column":36,"nodeType":"93","messageId":"94","endLine":32,"endColumn":38},{"ruleId":"91","severity":1,"message":"96","line":37,"column":36,"nodeType":"93","messageId":"94","endLine":37,"endColumn":38},{"ruleId":"91","severity":1,"message":"96","line":38,"column":35,"nodeType":"93","messageId":"94","endLine":38,"endColumn":37},{"ruleId":"91","severity":1,"message":"96","line":39,"column":36,"nodeType":"93","messageId":"94","endLine":39,"endColumn":38},{"ruleId":"91","severity":1,"message":"96","line":44,"column":38,"nodeType":"93","messageId":"94","endLine":44,"endColumn":40},{"ruleId":"91","severity":1,"message":"96","line":49,"column":33,"nodeType":"93","messageId":"94","endLine":49,"endColumn":35},{"ruleId":"91","severity":1,"message":"96","line":50,"column":35,"nodeType":"93","messageId":"94","endLine":50,"endColumn":37},{"ruleId":"91","severity":1,"message":"96","line":56,"column":33,"nodeType":"93","messageId":"94","endLine":56,"endColumn":35},{"ruleId":"91","severity":1,"message":"96","line":57,"column":34,"nodeType":"93","messageId":"94","endLine":57,"endColumn":36},{"ruleId":"91","severity":1,"message":"96","line":58,"column":34,"nodeType":"93","messageId":"94","endLine":58,"endColumn":36},{"ruleId":"91","severity":1,"message":"96","line":64,"column":37,"nodeType":"93","messageId":"94","endLine":64,"endColumn":39},{"ruleId":"91","severity":1,"message":"96","line":65,"column":33,"nodeType":"93","messageId":"94","endLine":65,"endColumn":35},{"ruleId":"91","severity":1,"message":"96","line":71,"column":36,"nodeType":"93","messageId":"94","endLine":71,"endColumn":38},{"ruleId":"91","severity":1,"message":"96","line":72,"column":33,"nodeType":"93","messageId":"94","endLine":72,"endColumn":35},{"ruleId":"91","severity":1,"message":"96","line":78,"column":36,"nodeType":"93","messageId":"94","endLine":78,"endColumn":38},{"ruleId":"91","severity":1,"message":"96","line":79,"column":33,"nodeType":"93","messageId":"94","endLine":79,"endColumn":35},{"ruleId":"97","severity":1,"message":"98","line":107,"column":13,"nodeType":"99","endLine":107,"endColumn":56},{"ruleId":"84","severity":1,"message":"100","line":2,"column":10,"nodeType":"86","messageId":"87","endLine":2,"endColumn":16},{"ruleId":"84","severity":1,"message":"85","line":3,"column":17,"nodeType":"86","messageId":"87","endLine":3,"endColumn":26},{"ruleId":"84","severity":1,"message":"101","line":3,"column":28,"nodeType":"86","messageId":"87","endLine":3,"endColumn":37},{"ruleId":"84","severity":1,"message":"88","line":3,"column":38,"nodeType":"86","messageId":"87","endLine":3,"endColumn":46},{"ruleId":"91","severity":1,"message":"96","line":56,"column":50,"nodeType":"93","messageId":"94","endLine":56,"endColumn":52},{"ruleId":"91","severity":1,"message":"96","line":56,"column":96,"nodeType":"93","messageId":"94","endLine":56,"endColumn":98},{"ruleId":"91","severity":1,"message":"96","line":59,"column":49,"nodeType":"93","messageId":"94","endLine":59,"endColumn":51},{"ruleId":"91","severity":1,"message":"96","line":64,"column":52,"nodeType":"93","messageId":"94","endLine":64,"endColumn":54},{"ruleId":"91","severity":1,"message":"96","line":64,"column":97,"nodeType":"93","messageId":"94","endLine":64,"endColumn":99},{"ruleId":"102","severity":1,"message":"103","line":83,"column":11,"nodeType":"99","endLine":83,"endColumn":24},{"ruleId":"97","severity":1,"message":"98","line":83,"column":24,"nodeType":"99","endLine":83,"endColumn":72},{"ruleId":"84","severity":1,"message":"104","line":3,"column":10,"nodeType":"86","messageId":"87","endLine":3,"endColumn":23},{"ruleId":"84","severity":1,"message":"105","line":3,"column":25,"nodeType":"86","messageId":"87","endLine":3,"endColumn":30},{"ruleId":"97","severity":1,"message":"98","line":9,"column":12,"nodeType":"99","endLine":9,"endColumn":19},"no-native-reassign",["106"],"no-negated-in-lhs",["107"],"no-unused-vars","'useEffect' is defined but never used.","Identifier","unusedVar","'useState' is defined but never used.","'Link' is defined but never used.","'i' is assigned a value but never used.","eqeqeq","Expected '===' and instead saw '=='.","BinaryExpression","unexpected","'Redirect' is defined but never used.","Expected '!==' and instead saw '!='.","jsx-a11y/alt-text","img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.","JSXOpeningElement","'render' is defined but never used.","'createRef' is defined but never used.","jsx-a11y/anchor-is-valid","The href attribute is required for an anchor to be keyboard accessible. Provide a valid, navigable address as the href value. If you cannot provide an 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","'BrowserRouter' is defined but never used.","'Route' is defined but never used.","no-global-assign","no-unsafe-negation"]