From d7b888f7b2d041cfe0fa61948aa3815257c377b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Wed, 2 Jun 2021 20:10:30 +0200 Subject: [PATCH 1/5] Extend and change links --- backend/src/config/links.js | 10 ++++++++-- webapp/constants/links.js | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/backend/src/config/links.js b/backend/src/config/links.js index c6f932c82..6b945a5e0 100644 --- a/backend/src/config/links.js +++ b/backend/src/config/links.js @@ -1,7 +1,13 @@ // this file is duplicated in `backend/src/config/links.js` and `webapp/constants/links.js` and replaced on rebranding export default { ORGANIZATION: 'https://ocelot.social', - DONATE: 'https://ocelot-social.herokuapp.com/donations', - FAQ: 'https://ocelot.social', SUPPORT: 'https://ocelot.social', + + // on null or empty strings internal imprint is used, see 'webapp/locales/html/' + DONATE: 'https://ocelot-social.herokuapp.com/donations', // we use 'ocelot-social.herokuapp.com' at the moment, because redirections of 'ocelot.social' subpages are not working correctly + IMPRINT: 'https://ocelot-social.herokuapp.com/imprint', // we use 'ocelot-social.herokuapp.com' at the moment, because redirections of 'ocelot.social' subpages are not working correctly + TERMS_AND_CONDITIONS: null, + CODE_OF_CONDUCT: null, + DATA_PRIVACY: null, + FAQ: 'https://ocelot.social', } diff --git a/webapp/constants/links.js b/webapp/constants/links.js index c6f932c82..6b945a5e0 100644 --- a/webapp/constants/links.js +++ b/webapp/constants/links.js @@ -1,7 +1,13 @@ // this file is duplicated in `backend/src/config/links.js` and `webapp/constants/links.js` and replaced on rebranding export default { ORGANIZATION: 'https://ocelot.social', - DONATE: 'https://ocelot-social.herokuapp.com/donations', - FAQ: 'https://ocelot.social', SUPPORT: 'https://ocelot.social', + + // on null or empty strings internal imprint is used, see 'webapp/locales/html/' + DONATE: 'https://ocelot-social.herokuapp.com/donations', // we use 'ocelot-social.herokuapp.com' at the moment, because redirections of 'ocelot.social' subpages are not working correctly + IMPRINT: 'https://ocelot-social.herokuapp.com/imprint', // we use 'ocelot-social.herokuapp.com' at the moment, because redirections of 'ocelot.social' subpages are not working correctly + TERMS_AND_CONDITIONS: null, + CODE_OF_CONDUCT: null, + DATA_PRIVACY: null, + FAQ: 'https://ocelot.social', } From 1bd4af6fd3b5db167575910948a0a72461a1129a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Wed, 2 Jun 2021 20:16:52 +0200 Subject: [PATCH 2/5] Implement flexible page footer links --- webapp/components/PageFooter/PageFooter.vue | 46 ++++++++++++++++++--- webapp/locales/de.json | 2 +- webapp/locales/en.json | 2 +- webapp/locales/es.json | 2 +- webapp/locales/fr.json | 2 +- webapp/locales/html/de/faq.html | 1 + webapp/locales/html/de/index.js | 2 + webapp/locales/html/en/faq.html | 1 + webapp/locales/html/en/index.js | 2 + webapp/locales/it.json | 2 +- webapp/locales/nl.json | 2 +- webapp/locales/pl.json | 2 +- webapp/locales/pt.json | 2 +- webapp/locales/ru.json | 2 +- webapp/pages/code-of-conduct.vue | 2 +- webapp/pages/data-privacy.vue | 3 +- webapp/pages/faq.spec.js | 38 +++++++++++++++++ webapp/pages/faq.vue | 21 ++++++++++ webapp/pages/imprint.vue | 3 +- webapp/pages/terms-and-conditions.vue | 2 +- 20 files changed, 118 insertions(+), 21 deletions(-) create mode 100644 webapp/locales/html/de/faq.html create mode 100644 webapp/locales/html/en/faq.html create mode 100644 webapp/pages/faq.spec.js create mode 100644 webapp/pages/faq.vue diff --git a/webapp/components/PageFooter/PageFooter.vue b/webapp/components/PageFooter/PageFooter.vue index ace0514e1..49834ed62 100644 --- a/webapp/components/PageFooter/PageFooter.vue +++ b/webapp/components/PageFooter/PageFooter.vue @@ -1,23 +1,51 @@