Skip to content

Commit ab9bbbd

Browse files
committed
Format more code
1 parent df3aa76 commit ab9bbbd

23 files changed

+1612
-1413
lines changed

docs/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Endless Simple Idle Game using React
22

3-
This app is an endless idle game written in JavaScript using React templates. You earn points when you click on the button.
3+
This app is an endless idle game written in JavaScript using React templates. You earn points when you click on the button.
44
Try it on [CodeSandbox](https://codesandbox.io/p/github/lulunac27a/react-endless-simple-idle-game/)
55

66
## Running The App
@@ -12,8 +12,8 @@ Try it on [CodeSandbox](https://codesandbox.io/p/github/lulunac27a/react-endless
1212

1313
## Running Unit Tests
1414

15-
Run `npm run test` to run unit tests after installing dependencies.
15+
Run `npm run test` to run unit tests after installing dependencies.
1616

1717
## Building The App
1818

19-
Run `npm run build` to build the app for production mode and generates the `build` folder with minified code.
19+
Run `npm run build` to build the app for production mode and generates the `build` folder with minified code.

generate-react-cli.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
2-
"usesTypeScript": false,
3-
"usesStyledComponents": false,
4-
"testLibrary": "Testing Library",
5-
"component": {
6-
"default": {
7-
"path": "src/components",
8-
"withStyle": true,
9-
"withTest": true,
10-
"withStory": true,
11-
"withLazy": true
12-
}
13-
},
14-
"usesCssModule": true,
15-
"cssPreprocessor": "css"
2+
"usesTypeScript": false,
3+
"usesStyledComponents": false,
4+
"testLibrary": "Testing Library",
5+
"component": {
6+
"default": {
7+
"path": "src/components",
8+
"withStyle": true,
9+
"withTest": true,
10+
"withStory": true,
11+
"withLazy": true
12+
}
13+
},
14+
"usesCssModule": true,
15+
"cssPreprocessor": "css"
1616
}

package.json

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
{
2-
"name": "react-endless-simple-idle-game",
3-
"version": "1.8.0",
4-
"private": true,
5-
"dependencies": {
6-
"@testing-library/jest-dom": "^6.5.0",
7-
"@testing-library/react": "^16.0.0",
8-
"@testing-library/user-event": "^14.5.2",
9-
"ajv": "^8.17.1",
10-
"react": "^19.0.0",
11-
"react-circular-progressbar": "^2.1.0",
12-
"react-dom": "^19.0.0",
13-
"react-scripts": "5.0.1",
14-
"web-vitals": "^5.0.0"
15-
},
16-
"prettier": {
17-
"singleQuote": true
18-
},
19-
"scripts": {
20-
"start": "react-scripts start",
21-
"build": "react-scripts build",
22-
"test": "react-scripts test",
23-
"eject": "react-scripts eject"
24-
},
25-
"eslintConfig": {
26-
"extends": [
27-
"react-app",
28-
"react-app/jest"
29-
]
30-
},
31-
"browserslist": {
32-
"production": [
33-
">0.2%",
34-
"not dead",
35-
"not op_mini all"
36-
],
37-
"development": [
38-
"last 1 chrome version",
39-
"last 1 firefox version",
40-
"last 1 safari version"
41-
]
42-
}
2+
"name": "react-endless-simple-idle-game",
3+
"version": "1.8.0",
4+
"private": true,
5+
"dependencies": {
6+
"@testing-library/jest-dom": "^6.5.0",
7+
"@testing-library/react": "^16.0.0",
8+
"@testing-library/user-event": "^14.5.2",
9+
"ajv": "^8.17.1",
10+
"react": "^19.0.0",
11+
"react-circular-progressbar": "^2.1.0",
12+
"react-dom": "^19.0.0",
13+
"react-scripts": "5.0.1",
14+
"web-vitals": "^5.0.0"
15+
},
16+
"prettier": {
17+
"singleQuote": true
18+
},
19+
"scripts": {
20+
"start": "react-scripts start",
21+
"build": "react-scripts build",
22+
"test": "react-scripts test",
23+
"eject": "react-scripts eject"
24+
},
25+
"eslintConfig": {
26+
"extends": [
27+
"react-app",
28+
"react-app/jest"
29+
]
30+
},
31+
"browserslist": {
32+
"production": [
33+
">0.2%",
34+
"not dead",
35+
"not op_mini all"
36+
],
37+
"development": [
38+
"last 1 chrome version",
39+
"last 1 firefox version",
40+
"last 1 safari version"
41+
]
42+
}
4343
}

public/index.html

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="utf-8" />
5-
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1" />
7-
<meta name="theme-color" content="#000000" />
8-
<meta
9-
name="description"
10-
content="Simple endless idle game using React framework"
11-
/>
12-
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
14-
<title>Endless Simple Idle Game</title>
15-
</head>
16-
<body>
17-
<noscript>You need to enable JavaScript to run this app.</noscript>
18-
<!--render root content-->
19-
<div id="root"></div>
20-
</body>
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
<meta name="theme-color" content="#000000" />
8+
<meta
9+
name="description"
10+
content="Simple endless idle game using React framework"
11+
/>
12+
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
14+
<title>Endless Simple Idle Game</title>
15+
</head>
16+
<body>
17+
<noscript>You need to enable JavaScript to run this app.</noscript>
18+
<!--render root content-->
19+
<div id="root"></div>
20+
</body>
2121
</html>

public/manifest.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
{
2-
"short_name": "Endless Simple Idle Game",
3-
"name": "Endless Simple Idle Game using React",
4-
"icons": [
5-
{
6-
"src": "favicon.ico",
7-
"sizes": "64x64 32x32 24x24 16x16",
8-
"type": "image/x-icon"
9-
},
10-
{
11-
"src": "logo192.png",
12-
"type": "image/png",
13-
"sizes": "192x192"
14-
},
15-
{
16-
"src": "logo512.png",
17-
"type": "image/png",
18-
"sizes": "512x512"
19-
}
20-
],
21-
"start_url": ".",
22-
"display": "standalone",
23-
"theme_color": "#000000",
24-
"background_color": "#ffffff"
2+
"short_name": "Endless Simple Idle Game",
3+
"name": "Endless Simple Idle Game using React",
4+
"icons": [
5+
{
6+
"src": "favicon.ico",
7+
"sizes": "64x64 32x32 24x24 16x16",
8+
"type": "image/x-icon"
9+
},
10+
{
11+
"src": "logo192.png",
12+
"type": "image/png",
13+
"sizes": "192x192"
14+
},
15+
{
16+
"src": "logo512.png",
17+
"type": "image/png",
18+
"sizes": "512x512"
19+
}
20+
],
21+
"start_url": ".",
22+
"display": "standalone",
23+
"theme_color": "#000000",
24+
"background_color": "#ffffff"
2525
}

src/App.css

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
.App {
2-
/*app content*/
3-
text-align: center; /*center text for whole app*/
2+
/*app content*/
3+
text-align: center; /*center text for whole app*/
44
}
55

66
.App-header {
7-
/*app header*/
8-
background-color: #208040;
9-
min-height: 10vh; /*set height to 10% of viewpoint height*/
10-
display: flex;
11-
flex-direction: column;
12-
align-items: center;
13-
justify-content: center;
14-
font-size: calc(10px + 2vmin);
15-
color: white;
7+
/*app header*/
8+
background-color: #208040;
9+
min-height: 10vh; /*set height to 10% of viewpoint height*/
10+
display: flex;
11+
flex-direction: column;
12+
align-items: center;
13+
justify-content: center;
14+
font-size: calc(10px + 2vmin);
15+
color: white;
1616
}
1717

1818
#points-display,
1919
#level-display {
20-
font-weight: bold; /*bold the numeric values*/
20+
font-weight: bold; /*bold the numeric values*/
2121
}
2222

2323
p {
24-
line-height: 120%; /*add some line spacing between paragraphs*/
24+
line-height: 120%; /*add some line spacing between paragraphs*/
2525
}

0 commit comments

Comments
 (0)