-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(package): add a README to the published package
- Loading branch information
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# GeoNetwork-UI NPM Package | ||
|
||
## What is it? | ||
|
||
This package contains many of the features available in the [GeoNetwork-UI project](https://github.com/geonetwork/geonetwork-ui). | ||
|
||
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](https://nx.dev/) | ||
|
||
## How can I use it? | ||
|
||
This is what using this package looks like in an Angular application: | ||
|
||
```ts | ||
// ... | ||
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](https://geonetwork.github.io/geonetwork-ui/main/docs/guide/custom-app.html) for more information! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters