Skip to content

Commit fee1d2f

Browse files
initial commit
0 parents  commit fee1d2f

19 files changed

+38711
-0
lines changed

.gitignore

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# dependencies
2+
/node_modules
3+
/.pnp
4+
.pnp.js
5+
6+
# testing
7+
/coverage
8+
9+
# production
10+
/build
11+
12+
# misc
13+
.idea/
14+
.eslintcache
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*

README.md

Whitespace-only changes.

package-lock.json

+38,514
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"name": "cocktails",
3+
"version": "1.0.0",
4+
"private": true,
5+
"dependencies": {
6+
"@testing-library/jest-dom": "^5.11.6",
7+
"@testing-library/react": "^11.2.2",
8+
"@testing-library/user-event": "^12.6.0",
9+
"@types/jest": "^26.0.19",
10+
"@types/node": "^12.19.9",
11+
"@types/react": "^16.14.2",
12+
"@types/react-dom": "^16.9.10",
13+
"axios": "^0.21.1",
14+
"react": "^17.0.1",
15+
"react-dom": "^17.0.1",
16+
"react-redux": "^7.2.2",
17+
"react-router-dom": "^5.2.0",
18+
"react-scripts": "4.0.1",
19+
"redux": "^4.0.5",
20+
"redux-saga": "^1.1.3",
21+
"typescript": "^4.1.3"
22+
},
23+
"scripts": {
24+
"start": "react-scripts start",
25+
"build": "react-scripts build",
26+
"test": "react-scripts test"
27+
},
28+
"eslintConfig": {
29+
"extends": [
30+
"react-app",
31+
"react-app/jest"
32+
]
33+
},
34+
"browserslist": {
35+
"production": [
36+
">0.2%",
37+
"not dead",
38+
"not op_mini all"
39+
],
40+
"development": [
41+
"last 1 chrome version",
42+
"last 1 firefox version",
43+
"last 1 safari version"
44+
]
45+
},
46+
"devDependencies": {
47+
"@types/axios": "^0.14.0",
48+
"@types/react-redux": "^7.1.12",
49+
"@types/react-router-dom": "^5.1.6",
50+
"@types/redux": "^3.6.0",
51+
"@types/redux-saga": "^0.10.5",
52+
"redux-devtools-extension": "^2.13.8",
53+
"sass": "^1.30.0"
54+
}
55+
}

public/_redirects

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* /index.html 200

public/favicon.ico

2.72 KB
Binary file not shown.

public/index.html

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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 name="description" content="Cocktails catalog"/>
9+
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png"/>
10+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json"/>
11+
<title>Cocktails</title>
12+
</head>
13+
<body>
14+
<noscript>You need to enable JavaScript to run this app.</noscript>
15+
<div id="root"></div>
16+
</body>
17+
</html>

public/logo192.png

4.77 KB
Loading

public/logo512.png

22.4 KB
Loading

public/manifest.json

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"short_name": "Cocktails App",
3+
"name": "Cocktails App",
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"
25+
}

public/robots.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# https://www.robotstxt.org/robotstxt.html
2+
User-agent: *
3+
Disallow:

src/App.tsx

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import React from 'react';
2+
import style from './styles/App.module.scss';
3+
4+
function App() {
5+
return (
6+
<div className={style.container}>
7+
</div>
8+
)
9+
}
10+
11+
export default App

src/index.tsx

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import React from 'react';
2+
import ReactDOM from 'react-dom';
3+
import './styles/index.scss';
4+
import App from './App';
5+
6+
ReactDOM.render(
7+
<React.StrictMode>
8+
<App/>
9+
</React.StrictMode>,
10+
document.getElementById('root')
11+
)

src/react-app-env.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="react-scripts" />

src/setupTests.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import '@testing-library/jest-dom';

src/styles/App.module.scss

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.container {}

src/styles/index.scss

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
body {
2+
margin: 0;
3+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4+
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5+
sans-serif;
6+
-webkit-font-smoothing: antialiased;
7+
-moz-osx-font-smoothing: grayscale;
8+
}
9+
10+
code {
11+
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12+
monospace;
13+
}

src/tests/App.test.tsx

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from 'react';
2+
import {render, screen} from '@testing-library/react';
3+
import App from '../App';
4+
5+
test('renders learn react link', () => {
6+
render(<App/>)
7+
const linkElement = screen.getByText(/learn react/i)
8+
expect(linkElement).toBeInTheDocument()
9+
})

tsconfig.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es5",
4+
"lib": [
5+
"dom",
6+
"dom.iterable",
7+
"esnext"
8+
],
9+
"allowJs": true,
10+
"skipLibCheck": true,
11+
"esModuleInterop": true,
12+
"allowSyntheticDefaultImports": true,
13+
"strict": true,
14+
"forceConsistentCasingInFileNames": true,
15+
"noFallthroughCasesInSwitch": true,
16+
"module": "esnext",
17+
"moduleResolution": "node",
18+
"resolveJsonModule": true,
19+
"isolatedModules": true,
20+
"noEmit": true,
21+
"jsx": "react-jsx"
22+
},
23+
"include": [
24+
"src"
25+
]
26+
}

0 commit comments

Comments
 (0)