-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 8.71 KB
/
.eslintcache
1
[{"C:\\Alon\\Projects\\alma-nodes\\src\\index.js":"1","C:\\Alon\\Projects\\alma-nodes\\src\\App.js":"2","C:\\Alon\\Projects\\alma-nodes\\src\\reportWebVitals.js":"3","C:\\Alon\\Projects\\alma-nodes\\src\\pages\\Map\\index.js":"4","C:\\Alon\\Projects\\alma-nodes\\src\\components\\Node\\index.js":"5","C:\\Alon\\Projects\\alma-nodes\\src\\pages\\Picture\\index.js":"6","C:\\Alon\\Projects\\alma-nodes\\src\\components\\Gallery\\index.js":"7","C:\\alon\\projects\\alma-nodes\\src\\index.js":"8","C:\\alon\\projects\\alma-nodes\\src\\reportWebVitals.js":"9","C:\\alon\\projects\\alma-nodes\\src\\App.js":"10","C:\\alon\\projects\\alma-nodes\\src\\pages\\Picture\\index.js":"11","C:\\alon\\projects\\alma-nodes\\src\\pages\\Map\\index.js":"12","C:\\alon\\projects\\alma-nodes\\src\\components\\Gallery\\index.js":"13","C:\\alon\\projects\\alma-nodes\\src\\components\\Node\\index.js":"14"},{"size":500,"mtime":499162500000,"results":"15","hashOfConfig":"16"},{"size":450,"mtime":1609608916450,"results":"17","hashOfConfig":"16"},{"size":362,"mtime":499162500000,"results":"18","hashOfConfig":"16"},{"size":342,"mtime":1609609050419,"results":"19","hashOfConfig":"16"},{"size":5547,"mtime":1609609996387,"results":"20","hashOfConfig":"16"},{"size":314,"mtime":1609594585725,"results":"21","hashOfConfig":"16"},{"size":3429,"mtime":1609607189196,"results":"22","hashOfConfig":"16"},{"size":500,"mtime":499162500000,"results":"23","hashOfConfig":"24"},{"size":362,"mtime":499162500000,"results":"25","hashOfConfig":"24"},{"size":450,"mtime":1609608916450,"results":"26","hashOfConfig":"24"},{"size":279,"mtime":1609703066218,"results":"27","hashOfConfig":"24"},{"size":363,"mtime":1609703003531,"results":"28","hashOfConfig":"24"},{"size":4780,"mtime":1609705961084,"results":"29","hashOfConfig":"24"},{"size":6548,"mtime":1609705842259,"results":"30","hashOfConfig":"24"},{"filePath":"31","messages":"32","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"33"},"16geva9",{"filePath":"34","messages":"35","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"36","messages":"37","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"33"},{"filePath":"38","messages":"39","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"40","messages":"41","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"42","messages":"43","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"44","messages":"45","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"46","usedDeprecatedRules":"33"},{"filePath":"47","messages":"48","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"49"},"lkmo9u",{"filePath":"50","messages":"51","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"49"},{"filePath":"52","messages":"53","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"49"},{"filePath":"54","messages":"55","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"56","messages":"57","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"58","messages":"59","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"60","messages":"61","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"C:\\Alon\\Projects\\alma-nodes\\src\\index.js",[],["62","63"],"C:\\Alon\\Projects\\alma-nodes\\src\\App.js",[],"C:\\Alon\\Projects\\alma-nodes\\src\\reportWebVitals.js",[],"C:\\Alon\\Projects\\alma-nodes\\src\\pages\\Map\\index.js",[],"C:\\Alon\\Projects\\alma-nodes\\src\\components\\Node\\index.js",[],"C:\\Alon\\Projects\\alma-nodes\\src\\pages\\Picture\\index.js",[],"C:\\Alon\\Projects\\alma-nodes\\src\\components\\Gallery\\index.js",["64"],"import React, {Component} from \"react\";\r\n\r\nimport './index.css';\r\nimport axios from \"axios\";\r\nimport {Link} from 'react-router-dom'\r\n\r\nclass Gallery extends Component {\r\n\r\n constructor(props) {\r\n super(props);\r\n\r\n\r\n this.state = {};\r\n\r\n console.log('image compon construc', props)\r\n console.log()\r\n }\r\n\r\n componentDidMount() {\r\n let imgUrl = window.location.search.replace('?path=', '');\r\n console.log(imgUrl) // this is Par1)\r\n\r\n let arr = imgUrl.split('/')\r\n let selectedImageLabel = arr[arr.length - 1]\r\n\r\n arr.pop()\r\n console.log(arr.join('/'))\r\n let url = 'http://18.203.83.17/public/explorePictures?path=' + arr.join('/')\r\n\r\n\r\n let config = {\r\n headers: {\r\n 'X-TOKEN': '2d4e69f4823176197ccf41caa5ee6456',\r\n }\r\n }\r\n\r\n axios.get(url, config)\r\n .then((res) => {\r\n console.log(res)\r\n if (res.status === 201) {\r\n let images = []\r\n\r\n for (let i = 0; i < res.data.data.children.length; i++) {\r\n if (res.data.data.children[i].type === 1) {\r\n images.push(res.data.data.children[i])\r\n }\r\n if (res.data.data.children[i].label === selectedImageLabel) {\r\n this.setState({selectedImage: res.data.data.children[i]})\r\n images.pop();\r\n }\r\n }\r\n\r\n this.setState({images: images}, () => console.log(this.state));\r\n }\r\n // this.setState(res.data)\r\n }).catch((e) => {\r\n alert('Error getting ima, please refresh to try again')\r\n })\r\n }\r\n\r\n setImageAsPrimary(label) {\r\n let images = this.state.images;\r\n\r\n for (let i = 0; i < images.length; i++) {\r\n if (images[i].label === label) {\r\n let image = images[i];\r\n\r\n images.splice(i, 1);\r\n images.push(this.state.selectedImage);\r\n\r\n this.setState({\r\n selectedImage: image,\r\n images: images\r\n })\r\n return;\r\n }\r\n }\r\n\r\n }\r\n\r\n render() {\r\n return (\r\n <div className={'gallery-container-outer'}>\r\n <div className={'gallery-container-inner'}>\r\n {\r\n this.state.selectedImage &&\r\n <div>\r\n <div className={'primary-image-container'}>\r\n <img src={this.state.selectedImage.url} className={'primary-image'} alt=\"\"/>\r\n </div>\r\n </div>\r\n }\r\n {\r\n this.state.images &&\r\n <div>\r\n <div className={'grid-container'}>\r\n {\r\n this.state.images.map(el => <div key={el.label} className={'grid-item'}>\r\n <img src={el.url}\r\n className={'secondary-img'}\r\n alt=\"\"\r\n onClick={() => this.setImageAsPrimary(el.label)}/>\r\n </div>)\r\n }\r\n </div>\r\n </div>\r\n }\r\n\r\n </div>\r\n </div>\r\n\r\n )\r\n }\r\n}\r\n\r\nexport default Gallery;","C:\\alon\\projects\\alma-nodes\\src\\index.js",[],["65","66"],"C:\\alon\\projects\\alma-nodes\\src\\reportWebVitals.js",[],"C:\\alon\\projects\\alma-nodes\\src\\App.js",[],"C:\\alon\\projects\\alma-nodes\\src\\pages\\Picture\\index.js",[],"C:\\alon\\projects\\alma-nodes\\src\\pages\\Map\\index.js",[],"C:\\alon\\projects\\alma-nodes\\src\\components\\Gallery\\index.js",[],"C:\\alon\\projects\\alma-nodes\\src\\components\\Node\\index.js",[],{"ruleId":"67","replacedBy":"68"},{"ruleId":"69","replacedBy":"70"},{"ruleId":"71","severity":1,"message":"72","line":5,"column":9,"nodeType":"73","messageId":"74","endLine":5,"endColumn":13},{"ruleId":"67","replacedBy":"75"},{"ruleId":"69","replacedBy":"76"},"no-native-reassign",["77"],"no-negated-in-lhs",["78"],"no-unused-vars","'Link' is defined but never used.","Identifier","unusedVar",["77"],["78"],"no-global-assign","no-unsafe-negation"]