Skip to content

Commit

Permalink
contribution: implements organisation agents
Browse files Browse the repository at this point in the history
The shared folder allows you to share code between several projects.
The project tests have been adapted with the new structure of the Shared module.
Typeaheads are now retrieved in the definition of providers in the module configuration.

* Adds 2 types of typeahead for contributions to differentiate between people and organizations.
* Adds a new pipe to extact sources data from contributions.
* Adds a ngVar directive to allow data extraction in the template.
* Adds a urlActive pipe that allows to activate urls in the text.
* Fixes patron history with status "In transit to house".
* Closes rero/rero-ils#1360

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
  • Loading branch information
Garfield-fr committed Nov 4, 2020
1 parent c651807 commit 50cf702
Show file tree
Hide file tree
Showing 192 changed files with 4,513 additions and 1,313 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ $ nvm use lts/erbium
$ npm i -g @angular/cli@8.3.28
# Project npm dependencies
$ npm i
# Build shared library
$ ng build shared --watch
# Launch a local server using a proxy for https://localhost:5000 (rero-ils server)
$ npm run start-admin-proxy
```
Expand Down
35 changes: 35 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,41 @@
}
}
}
},
"shared": {
"projectType": "library",
"root": "projects/shared",
"sourceRoot": "projects/shared/src",
"prefix": "shared",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/shared/tsconfig.lib.json",
"project": "projects/shared/ng-package.json"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/shared/src/test.ts",
"tsConfig": "projects/shared/tsconfig.spec.json",
"karmaConfig": "projects/shared/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/shared/tsconfig.lib.json",
"projects/shared/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
}
},
"defaultProject": "admin"
Expand Down
Loading

0 comments on commit 50cf702

Please sign in to comment.