Skip to content

Commit cc03700

Browse files
committed
Minor fix lint error
1 parent 8e7771b commit cc03700

File tree

107 files changed

+255
-4398
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+255
-4398
lines changed

README.md

+95-86
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Demo deploy: [reactts-boilerplate.netlify.app](https://reactts-boilerplate.netli
2525

2626
Login
2727
```
28-
username: admin
28+
username: tester
2929
password: 123456
3030
```
3131

@@ -37,119 +37,131 @@ password: 123456
3737
├── package.json
3838
├── public
3939
│ ├── favicon.ico
40+
│ ├── images
4041
│ ├── index.html
4142
│ ├── logo192.png
4243
│ ├── logo512.png
4344
│ ├── manifest.json
4445
│ └── robots.txt
4546
├── README.md
47+
├── server
48+
│ ├── db
49+
│ │ └── db.json
50+
│ └── routes.json
4651
├── src
47-
│ ├── apis
48-
│ │ ├── product.api.ts
49-
│ │ └── user.api.ts
5052
│ ├── App
51-
│ │ ├── App.actions.ts
52-
│ │ ├── App.constants.ts
53-
│ │ ├── App.reducer.ts
5453
│ │ └── App.tsx
5554
│ ├── assets
56-
│ │ ├── fonts
57-
│ │ │ ├── OpenSans-BoldItalic.ttf
58-
│ │ │ ├── OpenSans-Bold.ttf
59-
│ │ │ ├── OpenSans-ExtraBoldItalic.ttf
60-
│ │ │ ├── OpenSans-ExtraBold.ttf
61-
│ │ │ ├── OpenSans-Italic.ttf
62-
│ │ │ ├── OpenSans-LightItalic.ttf
63-
│ │ │ ├── OpenSans-Light.ttf
64-
│ │ │ ├── OpenSans-Regular.ttf
65-
│ │ │ ├── OpenSans-SemiBoldItalic.ttf
66-
│ │ │ └── OpenSans-SemiBold.ttf
6755
│ │ ├── images
68-
│ │ │ ├── home.svg
69-
│ │ │ ├── list.svg
70-
│ │ │ └── open-menu.svg
7156
│ │ └── scss
72-
│ │ └── index.scss
57+
│ │ ├── _config.scss
58+
│ │ ├── _fonts.scss
59+
│ │ ├── _footer.scss
60+
│ │ ├── _header.scss
61+
│ │ ├── _home.scss
62+
│ │ ├── index.scss
63+
│ │ ├── _login.scss
64+
│ │ ├── _responsive.scss
65+
│ │ └── _staticPages.scss
7366
│ ├── components
67+
│ │ ├── Auth
68+
│ │ │ ├── Auth.actions.ts
69+
│ │ │ ├── Auth.constants.ts
70+
│ │ │ ├── Auth.reducers.ts
71+
│ │ │ ├── Auth.thunks.ts
72+
│ │ │ ├── Login.tsx
73+
│ │ │ ├── Profile.tsx
74+
│ │ │ └── Register.tsx
75+
│ │ ├── Error
76+
│ │ │ └── 404.tsx
77+
│ │ ├── Footer
78+
│ │ │ └── index.tsx
7479
│ │ ├── Header
75-
│ │ │ ├── Header.styles.ts
76-
│ │ │ └── Header.tsx
80+
│ │ │ ├── index.tsx
81+
│ │ │ ├── LeftMenu.tsx
82+
│ │ │ └── RightMenu.tsx
83+
│ │ ├── Home
84+
│ │ │ ├── AuthLinks.tsx
85+
│ │ │ ├── GuestLinks.tsx
86+
│ │ │ └── index.tsx
7787
│ │ ├── Loading
78-
│ │ │ └── Loading.tsx
79-
│ │ └── SideNav
80-
│ │ ├── SideNav.styles.ts
81-
│ │ └── SideNav.tsx
88+
│ │ │ ├── index.tsx
89+
│ │ │ └── Loading.styles.ts
90+
│ │ ├── Products
91+
│ │ │ ├── Product.actions.ts
92+
│ │ │ ├── Product.constants.ts
93+
│ │ │ ├── ProductForm.tsx
94+
│ │ │ ├── ProductItem.tsx
95+
│ │ │ ├── ProductList.tsx
96+
│ │ │ ├── Product.reducers.ts
97+
│ │ │ └── Product.thunks.ts
98+
│ │ └── StaticPages
99+
│ │ ├── About.tsx
100+
│ │ ├── Contact.tsx
101+
│ │ ├── Demo.option.1.tsx
102+
│ │ ├── Demo.option.2.tsx
103+
│ │ ├── Feature.option.1.tsx
104+
│ │ └── Feature.option.2.tsx
82105
│ ├── constants
83106
│ │ ├── paths.ts
84-
│ │ └── styles.ts
85-
│ ├── guards
86-
│ │ └── AuthenticatedGuard.tsx
87-
│ ├── helpers
88-
│ │ └── string.ts
107+
│ │ ├── products.ts
108+
│ │ └── urls.ts
89109
│ ├── hooks
90110
│ │ └── usePrevious.tsx
91111
│ ├── index.tsx
92-
│ ├── layouts
93-
│ │ └── MainLayout.tsx
94-
│ ├── logo.svg
95112
│ ├── pages
96-
│ │ ├── Home
97-
│ │ │ └── Home.tsx
98-
│ │ ├── Login
99-
│ │ │ ├── Login.actions.ts
100-
│ │ │ ├── Login.constants.ts
101-
│ │ │ ├── Login.reducer.ts
102-
│ │ │ ├── Login.styles.ts
103-
│ │ │ ├── Login.thunks.ts
104-
│ │ │ └── Login.tsx
105-
│ │ └── Product
106-
│ │ ├── ProductItem
107-
│ │ │ ├── ProductItem.actions.ts
108-
│ │ │ ├── ProductItem.constants.ts
109-
│ │ │ ├── ProductItem.reducer.ts
110-
│ │ │ ├── ProductItem.thunks.ts
111-
│ │ │ └── ProductItem.tsx
112-
│ │ └── ProductList
113-
│ │ ├── ProductList.actions.ts
114-
│ │ ├── ProductList.constants.ts
115-
│ │ ├── ProductList.reducer.ts
116-
│ │ ├── ProductList.styles.ts
117-
│ │ ├── ProductList.thunks.ts
118-
│ │ └── ProductList.tsx
113+
│ │ ├── AuthPages
114+
│ │ │ ├── LoginPage.tsx
115+
│ │ │ ├── ProfilePage.tsx
116+
│ │ │ └── RegisterPage.tsx
117+
│ │ ├── ErrorPages
118+
│ │ │ └── 404Pages.tsx
119+
│ │ ├── HomePages
120+
│ │ │ └── HomePage.tsx
121+
│ │ ├── layouts
122+
│ │ │ └── MainLayout.tsx
123+
│ │ ├── ProductPages
124+
│ │ │ ├── ProductEditPage.tsx
125+
│ │ │ ├── ProductItemPage.tsx
126+
│ │ │ ├── ProductListPage.tsx
127+
│ │ │ └── ProductNewPage.tsx
128+
│ │ └── StaticPages
129+
│ │ ├── AboutPage.tsx
130+
│ │ ├── ContactPage.tsx
131+
│ │ ├── Demo1Page.tsx
132+
│ │ ├── Demo2Page.tsx
133+
│ │ ├── Feature1Page.tsx
134+
│ │ └── Feature2Page.tsx
119135
│ ├── react-app-env.d.ts
120-
│ ├── reducer
121-
│ │ └── reducer.ts
136+
│ ├── reportWebVitals.ts
122137
│ ├── routes
123-
│ │ ├── HomeRoutes.tsx
124-
│ │ ├── LoginRoutes.tsx
125-
│ │ ├── ProductRoutes.tsx
126-
│ │ └── routes.tsx
127-
│ ├── serviceWorker.ts
138+
│ │ ├── index.tsx
139+
│ │ └── PrivateRoute.tsx
128140
│ ├── setupTests.ts
129141
│ ├── store
130-
│ │ └── store.ts
131-
│ └── @types
132-
│ ├── action.d.ts
133-
│ ├── api.d.ts
134-
│ ├── files.d.ts
135-
│ ├── product.d.ts
136-
│ ├── reducer.d.ts
137-
│ └── user.d.ts
138-
├── .env
139-
├── .eslintignore
140-
├── .eslint
141-
├── .gitignore
142-
├── .prettierignore
143-
├── .prettierrc
142+
│ │ ├── index.ts
143+
│ │ └── reducers.ts
144+
│ ├── @types
145+
│ │ ├── actions.d.ts
146+
│ │ ├── alert.d.ts
147+
│ │ ├── api.d.ts
148+
│ │ ├── files.d.ts
149+
│ │ ├── product.d.ts
150+
│ │ ├── reducer.d.ts
151+
│ │ └── user.d.ts
152+
│ └── utils
153+
│ └── helper.js
144154
├── tsconfig.json
145155
└── yarn.lock
156+
146157
```
147158

148159
### Technologies
149160
- Integrate ESlint, Prettier
150161
- Styled-Component and CSS Module for CSS
151162
- Using TypeScript
152163
- Using Redux, React Hooks, React thunks
164+
- Using ant design
153165

154166
### src folder
155167
- **@types**: Declare modules, interface, type for TypeScript
@@ -162,12 +174,9 @@ password: 123456
162174
- **App**: component App
163175
- **assets**: images, videos, files, …
164176
- **components**: contains folders components
165-
- **constansts**: constant, enum
166-
- **guards**: routes demands authenticates
177+
- **constants**: constant, enum
167178
- **helpers**: functions helpers
168179
- **hooks**: contains hooks using
169-
- **layouts**: layouts of projects
170180
- **pages**: pages of project
171-
- **reducer**: reducers files
172-
- **routes**: routes of project
173-
- **store**: store of Redux
181+
- **routes**: private routes and public routes of project
182+
- **store**: store of Redux and root reducers

build/asset-manifest.json

+66-55
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,73 @@
11
{
22
"files": {
3-
"static/js/0.059e6e60.chunk.js": "/static/js/0.059e6e60.chunk.js",
4-
"static/js/0.059e6e60.chunk.js.map": "/static/js/0.059e6e60.chunk.js.map",
5-
"static/js/1.fe0a5757.chunk.js": "/static/js/1.fe0a5757.chunk.js",
6-
"static/js/1.fe0a5757.chunk.js.map": "/static/js/1.fe0a5757.chunk.js.map",
7-
"static/js/2.cf772f69.chunk.js": "/static/js/2.cf772f69.chunk.js",
8-
"static/js/2.cf772f69.chunk.js.map": "/static/js/2.cf772f69.chunk.js.map",
9-
"static/js/3.d23683e8.chunk.js": "/static/js/3.d23683e8.chunk.js",
10-
"static/js/3.d23683e8.chunk.js.map": "/static/js/3.d23683e8.chunk.js.map",
11-
"static/js/4.574092fb.chunk.js": "/static/js/4.574092fb.chunk.js",
12-
"static/js/4.574092fb.chunk.js.map": "/static/js/4.574092fb.chunk.js.map",
13-
"main.css": "/static/css/main.a4d31f74.chunk.css",
14-
"main.js": "/static/js/main.5738f968.chunk.js",
15-
"main.js.map": "/static/js/main.5738f968.chunk.js.map",
16-
"runtime-main.js": "/static/js/runtime-main.7f593570.js",
17-
"runtime-main.js.map": "/static/js/runtime-main.7f593570.js.map",
18-
"static/css/7.b00201c5.chunk.css": "/static/css/7.b00201c5.chunk.css",
19-
"static/js/7.872d9145.chunk.js": "/static/js/7.872d9145.chunk.js",
20-
"static/js/7.872d9145.chunk.js.map": "/static/js/7.872d9145.chunk.js.map",
21-
"static/js/8.608bf48e.chunk.js": "/static/js/8.608bf48e.chunk.js",
22-
"static/js/8.608bf48e.chunk.js.map": "/static/js/8.608bf48e.chunk.js.map",
23-
"static/js/9.2b3cf808.chunk.js": "/static/js/9.2b3cf808.chunk.js",
24-
"static/js/9.2b3cf808.chunk.js.map": "/static/js/9.2b3cf808.chunk.js.map",
25-
"static/js/10.b591723b.chunk.js": "/static/js/10.b591723b.chunk.js",
26-
"static/js/10.b591723b.chunk.js.map": "/static/js/10.b591723b.chunk.js.map",
27-
"static/js/11.4e5245cf.chunk.js": "/static/js/11.4e5245cf.chunk.js",
28-
"static/js/11.4e5245cf.chunk.js.map": "/static/js/11.4e5245cf.chunk.js.map",
29-
"static/js/12.114f8275.chunk.js": "/static/js/12.114f8275.chunk.js",
30-
"static/js/12.114f8275.chunk.js.map": "/static/js/12.114f8275.chunk.js.map",
31-
"static/js/13.286fda93.chunk.js": "/static/js/13.286fda93.chunk.js",
32-
"static/js/13.286fda93.chunk.js.map": "/static/js/13.286fda93.chunk.js.map",
33-
"static/js/14.045dfc16.chunk.js": "/static/js/14.045dfc16.chunk.js",
34-
"static/js/14.045dfc16.chunk.js.map": "/static/js/14.045dfc16.chunk.js.map",
35-
"static/js/15.204ab6d3.chunk.js": "/static/js/15.204ab6d3.chunk.js",
36-
"static/js/15.204ab6d3.chunk.js.map": "/static/js/15.204ab6d3.chunk.js.map",
37-
"static/js/16.6294c676.chunk.js": "/static/js/16.6294c676.chunk.js",
38-
"static/js/16.6294c676.chunk.js.map": "/static/js/16.6294c676.chunk.js.map",
39-
"static/js/17.2ec782db.chunk.js": "/static/js/17.2ec782db.chunk.js",
40-
"static/js/17.2ec782db.chunk.js.map": "/static/js/17.2ec782db.chunk.js.map",
41-
"static/js/18.9e1c8bc8.chunk.js": "/static/js/18.9e1c8bc8.chunk.js",
42-
"static/js/18.9e1c8bc8.chunk.js.map": "/static/js/18.9e1c8bc8.chunk.js.map",
43-
"static/js/19.6e4b01d0.chunk.js": "/static/js/19.6e4b01d0.chunk.js",
44-
"static/js/19.6e4b01d0.chunk.js.map": "/static/js/19.6e4b01d0.chunk.js.map",
45-
"static/js/20.75d1bf78.chunk.js": "/static/js/20.75d1bf78.chunk.js",
46-
"static/js/20.75d1bf78.chunk.js.map": "/static/js/20.75d1bf78.chunk.js.map",
3+
"static/js/0.c4acbe49.chunk.js": "/static/js/0.c4acbe49.chunk.js",
4+
"static/js/0.c4acbe49.chunk.js.map": "/static/js/0.c4acbe49.chunk.js.map",
5+
"static/js/1.02189ba9.chunk.js": "/static/js/1.02189ba9.chunk.js",
6+
"static/js/1.02189ba9.chunk.js.map": "/static/js/1.02189ba9.chunk.js.map",
7+
"static/js/2.0c14bcc1.chunk.js": "/static/js/2.0c14bcc1.chunk.js",
8+
"static/js/2.0c14bcc1.chunk.js.map": "/static/js/2.0c14bcc1.chunk.js.map",
9+
"static/js/3.c93c435d.chunk.js": "/static/js/3.c93c435d.chunk.js",
10+
"static/js/3.c93c435d.chunk.js.map": "/static/js/3.c93c435d.chunk.js.map",
11+
"static/js/4.6229faaa.chunk.js": "/static/js/4.6229faaa.chunk.js",
12+
"static/js/4.6229faaa.chunk.js.map": "/static/js/4.6229faaa.chunk.js.map",
13+
"static/js/5.68865e81.chunk.js": "/static/js/5.68865e81.chunk.js",
14+
"static/js/5.68865e81.chunk.js.map": "/static/js/5.68865e81.chunk.js.map",
15+
"static/js/6.03eeb66d.chunk.js": "/static/js/6.03eeb66d.chunk.js",
16+
"static/js/6.03eeb66d.chunk.js.map": "/static/js/6.03eeb66d.chunk.js.map",
17+
"main.css": "/static/css/main.7f760b14.chunk.css",
18+
"main.js": "/static/js/main.a4aaf2ea.chunk.js",
19+
"main.js.map": "/static/js/main.a4aaf2ea.chunk.js.map",
20+
"runtime-main.js": "/static/js/runtime-main.adee2a3d.js",
21+
"runtime-main.js.map": "/static/js/runtime-main.adee2a3d.js.map",
22+
"static/css/9.b00201c5.chunk.css": "/static/css/9.b00201c5.chunk.css",
23+
"static/js/9.b37c6a40.chunk.js": "/static/js/9.b37c6a40.chunk.js",
24+
"static/js/9.b37c6a40.chunk.js.map": "/static/js/9.b37c6a40.chunk.js.map",
25+
"static/js/10.ea9accaa.chunk.js": "/static/js/10.ea9accaa.chunk.js",
26+
"static/js/10.ea9accaa.chunk.js.map": "/static/js/10.ea9accaa.chunk.js.map",
27+
"static/js/11.00591301.chunk.js": "/static/js/11.00591301.chunk.js",
28+
"static/js/11.00591301.chunk.js.map": "/static/js/11.00591301.chunk.js.map",
29+
"static/js/12.17fdb4a4.chunk.js": "/static/js/12.17fdb4a4.chunk.js",
30+
"static/js/12.17fdb4a4.chunk.js.map": "/static/js/12.17fdb4a4.chunk.js.map",
31+
"static/js/13.d248867a.chunk.js": "/static/js/13.d248867a.chunk.js",
32+
"static/js/13.d248867a.chunk.js.map": "/static/js/13.d248867a.chunk.js.map",
33+
"static/js/14.c7595904.chunk.js": "/static/js/14.c7595904.chunk.js",
34+
"static/js/14.c7595904.chunk.js.map": "/static/js/14.c7595904.chunk.js.map",
35+
"static/js/15.fc221629.chunk.js": "/static/js/15.fc221629.chunk.js",
36+
"static/js/15.fc221629.chunk.js.map": "/static/js/15.fc221629.chunk.js.map",
37+
"static/js/16.42efe802.chunk.js": "/static/js/16.42efe802.chunk.js",
38+
"static/js/16.42efe802.chunk.js.map": "/static/js/16.42efe802.chunk.js.map",
39+
"static/js/17.158f0397.chunk.js": "/static/js/17.158f0397.chunk.js",
40+
"static/js/17.158f0397.chunk.js.map": "/static/js/17.158f0397.chunk.js.map",
41+
"static/js/18.4506f6b4.chunk.js": "/static/js/18.4506f6b4.chunk.js",
42+
"static/js/18.4506f6b4.chunk.js.map": "/static/js/18.4506f6b4.chunk.js.map",
43+
"static/js/19.55b1ae06.chunk.js": "/static/js/19.55b1ae06.chunk.js",
44+
"static/js/19.55b1ae06.chunk.js.map": "/static/js/19.55b1ae06.chunk.js.map",
45+
"static/js/20.305f5474.chunk.js": "/static/js/20.305f5474.chunk.js",
46+
"static/js/20.305f5474.chunk.js.map": "/static/js/20.305f5474.chunk.js.map",
47+
"static/js/21.fc6f3247.chunk.js": "/static/js/21.fc6f3247.chunk.js",
48+
"static/js/21.fc6f3247.chunk.js.map": "/static/js/21.fc6f3247.chunk.js.map",
49+
"static/js/22.d5cf7005.chunk.js": "/static/js/22.d5cf7005.chunk.js",
50+
"static/js/22.d5cf7005.chunk.js.map": "/static/js/22.d5cf7005.chunk.js.map",
51+
"static/js/23.e961ffed.chunk.js": "/static/js/23.e961ffed.chunk.js",
52+
"static/js/23.e961ffed.chunk.js.map": "/static/js/23.e961ffed.chunk.js.map",
53+
"static/js/24.942bca39.chunk.js": "/static/js/24.942bca39.chunk.js",
54+
"static/js/24.942bca39.chunk.js.map": "/static/js/24.942bca39.chunk.js.map",
55+
"static/js/25.b09a67e1.chunk.js": "/static/js/25.b09a67e1.chunk.js",
56+
"static/js/25.b09a67e1.chunk.js.map": "/static/js/25.b09a67e1.chunk.js.map",
57+
"static/js/26.fb5a996d.chunk.js": "/static/js/26.fb5a996d.chunk.js",
58+
"static/js/26.fb5a996d.chunk.js.map": "/static/js/26.fb5a996d.chunk.js.map",
4759
"index.html": "/index.html",
48-
"static/css/7.b00201c5.chunk.css.map": "/static/css/7.b00201c5.chunk.css.map",
49-
"static/css/main.a4d31f74.chunk.css.map": "/static/css/main.a4d31f74.chunk.css.map",
50-
"static/js/0.059e6e60.chunk.js.LICENSE.txt": "/static/js/0.059e6e60.chunk.js.LICENSE.txt",
51-
"static/js/7.872d9145.chunk.js.LICENSE.txt": "/static/js/7.872d9145.chunk.js.LICENSE.txt",
52-
"static/media/index.scss": "/static/media/home2.aaaacc9b.jpeg",
53-
"static/media/iphone-8-plus.44bd5af6.jpg": "/static/media/iphone-8-plus.44bd5af6.jpg"
60+
"static/css/9.b00201c5.chunk.css.map": "/static/css/9.b00201c5.chunk.css.map",
61+
"static/css/main.7f760b14.chunk.css.map": "/static/css/main.7f760b14.chunk.css.map",
62+
"static/js/0.c4acbe49.chunk.js.LICENSE.txt": "/static/js/0.c4acbe49.chunk.js.LICENSE.txt",
63+
"static/js/9.b37c6a40.chunk.js.LICENSE.txt": "/static/js/9.b37c6a40.chunk.js.LICENSE.txt",
64+
"static/media/index.scss": "/static/media/home2.aaaacc9b.jpeg"
5465
},
5566
"entrypoints": [
56-
"static/js/runtime-main.7f593570.js",
57-
"static/css/7.b00201c5.chunk.css",
58-
"static/js/7.872d9145.chunk.js",
59-
"static/css/main.a4d31f74.chunk.css",
60-
"static/js/main.5738f968.chunk.js"
67+
"static/js/runtime-main.adee2a3d.js",
68+
"static/css/9.b00201c5.chunk.css",
69+
"static/js/9.b37c6a40.chunk.js",
70+
"static/css/main.7f760b14.chunk.css",
71+
"static/js/main.a4aaf2ea.chunk.js"
6172
]
6273
}

build/images/image-default.jpg

10.2 KB
Loading

0 commit comments

Comments
 (0)