diff --git a/.eslintcache b/.eslintcache index e69de29..a3b7e0d 100644 --- a/.eslintcache +++ b/.eslintcache @@ -0,0 +1 @@ +[{"C:\\Users\\Amit kumar mishra\\Desktop\\idea-lab\\src\\index.js":"1","C:\\Users\\Amit kumar mishra\\Desktop\\idea-lab\\src\\reportWebVitals.js":"2","C:\\Users\\Amit kumar mishra\\Desktop\\idea-lab\\src\\App.js":"3","C:\\Users\\Amit kumar mishra\\Desktop\\idea-lab\\src\\Components\\Card\\card.js":"4","C:\\Users\\Amit kumar mishra\\Desktop\\idea-lab\\src\\Components\\Home\\Nav.js":"5","C:\\Users\\Amit kumar mishra\\Desktop\\idea-lab\\src\\Components\\Newsletter\\letterForm.js":"6","C:\\Users\\Amit kumar mishra\\Desktop\\idea-lab\\src\\Components\\Newsletter\\subsForm.js":"7","C:\\Users\\Amit kumar mishra\\Desktop\\idea-lab\\src\\Logo.js":"8","C:\\Users\\Amit kumar mishra\\Desktop\\idea-lab\\src\\constants\\const.js":"9"},{"size":576,"mtime":1611037144126,"results":"10","hashOfConfig":"11"},{"size":375,"mtime":1611037144127,"results":"12","hashOfConfig":"11"},{"size":369,"mtime":1611064988352,"results":"13","hashOfConfig":"11"},{"size":2926,"mtime":1611037144113,"results":"14","hashOfConfig":"11"},{"size":4889,"mtime":1611037144116,"results":"15","hashOfConfig":"11"},{"size":3271,"mtime":1611037144119,"results":"16","hashOfConfig":"11"},{"size":3139,"mtime":1611037144121,"results":"17","hashOfConfig":"11"},{"size":225,"mtime":1611037144122,"results":"18","hashOfConfig":"11"},{"size":49,"mtime":1611037144125,"results":"19","hashOfConfig":"11"},{"filePath":"20","messages":"21","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},"1x8hd3c",{"filePath":"23","messages":"24","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},{"filePath":"25","messages":"26","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"27","messages":"28","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},{"filePath":"29","messages":"30","errorCount":0,"warningCount":11,"fixableErrorCount":0,"fixableWarningCount":0,"source":"31","usedDeprecatedRules":"22"},{"filePath":"32","messages":"33","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"34","usedDeprecatedRules":"22"},{"filePath":"35","messages":"36","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"37","usedDeprecatedRules":"22"},{"filePath":"38","messages":"39","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},{"filePath":"40","messages":"41","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},"C:\\Users\\Amit kumar mishra\\Desktop\\idea-lab\\src\\index.js",[],["43","44"],"C:\\Users\\Amit kumar mishra\\Desktop\\idea-lab\\src\\reportWebVitals.js",[],"C:\\Users\\Amit kumar mishra\\Desktop\\idea-lab\\src\\App.js",["45","46"],"C:\\Users\\Amit kumar mishra\\Desktop\\idea-lab\\src\\Components\\Card\\card.js",[],"C:\\Users\\Amit kumar mishra\\Desktop\\idea-lab\\src\\Components\\Home\\Nav.js",["47","48","49","50","51","52","53","54","55","56","57"],"import React, {useState} from \"react\";\r\nimport {CloseOutlined,MenuOutlined} from \"@ant-design/icons\";\r\nimport Logo from \"../../Logo\";\r\n\r\nexport default function Nav() {\r\n\r\n const [navButton, setNavButton] = useState(false);\r\n \r\n return (\r\n
\r\n
\r\n
\r\n
\r\n \r\n Workflow\r\n \r\n \r\n
\r\n
\r\n \r\n Home\r\n \r\n \r\n Join\r\n \r\n \r\n About\r\n \r\n \r\n Help\r\n \r\n \r\n Share Your idea\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 setNavButton(current => !current)}\r\n >\r\n {\r\n navButton ?\r\n <>\r\n Close menu\r\n \r\n \r\n :\r\n <>\r\n Close menu\r\n \r\n \r\n \r\n }\r\n \r\n
\r\n
\r\n
\r\n {\r\n navButton && \r\n
\r\n
\r\n \r\n Home\r\n \r\n\r\n \r\n Join\r\n \r\n\r\n \r\n About\r\n \r\n\r\n \r\n Help\r\n \r\n\r\n \r\n Share your idea\r\n \r\n
\r\n
\r\n }\r\n
\r\n
\r\n
\r\n );\r\n}\r\n","C:\\Users\\Amit kumar mishra\\Desktop\\idea-lab\\src\\Components\\Newsletter\\letterForm.js",["58","59"],"import React, { Component } from 'react';\r\nimport {BASE_URL} from '../../constants/const';\r\n\r\nexport class Letterform extends Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.state = {\r\n heading: '',\r\n content: ''\r\n };\r\n }\r\n headingChangeHandler = (evt) => {\r\n this.setState({heading : evt.target.value});\r\n }\r\n contentChangeHandler = (evt) => {\r\n this.setState({content : evt.target.value});\r\n }\r\n letterSubmitHandler = (evt) => {\r\n evt.preventDefault();\r\n console.log(this.state);\r\n try {\r\n let result = fetch( BASE_URL +'letter/mail', {\r\n method: 'POST',\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n 'Accept': 'application/json'\r\n },\r\n body: JSON.stringify(this.state)\r\n })\r\n result.then((res) => { \r\n if(res.status === 204) {\r\n alert(\"No Mail in Mailing list\");\r\n \r\n } else if(res.status === 200) {\r\n alert(\"Successfully mailed\")\r\n \r\n } else {\r\n alert(\"Something went wrong!!\");\r\n }\r\n this.setState({heading:'', content:''});\r\n })\r\n } catch (error) {\r\n alert(\"Something went wrong\");\r\n }\r\n }\r\n render() {\r\n return (\r\n
\r\n

\r\n Publish a Newsletter!\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}\r\n\r\nexport default Letterform;\r\n","C:\\Users\\Amit kumar mishra\\Desktop\\idea-lab\\src\\Components\\Newsletter\\subsForm.js",["60"],"import React, { Component } from 'react';\r\nimport {BASE_URL} from '../../constants/const';\r\n\r\nexport default class Subsform extends Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.state = {\r\n email: ''\r\n };\r\n }\r\n emailChangeHandler = (evt) => {\r\n this.setState({email : evt.target.value});\r\n }\r\n subsHandler = (evt) => {\r\n evt.preventDefault();\r\n this.setState(()=>{\r\n this.state.email = this.state.email.trim();\r\n })\r\n try {\r\n let result = fetch( BASE_URL + 'letter/register', {\r\n method: 'POST',\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n 'Accept': 'application/json'\r\n },\r\n body: JSON.stringify(this.state)\r\n })\r\n result.then((res) => { \r\n if(res.status === 201) {\r\n alert(\"Already Subscribed\");\r\n \r\n } else if(res.status === 200) {\r\n alert(\"Successfully Subscribed\")\r\n \r\n } else {\r\n alert(\"Something went wrong!!\");\r\n }\r\n this.setState({email:''});\r\n })\r\n } catch (error) {\r\n alert(\"Something went wrong... Try again.\");\r\n }\r\n }\r\n render() {\r\n return (\r\n
\r\n
\r\n
\r\n

\r\n Ready to dive in?\r\n Subscribe to our Newsletters!\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","C:\\Users\\Amit kumar mishra\\Desktop\\idea-lab\\src\\Logo.js",[],"C:\\Users\\Amit kumar mishra\\Desktop\\idea-lab\\src\\constants\\const.js",[],["61","62"],{"ruleId":"63","replacedBy":"64"},{"ruleId":"65","replacedBy":"66"},{"ruleId":"67","severity":1,"message":"68","line":6,"column":8,"nodeType":"69","messageId":"70","endLine":6,"endColumn":18},{"ruleId":"67","severity":1,"message":"71","line":7,"column":8,"nodeType":"69","messageId":"70","endLine":7,"endColumn":16},{"ruleId":"72","severity":1,"message":"73","line":14,"column":13,"nodeType":"74","endLine":14,"endColumn":25},{"ruleId":"72","severity":1,"message":"73","line":20,"column":13,"nodeType":"74","endLine":23,"endColumn":14},{"ruleId":"72","severity":1,"message":"73","line":26,"column":13,"nodeType":"74","endLine":29,"endColumn":14},{"ruleId":"72","severity":1,"message":"73","line":32,"column":13,"nodeType":"74","endLine":35,"endColumn":14},{"ruleId":"72","severity":1,"message":"73","line":38,"column":13,"nodeType":"74","endLine":41,"endColumn":14},{"ruleId":"72","severity":1,"message":"73","line":44,"column":13,"nodeType":"74","endLine":47,"endColumn":14},{"ruleId":"72","severity":1,"message":"73","line":88,"column":17,"nodeType":"74","endLine":91,"endColumn":18},{"ruleId":"72","severity":1,"message":"73","line":95,"column":17,"nodeType":"74","endLine":98,"endColumn":18},{"ruleId":"72","severity":1,"message":"73","line":102,"column":17,"nodeType":"74","endLine":105,"endColumn":18},{"ruleId":"72","severity":1,"message":"73","line":109,"column":17,"nodeType":"74","endLine":112,"endColumn":18},{"ruleId":"72","severity":1,"message":"73","line":116,"column":17,"nodeType":"74","endLine":119,"endColumn":18},{"ruleId":"75","severity":1,"message":"76","line":58,"column":33,"nodeType":"77","endLine":58,"endColumn":51},{"ruleId":"75","severity":1,"message":"76","line":63,"column":72,"nodeType":"77","endLine":63,"endColumn":90},{"ruleId":"78","severity":1,"message":"79","line":18,"column":13,"nodeType":"80","endLine":18,"endColumn":23},{"ruleId":"63","replacedBy":"81"},{"ruleId":"65","replacedBy":"82"},"no-native-reassign",["83"],"no-negated-in-lhs",["84"],"no-unused-vars","'Letterform' is defined but never used.","Identifier","unusedVar","'Subsform' is defined but never used.","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","JSXOpeningElement","react/jsx-no-duplicate-props","No duplicate props allowed","JSXAttribute","react/no-direct-mutation-state","Do not mutate state directly. Use setState().","MemberExpression",["83"],["84"],"no-global-assign","no-unsafe-negation"] \ No newline at end of file diff --git a/public/manifest.json b/public/manifest.json index 080d6c7..2589615 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,12 +1,13 @@ { - "short_name": "React App", - "name": "Create React App Sample", + "name": "Idea-Lab", + "short_name": "CSS app", + "theme_color": "#000000", + "background_color": "#000000", + "display": "standalone", + "scope": "/", + "start_url": "/", "icons": [ - { - "src": "favicon.ico", - "sizes": "64x64 32x32 24x24 16x16", - "type": "image/x-icon" - }, + { "src": "logo192.png", "type": "image/png", @@ -17,9 +18,6 @@ "type": "image/png", "sizes": "512x512" } - ], - "start_url": ".", - "display": "standalone", - "theme_color": "#000000", - "background_color": "#ffffff" + ] + } diff --git a/src/App.js b/src/App.js index e1d1949..bb30842 100644 --- a/src/App.js +++ b/src/App.js @@ -10,9 +10,9 @@ function App() { return (
); }