Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
32a533f
Feture: Deleted not needed files and strings
DanilWeda Dec 11, 2021
bcf4c41
Feature: Create Pages without styles and logic
DanilWeda Dec 11, 2021
3d0bf51
WIP
DanilWeda Dec 26, 2021
23925e4
Feature: styled togo screens with using styled component library
DanilWeda Jan 10, 2022
0fa4d00
Feature: created UI folder
DanilWeda Jan 11, 2022
e2815d6
new lock
DanilWeda Mar 14, 2022
d64af4a
SETUP PROJECT | ts,store,lint,axios and other...
DanilWeda Apr 27, 2022
8cd607c
update routing
DanilWeda Apr 27, 2022
52fef2f
create custom typed hooks
DanilWeda Apr 27, 2022
f1ca818
create log/sign layout, clear old components
DanilWeda May 1, 2022
dff13e4
Firebase, create login & registration logic, not found page
DanilWeda May 8, 2022
279637d
Add backBtn, created enum for paths, fix static text
DanilWeda Jul 21, 2022
682ed77
Access token: added saving to local storage user data from login/signup
DanilWeda Jul 21, 2022
9b2faf1
feature: Add Task Page
DanilWeda Jul 21, 2022
4d1655b
font fix
DanilWeda Jul 22, 2022
31747b4
Created async thunk actions for cooperation with firebase db, task co…
DanilWeda Aug 10, 2022
12dd9a4
Fix relative paths
DanilWeda Aug 10, 2022
2d63faf
Create Error Tost, Loader, UpdateDoc fb for action
DanilWeda Aug 11, 2022
06c90e8
Move login/create user logic in action
DanilWeda Aug 11, 2022
d3c3bae
Add theme provider,theme context and change some styles
DanilWeda Aug 12, 2022
2fc7b76
Split themes, create methods for Modals
DanilWeda Aug 23, 2022
d463d5a
Created modal component and popups for CRUD operations
DanilWeda Aug 23, 2022
389a4b7
Added hide delete popup logic, fixed reload
DanilWeda Aug 25, 2022
8cbcfb0
fix side effect in reducer
DanilWeda Aug 25, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed public/favicon.ico
Binary file not shown.
33 changes: 2 additions & 31 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,13 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
content="TODO web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.

Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>TODO</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.

You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.

To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
Binary file removed public/logo192.png
Binary file not shown.
Binary file removed public/logo512.png
Binary file not shown.
25 changes: 0 additions & 25 deletions public/manifest.json

This file was deleted.

3 changes: 0 additions & 3 deletions public/robots.txt

This file was deleted.

38 changes: 0 additions & 38 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -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);
}
}
28 changes: 12 additions & 16 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
import logo from './logo.svg';
import './App.css';
import NewPage from './NewPage/NewPage';
import { Route, Routes } from 'react-router-dom';
import LoginPage from './LoginPage/LoginPage';
import SingPage from './SingPage/SingPage';

function App() {

return (
<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 className='App'>
<Routes>
<Route path='/' element={<NewPage />} />
<Route path='/login' element={<LoginPage />} />
<Route path='/singin' element={<SingPage />} />
Comment thread
DanilWeda marked this conversation as resolved.
Outdated
<Route path='*' element={<NewPage />} />
</Routes>
</div>
);
}
Expand Down
8 changes: 0 additions & 8 deletions src/App.test.js

This file was deleted.

22 changes: 22 additions & 0 deletions src/LoginPage/LoginPage.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React, {useState} from 'react'
import styles from './LoginPage.module.css'
import { Route, Routes } from 'react-router-dom'
import MyButton from '../MyButton/MyButton'

const LoginPage = () => {

const [login, setLogin] = useState('Login')
const [password, setPassword] = useState('Password')
Comment thread
DanilWeda marked this conversation as resolved.
Outdated

return (
<div className={styles.body}>
<div className={styles.img}></div>
<h1 className={styles.title}>Todo App</h1>
<input type='text' placeholder={login} />
<input type='text' placeholder={password} />
<MyButton link='/app'>Log in</MyButton>
</div>
);
};

export default LoginPage
Empty file.
15 changes: 15 additions & 0 deletions src/MyButton/MyButton.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from 'react'
import styles from './MyButton.module.css'
import { Route, Link } from 'react-router-dom'

function MyButton(props) {

console.log(props)
return (
<div>
<Link to={`${props.link}`}>{props.children}</Link>
</div>
);
}

export default MyButton
Empty file.
20 changes: 20 additions & 0 deletions src/NewPage/NewPage.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from 'react'
import styles from './NewPage.module.css'
import { Route, Routes } from 'react-router-dom'
import MyButton from '../MyButton/MyButton'
import LoginPage from '../LoginPage/LoginPage'

const NewPage = () => {


Comment thread
DanilWeda marked this conversation as resolved.
Outdated
return (
<div className={styles.body}>
<div className={styles.img}></div>
<h1 className={styles.title}>Todo App</h1>
<MyButton link='/login'>Log in</MyButton>
<MyButton link='/singin'>Sing in</MyButton>
</div>
);
}

export default NewPage
Empty file added src/NewPage/NewPage.module.css
Empty file.
21 changes: 21 additions & 0 deletions src/SingPage/SingPage.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React, { useState } from 'react';
import styles from './SingPage.module.css';
import { Route, Routes } from 'react-router-dom';
import MyButton from '../MyButton/MyButton';

const SingPage = () => {
const [login, setLogin] = useState('Login');
const [password, setPassword] = useState('Password');

return (
<div className={styles.body}>
<div className={styles.img}></div>
<h1 className={styles.title}>Todo App</h1>
<input type='text' placeholder={login} />
<input type='text' placeholder={password} />
<MyButton link='/app'>Sing In</MyButton>
</div>
);
};

export default SingPage;
Empty file.
11 changes: 5 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@ import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import { BrowserRouter } from 'react-router-dom'

ReactDOM.render(
<React.StrictMode>
<App />
<BrowserRouter>
<App />
</BrowserRouter>
</React.StrictMode>,
document.getElementById('root')
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();

1 change: 0 additions & 1 deletion src/logo.svg

This file was deleted.

13 changes: 0 additions & 13 deletions src/reportWebVitals.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/setupTests.js

This file was deleted.