Skip to content

Commit c391a4e

Browse files
updated
1 parent 8a2de9f commit c391a4e

23 files changed

+1706
-44
lines changed

chapter-7/db.json

+66
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,71 @@
1010
"name": "Last week",
1111
"data": [23, 12, 54, 61, 32, 56, 81, 19]
1212
}
13+
],
14+
"products": [
15+
{
16+
"id": "5ece2c077e39da27658aa8a9",
17+
"attributes": ["Cotton"],
18+
"category": "dress",
19+
"currency": "$",
20+
"createdAt": "2021-01-01T12:00:27.87+00:20",
21+
"image": null,
22+
"inventoryType": "in_stock",
23+
"isAvailable": true,
24+
"isShippable": false,
25+
"name": "Charlie Tulip Dress",
26+
"price": 23.99,
27+
"quantity": 85,
28+
"updatedAt": "2021-01-01T12:00:27.87+00:20",
29+
"variants": 2
30+
},
31+
{
32+
"id": "5ece2c0d16f70bff2cf86cd8",
33+
"attributes": ["Cotton"],
34+
"category": "dress",
35+
"currency": "$",
36+
"createdAt": "2021-01-01T12:00:27.87+00:20",
37+
"image": null,
38+
"inventoryType": "out_of_stock",
39+
"isAvailable": false,
40+
"isShippable": true,
41+
"name": "Kate Leopard Dress",
42+
"price": 95,
43+
"quantity": 0,
44+
"updatedAt": "2021-01-01T12:00:27.87+00:20",
45+
"variants": 1
46+
},
47+
{
48+
"id": "5ece2c123fad30cbbff8d060",
49+
"attributes": ["Variety of styles"],
50+
"category": "jewelry",
51+
"currency": "$",
52+
"createdAt": 345354345,
53+
"image": null,
54+
"inventoryType": "in_stock",
55+
"isAvailable": true,
56+
"isShippable": false,
57+
"name": "Layering Bracelets Collection",
58+
"price": 155,
59+
"quantity": 48,
60+
"updatedAt": "2021-01-01T12:00:27.87+00:20",
61+
"variants": 5
62+
},
63+
{
64+
"id": "5ece2c1be7996d1549d94e34",
65+
"attributes": ["Polyester and Spandex"],
66+
"category": "blouse",
67+
"currency": "$",
68+
"createdAt": "2021-01-01T12:00:27.87+00:20",
69+
"image": null,
70+
"inventoryType": "limited",
71+
"isAvailable": false,
72+
"isShippable": true,
73+
"name": "Flared Sleeve Floral Blouse",
74+
"price": 17.99,
75+
"quantity": 5,
76+
"updatedAt": "2021-01-01T12:00:27.87+00:20",
77+
"variants": 1
78+
}
1379
]
1480
}

chapter-7/package-lock.json

+145
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

chapter-7/package.json

+6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"@types/fontfaceobserver": "0.0.6",
1515
"@types/jest": "25.1.4",
1616
"@types/node": "13.9.3",
17+
"@types/numeral": "0.0.28",
1718
"@types/react": "16.9.25",
1819
"@types/react-dom": "16.9.3",
1920
"@types/react-helmet": "5.0.15",
@@ -38,15 +39,20 @@
3839
"jest-styled-components": "7.0.3",
3940
"lint-staged": "10.5.2",
4041
"node-plop": "0.26.2",
42+
"notistack": "1.0.2",
43+
"numeral": "2.0.6",
4144
"plop": "2.7.4",
4245
"prettier": "2.2.0",
4346
"react": "16.13.0",
4447
"react-apexcharts": "1.3.7",
4548
"react-app-polyfill": "1.0.6",
4649
"react-dom": "16.13.0",
50+
"react-dropzone": "11.2.4",
4751
"react-feather": "2.0.9",
4852
"react-helmet-async": "1.0.7",
4953
"react-i18next": "11.7.3",
54+
"react-perfect-scrollbar": "1.5.8",
55+
"react-quill": "1.3.5",
5056
"react-redux": "7.2.2",
5157
"react-router-dom": "5.2.0",
5258
"react-scripts": "4.0.1",
Loading

chapter-7/src/api/axios.ts

+1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ export default api;
1010

1111
export const EndPoints = {
1212
sales: 'sales',
13+
products: 'products',
1314
};

0 commit comments

Comments
 (0)