mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-08-03 19:17:07 -04:00
Merge branch 'main' into ben-updates
This commit is contained in:
commit
b53f23b420
@ -37,21 +37,11 @@ check:
|
|||||||
apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev -y
|
apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev -y
|
||||||
fi
|
fi
|
||||||
script:
|
script:
|
||||||
- start_section "Install Dependencies"
|
- start_section "Install Dependencies & Setup Environment"
|
||||||
# temporarily replace FontAwesomePro dependency with its fake version as the CI can’t access it
|
- echo "https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com" > ~/.git-credentials
|
||||||
# the name needs to be changed in both package.json and pnpm-lock.yaml
|
- git config --global credential.helper store
|
||||||
- 'sed -i "s/git+ssh:\/\/git@gitlab.com:Avris\/FontAwesomePro.git/git+https:\/\/gitlab.com\/Avris\/FakeFontAwesomePro.git/" package.json pnpm-lock.yaml'
|
|
||||||
# the referenced SHA needs to be additionally changed in pnpm-lock.yaml
|
|
||||||
- 'sed -i "s/git@gitlab.com+Avris\/FontAwesomePro\/f00db606f659dca78b143b7bcab5671b2cb459a8/gitlab.com\/Avris\/FakeFontAwesomePro\/0d322c775cbe9bf99da261700be30251291b51a8/" pnpm-lock.yaml'
|
|
||||||
- 'sed -i "s/resolution: {commit: f00db606f659dca78b143b7bcab5671b2cb459a8, repo: git@gitlab.com:Avris\/FontAwesomePro.git, type: git}/resolution: { tarball: https:\/\/gitlab.com\/api\/v4\/projects\/Avris%2FFakeFontAwesomePro\/repository\/archive.tar.gz?sha=0d322c775cbe9bf99da261700be30251291b51a8 }/" pnpm-lock.yaml'
|
|
||||||
- corepack enable pnpm
|
- corepack enable pnpm
|
||||||
- pnpm install || record_failure
|
|
||||||
- end_section
|
|
||||||
|
|
||||||
- start_section "Setup environment"
|
|
||||||
- make install || record_failure
|
- make install || record_failure
|
||||||
# revert the changes for the FontAwesomePro dependency only now because `make install` calls `pnpm install`
|
|
||||||
- git restore package.json pnpm-lock.yaml
|
|
||||||
- end_section
|
- end_section
|
||||||
|
|
||||||
- start_section "Type checking"
|
- start_section "Type checking"
|
||||||
@ -59,8 +49,7 @@ check:
|
|||||||
- end_section
|
- end_section
|
||||||
|
|
||||||
- start_section "Unit Tests"
|
- start_section "Unit Tests"
|
||||||
- >
|
- pnpm vitest --reporter=default --reporter=junit --outputFile=junit.xml --coverage || record_failure
|
||||||
pnpm vitest --reporter=default --reporter=junit --outputFile=junit.xml --coverage || record_failure
|
|
||||||
- end_section
|
- end_section
|
||||||
|
|
||||||
- start_section "Check linting rules"
|
- start_section "Check linting rules"
|
||||||
@ -214,7 +203,10 @@ deploy test/purple:
|
|||||||
ENVIRONMENT_INSTANCE: 'purple'
|
ENVIRONMENT_INSTANCE: 'purple'
|
||||||
ENVIRONMENT_DOMAIN: 'test-purple.pronouns.page'
|
ENVIRONMENT_DOMAIN: 'test-purple.pronouns.page'
|
||||||
|
|
||||||
# include:
|
include:
|
||||||
# - template: Security/Dependency-Scanning.gitlab-ci.yml
|
- template: Jobs/Dependency-Scanning.gitlab-ci.yml
|
||||||
#
|
|
||||||
# Pending resolution of: https://gitlab.com/PronounsPage/PronounsPage/-/merge_requests/453#note_1911466136
|
variables:
|
||||||
|
AST_ENABLE_MR_PIPELINES: true
|
||||||
|
DS_EXCLUDED_ANALYZERS: gemnasium-python
|
||||||
|
DS_MAX_DEPTH: 4
|
||||||
|
@ -15,7 +15,7 @@ We're using FontAwesome Pro, so to set up a local copy without having a FA licen
|
|||||||
open `package.json` and replace
|
open `package.json` and replace
|
||||||
|
|
||||||
```
|
```
|
||||||
"@fortawesome/fontawesome-pro": "git+ssh://git@gitlab.com:Avris/FontAwesomePro.git",
|
"@fortawesome/fontawesome-pro": "https://gitlab.com/Avris/FontAwesomePro",
|
||||||
```
|
```
|
||||||
|
|
||||||
with
|
with
|
||||||
@ -26,7 +26,7 @@ with
|
|||||||
or, for Git via HTTPS:
|
or, for Git via HTTPS:
|
||||||
|
|
||||||
```
|
```
|
||||||
"@fortawesome/fontawesome-pro": "git+https://git@gitlab.com/Avris/FakeFontAwesomePro.git",
|
"@fortawesome/fontawesome-pro": "https://gitlab.com/Avris/FakeFontAwesomePro",
|
||||||
```
|
```
|
||||||
|
|
||||||
Do not commit that change!
|
Do not commit that change!
|
||||||
|
@ -16,8 +16,10 @@ onUnmounted(() => {
|
|||||||
document.removeEventListener('click', documentClicked);
|
document.removeEventListener('click', documentClicked);
|
||||||
});
|
});
|
||||||
|
|
||||||
const documentClicked = () => {
|
const documentClicked = (e: MouseEvent) => {
|
||||||
shown.value = false;
|
if (e.target && !(e.target as Element).closest('.dropdown') && shown.value) {
|
||||||
|
shown.value = false;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -53,13 +53,8 @@ home:
|
|||||||
mission:
|
mission:
|
||||||
header: 'Okkara endamál'
|
header: 'Okkara endamál'
|
||||||
summary: 'Vit stríða fyri frælsi, virðing og inklusjón í máli.'
|
summary: 'Vit stríða fyri frælsi, virðing og inklusjón í máli.'
|
||||||
freedom: >
|
freedom: '<strong>Frælsi</strong> – so at øll <em>sjálv kunnu gera av</em> hvørji fornøvn tey føla lýsir tey best.'
|
||||||
<strong>Frælsi</strong>
|
respect: '<strong>Virðing</strong> – so at fornøvnini hjá <em>ørðum</em> eru vird.'
|
||||||
– so at øll <em>sjálv kunnu gera av</em>
|
|
||||||
hvørji fornøvn tey føla lýsir teimum best.
|
|
||||||
respect: >
|
|
||||||
<strong>Virðing</strong>
|
|
||||||
– so at fornøvnini hjá <em>onnur</em> eru vird.
|
|
||||||
inclusivity: >
|
inclusivity: >
|
||||||
<strong>Inklusjón</strong>
|
<strong>Inklusjón</strong>
|
||||||
– so at tá vit tosa um ein annan persón vit ikki kenna,
|
– so at tá vit tosa um ein annan persón vit ikki kenna,
|
||||||
@ -2009,7 +2004,7 @@ calendar:
|
|||||||
11: '%day%. novembur'
|
11: '%day%. novembur'
|
||||||
12: '%day%. desembur'
|
12: '%day%. desembur'
|
||||||
events:
|
events:
|
||||||
pride_month: 'Pride-mánaður'
|
pride_month: 'Heimspride-mánaður'
|
||||||
trans_month: 'Altjóða mánað fyri tvørkynd tilvitan'
|
trans_month: 'Altjóða mánað fyri tvørkynd tilvitan'
|
||||||
zaimki_birthday: 'Føðingardagurin hjá Pronouns.page'
|
zaimki_birthday: 'Føðingardagurin hjá Pronouns.page'
|
||||||
agender_day: 'Agender pride-dagur'
|
agender_day: 'Agender pride-dagur'
|
||||||
@ -2039,7 +2034,7 @@ calendar:
|
|||||||
trans_parent_day___timeDescription: 'á fyrsta sunnudag í novembur'
|
trans_parent_day___timeDescription: 'á fyrsta sunnudag í novembur'
|
||||||
nonbinary_week: 'Tilvitingarvika um ikki-biner'
|
nonbinary_week: 'Tilvitingarvika um ikki-biner'
|
||||||
nonbinary_week___timeDescription: 'í vikuni (man-sun) rundan um 14’inda july'
|
nonbinary_week___timeDescription: 'í vikuni (man-sun) rundan um 14’inda july'
|
||||||
polyamory_day: 'Polyamory-Dagur'
|
polyamory_day: 'Fleiralskhuga-dagur'
|
||||||
homophobia_sport: 'Altjóðadagur ímóti homofobi í ítrótti'
|
homophobia_sport: 'Altjóðadagur ímóti homofobi í ítrótti'
|
||||||
gay_uncles_day: 'Dagur teirra samkyndu gubbar'
|
gay_uncles_day: 'Dagur teirra samkyndu gubbar'
|
||||||
gay_uncles_day___timeDescription: 'á næsta sunnudag í august'
|
gay_uncles_day___timeDescription: 'á næsta sunnudag í august'
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
"@aws-sdk/client-polly": "^3.525.0",
|
"@aws-sdk/client-polly": "^3.525.0",
|
||||||
"@aws-sdk/client-s3": "^3.525.0",
|
"@aws-sdk/client-s3": "^3.525.0",
|
||||||
"@floating-ui/vue": "^1.1.5",
|
"@floating-ui/vue": "^1.1.5",
|
||||||
"@fortawesome/fontawesome-pro": "git+ssh://git@gitlab.com:Avris/FontAwesomePro.git",
|
"@fortawesome/fontawesome-pro": "https://gitlab.com/Avris/FontAwesomePro",
|
||||||
"@sentry/browser": "^7.109.0",
|
"@sentry/browser": "^7.109.0",
|
||||||
"@sentry/cli": "^2.31.0",
|
"@sentry/cli": "^2.31.0",
|
||||||
"@sentry/node": "^7.109.0",
|
"@sentry/node": "^7.109.0",
|
||||||
|
2
pnpm-lock.yaml
generated
2
pnpm-lock.yaml
generated
@ -21,7 +21,7 @@ importers:
|
|||||||
specifier: ^1.1.5
|
specifier: ^1.1.5
|
||||||
version: 1.1.5(vue@3.5.16(typescript@5.8.3))
|
version: 1.1.5(vue@3.5.16(typescript@5.8.3))
|
||||||
'@fortawesome/fontawesome-pro':
|
'@fortawesome/fontawesome-pro':
|
||||||
specifier: git+ssh://git@gitlab.com:Avris/FontAwesomePro.git
|
specifier: https://gitlab.com/Avris/FontAwesomePro
|
||||||
version: git+https://git@gitlab.com:Avris/FontAwesomePro.git#f00db606f659dca78b143b7bcab5671b2cb459a8
|
version: git+https://git@gitlab.com:Avris/FontAwesomePro.git#f00db606f659dca78b143b7bcab5671b2cb459a8
|
||||||
'@sentry/browser':
|
'@sentry/browser':
|
||||||
specifier: ^7.109.0
|
specifier: ^7.109.0
|
||||||
|
@ -252,7 +252,7 @@ router.get('/census/export', handleErrorAsync(async (req, res) => {
|
|||||||
for (const question of config.census.questions!) {
|
for (const question of config.census.questions!) {
|
||||||
if (question.type === 'checkbox') {
|
if (question.type === 'checkbox') {
|
||||||
const answerForAggregate: Set<string> = new Set();
|
const answerForAggregate: Set<string> = new Set();
|
||||||
for (const [option, _comment] of [...question.options, ...(question.optionsLast || [])]) {
|
for (const [option, _comment] of [...(question.optionsFirst || []), ...question.options, ...(question.optionsLast || [])]) {
|
||||||
const checked = (answers[i.toString()] || [] as string[]).includes(option);
|
const checked = (answers[i.toString()] || [] as string[]).includes(option);
|
||||||
answer[`${i}_${option}`] = checked ? 1 : '';
|
answer[`${i}_${option}`] = checked ? 1 : '';
|
||||||
if (checked) {
|
if (checked) {
|
||||||
|
@ -28,7 +28,7 @@ const fetchEvents = async (): Promise<MiastamaszerujaceEvent[]> => {
|
|||||||
// manual fixes for irregular HTML
|
// manual fixes for irregular HTML
|
||||||
.replace(new RegExp('ref=newsfeed</a><br /><b>', 'g'), '</a></p><p><b>')
|
.replace(new RegExp('ref=newsfeed</a><br /><b>', 'g'), '</a></p><p><b>')
|
||||||
.replace(new RegExp('<span style="font-weight: 400;">(.*?)</span>', 'g'), '$1'));
|
.replace(new RegExp('<span style="font-weight: 400;">(.*?)</span>', 'g'), '$1'));
|
||||||
const eventNodes = dom.window.document.querySelectorAll('[data-id="d4c3075"] p');
|
const eventNodes = dom.window.document.querySelectorAll('[data-id="d4c3075"] p, [data-id="9cc25f4"] p');
|
||||||
for (const p of eventNodes) {
|
for (const p of eventNodes) {
|
||||||
if (p.textContent!.includes('Daty kolejnych') ||
|
if (p.textContent!.includes('Daty kolejnych') ||
|
||||||
p.textContent!.includes('Marsz organizowany przez grupę współpracującą') ||
|
p.textContent!.includes('Marsz organizowany przez grupę współpracującą') ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user