From 387ea64faa17d2e6bd1a2d90554d31f450128134 Mon Sep 17 00:00:00 2001 From: roschaefer Date: Fri, 5 Jun 2020 17:15:12 +0200 Subject: [PATCH] Parameterize links --- webapp/components/DonationInfo/DonationInfo.vue | 4 +++- webapp/components/PageFooter/PageFooter.vue | 11 ++++++----- webapp/constants/links.js | 7 +++++++ webapp/pages/index.vue | 4 +++- webapp/pages/post/_id/_slug/index.vue | 4 +++- 5 files changed, 22 insertions(+), 8 deletions(-) create mode 100644 webapp/constants/links.js diff --git a/webapp/components/DonationInfo/DonationInfo.vue b/webapp/components/DonationInfo/DonationInfo.vue index e138bef97..b1916a6e9 100644 --- a/webapp/components/DonationInfo/DonationInfo.vue +++ b/webapp/components/DonationInfo/DonationInfo.vue @@ -1,13 +1,14 @@ diff --git a/webapp/constants/links.js b/webapp/constants/links.js new file mode 100644 index 000000000..2c9a3a7ae --- /dev/null +++ b/webapp/constants/links.js @@ -0,0 +1,7 @@ +export default { + ORGANIZATION: 'https://human-connection.org/', + DONATE: 'https://human-connection.org/spenden/', + IMPRINT: 'https://human-connection.org/impressum/', + DATA_PRIVACY: 'https://human-connection.org/datenschutz/', + FAQ: 'https://faq.human-connection.org/', +} diff --git a/webapp/pages/index.vue b/webapp/pages/index.vue index e6504cc7a..d8a620518 100644 --- a/webapp/pages/index.vue +++ b/webapp/pages/index.vue @@ -7,7 +7,7 @@
- + {{ $t('donations.donate-now') }}
@@ -74,6 +74,7 @@ import { mapGetters, mapMutations } from 'vuex' import { filterPosts } from '~/graphql/PostQuery.js' import PostMutations from '~/graphql/PostMutations' import UpdateQuery from '~/components/utils/UpdateQuery' +import links from '~/constants/links.js' export default { components: { @@ -87,6 +88,7 @@ export default { data() { const { hashtag = null } = this.$route.query return { + links, posts: [], hasMore: true, // Initialize your apollo data diff --git a/webapp/pages/post/_id/_slug/index.vue b/webapp/pages/post/_id/_slug/index.vue index 9a4a796e1..7c6d1f1e5 100644 --- a/webapp/pages/post/_id/_slug/index.vue +++ b/webapp/pages/post/_id/_slug/index.vue @@ -100,7 +100,7 @@ {{ $t('settings.blocked-users.explanation.commenting-disabled') }}
{{ $t('settings.blocked-users.explanation.commenting-explanation') }} - FAQ + FAQ @@ -120,6 +120,7 @@ import { postMenuModalsData, deletePostMutation } from '~/components/utils/PostH import PostQuery from '~/graphql/PostQuery' import HcEmotions from '~/components/Emotions/Emotions' import PostMutations from '~/graphql/PostMutations' +import links from '~/constants/links.js' export default { name: 'PostSlug', @@ -145,6 +146,7 @@ export default { }, data() { return { + links, post: null, ready: false, title: 'loading',