diff --git a/.github/workflows/build_jsdoc_drink.yml b/.github/workflows/build_jsdoc_drink.yml index 5dbd782..96ee24c 100644 --- a/.github/workflows/build_jsdoc_drink.yml +++ b/.github/workflows/build_jsdoc_drink.yml @@ -1,10 +1,16 @@ name: JsDocs on: - pull_request: + push: branches: - '*' + tags: + - v* + pull_request: + branches: + - master + jobs: - coverage: + docs: runs-on: ubuntu-latest steps: - name: Checkout # rapatrie le depot 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 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() }) })