Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experimenting how to include an Angular app in the spring boot app #6

Draft
wants to merge 60 commits into
base: main
Choose a base branch
from

Conversation

fxprunayre
Copy link
Collaborator

@fxprunayre fxprunayre commented Aug 2, 2024

Can be tested
https://apps.titellus.net/
https://apps.titellus.net/webcomponents/index.html

The client app use the GN4 API with for the search the index model created in GN5 so that search responses are typed.

There is some issue related to Angular routing that probably needs Spring configuration.

The Angular app structure is:

  • projects/gapi containing the GN4 client generated from the OpenAPI + the index model from GN5
  • projects/glib containing draft components focusing mainly on search for now
  • projects/gapp a draft application loading GN4 UI configuration and building the search UI

image

  • projects/gwebcomponents with draft webcomponents

image

Also experiment if the actual map viewer could be embedded into a new Angular app with basic interactions

image

Build and pack in spring boot app:

git clone [email protected]:GeoCat/geonetwork.git
git checkout -b frontend-exp origin/frontend-exp
cd geonetwork-frontend;
npm install; 
ng build gapi;
ng build glib;
ng build gapp;
ng build gwebcomponents --output-hashing none --base-href /webcomponents/
cd ..;
mvn clean install -Drelax;
java -jar target/geonetwork-5.0.0-SNAPSHOT.jar --geonetwork.core.url=http://localhost:8080/geonetwork --geonetwork.index.url=http://localhost:9201

Regenerate OpenAPI client for mocking API call with Jasmine.
…not available in configuration.

```
<g-search-agg aggregation="publicationYearForResource" scope="main" />
```
will automatically build a term aggregation configuration.
fxprunayre and others added 20 commits August 23, 2024 08:05
…nent.

* Added column selection.

* feat(front) : Added column selection in search-results-table webcomponent.

* feat(front) : Added column selection in search-results-table webcomponent.

* feat(front) : removed unused sorticon.

---------

Co-authored-by: GeryNi-personal <[email protected]>
* Added column selection.

* feat(front) : Added column selection in search-results-table webcomponent.

* feat(front) : Added column selection in search-results-table webcomponent.

* feat(front) : removed unused sorticon.

* feat(front) : add sorting - created a function in SearchService to determine if the field is sortable or not and return the field name to use for sorting.

* feat(front) : fixed issue with normalization (string must be an Object and not primitive)

* feat(front) : fixed issue with normalization

* feat(front) :sorting -  fixed issue with primeng table sorting icon.

* typo(front) : removed accent in field name.

* feat(front) : sorting -> improved comments.

* feat(front) : removed unused imports + fixed typo.

* feat(front) : Sorting by .sort field and prettier.

---------

Co-authored-by: GeryNi-personal <[email protected]>
Co-authored-by: Francois Prunayre <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants