Skip to content

Commit

Permalink
Ported most website code to TypeScript (#7)
Browse files Browse the repository at this point in the history
* Ported most website code to TypeScript

* Got everything working
  • Loading branch information
jwngr authored Jul 7, 2024
1 parent 40008fe commit d04d3df
Show file tree
Hide file tree
Showing 92 changed files with 1,331 additions and 1,480 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2019 Jacob Wenger
Copyright (c) 2024 Jacob Wenger

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
12 changes: 0 additions & 12 deletions TODOS.md

This file was deleted.

2 changes: 1 addition & 1 deletion data/decadeCsvs/1892.csv
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Year,Date,Team,Linescore,1st Downs,3rd Down Attempts,3rd Down Conversions,4th Do
,,ND,,
1894,11/29/1894,ALB,,
,,ND,,
1895,10/19/1895,NW-L,,
1895,10/19/1895,NWL,,
,,ND,,
1895,11/07/1895,ILL-C,,
,,ND,,
Expand Down
2 changes: 1 addition & 1 deletion data/decadeCsvs/1900.csv
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ Year,Date,Team,Linescore,1st Downs,3rd Down Attempts,3rd Down Conversions,4th Do
,,PITT,,
1909,11/06/1909,ND,,
,,MICH,,
1909,11/13/1909,M-OH,,
1909,11/13/1909,MOH,,
,,ND,,
1909,11/20/1909,WAB,,
,,ND,,
Expand Down
2 changes: 1 addition & 1 deletion data/decadeCsvs/1910.csv
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Year,Date,Team,Linescore,1st Downs,3rd Down Attempts,3rd Down Conversions,4th Do
,,ND,,
1911,10/21/1911,BUT,,
,,ND,,
1911,10/28/1911,L-IL,,
1911,10/28/1911,LIL,,
,,ND,,
1911,11/04/1911,ND,,
,,PITT,,
Expand Down
2 changes: 1 addition & 1 deletion data/decadeCsvs/1920.csv
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Year,Date,Team,Linescore,1st Downs,3rd Down Attempts,3rd Down Conversions,4th Do
,,DRKE,,
1927,11/26/1927,USC,,
,,ND,,
1928,09/29/1928,L-LA,,
1928,09/29/1928,LLA,,
,,ND,,
1928,10/06/1928,ND,,
,,WIS,,
Expand Down
2 changes: 1 addition & 1 deletion data/decadeCsvs/2010.csv
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ Year,Date,Team,Linescore,1st Downs,3rd Down Attempts,3rd Down Conversions,4th Do
,,BC,3|7|3|7,22,4,17,1,2,400,215,24,41,185,44,2,1,2,6,35,30:25
2017,09/24/2017,ND,14|14|7|3,21,8,14,0,0,355,173,14,20,182,40,0,0,0,6,65,25:57
,,MSU,7|0|3|8,26,11,19,1,2,496,345,32,53,151,32,2,2,1,9,97,34:03
2017,09/30/2017,M-OH,7|7|3|0,19,6,15,0,2,377,262,19,37,115,33,1,1,1,9,90,35:33
2017,09/30/2017,MOH,7|7|3|0,19,6,15,0,2,377,262,19,37,115,33,1,1,1,9,90,35:33
,,ND,28|17|0|7,21,5,13,2,2,503,170,10,23,333,39,0,0,0,5,60,24:27
2017,10/07/2017,ND,0|16|10|7,27,5,16,3,4,487,146,17,31,341,57,2,0,2,10,80,36:32
,,UNC,0|7|0|3,13,6,18,0,1,265,179,19,42,86,28,3,2,1,10,104,23:28
Expand Down
2 changes: 1 addition & 1 deletion data/ndSchedules/1895.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
-86.234417
]
},
"opponentId": "NW-L",
"opponentId": "NWL",
"score": {
"away": 0,
"home": 20
Expand Down
2 changes: 1 addition & 1 deletion data/ndSchedules/1909.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
-86.234417
]
},
"opponentId": "M-OH",
"opponentId": "MOH",
"score": {
"away": 0,
"home": 46
Expand Down
2 changes: 1 addition & 1 deletion data/ndSchedules/1911.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
-86.234417
]
},
"opponentId": "L-IL",
"opponentId": "LIL",
"score": {
"away": 0,
"home": 80
Expand Down
2 changes: 1 addition & 1 deletion data/ndSchedules/1928.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
-86.234417
]
},
"opponentId": "L-LA",
"opponentId": "LLA",
"score": {
"away": 6,
"home": 12
Expand Down
2 changes: 1 addition & 1 deletion data/ndSchedules/1989.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"home": []
},
"time": "8:00 PM",
"coverage": "RAYCOM / WGN",
"coverage": "RAYCOM / WGN-TV",
"headCoach": "Lou Holtz",
"rankings": {
"home": {
Expand Down
2 changes: 1 addition & 1 deletion data/ndSchedules/2017.json
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@
-86.233917
]
},
"opponentId": "M-OH",
"opponentId": "MOH",
"espnGameId": 400934576,
"highlightsYouTubeVideoId": "mlJdQmFVOIc",
"linescore": {
Expand Down
2 changes: 1 addition & 1 deletion data/ndSchedules/2021.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
{
"isHomeGame": true,
"fullDate": "Sat Sep 11 2021 14:30:00 GMT-0400",
"coverage": "Peacock",
"coverage": "PEACOCK",
"highlightsYouTubeVideoId": "f1XKAkKAYe4",
"location": {
"city": "Notre Dame",
Expand Down
2 changes: 1 addition & 1 deletion data/ndSchedules/2024.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
-86.233917
]
},
"opponentId": "M-OH"
"opponentId": "MOH"
},
{
"isHomeGame": true,
Expand Down
13 changes: 7 additions & 6 deletions scripts/ndSchedules/validators/validateCoverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ const {CURRENT_SEASON} = require('../../lib/constants');

const EXPECTED_TV_CHANNELS = [
'ABC',
'ABC / ESPN',
'ABC / ESPN2',
'ACCN',
'CBS',
'CBSSN',
Expand All @@ -16,14 +14,17 @@ const EXPECTED_TV_CHANNELS = [
'KATZ',
'NBC',
'NBCSN',
'Peacock',
'RAYCOM / WGN',
'PEACOCK',
'SPORTSCHANNEL',
'TBS',
'USA',
'USA / WGN-TV',
'WGN-TV',
];
// TODO: Handle multi-network broadcasts explicitly in the data model as an array of networks.
'ABC / ESPN',
'ABC / ESPN2',
'RAYCOM / WGN-TV',
'USA / WGN-TV',
];

module.exports = ({season, coverage}, assert) => {
const wrappedAssert = (statement, message) => {
Expand Down
60 changes: 0 additions & 60 deletions website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"styled-components": "^5.0.1",
"topojson-client": "^3.0.0",
"typeface-bungee": "1.1.13",
"victory": "^0.24.5",
"weathericons": "^2.1.0"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit d04d3df

Please sign in to comment.