geonetwork-ui
TypeScript icon, indicating that this package has built-in type declarations

2.2.0 • Public • Published

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!

Readme

Keywords

none

Package Sidebar

Install

npm i geonetwork-ui

Weekly Downloads

330

Version

2.2.0

License

none

Unpacked Size

17.8 MB

Total Files

2350

Last publish

Collaborators

  • jahow