Compare commits
No commits in common. "fix/prod" and "master" have entirely different histories.
10
.github/workflows/build_jsdoc_drink.yml
vendored
10
.github/workflows/build_jsdoc_drink.yml
vendored
@ -1,16 +1,10 @@
|
|||||||
name: JsDocs
|
name: JsDocs
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- '*'
|
|
||||||
tags:
|
|
||||||
- v*
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- '*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docs:
|
coverage:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout # rapatrie le depot
|
- name: Checkout # rapatrie le depot
|
||||||
|
155
PB_export.json
155
PB_export.json
@ -1,155 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
"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": {}
|
|
||||||
}
|
|
||||||
]
|
|
17
README.md
17
README.md
@ -1,19 +1,4 @@
|
|||||||
Original repo : https://git.lab-ouest.org/Epitech/ratrapage_T-WEB
|
Original repo : https://git.lab-ouest.org/Epitech/ratrapage_T-WEB
|
||||||
|
|
||||||
|
|
||||||
Submodule repo : https://git.lab-ouest.org/Epitech/fork-open-data-tourism/
|
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
|
|
@ -204,9 +204,9 @@ console.log(fav);
|
|||||||
.bindPopup(`<b>${prop.name}</b><br/>note : ${prop.rate} <br/>tags:<br/> ${tags} <p>favori : <input type="checkbox" name="like" id=${element.id}/><p>`)
|
.bindPopup(`<b>${prop.name}</b><br/>note : ${prop.rate} <br/>tags:<br/> ${tags} <p>favori : <input type="checkbox" name="like" id=${element.id}/><p>`)
|
||||||
.on("click", () => {
|
.on("click", () => {
|
||||||
document.querySelectorAll<HTMLInputElement>('input[name="like"]').forEach(e => {
|
document.querySelectorAll<HTMLInputElement>('input[name="like"]').forEach(e => {
|
||||||
e.addEventListener("click", async () => {
|
e.addEventListener("click", () => {
|
||||||
console.log(element)
|
console.log(element)
|
||||||
await saveToFav(element, e.checked)
|
saveToFav(element, e.checked)
|
||||||
document.location.reload()
|
document.location.reload()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user