-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 8.71 KB
/
.eslintcache
1
[{"/home/popschool/Documents/Exos Frontend/tp_appli_meteo/projectThree/weather-app/src/index.js":"1","/home/popschool/Documents/Exos Frontend/tp_appli_meteo/projectThree/weather-app/src/App.jsx":"2","/home/popschool/Documents/Exos Frontend/tp_appli_meteo/projectThree/weather-app/src/store.js":"3","/home/popschool/Documents/Exos Frontend/tp_appli_meteo/projectThree/weather-app/src/components/CapitalizedText.js":"4","/home/popschool/Documents/Exos Frontend/tp_appli_meteo/projectThree/weather-app/src/components/top/weather.jsx":"5","/home/popschool/Documents/Exos Frontend/tp_appli_meteo/projectThree/weather-app/src/components/bottom/forcastday.jsx":"6","/home/popschool/Documents/Exos Frontend/tp_appli_meteo/projectThree/weather-app/src/components/bottom/OtherDayWeather.jsx":"7","/home/popschool/Documents/Exos Frontend/tp_appli_meteo/projectThree/weather-app/src/components/top/TodayWeather.jsx":"8"},{"size":231,"mtime":1612473426307,"results":"9","hashOfConfig":"10"},{"size":2815,"mtime":1612473427007,"results":"11","hashOfConfig":"10"},{"size":493,"mtime":1612088706550,"results":"12","hashOfConfig":"10"},{"size":304,"mtime":1612473423499,"results":"13","hashOfConfig":"10"},{"size":1033,"mtime":1612480855579,"results":"14","hashOfConfig":"10"},{"size":845,"mtime":1612480865691,"results":"15","hashOfConfig":"10"},{"size":480,"mtime":1612473430123,"results":"16","hashOfConfig":"10"},{"size":2549,"mtime":1612473425379,"results":"17","hashOfConfig":"10"},{"filePath":"18","messages":"19","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"20"},"1l397ox",{"filePath":"21","messages":"22","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"20"},{"filePath":"23","messages":"24","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"20"},{"filePath":"25","messages":"26","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"27","messages":"28","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"29","usedDeprecatedRules":"20"},{"filePath":"30","messages":"31","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"32","usedDeprecatedRules":"20"},{"filePath":"33","messages":"34","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"20"},{"filePath":"35","messages":"36","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"37","usedDeprecatedRules":"20"},"/home/popschool/Documents/Exos Frontend/tp_appli_meteo/projectThree/weather-app/src/index.js",[],["38","39"],"/home/popschool/Documents/Exos Frontend/tp_appli_meteo/projectThree/weather-app/src/App.jsx",[],"/home/popschool/Documents/Exos Frontend/tp_appli_meteo/projectThree/weather-app/src/store.js",[],"/home/popschool/Documents/Exos Frontend/tp_appli_meteo/projectThree/weather-app/src/components/CapitalizedText.js",[],"/home/popschool/Documents/Exos Frontend/tp_appli_meteo/projectThree/weather-app/src/components/top/weather.jsx",["40"],"import React from \"react\";\nimport CapitalizedText from \"../CapitalizedText\";\n\nexport default class Weather extends React.Component {\n constructor(props) {\n super(props);\n }\n\n render() {\n const {\n location,\n temperature,\n conditions,\n weatherDescription,\n weatherIcon,\n } = this.props;\n const iconDay = `https://openweathermap.org/img/wn/${weatherIcon}@2x.png`;\n\n return (\n <div className=\"block__today\">\n <img className=\"img__today\" src={iconDay} alt=\"météo du jour\" />\n <div className=\"block__today-text\">\n <span className=\"today_day\">Aujourd'hui</span>\n <h2 className=\"city_name\" id=\"ville\">\n {location}\n </h2>\n <span className=\"hide\">{conditions}</span>\n <span id=\"temperature\">{Math.round(temperature)}°C</span>\n <span id=\"conditions\"></span>\n <span className=\"describ\">\n {<CapitalizedText text={weatherDescription} />}\n </span>\n </div>\n </div>\n );\n }\n}\n","/home/popschool/Documents/Exos Frontend/tp_appli_meteo/projectThree/weather-app/src/components/bottom/forcastday.jsx",["41"],"import React from \"react\";\nimport CapitalizedText from \"../CapitalizedText\";\n\nexport default class Forcastday extends React.Component {\n constructor(props) {\n super(props);\n }\n\n render() {\n const { day } = this.props;\n const dayName = new Date(day.dt * 1000).toLocaleString(\"fr-FR\", {\n weekday: \"long\",\n });\n const iconDay = `https://openweathermap.org/img/wn/${day.weather[0].icon}@2x.png`;\n const temp = day.temp.day;\n const desc = day.weather[0].description;\n\n if (!day) return null;\n return (\n <div className=\"other-day\">\n <h2 className=\"day-name\">{dayName}</h2>\n <img src={iconDay} className=\"img\" alt=\"météo du jour\" />\n <p className=\"other__temp\">{Math.round(temp)}°C</p>\n <p className=\"other__descrip\">{<CapitalizedText text={desc} />}</p>\n </div>\n );\n }\n}\n","/home/popschool/Documents/Exos Frontend/tp_appli_meteo/projectThree/weather-app/src/components/bottom/OtherDayWeather.jsx",[],"/home/popschool/Documents/Exos Frontend/tp_appli_meteo/projectThree/weather-app/src/components/top/TodayWeather.jsx",["42"],"import React from \"react\";\n\nimport \"./style.css\";\n\nimport Weather from \"./weather\";\n\nimport { Manager, Reference, Popper } from \"react-popper\";\n\nexport default class TodayWeather extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n isSelectLocationOpen: false,\n };\n }\n\n onToggleSelectLocation() {\n this.setState((prevState) => ({\n isSelectLocationOpen: !prevState.isSelectLocationOpen,\n }));\n }\n\n onLocationNameChange(e) {\n this.setState({\n locationName: e.target.value,\n });\n }\n\n onSelectCity() {\n const { locationName } = this.state;\n const { eventEmitter } = this.props;\n eventEmitter.emit(\"updateWeather\", locationName);\n this.setState({ isSelectLocationOpen: false });\n }\n\n render() {\n const { isSelectLocationOpen } = this.state;\n const { eventEmitter } = this.props;\n\n return (\n <div className=\"top-container\">\n <div className=\"title\">Ma Météo sur 5 jours</div>\n <Weather {...this.props} />\n <Manager>\n <Reference>\n {({ ref }) => (\n <button\n className=\"btn btn-select-location\"\n ref={ref}\n onClick={this.onToggleSelectLocation.bind(this)}\n >\n Recherchez une ville\n </button>\n )}\n </Reference>\n <Popper placement=\"top\">\n {({ ref, style, placement, arrowProps }) =>\n isSelectLocationOpen && (\n <div\n className=\"popup-container\"\n ref={ref}\n style={style}\n data-placement={placement}\n >\n <div className=\"form-container\">\n <label htmlFor=\"location-name\">\n Recherchez une ville, un pays...\n </label>\n <input\n id=\"location-name\"\n type=\"text\"\n placeholder=\"Ville\"\n onChange={this.onLocationNameChange.bind(this)}\n />\n <button\n className=\"btn box-select-location\"\n onClick={this.onSelectCity.bind(this)}\n >\n Valider\n </button>\n </div>\n <div ref={arrowProps.ref} style={arrowProps.style} />\n </div>\n )\n }\n </Popper>\n </Manager>\n </div>\n );\n }\n}\n",{"ruleId":"43","replacedBy":"44"},{"ruleId":"45","replacedBy":"46"},{"ruleId":"47","severity":1,"message":"48","line":5,"column":3,"nodeType":"49","messageId":"50","endLine":7,"endColumn":4},{"ruleId":"47","severity":1,"message":"48","line":5,"column":3,"nodeType":"49","messageId":"50","endLine":7,"endColumn":4},{"ruleId":"51","severity":1,"message":"52","line":38,"column":13,"nodeType":"53","messageId":"54","endLine":38,"endColumn":25},"no-native-reassign",["55"],"no-negated-in-lhs",["56"],"no-useless-constructor","Useless constructor.","MethodDefinition","noUselessConstructor","no-unused-vars","'eventEmitter' is assigned a value but never used.","Identifier","unusedVar","no-global-assign","no-unsafe-negation"]