Skip to content

Commit

Permalink
Dark theme implementation (#259)
Browse files Browse the repository at this point in the history
* ch(fix sign up):  fixing sign up

- google is removed
-Date of birth is validated to be at least 18 years
-Email field is automatically filled and uneditable ( collect the email
from the sign up link sent to them)
-Password should not be too easy. (Should not be in the first 100 most
common passwords: https://tinyurl.com/wiki-100)

[Finishes #42-signup-fix]

* ch(dark-theme):implementation of dark theme

-Dark theme is added using our new design
-implement effective dark theme at all

[finishes #59-dark-theme-implementation]

* add orgLogin update (#260)

* add

* Add change

* move space in organiaztionLogin

* add newUpdate

* add newChange

* add change

* add changing

* Add change

* add change

---------

Co-authored-by: Rachel UMWARI <[email protected]>
  • Loading branch information
Mystica52 and rachelumwari committed Sep 13, 2023
1 parent fcc925c commit 5040c41
Show file tree
Hide file tree
Showing 13 changed files with 21,571 additions and 128 deletions.
21,408 changes: 21,408 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

137 changes: 92 additions & 45 deletions src/Mutations/manageStudentMutations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const GET_TRAINEES_QUERY = gql`
githubUsername
resume
}
id
email
team {
name
Expand Down Expand Up @@ -113,80 +114,101 @@ export const GET_GITHUB_STATISTICS = gql`
`;

export const ADD_DOCUMENTATION = gql`
mutation AddDocumentation($title: String!, $for: String!, $description: String!) {
addDocumentation(title: $title, for: $for, description: $description) {
title
description
id
for
subDocuments {
description
mutation AddDocumentation(
$title: String!
$for: String!
$description: String!
) {
addDocumentation(title: $title, for: $for, description: $description) {
title
description
id
for
subDocuments {
description
title
}
}
}
}
`;

export const ADD_SUB_DOCUMENTATION = gql`
mutation AddSubDocumentation($id: ID!, $title: String!, $description: String!) {
addSubDocumentation(id: $id, title: $title, description: $description) {
description
id
title
mutation AddSubDocumentation(
$id: ID!
$title: String!
$description: String!
) {
addSubDocumentation(id: $id, title: $title, description: $description) {
description
id
title
}
}
}
`;

export const GET_DOCUMENTATION = gql`
query GetDocumentations {
getDocumentations {
description
for
id
subDocuments {
query GetDocumentations {
getDocumentations {
description
for
id
subDocuments {
description
title
}
title
}
title
}
}
`;

export const UPDATE_DOCUMENTATION = gql`
mutation UpdateDocumentation($id: ID!, $title: String, $for: String, $description: String) {
updateDocumentation(id: $id, title: $title, for: $for, description: $description) {
description
for
id
subDocuments {
mutation UpdateDocumentation(
$id: ID!
$title: String
$for: String
$description: String
) {
updateDocumentation(
id: $id
title: $title
for: $for
description: $description
) {
description
for
id
subDocuments {
description
title
}
title
}
title
}
}
`;

export const DELETE_DOCUMENTATION = gql`
mutation DeleteDocumentation($id: ID!) {
deleteDocumentation(id: $id)
}
mutation DeleteDocumentation($id: ID!) {
deleteDocumentation(id: $id)
}
`;

export const DELETE_SUB_DOCUMENTATION = gql`
mutation DeleteSubDocumentation($id: ID!, $title: String!, $description: String!) {
deleteSubDocumentation(id: $id, title: $title, description: $description) {
id
title
for
description
subDocuments {
description
mutation DeleteSubDocumentation(
$id: ID!
$title: String!
$description: String!
) {
deleteSubDocumentation(id: $id, title: $title, description: $description) {
id
title
for
description
subDocuments {
description
title
}
}
}
}
`;

export const GET_LOGIN_ACTIVITIES = gql`
Expand Down Expand Up @@ -298,6 +320,31 @@ export const INVITE_USER_MUTATION = gql`
inviteUser(email: $email, orgToken: $orgToken, type: $type)
}
`;
export const ACCEPT_EVENT_MUTATION = gql`
mutation RespondToEventInvitation(
$eventId: ID!
$status: String!
$reason: String!
$authToken: String
) {
respondToEventInvitation(
eventId: $eventId
status: $status
reason: $reason
authToken: $authToken
) {
title
timeToStart
timeToEnd
invitationStatus
invitationReason
hostName
guests
end
start
}
}
`;
export const GET_TEAM_QUERY = gql`
query GetAllTeamInCohort($orgToken: String, $cohort: String) {
getAllTeamInCohort(orgToken: $orgToken, cohort: $cohort) {
Expand Down Expand Up @@ -349,4 +396,4 @@ export const GET_TEAM_TRAINEE_QUERY = gql`
}
}
}
`;
`;
Loading

0 comments on commit 5040c41

Please sign in to comment.