Skip to content

Commit

Permalink
Merge branch 'develop' into items
Browse files Browse the repository at this point in the history
  • Loading branch information
gautam-divyanshu authored Jun 28, 2024
2 parents 40db611 + 05aaf09 commit f0bac2d
Show file tree
Hide file tree
Showing 26 changed files with 2,444 additions and 1,134 deletions.
501 changes: 428 additions & 73 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@mui/icons-material": "^5.8.3",
"@mui/material": "^5.15.19",
"@mui/material": "^5.15.20",
"@mui/private-theming": "^5.15.12",
"@mui/system": "^5.14.12",
"@mui/x-charts": "^7.6.2",
Expand All @@ -24,12 +24,12 @@
"customize-cra": "^1.0.0",
"dayjs": "^1.11.11",
"flag-icons": "^6.6.6",
"graphql": "^16.8.1",
"graphql": "^16.8.2",
"graphql-tag": "^2.12.6",
"graphql-ws": "^5.16.0",
"history": "^5.3.0",
"i18next": "^21.8.14",
"i18next-browser-languagedetector": "^6.1.4",
"i18next-browser-languagedetector": "^8.0.0",
"i18next-http-backend": "^1.4.1",
"inquirer": "^8.0.0",
"js-cookie": "^3.0.1",
Expand Down Expand Up @@ -124,10 +124,10 @@
"jest-localstorage-mock": "^2.4.19",
"jest-location-mock": "^2.0.0",
"jest-preview": "^0.3.1",
"lint-staged": "^15.2.5",
"lint-staged": "^15.2.7",
"postcss-modules": "^6.0.0",
"sass": "^1.77.4",
"tsx": "^3.11.0"
"tsx": "^4.15.5"
},
"resolutions": {
"@apollo/client": "^3.4.0-beta.19",
Expand Down
8 changes: 7 additions & 1 deletion public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,13 @@
"amount": "Amount",
"editPledge": "Edit Pledge",
"deletePledgeMsg": "Are you sure you want to delete this pledge?",
"noPledges": "No Pledges Found"
"noPledges": "No Pledges Found",
"sort": "Sort",
"searchVolunteer": "Search By Volunteer",
"highestAmount": "Highest Amount",
"lowestAmount": "Lowest Amount",
"latestEndDate": "Latest End Date",
"earliestEndDate": "Earliest End Date"
},
"orgPost": {
"title": "Posts",
Expand Down
8 changes: 7 additions & 1 deletion public/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,13 @@
"amount": "Montant",
"editPledge": "Modifier l'engagement",
"deletePledgeMsg": "Etes-vous sûr de vouloir supprimer cet engagement ?",
"noPledges": "Aucun engagement trouvé"
"noPledges": "Aucun engagement trouvé",
"sort": "Trier",
"searchVolunteer": "Rechercher par bénévole",
"highestAmount": "Montant le plus élevé",
"lowestAmount": "Montant le plus bas",
"latestEndDate": "Date de fin la plus récente",
"earliestEndDate": "Date de fin la plus proche"
},
"orgPost": {
"title": "Des postes",
Expand Down
8 changes: 7 additions & 1 deletion public/locales/hi/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,13 @@
"amount": "मात्रा",
"editPledge": "प्रतिज्ञा संपादित करें",
"deletePledgeMsg": "क्या आप वाकई इस प्रतिज्ञा को हटाना चाहते हैं?",
"noPledges": "कोई प्रतिज्ञा नहीं मिली"
"noPledges": "कोई प्रतिज्ञा नहीं मिली",
"sort": "क्रमबद्ध करें",
"searchVolunteer": "स्वयंसेवक द्वारा खोजें",
"highestAmount": "सबसे अधिक राशि",
"lowestAmount": "सबसे कम राशि",
"latestEndDate": "नवीनतम समाप्ति तिथि",
"earliestEndDate": "सबसे प्रारंभिक समाप्ति तिथि"
},
"orgPost": {
"title": "पदों",
Expand Down
8 changes: 7 additions & 1 deletion public/locales/sp/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,13 @@
"deletePledgeMsg": "¿Estás seguro de que quieres eliminar este compromiso?",
"no": "No",
"yes": "",
"noPledges": "No se encontraron compromisos"
"noPledges": "No se encontraron compromisos",
"sort": "Ordenar",
"searchVolunteer": "Buscar por voluntario",
"highestAmount": "Cantidad más alta",
"lowestAmount": "Cantidad más baja",
"latestEndDate": "Fecha de finalización más reciente",
"earliestEndDate": "Fecha de finalización más cercana"
},

