-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into t1009-apply-search-sort-on-overall-apis
- Loading branch information
Showing
361 changed files
with
6,542 additions
and
5,031 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
apps/backend/apps/admin/src/contest/model/contest-with-scores.model.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Field, Int, ObjectType } from '@nestjs/graphql' | ||
import { Contest } from '@admin/@generated' | ||
|
||
@ObjectType() | ||
export class ContestWithScores extends Contest { | ||
@Field(() => Int) | ||
problemScore: number | ||
|
||
@Field(() => Int) | ||
totalScore: number | ||
} |
14 changes: 14 additions & 0 deletions
14
apps/backend/apps/admin/src/contest/model/contests-grouped-by-status.output.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Field, ObjectType } from '@nestjs/graphql' | ||
import { ContestWithScores } from './contest-with-scores.model' | ||
|
||
@ObjectType() | ||
export class ContestsGroupedByStatus { | ||
@Field(() => [ContestWithScores]) | ||
upcoming: ContestWithScores[] | ||
|
||
@Field(() => [ContestWithScores]) | ||
ongoing: ContestWithScores[] | ||
|
||
@Field(() => [ContestWithScores]) | ||
finished: ContestWithScores[] | ||
} |
14 changes: 0 additions & 14 deletions
14
apps/backend/apps/admin/src/contest/model/contests-grouped-by-status.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.