Skip to content

Commit

Permalink
Integrated APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
git-init-priyanshu committed Mar 20, 2024
1 parent 6b81ffc commit 1ef86c0
Show file tree
Hide file tree
Showing 14 changed files with 679 additions and 127 deletions.
4 changes: 3 additions & 1 deletion public/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@
"wesiteLink": "Website Link",
"logo": "Logo",
"social": "Social Media Links",
"url": "Enter url"
"url": "Enter url",
"profileChangedMsg": "Successfully updated the Profile Details.",
"resetData": "Successfully reset the Profile Details."
},
"dashboard": {
"title": "Dashboard",
Expand Down
4 changes: 3 additions & 1 deletion public/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@
"wesiteLink": "Lien de site Web",
"logo": "Logo",
"social": "Liens vers les réseaux sociaux",
"url": "Entrer l'URL"
"url": "Entrer l'URL",
"profileChangedMsg": "Les détails du profil ont été mis à jour avec succès.",
"resetData": "Réinitialisez avec succès les détails du profil."
},
"dashboard": {
"title": "Tableau de bord",
Expand Down
4 changes: 3 additions & 1 deletion public/locales/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@
"wesiteLink": "वेबसाइट की लिंक",
"logo": "प्रतीक चिन्ह",
"social": "सोशल मीडिया लिंक",
"url": "यू आर एल दर्ज करो"
"url": "यू आर एल दर्ज करो",
"profileChangedMsg": "प्रोफ़ाइल विवरण सफलतापूर्वक अपडेट किया गया।",
"resetData": "प्रोफ़ाइल विवरण सफलतापूर्वक रीसेट किया गया।"
},
"dashboard": {
"title": "डैशबोर्ड",
Expand Down
4 changes: 3 additions & 1 deletion public/locales/sp.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@
"wesiteLink": "Enlace de página web",
"logo": "Logo",
"social": "Enlaces de redes sociales",
"url": "Introducir URL"
"url": "Introducir URL",
"profileChangedMsg": "Se actualizaron correctamente los detalles del perfil.",
"resetData": "Restablezca correctamente los detalles del perfil."
},
"dashboard": {
"title": "Panel de",
Expand Down
4 changes: 3 additions & 1 deletion public/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@
"wesiteLink": "网站链接",
"logo": "标识",
"social": "社交媒体链接",
"url": "输入网址"
"url": "输入网址",
"profileChangedMsg": "已成功更新个人资料详细信息。",
"resetData": "成功重置个人资料详细信息。"
},
"dashboard": {
"title": "儀表板",
Expand Down
12 changes: 9 additions & 3 deletions src/GraphQl/Mutations/mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -580,9 +580,15 @@ export const REGISTER_EVENT = gql`
}
`;

export const UPLOAD_PRELOGIN_IMAGERY = gql`
mutation uploadPreLoginImagery($data: PreLoginImageryInput!) {
uploadPreLoginImagery(data: $data)
export const UPDATE_COMMUNITY = gql`
mutation updateCommunity($data: UpdateCommunityInput!) {
updateCommunity(data: $data)
}
`;

export const RESET_COMMUNITY = gql`
mutation resetCommunity {
resetCommunity
}
`;

Expand Down
21 changes: 21 additions & 0 deletions src/GraphQl/Queries/Queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,27 @@ export const USERS_CONNECTION_LIST = gql`
}
`;

export const GET_COMMUNITY_DATA = gql`
query getCommunityData {
getCommunityData {
_id
websiteLink
name
logoUrl
socialMediaUrls {
facebook
gitHub
instagram
twitter
linkedIn
youTube
reddit
slack
}
}
}
`;

// get the list of Action Item Categories
export { ACTION_ITEM_CATEGORY_LIST } from './ActionItemCategoryQueries';

Expand Down
1 change: 0 additions & 1 deletion src/components/OrgListCard/OrgListCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ function orgListCard(props: InterfaceOrgListCardProps): JSX.Element {
fill="var(--bs-white)"
width={12}
className={styles.flaskIcon}
data-testid="icon"
title={t('sampleOrganization')}
/>
)}
Expand Down
43 changes: 37 additions & 6 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,48 @@ import {
SlackLogo,
TwitterLogo,
YoutubeLogo,
RedditLogo,
} from 'assets/svgs/social-icons';

export const socialMediaLinks = [
{ href: 'https://www.facebook.com/palisadoesproject', logo: FacebookLogo },
{ href: 'https://twitter.com/palisadoesorg?lang=en', logo: TwitterLogo },
{ href: 'https://www.linkedin.com/company/palisadoes/', logo: LinkedInLogo },
{ href: 'https://github.com/PalisadoesFoundation', logo: GithubLogo },
{
tag: 'facebook',
href: 'https://www.facebook.com/palisadoesproject',
logo: FacebookLogo,
},
{
tag: 'twitter',
href: 'https://twitter.com/palisadoesorg?lang=en',
logo: TwitterLogo,
},
{
tag: 'linkedIn',
href: 'https://www.linkedin.com/company/palisadoes/',
logo: LinkedInLogo,
},
{
tag: 'gitHub',
href: 'https://github.com/PalisadoesFoundation',
logo: GithubLogo,
},
{
tag: 'youTube',
href: 'https://www.youtube.com/@PalisadoesOrganization',
logo: YoutubeLogo,
},
{ href: 'https://www.palisadoes.org/slack', logo: SlackLogo },
{ href: 'https://www.instagram.com/palisadoes/', logo: InstagramLogo },
{
tag: 'slack',
href: 'https://www.palisadoes.org/slack',
logo: SlackLogo,
},
{
tag: 'instagram',
href: 'https://www.instagram.com/palisadoes/',
logo: InstagramLogo,
},
{
tag: 'reddit',
href: '',
logo: RedditLogo,
},
];
Loading

0 comments on commit 1ef86c0

Please sign in to comment.