Skip to content

Commit 10ef7f9

Browse files
RWEMAREMYUwicyezaG
authored andcommitted
advancing calender functionality (#480)
1 parent 73792fb commit 10ef7f9

File tree

79 files changed

+2369
-1242
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+2369
-1242
lines changed

package-lock.json

Lines changed: 44 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434
"@babel/preset-react": "^7.22.5",
3535
"@emotion/react": "^11.11.1",
3636
"@emotion/styled": "^11.11.0",
37-
"@fullcalendar/core": "^5.11.5",
38-
"@fullcalendar/daygrid": "^5.11.5",
39-
"@fullcalendar/interaction": "^5.11.5",
40-
"@fullcalendar/list": "^5.11.5",
41-
"@fullcalendar/react": "^5.11.5",
42-
"@fullcalendar/timegrid": "^5.11.5",
37+
"@fullcalendar/core": "^6.1.15",
38+
"@fullcalendar/daygrid": "^6.1.15",
39+
"@fullcalendar/interaction": "^6.1.15",
40+
"@fullcalendar/list": "^6.1.15",
41+
"@fullcalendar/react": "^6.1.15",
42+
"@fullcalendar/timegrid": "^6.1.15",
4343
"@headlessui/react": "^1.7.15",
4444
"@heroicons/react": "^1.0.6",
4545
"@iconify/react": "^3.2.2",

src/Mutations/Attendance.tsx

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,5 @@
11
import { gql } from '@apollo/client';
22

3-
export const GET_ATTENDANCE = gql`
4-
query ExampleQuery {
5-
getTraineeAttendance {
6-
id
7-
trainees {
8-
traineeId
9-
traineeEmail
10-
status {
11-
days
12-
value
13-
}
14-
}
15-
week
16-
}
17-
}
18-
`;
19-
20-
export const GET_ATTENDANCE_BY_ID = gql`
21-
query GetAttendance($id: ID!) {
22-
getTraineeAttendanceByID(id: $id) {
23-
id
24-
week
25-
trainees {
26-
traineeId
27-
traineeEmail
28-
status {
29-
days
30-
value
31-
}
32-
}
33-
}
34-
}
35-
`;
36-
37-
export const GET_WEEKLY_ATTENDANCE = gql`
38-
query GetTraineeAttendanceByID($traineeEmail: String!) {
39-
getTraineeAttendanceByID(traineeEmail: $traineeEmail) {
40-
weekNumber
41-
traineeAttendance {
42-
days
43-
value
44-
}
45-
}
46-
}
47-
`;
48-
493
export const UPDATE_ATTENDANCE = gql`
504
mutation RecordAttendance(
515
$week: String!

src/Mutations/MakeDefault.tsx

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,9 @@
11
import { gql } from '@apollo/client';
22

3-
export const DEFAULT_GRADE = gql`
4-
query GetDefaultGrading {
5-
getDefaultGrading {
6-
id
7-
name
8-
grade
9-
description
10-
percentage
11-
userId
12-
defaultGrading
13-
}
14-
}
15-
`;
16-
173
const MAKE_DEFAULT_GRADING_SYSTEM = gql`
184
mutation MakeRatingdefault($makeRatingdefaultId: ID) {
195
makeRatingdefault(id: $makeRatingdefaultId)
206
}
217
`;
8+
229
export default MAKE_DEFAULT_GRADING_SYSTEM;

0 commit comments

Comments
 (0)