Skip to content

Commit d48d489

Browse files
committed
cleanup the code
1 parent 29219ba commit d48d489

File tree

11 files changed

+5
-426
lines changed

11 files changed

+5
-426
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"dependencies": {
1111
"bootstrap": "^4.5.0",
12-
"gatsby": "^2.0.76",
12+
"gatsby": "^2.23.0",
1313
"gatsby-plugin-feed": "^2.0.8",
1414
"gatsby-plugin-google-analytics": "^2.0.5",
1515
"gatsby-plugin-manifest": "^2.0.5",

public/README.md

Lines changed: 0 additions & 37 deletions
This file was deleted.

public/manifest.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/App.js

Lines changed: 0 additions & 137 deletions
This file was deleted.

src/bootstrap.min.css

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/components/data.js

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,4 @@
1-
/*export const title =
2-
{
3-
"Javascript": {
4-
"introduction": {
5-
"Javascript Objects" : "Javascript Objects",
6-
"Prototypal inheritance":"Prototypal inheritance",
7-
"Scoping and hosting":"Scoping and hosting",
8-
"Closures":"Closures",
9-
"JavaScript Higher-Order Functions":"JavaScript Higher-Order Functions",
10-
"The event loop":"The event loop",
11-
"Event bubbling":"Event bubbling",
12-
"Apply, call, and bind":"Apply, call, and bind",
13-
"Callbacks and promises, async/await":"Callbacks and promises, async/await",
14-
"Variable and function hoisting":"Callbacks and promises, async/await",
15-
"Currying":"Currying",
16-
"localstorage":"Currying",
17-
"array fucntions":"Map, filter, reduce , sort of arrays"
18-
},
19-
"design pattern": {
20-
"Decorator" : "Decorator",
21-
"Factory":"Factory",
22-
"Singleton":"Singleton"
23-
}
24-
}
25-
}; */
26-
27-
export const titleMetaData =
1+
const titleMetaData =
282
[
293
{
304
"labelTitle": "Introduction",
@@ -147,3 +121,5 @@ export const titleMetaData =
147121
]
148122
}
149123
];
124+
125+
export default titleMetaData;

src/components/main/Main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Link } from 'gatsby';
33

44
const Main = (props) => {
55
const titleMetaData = props.titleMetaData;
6+
if(!titleMetaData) return null
67

78
return(
89
<Fragment>

src/content/javascript-objects.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/index.html

Lines changed: 0 additions & 36 deletions
This file was deleted.

src/index.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy