Skip to content

Commit eb957d1

Browse files
committed
📦 feat: init project with react and typescript
1 parent 73c529e commit eb957d1

File tree

12 files changed

+16116
-1
lines changed

12 files changed

+16116
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@
2020

2121
npm-debug.log*
2222
yarn-debug.log*
23-
yarn-error.log*
23+
yarn-error.log*
24+
*.log

package-lock.json

Lines changed: 15947 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"name": "crypto-view",
3+
"version": "0.1.0",
4+
"private": true,
5+
"dependencies": {
6+
"@testing-library/jest-dom": "^5.11.5",
7+
"@testing-library/react": "^11.1.1",
8+
"@testing-library/user-event": "^12.2.0",
9+
"@types/jest": "^26.0.15",
10+
"@types/node": "^14.14.6",
11+
"@types/react": "^16.9.55",
12+
"@types/react-dom": "^16.9.9",
13+
"axios": "^0.21.0",
14+
"lightweight-charts": "^3.1.5",
15+
"react": "^17.0.1",
16+
"react-dom": "^17.0.1",
17+
"react-scripts": "4.0.0",
18+
"typescript": "^4.0.5",
19+
"web-vitals": "^0.2.4"
20+
},
21+
"scripts": {
22+
"start": "react-scripts start",
23+
"build": "react-scripts build",
24+
"test": "react-scripts test",
25+
"eject": "react-scripts eject"
26+
},
27+
"eslintConfig": {
28+
"extends": [
29+
"react-app",
30+
"react-app/jest"
31+
]
32+
},
33+
"browserslist": {
34+
"production": [
35+
">0.2%",
36+
"not dead",
37+
"not op_mini all"
38+
],
39+
"development": [
40+
"last 1 chrome version",
41+
"last 1 firefox version",
42+
"last 1 safari version"
43+
]
44+
}
45+
}

public/favicon.ico

1.53 KB
Binary file not shown.

public/index.html

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<!DOCTYPE html>
2+
<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="Web site created using create-react-app"
11+
/>
12+
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13+
<!--
14+
manifest.json provides metadata used when your web app is installed on a
15+
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
16+
-->
17+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
18+
<!--
19+
Notice the use of %PUBLIC_URL% in the tags above.
20+
It will be replaced with the URL of the `public` folder during the build.
21+
Only files inside the `public` folder can be referenced from the HTML.
22+
23+
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
24+
work correctly both with client-side routing and a non-root public URL.
25+
Learn how to configure a non-root public URL by running `npm run build`.
26+
-->
27+
28+
<style type="text/css">
29+
html, body, #root{
30+
height: 100%;
31+
margin: 0;
32+
}
33+
</style>
34+
35+
<title>AvancaDev - Crypto View</title>
36+
</head>
37+
<body>
38+
<noscript>You need to enable JavaScript to run this app.</noscript>
39+
<div id="root"></div>
40+
<!--
41+
This HTML file is a template.
42+
If you open it directly in the browser, you will see an empty page.
43+
44+
You can add webfonts, meta tags, or analytics to this file.
45+
The build step will place the bundled scripts into the <body> tag.
46+
47+
To begin the development, run `npm start` or `yarn start`.
48+
To create a production bundle, use `npm run build` or `yarn build`.
49+
-->
50+
</body>
51+
</html>

src/components/App/index.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.App {
2+
height: 100%;
3+
display: flex;
4+
flex-direction: column;
5+
}

src/components/App/index.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import React from "react";
2+
import "./index.css";
3+
4+
function App() {
5+
return (
6+
<div className='App'>
7+
<h1>Hello Crypto View</h1>
8+
</div>
9+
);
10+
}
11+
12+
export default App;

src/index.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React from "react";
2+
import ReactDOM from "react-dom";
3+
import App from "./components/App";
4+
import reportWebVitals from "./reportWebVitals";
5+
6+
ReactDOM.render(
7+
<React.StrictMode>
8+
<App />
9+
</React.StrictMode>,
10+
document.getElementById("root")
11+
);
12+
13+
reportWebVitals();

src/react-app-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="react-scripts" />

src/reportWebVitals.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { ReportHandler } from "web-vitals";
2+
3+
const reportWebVitals = (onPerfEntry?: ReportHandler) => {
4+
if (onPerfEntry && onPerfEntry instanceof Function) {
5+
import("web-vitals").then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
6+
getCLS(onPerfEntry);
7+
getFID(onPerfEntry);
8+
getFCP(onPerfEntry);
9+
getLCP(onPerfEntry);
10+
getTTFB(onPerfEntry);
11+
});
12+
}
13+
};
14+
15+
export default reportWebVitals;

0 commit comments

Comments
 (0)