Skip to content

Commit

Permalink
feat: Transfer course info share mutations to backend (#1469)
Browse files Browse the repository at this point in the history
* Add graphql functions in hasura/contest.ts and Add routes in routes/contest.ts offerred to frontend

* add annotations for hasura/contest.ts

* change start/end data type (from string to Date)

* update routes/contests.ts, add response info (message and stack)

* delete inappropriate route and classify routes: 1.contest management 2.contest team

* delete useless routes in team.ts

* fix errors: delete all defined but never used imports

* fix contest.ts

* update contest.ts ( fix return expressions )

* delete 'AuthenticationError'

* add authenticate params in src/routes/team.ts as well as manage.ts

* update routes and gqls to make params in update operations optional

* fix errors in contest.ts

* move frontend graphql mutation queries to backend
for queries in web/info

* fix error in dynamic params and improved several points

* fix errors in /manage.ts

* added routes and tested

* Add routes for web/src/graphql/info/*.graphql

* Updated routes to allow partial parameters

* removed comments and modified null check

* modified routes return value

* initial commit for share.ts

* gql functions added

* route functions in routes\share.ts

---------

Co-authored-by: konpoku <[email protected]>
Co-authored-by: Jerffery Zhao <[email protected]>
Co-authored-by: zzdhyb <[email protected]>
  • Loading branch information
4 people authored Dec 22, 2024
1 parent 43b4a82 commit 177fed2
Show file tree
Hide file tree
Showing 4 changed files with 922 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/hasura/contest.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import { gql } from "graphql-request";
import { client } from "..";


export interface TeamInfo {
team_id: string;
team_name: string;
player: string[];
team_leader_uuid: string;
}

/**
============================================================================
============================ QUERY FUNCTIONS ===============================
Expand Down
Loading

0 comments on commit 177fed2

Please sign in to comment.