From 31a4be9375a6dc1c5f4baea7cc79945daa9fa19b Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 27 Oct 2022 08:24:20 +0200 Subject: [PATCH 01/17] add target url dynamic --- .../features/PageParamsLink/PageParamsLink.vue | 2 +- webapp/constants/headerMenu.js | 17 +++++++++-------- webapp/constants/links.js | 8 ++++---- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/webapp/components/_new/features/PageParamsLink/PageParamsLink.vue b/webapp/components/_new/features/PageParamsLink/PageParamsLink.vue index ae01dd319..c0ed6a593 100644 --- a/webapp/components/_new/features/PageParamsLink/PageParamsLink.vue +++ b/webapp/components/_new/features/PageParamsLink/PageParamsLink.vue @@ -6,7 +6,7 @@ > - + diff --git a/webapp/constants/headerMenu.js b/webapp/constants/headerMenu.js index 6d0a0afad..6fd66edc3 100644 --- a/webapp/constants/headerMenu.js +++ b/webapp/constants/headerMenu.js @@ -1,12 +1,13 @@ export default { MENU: [ - // { - // nameIdent: 'nameIdent', - // path: '/', - // }, - // { - // nameIdent: 'nameIdent', - // url: 'https://ocelot.social', - // }, + { + nameIdent: 'nameIdent', + path: '/', + }, + { + nameIdent: 'nameIdent', + url: 'https://ocelot.social', + target: '_blank' + }, ], } diff --git a/webapp/constants/links.js b/webapp/constants/links.js index c65c9be3c..694d9f522 100644 --- a/webapp/constants/links.js +++ b/webapp/constants/links.js @@ -4,7 +4,7 @@ import { defaultPageParamsPages } from '~/components/utils/InternalPages.js' const ORGANIZATION = defaultPageParamsPages.ORGANIZATION.overwrite({ externalLink: 'https://ocelot.social', // if string is defined and not empty it's dominating - + target: '_blank', internalPage: { // footerIdent: 'site.made', // localized string identifier, if undefined default is used // headTitleIdent: 'site.made', // localized string identifier, if undefined default is used @@ -18,7 +18,7 @@ const ORGANIZATION = defaultPageParamsPages.ORGANIZATION.overwrite({ const DONATE = defaultPageParamsPages.DONATE.overwrite({ // we use 'ocelot-social.herokuapp.com' at the moment, because redirections of 'ocelot.social' subpages are not working correctly externalLink: 'https://ocelot-social.herokuapp.com/donations', // if string is defined and not empty it's dominating - + target: '_blank', internalPage: { // footerIdent: 'site.donate', // localized string identifier, if undefined default is used // headTitleIdent: 'site.donate', // localized string identifier, if undefined default is used @@ -32,7 +32,7 @@ const DONATE = defaultPageParamsPages.DONATE.overwrite({ const IMPRINT = defaultPageParamsPages.IMPRINT.overwrite({ // we use 'ocelot-social.herokuapp.com' at the moment, because redirections of 'ocelot.social' subpages are not working correctly externalLink: 'https://ocelot-social.herokuapp.com/imprint', // if string is defined and not empty it's dominating - + target: '_blank', internalPage: { // footerIdent: 'site.imprint', // localized string identifier, if undefined default is used // headTitleIdent: 'site.imprint', // localized string identifier, if undefined default is used @@ -97,7 +97,7 @@ const FAQ = defaultPageParamsPages.FAQ.overwrite({ }) const SUPPORT = defaultPageParamsPages.SUPPORT.overwrite({ externalLink: 'https://ocelot.social', // if string is defined and not empty it's dominating - + target: '_blank', internalPage: { // footerIdent: 'site.support', // localized string identifier, if undefined default is used // headTitleIdent: 'site.support', // localized string identifier, if undefined default is used From 1dfdc61220e955437caca93538d66af80e47187d Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 27 Oct 2022 08:48:58 +0200 Subject: [PATCH 02/17] footer links target dynamic --- webapp/components/HeaderMenu/HeaderMenu.vue | 2 +- .../_new/features/PageParamsLink/PageParamsLink.vue | 3 ++- webapp/constants/links.js | 12 ++++++++---- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/webapp/components/HeaderMenu/HeaderMenu.vue b/webapp/components/HeaderMenu/HeaderMenu.vue index 8876338ee..6fb8ca635 100644 --- a/webapp/components/HeaderMenu/HeaderMenu.vue +++ b/webapp/components/HeaderMenu/HeaderMenu.vue @@ -27,7 +27,7 @@ :width="{ base: 'auto' }" style="margin-right: 20px" > - + {{ $t(item.nameIdent) }} diff --git a/webapp/components/_new/features/PageParamsLink/PageParamsLink.vue b/webapp/components/_new/features/PageParamsLink/PageParamsLink.vue index c0ed6a593..fb80975ec 100644 --- a/webapp/components/_new/features/PageParamsLink/PageParamsLink.vue +++ b/webapp/components/_new/features/PageParamsLink/PageParamsLink.vue @@ -6,9 +6,10 @@ > - + + From 709c9b107300f72f9b326abd425d919f1a5d5194 Mon Sep 17 00:00:00 2001 From: ogerly Date: Fri, 28 Oct 2022 08:48:29 +0200 Subject: [PATCH 06/17] fix lint --- webapp/components/Group/GroupMember.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/webapp/components/Group/GroupMember.vue b/webapp/components/Group/GroupMember.vue index fc7f6e25a..4ae07e5f2 100644 --- a/webapp/components/Group/GroupMember.vue +++ b/webapp/components/Group/GroupMember.vue @@ -87,11 +87,7 @@ @@ -154,9 +158,18 @@ + + + + + + + - @@ -193,10 +206,12 @@ From f7cc020febe20bd302c302a1f99a52d4f5d23c61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Fri, 28 Oct 2022 13:15:44 +0200 Subject: [PATCH 17/17] Fix linting --- webapp/components/Group/GroupMember.vue | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/webapp/components/Group/GroupMember.vue b/webapp/components/Group/GroupMember.vue index 82dbb291d..db5635c1f 100644 --- a/webapp/components/Group/GroupMember.vue +++ b/webapp/components/Group/GroupMember.vue @@ -87,12 +87,7 @@