Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/next' into gs17
Browse files Browse the repository at this point in the history
  • Loading branch information
pelord committed Nov 29, 2024
2 parents 06ea8aa + b649674 commit 1095aca
Show file tree
Hide file tree
Showing 51 changed files with 5,094 additions and 6,582 deletions.
56 changes: 0 additions & 56 deletions .eslintrc.json

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/gh-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:

- name: Zip output
run: zip -qq -r igo2.zip *
working-directory: dist/igo2
working-directory: dist/igo2/browser

- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: ${{ github.workspace }}-CHANGELOG.txt
files: dist/igo2/igo2.zip
files: dist/igo2/browser/igo2.zip
token: ${{ secrets.GITHUB_TOKEN }}
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
# [17.0.0](https://github.com/infra-geo-ouverte/igo2/compare/v16.3.0...v17.0.0) (2024-08-22)


### Bug Fixes

* add google font symbols ([fb7af4a](https://github.com/infra-geo-ouverte/igo2/commit/fb7af4ac24d5b6c1d521f1e9aa840ee2b177fb74))
* **core:** use provideConfig ([6a93da4](https://github.com/infra-geo-ouverte/igo2/commit/6a93da431052db3b9053d793994a3215b3298eae))
* double head in index ([7626f6c](https://github.com/infra-geo-ouverte/igo2/commit/7626f6c07b55636a1fdd4dd641f6d9a907f9ff2a))
* **environment:** add testgeoegl in trusted host ([e400086](https://github.com/infra-geo-ouverte/igo2/commit/e400086c0dfe4835f3b83856e9121c11bd1cdca0))
* ol version to 9.1.0 ([9c66af3](https://github.com/infra-geo-ouverte/igo2/commit/9c66af336373e56df01da15d86b0ba1582868112))


### Features

* **auth:** configure auth with provider ([6b0098f](https://github.com/infra-geo-ouverte/igo2/commit/6b0098f06aa38c02b2b8964261cec0a90aa7051e))
* **common:** refact in submodule ([#1155](https://github.com/infra-geo-ouverte/igo2/issues/1155)) ([76fb402](https://github.com/infra-geo-ouverte/igo2/commit/76fb402d28563696cba902cb52c412641a6ac9cc)), closes [#1156](https://github.com/infra-geo-ouverte/igo2/issues/1156)
* **directions:** added possibility to toggle between two routing sources ([#1150](https://github.com/infra-geo-ouverte/igo2/issues/1150)) ([#1150](https://github.com/infra-geo-ouverte/igo2/issues/1150)) ([6157df4](https://github.com/infra-geo-ouverte/igo2/commit/6157df41fdc3b78dd56b80aff6babef4c5749e4c))
* replace @mdi/angular-material with Google Font - Symbol BREAKIN… ([#1154](https://github.com/infra-geo-ouverte/igo2/issues/1154)) ([3c8cf48](https://github.com/infra-geo-ouverte/igo2/commit/3c8cf4812096adbb30f4bd3494c9e6274acf3d91))



# [16.3.0](https://github.com/infra-geo-ouverte/igo2/compare/v16.2.0...v16.3.0) (2024-01-25)


Expand Down
55 changes: 20 additions & 35 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@
},
"architect": {
"build": {
"defaultConfiguration": "developpement",
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-devkit/build-angular:application",
"options": {
"aot": true,
"outputPath": "dist/igo2",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"polyfills": ["src/polyfills.ts"],
"tsConfig": "src/tsconfig.app.json",
"assets": [
"src/favicon.ico",
Expand All @@ -34,28 +32,28 @@
"src/locale",
{
"glob": "**/*",
"input": "./node_modules/@igo2/common/assets/",
"output": "./assets/igo2/common/"
"input": "node_modules/@igo2/common/assets/",
"output": "assets/igo2/common/"
},
{
"glob": "**/*",
"input": "./node_modules/@igo2/core/assets/",
"output": "./assets/igo2/core/"
"input": "node_modules/@igo2/core/assets/",
"output": "assets/igo2/core/"
},
{
"glob": "**/*",
"input": "./node_modules/@igo2/core/locale/",
"output": "./locale/libs_locale",
"input": "node_modules/@igo2/core/locale/",
"output": "locale/libs_locale",
"ignore": ["**/*.core.json"]
},
{
"glob": "**/*",
"input": "./node_modules/@igo2/core/theming/prebuilt-themes",
"input": "node_modules/@igo2/core/theming/prebuilt-themes",
"output": "./assets/igo2/core/theming/prebuilt-themes"
},
{
"glob": "**/*",
"input": "./node_modules/@igo2/geo/assets/",
"input": "node_modules/@igo2/geo/assets/",
"output": "./assets/igo2/geo/"
},
"src/manifest.webmanifest"
Expand Down Expand Up @@ -90,7 +88,8 @@
"striptags",
"ts-md5",
"typy"
]
],
"browser": "src/main.ts"
},
"configurations": {
"production": {
Expand All @@ -112,8 +111,6 @@
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": true,
"buildOptimizer": false,
"serviceWorker": false
},
"production-link": {
Expand All @@ -135,8 +132,6 @@
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": true,
"buildOptimizer": false,
"serviceWorker": false,
"assets": [
"src/favicon.ico",
Expand Down Expand Up @@ -175,17 +170,13 @@
]
},
"developpement": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
},
"developpement-link": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true,
Expand Down Expand Up @@ -244,8 +235,6 @@
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": true,
"buildOptimizer": false,
"serviceWorker": false
},
"pwa": {
Expand All @@ -267,10 +256,7 @@
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": true,
"buildOptimizer": false,
"serviceWorker": true,
"ngswConfigPath": "ngsw-config.json"
"serviceWorker": "ngsw-config.json"
}
}
},
Expand Down Expand Up @@ -309,7 +295,7 @@
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"polyfills": ["src/polyfills.ts", "zone.js/testing"],
"tsConfig": "src/tsconfig.spec.json",
"karmaConfig": "src/karma.conf.js",
"styles": ["src/styles.scss"],
Expand All @@ -331,7 +317,8 @@
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"],
"eslintConfig": "eslint.config.js"
}
},
"e2e": {
Expand Down Expand Up @@ -380,14 +367,12 @@
}
},
"cli": {
"cache": {
"enabled": false
},
"schematicCollections": [
"@angular-eslint/schematics",
"@schematics/angular"
],
"cache": {
"enabled": false,
"environment": "all"
},
"analytics": false
}
}
}
3 changes: 3 additions & 0 deletions docs/_tables/fr/config/directions-profile-auth.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Propriétés,Type,Description,Valeurs possibles,Valeur par défaut
url ,String ,URL permettant de vérifier l'accessibilité d'un profil à un utilisateur. | Utilisé pour un profil protégé.,,
property ,String ,Propriété utilisée pour la vérification de l'accessibilité.,,
4 changes: 4 additions & 0 deletions docs/_tables/fr/config/directions-profile.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Propriétés,Type,Description,Valeurs possibles,Valeur par défaut
enabled ,Boolean ,Permet d'activer un profil spécifique au lancement de l'application. | Un seul doit être activé dans les configurations. ,true | false ,Le premier profil est activé par défaut.
name ,String ,Nom du profil. | Le nom est ajouté à baseURL afin de créer la route finale,,
authorization ,BaseDirectionsSourceOptionsProfileAuthorization ,Objet permettant de gérer l'accessibilité à un profil protégé. ,,
6 changes: 4 additions & 2 deletions docs/_tables/fr/config/directions.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Propriétés,Type,Description,Valeurs possibles,Valeur défaut
enabled ,Boolean ,Permet d'activer/ désactiver la source. ,true | false ,true
url ,String ,Url du serveur retournant l'itinéraire. ,,`https://geoegl.msp.gouv.qc.ca/services/itineraire/route/v1/driving/ <https://geoegl.msp.gouv.qc.ca/services/itineraire/route/v1/driving/>`_
name ,String ,Nom de la source,,
baseUrl ,String ,URL du service retournant l'itinéraire. ,,`https://geoegl.msp.gouv.qc.ca/apis/itineraire/route/v1/driving/ <https://geoegl.msp.gouv.qc.ca/apis/itineraire/route/v1/driving/>`
profiles , BaseDirectionsSourceOptionsProfile[] , Liste de profils à utiliser. ,
authorizationUrl ,String ,URL permettant de vérifier l'accessibilité d'une source à un utilisateur. | Utilisé pour une source privée.,,
9 changes: 3 additions & 6 deletions docs/_tables/fr/properties/linkedLayersOptions.csv
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
Propriétés,Type,Description,Valeurs possibles,Valeur défaut
**linkId** ,String,"| Identifiant de liaison de la présente couche.
| Diffère du ID du la couche car cet id doit être
| connu au pilotage, pas seulement lors l'éxécution du code. ",,
links ,:ref:`LayersLinkProperties[] <LayersLinkProperties>` ,"| Définit la liste des couches ""enfant"" liées
| ainsi que leurs propriété qui sont synchronisées.
| Obligatoire pour les couches parents.",,
**linkId**,String,"| Identifiant de liaison de la présente couche.| Diffère du ID de la couche car cet ID doit être| connu au pilotage, pas seulement lors l'éxécution du code.",,,
showInMiniBaseMap,Boolean,"| Définit si la couche est visible dans l'aperçu| de la couche parent du Base Layer Switcher.",true | false,true,
links,:ref:`LayersLinkProperties[] <LayersLinkProperties>`,"| Définit la liste des couches ""enfants"" liées| ainsi que leurs propriétés qui sont synchronisées.| Obligatoire pour les couches parents.",,,
42 changes: 37 additions & 5 deletions docs/config_json.rst
Original file line number Diff line number Diff line change
Expand Up @@ -836,22 +836,36 @@ Exemples
.. _igoroutingsource:

***************
RoutingSource
DirectionsSources
***************

.. line-block::

Permet de définir la source serveur utilisée pour la création d'itinéraires. Actuellement, le serveur utilisé est OSRM.
Permet de définir une ou plusieurs profils utilisés pour la création d'itinéraires. Le service utilisé par IGO2 est OSRM.

La configuration peut contenir, pour le moment, jusqu'à deux profils.

Exemples

.. code:: json
"routingSources": {
"directionsSources": {
"osrm": {
"enabled": true,
"url": "https://geoegl.msp.gouv.qc.ca/services/itineraire/route/v1/driving/"
"name": "OSRM Québec",
"baseUrl": "/apis/itineraire/route/v1/",
"profiles": [
{
"name": "driving",
},
{
"name": "forestier",
"authorization": {
"url": "/apis/igo2/user/igo",
"property": "hasOsrmPrivateAccess"
}
}]
}
}
Propriétés

Expand All @@ -861,7 +875,25 @@ Propriétés
:file: _tables/fr/config/directions.csv
:header-rows: 1
:widths: 10 10 30 15 10

**BaseDirectionsSourceOptionsProfile**

.. tabularcolumns:: |p{1cm}|p{2cm}|p{7cm}|p{2cm}|p{2cm}|

.. csv-table::
:file: _tables/fr/config/directions-profile.csv
:header-rows: 1
:widths: 10 10 30 15 10

**BaseDirectionsSourceOptionsProfileAuthorization**

.. tabularcolumns:: |p{1cm}|p{2cm}|p{7cm}|p{2cm}|p{2cm}|

.. csv-table::
:file: _tables/fr/config/directions-profile-auth.csv
:header-rows: 1
:widths: 10 10 30 15 10

Important : Les propriétés en caractère gras suivies d'un * sont obligatoires.

Liens
Expand Down
4 changes: 2 additions & 2 deletions e2e/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default defineConfig({
baseUrl: 'http://localhost:4201',
specPattern: 'e2e/src/*.spec.ts',
supportFile: 'e2e/support/e2e.ts',
videosFolder: "e2e/dist/videos",
screenshotsFolder: "e2e/dist/screenshots",
videosFolder: 'e2e/dist/videos',
screenshotsFolder: 'e2e/dist/screenshots'
}
});
5 changes: 2 additions & 3 deletions e2e/fixtures/example.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"name": "Using fixtures to represent data",
"email": "hello@cypress.io"
"name": "Using fixtures to represent data",
"email": "hello@cypress.io"
}

11 changes: 4 additions & 7 deletions e2e/src/app.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ describe('My First Test', () => {
const url = 'http://localhost:4201';
it('Check the config file', () => {
cy.visit('/');
cy.request('GET', `${url}/config/config.json`).then(
(response) => {
expect(response.body).to.have.property('title', 'IGO'); // true
expect(response.body).to.have.property('theme', 'blue-theme'); // true
}
);
cy.request('GET', `${url}/config/config.json`).then((response) => {
expect(response.body).to.have.property('title', 'IGO'); // true
expect(response.body).to.have.property('theme', 'blue-theme'); // true
});
});

});
Loading

0 comments on commit 1095aca

Please sign in to comment.