-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 39 KB
/
.eslintcache
1
[{"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\icons\\StopSVG.js":"1","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\TrackCard\\TrackCard.js":"2","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\App.js":"3","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\POIInfo\\POIInfo.js":"4","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\icons\\ScanSVG.js":"5","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\icons\\StartSVG.js":"6","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\QRReader\\QRReader.js":"7","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\ChangeMapView\\ChangeMapView.js":"8","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\CheckCurrUserDistanceFromPOI\\CheckCurrUserDistanceFromPOI.js":"9","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\constants\\geolocationOptions.js":"10","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\constants\\mapCenter.js":"11","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\constants\\mapZoom.js":"12","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\POIInfoContent\\POIInfoContent.js":"13","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\locale\\languages\\iw.js":"14","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\POIPopupContent\\POIPopupContent.js":"15","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\reportWebVitals.js":"16","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\firebase\\Firebase.js":"17","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\TracksList\\TracksList.js":"18","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\CurrUserPosition\\CurrUserPosition.js":"19","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\hooks\\useWatchLocation.js":"20","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\HideAllPOITypes\\HideAllPOITypes.js":"21","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\constants\\langOptions.js":"22","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\ToggleButton\\ToggleButton.js":"23","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\index.js":"24","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\SplashScreen\\SplashScreen.js":"25","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\NavbarRouter\\NavbarRouter.js":"26","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\icons\\UniversityLogoSVG.js":"27","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\icons\\UniNavLogoSVG.js":"28","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\NavbarLinks\\NavbarLinks.js":"29","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\Scan\\Scan.js":"30","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\Map\\Map.js":"31","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\Settings\\Settings.js":"32","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\icons\\TracksSVG.js":"33","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\icons\\POIsSVG.js":"34","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\icons\\CloseSVG.js":"35","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\icons\\BackSVG.js":"36","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\AllPOIs\\AllPOIs.js":"37","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\alerts\\alerts.js":"38","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\HeadingSettings\\HeadingSettings.js":"39","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\icons\\LocateSVG.js":"40","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\data\\getIconByType.js":"41","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\LocationErrorAlert\\LocationErrorAlert.js":"42","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\icons\\InfoSVG.js":"43","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\DisplayPOITypesList\\DisplayPOITypesList.js":"44","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\locale\\languages\\en.js":"45","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\Tracks\\Tracks.js":"46","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\TrackInfo\\TrackInfo.js":"47","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\CurrTrack\\CurrTrack.js":"48","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\CheckCurrUserDistance\\CheckCurrUserDistance.js":"49","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\LocateUserButton\\LocateUserButton.js":"50","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\icons\\NotificationSVG.js":"51","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\HandleMapEvents\\HandleMapEvents.js":"52","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\data\\poiTypes.js":"53","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\locale\\locale.js":"54","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\NearPOINotification\\NearPOINotification.js":"55"},{"size":1544,"mtime":1615383353205,"results":"56","hashOfConfig":"57"},{"size":2393,"mtime":1615384613737,"results":"58","hashOfConfig":"57"},{"size":1441,"mtime":1617372454717,"results":"59","hashOfConfig":"57"},{"size":1437,"mtime":1612287296151,"results":"60","hashOfConfig":"57"},{"size":2374,"mtime":1612275637034,"results":"61","hashOfConfig":"57"},{"size":1814,"mtime":1611147332367,"results":"62","hashOfConfig":"57"},{"size":902,"mtime":1615393155228,"results":"63","hashOfConfig":"57"},{"size":601,"mtime":1610299642485,"results":"64","hashOfConfig":"57"},{"size":1469,"mtime":1612001754924,"results":"65","hashOfConfig":"57"},{"size":193,"mtime":1608144830343,"results":"66","hashOfConfig":"57"},{"size":70,"mtime":1608391546083,"results":"67","hashOfConfig":"57"},{"size":28,"mtime":1608391801042,"results":"68","hashOfConfig":"57"},{"size":1463,"mtime":1617369421580,"results":"69","hashOfConfig":"57"},{"size":1513,"mtime":1617376874431,"results":"70","hashOfConfig":"57"},{"size":731,"mtime":1617371280414,"results":"71","hashOfConfig":"57"},{"size":362,"mtime":1606491985363,"results":"72","hashOfConfig":"57"},{"size":1466,"mtime":1617377871897,"results":"73","hashOfConfig":"57"},{"size":624,"mtime":1617372635660,"results":"74","hashOfConfig":"57"},{"size":1348,"mtime":1615368001006,"results":"75","hashOfConfig":"57"},{"size":2564,"mtime":1617788477082,"results":"76","hashOfConfig":"57"},{"size":1276,"mtime":1612275014233,"results":"77","hashOfConfig":"57"},{"size":34,"mtime":1608733632144,"results":"78","hashOfConfig":"57"},{"size":329,"mtime":1610286256538,"results":"79","hashOfConfig":"57"},{"size":500,"mtime":1606491985363,"results":"80","hashOfConfig":"57"},{"size":492,"mtime":1610286258448,"results":"81","hashOfConfig":"57"},{"size":3093,"mtime":1617372457173,"results":"82","hashOfConfig":"57"},{"size":40454,"mtime":1610102158041,"results":"83","hashOfConfig":"57"},{"size":2452,"mtime":1610188283468,"results":"84","hashOfConfig":"57"},{"size":2444,"mtime":1612275940984,"results":"85","hashOfConfig":"57"},{"size":824,"mtime":1615377421218,"results":"86","hashOfConfig":"57"},{"size":5125,"mtime":1615381199225,"results":"87","hashOfConfig":"57"},{"size":1768,"mtime":1612275697554,"results":"88","hashOfConfig":"57"},{"size":4490,"mtime":1612275639561,"results":"89","hashOfConfig":"57"},{"size":2404,"mtime":1610123274231,"results":"90","hashOfConfig":"57"},{"size":681,"mtime":1611141418828,"results":"91","hashOfConfig":"57"},{"size":680,"mtime":1611230201459,"results":"92","hashOfConfig":"57"},{"size":2078,"mtime":1617783307754,"results":"93","hashOfConfig":"57"},{"size":563,"mtime":1608107325088,"results":"94","hashOfConfig":"57"},{"size":486,"mtime":1612275010955,"results":"95","hashOfConfig":"57"},{"size":2572,"mtime":1611152818747,"results":"96","hashOfConfig":"57"},{"size":648,"mtime":1612266007690,"results":"97","hashOfConfig":"57"},{"size":1143,"mtime":1612275020343,"results":"98","hashOfConfig":"57"},{"size":934,"mtime":1615383007063,"results":"99","hashOfConfig":"57"},{"size":1424,"mtime":1612270541179,"results":"100","hashOfConfig":"57"},{"size":1116,"mtime":1617376870076,"results":"101","hashOfConfig":"57"},{"size":2037,"mtime":1617374309034,"results":"102","hashOfConfig":"57"},{"size":2035,"mtime":1617375978522,"results":"103","hashOfConfig":"57"},{"size":420,"mtime":1615565820534,"results":"104","hashOfConfig":"57"},{"size":1622,"mtime":1617376849022,"results":"105","hashOfConfig":"57"},{"size":715,"mtime":1610287745258,"results":"106","hashOfConfig":"57"},{"size":1530,"mtime":1611334302064,"results":"107","hashOfConfig":"57"},{"size":1221,"mtime":1610285721182,"results":"108","hashOfConfig":"57"},{"size":1035,"mtime":1612275115808,"results":"109","hashOfConfig":"57"},{"size":393,"mtime":1612275122332,"results":"110","hashOfConfig":"57"},{"size":1623,"mtime":1612275040249,"results":"111","hashOfConfig":"57"},{"filePath":"112","messages":"113","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"k91dwg",{"filePath":"114","messages":"115","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"116"},{"filePath":"117","messages":"118","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"119"},{"filePath":"120","messages":"121","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"122","usedDeprecatedRules":"123"},{"filePath":"124","messages":"125","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"123"},{"filePath":"126","messages":"127","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"123"},{"filePath":"128","messages":"129","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"123"},{"filePath":"130","messages":"131","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"123"},{"filePath":"132","messages":"133","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"134","usedDeprecatedRules":"135"},{"filePath":"136","messages":"137","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"138"},{"filePath":"139","messages":"140","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"135"},{"filePath":"141","messages":"142","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"123"},{"filePath":"143","messages":"144","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"135"},{"filePath":"145","messages":"146","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"123"},{"filePath":"147","messages":"148","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"119"},{"filePath":"149","messages":"150","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"135"},{"filePath":"151","messages":"152","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"123"},{"filePath":"153","messages":"154","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"123"},{"filePath":"155","messages":"156","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"157"},{"filePath":"158","messages":"159","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"160","messages":"161","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"138"},{"filePath":"162","messages":"163","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"138"},{"filePath":"164","messages":"165","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"123"},{"filePath":"166","messages":"167","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"123"},{"filePath":"168","messages":"169","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"123"},{"filePath":"170","messages":"171","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"123"},{"filePath":"172","messages":"173","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"123"},{"filePath":"174","messages":"175","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"123"},{"filePath":"176","messages":"177","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"178","usedDeprecatedRules":"123"},{"filePath":"179","messages":"180","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"123"},{"filePath":"181","messages":"182","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"123"},{"filePath":"183","messages":"184","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"123"},{"filePath":"185","messages":"186","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"123"},{"filePath":"187","messages":"188","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"123"},{"filePath":"189","messages":"190","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"123"},{"filePath":"191","messages":"192","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"123"},{"filePath":"193","messages":"194","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"195","messages":"196","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"197"},{"filePath":"198","messages":"199","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"135"},{"filePath":"200","messages":"201","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"123"},{"filePath":"202","messages":"203","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"204"},{"filePath":"205","messages":"206","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"135"},{"filePath":"207","messages":"208","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"138"},{"filePath":"209","messages":"210","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"138"},{"filePath":"211","messages":"212","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"135"},{"filePath":"213","messages":"214","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"215","usedDeprecatedRules":"123"},{"filePath":"216","messages":"217","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"218","usedDeprecatedRules":"123"},{"filePath":"219","messages":"220","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"221","messages":"222","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"223","usedDeprecatedRules":"135"},{"filePath":"224","messages":"225","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"123"},{"filePath":"226","messages":"227","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"135"},{"filePath":"228","messages":"229","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"138"},{"filePath":"230","messages":"231","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"232","usedDeprecatedRules":"123"},{"filePath":"233","messages":"234","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"116"},{"filePath":"235","messages":"236","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"204"},"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\icons\\StopSVG.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\TrackCard\\TrackCard.js",[],["237","238"],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\App.js",[],["239","240"],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\POIInfo\\POIInfo.js",["241","242"],"import React, { useEffect, useState } from \"react\";\r\n\r\nimport \"./POIInfo.css\";\r\nimport { useHistory, useParams } from \"react-router-dom\";\r\nimport firebase from \"../../firebase/Firebase\";\r\nimport { POIInfoContent } from \"../POIInfoContent/POIInfoContent\";\r\n\r\nexport const POIInfo = (props) => {\r\n let history = useHistory();\r\n const { poiId } = useParams();\r\n\r\n const [poi, setPOI] = useState(null);\r\n\r\n useEffect(\r\n () => {\r\n if (props.mapPOIs.length !== 0) {\r\n const currentPOI = props.mapPOIs.find((p) => p.id === poiId);\r\n console.log(currentPOI);\r\n setPOI(currentPOI);\r\n return;\r\n }\r\n\r\n // DB Request, extract all the data from Firebase\r\n firebase\r\n .database()\r\n .ref(\"mapPOIs\")\r\n .once(\"value\", (querySnapShot) => {\r\n let data = querySnapShot.val() ? querySnapShot.val() : {};\r\n let dataArr = [...data];\r\n console.log(data);\r\n\r\n // Initialize the state with all the data recieved from DB\r\n props.setMapPOIs(dataArr);\r\n\r\n const currentPOI = dataArr.find((p) => p.id === poiId);\r\n console.log(currentPOI);\r\n\r\n setPOI(currentPOI);\r\n });\r\n },\r\n [] // Occurs when the state within is changing (once)\r\n );\r\n\r\n return (\r\n <>\r\n {props.mapPOIs && props.mapPOIs.length !== 0 && poi && (\r\n <POIInfoContent poi={poi}></POIInfoContent>\r\n )}\r\n </>\r\n );\r\n};\r\n",["243","244"],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\icons\\ScanSVG.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\icons\\StartSVG.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\QRReader\\QRReader.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\ChangeMapView\\ChangeMapView.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\CheckCurrUserDistanceFromPOI\\CheckCurrUserDistanceFromPOI.js",["245"],"import { useEffect } from \"react\";\r\n\r\nimport { useMap } from \"react-leaflet\";\r\nimport L from \"leaflet\";\r\n\r\nexport const CheckCurrUserDistanceFromPOI = (props) => {\r\n const map = useMap();\r\n\r\n useEffect(() => {\r\n if (props.mapPOIs && props.currLocationOptions.location) {\r\n for (let i = 0; i < props.mapPOIs.length; i++) {\r\n let poi = props.mapPOIs[i];\r\n let userLocation = props.currLocationOptions.location;\r\n\r\n // Init coords of the curr poi\r\n const poiLatLng = L.latLng(poi.location.lat, poi.location.lng);\r\n\r\n // Init coords of the current user position\r\n const currPositionLatLng = L.latLng(\r\n userLocation.latitude,\r\n userLocation.longitude\r\n );\r\n\r\n // Check the distance between the curr poi & the current user position\r\n const distance = map.distance(poiLatLng, currPositionLatLng);\r\n\r\n // Check the distance of the user from the poi\r\n if (distance < 0.00001) {\r\n // Set the curr poi as nearest (if hasn't set yet)\r\n if (props.nearPOI !== poi) {\r\n props.setNearPOI(poi);\r\n console.log(\"arrived \" + poi.id);\r\n window.alert(\"arrived \" + poi.id);\r\n props.setIsDisplayCurrPOINotif(true);\r\n }\r\n return;\r\n }\r\n }\r\n\r\n props.setNearPOI(null);\r\n console.log(\"not arrived\");\r\n }\r\n }, [props.currLocationOptions.location, props.mapPOIs]);\r\n\r\n return null;\r\n};\r\n",["246","247"],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\constants\\geolocationOptions.js",[],["248","249"],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\constants\\mapCenter.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\constants\\mapZoom.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\POIInfoContent\\POIInfoContent.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\locale\\languages\\iw.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\POIPopupContent\\POIPopupContent.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\reportWebVitals.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\firebase\\Firebase.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\TracksList\\TracksList.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\CurrUserPosition\\CurrUserPosition.js",[],["250","251"],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\hooks\\useWatchLocation.js",["252","253"],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\HideAllPOITypes\\HideAllPOITypes.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\constants\\langOptions.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\ToggleButton\\ToggleButton.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\index.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\SplashScreen\\SplashScreen.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\NavbarRouter\\NavbarRouter.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\icons\\UniversityLogoSVG.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\icons\\UniNavLogoSVG.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\NavbarLinks\\NavbarLinks.js",["254","255"],"import React from \"react\";\r\nimport \"./NavbarLinks.css\";\r\n\r\nimport { BrowserRouter as Router, Route, NavLink } from \"react-router-dom\";\r\n\r\nimport ScanSVG from \"../../icons/ScanSVG.js\";\r\nimport TracksSVG from \"../../icons/TracksSVG.js\";\r\nimport POIsSVG from \"../../icons/POIsSVG.js\";\r\n\r\nimport getLocaleString from \"../../locale/locale\";\r\n\r\nexport const NavbarLinks = (props) => {\r\n return (\r\n <nav className=\"navbar\">\r\n <NavLink\r\n activeClassName=\"active\"\r\n to=\"/uninav/scan\"\r\n className=\"scan-navbar-btn\"\r\n >\r\n <button\r\n className=\"navbar-btn scan-navbar-btn\"\r\n onClick={() => {\r\n props.setSelectedNavButton({\r\n scan: true,\r\n tracks: false,\r\n settings: false,\r\n });\r\n }}\r\n >\r\n <ScanSVG selectedNavButton={props.selectedNavButton.scan}></ScanSVG>\r\n <h6 className=\"navbar-btn-title\">{getLocaleString(\"SCAN_BTN\")}</h6>\r\n </button>\r\n {props.selectedNavButton.scan && (\r\n <div className=\"navbar-tab scan-navbar-tab\"></div>\r\n )}\r\n </NavLink>\r\n <NavLink\r\n activeClassName=\"active\"\r\n to=\"/uninav/tracks\"\r\n className=\"track-navbar-btn\"\r\n >\r\n <button\r\n className=\"navbar-btn track-navbar-btn\"\r\n onClick={() => {\r\n props.setSelectedNavButton({\r\n scan: false,\r\n tracks: true,\r\n settings: false,\r\n });\r\n }}\r\n >\r\n <TracksSVG\r\n selectedNavButton={props.selectedNavButton.tracks}\r\n ></TracksSVG>\r\n <h6 className=\"navbar-btn-title\">{getLocaleString(\"TRACKS_BTN\")}</h6>\r\n </button>\r\n {props.selectedNavButton.tracks && (\r\n <div className=\"navbar-tab track-navbar-tab\"></div>\r\n )}\r\n </NavLink>\r\n <NavLink\r\n activeClassName=\"active\"\r\n to=\"/uninav/settings\"\r\n className=\"settings-navbar-btn\"\r\n >\r\n <button\r\n className=\"navbar-btn settings-navbar-btn\"\r\n onClick={() => {\r\n props.setSelectedNavButton({\r\n scan: false,\r\n tracks: false,\r\n settings: true,\r\n });\r\n }}\r\n >\r\n <POIsSVG></POIsSVG>\r\n <h6 className=\"navbar-btn-title\">{getLocaleString(\"POIS_BTN\")}</h6>\r\n </button>\r\n </NavLink>\r\n </nav>\r\n );\r\n};\r\n","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\Scan\\Scan.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\Map\\Map.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\Settings\\Settings.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\icons\\TracksSVG.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\icons\\POIsSVG.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\icons\\CloseSVG.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\icons\\BackSVG.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\AllPOIs\\AllPOIs.js",["256"],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\alerts\\alerts.js",[],["257","258"],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\HeadingSettings\\HeadingSettings.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\icons\\LocateSVG.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\data\\getIconByType.js",[],["259","260"],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\LocationErrorAlert\\LocationErrorAlert.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\icons\\InfoSVG.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\DisplayPOITypesList\\DisplayPOITypesList.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\locale\\languages\\en.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\Tracks\\Tracks.js",["261"],"import React, { useEffect } from \"react\";\r\nimport \"./Tracks.css\";\r\nimport firebase from \"../../firebase/Firebase\";\r\n\r\nimport { TracksList } from \"../TracksList/TracksList\";\r\n\r\nimport TracksSVG from \"../../icons/TracksSVG.js\";\r\nimport CloseSVG from \"../../icons/CloseSVG.js\";\r\n\r\nimport { useHistory } from \"react-router-dom\";\r\n\r\nimport getLocaleString from \"../../locale/locale\";\r\n\r\nexport const Tracks = (props) => {\r\n let history = useHistory();\r\n\r\n useEffect(\r\n () => {\r\n // DB Request, extract all the data from Firebase\r\n firebase\r\n .database()\r\n .ref(\"mapTracks\")\r\n .once(\"value\", (querySnapShot) => {\r\n let data = querySnapShot.val() ? querySnapShot.val() : {};\r\n let dataArr = [...data];\r\n\r\n // Initialize the state with all the data recieved from DB\r\n props.setMapTracks(dataArr);\r\n });\r\n },\r\n [] // Occurs when the state within is changing (once)\r\n );\r\n\r\n const handleCloseTracks = () => {\r\n // Create a clone of the current state of selectedNavButton flags & Set all the flags to false\r\n const selectedNew = {};\r\n Object.keys(props.selectedNavButton).forEach(\r\n (key) => (selectedNew[key] = false)\r\n );\r\n props.setSelectedNavButton(selectedNew);\r\n\r\n history.push(\"/uninav/\");\r\n };\r\n\r\n return (\r\n <div className=\"tracks\">\r\n <div className=\"tracks-heading\">\r\n <TracksSVG selectedNavButton={true}></TracksSVG>\r\n <h4 className=\"tracks-heading-title\">\r\n {getLocaleString(\"TRACKS_TITLE\")}\r\n </h4>\r\n <button className=\"close-btn\" onClick={handleCloseTracks}>\r\n <CloseSVG></CloseSVG>\r\n </button>\r\n </div>\r\n <TracksList\r\n selectedNavButton={props.selectedNavButton}\r\n setSelectedNavButton={props.setSelectedNavButton}\r\n setSelectedTrack={props.setSelectedTrack}\r\n selectedTrack={props.selectedTrack}\r\n mapTracks={props.mapTracks}\r\n setMapTracks={props.setMapTracks}\r\n ></TracksList>\r\n </div>\r\n );\r\n};\r\n","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\TrackInfo\\TrackInfo.js",["262"],"import React, { useEffect, useState } from \"react\";\r\nimport StartSVG from \"../../icons/StartSVG.js\";\r\nimport BackSVG from \"../../icons/BackSVG.js\";\r\nimport firebase from \"../../firebase/Firebase\";\r\nimport { useHistory, useParams } from \"react-router-dom\";\r\nimport \"./TrackInfo.css\";\r\n\r\nexport const TrackInfo = ({\r\n selectedNavButton,\r\n setSelectedNavButton,\r\n setSelectedTrack,\r\n}) => {\r\n let history = useHistory();\r\n const { trackId } = useParams();\r\n\r\n const [item, setItem] = useState(null);\r\n\r\n useEffect(\r\n () => {\r\n // DB Request, extract all the data from Firebase\r\n firebase\r\n .database()\r\n .ref(\"mapTracks/\" + trackId)\r\n .once(\"value\", (querySnapShot) => {\r\n let data = querySnapShot.val() ? querySnapShot.val() : {};\r\n setItem(data);\r\n });\r\n },\r\n [] // Occurs once\r\n );\r\n\r\n const handleSelectTrack = () => {\r\n // Create a clone of the current state of selectedNavButton flags & Set all the flags to false\r\n const selectedNew = {};\r\n Object.keys(selectedNavButton).forEach((key) => (selectedNew[key] = false));\r\n setSelectedNavButton(selectedNew);\r\n\r\n setSelectedTrack(item);\r\n\r\n history.push(\"/uninav/\");\r\n };\r\n\r\n const handleCloseTracks = () => {\r\n const path = `/uninav/tracks`;\r\n history.push(path);\r\n };\r\n\r\n return (\r\n <>\r\n {item && (\r\n <div className=\"track-info-content\">\r\n <button className=\"back-btn\" onClick={handleCloseTracks}>\r\n <BackSVG></BackSVG>\r\n </button>\r\n <img className=\"track-img\" src={item.img} alt={item.name}></img>\r\n <div className=\"info-heading\">\r\n <h4 className=\"info-heading-title\">{item.name}</h4>\r\n <button className=\"info-start-btn\" onClick={handleSelectTrack}>\r\n <StartSVG></StartSVG>\r\n </button>\r\n </div>\r\n\r\n <div className=\"info-content\">\r\n <p>{item.content.replaceAll(\"\\\\n\", \"\\n\")}</p>\r\n </div>\r\n </div>\r\n )}\r\n </>\r\n );\r\n};\r\n","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\CurrTrack\\CurrTrack.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\CheckCurrUserDistance\\CheckCurrUserDistance.js",["263"],"import { useEffect } from \"react\";\r\n\r\nimport { useMap } from \"react-leaflet\";\r\nimport { mapCenter } from \"../../constants/mapCenter\";\r\nimport L from \"leaflet\";\r\n\r\nexport const CheckCurrUserDistance = (props) => {\r\n const map = useMap();\r\n\r\n // Check the user distance from the uni, at the app's first render\r\n useEffect(() => {\r\n let timeOut;\r\n\r\n // Wait a few seconds after the first render & center the map according to the user location\r\n if (props.isFirstRender) {\r\n timeOut = setTimeout(() => {\r\n props.setIsChangeMapView(true);\r\n props.setIsFirstRender(false);\r\n\r\n measureCurrUserDistance();\r\n }, 8000);\r\n }\r\n return () => clearTimeout(timeOut);\r\n }, [props.isFirstRender]);\r\n\r\n function measureCurrUserDistance() {\r\n // Init coords of the university center\r\n const centerLatLng = L.latLng(mapCenter.lat, mapCenter.lng);\r\n\r\n // Init coords of the current user position\r\n const currPositionLatLng = L.latLng(\r\n props.currLocationOptions.location.latitude,\r\n props.currLocationOptions.location.longitude\r\n );\r\n\r\n // Check the distance between the university center & the current user position\r\n const distance = map.distance(centerLatLng, currPositionLatLng);\r\n\r\n // Check the distance of the user from the university\r\n if (distance > 10000) {\r\n // If the user isn't at the universy, center the map to the user location only if he confirmed\r\n props.setIsCenterUserLocation(false);\r\n } else {\r\n // center the map to the user location\r\n props.setIsCenterUserLocation(true);\r\n }\r\n }\r\n\r\n return null;\r\n};\r\n","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\LocateUserButton\\LocateUserButton.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\icons\\NotificationSVG.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\HandleMapEvents\\HandleMapEvents.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\data\\poiTypes.js",["264"],"import areaIcon from \"../icons/area.svg\";\r\nimport artIcon from \"../icons/art.svg\";\r\nimport benchIcon from \"../icons/bench.svg\";\r\nimport historyIcon from \"../icons/history.svg\";\r\nimport tableIcon from \"../icons/table.svg\";\r\nimport lookoutIcon from \"../icons/lookout.svg\";\r\n\r\nimport getLocaleString from \"../locale/locale\";\r\n\r\nexport default [\r\n {\r\n name: \"bench\",\r\n key: \"bench\",\r\n label: getLocaleString(\"POI_BENCH\"),\r\n icon: benchIcon,\r\n },\r\n {\r\n name: \"area\",\r\n key: \"area\",\r\n label: getLocaleString(\"POI_AREA\"),\r\n icon: areaIcon,\r\n },\r\n {\r\n name: \"table\",\r\n key: \"table\",\r\n label: getLocaleString(\"POI_TABLE\"),\r\n icon: tableIcon,\r\n },\r\n {\r\n name: \"art\",\r\n key: \"art\",\r\n label: getLocaleString(\"POI_ART\"),\r\n icon: artIcon,\r\n },\r\n {\r\n name: \"lookout\",\r\n key: \"lookout\",\r\n label: getLocaleString(\"POI_LOOKOUT\"),\r\n icon: lookoutIcon,\r\n },\r\n {\r\n name: \"history\",\r\n key: \"history\",\r\n label: getLocaleString(\"POI_HISTORY\"),\r\n icon: historyIcon,\r\n },\r\n];\r\n","C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\locale\\locale.js",[],"C:\\Users\\Shir\\Documents\\GitHub\\uninav\\src\\components\\NearPOINotification\\NearPOINotification.js",[],{"ruleId":"265","replacedBy":"266"},{"ruleId":"267","replacedBy":"268"},{"ruleId":"265","replacedBy":"269"},{"ruleId":"267","replacedBy":"270"},{"ruleId":"271","severity":1,"message":"272","line":9,"column":7,"nodeType":"273","messageId":"274","endLine":9,"endColumn":14},{"ruleId":"275","severity":1,"message":"276","line":41,"column":5,"nodeType":"277","endLine":41,"endColumn":7,"suggestions":"278"},{"ruleId":"265","replacedBy":"279"},{"ruleId":"267","replacedBy":"280"},{"ruleId":"275","severity":1,"message":"281","line":43,"column":6,"nodeType":"277","endLine":43,"endColumn":57,"suggestions":"282"},{"ruleId":"265","replacedBy":"283"},{"ruleId":"267","replacedBy":"284"},{"ruleId":"265","replacedBy":"285"},{"ruleId":"267","replacedBy":"286"},{"ruleId":"265","replacedBy":"287"},{"ruleId":"267","replacedBy":"288"},{"ruleId":"271","severity":1,"message":"289","line":69,"column":11,"nodeType":"273","messageId":"274","endLine":69,"endColumn":19},{"ruleId":"275","severity":1,"message":"290","line":84,"column":6,"nodeType":"277","endLine":84,"endColumn":29,"suggestions":"291"},{"ruleId":"271","severity":1,"message":"292","line":4,"column":27,"nodeType":"273","messageId":"274","endLine":4,"endColumn":33},{"ruleId":"271","severity":1,"message":"293","line":4,"column":35,"nodeType":"273","messageId":"274","endLine":4,"endColumn":40},{"ruleId":"275","severity":1,"message":"294","line":28,"column":5,"nodeType":"277","endLine":28,"endColumn":7,"suggestions":"295"},{"ruleId":"265","replacedBy":"296"},{"ruleId":"267","replacedBy":"297"},{"ruleId":"265","replacedBy":"298"},{"ruleId":"267","replacedBy":"299"},{"ruleId":"275","severity":1,"message":"294","line":31,"column":5,"nodeType":"277","endLine":31,"endColumn":7,"suggestions":"300"},{"ruleId":"275","severity":1,"message":"301","line":29,"column":5,"nodeType":"277","endLine":29,"endColumn":7,"suggestions":"302"},{"ruleId":"275","severity":1,"message":"303","line":24,"column":6,"nodeType":"277","endLine":24,"endColumn":27,"suggestions":"304"},{"ruleId":"305","severity":1,"message":"306","line":10,"column":1,"nodeType":"307","endLine":47,"endColumn":3},"no-native-reassign",["308"],"no-negated-in-lhs",["309"],["308"],["309"],"no-unused-vars","'history' is assigned a value but never used.","Identifier","unusedVar","react-hooks/exhaustive-deps","React Hook useEffect has missing dependencies: 'poiId' and 'props'. Either include them or remove the dependency array. However, 'props' will change when *any* prop changes, so the preferred fix is to destructure the 'props' object outside of the useEffect call and refer to those specific props inside useEffect.","ArrayExpression",["310"],["308"],["309"],"React Hook useEffect has missing dependencies: 'map' and 'props'. Either include them or remove the dependency array. However, 'props' will change when *any* prop changes, so the preferred fix is to destructure the 'props' object outside of the useEffect call and refer to those specific props inside useEffect.",["311"],["308"],["309"],["308"],["309"],["308"],["309"],"'interval' is assigned a value but never used.","React Hook useEffect has a missing dependency: 'handleError'. Either include it or remove the dependency array.",["312"],"'Router' is defined but never used.","'Route' is defined but never used.","React Hook useEffect has a missing dependency: 'props'. Either include it or remove the dependency array. However, 'props' will change when *any* prop changes, so the preferred fix is to destructure the 'props' object outside of the useEffect call and refer to those specific props inside useEffect.",["313"],["308"],["309"],["308"],["309"],["314"],"React Hook useEffect has a missing dependency: 'trackId'. Either include it or remove the dependency array.",["315"],"React Hook useEffect has missing dependencies: 'measureCurrUserDistance' and 'props'. Either include them or remove the dependency array. However, 'props' will change when *any* prop changes, so the preferred fix is to destructure the 'props' object outside of the useEffect call and refer to those specific props inside useEffect.",["316"],"import/no-anonymous-default-export","Assign array to a variable before exporting as module default","ExportDefaultDeclaration","no-global-assign","no-unsafe-negation",{"desc":"317","fix":"318"},{"desc":"319","fix":"320"},{"desc":"321","fix":"322"},{"desc":"323","fix":"324"},{"desc":"323","fix":"325"},{"desc":"326","fix":"327"},{"desc":"328","fix":"329"},"Update the dependencies array to be: [poiId, props]",{"range":"330","text":"331"},"Update the dependencies array to be: [map, props, props.currLocationOptions.location, props.mapPOIs]",{"range":"332","text":"333"},"Update the dependencies array to be: [handleError, isLocateUser, options]",{"range":"334","text":"335"},"Update the dependencies array to be: [props]",{"range":"336","text":"337"},{"range":"338","text":"337"},"Update the dependencies array to be: [trackId]",{"range":"339","text":"340"},"Update the dependencies array to be: [measureCurrUserDistance, props, props.isFirstRender]",{"range":"341","text":"342"},[1208,1210],"[poiId, props]",[1392,1443],"[map, props, props.currLocationOptions.location, props.mapPOIs]",[2443,2466],"[handleError, isLocateUser, options]",[796,798],"[props]",[887,889],[831,833],"[trackId]",[707,728],"[measureCurrUserDistance, props, props.isFirstRender]"]