-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.js
399 lines (378 loc) · 20.9 KB
/
data.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
const events = [
{
id: 'ayayay',
featured: true,
title: 'Monster Jam is Coming!',
text: "Don't Miss Out Seeing Your Favorite Monster Jam trucks in your Town!",
artist: { id: 'nodal', name: 'Christian Nodal' },
priceRange: { min: 10, max: 2000 },
bigImage: '/images/Homepage1/Group 89.png',
rate: '4.7',
},
{
id: 'papi',
featured: true,
title: 'Eric Church Brings Double',
text: "The Gather Again tour is stopping in your city. See him live in concert!",
artist: { id: 'maluma', name: 'Maluma' },
bigImage: '/images/Group 132.png',
bigImageHasTitle: true,
rate: '5',
},
{
id: '40años',
featured: true,
title: 'NFL Tickets',
text: "Grab tickets today and be there live in the stands!",
artist: { id: 'angeles', name: 'Los Ángeles Azules' },
bigImage: '/images/Group 133.png',
bigImageHasTitle: true,
rate: '5'
},
];
const americanExpresses = [
{ time1 : "PRESALE: THU-NOV-9PM", time2 : "SUN.MAR.8:00 PM", title: "Elton Jonhn: Farewell Yellow Brick Road", text: "Lincoln, NE.Pinnacle Bank Arena", url: "/images/Homepage1/Rectangle 188.png" },
{ time1: "PRESALE: THU-DEC-7PM", time2: "WED.APR 27.6:30 PM", title: "HAIM One More HAIM Tour", text: "Berkeley, CA.Greek Theatre-U.C.Berkeley", url: "/images/Homepage1/Rectangle 18 (2).png" },
{ time1: "PRESALE: THU-NOV-9PM", time2: "SUN.MAR 28.8:00 PM", title: "Elton Jonhn: Farewell Yellow Brick Road", text: "Lincoln, NE.Pinnacle Bank Arena", url: "/images/Homepage1/Rectangle 18 (1).png" },
];
const browseCategories = [
{ title: "Concerts", url1: "/images/Homepage1/Mask Group.png", url2: "/images/Homepage1/Group 90.png" },
{ title: "Sports", url1: "/images/Homepage1/Group 94.png", url2: "/images/Homepage1/Group 91.png" },
{ title: "Arts & Theatre", url1: "/images/Homepage1/Group 95.png", url2: "/images/Homepage1/Group 92.png" },
{ title: "Family", url1: "/images/Homepage1/Group 96.png", url2: "/images/Homepage1/Group 93.png" },
];
const topSellings = [
{ title: "Eagles", text: "In today's faddish, fractured rock landscape, it's refreshing that classic", events: "17", star: "5", url: "/images/Homepage1/Group 97.png" },
{ title: "Imagine Dragons", text: "What happens in Vegas doesnot always stay in Vegas, and Imagine Dragons", events: "15", star: "5", url: "/images/Homepage1/Group 98.png" },
{ title: "Bad Bunny", text: "It's undeniable that Bad Bunny is one of the hottest Latin trap stars of our time", events: "26", star: "5", url: "/images/Homepage1/Group 99.png" },
{ title: "Def Leppard", text: "The world is a confusing place, but there's one resounding truth", events: "12", star: "5", url: "/images/Homepage1/Group 100.png" },
{ title: "Eagles", text: "It's undeniable that Bad Bunny is one of the hottest Latin trap stars of our time", events: "45", star: "5", url: "/images/Homepage1/Group 104.png" },
{ title: "Coldplay", text: "Coldplay is one of the best-loved British rock bands in the world, with numerous", events: "12", star: "5", url: "/images/Homepage1/Group 101.png" },
{ title: "Red Hot Chili Peopers", text: "In today's faddish, fractured rock landscape, it's refreshing that classic", events: "23", star: "4", url: "/images/Homepage1/Group 102.png" },
{ title: "Def Leppard", text: "The world is a confusing place, but there's one resounding truth", events: "12", star: "5", url: "/images/Homepage1/Group 103.png" },
];
const sports = [
{ title: "Charlotte Hornets", text: "In today's faddish, fractured rock landscape, it's refreshing that classic", events: "12", star: "2", url: "/images/Homepage1/Group 108.png" },
{ title: "Imagine Pacers", text: "What happens in Vegas doesnot always stay in Vegas, and Imagine Dragons", events: "31", star: "3", url: "/images/Homepage1/Group 109.png" },
{ title: "Utah Jazz", text: "It's undeniable that Bad Bunny is one of the hottest Latin trap stars of our time", events: "12", star: "5", url: "/images/Homepage1/Group 111.png" },
{ title: "San Antonio Spurs", text: "The world is a confusing place, but there's one resounding truth", events: "15", star: "2", url: "/images/Homepage1/Group 110.png" },
{ title: "Altlanta Hawks", text: "It's undeniable that Bad Bunny is one of the hottest Latin trap stars of our time", events: "16", star: "1", url: "/images/Homepage1/Group 112.png" },
{ title: "Miami Heat", text: "Coldplay is one of the best-loved British rock bands in the world, with numerous", events: "11", star: "5", url: "/images/Homepage1/Group 113.png" },
{ title: "Memphis Grizzlies", text: "In today's faddish, fractured rock landscape, it's refreshing that classic", events: "18", star: "4", url: "/images/Homepage1/Group 114.png" },
{ title: "Dallas Cowboys", text: "The world is a confusing place, but there's one resounding truth", events: "10", star: "5", url: "/images/Homepage1/Group 115.png" },
];
const artsTheaters = [
{ title: "Sebastian Maniscalco", text: "In today's faddish, fractured rock landscape, it's refreshing that classic", events: "12", star: "4", url: "/images/Homepage1/Group 116.png" },
{ title: "John Mulaney", text: "What happens in Vegas doesnot always stay in Vegas, and Imagine Dragons", events: "12", star: "4", url: "/images/Homepage1/Group 117.png" },
{ title: "Trevor Noah", text: "It's undeniable that Bad Bunny is one of the hottest Latin trap stars of our time", events: "12", star: "4", url: "/images/Homepage1/Group 118.png" },
{ title: "Cedic The EnterTainer", text: "The world is a confusing place, but there's one resounding truth", events: "12", star: "4", url: "/images/Homepage1/Group 119.png" },
{ title: "Joe Hisaishi", text: "It's undeniable that Bad Bunny is one of the hottest Latin trap stars of our time", events: "12", star: "4", url: "/images/Homepage1/Group 120.png" },
{ title: "Hasan Minhaj", text: "Coldplay is one of the best-loved British rock bands in the world, with numerous", events: "12", star: "4", url: "/images/Homepage1/Group 121.png" },
{ title: "Jeff Dunham", text: "In today's faddish, fractured rock landscape, it's refreshing that classic", events: "12", star: "4", url: "/images/Homepage1/Group 122.png" },
{ title: "Bill Burr", text: "The world is a confusing place, but there's one resounding truth", events: "12", star: "4", url: "/images/Homepage1/Group 123.png" },
];
const families = [
{ artist: { id: 'nodal', name: 'Christian Nodal' }, title: "Disney On Ice presents Dream Big", text: "In today's faddish, fractured rock landscape, it's refreshing that classic", events: "12", star: "5", url: "/images/Homepage1/Group 124.png" },
{ artist: { id: 'maluma', name: 'Maluma' }, title: "PBR: Unleash the Beast", text: "What happens in Vegas doesnot always stay in Vegas, and Imagine Dragons", events: "21", star: "3", url: "/images/Homepage1/Group 125.png" },
{ artist: { id: 'angeles', name: 'Los Ángeles Azules' }, title: "Dude Perfect", text: "It's undeniable that Bad Bunny is one of the hottest Latin trap stars of our time", events: "4", star: "4", url: "/images/Homepage1/Group 126.png" },
{ artist: { id: 'nodal', name: 'Christian Nodal' }, title: "World's Toughest Rodeo", text: "The world is a confusing place, but there's one resounding truth", events: "12", star: "1", url: "/images/Homepage1/Group 127.png" },
{ artist: { id: 'nodal', name: 'Christian Nodal' }, title: "Disney On Ice presents Dream Big", text: "It's undeniable that Bad Bunny is one of the hottest Latin trap stars of our time", events: "14", star: "3", url: "/images/Homepage1/Group 128.png" },
{ artist: { id: 'nodal', name: 'Christian Nodal' }, title: "World's Tougest Rodeo", text: "Coldplay is one of the best-loved British rock bands in the world, with numerous", events: "15", star: "4", url: "/images/Homepage1/Group 129.png" },
{ artist: { id: 'nodal', name: 'Christian Nodal' }, title: "Disney On Ice presents Mickey and Friends", text: "In today's faddish, fractured rock landscape, it's refreshing that classic", events: "16", star: "5", url: "/images/Homepage1/Group 130.png" },
{ artist: { id: 'nodal', name: 'Christian Nodal' }, title: "World's toughest Rodeo", text: "The world is a confusing place, but there's one resounding truth", events: "17", star: "5", url: "/images/Homepage1/Group 127.png" },
];
const discoverMoreEvents = [
{ title: "NFL", text: "Explore NFL ticket options from te Official Ticket Exchange of the NFL", url: "/images/Homepage1/Rectangle 36.png" },
{ title: "NBA", text: "Find great tickets for your favorite NBA teams for must-see games", url: "/images/Homepage1/Rectangle 36 (1).png" },
{ title: "NHL", text: "Get verified tickets to watch your favourite NHL team take the ice.", url: "/images/Homepage1/Rectangle 36 (2).png" },
{ title: "College Football Playoff", text: "Find tickets to the national college football championship on Jan. 10, 2022", url: "/images/Homepage1/Rectangle 36 (3).png" },
{ title: "Vas Vegas", text: "Exploring what to see and do in Las Vegas.", url: "/images/Homepage1/Rectangle 36 (4).png" },
{ title: "Broadway in New York", text: "Don't miss the hottest musicals and plays happening on Broadway.", url: "/images/Homepage1/Rectangle 36 (5).png" },
];
const eventDates = [
{
artistId: 'maluma',
eventId: 'ayayay',
date: 'Mar 18',
city: ' Ciudad Juárez, Mexico',
venue: 'Estadio Juárez Vive',
},
{
artistId: 'nodal',
eventId: 'ayayay',
date: 'Mar 19',
city: ' Chihuahua, Mexico',
venue: 'Estadio Monumental Chihuahua',
},
{
artistId: 'nodal',
eventId: 'ayayay',
date: 'Mar 26',
city: ' Medellín, Colombia',
venue: 'Estadio Atanasio Girardot',
},
{
artistId: '40años',
eventId: 'angeles',
date: 'Apr 3',
city: ' Manta, Ecuador',
venue: 'Estadio Jocay',
},
{
artistId: 'maluma',
eventId: 'papi',
date: 'Apr 30',
city: ' Tijuana, Mexico',
venue: 'Estadio Caliente',
},
{
artistId: 'nodal',
eventId: 'ayayay',
date: 'Jun 3',
city: 'Outdoor',
venue: 'Morelia, Mexico',
},
{
artistId: 'nodal',
eventId: 'ayayay',
date: 'Jul 1',
city: ' Santiago, Chile',
venue: 'Movistar Arena',
},
{
artistId: 'nodal',
eventId: 'ayayay',
date: 'Jul 8',
city: ' Ciudad Madero, Mexico',
venue: 'Domo Madero',
},
];
const artists = [
{
id: 'nodal',
featured: true,
name: 'Christian Nodal',
currentTour: 'ayayay',
smallImage: 'small.png',
description:
'Nodal has won three Latin Grammy Awards, a Lo Nuestro Award, two Billboard Latin Music Awards, and a Latin American Music Award.',
},
{
id: 'maluma',
featured: true,
name: 'Maluma',
smallImage: 'small.jpg',
description:
'Maluma has become one of the biggest male superstars in Latin music, filling stadiums around the world.',
},
{
id: 'angeles',
featured: true,
name: 'Los Ángeles Azules',
smallImage: 'small.webp',
description:
'Los Ángeles Azules are a Mexican musical group that plays the cumbia sonidera genre.',
},
];
const venues = [
{
id: 'monumental',
featured: true,
name: 'Plaza de Toros Monumental de Morelia',
smallImage: 'venues/monumental/small.jpg',
description:
'Plaza Monumental de Morelia, is a multi-purpose complex in Morelia, in the state of Michoacán, Mexico. ',
},
{
id: 'caliente',
featured: true,
name: 'Estadio Caliente',
smallImage: 'venues/caliente/small.webp',
description:
'The Estadio Caliente Xoloitzcuintles is a multi-use stadium in Tijuana, Baja California, Mexico. ',
},
];
const artistDetails = [
{
artistId: 'nodal',
bio: '<b>Christian Nodal</b> is the most important youth soloist of the Mexican Regional genre, with only 19 years of age, he has managed to place 5 singles in the first place of the specialized charts for several weeks “No Te Contaron Mal”, “ Me Deje Llevar”, “Adios Amor”, “Te Fallé”, “Eres”", and on Youtube, he has more than a trillion visits, on Spotify more than 3.7 million listeners per month. Multi-awarded in Mexico and the United States, the only Mexican regional artist in the 21st 21, with 3 awards on Billboard, 2 on iHeartradio, a Latin Grammy to name a few, is a singer who has broken the schemes of this competitive and difficult genre. Proving that to achieve success, age does not matter, it matters the talent, discipline, dedication to 100% and a great team.<p>After his already successful tour in Mexico and the USA, "DE TU MANO TOUR", he is starting 2019 with his "Ahora" tour, where besides his traditional Mariacheño, he will present several surprises that will surely please his fans.</p>',
},
{
artistId: 'maluma',
bio: '<b>Maluma </b> is the most important youth soloist of the Mexican Regional genre, with only 19 years of age, he has managed to place 5 singles in the first place of the specialized charts for several weeks “No Te Contaron Mal”, “ Me Deje Llevar”, “Adios Amor”, “Te Fallé”, “Eres”", and on Youtube, he has more than a trillion visits, on Spotify more than 3.7 million listeners per month. Multi-awarded in Mexico and the United States, the only Mexican regional artist in the 21st 21, with 3 awards on Billboard, 2 on iHeartradio, a Latin Grammy to name a few, is a singer who has broken the schemes of this competitive and difficult genre. Proving that to achieve success, age does not matter, it matters the talent, discipline, dedication to 100% and a great team.<p>After his already successful tour in Mexico and the USA, "DE TU MANO TOUR", he is starting 2019 with his "Ahora" tour, where besides his traditional Mariacheño, he will present several surprises that will surely please his fans.</p>',
},
{
artistId: 'angeles',
bio: '<b>Angeles </b> is the most important youth soloist of the Mexican Regional genre, with only 19 years of age, he has managed to place 5 singles in the first place of the specialized charts for several weeks “No Te Contaron Mal”, “ Me Deje Llevar”, “Adios Amor”, “Te Fallé”, “Eres”", and on Youtube, he has more than a trillion visits, on Spotify more than 3.7 million listeners per month. Multi-awarded in Mexico and the United States, the only Mexican regional artist in the 21st 21, with 3 awards on Billboard, 2 on iHeartradio, a Latin Grammy to name a few, is a singer who has broken the schemes of this competitive and difficult genre. Proving that to achieve success, age does not matter, it matters the talent, discipline, dedication to 100% and a great team.<p>After his already successful tour in Mexico and the USA, "DE TU MANO TOUR", he is starting 2019 with his "Ahora" tour, where besides his traditional Mariacheño, he will present several surprises that will surely please his fans.</p>',
},
];
const lowestLists = [
{ title: "Sec 201, Row 3", comment: "Resale Ticket", price: 36.00, type: "Mobile Entry" },
{ title: "Sec 201, Row 3", comment: "Resale Ticket", price: 36.00, type: "Mobile Entry" },
{ title: "Sec 201, Row 3", comment: "Resale Ticket", price: 36.00, type: "Mobile Entry" },
{ title: "Sec 201, Row 3", comment: "Resale Ticket", price: 36.00, type: "Mobile Entry" },
{ title: "Sec 201, Row 3", comment: "Resale Ticket", price: 190.00, type: "Mobile Entry" },
{ title: "Sec 201, Row 3", comment: "Resale Ticket", price: 190.00, type: "Mobile Entry" },
{ title: "Sec 201, Row 3", comment: "Resale Ticket", price: 190.00, type: "Mobile Entry" },
{ title: "Sec 201, Row 3", comment: "Resale Ticket", price: 184.00, type: "Mobile Entry" },
{ title: "Sec 201, Row 3", comment: "Resale Ticket", price: 190.00, type: "Mobile Entry" },
{ title: "Sec 201, Row 3", comment: "Resale Ticket", price: 190.00, type: "Mobile Entry" },
{ title: "Sec 201, Row 3", comment: "Resale Ticket", price: 190.00, type: "Mobile Entry" },
{ title: "Sec 201, Row 3", comment: "Resale Ticket", price: 190.00, type: "Mobile Entry" },
{ title: "Sec 201, Row 3", comment: "Resale Ticket", price: 140.00, type: "Mobile Entry" },
{ title: "Sec 201, Row 3", comment: "Resale Ticket", price: 190.00, type: "Mobile Entry" },
{ title: "Sec 201, Row 3", comment: "Resale Ticket", price: 190.00, type: "Mobile Entry" },
{ title: "Sec 201, Row 3", comment: "Resale Ticket", price: 120.00, type: "Mobile Entry" },
]
const sectionLists = [
{ title: "Setion 1, Row1", comment: "Resale Ticket", price: 190.00, type: "Mobile Entry" },
{ title: "Setion 1, Row1", comment: "Resale Ticket", price: 36.00, type: "Mobile Entry" },
{ title: "Setion 1, Row1", comment: "Resale Ticket", price: 36.00, type: "Mobile Entry" },
{ title: "Setion 1, Row1", comment: "Resale Ticket", price: 36.00, type: "Mobile Entry" },
{ title: "Setion 1, Row1", comment: "Resale Ticket", price: 36.00, type: "Mobile Entry" },
{ title: "Setion 1, Row1", comment: "Resale Ticket", price: 36.00, type: "Mobile Entry" },
{ title: "Setion 1, Row1", comment: "Resale Ticket", price: 15.00, type: "Mobile Entry" },
{ title: "Setion 1, Row1", comment: "Resale Ticket", price: 189.00, type: "Mobile Entry" },
{ title: "Setion 1, Row1", comment: "Resale Ticket", price: 5.00, type: "Mobile Entry" },
{ title: "Setion 1, Row1", comment: "Resale Ticket", price: 136.00, type: "Mobile Entry" },
{ title: "Setion 1, Row1", comment: "Resale Ticket", price: 326.00, type: "Mobile Entry" },
{ title: "Setion 1, Row1", comment: "Resale Ticket", price: 361.00, type: "Mobile Entry" },
{ title: "Setion 1, Row1", comment: "Resale Ticket", price: 361.00, type: "Mobile Entry" },
{ title: "Setion 1, Row1", comment: "Resale Ticket", price: 76.00, type: "Mobile Entry" },
{ title: "Setion 1, Row1", comment: "Resale Ticket", price: 36.00, type: "Mobile Entry" },
{ title: "Setion 1, Row1", comment: "Resale Ticket", price: 36.00, type: "Mobile Entry" },
]
const tickets = require('./data/tickets.json');
function getAllEvents() {
return events;
}
function getAmericanExpress() {
return americanExpresses;
}
function getBrowseCategory() {
return browseCategories;
}
function getTopSelling() {
return topSellings;
}
function getSport() {
return sports;
}
function getArtsTheater() {
return artsTheaters;
}
function getFamily() {
return families;
}
function getDiscoverMoreEvent() {
return discoverMoreEvents;
}
function getLowestLists(minState, maxState) {
return lowestLists.filter((lowestList) =>
lowestList.price >= minState &&
lowestList.price < maxState
);
}
function getSectionLists(minState, maxState) {
return sectionLists.filter((sectionList) =>
sectionList.price >= minState &&
sectionList.price < maxState
);
}
async function getHeaderEvents() {
return events.filter((event) => event.featured);
}
function getFamilyById(artistId) {
return families.find(
(family) => family.artist.id == artistId
);
}
async function getEvent(artistId, eventId) {
return events.find(
(event) => event.id == eventId && event.artist.id == artistId
);
}
function getEventsByMonth(year, month) {
return events.filter((event) => event.year === year && eve);
}
function getAllArtists() {
return artists;
}
function getArtist(artistId) {
return artists.find((artist) => artist.id === artistId);
}
async function getArtistDetails(id) {
return artistDetails.find((ad) => ad.artistId == id);
}
async function getFeaturedArtists() {
return artists.filter((artist) => artist.featured);
}
async function getFeaturedVenues() {
return venues.filter((venue) => venue.featured);
}
async function getTickets(
artistId,
eventId,
numberOfTickets,
zone,
priceRange
) {
return tickets.filter(
(ticket) =>
ticket.event.artist.id == artistId &&
ticket.event.id == eventId &&
ticket.seats.count >= numberOfTickets &&
(!zone || ticket.zone.id == zone) &&
(!priceRange ||
(ticket.price.value >= priceRange.min &&
ticket.price.value <= priceRange.max))
);
}
async function getEventDates(artistId, eventId) {
return eventDates.filter(
(eventDate) =>
eventDate.artistId == artistId && eventDate.eventId == eventId
);
}
async function getEventDate(artistId, eventId, date) {
return eventDates.find(
(eventDate) =>
eventDate.artistId == artistId && eventDate.eventId == eventId && eventDate.date == date
);
}
function getVenueSetupByEvent(venueId) {
return {
maxTickets: 8,
zones: [
{ value: 1, label: 'VIP' },
{ value: 2, label: 'BARRERA SOMBRA' },
{ value: 3, label: '1ER TENDIDO SOMBRA' },
{ value: 4, label: '2DO TENDIDO SOMBRA' },
{ value: 5, label: 'GENERAL SOMBRA' },
{ value: 6, label: 'T. ALTO' },
],
};
}
module.exports = {
getAllEvents,
getHeaderEvents,
getAmericanExpress,
getBrowseCategory,
getTopSelling,
getSport,
getArtsTheater,
getFamily,
getFamilyById,
getDiscoverMoreEvent,
getEvent,
getFeaturedArtists,
getArtist,
getArtistDetails,
getFeaturedVenues,
getTickets,
getEventDates,
getEventDate,
getVenueSetupByEvent,
getLowestLists,
getSectionLists,
};