mirror of https://github.com/mkrhere/pw2
Muthu Kumar
4 years ago
23 changed files with 16114 additions and 11549 deletions
@ -0,0 +1,12 @@ |
|||||
|
{ |
||||
|
"trailingComma": "all", |
||||
|
"useTabs": true, |
||||
|
"semi": true, |
||||
|
"singleQuote": false, |
||||
|
"quoteProps": "consistent", |
||||
|
"jsxSingleQuote": false, |
||||
|
"bracketSpacing": true, |
||||
|
"jsxBracketSameLine": true, |
||||
|
"arrowParens": "avoid", |
||||
|
"printWidth": 80 |
||||
|
} |
File diff suppressed because it is too large
@ -1,38 +1,39 @@ |
|||||
{ |
{ |
||||
"name": "pw2", |
"name": "pw2", |
||||
"version": "0.1.0", |
"version": "0.1.0", |
||||
"private": true, |
"private": true, |
||||
"dependencies": { |
"dependencies": { |
||||
"@testing-library/jest-dom": "^5.11.4", |
"@reach/router": "^1.3.4", |
||||
"@testing-library/react": "^11.1.0", |
"@testing-library/jest-dom": "^5.11.4", |
||||
"@testing-library/user-event": "^12.1.10", |
"@testing-library/react": "^11.1.0", |
||||
"react": "^17.0.1", |
"@testing-library/user-event": "^12.1.10", |
||||
"react-dom": "^17.0.1", |
"react": "^17.0.1", |
||||
"react-scripts": "4.0.0", |
"react-dom": "^17.0.1", |
||||
"web-vitals": "^0.2.4" |
"react-scripts": "4.0.0", |
||||
}, |
"web-vitals": "^0.2.4" |
||||
"scripts": { |
}, |
||||
"start": "react-scripts start", |
"scripts": { |
||||
"build": "react-scripts build", |
"start": "react-scripts start", |
||||
"test": "react-scripts test", |
"build": "react-scripts build", |
||||
"eject": "react-scripts eject" |
"test": "react-scripts test", |
||||
}, |
"eject": "react-scripts eject" |
||||
"eslintConfig": { |
}, |
||||
"extends": [ |
"eslintConfig": { |
||||
"react-app", |
"extends": [ |
||||
"react-app/jest" |
"react-app", |
||||
] |
"react-app/jest" |
||||
}, |
] |
||||
"browserslist": { |
}, |
||||
"production": [ |
"browserslist": { |
||||
">0.2%", |
"production": [ |
||||
"not dead", |
">0.2%", |
||||
"not op_mini all" |
"not dead", |
||||
], |
"not op_mini all" |
||||
"development": [ |
], |
||||
"last 1 chrome version", |
"development": [ |
||||
"last 1 firefox version", |
"last 1 chrome version", |
||||
"last 1 safari version" |
"last 1 firefox version", |
||||
] |
"last 1 safari version" |
||||
} |
] |
||||
|
} |
||||
} |
} |
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,38 +0,0 @@ |
|||||
.App { |
|
||||
text-align: center; |
|
||||
} |
|
||||
|
|
||||
.App-logo { |
|
||||
height: 40vmin; |
|
||||
pointer-events: none; |
|
||||
} |
|
||||
|
|
||||
@media (prefers-reduced-motion: no-preference) { |
|
||||
.App-logo { |
|
||||
animation: App-logo-spin infinite 20s linear; |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
.App-header { |
|
||||
background-color: #282c34; |
|
||||
min-height: 100vh; |
|
||||
display: flex; |
|
||||
flex-direction: column; |
|
||||
align-items: center; |
|
||||
justify-content: center; |
|
||||
font-size: calc(10px + 2vmin); |
|
||||
color: white; |
|
||||
} |
|
||||
|
|
||||
.App-link { |
|
||||
color: #61dafb; |
|
||||
} |
|
||||
|
|
||||
@keyframes App-logo-spin { |
|
||||
from { |
|
||||
transform: rotate(0deg); |
|
||||
} |
|
||||
to { |
|
||||
transform: rotate(360deg); |
|
||||
} |
|
||||
} |
|
@ -1,25 +1,5 @@ |
|||||
import logo from './logo.svg'; |
|
||||
import './App.css'; |
|
||||
|
|
||||
function App() { |
function App() { |
||||
return ( |
return <div className="App"></div>; |
||||
<div className="App"> |
|
||||
<header className="App-header"> |
|
||||
<img src={logo} className="App-logo" alt="logo" /> |
|
||||
<p> |
|
||||
Edit <code>src/App.js</code> and save to reload. |
|
||||
</p> |
|
||||
<a |
|
||||
className="App-link" |
|
||||
href="https://reactjs.org" |
|
||||
target="_blank" |
|
||||
rel="noopener noreferrer" |
|
||||
> |
|
||||
Learn React |
|
||||
</a> |
|
||||
</header> |
|
||||
</div> |
|
||||
); |
|
||||
} |
} |
||||
|
|
||||
export default App; |
export default App; |
||||
|
@ -1,8 +0,0 @@ |
|||||
import { render, screen } from '@testing-library/react'; |
|
||||
import App from './App'; |
|
||||
|
|
||||
test('renders learn react link', () => { |
|
||||
render(<App />); |
|
||||
const linkElement = screen.getByText(/learn react/i); |
|
||||
expect(linkElement).toBeInTheDocument(); |
|
||||
}); |
|
@ -0,0 +1,50 @@ |
|||||
|
/* inter-100 - latin */ |
||||
|
@font-face { |
||||
|
font-family: "Inter"; |
||||
|
font-style: normal; |
||||
|
font-weight: 100; |
||||
|
src: local(""), url("/assets/fonts/inter-v2-latin-100.woff2") format("woff2"), |
||||
|
/* Chrome 26+, Opera 23+, Firefox 39+ */ |
||||
|
url("/assets/fonts/inter-v2-latin-100.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ |
||||
|
} |
||||
|
|
||||
|
/* inter-regular - latin */ |
||||
|
@font-face { |
||||
|
font-family: "Inter"; |
||||
|
font-style: normal; |
||||
|
font-weight: 400; |
||||
|
src: local(""), |
||||
|
url("/assets/fonts/inter-v2-latin-regular.woff2") format("woff2"), |
||||
|
/* Chrome 26+, Opera 23+, Firefox 39+ */ |
||||
|
url("/assets/fonts/inter-v2-latin-regular.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ |
||||
|
} |
||||
|
|
||||
|
/* inter-500 - latin */ |
||||
|
@font-face { |
||||
|
font-family: "Inter"; |
||||
|
font-style: normal; |
||||
|
font-weight: 500; |
||||
|
src: local(""), url("/assets/fonts/inter-v2-latin-500.woff2") format("woff2"), |
||||
|
/* Chrome 26+, Opera 23+, Firefox 39+ */ |
||||
|
url("/assets/fonts/inter-v2-latin-500.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ |
||||
|
} |
||||
|
|
||||
|
/* inter-800 - latin */ |
||||
|
@font-face { |
||||
|
font-family: "Inter"; |
||||
|
font-style: normal; |
||||
|
font-weight: 800; |
||||
|
src: local(""), url("/assets/fonts/inter-v2-latin-800.woff2") format("woff2"), |
||||
|
/* Chrome 26+, Opera 23+, Firefox 39+ */ |
||||
|
url("/assets/fonts/inter-v2-latin-800.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ |
||||
|
} |
||||
|
|
||||
|
/* inter-900 - latin */ |
||||
|
@font-face { |
||||
|
font-family: "Inter"; |
||||
|
font-style: normal; |
||||
|
font-weight: 900; |
||||
|
src: local(""), url("/assets/fonts/inter-v2-latin-900.woff2") format("woff2"), |
||||
|
/* Chrome 26+, Opera 23+, Firefox 39+ */ |
||||
|
url("/assets/fonts/inter-v2-latin-900.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ |
||||
|
} |
@ -1,13 +1,13 @@ |
|||||
body { |
body { |
||||
margin: 0; |
margin: 0; |
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', |
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", |
||||
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', |
"Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", |
||||
sans-serif; |
sans-serif; |
||||
-webkit-font-smoothing: antialiased; |
-webkit-font-smoothing: antialiased; |
||||
-moz-osx-font-smoothing: grayscale; |
-moz-osx-font-smoothing: grayscale; |
||||
} |
} |
||||
|
|
||||
code { |
code { |
||||
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', |
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", |
||||
monospace; |
monospace; |
||||
} |
} |
||||
|
Before Width: | Height: | Size: 2.6 KiB |
@ -1,13 +0,0 @@ |
|||||
const reportWebVitals = onPerfEntry => { |
|
||||
if (onPerfEntry && onPerfEntry instanceof Function) { |
|
||||
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { |
|
||||
getCLS(onPerfEntry); |
|
||||
getFID(onPerfEntry); |
|
||||
getFCP(onPerfEntry); |
|
||||
getLCP(onPerfEntry); |
|
||||
getTTFB(onPerfEntry); |
|
||||
}); |
|
||||
} |
|
||||
}; |
|
||||
|
|
||||
export default reportWebVitals; |
|
@ -1,5 +0,0 @@ |
|||||
// jest-dom adds custom jest matchers for asserting on DOM nodes.
|
|
||||
// allows you to do things like:
|
|
||||
// expect(element).toHaveTextContent(/react/i)
|
|
||||
// learn more: https://github.com/testing-library/jest-dom
|
|
||||
import '@testing-library/jest-dom'; |
|
File diff suppressed because it is too large
Loading…
Reference in new issue