diff --git a/assets/variables.scss b/assets/variables.scss index 3756ee32e..0ba3aa303 100644 --- a/assets/variables.scss +++ b/assets/variables.scss @@ -10,6 +10,7 @@ $btn-font-family: $font-family-sans-serif; $font-family-base: $font-family-sans-serif; $primary: #C71585; +$body-color: #000; $alert-border-level: -3; $link-decoration: none; diff --git a/locale/_base/config.suml b/locale/_base/config.suml index 6fcd7ed02..ee33865ed 100644 --- a/locale/_base/config.suml +++ b/locale/_base/config.suml @@ -23,8 +23,8 @@ pronouns: history: > Some people prefer not using any pronouns, instead being referred by name, initial, omitting pronouns with passive voice, or restructuring the sentence. - See: {https://twitter.com/lypomania/status/1290274971642544128=lypomania's guide}, - {https://lgbta.wikia.org/wiki/Nullpronominal=Nullpronominal on LGBTA Wiki} + See: {https://web.archive.org/web/20211214214513/https://twitter.com/lypomania/status/1290274971642544128=lypomania's guide}, + {https://web.archive.org/web/20230326021305/https://www.lgbtqia.wiki/wiki/Nullpronominal=Nullpronominal on LGBTA Wiki} morphemes: pronoun_subject: '#' pronoun_object: '#' diff --git a/locale/_base/translations.suml b/locale/_base/translations.suml index 3f13695b0..368dad538 100644 --- a/locale/_base/translations.suml +++ b/locale/_base/translations.suml @@ -806,6 +806,8 @@ crud: footer: license: > {https://gitlab.com/PronounsPage/PronounsPage=Source code} and content are licensed under {/license=OQL}. + using: > + Using {https://www.gradientmagic.com/=gradientmagic.com} and {https://fonts.google.com/noto/specimen/Noto+Color+Emoji=Noto Color Emoji} links: 'Contact, social media' legal: 'Legal' financial: 'Financial transparency' @@ -825,6 +827,7 @@ footer: uptime: 'Uptime' responseTime: 'Avg response time' month: 'month' + version: 'Version:' notFound: message: 'Page was not found' @@ -1029,6 +1032,7 @@ api: header: 'Public API' example: 'Example' query: 'Query string parameters' + source: 'Source code' quotation: start: '“' diff --git a/locale/ar/config.suml b/locale/ar/config.suml index 42a0f5d89..baf156905 100644 --- a/locale/ar/config.suml +++ b/locale/ar/config.suml @@ -24,8 +24,8 @@ pronouns: history: > Some people prefer not using any pronouns, instead being referred by name, initial, omitting pronouns with passive voice, or restructuring the sentence. - See: {https://twitter.com/lypomania/status/1290274971642544128=lypomania's guide}, - {https://lgbta.wikia.org/wiki/Nullpronominal=Nullpronominal on LGBTA Wiki} + See: {https://web.archive.org/web/20211214214513/https://twitter.com/lypomania/status/1290274971642544128=lypomania's guide}, + {https://web.archive.org/web/20230326021305/https://www.lgbtqia.wiki/wiki/Nullpronominal=Nullpronominal on LGBTA Wiki} morphemes: pronoun_subject: '#' pronoun_object: '#' diff --git a/locale/en/config.suml b/locale/en/config.suml index 67d8ff392..fa1e1f221 100644 --- a/locale/en/config.suml +++ b/locale/en/config.suml @@ -26,7 +26,7 @@ pronouns: Some people prefer not using any pronouns, instead being referred by name, initial, omitting pronouns with passive voice, or restructuring the sentence. See: {https://web.archive.org/web/20211214214513/https://twitter.com/lypomania/status/1290274971642544128=lypomania's guide}, - {https://www.lgbtqia.wiki/wiki/Nullpronominal=Nullpronominal on LGBTA Wiki} + {https://web.archive.org/web/20230326021305/https://www.lgbtqia.wiki/wiki/Nullpronominal=Nullpronominal on LGBTA Wiki} morphemes: pronoun_subject: '#' pronoun_object: '#' diff --git a/locale/en/translations.suml b/locale/en/translations.suml index da276937f..4129a3951 100644 --- a/locale/en/translations.suml +++ b/locale/en/translations.suml @@ -979,6 +979,8 @@ crud: footer: license: > {https://gitlab.com/PronounsPage/PronounsPage=Source code} and content are licensed under {/license=OQL}. + using: > + Using {https://www.gradientmagic.com/=gradientmagic.com} and {https://fonts.google.com/noto/specimen/Noto+Color+Emoji=Noto Color Emoji} links: 'Contact & social media' legal: 'Legal' financial: 'Financial transparency' @@ -998,6 +1000,7 @@ footer: uptime: 'Uptime' responseTime: 'Avg response time' month: 'month' + version: 'Version:' notFound: message: 'Page was not found' @@ -1186,6 +1189,7 @@ api: header: 'Public API' example: 'Example' query: 'Query string parameters' + source: 'Source code' quotation: start: '“' diff --git a/locale/eo/config.suml b/locale/eo/config.suml index f75ce2d97..40bd25485 100644 --- a/locale/eo/config.suml +++ b/locale/eo/config.suml @@ -23,8 +23,8 @@ pronouns: history: > Some people prefer not using any pronouns, instead being referred by name, initial, omitting pronouns with passive voice, or restructuring the sentence. - See: {https://twitter.com/lypomania/status/1290274971642544128=lypomania's guide}, - {https://lgbta.wikia.org/wiki/Nullpronominal=Nullpronominal on LGBTA Wiki} + See: {https://web.archive.org/web/20211214214513/https://twitter.com/lypomania/status/1290274971642544128=lypomania's guide}, + {https://web.archive.org/web/20230326021305/https://www.lgbtqia.wiki/wiki/Nullpronominal=Nullpronominal on LGBTA Wiki} morphemes: pronoun_subject: '#' examples: [':Andrea', ':S'] diff --git a/locale/expectedTranslations.js b/locale/expectedTranslations.js index f865ccbab..204ae359d 100644 --- a/locale/expectedTranslations.js +++ b/locale/expectedTranslations.js @@ -45,6 +45,8 @@ module.exports = [ 'footer.stats.keys.visitDuration', 'footer.stats.keys.uptime', 'footer.stats.keys.responseTime', + 'footer.using', + 'footer.version', 'privacy.header', 'user.avatar.failed', 'user.qr.header', @@ -121,4 +123,5 @@ module.exports = [ 'mode.reducedItems', 'user.socialLookup', 'user.socialLookupWhy', + 'api.source' ]; diff --git a/locale/it/config.suml b/locale/it/config.suml index a65cc1430..2d0ccd577 100644 --- a/locale/it/config.suml +++ b/locale/it/config.suml @@ -23,8 +23,8 @@ pronouns: history: > Some people prefer not using any pronouns, instead being referred by name, initial, omitting pronouns with passive voice, or restructuring the sentence. - See: {https://twitter.com/lypomania/status/1290274971642544128=lypomania's guide}, - {https://lgbta.wikia.org/wiki/Nullpronominal=Nullpronominal on LGBTA Wiki} + See: {https://web.archive.org/web/20211214214513/https://twitter.com/lypomania/status/1290274971642544128=lypomania's guide}, + {https://web.archive.org/web/20230326021305/https://www.lgbtqia.wiki/wiki/Nullpronominal=Nullpronominal on LGBTA Wiki} morphemes: pronoun_subject: '#' pronoun_object: '#' diff --git a/locale/ko/config.suml b/locale/ko/config.suml index f06674854..e38530aa6 100644 --- a/locale/ko/config.suml +++ b/locale/ko/config.suml @@ -18,7 +18,7 @@ pronouns: examples: ['그와 그녀', '그와 그들', '그녀와 그들'] null: description: '대명사 없음 / 무효 대명사 / 자기 이름' - history: '어떤 사람들은 대명사를 사용하지 않고 대신 이름, 이니셜 또는 수동태로 대명사를 생략하는 것을 선호합니다({https://lgbta.wikia.org/wiki/Nullpronominal=널 의례적인}.' + history: '어떤 사람들은 대명사를 사용하지 않고 대신 이름, 이니셜 또는 수동태로 대명사를 생략하는 것을 선호합니다({https://web.archive.org/web/20230326021305/https://www.lgbtqia.wiki/wiki/Nullpronominal=널 의례적인}.' morphemes: pronoun_subject: '#' pronoun_object: '#' diff --git a/locale/ro/config.suml b/locale/ro/config.suml index aa5f24e31..bd8d98791 100644 --- a/locale/ro/config.suml +++ b/locale/ro/config.suml @@ -22,8 +22,8 @@ pronouns: history: > Unele persoane preferă să nu folosească niciun pronume, fiind referiți după nume, inițială, evitând pronume cu voce pasivă sau restructurând propoziția. - Vezi: {https://twitter.com/lypomania/status/1290274971642544128=ghidul lui lypomania (în lb. Engleză)}, - {https://lgbta.wikia.org/wiki/Nullpronominal=Nul-pronominal pe LGBTA Wiki (în lb. Engleză)} + Vezi: {https://web.archive.org/web/20211214214513/https://twitter.com/lypomania/status/1290274971642544128=ghidul lui lypomania (în lb. Engleză)}, + {https://web.archive.org/web/20230326021305/https://www.lgbtqia.wiki/wiki/Nullpronominal=Nul-pronominal pe LGBTA Wiki (în lb. Engleză)} morphemes: pronoun_n: '#' pronoun_dg: 'lui #' diff --git a/locale/ru/pronouns/examples.tsv b/locale/ru/pronouns/examples.tsv index 2b503d22e..5a6d84a03 100644 --- a/locale/ru/pronouns/examples.tsv +++ b/locale/ru/pronouns/examples.tsv @@ -11,5 +11,5 @@ singular plural isHonorific {'nominative} замечательн{adjective}. {'nominative} замечательн{adjective}. FALSE {'possessive} знаком{adjective} умеет играть на гитаре. {'possessive} знаком{adjective} умеют играть на гитаре. FALSE {'nominative} собра{reflexive_verb_past} на работу. {'nominative} собра{reflexive_verb_past} на работу. FALSE -{'nominative} сказа{nonreflexive_verb_past}, что пойдёт с нами! {'nominative} сказа{nonreflexive_verb_past}, что пойдут с нами! ЛОЖЬ +{'nominative} сказа{nonreflexive_verb_past}, что пойдёт с нами! {'nominative} сказа{nonreflexive_verb_past}, что пойдут с нами! FALSE {'nominative} сделает это {definitive}. {'nominative} сделают это {definitive}. FALSE diff --git a/locale/yi/config.suml b/locale/yi/config.suml index dbc98b6e1..903857735 100644 --- a/locale/yi/config.suml +++ b/locale/yi/config.suml @@ -16,7 +16,7 @@ pronouns: examples: ['ער&זי', 'זי&זיי', 'ער&זיי'] null: description: 'No pronouns / null pronouns / pronounless / nameself' - history: 'Some people prefer not using any pronouns, instead being referred by name, initial, or by omitting pronouns with passive voice, see: {https://lgbta.wikia.org/wiki/Nullpronominal=nullpronominal}.' + history: 'Some people prefer not using any pronouns, instead being referred by name, initial, or by omitting pronouns with passive voice, see: {https://web.archive.org/web/20230326021305/https://www.lgbtqia.wiki/wiki/Nullpronominal=nullpronominal}.' morphemes: pronoun_subject: '#' pronoun_object: '#' diff --git a/server/routes/profile.js b/server/routes/profile.js index 57e96928d..6a2d39e1a 100644 --- a/server/routes/profile.js +++ b/server/routes/profile.js @@ -563,6 +563,10 @@ router.post('/profile/save', handleErrorAsync(async (req, res) => { })); router.post('/profile/delete/:locale', handleErrorAsync(async (req, res) => { + if (!req.user) { + return res.status(400).json({error: 'Missing user'}); + } + await req.db.get(SQL`DELETE FROM profiles WHERE userId = ${req.user.id} AND locale = ${req.params.locale}`); return res.json(await fetchProfiles(req.db, req.user.username, true));