Skip to content

Commit 9852e0e

Browse files
committed
make an api stub for non-backend mode
1 parent 691f555 commit 9852e0e

File tree

1 file changed

+236
-0
lines changed

1 file changed

+236
-0
lines changed

src/pages/products/backendMock.js

Lines changed: 236 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,236 @@
1+
import config from "../../config";
2+
3+
export default [
4+
{
5+
id: 1,
6+
img: config.remote + '/assets/products/img1.jpg',
7+
title: 'trainers',
8+
subtitle: 'Trainers In White',
9+
price: 76,
10+
rating: 4.6,
11+
description_1: "Sneakers (also known as athletic shoes, tennis shoes,gym shoes, runners, takkies, or trainers) are shoes primarily designed for sports or other forms of physical exercise, but which are now also often used for everyday wear.",
12+
description_2: "The term generally describes a type of footwear with a flexible sole made of rubber or synthetic material and an upper part made of leather or synthetic materials.",
13+
code: 135234,
14+
hashtag: "whitetrainers",
15+
technology: [
16+
"Ollie patch",
17+
"Cup soles",
18+
"Vulcanized rubber soles"
19+
],
20+
createdAt: new Date(),
21+
updatedAt: new Date()
22+
},
23+
{
24+
id: 2,
25+
img: config.remote + '/assets/products/img2.jpg',
26+
title: 'boots',
27+
subtitle: 'Trainers In Blue',
28+
price: 45,
29+
rating: 4.6,
30+
description_1: "Sneakers (also known as athletic shoes, tennis shoes,gym shoes, runners, takkies, or trainers) are shoes primarily designed for sports or other forms of physical exercise, but which are now also often used for everyday wear.",
31+
description_2: "The term generally describes a type of footwear with a flexible sole made of rubber or synthetic material and an upper part made of leather or synthetic materials.",
32+
code: 135234,
33+
hashtag: "whitetrainers",
34+
technology: [
35+
"Ollie patch",
36+
"Cup soles",
37+
"Vulcanized rubber soles"
38+
],
39+
discount: 20,
40+
createdAt: new Date(),
41+
updatedAt: new Date()
42+
},
43+
{
44+
id: 3,
45+
img: config.remote + '/assets/products/img3.jpg',
46+
title: 'flat sandals',
47+
subtitle: 'Trainers In White',
48+
price: 55,
49+
rating: 4.6,
50+
description_1: "Sneakers (also known as athletic shoes, tennis shoes,gym shoes, runners, takkies, or trainers) are shoes primarily designed for sports or other forms of physical exercise, but which are now also often used for everyday wear.",
51+
description_2: "The term generally describes a type of footwear with a flexible sole made of rubber or synthetic material and an upper part made of leather or synthetic materials.",
52+
code: 135234,
53+
hashtag: "whitetrainers",
54+
technology: [
55+
"Ollie patch",
56+
"Cup soles",
57+
"Vulcanized rubber soles"
58+
],
59+
createdAt: new Date(),
60+
updatedAt: new Date()
61+
},
62+
{
63+
id: 4,
64+
img: config.remote + '/assets/products/img4.jpg',
65+
title: 'trainers',
66+
subtitle: 'Trainers In White',
67+
price: 76,
68+
rating: 4.6,
69+
description_1: "Sneakers (also known as athletic shoes, tennis shoes,gym shoes, runners, takkies, or trainers) are shoes primarily designed for sports or other forms of physical exercise, but which are now also often used for everyday wear.",
70+
description_2: "The term generally describes a type of footwear with a flexible sole made of rubber or synthetic material and an upper part made of leather or synthetic materials.",
71+
code: 135234,
72+
hashtag: "whitetrainers",
73+
technology: [
74+
"Ollie patch",
75+
"Cup soles",
76+
"Vulcanized rubber soles"
77+
],
78+
createdAt: new Date(),
79+
updatedAt: new Date()
80+
},
81+
{
82+
id: 5,
83+
img: config.remote + '/assets/products/img5.jpeg',
84+
title: 'boots',
85+
subtitle: 'Trainers In Blue',
86+
price: 45,
87+
rating: 4.6,
88+
description_1: "Sneakers (also known as athletic shoes, tennis shoes,gym shoes, runners, takkies, or trainers) are shoes primarily designed for sports or other forms of physical exercise, but which are now also often used for everyday wear.",
89+
description_2: "The term generally describes a type of footwear with a flexible sole made of rubber or synthetic material and an upper part made of leather or synthetic materials.",
90+
code: 135234,
91+
hashtag: "whitetrainers",
92+
technology: [
93+
"Ollie patch",
94+
"Cup soles",
95+
"Vulcanized rubber soles"
96+
],
97+
discount: 20,
98+
createdAt: new Date(),
99+
updatedAt: new Date()
100+
},
101+
{
102+
id: 6,
103+
img: config.remote + '/assets/products/img6.jpg',
104+
title: 'flat sandals',
105+
subtitle: 'Trainers In White',
106+
price: 55,
107+
rating: 4.6,
108+
description_1: "Sneakers (also known as athletic shoes, tennis shoes,gym shoes, runners, takkies, or trainers) are shoes primarily designed for sports or other forms of physical exercise, but which are now also often used for everyday wear.",
109+
description_2: "The term generally describes a type of footwear with a flexible sole made of rubber or synthetic material and an upper part made of leather or synthetic materials.",
110+
code: 135234,
111+
hashtag: "whitetrainers",
112+
technology: [
113+
"Ollie patch",
114+
"Cup soles",
115+
"Vulcanized rubber soles"
116+
],
117+
createdAt: new Date(),
118+
updatedAt: new Date()
119+
},
120+
{
121+
id: 7,
122+
img: config.remote + '/assets/products/img1.jpg',
123+
title: 'trainers',
124+
subtitle: 'Trainers In White',
125+
price: 76,
126+
rating: 4.6,
127+
description_1: "Sneakers (also known as athletic shoes, tennis shoes,gym shoes, runners, takkies, or trainers) are shoes primarily designed for sports or other forms of physical exercise, but which are now also often used for everyday wear.",
128+
description_2: "The term generally describes a type of footwear with a flexible sole made of rubber or synthetic material and an upper part made of leather or synthetic materials.",
129+
code: 135234,
130+
hashtag: "whitetrainers",
131+
technology: [
132+
"Ollie patch",
133+
"Cup soles",
134+
"Vulcanized rubber soles"
135+
],
136+
createdAt: new Date(),
137+
updatedAt: new Date()
138+
},
139+
{
140+
id: 8,
141+
img: config.remote + '/assets/products/img2.jpg',
142+
title: 'boots',
143+
subtitle: 'Trainers In Blue',
144+
price: 45,
145+
rating: 4.6,
146+
description_1: "Sneakers (also known as athletic shoes, tennis shoes,gym shoes, runners, takkies, or trainers) are shoes primarily designed for sports or other forms of physical exercise, but which are now also often used for everyday wear.",
147+
description_2: "The term generally describes a type of footwear with a flexible sole made of rubber or synthetic material and an upper part made of leather or synthetic materials.",
148+
code: 135234,
149+
hashtag: "whitetrainers",
150+
technology: [
151+
"Ollie patch",
152+
"Cup soles",
153+
"Vulcanized rubber soles"
154+
],
155+
discount: 20,
156+
createdAt: new Date(),
157+
updatedAt: new Date()
158+
},
159+
{
160+
id: 9,
161+
img: config.remote + '/assets/products/img3.jpg',
162+
title: 'flat sandals',
163+
subtitle: 'Trainers In White',
164+
price: 55,
165+
rating: 4.6,
166+
description_1: "Sneakers (also known as athletic shoes, tennis shoes,gym shoes, runners, takkies, or trainers) are shoes primarily designed for sports or other forms of physical exercise, but which are now also often used for everyday wear.",
167+
description_2: "The term generally describes a type of footwear with a flexible sole made of rubber or synthetic material and an upper part made of leather or synthetic materials.",
168+
code: 135234,
169+
hashtag: "whitetrainers",
170+
technology: [
171+
"Ollie patch",
172+
"Cup soles",
173+
"Vulcanized rubber soles"
174+
],
175+
createdAt: new Date(),
176+
updatedAt: new Date()
177+
},
178+
{
179+
id: 10,
180+
img: config.remote + '/assets/products/img4.jpg',
181+
title: 'trainers',
182+
subtitle: 'Trainers In White',
183+
price: 76,
184+
rating: 4.6,
185+
description_1: "Sneakers (also known as athletic shoes, tennis shoes,gym shoes, runners, takkies, or trainers) are shoes primarily designed for sports or other forms of physical exercise, but which are now also often used for everyday wear.",
186+
description_2: "The term generally describes a type of footwear with a flexible sole made of rubber or synthetic material and an upper part made of leather or synthetic materials.",
187+
code: 135234,
188+
hashtag: "whitetrainers",
189+
technology: [
190+
"Ollie patch",
191+
"Cup soles",
192+
"Vulcanized rubber soles"
193+
],
194+
createdAt: new Date(),
195+
updatedAt: new Date()
196+
},
197+
{
198+
id: 11,
199+
img: config.remote + '/assets/products/img5.jpeg',
200+
title: 'boots',
201+
subtitle: 'Trainers In Blue',
202+
price: 45,
203+
rating: 4.6,
204+
description_1: "Sneakers (also known as athletic shoes, tennis shoes,gym shoes, runners, takkies, or trainers) are shoes primarily designed for sports or other forms of physical exercise, but which are now also often used for everyday wear.",
205+
description_2: "The term generally describes a type of footwear with a flexible sole made of rubber or synthetic material and an upper part made of leather or synthetic materials.",
206+
code: 135234,
207+
hashtag: "whitetrainers",
208+
technology: [
209+
"Ollie patch",
210+
"Cup soles",
211+
"Vulcanized rubber soles"
212+
],
213+
discount: 20,
214+
createdAt: new Date(),
215+
updatedAt: new Date()
216+
},
217+
{
218+
id: 12,
219+
img: config.remote + '/assets/products/img6.jpg',
220+
title: 'flat sandals',
221+
subtitle: 'Trainers In White',
222+
price: 55,
223+
rating: 4.6,
224+
description_1: "Sneakers (also known as athletic shoes, tennis shoes,gym shoes, runners, takkies, or trainers) are shoes primarily designed for sports or other forms of physical exercise, but which are now also often used for everyday wear.",
225+
description_2: "The term generally describes a type of footwear with a flexible sole made of rubber or synthetic material and an upper part made of leather or synthetic materials.",
226+
code: 135234,
227+
hashtag: "whitetrainers",
228+
technology: [
229+
"Ollie patch",
230+
"Cup soles",
231+
"Vulcanized rubber soles"
232+
],
233+
createdAt: new Date(),
234+
updatedAt: new Date()
235+
},
236+
]

0 commit comments

Comments
 (0)