-
Notifications
You must be signed in to change notification settings - Fork 0
Playoff Schedule #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
apps/playoff-schedule/frontend/src/endpoints/unUsed/EventsFull.tsx
Outdated
Show resolved
Hide resolved
YoniKiriaty
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thought this was good then I saw the App.tsx
YoniKiriaty
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good✅
apps/playoff-schedule/frontend/src/utils/bracketOpponentDetection.ts
Outdated
Show resolved
Hide resolved
apps/playoff-schedule/frontend/src/utils/bracketFeedingHelpers.ts
Outdated
Show resolved
Hide resolved
apps/playoff-schedule/frontend/src/utils/bracketPredictionHelpers.ts
Outdated
Show resolved
Hide resolved
…jects into playoff-schedule/init
| throw new Error(`HTTP error, status: ${response.status}`); | ||
| } | ||
|
|
||
| return response.json() as Promise<T>; |
Check warning
Code scanning / ESLint
Disallow type assertions that narrow a type Warning
|
|
||
| export type MatchesSimpleType = typeof matchSimple._A; | ||
|
|
||
| export const urlMatches = (eventKey: string) => `/events/${eventKey}/matches`; |
Check warning
Code scanning / ESLint
Require explicit return and argument types on exported functions' and classes' public class methods Warning
| @@ -0,0 +1,4 @@ | |||
| // בס"ד | |||
|
|
|||
| export const urlRankings = (eventKey: string) => | |||
Check warning
Code scanning / ESLint
Require explicit return and argument types on exported functions' and classes' public class methods Warning
| const fullUrl = joinUrl(targetPath); | ||
| const response = await fetch(fullUrl); | ||
| if (response.ok) { | ||
| return (await response.json()) as T; |
Check warning
Code scanning / ESLint
Disallow type assertions that narrow a type Warning
| @@ -0,0 +1,2 @@ | |||
| // בס"ד | |||
| export const urlRankings = (eventKey: string) => `/events/${eventKey}/rankings`; | |||
Check warning
Code scanning / ESLint
Require explicit return and argument types on exported functions' and classes' public class methods Warning
apps/playoff-schedule/frontend/src/utils/bracketFeedingHelpers.ts
Outdated
Show resolved
Hide resolved
| app.use(express.urlencoded({ limit: "10mb", extended: true })); | ||
|
|
||
| app.use( | ||
| cors({ |
Check warning
Code scanning / ESLint
Disallow calling a value with type `any` Warning
|
|
||
| const queryClient = new QueryClient(); | ||
|
|
||
| createRoot(document.getElementById("root")!).render( |
Check warning
Code scanning / ESLint
Disallow non-null assertions using the `!` postfix operator Warning
| return null; | ||
| } | ||
| return { | ||
| opponentAlliance: opponentData.alliance, |
Check warning
Code scanning / ESLint
Disallow assigning a value with type `any` to variables and properties Warning
| return { | ||
| opponentAlliance: opponentData.alliance, | ||
| opponentTeams: opponentData.teams, | ||
| ourAlliance: ourAllianceEntry.alliance, |
Check warning
Code scanning / ESLint
Disallow assigning a value with type `any` to variables and properties Warning
| ): OpponentInfo | null => { | ||
| const potentialNextOpponents = nextMatchAlliances | ||
| .map(({ alliance, teams }) => ({ | ||
| alliance, |
Check warning
Code scanning / ESLint
Disallow assigning a value with type `any` to variables and properties Warning
| if (potentialNextOpponents.length === potentialOpponentsFirst) { | ||
| const [opponent] = potentialNextOpponents; | ||
| return { | ||
| opponentAlliance: opponent.alliance, |
Check warning
Code scanning / ESLint
Disallow assigning a value with type `any` to variables and properties Warning
| return []; | ||
| } | ||
|
|
||
| if (feedingMatch.winning_alliance) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
invert
| }; | ||
| } | ||
|
|
||
| if (target === "finals") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
split the insides of this if into a getNextFinal or smthing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merge master and use the one in maaster
the project makes a schedule for playoff and events that happened and will happen