Textty
\ No newline at end of file
+Textty
\ No newline at end of file
diff --git a/precache-manifest.b225ddb6aa2c8dc24ee1b0c73981c3a1.js b/precache-manifest.ba6d63d2149f01110e7a6aa4834a5242.js
similarity index 75%
rename from precache-manifest.b225ddb6aa2c8dc24ee1b0c73981c3a1.js
rename to precache-manifest.ba6d63d2149f01110e7a6aa4834a5242.js
index 4fef546..d8180ec 100644
--- a/precache-manifest.b225ddb6aa2c8dc24ee1b0c73981c3a1.js
+++ b/precache-manifest.ba6d63d2149f01110e7a6aa4834a5242.js
@@ -1,6 +1,6 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
- "revision": "eb9f2f0f0c13795d37db6e25d33313e4",
+ "revision": "3e804d03df2bd69b30e6a11ae014e79c",
"url": "/text/index.html"
},
{
@@ -8,7 +8,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/text/static/css/2.b71989ea.chunk.css"
},
{
- "revision": "7867913dcd53f43f66fc",
+ "revision": "d3e48ee1c098b27805d4",
"url": "/text/static/css/main.435d5fe5.chunk.css"
},
{
@@ -20,8 +20,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/text/static/js/3.31c88699.chunk.js"
},
{
- "revision": "7867913dcd53f43f66fc",
- "url": "/text/static/js/main.4e00b617.chunk.js"
+ "revision": "d3e48ee1c098b27805d4",
+ "url": "/text/static/js/main.d173e579.chunk.js"
},
{
"revision": "7617f34c07ae51265f46",
diff --git a/service-worker.js b/service-worker.js
index a9affad..d7f87c5 100644
--- a/service-worker.js
+++ b/service-worker.js
@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
importScripts(
- "/text/precache-manifest.b225ddb6aa2c8dc24ee1b0c73981c3a1.js"
+ "/text/precache-manifest.ba6d63d2149f01110e7a6aa4834a5242.js"
);
self.addEventListener('message', (event) => {
diff --git a/static/js/main.4e00b617.chunk.js b/static/js/main.4e00b617.chunk.js
deleted file mode 100644
index bbbc697..0000000
--- a/static/js/main.4e00b617.chunk.js
+++ /dev/null
@@ -1,2 +0,0 @@
-(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{15:function(e,a,t){},16:function(e,a,t){},19:function(e,a,t){"use strict";t.r(a);var l=t(0),n=t.n(l),c=t(6),o=t.n(c),r=(t(15),t(16),t(3));function s(e){return n.a.createElement("div",null,n.a.createElement("nav",{className:`navbar navbar-expand-lg navbar-${e.mode} bg-${e.mode}`},n.a.createElement("div",{className:"container-fluid"},n.a.createElement(r.b,{className:"navbar-brand",to:"/"},e.title),n.a.createElement("button",{className:"navbar-toggler",type:"button","data-bs-toggle":"collapse","data-bs-target":"#navbarSupportedContent","aria-controls":"navbarSupportedContent","aria-expanded":"false","aria-label":"Toggle navigation"},n.a.createElement("span",{className:"navbar-toggler-icon"})),n.a.createElement("div",{className:"collapse navbar-collapse",id:"navbarSupportedContent"},n.a.createElement("ul",{className:"navbar-nav me-auto mb-2 mb-lg-0"},n.a.createElement("li",{className:"nav-item"},n.a.createElement(r.b,{className:"nav-link active","aria-current":"page",to:"/"},"Home")),n.a.createElement("li",{className:"nav-item"},n.a.createElement(r.b,{className:"nav-link",to:"/about"},e.aboutText))),n.a.createElement("div",{className:`form-check form-switch text-${"light"===e.mode?"dark":"light"}`},n.a.createElement("input",{className:"form-check-input",type:"checkbox",role:"switch",id:"flexSwitchCheckDefault",onClick:e.toggleMode}),n.a.createElement("label",{className:"form-check-label",htmlFor:"flexSwitchCheckDefault"},"light"===e.mode?"Enable Dark Mode":"Enable Light Mode"))))),n.a.createElement("link",{href:"https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css",rel:"stylesheet"}),n.a.createElement("script",{src:"https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"}))}function m(e){const a=e.showAlert,[t,c]=Object(l.useState)(""),[o,r]=Object(l.useState)(""),[s,m]=Object(l.useState)("");return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"container",style:{color:"light"===e.mode?"black":"white"}},n.a.createElement("div",{className:"mb-3"},n.a.createElement("h3",null,e.heading," "),n.a.createElement("label",{htmlFor:"exampleFormControlTextarea1",className:"form-label"}),n.a.createElement("textarea",{className:"form-control",id:"exampleFormControlTextarea1",rows:10,value:t,style:{backgroundColor:"light"===e.mode?"white":"#042743",color:"light"===e.mode?"black":"white"},onChange:e=>{console.log("Handle on change"),c(e.target.value),a("TextBox Changed","success")},defaultValue:""}),n.a.createElement("button",{className:"btn btn-primary my-3 me-2",onClick:()=>{console.log("Handle up click");let e=t.toUpperCase();c(e),a("Coverted to upper case","success")}},"Convert To UpperCase"),n.a.createElement("button",{className:"btn btn-primary my-3 me-2",onClick:()=>{let e=t.toLowerCase();c(e),a("Coverted to lower case","success")}},"Convert To LowerCase"),n.a.createElement("button",{className:"btn btn-primary my-3 ",onClick:()=>{c(""),a("Text Cleared","success")}},"Clear Text"))),n.a.createElement("div",{className:"container",style:{color:"light"===e.mode?"black":"white"}},n.a.createElement("label",{htmlFor:"search",style:{fontSize:"large"}},"Search:"),n.a.createElement("textarea",{className:"form-control",id:"exampleFormControlTextarea1",style:{height:"50px",width:"200px",backgroundColor:"light"===e.mode?"white":"#042743",color:"light"===e.mode?"black":"white"},value:o,onChange:e=>{r(e.target.value),a("TextBox Changed","success")},defaultValue:""}),n.a.createElement("button",{className:"btn btn-primary my-3 ",onClick:()=>{let e=o.toLowerCase();t.toLowerCase().includes(e)?m(`"${o}" is found in text`):m(`"${o}" is not found in text`),a("Operation done","success")}},"Search"),n.a.createElement("div",null),n.a.createElement("label",{style:{color:"light"===e.mode?"black":"white"}},s)),n.a.createElement("div",{className:"container",style:{color:"light"===e.mode?"black":"white"}},n.a.createElement("h3",null,"Text Summary"),n.a.createElement("p",null,(e=>""===e.trim()?0:e.trim().split(/\s+/).length)(t)," words and ",t.length," characters"),n.a.createElement("p",null,.008*t.split(" ").length," minutes to read")),n.a.createElement("div",{className:"container",style:{color:"light"===e.mode?"black":"white"}},n.a.createElement("h4",null,"Preview"),n.a.createElement("p",null,t.length>0?t:"Enter text to preview")))}t(17),t(18);function i(e){return n.a.createElement("div",{className:"container"},n.a.createElement("h1",{style:{color:"light"===e.mode?"black":"white"}},"About Us"),n.a.createElement("div",{className:"accordion",id:"accordionExample",style:{backgroundColor:"light"===e.mode?"#212AA5":"white"}},n.a.createElement("div",{className:"accordion-item"},n.a.createElement("h2",{className:"accordion-header"},n.a.createElement("button",{className:"accordion-button",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapseOne","aria-expanded":"true","aria-controls":"collapseOne"},"Features")),n.a.createElement("div",{id:"collapseOne",className:"accordion-collapse collapse show","data-bs-parent":"#accordionExample"},n.a.createElement("div",{className:"accordion-body"},n.a.createElement("ul",null,n.a.createElement("li",null,"Lower Case"),n.a.createElement("li",null,"Upper Case"),n.a.createElement("li",null,"Clear"),n.a.createElement("li",null,"Seach"),n.a.createElement("li",null,"Preview"),n.a.createElement("li",null,"Light and Dark"))))),n.a.createElement("div",{className:"accordion-item"},n.a.createElement("h2",{className:"accordion-header"},n.a.createElement("button",{className:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapseTwo","aria-expanded":"false","aria-controls":"collapseTwo"},"Overview")),n.a.createElement("div",{id:"collapseTwo",className:"accordion-collapse collapse","data-bs-parent":"#accordionExample"},n.a.createElement("div",{className:"accordion-body"},"Flexible app which can be used to format our text"))),n.a.createElement("div",{className:"accordion-item"},n.a.createElement("h2",{className:"accordion-header"},n.a.createElement("button",{className:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapseThree","aria-expanded":"false","aria-controls":"collapseThree"},"Motto")),n.a.createElement("div",{id:"collapseThree",className:"accordion-collapse collapse","data-bs-parent":"#accordionExample"},n.a.createElement("div",{className:"accordion-body"},"To learn react")))))}function d(e){return n.a.createElement("div",null,e.alert&&n.a.createElement("div",{className:`alert alert-${e.alert.type} alert-dismissible fade show`,role:"alert"},n.a.createElement("strong",null,(e=>{const a=e.toLowerCase();return a.charAt(0).toUpperCase()+a.slice(1)})(e.alert.type))," : ",e.alert.msg))}var u=t(2);var b=function(){const[e,a]=Object(l.useState)("light"),[t,c]=Object(l.useState)(null),o=(e,a)=>{c({msg:e,type:a}),setTimeout(()=>{c(null)},1e3)};return n.a.createElement(n.a.Fragment,null,n.a.createElement(r.a,null,n.a.createElement(s,{title:"TextConverter",aboutText:"About",mode:e,toggleMode:()=>{"light"===e?(a("dark"),document.body.style.backgroundColor="#042743",o("Dark Mode is set","success"),document.title="Textty Dark Mode"):(a("light"),document.body.style.backgroundColor="white",o("Light Mode is set","success"),document.title="Textty Light Mode")}}),n.a.createElement(d,{alert:t}),n.a.createElement("div",{className:"container my-3"},n.a.createElement(u.c,null,n.a.createElement(u.a,{exact:!0,path:"/about",element:n.a.createElement(i,{mode:e})}),n.a.createElement(u.a,{exact:!0,path:"/",element:n.a.createElement(m,{heading:"Enter the text to analyze",mode:e,showAlert:o})})))))};var p=e=>{e&&e instanceof Function&&t.e(3).then(t.bind(null,20)).then(a=>{let{getCLS:t,getFID:l,getFCP:n,getLCP:c,getTTFB:o}=a;t(e),l(e),n(e),c(e),o(e)})};o.a.createRoot(document.getElementById("root")).render(n.a.createElement(n.a.StrictMode,null,n.a.createElement(b,null))),p()},7:function(e,a,t){e.exports=t(19)}},[[7,1,2]]]);
-//# sourceMappingURL=main.4e00b617.chunk.js.map
\ No newline at end of file
diff --git a/static/js/main.4e00b617.chunk.js.map b/static/js/main.4e00b617.chunk.js.map
deleted file mode 100644
index ecd3043..0000000
--- a/static/js/main.4e00b617.chunk.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"sources":["components/Navbar.js","components/TextForm.js","components/About.js","components/Alert.js","App.js","reportWebVitals.js","index.js"],"names":["Navbar","props","React","createElement","className","mode","Link","to","title","type","data-bs-toggle","data-bs-target","aria-controls","aria-expanded","aria-label","id","aria-current","aboutText","role","onClick","toggleMode","htmlFor","href","rel","src","TextForm","showAlert","text","setText","useState","text1","setText1","searchText","setSearchText","Fragment","style","color","heading","rows","value","backgroundColor","onChange","event","console","log","target","defaultValue","handleUpClick","newText","toUpperCase","handleLowClick","toLowerCase","handleClear","fontSize","height","width","searchFor","search","includes","trim","split","length","numberOfWords","About","data-bs-parent","Alert","alert","word","lower","charAt","slice","capitalize","msg","App","setMode","setAlert","message","setTimeout","Router","document","body","Routes","Route","exact","path","element","reportWebVitals","onPerfEntry","Function","__webpack_require__","e","then","bind","_ref","getCLS","getFID","getFCP","getLCP","getTTFB","ReactDOM","createRoot","getElementById","render","StrictMode"],"mappings":"mMAGe,SAASA,EAAOC,GAC7B,OACEC,IAAAC,cAAA,WACID,IAAAC,cAAA,OAAKC,4CAA6CH,EAAMI,WAAWJ,EAAMI,QACzEH,IAAAC,cAAA,OAAKC,UAAU,mBACbF,IAAAC,cAACG,IAAI,CAACF,UAAU,eAAeG,GAAG,KAC/BN,EAAMO,OAETN,IAAAC,cAAA,UACEC,UAAU,iBACVK,KAAK,SACLC,iBAAe,WACfC,iBAAe,0BACfC,gBAAc,yBACdC,gBAAc,QACdC,aAAW,qBAEXZ,IAAAC,cAAA,QAAMC,UAAU,yBAElBF,IAAAC,cAAA,OAAKC,UAAU,2BAA2BW,GAAG,0BAC3Cb,IAAAC,cAAA,MAAIC,UAAU,mCACZF,IAAAC,cAAA,MAAIC,UAAU,YACZF,IAAAC,cAACG,IAAI,CAACF,UAAU,kBAAkBY,eAAa,OAAOT,GAAG,KAAI,SAI/DL,IAAAC,cAAA,MAAIC,UAAU,YACZF,IAAAC,cAACG,IAAI,CAACF,UAAU,WAAWG,GAAG,UAC3BN,EAAMgB,aAIbf,IAAAC,cAAA,OAAKC,yCAAyD,UAAfH,EAAMI,KAAmB,OAAS,WACjFH,IAAAC,cAAA,SAAOC,UAAU,mBAAmBK,KAAK,WAAWS,KAAK,SAASH,GAAG,yBAAyBI,QAASlB,EAAMmB,aAC7GlB,IAAAC,cAAA,SAAOC,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CvClG4D,MAZSC,IAClBA,GAAeA,aAAuBC,UACxCC,EAAAC,EAAA,GAAAC,KAAAF,EAAAG,KAAA,UAAqBD,KAAKE,IAAiD,IAAhDC,OAAEA,EAAMC,OAAEA,EAAMC,OAAEA,EAAMC,OAAEA,EAAMC,QAAEA,GAASL,EACpEC,EAAOP,GACPQ,EAAOR,GACPS,EAAOT,GACPU,EAAOV,GACPW,EAAQX,MCDDY,IAASC,WAAWrB,SAASsB,eAAe,SACpDC,OACHpG,IAAAC,cAACD,IAAMqG,WAAU,KACfrG,IAAAC,cAACsE,EAAG,QAORa","file":"static/js/main.4e00b617.chunk.js","sourcesContent":["import React from 'react';\r\nimport { Link } from 'react-router-dom';\r\n\r\nexport default function Navbar(props) {\r\n return (\r\n
\r\n \r\n \r\n\r\n\r\n
\r\n )\r\n}\r\n\r\n// a\r\n","import React, {useState} from 'react'\r\n\r\nexport default function TextForm(props) {\r\n const showAlert = props.showAlert;\r\n //function for converting into upper case\r\n\r\n const handleUpClick = () => {\r\n console.log(\"Handle up click\");\r\n let newText = text.toUpperCase();\r\n setText(newText); \r\n showAlert(\"Coverted to upper case\", \"success\");\r\n }\r\n\r\n //function for change in the first text box\r\n\r\n const handleOnChange = (event) => {\r\n console.log(\"Handle on change\");\r\n setText(event.target.value);\r\n showAlert(\"TextBox Changed\", \"success\");\r\n }\r\n\r\n //function for changing in the second text box\r\n\r\n const handleOnChangeSearch = (event) => {\r\n setText1(event.target.value);\r\n showAlert(\"TextBox Changed\", \"success\");\r\n }\r\n //function for converting into lower case\r\n\r\n const handleLowClick = () => {\r\n let newText = text.toLowerCase();\r\n setText(newText);\r\n showAlert(\"Coverted to lower case\", \"success\");\r\n }\r\n\r\n //function to clear text\r\n const handleClear = () =>{\r\n setText('');\r\n showAlert(\"Text Cleared\", \"success\");\r\n }\r\n //function for searching whether a text is found in the larger text\r\n\r\n const searchFor = () => {\r\n let search = text1.toLowerCase();\r\n let large = text.toLowerCase();\r\n if(large.includes(search)){\r\n setSearchText(`\"${text1}\" is found in text`);\r\n }\r\n else{\r\n setSearchText(`\"${text1}\" is not found in text`);\r\n }\r\n showAlert(\"Operation done\", \"success\");\r\n }\r\n\r\n const numberOfWords = (text) => {\r\n if (text.trim() === \"\") {\r\n return 0;\r\n }\r\n return text.trim().split(/\\s+/).length;\r\n };\r\n\r\n //use state\r\n const [text, setText] = useState('');\r\n const [text1, setText1] = useState('');\r\n const [searchText, setSearchText] = useState('');\r\n\r\n return (\r\n <>\r\n
\r\n
\r\n
{props.heading}
\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
Text Summary
\r\n
{numberOfWords(text)} words and {text.length} characters
\r\n
{0.008 * text.split(\" \").length} minutes to read
\r\n
\r\n
\r\n
Preview
\r\n
{text.length > 0 ? text :\"Enter text to preview\"}
\r\n
\r\n >\r\n\r\n )\r\n}\r\n","import React, {useState} from 'react';\r\nimport 'bootstrap/dist/css/bootstrap.min.css';\r\nimport 'bootstrap/dist/js/bootstrap.bundle.min';\r\n\r\nexport default function About(props) {\r\n return (\r\n
\r\n
About Us
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
Lower Case
\r\n
Upper Case
\r\n
Clear
\r\n
Seach
\r\n
Preview
\r\n
Light and Dark
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n Flexible app which can be used to format our text\r\n
\r\n );\r\n}\r\n","import './App.css';\nimport React, { useState } from 'react';\n\nimport Navbar from './components/Navbar';\nimport TextForm from './components/TextForm';\nimport About from './components/About';\nimport Alert from './components/Alert';\n\nimport {\n BrowserRouter as Router, \n Routes,\n Route\n} from \"react-router-dom\";\n\nfunction App() {\n const [mode, setMode] = useState('light');\n const [alert, setAlert] = useState(null);\n\n const showAlert = (message, type) =>{\n setAlert({\n msg :message,\n type :type\n })\n setTimeout(() =>{\n setAlert(null);\n }, 1000);\n }\n\n const toggleMode = () =>{\n if(mode === 'light'){\n setMode('dark');\n document.body.style.backgroundColor = '#042743';\n showAlert(\"Dark Mode is set\", \"success\");\n document.title = 'Textty Dark Mode';\n }\n else {\n setMode('light');\n document.body.style.backgroundColor = 'white';\n showAlert(\"Light Mode is set\", \"success\");\n document.title = 'Textty Light Mode';\n }\n }\n\n return (\n <>\n \n \n \n
\n \n }>\n }/>\n \n
\n \n >\n );\n}\n\nexport default App;\n","const reportWebVitals = onPerfEntry => {\n if (onPerfEntry && onPerfEntry instanceof Function) {\n import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {\n getCLS(onPerfEntry);\n getFID(onPerfEntry);\n getFCP(onPerfEntry);\n getLCP(onPerfEntry);\n getTTFB(onPerfEntry);\n });\n }\n};\n\nexport default reportWebVitals;\n","import React from 'react';\nimport ReactDOM from 'react-dom/client';\nimport './index.css';\nimport App from './App';\nimport reportWebVitals from './reportWebVitals';\n\nconst root = ReactDOM.createRoot(document.getElementById('root'));\nroot.render(\n \n \n \n);\n\n// If you want to start measuring performance in your app, pass a function\n// to log results (for example: reportWebVitals(console.log))\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\nreportWebVitals();\n"],"sourceRoot":""}
\ No newline at end of file
diff --git a/static/js/main.d173e579.chunk.js b/static/js/main.d173e579.chunk.js
new file mode 100644
index 0000000..cf9f77b
--- /dev/null
+++ b/static/js/main.d173e579.chunk.js
@@ -0,0 +1,2 @@
+(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{15:function(e,a,t){},16:function(e,a,t){},19:function(e,a,t){"use strict";t.r(a);var l=t(0),o=t.n(l),n=t(6),c=t.n(n),r=(t(15),t(16),t(3));function s(e){return o.a.createElement("div",null,o.a.createElement("nav",{className:`navbar navbar-expand-lg navbar-${e.mode} bg-${e.mode}`},o.a.createElement("div",{className:"container-fluid"},o.a.createElement(r.b,{className:"navbar-brand",to:"/"},e.title),o.a.createElement("button",{className:"navbar-toggler",type:"button","data-bs-toggle":"collapse","data-bs-target":"#navbarSupportedContent","aria-controls":"navbarSupportedContent","aria-expanded":"false","aria-label":"Toggle navigation"},o.a.createElement("span",{className:"navbar-toggler-icon"})),o.a.createElement("div",{className:"collapse navbar-collapse",id:"navbarSupportedContent"},o.a.createElement("ul",{className:"navbar-nav me-auto mb-2 mb-lg-0"},o.a.createElement("li",{className:"nav-item"},o.a.createElement(r.b,{className:"nav-link active","aria-current":"page",to:"/"},"Home")),o.a.createElement("li",{className:"nav-item"},o.a.createElement(r.b,{className:"nav-link",to:"/about"},e.aboutText))),o.a.createElement("div",{className:`form-check form-switch text-${"light"===e.mode?"dark":"light"}`},o.a.createElement("input",{className:"form-check-input",type:"checkbox",role:"switch",id:"flexSwitchCheckDefault",onClick:e.toggleMode}),o.a.createElement("label",{className:"form-check-label",htmlFor:"flexSwitchCheckDefault"},"light"===e.mode?"Enable Dark Mode":"Enable Light Mode"))))),o.a.createElement("link",{href:"https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css",rel:"stylesheet"}),o.a.createElement("script",{src:"https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"}))}function m(e){const a=e.showAlert,t=e=>""===e.trim()?0:e.trim().split(/\s+/).length,[n,c]=Object(l.useState)(""),[r,s]=Object(l.useState)(""),[m,i]=Object(l.useState)("");return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"container",style:{color:"light"===e.mode?"black":"white"}},o.a.createElement("div",null,o.a.createElement("h3",{className:"mb-3",style:{marginTop:"40px",padding:"10px",textAlign:"center"}},e.heading),o.a.createElement("label",{htmlFor:"exampleFormControlTextarea1",className:"form-label"}),o.a.createElement("textarea",{className:"form-control",id:"exampleFormControlTextarea1",rows:10,value:n,style:{backgroundColor:"light"===e.mode?"white":"#042743",color:"light"===e.mode?"black":"white"},onChange:e=>{console.log("Handle on change"),c(e.target.value),a("TextBox Changed","success")},defaultValue:""}),o.a.createElement("button",{className:"btn btn-primary my-3 mx-2",disabled:0===n.length,onClick:()=>{console.log("Handle up click");let e=n.toUpperCase();c(e),a("Coverted to upper case","success")}},"Convert To UpperCase"),o.a.createElement("button",{className:"btn btn-primary my-3 mx-2",disabled:0===n.length,onClick:()=>{let e=n.toLowerCase();c(e),a("Coverted to lower case","success")}},"Convert To LowerCase"),o.a.createElement("button",{className:"btn btn-primary my-3 mx-2",disabled:0===n.length,onClick:()=>{c(""),a("Text Cleared","success")}},"Clear Text"))),o.a.createElement("div",{className:"container",style:{color:"light"===e.mode?"black":"white"}},o.a.createElement("label",{htmlFor:"search",style:{fontSize:"large"}},"Search:"),o.a.createElement("textarea",{className:"form-control",id:"exampleFormControlTextarea1",style:{height:"50px",width:"200px",backgroundColor:"light"===e.mode?"white":"#042743",color:"light"===e.mode?"black":"white"},value:r,onChange:e=>{s(e.target.value),a("TextBox Changed","success")},defaultValue:""}),o.a.createElement("button",{className:"btn btn-primary my-3 ",disabled:0===n.length||0===r.length,onClick:()=>{let e=r.toLowerCase();n.toLowerCase().includes(e)?i(`"${r}" is found in text`):i(`"${r}" is not found in text`),a("Operation done","success")}},"Search"),o.a.createElement("div",null),o.a.createElement("label",{style:{color:"light"===e.mode?"black":"white"}},m)),o.a.createElement("div",{className:"container",style:{color:"light"===e.mode?"black":"white"}},o.a.createElement("h3",null,"Text Summary"),o.a.createElement("p",null,t(n)," words and ",n.length," characters"),o.a.createElement("p",null,.008*t(n)," minutes to read")),o.a.createElement("div",{className:"container",style:{color:"light"===e.mode?"black":"white"}},o.a.createElement("h4",null,"Preview"),o.a.createElement("p",null,n.length>0?n:"Enter text to preview")))}t(17),t(18);function i(e){e.mode,e.mode;const a={backgroundColor:"light"===e.mode?"#f8f9fa":"#212529"};return o.a.createElement("div",{className:"container"},o.a.createElement("h1",{style:{color:"light"===e.mode?"black":"white"}},"About Us"),o.a.createElement("div",{className:"accordion",id:"accordionExample",style:a},o.a.createElement("div",{className:"accordion-item",style:{backgroundColor:"light"===e.mode?"white":"#343a40"}},o.a.createElement("h2",{className:"accordion-header"},o.a.createElement("button",{className:"accordion-button",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapseOne","aria-expanded":"true","aria-controls":"collapseOne",style:{backgroundColor:"light"===e.mode?"#e9ecef":"#495057",color:"light"===e.mode?"black":"white"}},"Features")),o.a.createElement("div",{id:"collapseOne",className:"accordion-collapse collapse show","data-bs-parent":"#accordionExample"},o.a.createElement("div",{className:"accordion-body",style:{color:"light"===e.mode?"black":"white"}},o.a.createElement("ul",null,o.a.createElement("li",null,"Lower Case"),o.a.createElement("li",null,"Upper Case"),o.a.createElement("li",null,"Clear"),o.a.createElement("li",null,"Search"),o.a.createElement("li",null,"Preview"),o.a.createElement("li",null,"Light and Dark"))))),o.a.createElement("div",{className:"accordion-item",style:{backgroundColor:"light"===e.mode?"white":"#343a40"}},o.a.createElement("h2",{className:"accordion-header"},o.a.createElement("button",{className:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapseTwo","aria-expanded":"false","aria-controls":"collapseTwo",style:{backgroundColor:"light"===e.mode?"#e9ecef":"#495057",color:"light"===e.mode?"black":"white"}},"Overview")),o.a.createElement("div",{id:"collapseTwo",className:"accordion-collapse collapse","data-bs-parent":"#accordionExample"},o.a.createElement("div",{className:"accordion-body",style:{color:"light"===e.mode?"black":"white"}},"Flexible app which can be used to format our text"))),o.a.createElement("div",{className:"accordion-item",style:{backgroundColor:"light"===e.mode?"white":"#343a40"}},o.a.createElement("h2",{className:"accordion-header"},o.a.createElement("button",{className:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapseThree","aria-expanded":"false","aria-controls":"collapseThree",style:{backgroundColor:"light"===e.mode?"#e9ecef":"#495057",color:"light"===e.mode?"black":"white"}},"Motto")),o.a.createElement("div",{id:"collapseThree",className:"accordion-collapse collapse","data-bs-parent":"#accordionExample"},o.a.createElement("div",{className:"accordion-body",style:{color:"light"===e.mode?"black":"white"}},"To learn react")))))}function d(e){return o.a.createElement("div",null,e.alert&&o.a.createElement("div",{className:`alert alert-${e.alert.type} alert-dismissible fade show`,role:"alert"},o.a.createElement("strong",null,(e=>{const a=e.toLowerCase();return a.charAt(0).toUpperCase()+a.slice(1)})(e.alert.type))," : ",e.alert.msg))}var u=t(2);var b=function(){const[e,a]=Object(l.useState)("light"),[t,n]=Object(l.useState)(null),c=(e,a)=>{n({msg:e,type:a}),setTimeout(()=>{n(null)},1e3)};return o.a.createElement(o.a.Fragment,null,o.a.createElement(r.a,null,o.a.createElement(s,{title:"TextConverter",aboutText:"About",mode:e,toggleMode:()=>{"light"===e?(a("dark"),document.body.style.backgroundColor="#042743",c("Dark Mode is set","success")):(a("light"),document.body.style.backgroundColor="white",c("Light Mode is set","success"))}}),o.a.createElement(d,{alert:t}),o.a.createElement("div",{className:"container my-3"},o.a.createElement(u.c,null,o.a.createElement(u.a,{exact:!0,path:"/about",element:o.a.createElement(i,{mode:e})}),o.a.createElement(u.a,{exact:!0,path:"/",element:o.a.createElement(m,{heading:"Try TextConverter",mode:e,showAlert:c})})))))};var h=e=>{e&&e instanceof Function&&t.e(3).then(t.bind(null,20)).then(a=>{let{getCLS:t,getFID:l,getFCP:o,getLCP:n,getTTFB:c}=a;t(e),l(e),o(e),n(e),c(e)})};c.a.createRoot(document.getElementById("root")).render(o.a.createElement(o.a.StrictMode,null,o.a.createElement(b,null))),h()},7:function(e,a,t){e.exports=t(19)}},[[7,1,2]]]);
+//# sourceMappingURL=main.d173e579.chunk.js.map
\ No newline at end of file
diff --git a/static/js/main.d173e579.chunk.js.map b/static/js/main.d173e579.chunk.js.map
new file mode 100644
index 0000000..f667a04
--- /dev/null
+++ b/static/js/main.d173e579.chunk.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["components/Navbar.js","components/TextForm.js","components/About.js","components/Alert.js","App.js","reportWebVitals.js","index.js"],"names":["Navbar","props","React","createElement","className","mode","Link","to","title","type","data-bs-toggle","data-bs-target","aria-controls","aria-expanded","aria-label","id","aria-current","aboutText","role","onClick","toggleMode","htmlFor","href","rel","src","TextForm","showAlert","numberOfWords","text","trim","split","length","setText","useState","text1","setText1","searchText","setSearchText","Fragment","style","color","marginTop","padding","textAlign","heading","rows","value","backgroundColor","onChange","event","console","log","target","defaultValue","disabled","handleUpClick","newText","toUpperCase","handleLowClick","toLowerCase","handleClear","fontSize","height","width","searchFor","search","includes","About","accordionStyle","data-bs-parent","Alert","alert","word","lower","charAt","slice","capitalize","msg","App","setMode","setAlert","message","setTimeout","Router","document","body","Routes","Route","exact","path","element","reportWebVitals","onPerfEntry","Function","__webpack_require__","e","then","bind","_ref","getCLS","getFID","getFCP","getLCP","getTTFB","ReactDOM","createRoot","getElementById","render","StrictMode"],"mappings":"mMAGe,SAASA,EAAOC,GAC7B,OACEC,IAAAC,cAAA,WACID,IAAAC,cAAA,OAAKC,4CAA6CH,EAAMI,WAAWJ,EAAMI,QACzEH,IAAAC,cAAA,OAAKC,UAAU,mBACbF,IAAAC,cAACG,IAAI,CAACF,UAAU,eAAeG,GAAG,KAC/BN,EAAMO,OAETN,IAAAC,cAAA,UACEC,UAAU,iBACVK,KAAK,SACLC,iBAAe,WACfC,iBAAe,0BACfC,gBAAc,yBACdC,gBAAc,QACdC,aAAW,qBAEXZ,IAAAC,cAAA,QAAMC,UAAU,yBAElBF,IAAAC,cAAA,OAAKC,UAAU,2BAA2BW,GAAG,0BAC3Cb,IAAAC,cAAA,MAAIC,UAAU,mCACZF,IAAAC,cAAA,MAAIC,UAAU,YACZF,IAAAC,cAACG,IAAI,CAACF,UAAU,kBAAkBY,eAAa,OAAOT,GAAG,KAAI,SAI/DL,IAAAC,cAAA,MAAIC,UAAU,YACZF,IAAAC,cAACG,IAAI,CAACF,UAAU,WAAWG,GAAG,UAC3BN,EAAMgB,aAIbf,IAAAC,cAAA,OAAKC,yCAAyD,UAAfH,EAAMI,KAAmB,OAAS,WACjFH,IAAAC,cAAA,SAAOC,UAAU,mBAAmBK,KAAK,WAAWS,KAA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,SAASsB,eAAe,SACpDC,OACHzG,IAAAC,cAACD,IAAM0G,WAAU,KACf1G,IAAAC,cAAC2E,EAAG,QAORa","file":"static/js/main.d173e579.chunk.js","sourcesContent":["import React from 'react';\r\nimport { Link } from 'react-router-dom';\r\n\r\nexport default function Navbar(props) {\r\n return (\r\n
\r\n \r\n \r\n\r\n\r\n
\r\n )\r\n}\r\n\r\n// a\r\n","import React, {useState} from 'react'\r\n\r\nexport default function TextForm(props) {\r\n const showAlert = props.showAlert;\r\n //function for converting into upper case\r\n\r\n const handleUpClick = () => {\r\n console.log(\"Handle up click\");\r\n let newText = text.toUpperCase();\r\n setText(newText); \r\n showAlert(\"Coverted to upper case\", \"success\");\r\n }\r\n\r\n //function for change in the first text box\r\n\r\n const handleOnChange = (event) => {\r\n console.log(\"Handle on change\");\r\n setText(event.target.value);\r\n showAlert(\"TextBox Changed\", \"success\");\r\n }\r\n\r\n //function for changing in the second text box\r\n\r\n const handleOnChangeSearch = (event) => {\r\n setText1(event.target.value);\r\n showAlert(\"TextBox Changed\", \"success\");\r\n }\r\n //function for converting into lower case\r\n\r\n const handleLowClick = () => {\r\n let newText = text.toLowerCase();\r\n setText(newText);\r\n showAlert(\"Coverted to lower case\", \"success\");\r\n }\r\n\r\n //function to clear text\r\n const handleClear = () =>{\r\n setText('');\r\n showAlert(\"Text Cleared\", \"success\");\r\n }\r\n //function for searching whether a text is found in the larger text\r\n\r\n const searchFor = () => {\r\n let search = text1.toLowerCase();\r\n let large = text.toLowerCase();\r\n if(large.includes(search)){\r\n setSearchText(`\"${text1}\" is found in text`);\r\n }\r\n else{\r\n setSearchText(`\"${text1}\" is not found in text`);\r\n }\r\n showAlert(\"Operation done\", \"success\");\r\n }\r\n\r\n const numberOfWords = (text) => {\r\n if (text.trim() === \"\") {\r\n return 0;\r\n }\r\n return text.trim().split(/\\s+/).length;\r\n };\r\n\r\n //use state\r\n const [text, setText] = useState('');\r\n const [text1, setText1] = useState('');\r\n const [searchText, setSearchText] = useState('');\r\n\r\n return (\r\n <>\r\n
\r\n
\r\n
\r\n {props.heading}\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
Text Summary
\r\n
{numberOfWords(text)} words and {text.length} characters
\r\n
{0.008 * numberOfWords(text)} minutes to read
\r\n
\r\n
\r\n
Preview
\r\n
{text.length > 0 ? text :\"Enter text to preview\"}
\r\n );\r\n}\r\n","import './App.css';\nimport React, { useState } from 'react';\n\nimport Navbar from './components/Navbar';\nimport TextForm from './components/TextForm';\nimport About from './components/About';\nimport Alert from './components/Alert';\n\nimport {\n BrowserRouter as Router, \n Routes,\n Route\n} from \"react-router-dom\";\n\nfunction App() {\n const [mode, setMode] = useState('light');\n const [alert, setAlert] = useState(null);\n\n const showAlert = (message, type) =>{\n setAlert({\n msg :message,\n type :type\n })\n setTimeout(() =>{\n setAlert(null);\n }, 1000);\n }\n\n const toggleMode = () =>{\n if(mode === 'light'){\n setMode('dark');\n document.body.style.backgroundColor = '#042743';\n showAlert(\"Dark Mode is set\", \"success\");\n // document.title = 'Textty Dark Mode';\n }\n else {\n setMode('light');\n document.body.style.backgroundColor = 'white';\n showAlert(\"Light Mode is set\", \"success\");\n // document.title = 'Textty Light Mode';\n }\n }\n\n return (\n <>\n \n \n \n
\n \n }>\n }/>\n \n
\n \n >\n );\n}\n\nexport default App;\n","const reportWebVitals = onPerfEntry => {\n if (onPerfEntry && onPerfEntry instanceof Function) {\n import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {\n getCLS(onPerfEntry);\n getFID(onPerfEntry);\n getFCP(onPerfEntry);\n getLCP(onPerfEntry);\n getTTFB(onPerfEntry);\n });\n }\n};\n\nexport default reportWebVitals;\n","import React from 'react';\nimport ReactDOM from 'react-dom/client';\nimport './index.css';\nimport App from './App';\nimport reportWebVitals from './reportWebVitals';\n\nconst root = ReactDOM.createRoot(document.getElementById('root'));\nroot.render(\n \n \n \n);\n\n// If you want to start measuring performance in your app, pass a function\n// to log results (for example: reportWebVitals(console.log))\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\nreportWebVitals();\n"],"sourceRoot":""}
\ No newline at end of file