Skip to content

Commit

Permalink
Update for 2024 season 4
Browse files Browse the repository at this point in the history
  • Loading branch information
tmoitie committed Sep 10, 2024
1 parent 034c6db commit 0225630
Show file tree
Hide file tree
Showing 4 changed files with 1,334 additions and 1,215 deletions.
6 changes: 3 additions & 3 deletions src/config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import moment from 'moment';

export const seasonStart = moment('2024-06-11T00:00:00+00:00').utc();
export const seasonEnd = moment('2024-09-09T00:00:00+00:00').utc();
export const weekSeasonStart = moment('2024-06-11T00:00:00+00:00').utc();
export const seasonStart = moment('2024-09-09T00:00:00+00:00').utc();
export const seasonEnd = moment('2024-12-16T00:00:00+00:00').utc();
export const weekSeasonStart = moment('2024-09-10T00:00:00+00:00').utc();

export const firebaseConfig = {
apiKey: 'AIzaSyAWNRqHLhhvhzKl0gkKybocd0nAk2eTlVg',
Expand Down
6 changes: 6 additions & 0 deletions src/data/changelog.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import moment from 'moment';

export default [
{
date: moment('2024-09-09 00:00:00').utc(),
items: [
'Update to 2024S4',
],
},
{
date: moment('2024-09-03 00:00:00').utc(),
items: [
Expand Down
257 changes: 179 additions & 78 deletions src/data/offWeeks.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,103 +280,204 @@ export default {
],
},
// 538 │ 4938 │ Oval │ D │ Draft Master - Fixed | 2024-09-03
4938: {
carByWeek: [
[10068], // 1 [Legacy] NASCAR Cup Chevrolet Impala COT - 2009
[10481, 10530, 10459], // 2 NASCAR Trucks
[10527, 10482, 10483, 10566], // 3 NASCAR Classic 1987
[10503, 10504, 10505], // 4 NASCAR Next Gen
[10068], // 5 [Legacy] NASCAR Cup Chevrolet Impala COT - 2009
[10481, 10530, 10459], // 6 NASCAR Trucks
[10527, 10482, 10483, 10566], // 7 NASCAR Classic 1987
[10503, 10504, 10505], // 8 NASCAR Next Gen
[10068], // 9 [Legacy] NASCAR Cup Chevrolet Impala COT - 2009
[10481, 10530, 10459], // 10 NASCAR Trucks
[10527, 10482, 10483, 10566], // 11 NASCAR Classic 1987
[10503, 10504, 10505], // 12 NASCAR Next Gen
],
carClassShortNameByWeek: [
['[Legacy] NASCAR Cup Chevrolet Impala COT - 2009'], // 1 [Legacy] NASCAR Cup Chevrolet Impala COT - 2009
['NASCAR Trucks'], // 2 NASCAR Trucks
['NASCAR 1987'], // 3 NASCAR Classic 1987
['NASCAR 2022 NG'], // 4 NASCAR Next Gen
['[Legacy] NASCAR Cup Chevrolet Impala COT - 2009'], // 5 [Legacy] NASCAR Cup Chevrolet Impala COT - 2009
['NASCAR Trucks'], // 6 NASCAR Trucks
['NASCAR 1987'], // 7 NASCAR Classic 1987
['NASCAR 2022 NG'], // 8 NASCAR Next Gen
['[Legacy] NASCAR Cup Chevrolet Impala COT - 2009'], // 9 [Legacy] NASCAR Cup Chevrolet Impala COT - 2009
['NASCAR Trucks'], // 10 NASCAR Trucks
['NASCAR 1987'], // 11 NASCAR Classic 1987
['NASCAR 2022 NG'], // 12 NASCAR Next Gen
],
},
// 4938: {
// carByWeek: [
// [10068], // 1 [Legacy] NASCAR Cup Chevrolet Impala COT - 2009
// [10481, 10530, 10459], // 2 NASCAR Trucks
// [10527, 10482, 10483, 10566], // 3 NASCAR Classic 1987
// [10503, 10504, 10505], // 4 NASCAR Next Gen
// [10068], // 5 [Legacy] NASCAR Cup Chevrolet Impala COT - 2009
// [10481, 10530, 10459], // 6 NASCAR Trucks
// [10527, 10482, 10483, 10566], // 7 NASCAR Classic 1987
// [10503, 10504, 10505], // 8 NASCAR Next Gen
// [10068], // 9 [Legacy] NASCAR Cup Chevrolet Impala COT - 2009
// [10481, 10530, 10459], // 10 NASCAR Trucks
// [10527, 10482, 10483, 10566], // 11 NASCAR Classic 1987
// [10503, 10504, 10505], // 12 NASCAR Next Gen
// ],
// carClassShortNameByWeek: [
// ['[Legacy] NASCAR Cup Chevrolet Impala COT - 2009'], // 1 [Legacy] NASCAR Cup Chevrolet Impala COT - 2009
// ['NASCAR Trucks'], // 2 NASCAR Trucks
// ['NASCAR 1987'], // 3 NASCAR Classic 1987
// ['NASCAR 2022 NG'], // 4 NASCAR Next Gen
// ['[Legacy] NASCAR Cup Chevrolet Impala COT - 2009'], // 5 [Legacy] NASCAR Cup Chevrolet Impala COT - 2009
// ['NASCAR Trucks'], // 6 NASCAR Trucks
// ['NASCAR 1987'], // 7 NASCAR Classic 1987
// ['NASCAR 2022 NG'], // 8 NASCAR Next Gen
// ['[Legacy] NASCAR Cup Chevrolet Impala COT - 2009'], // 9 [Legacy] NASCAR Cup Chevrolet Impala COT - 2009
// ['NASCAR Trucks'], // 10 NASCAR Trucks
// ['NASCAR 1987'], // 11 NASCAR Classic 1987
// ['NASCAR 2022 NG'], // 12 NASCAR Next Gen
// ],
// },
// 526 │ 4872 │ Sports Car │ C │ Ring Meister Ricmotech Series - Fixed | 2024-09-03
4872: {
// 4872: {
// carByWeek: [
// [10232, 10581], // 1 Street Stock - Casino M2, Street Stock - Eagle T3, Street Stock - Panther C1
// [10567, 10494, 10576, 10563, 10510, 10580, 10495, 10335, 10532, 10555, 10405, 10404, 10502],
// // 2 Audi R8 LMS EVO II GT3, BMW M4 GT3, Chevrolet Corvette Z06 GT3.R, Ferrari 296 GT3,
// // Ferrari 488 GT3 Evo 2020, Ford Mustang GT3, Lamborghini Huracán GT3 EVO,
// // McLaren MP4-12C GT3, Mercedes-AMG GT3 2020, Porsche 911 GT3 R (992),
// // [Legacy] Audi R8 LMS GT3, [Legacy] Mercedes-AMG GT3, [Legacy] Porsche 911 GT3 R
// [10394], // 3 Global Mazda MX-5 Cup
// [10009], // 4 Skip Barber Formula 2000
// [10419, 10444, 10428], // 5 Ford Fiesta RS WRC, Subaru WRX STI, VW Beetle
// [10548], // 6 Renault Clio
// [10549], // 7 Ray FF1600
// [10509], // 8 Porsche 911 GT3 Cup (992)
// [10518], // 9 FIA F4
// [10461, 10517, 10516, 10526],
// // 10 Audi RS 3 LMS TCR, Honda Civic Type R TCR, Hyundai Elantra N TCR, Hyundai Veloster N TCR
// [10523, 10479, 10497, 10533, 10473],
// // 11 Aston Martin Vantage GT4, BMW M4 GT4, McLaren 570S GT4, Mercedes-AMG GT4,
// // Porsche 718 Cayman GT4 Clubsport MR
// [10571], // 12 Super Formula Lights
// ],
// carClassShortNameByWeek: [
// ['Street Stocks'], // 1 Street Stock - Casino M2, Street Stock - Eagle T3, Street Stock - Panther C1
// ['GT3'], // 2 Audi R8 LMS EVO II GT3, BMW M4 GT3, Chevrolet Corvette Z06 GT3.R, Ferrari 296 GT3,
// // Ferrari 488 GT3 Evo 2020, Ford Mustang GT3, Lamborghini Huracán GT3 EVO,
// // McLaren MP4-12C GT3, Mercedes-AMG GT3 2020, Porsche 911 GT3 R (992),
// // [Legacy] Audi R8 LMS GT3, [Legacy] Mercedes-AMG GT3, [Legacy] Porsche 911 GT3 R
// ['MX5 Cup 2016'], // 3 Global Mazda MX-5 Cup
// ['SBRS'], // 4 Skip Barber Formula 2000
// ['Rallycross'], // 5 Ford Fiesta RS WRC, Subaru WRX STI, VW Beetle
// ['Renault Clio'], // 6 Renault Clio
// ['Ray FF1600'], // 7 Ray FF1600
// ['Porsche 992'], // 8 Porsche 911 GT3 Cup (992)
// ['FIA F4'], // 9 FIA F4
// ['Touring Car'], // 10 Audi RS 3 LMS TCR, Honda Civic Type R TCR, Hyundai Elantra N TCR, Hyundai Veloster N TCR
// ['GT4 Class'], // 11 Aston Martin Vantage GT4, BMW M4 GT4, McLaren 570S GT4, Mercedes-AMG GT4,
// // Porsche 718 Cayman GT4 Clubsport MR
// ['SF Lights'], // 12 Super Formula Lights
// ],
// },
// 331 │ 4897 │ Sports Car │ B │ Global Endurance CONSPIT Tour | 2024-09-03
// 4897: {
// weekStartOffset: { days: 7 },
// offWeeks: [
// 1.1, 2.1, 3.1, 4.1, 5.1,
// ],
// },
// 419 │ 4899 │ Sports Car │ B │ IMSA Endurance Series | 2024-09-03
// 4899: {
// offWeeks: [
// 1.1, 2.1, 3.1, 4.1, 5.1,
// ],
// },

// 492 │ 4883 │ Sports Car │ C │ IMSA Michelin Pilot Challenge Series | 2024-09-03
// 4883: {
// offWeeks: [
// 0.1, 1.1, 2.1, 3.1, 4.1, 5.1,
// ],
// },

// 472 │ 5026 │ Sports Car │ A │ Porsche TAG Heuer Esports Supercup Qualifying Series | 2024-09-03
// 5026: {
// offWeeks: [
// 5.1, 5.1,
// ],
// },
// 526 │ 5036 │ Sports Car │ C │ Ring Meister Ricmotech Series - Fixed
5036: {
carByWeek: [
[10232, 10581], // 1 Street Stock - Casino M2, Street Stock - Eagle T3, Street Stock - Panther C1
[10567, 10494, 10576, 10563, 10510, 10580, 10495, 10335, 10532, 10555, 10405, 10404, 10502],
// 2 Audi R8 LMS EVO II GT3, BMW M4 GT3, Chevrolet Corvette Z06 GT3.R, Ferrari 296 GT3,
// Ferrari 488 GT3 Evo 2020, Ford Mustang GT3, Lamborghini Huracán GT3 EVO,
// McLaren MP4-12C GT3, Mercedes-AMG GT3 2020, Porsche 911 GT3 R (992),
// [Legacy] Audi R8 LMS GT3, [Legacy] Mercedes-AMG GT3, [Legacy] Porsche 911 GT3 R
[10394], // 3 Global Mazda MX-5 Cup
[10009], // 4 Skip Barber Formula 2000
[10523, 10584, 10497, 10533, 10473], // 1 Aston Martin Vantage GT4, BMW M4 G82 GT4, McLaren 570S GT4,
// Mercedes-AMG GT4, Porsche 718 Cayman GT4 Clubsport MR
[10306], // 2 Cadillac CTS-V Racecar
[10087], // 3 SCCA Spec Racer Ford
[10567, 10494, 10576, 10563, 10580, 10495, 10532, 10555], // DC
// 4 Audi R8 LMS EVO II GT3, BMW M4 GT3, Chevrolet Corvette Z06 GT3.R, Ferrari 296 GT3,
// Ford Mustang GT3, Lamborghini Huracán GT3, EVO, Mercedes-AMG GT3 2020, Porsche 911
// GT3 R (992)
[10419, 10444, 10428], // 5 Ford Fiesta RS WRC, Subaru WRX STI, VW Beetle
[10548], // 6 Renault Clio
[10549], // 7 Ray FF1600
[10509], // 8 Porsche 911 GT3 Cup (992)
[10518], // 9 FIA F4
[10461, 10517, 10516, 10526],
// 10 Audi RS 3 LMS TCR, Honda Civic Type R TCR, Hyundai Elantra N TCR, Hyundai Veloster N TCR
[10523, 10479, 10497, 10533, 10473],
// 11 Aston Martin Vantage GT4, BMW M4 GT4, McLaren 570S GT4, Mercedes-AMG GT4,
// Porsche 718 Cayman GT4 Clubsport MR
[10571], // 12 Super Formula Lights
[10457, 10484, 10431, 10429, 10445], // 6 BMW M8 GTE, Chevrolet Corvette C8.R GTE,
// Ferrari 488 GTE, Ford GTE, Porsche 911 RSR
[10509], // 7 Porsche 911 GT3 Cup (992)
[10461, 10517, 10516, 10526], // 8 Audi RS 3 LMS TCR, Honda Civic Type R TCR,
// Hyundai Elantra N TCR, Hyundai Veloster N TCR
[10394], // 9 Global Mazda MX-5 Cup
[10389, 10113], // 10 Aston Martin DBR9 GT1, Chevrolet Corvette C6.R GT1
[10503, 10504, 10505], // 11 NASCAR Cup Series Next Gen Chevrolet Camaro ZL1, NASCAR Cup Series Next Gen
// Ford Mustang, NASCAR Cup Series Next Gen Toyota Camry
[10232, 10581], // 12 Casino M2, Street Stock - Eagle T3, Street Stock - Panther C1
[10006], // 13 [Legacy] Pro Mazda
],
carClassShortNameByWeek: [
['Street Stocks'], // 1 Street Stock - Casino M2, Street Stock - Eagle T3, Street Stock - Panther C1
['GT3'], // 2 Audi R8 LMS EVO II GT3, BMW M4 GT3, Chevrolet Corvette Z06 GT3.R, Ferrari 296 GT3,
// Ferrari 488 GT3 Evo 2020, Ford Mustang GT3, Lamborghini Huracán GT3 EVO,
// McLaren MP4-12C GT3, Mercedes-AMG GT3 2020, Porsche 911 GT3 R (992),
// [Legacy] Audi R8 LMS GT3, [Legacy] Mercedes-AMG GT3, [Legacy] Porsche 911 GT3 R
['MX5 Cup 2016'], // 3 Global Mazda MX-5 Cup
['SBRS'], // 4 Skip Barber Formula 2000
['RingMeister'], // 1 Aston Martin Vantage GT4, BMW M4 G82 GT4, McLaren 570S GT4,
// Mercedes-AMG GT4, Porsche 718 Cayman GT4 Clubsport MR
['Cadillac CTS-VR'], // 2 Cadillac CTS-V Racecar
['SRF'], // 3 SCCA Spec Racer Ford
['GT3'], // DC
// 4 Audi R8 LMS EVO II GT3, BMW M4 GT3, Chevrolet Corvette Z06 GT3.R, Ferrari 296 GT3,
// Ford Mustang GT3, Lamborghini Huracán GT3, EVO, Mercedes-AMG GT3 2020, Porsche 911
// GT3 R (992)
['Rallycross'], // 5 Ford Fiesta RS WRC, Subaru WRX STI, VW Beetle
['Renault Clio'], // 6 Renault Clio
['Ray FF1600'], // 7 Ray FF1600
['Porsche 992'], // 8 Porsche 911 GT3 Cup (992)
['FIA F4'], // 9 FIA F4
['Touring Car'], // 10 Audi RS 3 LMS TCR, Honda Civic Type R TCR, Hyundai Elantra N TCR, Hyundai Veloster N TCR
['GT4 Class'], // 11 Aston Martin Vantage GT4, BMW M4 GT4, McLaren 570S GT4, Mercedes-AMG GT4,
// Porsche 718 Cayman GT4 Clubsport MR
['SF Lights'], // 12 Super Formula Lights
['GTE Class'], // 6 BMW M8 GTE, Chevrolet Corvette C8.R GTE,
// Ferrari 488 GTE, Ford GTE, Porsche 911 RSR
['Porsche 992'], // 7 Porsche 911 GT3 Cup (992)
['Touring Car'], // 8 Audi RS 3 LMS TCR, Honda Civic Type R TCR,
// Hyundai Elantra N TCR, Hyundai Veloster N TCR
['MX5 Cup 2016'], // 9 Global Mazda MX-5 Cup
['GT1 Class'], // 10 Aston Martin DBR9 GT1, Chevrolet Corvette C6.R GT1
['NASCAR 2022 NG'], // 11 NASCAR Cup Series Next Gen Chevrolet Camaro ZL1, NASCAR Cup Series Next Gen
// Ford Mustang, NASCAR Cup Series Next Gen Toyota Camry
['Street Stocks'], // 12 Casino M2, Street Stock - Eagle T3, Street Stock - Panther C1
['Pro Mazda'], // 13 [Legacy] Pro Mazda
],
},
// 331 │ 4897 │ Sports Car │ B │ Global Endurance CONSPIT Tour | 2024-09-03
4897: {
weekStartOffset: { days: 7 },
offWeeks: [
1.1, 2.1, 3.1, 4.1, 5.1,
// 538 │ 5103 │ Oval │ D │ Draft Master SIMAGIC Series - Fixed
5103: {
carByWeek: [
[10572], // 1 SRX
[10527, 10482, 10483, 10566], // 2 NASCAR Classic 1987
[10481, 10530, 10459], // 3 NASCAR Trucks
[10068], // 4 [Legacy] NASCAR Cup Chevrolet Impala COT - 2009
[10503, 10504, 10505], // 5 NASCAR Next Gen
[10464, 10465, 10466], // 6 XFINITY
[10572], // 7 SRX
[10527, 10482, 10483, 10566], // 8 NASCAR Classic 1987
[10481, 10530, 10459], // 9 NASCAR Trucks
[10068], // 10 [Legacy] NASCAR Cup Chevrolet Impala COT - 2009
[10503, 10504, 10505], // 11 NASCAR Next Gen
[10464, 10465, 10466], // 12 XFINITY
[10068], // 13 [Legacy] NASCAR Cup Chevrolet Impala COT - 2009
],
carClassShortNameByWeek: [
['SRX'], // 1 SRX
['NASCAR 1987'], // 2 NASCAR Classic 1987
['NASCAR Trucks'], // 3 NASCAR Trucks
['[Legacy] NASCAR Cup Chevrolet Impala COT - 2009'], // 4 [Legacy] NASCAR Cup Chevrolet Impala COT - 2009
['NASCAR 2022 NG'], // 5 NASCAR Next Gen
['XFINITY Series'], // 6 XFINITY
['SRX'], // 7 SRX
['NASCAR 1987'], // 8 NASCAR Classic 1987
['NASCAR Trucks'], // 9 NASCAR Trucks
['[Legacy] NASCAR Cup Chevrolet Impala COT - 2009'], // 10 [Legacy] NASCAR Cup Chevrolet Impala COT - 2009
['NASCAR 2022 NG'], // 11 NASCAR Next Gen
['XFINITY Series'], // 12 XFINITY
['[Legacy] NASCAR Cup Chevrolet Impala COT - 2009'], // 13 [Legacy] NASCAR Cup Chevrolet Impala COT - 2009
],
},
// 4194899 │ Sports Car │ B │ IMSA Endurance Series | 2024-09-03
4899: {
// 4925047 │ Sports Car │ C │ IMSA Michelin Pilot Challenge Series
5047: {
offWeeks: [
1.1, 2.1, 3.1, 4.1, 5.1,
0.1, 1.1, 2.1, 3.1, 4.1, 5.1,
],
},

// 492 │ 4883 │ Sports Car │ C │ IMSA Michelin Pilot Challenge Series | 2024-09-03
4883: {
// 331 │ 5061 │ Sports Car │ B │ Global Endurance CONSPIT Tour
5061: {
weekStartOffset: { days: 7 },
offWeeks: [
0.1, 1.1, 2.1, 3.1, 4.1, 5.1,
1.1, 2.1, 3.1, 4.1, 5.1,
],
},

// 4725026 │ Sports Car │ APorsche TAG Heuer Esports Supercup Qualifying Series | 2024-09-03
5026: {
// 4195063 │ Sports Car │ BIMSA Endurance Series
5063: {
offWeeks: [
5.1, 5.1,
1.1, 2.1, 3.1, 4.1, 5.1, 6.1,
],
},
};
Loading

0 comments on commit 0225630

Please sign in to comment.