-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrading packages for security (#1472)
* updated jest and eslint for semver upgrade * formatting fixes
- Loading branch information
1 parent
078b08f
commit 759c925
Showing
8 changed files
with
2,654 additions
and
2,846 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"campaigns": "Кампании", | ||
"news": "Всички новини" | ||
} | ||
"campaigns": "Кампании", | ||
"news": "Всички новини" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
{ | ||
"news": "Новини", | ||
"form-heading": "Създайте нова статия", | ||
"edit-form-heading": "Редактирайте статия", | ||
"read-more": "Прочети повече", | ||
"read-less": "Прочети по-малко", | ||
"see-all-news": "Виж всички новини", | ||
"news-not-found": "Не бяха намерени новини за тази кампания", | ||
"write-new-article": "Напишете нова статия", | ||
"status" : { | ||
"draft": "Чернова", | ||
"published": "Публикувана" | ||
"news": "Новини", | ||
"form-heading": "Създайте нова статия", | ||
"edit-form-heading": "Редактирайте статия", | ||
"read-more": "Прочети повече", | ||
"read-less": "Прочети по-малко", | ||
"see-all-news": "Виж всички новини", | ||
"news-not-found": "Не бяха намерени новини за тази кампания", | ||
"write-new-article": "Напишете нова статия", | ||
"status": { | ||
"draft": "Чернова", | ||
"published": "Публикувана" | ||
}, | ||
"article": { | ||
"title": "Заглавие", | ||
"author": "Автор", | ||
"createdAt": "Създадена на", | ||
"publishedAt": "Публикувана на", | ||
"lastEdit": "Последно променена", | ||
"status": "Статут", | ||
"slug": { | ||
"name": "Кратко наименование на статия", | ||
"warning": "Редактирането на това поле ще измени линка към статията и ще направи текущия невалиден", | ||
"placeholder": "Стойността по подразбиране е същата като 'Заглавие на статия'" | ||
}, | ||
"article": { | ||
"title": "Заглавие", | ||
"author": "Автор", | ||
"createdAt": "Създадена на", | ||
"publishedAt": "Публикувана на", | ||
"lastEdit": "Последно променена", | ||
"status": "Статут", | ||
"slug": { | ||
"name": "Кратко наименование на статия", | ||
"warning": "Редактирането на това поле ще измени линка към статията и ще направи текущия невалиден", | ||
"placeholder": "Стойността по подразбиране е същата като 'Заглавие на статия'" | ||
}, | ||
"select-campaign": "Изберете кампания", | ||
"source-link": { | ||
"label": "Линк към източник", | ||
"field-description": "Това поле е нужно само, в случай че статията е взета от друг източник.\nОставете празно ако вие сте автора на статията." | ||
}, | ||
"actions": { | ||
"header": "Действия", | ||
"no-access": "Нямате достъп до това действие\nСвържете се с координатора на кампанията", | ||
"deleted-successfully": "Новината беше успешно изтрита" | ||
} | ||
} | ||
} | ||
"select-campaign": "Изберете кампания", | ||
"source-link": { | ||
"label": "Линк към източник", | ||
"field-description": "Това поле е нужно само, в случай че статията е взета от друг източник.\nОставете празно ако вие сте автора на статията." | ||
}, | ||
"actions": { | ||
"header": "Действия", | ||
"no-access": "Нямате достъп до това действие\nСвържете се с координатора на кампанията", | ||
"deleted-successfully": "Новината беше успешно изтрита" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"campaigns": "Campaigns", | ||
"news": "All news" | ||
} | ||
"campaigns": "Campaigns", | ||
"news": "All news" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
{ | ||
"news": "News", | ||
"read-more": "Read more", | ||
"read-less": "Read less", | ||
"see-all-news": "See all news", | ||
"news-not-found": "No news articles were found for this campaign", | ||
"write-new-article": "Write an article", | ||
"status" : { | ||
"draft": "Draft", | ||
"published": "Published" | ||
"news": "News", | ||
"read-more": "Read more", | ||
"read-less": "Read less", | ||
"see-all-news": "See all news", | ||
"news-not-found": "No news articles were found for this campaign", | ||
"write-new-article": "Write an article", | ||
"status": { | ||
"draft": "Draft", | ||
"published": "Published" | ||
}, | ||
"article": { | ||
"title": "Title", | ||
"author": "Author", | ||
"createdAt": "Created at", | ||
"publishedAt": "Published at", | ||
"lastEdit": "Last edited at", | ||
"status": "Status", | ||
"slug": { | ||
"name": "Short name of the article", | ||
"warning": "Editing this field is going to change the link to the news article, and make the current one invalid", | ||
"placeholder": "The default value is the same as 'Article title'" | ||
}, | ||
"article": { | ||
"title": "Title", | ||
"author": "Author", | ||
"createdAt": "Created at", | ||
"publishedAt": "Published at", | ||
"lastEdit": "Last edited at", | ||
"status": "Status", | ||
"slug": { | ||
"name": "Short name of the article", | ||
"warning": "Editing this field is going to change the link to the news article, and make the current one invalid", | ||
"placeholder": "The default value is the same as 'Article title'" | ||
}, | ||
"select-campaign": "Select campaign", | ||
"source-link": { | ||
"label": "Link to source", | ||
"field-description": "This field is only necessary if the article is taken from another source.\nLeave empty if you are the author of this article" | ||
}, | ||
"actions": { | ||
"header": "Actions", | ||
"no-access": "No access to this action\nPlease contact campaign's coordinator", | ||
"deleted-successfully": "The article was successfully deleted" | ||
} | ||
} | ||
} | ||
"select-campaign": "Select campaign", | ||
"source-link": { | ||
"label": "Link to source", | ||
"field-description": "This field is only necessary if the article is taken from another source.\nLeave empty if you are the author of this article" | ||
}, | ||
"actions": { | ||
"header": "Actions", | ||
"no-access": "No access to this action\nPlease contact campaign's coordinator", | ||
"deleted-successfully": "The article was successfully deleted" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
import React, { useMemo } from 'react' | ||
|
||
import { styled } from '@mui/material/styles' | ||
import LinearProgress from '@mui/material/LinearProgress' | ||
import { Grid } from '@mui/material' | ||
|
||
import { UUID } from 'gql/types' | ||
|
||
const PREFIX = 'CampaignProgress' | ||
|
||
const classes = { | ||
root: `${PREFIX}-root`, | ||
bar: `${PREFIX}-bar`, | ||
donationProgress: `${PREFIX}-donationProgress`, | ||
cardActions: `${PREFIX}-cardActions`, | ||
} | ||
|
||
const StyledGrid = styled(Grid)(({ theme }) => ({ | ||
[`&.${classes.donationProgress}`]: { | ||
width: '100%', | ||
'> div p': { | ||
color: theme.palette.text.secondary, | ||
padding: theme.spacing(1), | ||
}, | ||
}, | ||
|
||
[`& .${classes.cardActions}`]: { | ||
padding: '0', | ||
}, | ||
})) | ||
|
||
const BorderLinearProgress = LinearProgress | ||
|
||
type Props = { | ||
campaignId: UUID | ||
raised: number | ||
target: number | ||
} | ||
export default function CampaignProgress({ campaignId, raised, target }: Props) { | ||
const percentage = useMemo(() => (raised / target) * 100, [raised, target]) | ||
|
||
return ( | ||
<StyledGrid className={classes.donationProgress} container> | ||
<Grid item xs={12}> | ||
<BorderLinearProgress | ||
variant="determinate" | ||
value={percentage > 100 ? 100 : percentage} | ||
aria-labelledby={`campaign-${campaignId}--donations-progressbar`} | ||
classes={{ | ||
root: classes.root, | ||
bar: classes.bar, | ||
}} | ||
/> | ||
</Grid> | ||
</StyledGrid> | ||
) | ||
} | ||
import React, { useMemo } from 'react' | ||
|
||
import { styled } from '@mui/material/styles' | ||
import LinearProgress from '@mui/material/LinearProgress' | ||
import { Grid } from '@mui/material' | ||
|
||
import { UUID } from 'gql/types' | ||
|
||
const PREFIX = 'CampaignProgress' | ||
|
||
const classes = { | ||
root: `${PREFIX}-root`, | ||
bar: `${PREFIX}-bar`, | ||
donationProgress: `${PREFIX}-donationProgress`, | ||
cardActions: `${PREFIX}-cardActions`, | ||
} | ||
|
||
const StyledGrid = styled(Grid)(({ theme }) => ({ | ||
[`&.${classes.donationProgress}`]: { | ||
width: '100%', | ||
'> div p': { | ||
color: theme.palette.text.secondary, | ||
padding: theme.spacing(1), | ||
}, | ||
}, | ||
|
||
[`& .${classes.cardActions}`]: { | ||
padding: '0', | ||
}, | ||
})) | ||
|
||
const BorderLinearProgress = LinearProgress | ||
|
||
type Props = { | ||
campaignId: UUID | ||
raised: number | ||
target: number | ||
} | ||
export default function CampaignProgress({ campaignId, raised, target }: Props) { | ||
const percentage = useMemo(() => (raised / target) * 100, [raised, target]) | ||
|
||
return ( | ||
<StyledGrid className={classes.donationProgress} container> | ||
<Grid item xs={12}> | ||
<BorderLinearProgress | ||
variant="determinate" | ||
value={percentage > 100 ? 100 : percentage} | ||
aria-labelledby={`campaign-${campaignId}--donations-progressbar`} | ||
classes={{ | ||
root: classes.root, | ||
bar: classes.bar, | ||
}} | ||
/> | ||
</Grid> | ||
</StyledGrid> | ||
) | ||
} |
Oops, something went wrong.