"orgPost": {
Expand Down
8 changes: 7 additions & 1 deletion public/locales/zh/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,13 @@
"amount": "数量",
"editPledge": "编辑承诺",
"deletePledgeMsg": "您确定要删除此承诺吗?",
"noPledges": "未找到承诺"
"noPledges": "未找到承诺",
"sort": "排序",
"searchVolunteer": "按志愿者搜索",
"highestAmount": "最高金额",
"lowestAmount": "最低金额",
"latestEndDate": "最新结束日期",
"earliestEndDate": "最早结束日期"
},
"orgPost": {
"title": "帖子",
Expand Down
2 changes: 2 additions & 0 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1440,6 +1440,8 @@ enum UserOrderByInput {
id_DESC
lastName_ASC
lastName_DESC
createdAt_ASC
createdAt_DESC
}

type UserPhone {
Expand Down
2 changes: 2 additions & 0 deletions src/GraphQl/Mutations/PledgeMutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ export const UPDATE_PLEDGE = gql`
$currency: Currency
$startDate: Date
$endDate: Date
$users: [ID!]
) {
updateFundraisingCampaignPledge(
id: $id
data: {
users: $users
amount: $amount
currency: $currency
startDate: $startDate
Expand Down
2 changes: 2 additions & 0 deletions src/GraphQl/Queries/Queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export const USER_LIST = gql`
$lastName_contains: String
$skip: Int
$first: Int
$order: UserOrderByInput
) {
users(
where: {
Expand All @@ -116,6 +117,7 @@ export const USER_LIST = gql`
}
skip: $skip
first: $first
orderBy: $order
) {
user {
_id
Expand Down
6 changes: 4 additions & 2 deletions src/GraphQl/Queries/fundQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export const FUND_CAMPAIGN = gql`
`;

export const FUND_CAMPAIGN_PLEDGE = gql`
query GetFundraisingCampaignById($id: ID!) {
getFundraisingCampaignById(id: $id) {
query GetFundraisingCampaignById($id: ID!, $orderBy: PledgeOrderByInput) {
getFundraisingCampaignById(id: $id, orderBy: $orderBy) {
startDate
endDate
pledges {
Expand All @@ -60,6 +60,8 @@ export const FUND_CAMPAIGN_PLEDGE = gql`
users {
_id
firstName
lastName
image
}
}
}
Expand Down
94 changes: 84 additions & 10 deletions src/screens/FundCampaignPledge/FundCampaignPledge.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
margin: 0.6rem 0;
}

.createPledgeBtn {
position: absolute;
top: 1.3rem;
right: 2rem;
}
.container {
min-height: 100vh;
}
Expand All @@ -16,15 +11,24 @@
margin-top: 2vh;
margin-left: 13vw;
}

.titlemodal {
color: var(--bs-gray-600);
color: #707070;
font-weight: 600;
font-size: 20px;
margin-bottom: 20px;
padding-bottom: 5px;
border-bottom: 3px solid var(--bs-primary);
font-size: 32px;
width: 65%;
margin-bottom: 0px;
}

.modalCloseBtn {
width: 40px;
height: 40px;
padding: 1rem;
display: flex;
justify-content: center;
align-items: center;
}

.greenregbtn {
margin: 1rem 0 0;
margin-top: 15px;
Expand All @@ -51,3 +55,73 @@
align-items: center;
flex-direction: column;
}

.btnsContainer {
display: flex;
margin: 2.5rem 0 2.5rem 0;
}

.btnsContainer .input {
flex: 1;
min-width: 18rem;
position: relative;
}

.btnsContainer input {
outline: 1px solid var(--bs-gray-400);
}

.btnsContainer .input button {
width: 52px;
}

.inputField {
background-color: white;
box-shadow: 0 1px 1px #31bb6b;
}

.dropdown {
background-color: white;
border: 1px solid #31bb6b;
position: relative;
display: inline-block;
color: #31bb6b;
}

.tableHeader {
background-color: var(--bs-primary);
color: var(--bs-white);
font-size: 1rem;
}

.rowBackground {
background-color: var(--bs-white);
max-height: 120px;
}

.TableImage {
object-fit: cover;
width: 25px !important;
height: 25px !important;
border-radius: 100% !important;
}

.avatarContainer {
width: 28px;
height: 26px;
}

.volunteerContainer {
display: flex;
align-items: center;
justify-content: center;
margin: 0.1rem 0.25rem;
gap: 0.25rem;
padding: 0.25rem 0.45rem;
border-radius: 0.35rem;
background-color: #31bb6b33;
}

.noOutline input {
outline: none;
}
Loading

0 comments on commit f0bac2d

Please sign in to comment.