From 93080ea3150dfaebe22be17893065ec52b7ce745 Mon Sep 17 00:00:00 2001 From: Clement Date: Sun, 9 Jun 2024 12:41:34 +0200 Subject: [PATCH 1/6] add jsdoc CI --- .github/workflows/build_jsdoc_drink.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build_jsdoc_drink.yml b/.github/workflows/build_jsdoc_drink.yml index 5dbd782..905b09d 100644 --- a/.github/workflows/build_jsdoc_drink.yml +++ b/.github/workflows/build_jsdoc_drink.yml @@ -3,6 +3,12 @@ on: pull_request: branches: - '*' + tags: + - v* + pull_request: + branches: + - master + jobs: coverage: runs-on: ubuntu-latest -- 2.47.1 From 2f92fff8c54ceef7d8eff073988a62ce6bb9cf63 Mon Sep 17 00:00:00 2001 From: Clement Date: Sun, 9 Jun 2024 12:46:17 +0200 Subject: [PATCH 2/6] fix: jobs name --- .github/workflows/build_jsdoc_drink.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_jsdoc_drink.yml b/.github/workflows/build_jsdoc_drink.yml index 905b09d..0ab4917 100644 --- a/.github/workflows/build_jsdoc_drink.yml +++ b/.github/workflows/build_jsdoc_drink.yml @@ -10,7 +10,7 @@ on: - master jobs: - coverage: + docs: runs-on: ubuntu-latest steps: - name: Checkout # rapatrie le depot -- 2.47.1 From a7886495ecb2e705c51779c495c320b54b001434 Mon Sep 17 00:00:00 2001 From: Clement Date: Sun, 9 Jun 2024 12:47:11 +0200 Subject: [PATCH 3/6] fix running condition --- .github/workflows/build_jsdoc_drink.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_jsdoc_drink.yml b/.github/workflows/build_jsdoc_drink.yml index 0ab4917..99782cb 100644 --- a/.github/workflows/build_jsdoc_drink.yml +++ b/.github/workflows/build_jsdoc_drink.yml @@ -1,6 +1,6 @@ name: JsDocs on: - pull_request: + push: branches: - '*' tags: -- 2.47.1 From 9591766e1f3679a6c36ee503c89aa99b43a2658c Mon Sep 17 00:00:00 2001 From: Clement Date: Sun, 9 Jun 2024 12:47:55 +0200 Subject: [PATCH 4/6] fix indent --- .github/workflows/build_jsdoc_drink.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_jsdoc_drink.yml b/.github/workflows/build_jsdoc_drink.yml index 99782cb..96ee24c 100644 --- a/.github/workflows/build_jsdoc_drink.yml +++ b/.github/workflows/build_jsdoc_drink.yml @@ -3,11 +3,11 @@ on: push: branches: - '*' - tags: - - v* - pull_request: - branches: - - master + tags: + - v* + pull_request: + branches: + - master jobs: docs: -- 2.47.1 From dba9f6ada9ab5d217aa79813740d00299ace91fa Mon Sep 17 00:00:00 2001 From: Clement Date: Sun, 9 Jun 2024 12:50:36 +0200 Subject: [PATCH 5/6] feat: add pb export --- PB_export.json | 155 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 155 insertions(+) create mode 100644 PB_export.json diff --git a/PB_export.json b/PB_export.json new file mode 100644 index 0000000..f183f1a --- /dev/null +++ b/PB_export.json @@ -0,0 +1,155 @@ +[ + { + "id": "_pb_users_auth_", + "name": "users", + "type": "auth", + "system": false, + "schema": [ + { + "system": false, + "id": "users_name", + "name": "name", + "type": "text", + "required": false, + "presentable": false, + "unique": false, + "options": { + "min": null, + "max": null, + "pattern": "" + } + }, + { + "system": false, + "id": "users_avatar", + "name": "avatar", + "type": "file", + "required": false, + "presentable": false, + "unique": false, + "options": { + "mimeTypes": [ + "image/jpeg", + "image/png", + "image/svg+xml", + "image/gif", + "image/webp" + ], + "thumbs": null, + "maxSelect": 1, + "maxSize": 5242880, + "protected": false + } + } + ], + "indexes": [], + "listRule": "id = @request.auth.id", + "viewRule": "id = @request.auth.id", + "createRule": "", + "updateRule": "id = @request.auth.id", + "deleteRule": "id = @request.auth.id", + "options": { + "allowEmailAuth": true, + "allowOAuth2Auth": true, + "allowUsernameAuth": true, + "exceptEmailDomains": null, + "manageRule": null, + "minPasswordLength": 8, + "onlyEmailDomains": null, + "onlyVerified": false, + "requireEmail": false + } + }, + { + "id": "okcdl5ouza7wpmh", + "name": "POI", + "type": "base", + "system": false, + "schema": [ + { + "system": false, + "id": "tizn7ekv", + "name": "Poi", + "type": "json", + "required": true, + "presentable": false, + "unique": false, + "options": { + "maxSize": 2000000 + } + }, + { + "system": false, + "id": "sknwezy1", + "name": "Poi_id", + "type": "text", + "required": true, + "presentable": false, + "unique": false, + "options": { + "min": null, + "max": null, + "pattern": "" + } + } + ], + "indexes": [ + "CREATE UNIQUE INDEX `idx_iGYiVpo` ON `POI` (`Poi_id`)" + ], + "listRule": "@request.auth.id != \"\"", + "viewRule": "@request.auth.id != \"\"", + "createRule": "(@request.auth.id != \"\")", + "updateRule": null, + "deleteRule": null, + "options": {} + }, + { + "id": "iqpfqlcao9so0mj", + "name": "user_poi", + "type": "base", + "system": false, + "schema": [ + { + "system": false, + "id": "skjq9wtr", + "name": "owner", + "type": "relation", + "required": false, + "presentable": false, + "unique": false, + "options": { + "collectionId": "_pb_users_auth_", + "cascadeDelete": false, + "minSelect": null, + "maxSelect": 1, + "displayFields": null + } + }, + { + "system": false, + "id": "buw92nch", + "name": "poi_list", + "type": "relation", + "required": false, + "presentable": false, + "unique": false, + "options": { + "collectionId": "okcdl5ouza7wpmh", + "cascadeDelete": false, + "minSelect": null, + "maxSelect": 1, + "displayFields": null + } + } + ], + "indexes": [ + "CREATE UNIQUE INDEX `idx_PC3A5Pg` ON `user_poi` (\n `owner`,\n `poi_list`\n)" + ], + "listRule": "", + "viewRule": "", + "createRule": "", + "updateRule": null, + "deleteRule": "", + "options": {} + } +] \ No newline at end of file -- 2.47.1 From 4113b77f813f3b072fc4f406be1cdb587132c98b Mon Sep 17 00:00:00 2001 From: Clement Date: Sun, 9 Jun 2024 13:12:32 +0200 Subject: [PATCH 6/6] add readme and fix save --- README.md | 17 ++++++++++++++++- front/src/pages/maps/index.astro | 4 ++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 37b1f7a..78b14f2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,19 @@ Original repo : https://git.lab-ouest.org/Epitech/ratrapage_T-WEB -Submodule repo : https://git.lab-ouest.org/Epitech/fork-open-data-tourism/ \ No newline at end of file +Submodule repo : https://git.lab-ouest.org/Epitech/fork-open-data-tourism/ + +# Prod link : + + +JSDocs : https://drink-tweb.docs.cb85.fr/ + +Swagger : https://drink-tweb.cb85.fr/api-docs/ + +PB : https://pb-tweb.cb85.fr/ + + +Datatourisme : +- https://datatour-tweb.cb85.fr/ +- https://datatour-tweb.cb85.fr/graphiql +- https://datatour-tweb.cb85.fr/voyager \ No newline at end of file diff --git a/front/src/pages/maps/index.astro b/front/src/pages/maps/index.astro index 0f7217e..1021cad 100644 --- a/front/src/pages/maps/index.astro +++ b/front/src/pages/maps/index.astro @@ -204,9 +204,9 @@ console.log(fav); .bindPopup(`${prop.name}
note : ${prop.rate}
tags:
${tags}

favori :

`) .on("click", () => { document.querySelectorAll('input[name="like"]').forEach(e => { - e.addEventListener("click", () => { + e.addEventListener("click", async () => { console.log(element) - saveToFav(element, e.checked) + await saveToFav(element, e.checked) document.location.reload() }) }) -- 2.47.1