GeoNetwork-UI NPM Package
What is it?
This package contains many of the features available in the GeoNetwork-UI project.
Its contents are:
- all the libraries in the
libs
folder - all translations
- various configuration files
This package does not contain:
- applications (Datahub, etc.)
- unit and E2E tests
- docker composition
- documentation
- anything related to NX
How can I use it?
This is what using this package looks like in an Angular application:
import {
UiElementsModule,
UiInputsModule,
UiWidgetsModule,
provideRepositoryUrl,
ThemeService,
} from 'geonetwork-ui'
@NgModule({
imports: [
UiWidgetsModule,
UiElementsModule,
UiInputsModule,
],
providers: [
provideRepositoryUrl('http://localhost:8080/geonetwork/srv/api'),
],
bootstrap: [AppComponent],
})
export class AppModule {
constructor() {
ThemeService.applyCssVariables('#e73f51', '#c2e9dc', '#212029', '#fdfbff')
}
}
Please read the documentation on how to create a Custom Application for more information!