Skip to content

Commit

Permalink
advancing calender functionality (#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
RWEMAREMY authored and UwicyezaG committed Oct 4, 2024
1 parent 73792fb commit dca14e2
Show file tree
Hide file tree
Showing 79 changed files with 2,369 additions and 1,242 deletions.
97 changes: 44 additions & 53 deletions package-lock.json

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

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
"@babel/preset-react": "^7.22.5",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@fullcalendar/core": "^5.11.5",
"@fullcalendar/daygrid": "^5.11.5",
"@fullcalendar/interaction": "^5.11.5",
"@fullcalendar/list": "^5.11.5",
"@fullcalendar/react": "^5.11.5",
"@fullcalendar/timegrid": "^5.11.5",
"@fullcalendar/core": "^6.1.15",
"@fullcalendar/daygrid": "^6.1.15",
"@fullcalendar/interaction": "^6.1.15",
"@fullcalendar/list": "^6.1.15",
"@fullcalendar/react": "^6.1.15",
"@fullcalendar/timegrid": "^6.1.15",
"@headlessui/react": "^1.7.15",
"@heroicons/react": "^1.0.6",
"@iconify/react": "^3.2.2",
Expand Down
46 changes: 0 additions & 46 deletions src/Mutations/Attendance.tsx
Original file line number Diff line number Diff line change
@@ -1,51 +1,5 @@
import { gql } from '@apollo/client';

export const GET_ATTENDANCE = gql`
query ExampleQuery {
getTraineeAttendance {
id
trainees {
traineeId
traineeEmail
status {
days
value
}
}
week
}
}
`;

export const GET_ATTENDANCE_BY_ID = gql`
query GetAttendance($id: ID!) {
getTraineeAttendanceByID(id: $id) {
id
week
trainees {
traineeId
traineeEmail
status {
days
value
}
}
}
}
`;

export const GET_WEEKLY_ATTENDANCE = gql`
query GetTraineeAttendanceByID($traineeEmail: String!) {
getTraineeAttendanceByID(traineeEmail: $traineeEmail) {
weekNumber
traineeAttendance {
days
value
}
}
}
`;

export const UPDATE_ATTENDANCE = gql`
mutation RecordAttendance(
$week: String!
Expand Down
15 changes: 1 addition & 14 deletions src/Mutations/MakeDefault.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,9 @@
import { gql } from '@apollo/client';

export const DEFAULT_GRADE = gql`
query GetDefaultGrading {
getDefaultGrading {
id
name
grade
description
percentage
userId
defaultGrading
}
}
`;

const MAKE_DEFAULT_GRADING_SYSTEM = gql`
mutation MakeRatingdefault($makeRatingdefaultId: ID) {
makeRatingdefault(id: $makeRatingdefaultId)
}
`;

export default MAKE_DEFAULT_GRADING_SYSTEM;
Loading

0 comments on commit dca14e2

Please sign in to comment.