Skip to content
Open
Show file tree
Hide file tree
Changes from 11 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
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# editorconfig.org
root = true

[*]
indent_style = tab
indent_size = 4
end_of_line = lf
charset = utf-8
tab_width = 4
trim_trailing_whitespace = true
insert_final_newline = false

[*.md]
trim_trailing_whitespace = false
28 changes: 28 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module.exports = {
extends: 'react-app',
rules: {
quotes: ['error', 'single'],
'max-len': [
'error',
{
ignorePattern: '^import [^,]+ from |^export | implements',
code: 150,
},
],
'react/jsx-sort-props': ['error', { 'shorthandFirst': true, 'noSortAlphabetically': true }],
'simple-import-sort/imports': 'warn',
'comma-dangle': ['error', 'always-multiline'],
'@typescript-eslint/indent': ['error', 'tab', { SwitchCase: 1 }],
'spaced-comment': [
'error',
'always',
{ 'markers': ['/'] },
],
'no-trailing-spaces': 'error',
semi: ['error', 'always'],
'no-shadow': 'off',
},
plugins: [
'simple-import-sort',
],
};
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
.env.development.local
.env.test.local
.env.production.local
.env

npm-debug.log*
yarn-debug.log*
Expand Down
55,900 changes: 39,671 additions & 16,229 deletions package-lock.json

Large diffs are not rendered by default.

91 changes: 53 additions & 38 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,55 @@
{
"name": "todo",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.16.1",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-router-dom": "^6.0.2",
"react-scripts": "4.0.3",
"styled-components": "^5.3.3",
"web-vitals": "^1.1.2"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
"name": "todo",
"version": "0.1.0",
"private": true,
"dependencies": {
"@reduxjs/toolkit": "^1.8.1",
"@testing-library/jest-dom": "^5.16.1",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3",
"@types/jest": "^27.4.1",
"@types/node": "^17.0.29",
"@types/react": "^18.0.8",
"axios": "^0.27.1",
"firebase": "^9.8.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-redux": "^8.0.1",
"react-router-dom": "^6.3.0",
"react-scripts": "4.0.3",
"styled-components": "^5.3.3",
"typescript": "^4.6.3",
"web-vitals": "^1.1.2"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"lint": "eslint -c .eslintrc.js --ext .ts,.tsx src/ --max-warnings=0"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@types/react-dom": "^18.0.0",
"@types/react-router-dom": "^5.3.3",
"@types/styled-components": "^5.1.25",
"eslint-plugin-simple-import-sort": "^7.0.0"
}
}
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.

1 change: 1 addition & 0 deletions react-app-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="react-scripts" />
38 changes: 0 additions & 38 deletions src/App.css

This file was deleted.

25 changes: 0 additions & 25 deletions src/App.js

This file was deleted.

8 changes: 0 additions & 8 deletions src/App.test.js

This file was deleted.

26 changes: 26 additions & 0 deletions src/Layout/Auth/StyledAuth.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import styled from 'styled-components';

export const Wrapper = styled.div`
width: 100vw;
max-width: 100%;
display: flex;
justify-content: center;
align-items: center;
`;

export const Root = styled.div`
width: 50vw;
min-height: 50vh;
border: 1px solid #000;
Comment thread
DanilWeda marked this conversation as resolved.
border-radius: 10px;
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
`;

export const Title = styled.h1`
font-size: 20px;
font-weight: 500;
margin-top: 1rem;
`;
18 changes: 18 additions & 0 deletions src/Layout/Auth/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { FC } from 'react';

import { ReactComponent as Logo } from '../../static/img/logo.svg';
import { Root, Title, Wrapper } from './StyledAuth';
import { IProps } from './types';

const AuthLayout: FC<IProps> = ({ children }) => {
return (
Comment on lines +14 to +17
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a lot of spaces

<Wrapper>
<Root>
<Logo />
<Title>TODO APP</Title>
{children}
</Root>
</Wrapper>
);
};
export default AuthLayout;
5 changes: 5 additions & 0 deletions src/Layout/Auth/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { ReactNode } from 'react';

export interface IProps {
children: ReactNode
}
21 changes: 21 additions & 0 deletions src/components/Button/StyledButton.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import styled from 'styled-components';

export const StyledButton = styled.button`
width: ${props => props.width || 'auto'};
color: ${props => props.color} ;
border: 1px solid #000000;
Comment thread
DanilWeda marked this conversation as resolved.
Outdated
box-sizing: border-box;
border-radius: 5px;
font-size: 18px;
margin-bottom: 1rem;
padding: 1rem 2.5rem;
background-color: transparent;
cursor: pointer;
min-width: 12rem;
transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);

&:hover {
transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
background-color: #C9EEFF;
}
`;
Loading