From 7387ce7f50dc13bbda7d0a205f50b67f24eb9652 Mon Sep 17 00:00:00 2001 From: Valentin Le Moign Date: Wed, 2 Apr 2025 01:06:39 +0200 Subject: [PATCH] EXPORT CONFIG ! fin du centre de ressource --- config/sync/caravane.settings.yml | 10 ++ config/sync/system.theme.global.yml | 2 +- web/themes/custom/caravane/assets/js/main.js | 4 +- .../custom/caravane/assets/js/stores/map.js | 10 +- .../caravane/assets/js/vuejs/Modale.vue | 47 +++++-- .../js/vuejs/components/CentreDeRessource.vue | 23 ---- .../js/vuejs/components/RessourceCard.vue | 3 +- .../components/parties/ModaleDocument.vue | 38 ------ .../custom/caravane/assets/scss/main.scss | 115 ++++++++++++++++-- 9 files changed, 155 insertions(+), 97 deletions(-) create mode 100644 config/sync/caravane.settings.yml diff --git a/config/sync/caravane.settings.yml b/config/sync/caravane.settings.yml new file mode 100644 index 0000000..ee782a8 --- /dev/null +++ b/config/sync/caravane.settings.yml @@ -0,0 +1,10 @@ +features: + node_user_picture: false + comment_user_picture: true + comment_user_verification: true + favicon: 1 +logo: + use_default: 1 +favicon: + use_default: 0 + path: '' diff --git a/config/sync/system.theme.global.yml b/config/sync/system.theme.global.yml index 067532c..542f8dc 100644 --- a/config/sync/system.theme.global.yml +++ b/config/sync/system.theme.global.yml @@ -4,7 +4,7 @@ favicon: mimetype: image/vnd.microsoft.icon path: '' url: '' - use_default: true + use_default: false features: comment_user_picture: true comment_user_verification: true diff --git a/web/themes/custom/caravane/assets/js/main.js b/web/themes/custom/caravane/assets/js/main.js index 5d6f912..85d7a97 100644 --- a/web/themes/custom/caravane/assets/js/main.js +++ b/web/themes/custom/caravane/assets/js/main.js @@ -12,9 +12,7 @@ import '../scss/main.scss' (function ($, Drupal, drupalSettings) { const CaravaneTheme = function () { - function init () { - console.log('CI/CD FONCTIONNE !'); - + function init () { // console.log('DrupalSettings', drupalSettings); const baseUrl = window.location.protocol + "//" + window.location.host; diff --git a/web/themes/custom/caravane/assets/js/stores/map.js b/web/themes/custom/caravane/assets/js/stores/map.js index fb6b6be..a53bf8f 100644 --- a/web/themes/custom/caravane/assets/js/stores/map.js +++ b/web/themes/custom/caravane/assets/js/stores/map.js @@ -23,21 +23,15 @@ export const useMapStore = defineStore('mapState', { this.maxZoom, { animate: this.animationsAreEnabled, duration: this.animationDuration }); this.currentZoom = this.maxZoom; - this.lockMap(); }, - resetMap(animate = this.animationsAreEnabled, duration = this.animationDuration) { + resetMap(animate = this.animationsAreEnabled, duration = this.animationDuration) { this.map.flyTo( this.defaultMapCenter, useLayoutStore().isDesktop ? this.defaultZoomDesktop : this.defaultZoomMobile, { animate, duration }); this.currentZoom = useLayoutStore().isDesktop ? this.defaultZoomDesktop : this.defaultZoomMobile; - this.unlockMap(); }, - lockMap() { - setTimeout(() => { - this.map.options.minZoom = this.currentZoom; - this.map.options.maxZoom = this.currentZoom; - }, this.animationDuration * 1000 + 100); + lockMap() { this.map.dragging.disable(); this.map.touchZoom.disable(); this.map.doubleClickZoom.disable(); diff --git a/web/themes/custom/caravane/assets/js/vuejs/Modale.vue b/web/themes/custom/caravane/assets/js/vuejs/Modale.vue index 781aa2d..eaabde8 100644 --- a/web/themes/custom/caravane/assets/js/vuejs/Modale.vue +++ b/web/themes/custom/caravane/assets/js/vuejs/Modale.vue @@ -62,7 +62,7 @@ :content="content" :couleur="brandColor" /> @@ -80,7 +80,7 @@ diff --git a/web/themes/custom/caravane/assets/js/vuejs/components/CentreDeRessource.vue b/web/themes/custom/caravane/assets/js/vuejs/components/CentreDeRessource.vue index 7d02f9a..bf24421 100644 --- a/web/themes/custom/caravane/assets/js/vuejs/components/CentreDeRessource.vue +++ b/web/themes/custom/caravane/assets/js/vuejs/components/CentreDeRessource.vue @@ -129,27 +129,4 @@ watch(selectedType, async () => { opacity: 1; transform: translateY(0px); } - -.filters { - margin: 3rem 0; - margin-top: 5rem; - > .search-bar{ - margin-right: 2rem; - border: solid 1px var(--couleur); - padding: 0.5rem 1rem; - border-radius: 1rem; - font-family: 'Marianne', sans-serif; - } - > select { - appearance: none; - border: solid 1px var(--couleur); - padding: 0.5rem 1rem; - font-family: 'Marianne', sans-serif; - border-radius: 1rem; - background-color: white; - background: url("data:image/svg+xml,") no-repeat; - background-position: calc(100% - 1rem) center !important; - padding-right: 2.5rem !important; - } -} \ No newline at end of file diff --git a/web/themes/custom/caravane/assets/js/vuejs/components/RessourceCard.vue b/web/themes/custom/caravane/assets/js/vuejs/components/RessourceCard.vue index 1b20666..a1071cf 100644 --- a/web/themes/custom/caravane/assets/js/vuejs/components/RessourceCard.vue +++ b/web/themes/custom/caravane/assets/js/vuejs/components/RessourceCard.vue @@ -14,7 +14,7 @@