From c9816e3b74ad6a51f99835a8409f2dba0cf50a52 Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Wed, 12 Mar 2025 15:47:45 +0100 Subject: [PATCH] add all neccessary for showing humhub profile link in admin --- admin/.env.dist | 3 ++- admin/.env.template | 3 +++ .../ContributionMessagesList.vue | 27 +++++++++++++++++-- admin/src/config/index.js | 5 ++++ admin/src/config/schema.js | 9 +++++++ admin/src/graphql/adminListContributions.js | 1 + admin/vite.config.js | 3 ++- backend/src/config/schema.ts | 7 ++--- backend/src/graphql/model/Contribution.ts | 11 ++++++++ config/src/commonSchema.ts | 5 ++++ 10 files changed, 65 insertions(+), 9 deletions(-) diff --git a/admin/.env.dist b/admin/.env.dist index c3d62bfd2..62c2b0ffd 100644 --- a/admin/.env.dist +++ b/admin/.env.dist @@ -3,4 +3,5 @@ GRAPHQL_PATH=/graphql WALLET_URL=http://localhost WALLET_AUTH_PATH=/authenticate?token= WALLET_LOGIN_PATH=/login -DEBUG_DISABLE_AUTH=false \ No newline at end of file +DEBUG_DISABLE_AUTH=false +HUMHUB_ACTIVE=false \ No newline at end of file diff --git a/admin/.env.template b/admin/.env.template index 11e849271..354a684a3 100644 --- a/admin/.env.template +++ b/admin/.env.template @@ -6,3 +6,6 @@ WALLET_AUTH_PATH=$WALLET_AUTH_PATH WALLET_LOGIN_PATH=$WALLET_LOGIN_PATH GRAPHQL_PATH=$GRAPHQL_PATH DEBUG_DISABLE_AUTH=false + +HUMHUB_ACTIVE=$HUMHUB_ACTIVE +HUMHUB_API_URL=$HUMHUB_API_URL \ No newline at end of file diff --git a/admin/src/components/ContributionMessages/ContributionMessagesList.vue b/admin/src/components/ContributionMessages/ContributionMessagesList.vue index 9b6285a21..dc27b1597 100644 --- a/admin/src/components/ContributionMessages/ContributionMessagesList.vue +++ b/admin/src/components/ContributionMessages/ContributionMessagesList.vue @@ -13,7 +13,20 @@   {{ contribution.username }} -   Humhub-Profil +   + + + + + + {{ $t('goTo.humhubProfile') }} + + {{ $t('registered') }}: {{ new Date(contribution.createdAt).toLocaleString() }} @@ -45,10 +58,10 @@