diff --git a/docker-compose.override.yml b/docker-compose.override.yml index 3898f9991..e49d45a1c 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -228,6 +228,7 @@ volumes: node_modules_frontend: node_modules_backend: node_modules_federation: + node_modules_inspector: node_modules_database: node_modules_dlt_connector: turbo_cache: diff --git a/frontend/src/components/ContentFooter.spec.js b/frontend/src/components/ContentFooter.spec.js index 1fca50af2..418c2c580 100644 --- a/frontend/src/components/ContentFooter.spec.js +++ b/frontend/src/components/ContentFooter.spec.js @@ -4,6 +4,8 @@ import ContentFooter from './ContentFooter' import CONFIG from '@/config' import { BCol, BNav, BNavItem, BRow } from 'bootstrap-vue-next' +console.log(`CONFIG in ContentFooter.spec.js: ${JSON.stringify(CONFIG, null, 2)}`) + describe('ContentFooter', () => { let wrapper diff --git a/frontend/src/components/ContentFooter.vue b/frontend/src/components/ContentFooter.vue index a33933907..d6f120e49 100755 --- a/frontend/src/components/ContentFooter.vue +++ b/frontend/src/components/ContentFooter.vue @@ -43,11 +43,7 @@ {{ $t('navigation.support') }} - + {{ $t('footer.inspector') }} @@ -61,6 +57,8 @@ import CONFIG from '@/config' export default { data() { return { + dltActive: CONFIG.DLT_ACTIVE, + communityUrl: CONFIG.COMMUNITY_URL, year: new Date().getFullYear(), version: CONFIG.APP_VERSION, hash: CONFIG.BUILD_COMMIT, diff --git a/frontend/src/config/index.js b/frontend/src/config/index.js index f75ef910f..6e64797cc 100644 --- a/frontend/src/config/index.js +++ b/frontend/src/config/index.js @@ -2,6 +2,7 @@ // The whole contents is exposed to the client // Load Package Details for some default values +const { DLT_ACTIVE } = require('config-schema') const pkg = require('../../package') const constants = { @@ -38,6 +39,7 @@ if (process.env.FRONTEND_HOSTING === 'nodejs') { // version.FRONTEND_MODULE_PORT const features = { + DLT_ACTIVE: process.env.DLT_ACTIVE === 'true', GMS_ACTIVE: process.env.GMS_ACTIVE === 'true', HUMHUB_ACTIVE: process.env.HUMHUB_ACTIVE === 'true', AUTO_POLL_INTERVAL: Number.parseInt(process.env.AUTO_POLL_INTERVAL ?? 0),