convert to tabs

This commit is contained in:
Mateusz Pstrucha committed 2021-08-31 22:39:00 +02:00
1 parent ff90801c0b
commit af0d31883d
11 files changed
+84 -83

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
{
"tabWidth": 2,
"useTabs": false,
"useTabs": true,
"singleQuote": true,
"semi": false
}
}
+1
View File
@@ -16,6 +16,7 @@
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"format": "prettier --write \"src/**/*\"",
"eject": "react-scripts eject"
},
"eslintConfig": {
+22 -22
View File
@@ -2,38 +2,38 @@
<html lang="pl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="manifest" href="/manifest.json">
<!-- <link rel="icon" href="/favicon.ico" /> -->
<!-- <link rel="icon" type="image/png" href="/media/icon_64.png" /> -->
<!-- <link rel="apple-touch-icon" href="/logo192.png" /> -->
<link rel="manifest" href="/manifest.json">
<!-- <link rel="icon" href="/favicon.ico" /> -->
<!-- <link rel="icon" type="image/png" href="/media/icon_64.png" /> -->
<!-- <link rel="apple-touch-icon" href="/logo192.png" /> -->
<meta name="description" content="radio-rolnik" />
<meta name="keywords" content="radio, rolnik">
<meta name="author" content="Mathias">
<title>radio-rolnik</title>
<meta name="description" content="radio-rolnik" />
<meta name="keywords" content="radio, rolnik">
<meta name="author" content="Mathias">
<title>radio-rolnik</title>
<!-- Social embed properties -->
<!-- <meta property="og:type" content="website" />
<meta property="og:url" content="https://radio-rolnik.mtps.pl/" />
<!-- Social embed properties -->
<!-- <meta property="og:type" content="website" />
<meta property="og:url" content="https://radio-rolnik.mtps.pl/" />
<meta property="og:title" content="radio-rolnik" />
<meta property="twitter:title" content="radio-rolnik" />
<meta property="og:title" content="radio-rolnik" />
<meta property="twitter:title" content="radio-rolnik" />
<meta property="og:description" content="radio-rolnik" />
<meta property="twitter:description" content="radio-rolnik" />
<meta property="og:description" content="radio-rolnik" />
<meta property="twitter:description" content="radio-rolnik" />
<meta property="og:image" content="https://radio-rolnik.mtps.pl/media/thumbnail.png" />
<meta property="twitter:image" content="https://radio-rolnik.mtps.pl/media/thumbnail.png" /> -->
<meta property="og:image" content="https://radio-rolnik.mtps.pl/media/thumbnail.png" />
<meta property="twitter:image" content="https://radio-rolnik.mtps.pl/media/thumbnail.png" /> -->
<!-- <script src="https://www.google.com/recaptcha/api.js?render=6LfdNtIaAAAAAMY6rU7Q9tMlJtlz8k49ke5rUOaU"></script> -->
<!-- <script src="https://www.google.com/recaptcha/api.js?render=6LfdNtIaAAAAAMY6rU7Q9tMlJtlz8k49ke5rUOaU"></script> -->
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
</body>
</html>
+24 -24
View File
@@ -1,25 +1,25 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
+1 -1
View File
@@ -1,5 +1,5 @@
function Home() {
return <div className="home">aaaaa</div>
return <div className="home"></div>
}
export default Home
+5 -5
View File
@@ -3,11 +3,11 @@ import Home from '../Home/Home'
import './Main.css'
function Main() {
return (
<div className="main">
<Home />
</div>
)
return (
<div className="main">
<Home />
</div>
)
}
export default Main
+6 -6
View File
@@ -1,8 +1,8 @@
import { render, screen } from '@testing-library/react';
import App from './Main';
import { render, screen } from '@testing-library/react'
import App from './Main'
test('renders learn react link', () => {
render(<App />);
const linkElement = screen.getByText(/learn react/i);
expect(linkElement).toBeInTheDocument();
});
render(<App />)
const linkElement = screen.getByText(/learn react/i)
expect(linkElement).toBeInTheDocument()
})
+6 -6
View File
@@ -1,8 +1,8 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
+4 -4
View File
@@ -8,10 +8,10 @@ import Main from './components/Main/Main'
import './index.css'
ReactDOM.render(
<React.StrictMode>
<Main />
</React.StrictMode>,
document.getElementById('root')
<React.StrictMode>
<Main />
</React.StrictMode>,
document.getElementById('root')
)
// If you want to start measuring performance in your app, pass a function
+12 -12
View File
@@ -1,13 +1,13 @@
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);
});
}
};
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;
export default reportWebVitals
+1 -1
View File
@@ -2,4 +2,4 @@
// 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';
import '@testing-library/jest-dom'