7 Commits

Author SHA1 Message Date
4113b77f81 add readme and fix save
All checks were successful
Build Docker Image Front / run (pull_request) Successful in 2m1s
Build Docker Image Back / run (pull_request) Successful in 24s
JsDocs / docs (pull_request) Successful in 26s
Test and coverage / coverage (pull_request) Successful in 1m15s
2024-06-09 13:12:32 +02:00
dba9f6ada9 feat: add pb export
All checks were successful
Build Docker Image Front / run (pull_request) Successful in 24s
Build Docker Image Back / run (pull_request) Successful in 24s
JsDocs / docs (pull_request) Successful in 24s
Test and coverage / coverage (pull_request) Successful in 1m16s
2024-06-09 12:50:36 +02:00
9591766e1f fix indent
All checks were successful
Build Docker Image Front / run (pull_request) Successful in 25s
Build Docker Image Back / run (pull_request) Successful in 23s
JsDocs / docs (pull_request) Successful in 27s
Test and coverage / coverage (pull_request) Successful in 1m10s
2024-06-09 12:47:55 +02:00
a7886495ec fix running condition
All checks were successful
Build Docker Image Front / run (pull_request) Successful in 25s
Build Docker Image Back / run (pull_request) Successful in 24s
Test and coverage / coverage (pull_request) Successful in 1m13s
2024-06-09 12:47:11 +02:00
2f92fff8c5 fix: jobs name
All checks were successful
Build Docker Image Front / run (pull_request) Successful in 25s
Build Docker Image Back / run (pull_request) Successful in 25s
Test and coverage / coverage (pull_request) Successful in 1m18s
2024-06-09 12:46:17 +02:00
93080ea315 add jsdoc CI
All checks were successful
Build Docker Image Front / run (pull_request) Successful in 28s
Build Docker Image Back / run (pull_request) Successful in 24s
Test and coverage / coverage (pull_request) Successful in 1m19s
2024-06-09 12:41:34 +02:00
e9ce2d1f9f feat/final commit
All checks were successful
Build Docker Image Front / run (push) Successful in 1m56s
Build Docker Image Back / run (push) Successful in 25s
2024-06-09 20:05:28 +02:00
6 changed files with 192 additions and 121 deletions

View File

@ -1,10 +1,16 @@
name: JsDocs name: JsDocs
on: on:
pull_request: push:
branches: branches:
- '*' - '*'
tags:
- v*
pull_request:
branches:
- master
jobs: jobs:
coverage: docs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout # rapatrie le depot - name: Checkout # rapatrie le depot

155
PB_export.json Normal file
View File

@ -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": {}
}
]

View File

@ -1,4 +1,19 @@
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

View File

@ -3,119 +3,16 @@ import { getPermalink, getBlogPermalink } from './utils/permalinks'
export const headerData = { export const headerData = {
links: [ links: [
{ {
text: 'Homes', text: 'Explorer POI',
links: [ href: '/maps',
{
text: 'SaaS',
href: getPermalink('/homes/saas'),
},
{
text: 'Startup',
href: getPermalink('/homes/startup'),
},
{
text: 'Mobile App',
href: getPermalink('/homes/mobile-app'),
},
{
text: 'Personal',
href: getPermalink('/homes/personal'),
},
],
}, },
{ {
text: 'Pages', text: 'itinéraire',
links: [ href: '/maps/find_route',
{
text: 'Features (Anchor Link)',
href: getPermalink('/#features'),
},
{
text: 'Services',
href: getPermalink('/services'),
},
{
text: 'Pricing',
href: getPermalink('/pricing'),
},
{
text: 'About us',
href: getPermalink('/about'),
},
{
text: 'Contact',
href: getPermalink('/contact'),
},
{
text: 'Terms',
href: getPermalink('/terms'),
},
{
text: 'Privacy policy',
href: getPermalink('/privacy'),
},
],
}, },
{ {
text: 'Landing', text: 'Compte',
links: [ href: '/account',
{
text: 'Lead Generation',
href: getPermalink('/landing/lead-generation'),
},
{
text: 'Long-form Sales',
href: getPermalink('/landing/sales'),
},
{
text: 'Click-Through',
href: getPermalink('/landing/click-through'),
},
{
text: 'Product Details (or Services)',
href: getPermalink('/landing/product'),
},
{
text: 'Coming Soon or Pre-Launch',
href: getPermalink('/landing/pre-launch'),
},
{
text: 'Subscription',
href: getPermalink('/landing/subscription'),
},
],
},
{
text: 'Blog',
links: [
{
text: 'Blog List',
href: getBlogPermalink(),
},
{
text: 'Article',
href: getPermalink(
'get-started-website-with-astro-tailwind-css',
'post'
),
},
{
text: 'Article (with MDX)',
href: getPermalink('markdown-elements-demo-post', 'post'),
},
{
text: 'Category Page',
href: getPermalink('tutorials', 'category'),
},
{
text: 'Tag Page',
href: getPermalink('astro', 'tag'),
},
],
},
{
text: 'Widgets',
href: '#',
}, },
], ],
// actions: [ // actions: [

View File

@ -14,14 +14,12 @@ const metadata = {
<Layout metadata={metadata}> <Layout metadata={metadata}>
<div class="h-[calc(100vh-16rem)] flex flex-col"> <div class="h-[calc(100vh-5rem)] flex flex-col">
<div class="w-full h-96 grow" id="map" /> <div class="w-full h-96 grow" id="map" />
<Button id="test-btn">test</Button> <Button id="test-btn">test</Button>
</div> </div>
<!-- TODO: faire en sort que le style soit propre -->
<!-- for remouve footer --> <!-- for remouve footer -->
<!-- <div slot="footer"></div> --> <div slot="footer"></div>
<!-- penser a rm 11 au rem au dessus pour la taille -->
</Layout> </Layout>
<script> <script>

View File

@ -186,7 +186,7 @@ console.log(fav);
params.append("rate", minimalNote) params.append("rate", minimalNote)
if(drink && otm){ if(drink && otm){
fetch(`${BACK_URL}otm/box?${params.toString()}`,{method: 'GET',headers: {'Content-Type': 'application/json'}}).then(function (response) { fetch(`${BACK_URL}otm/box?${params.toString()}`,{method: 'GET',headers: {'Content-Type': 'application/json',}}).then(function (response) {
return response.json() return response.json()
}).then(function (data) { }).then(function (data) {
poiMarkers.forEach(element => { poiMarkers.forEach(element => {
@ -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", () => { e.addEventListener("click", async () => {
console.log(element) console.log(element)
saveToFav(element, e.checked) await saveToFav(element, e.checked)
document.location.reload() document.location.reload()
}) })
}) })