Skip to content

Commit

Permalink
ui: uses primeng for the frontend
Browse files Browse the repository at this point in the history
* Adds missing format alias on the the REST API.
* Adds placeholder on the contries editor.
* All document detailed view tabs is done in angular.
* Removes useless document views.
* Removes useless document jinja template filters and their corresponding tests.
* Adds layer to css styles to avoid primeng and bootstrap conflicts.

Co-Authored-by: Johnny Mariéthoz <Johnny.Mariethoz@rero.ch>
  • Loading branch information
jma committed Dec 4, 2024
1 parent 95babd9 commit 0e9da44
Show file tree
Hide file tree
Showing 32 changed files with 435 additions and 2,059 deletions.
8 changes: 5 additions & 3 deletions rero_ils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -999,13 +999,15 @@ def _(x):
record_serializers={
"application/json": "rero_ils.modules.serializers:json_v1_response"
},
record_serializers_aliases={
"json": "application/json",
},
record_serializers_aliases={"json": "application/json"},
search_serializers={
"application/json": "rero_ils.modules.serializers:json_v1_search",
"application/rero+json": "rero_ils.modules.holdings.serializers:json_holdings_search",
},
search_serializers_aliases={
"json": "application/json",
"rero+json": "application/json",
},
list_route="/holdings/",
record_loaders={
"application/json": lambda: Holding(request.get_json()),
Expand Down
6 changes: 5 additions & 1 deletion rero_ils/jsonschemas/common/countries-v0.0.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,10 @@
"widget": {
"formlyConfig": {
"props": {
"placeholder": "Select an option…",
"sort": true,
"sortOrder": "asc",
"filter": true,
"itemCssClass": "col-lg-4",
"options": [
{
Expand Down Expand Up @@ -1887,4 +1891,4 @@
}
}
}
}
}

This file was deleted.

This file was deleted.

Loading

0 comments on commit 0e9da44

Please sign in to comment.