Skip to content

Commit

Permalink
feat: integrate config file
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoinier committed Jul 11, 2024
1 parent 20e2aab commit 06f3b63
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
5 changes: 5 additions & 0 deletions apps/datahub/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
"glob": "**/*",
"input": "resources/assets",
"output": "./assets"
},
{
"glob": "*",
"input": "conf",
"output": "assets/configuration/"
}
],
"styles": ["resources/styles.css"],
Expand Down
6 changes: 6 additions & 0 deletions apps/datahub/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="assets/css/materials-symbols-outline.css" />
<link rel="stylesheet" href="assets/css/default-fonts.css" />
<link
rel="preload"
href="assets/configuration/default.toml"
as="fetch"
crossorigin
/>
</head>
<body>
<mel-datahub-root></mel-datahub-root>
Expand Down
13 changes: 8 additions & 5 deletions apps/datahub/src/main.ts
Original file line number Diff line number Diff line change
@@ -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))
})

0 comments on commit 06f3b63

Please sign in to comment.