From 833214f4ba9fdd176f729f8590ecae33e4a8873f Mon Sep 17 00:00:00 2001 From: Camille Moinier Date: Thu, 11 Jul 2024 16:24:32 +0200 Subject: [PATCH] feat: integrate config file --- apps/datahub/project.json | 5 +++++ apps/datahub/src/index.html | 6 ++++++ apps/datahub/src/main.ts | 13 ++++++++----- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/apps/datahub/project.json b/apps/datahub/project.json index 98d2fba1..60612c14 100644 --- a/apps/datahub/project.json +++ b/apps/datahub/project.json @@ -21,6 +21,11 @@ "glob": "**/*", "input": "resources/assets", "output": "./assets" + }, + { + "glob": "*", + "input": "conf", + "output": "assets/configuration/" } ], "styles": ["resources/styles.css"], diff --git a/apps/datahub/src/index.html b/apps/datahub/src/index.html index 00afae57..3c519cd7 100644 --- a/apps/datahub/src/index.html +++ b/apps/datahub/src/index.html @@ -7,6 +7,12 @@ + diff --git a/apps/datahub/src/main.ts b/apps/datahub/src/main.ts index 16de2365..39493282 100644 --- a/apps/datahub/src/main.ts +++ b/apps/datahub/src/main.ts @@ -1,6 +1,9 @@ -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app/app.module'; +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic' +import { AppModule } from './app/app.module' +import { loadAppConfig } from 'geonetwork-ui' -platformBrowserDynamic() - .bootstrapModule(AppModule) - .catch((err) => console.error(err)); +loadAppConfig().then(() => { + platformBrowserDynamic() + .bootstrapModule(AppModule) + .catch((err) => console.error(err)) +})