From 02c15d10ffba4f42e379e510929464f46f0254cc Mon Sep 17 00:00:00 2001 From: gcch Date: Mon, 4 Nov 2024 18:45:05 +0100 Subject: [PATCH] fix(accueil) corrige la hauteur du contenur --- .../assets/css/pages/page-accueil.css | 1 - .../assets/css/pages/page-accueil.css.map | 2 +- .../assets/css/pages/page-accueil.min.css | 2 +- .../assets/js/.vite/manifest.json | 16 ++++++++-------- .../haiku-atelier-2024/assets/js/products2.js | 2 +- .../haiku-atelier-2024/assets/js/products3.js | 2 +- .../haiku-atelier-2024/assets/js/products4.js | 2 +- .../assets/js/scripts-page-accueil.js | 2 +- .../assets/js/scripts-page-boutique.js | 2 +- .../src/sass/pages/page-accueil.scss | 2 +- .../src/scripts/scripts-page-accueil.ts | 4 ++-- 11 files changed, 18 insertions(+), 19 deletions(-) diff --git a/web/app/themes/haiku-atelier-2024/assets/css/pages/page-accueil.css b/web/app/themes/haiku-atelier-2024/assets/css/pages/page-accueil.css index 239f79cd..4002fe0d 100644 --- a/web/app/themes/haiku-atelier-2024/assets/css/pages/page-accueil.css +++ b/web/app/themes/haiku-atelier-2024/assets/css/pages/page-accueil.css @@ -9,7 +9,6 @@ margin-top: var(--page-marges-bloc-debut); } #page-accueil .storytelling { - scrollbar-width: none; overflow-y: scroll; place-items: center; min-height: inherit; diff --git a/web/app/themes/haiku-atelier-2024/assets/css/pages/page-accueil.css.map b/web/app/themes/haiku-atelier-2024/assets/css/pages/page-accueil.css.map index cb480697..9ff6429e 100644 --- a/web/app/themes/haiku-atelier-2024/assets/css/pages/page-accueil.css.map +++ b/web/app/themes/haiku-atelier-2024/assets/css/pages/page-accueil.css.map @@ -1 +1 @@ -{"version":3,"sourceRoot":"","sources":["../../../src/sass/pages/page-accueil.scss"],"names":[],"mappings":"AAEA;EAEE;EAGA;EAEA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAGF;EACE;;AAGF;EACE;EACA;EACA;EACA;EACA","file":"page-accueil.css"} \ No newline at end of file +{"version":3,"sourceRoot":"","sources":["../../../src/sass/pages/page-accueil.scss"],"names":[],"mappings":"AAEA;EAEE;EAGA;EAEA;EACA;EACA;EACA;EACA;EACA;;AAEA;EAEE;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAGF;EACE;;AAGF;EACE;EACA;EACA;EACA;EACA","file":"page-accueil.css"} \ No newline at end of file diff --git a/web/app/themes/haiku-atelier-2024/assets/css/pages/page-accueil.min.css b/web/app/themes/haiku-atelier-2024/assets/css/pages/page-accueil.min.css index 5073afd4..3cca60ce 100644 --- a/web/app/themes/haiku-atelier-2024/assets/css/pages/page-accueil.min.css +++ b/web/app/themes/haiku-atelier-2024/assets/css/pages/page-accueil.min.css @@ -1 +1 @@ -#page-accueil{--hauteur-conteneur:var(--contenu-page-hauteur-minimale-sans-categories);--page-marges-bloc-debut:var(--en-tete-hauteur);min-height:var(--hauteur-conteneur);max-height:var(--hauteur-conteneur);margin-top:var(--page-marges-bloc-debut);flex-flow:column;display:flex;overflow:hidden}#page-accueil .storytelling{scrollbar-width:none;min-height:inherit;max-height:inherit;place-items:center;overflow-y:scroll}#page-accueil .storytelling__conteneur{min-height:calc(var(--hauteur-conteneur)*10);padding:0 var(--espace-xl);flex-flow:column;display:flex}#page-accueil .storytelling__image{min-height:var(--hauteur-conteneur);max-height:var(--hauteur-conteneur);align-content:center;width:100%;position:sticky;top:0}#page-accueil .storytelling__image[data-cache]{display:none}#page-accueil .storytelling__image picture{max-height:inherit}#page-accueil .storytelling__image img{max-height:inherit;object-fit:contain;background:0 0;margin:auto;scale:.9} \ No newline at end of file +#page-accueil{--hauteur-conteneur:var(--contenu-page-hauteur-minimale-sans-categories);--page-marges-bloc-debut:var(--en-tete-hauteur);min-height:var(--hauteur-conteneur);max-height:var(--hauteur-conteneur);margin-top:var(--page-marges-bloc-debut);flex-flow:column;display:flex;overflow:hidden}#page-accueil .storytelling{min-height:inherit;max-height:inherit;place-items:center;overflow-y:scroll}#page-accueil .storytelling__conteneur{min-height:calc(var(--hauteur-conteneur)*10);padding:0 var(--espace-xl);flex-flow:column;display:flex}#page-accueil .storytelling__image{min-height:var(--hauteur-conteneur);max-height:var(--hauteur-conteneur);align-content:center;width:100%;position:sticky;top:0}#page-accueil .storytelling__image[data-cache]{display:none}#page-accueil .storytelling__image picture{max-height:inherit}#page-accueil .storytelling__image img{max-height:inherit;object-fit:contain;background:0 0;margin:auto;scale:.9} \ No newline at end of file diff --git a/web/app/themes/haiku-atelier-2024/assets/js/.vite/manifest.json b/web/app/themes/haiku-atelier-2024/assets/js/.vite/manifest.json index 5e36cacd..2bd738f5 100644 --- a/web/app/themes/haiku-atelier-2024/assets/js/.vite/manifest.json +++ b/web/app/themes/haiku-atelier-2024/assets/js/.vite/manifest.json @@ -78,11 +78,11 @@ "integrity": "sha512-UTgE1qTfOcV93/yBcHbdmfrJaFq39JGe2IeYu+8f91Hj4aXw5/S4ViRUsfU/sWbNmMzo1Nx2tXwj/Wd1DNjFJA==" }, "web/app/themes/haiku-atelier-2024/src/scripts/constantes/products.ts": { - "file": "products3.js", + "file": "products4.js", "name": "products", "src": "web/app/themes/haiku-atelier-2024/src/scripts/constantes/products.ts", "isEntry": true, - "integrity": "sha512-ZQHIqQG9eBlO68bhlmJX/HuHkYeRg7y6SQcHEs6ijMiUMLalP14YWpr7dR/0xdpNS78Tr+8KwsVmlQhFhM4fmQ==" + "integrity": "sha512-0YDHl/gLOMxEE3k95d5UzyP197P09IRCI/kaPx7Pk7OQxxjEOwfodbmnpRGWdL+9EFrzyxX50v+ujjPvkdlw8Q==" }, "web/app/themes/haiku-atelier-2024/src/scripts/gaffe.ts": { "file": "gaffe.js", @@ -266,7 +266,7 @@ "integrity": "sha512-d5BqLjOVxD16IC9giX23B3vd7JRTV6cMSqr76obIAuqa0Va45U7AwLmKJeQ9yJZfW2DRl7oqYy0fGKUNVMm6/w==" }, "web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/products.ts": { - "file": "products4.js", + "file": "products2.js", "name": "products", "src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/products.ts", "isEntry": true, @@ -274,10 +274,10 @@ "_index.DFL3aKZD.js", "web/app/themes/haiku-atelier-2024/src/scripts/constantes/products.ts" ], - "integrity": "sha512-M/BCBxUtQ9p84BNS5jqHwUt4qAReZzADO9taevJureeX/asRd0twaEW7nEtzCzddSHtP9rDWiESCc1DH7B8fFQ==" + "integrity": "sha512-92BUtYpsKuujQK/Sc7Eus2kNhCWGUH43ZYZGxeBkNEH/WQaJODpcIP6X0XVvjhDTG9hAYYPU7F77bM28dMCNXQ==" }, "web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/v3/products.ts": { - "file": "products2.js", + "file": "products3.js", "name": "products", "src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/v3/products.ts", "isEntry": true, @@ -285,7 +285,7 @@ "_index.DFL3aKZD.js", "web/app/themes/haiku-atelier-2024/src/scripts/constantes/products.ts" ], - "integrity": "sha512-Db0jvGkzWJJIxrJzD29UBseaFyWPPqcBshhi4A6Us4Wqm33yorW1+NzICNZpFIk7f/Xq2b1mJAOEuifKit4pPA==" + "integrity": "sha512-iUM4XNwUpvOGkupsMoUOgEb3Gr1cHQ5z2icK7wtuhXdBosHNNbuaQl5U3z52wl3aT6tdx25y3+uOnl6T1z4tUg==" }, "web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/messages.ts": { "file": "messages2.js", @@ -402,7 +402,7 @@ "_pipe.CtTFdEz3.js", "_Either.DDEPhGsy.js" ], - "integrity": "sha512-bdW2YSfn0ZNMuGZhKoYJrcMaYspSkjexpUBxb1j+mCqQUy/LCfgTfV9GQwpZBqqTa/mSNE2yiPMn+KgL3IR48w==" + "integrity": "sha512-oqVl/WxNMuxu9rIE+lrfbw5vZoMCA+tOnPOgkDkBwjAqqBO3S11TdHpxYCgBHWn5hmbIGNipPvUk/qN5G3nZSw==" }, "web/app/themes/haiku-atelier-2024/src/scripts/scripts-page-boutique.ts": { "file": "scripts-page-boutique.js", @@ -429,7 +429,7 @@ "web/app/themes/haiku-atelier-2024/src/scripts/constantes/products.ts", "_belt_Option-91f3b350.aHdMVyeC.js" ], - "integrity": "sha512-L2uLqB44hTDuNEQr8qzVz8Qa9HHMTZTrxQMuw+DkI7CekmOBrfCzCXGznLBBmsMT65I1oIooP2W/z+vyFs2tow==" + "integrity": "sha512-2nNl1ZLDXUE4YY49T/EPmbxwAfnvpej+cJLi84MUazooMe+9NmEfsOYMHU3fNNF9pbjlsy4CJrZM6XHC00ZTBA==" }, "web/app/themes/haiku-atelier-2024/src/scripts/scripts-page-panier.ts": { "file": "scripts-page-panier.js", diff --git a/web/app/themes/haiku-atelier-2024/assets/js/products2.js b/web/app/themes/haiku-atelier-2024/assets/js/products2.js index fcfc67cd..fbafce88 100644 --- a/web/app/themes/haiku-atelier-2024/assets/js/products2.js +++ b/web/app/themes/haiku-atelier-2024/assets/js/products2.js @@ -1 +1 @@ -import{o as d,c as e,e as _,a as s,m as l,n as t,l as T,b as o,s as a,d as r,f as n,i,g as c,h,u}from"./index.DFL3aKZD.js";import{A as b,C as m,a as f,P as A,D as C,O as E,b as P,R,c as p,S as g,T as O,d as S,B as V,e as k}from"./products3.js";const N=d({after:e(a()),attribute:e(a()),attribute_relation:e(_(b)),attribute_term:e(a()),attributes:e(o(u())),before:e(a()),catalog_visibility:e(_(m)),category:e(a()),category_operator:e(_(f)),context:e(_(A)),date_column:e(_(C)),dates_are_gmt:e(r()),exclude:e(o(s(t(),i()))),exclude_meta:e(o(a())),featured:e(r()),include:e(o(s(t(),i()))),include_meta:e(o(a())),max_price:e(a()),min_price:e(a()),modified_after:e(a()),modified_before:e(a()),offset:e(s(t(),i())),on_sale:e(r()),order:e(_(E)),orderby:e(_(P)),page:e(s(t(),l(1))),parent:e(o(s(t(),i()))),parent_exclude:e(o(s(t(),i()))),per_page:e(s(t(),l(0),T(100))),rating:e(o(_(R))),search:e(a()),search_sku:e(a()),shipping_class:e(a()),sku:e(a()),slug:e(a()),status:e(_(p)),stock_status:e(o(_(g))),tag:e(a()),tag_operator:e(_(O)),type:e(_(S))}),w=d({file:a(),id:a(),name:a()}),x=d({height:a(),length:a(),width:a()}),y=d({id:s(t(),i()),name:a(),slug:a()}),D=d({id:s(t(),i()),name:a(),slug:a()}),W=d({alt:a(),date_created:a(),date_created_gmt:a(),date_modified:a(),date_modified_gmt:a(),id:s(t(),i()),name:a(),src:a(),tag:a()}),U=d({id:s(t(),i()),name:a(),options:o(a()),position:s(t(),i()),variation:r(),visible:r()}),v=d({id:s(t(),i()),name:a(),option:a()}),I=d({id:s(t(),i()),key:a(),option:u()}),L=d({attributes:o(U),average_rating:a(),backordered:r(),backorders:_(V),backorders_allowed:r(),button_text:a(),catalog_visibility:_(m),categories:o(y),cross_sell_ids:o(s(t(),i())),date_created:a(),date_created_gmt:a(),date_modified:a(),date_modified_gmt:a(),date_on_sale_from:n([a(),c()]),date_on_sale_from_gmt:n([a(),c()]),date_on_sale_to:n([a(),c()]),date_on_sale_to_gmt:n([a(),c()]),default_attributes:o(v),description:a(),dimensions:x,download_expiry:t(),download_limit:t(),downloadable:r(),downloads:o(w),external_url:a(),featured:r(),generated_slug:e(a()),global_unique_id:a(),grouped_products:o(s(t(),i())),has_options:r(),id:s(t(),i()),image_survol:n([a(),c()]),images:o(W),low_stock_amount:n([t(),c()]),manage_stock:r(),menu_order:s(t(),i()),meta_data:o(I),name:a(),on_sale:r(),parent_id:s(t(),i()),permalink:s(a(),h()),permalink_template:e(a()),post_password:a(),price:a(),price_html:a(),purchasable:r(),purchase_note:a(),rating_count:s(t(),i()),regular_price:a(),related_ids:o(s(t(),i())),reviews_allowed:r(),sale_price:a(),shipping_class:a(),shipping_class_id:s(t(),i()),shipping_required:r(),shipping_taxable:r(),short_description:a(),sku:a(),slug:a(),sold_individually:r(),status:_(p),stock_quantity:n([t(),c()]),stock_status:_(g),tags:o(D),tax_class:a(),tax_status:_(k),total_sales:s(t(),i()),type:_(S),upsell_ids:o(s(t(),i())),variations:o(s(t(),i())),virtual:r(),weight:a()}),q=o(L);export{N as W,q as a}; +import{o as t,c as e,s as a,e as i,a as o,m as u,n as r,l,b as s,u as _,d as n,f as p,g as m,i as c}from"./index.DFL3aKZD.js";import{A as d,C as g,a as T,P as S,D as b,O as y,b as E,R as A,S as O,T as R,c as f}from"./products4.js";t({after:e(e(a())),attribute_relation:e(i(d)),attributes:e(s(_())),before:e(a()),catalog_visibility:e(i(g)),category:e(a()),category_operator:e(i(T)),context:e(i(S)),date_column:e(i(b)),exclude:e(s(o(r(),c()))),featured:e(n()),include:e(s(o(r(),c()))),max_price:e(a()),min_price:e(a()),offset:e(r()),on_sale:e(n()),order:e(i(y)),orderby:e(i(E)),page:e(o(r(),u(1))),parent:e(s(o(r(),c()))),parent_exclude:e(s(o(r(),c()))),per_page:e(o(r(),u(0),l(100))),rating:e(s(i(A))),search:e(a()),sku:e(a()),slug:e(a()),stock_status:e(s(i(O))),tag:e(a()),tag_operator:e(i(R)),type:e(i(f))});t({add_to_cart:t({description:a(),maximum:r(),minimum:r(),multiple_of:r(),text:a(),url:a()}),attributes:s(_()),average_rating:a(),categories:s(t({id:r(),link:a(),name:a(),slug:a()})),description:a(),extensions:_(),has_options:n(),id:r(),images:s(t({alt:a(),id:r(),name:a(),sizes:a(),src:a(),srcset:a(),thumbnail:a()})),is_in_stock:n(),is_on_backorder:n(),is_purchasable:n(),low_stock_remaining:p([a(),m()]),name:a(),on_sale:n(),parent:r(),permalink:a(),price_html:a(),prices:t({currency_code:a(),currency_decimal_separator:a(),currency_minor_unit:r(),currency_prefix:a(),currency_suffix:a(),currency_symbol:a(),currency_thousand_separator:a(),price:a(),price_range:e(_()),regular_price:a(),sale_price:a()}),review_count:r(),short_description:a(),sku:a(),slug:a(),sold_individually:n(),tags:s(a()),type:a(),variation:_(),variations:s(t({attributes:s(t({name:a(),value:a()})),id:r()}))}); diff --git a/web/app/themes/haiku-atelier-2024/assets/js/products3.js b/web/app/themes/haiku-atelier-2024/assets/js/products3.js index 75e0a515..a8e5bcb9 100644 --- a/web/app/themes/haiku-atelier-2024/assets/js/products3.js +++ b/web/app/themes/haiku-atelier-2024/assets/js/products3.js @@ -1 +1 @@ -const T={EDIT:"edit",VIEW:"view"},E={DATE:"date",DATE_GMT:"date_gmt",MODIFIED:"modified",MODIFIED_GMT:"modified_gmt"},n={ASC:"asc",DESC:"desc"},A={COMMENT_COUNT:"comment_count",DATE:"date",ID:"id",INCLUDE:"include",MENU_ORDER:"menu_order",MODIFIED:"modified",POPULARITY:"popularity",PRICE:"price",RATING:"rating",SLUG:"slug",TITLE:"title"},s={EXTERNAL:"external",GROUPED:"grouped",SIMPLE:"simple",VARIABLE:"variable"},t={AND:"and",IN:"in",NOT_IN:"not_in"},I={AND:"and",IN:"in",NOT_IN:"not_in"},a={IN_STOCK:"instock",ON_BACK_ORDER:"onbackorder",OUT_OF_STOCK:"outofstock"},O={AND:"and",IN:"in"},S={ANY:"any",CATALOG:"catalog",HIDDEN:"hidden",SEARCH:"search",VISIBLE:"visible"},o={1:1,2:2,3:3,4:4,5:5},N={ANY:"any",DRAFT:"draft",FUTURE:"future",PENDING:"pending",PRIVATE:"private",PUBLISH:"publish",TRASH:"trash"},R={NONE:"none",SHIPPING:"shipping",TAXABLE:"taxable"},e={NO:"no",NOTIFY:"notify",YES:"yes"};export{O as A,e as B,S as C,E as D,n as O,T as P,o as R,a as S,I as T,t as a,A as b,N as c,s as d,R as e}; +import{o as d,c as e,e as _,a as s,m as l,n as t,l as T,b as o,s as a,d as r,f as n,i,g as c,h,u}from"./index.DFL3aKZD.js";import{A as b,C as m,a as f,P as A,D as C,O as E,b as P,R,d as p,S as g,T as O,c as S,B as V,e as k}from"./products4.js";const N=d({after:e(a()),attribute:e(a()),attribute_relation:e(_(b)),attribute_term:e(a()),attributes:e(o(u())),before:e(a()),catalog_visibility:e(_(m)),category:e(a()),category_operator:e(_(f)),context:e(_(A)),date_column:e(_(C)),dates_are_gmt:e(r()),exclude:e(o(s(t(),i()))),exclude_meta:e(o(a())),featured:e(r()),include:e(o(s(t(),i()))),include_meta:e(o(a())),max_price:e(a()),min_price:e(a()),modified_after:e(a()),modified_before:e(a()),offset:e(s(t(),i())),on_sale:e(r()),order:e(_(E)),orderby:e(_(P)),page:e(s(t(),l(1))),parent:e(o(s(t(),i()))),parent_exclude:e(o(s(t(),i()))),per_page:e(s(t(),l(0),T(100))),rating:e(o(_(R))),search:e(a()),search_sku:e(a()),shipping_class:e(a()),sku:e(a()),slug:e(a()),status:e(_(p)),stock_status:e(o(_(g))),tag:e(a()),tag_operator:e(_(O)),type:e(_(S))}),w=d({file:a(),id:a(),name:a()}),x=d({height:a(),length:a(),width:a()}),y=d({id:s(t(),i()),name:a(),slug:a()}),D=d({id:s(t(),i()),name:a(),slug:a()}),W=d({alt:a(),date_created:a(),date_created_gmt:a(),date_modified:a(),date_modified_gmt:a(),id:s(t(),i()),name:a(),src:a(),tag:a()}),U=d({id:s(t(),i()),name:a(),options:o(a()),position:s(t(),i()),variation:r(),visible:r()}),v=d({id:s(t(),i()),name:a(),option:a()}),I=d({id:s(t(),i()),key:a(),option:u()}),L=d({attributes:o(U),average_rating:a(),backordered:r(),backorders:_(V),backorders_allowed:r(),button_text:a(),catalog_visibility:_(m),categories:o(y),cross_sell_ids:o(s(t(),i())),date_created:a(),date_created_gmt:a(),date_modified:a(),date_modified_gmt:a(),date_on_sale_from:n([a(),c()]),date_on_sale_from_gmt:n([a(),c()]),date_on_sale_to:n([a(),c()]),date_on_sale_to_gmt:n([a(),c()]),default_attributes:o(v),description:a(),dimensions:x,download_expiry:t(),download_limit:t(),downloadable:r(),downloads:o(w),external_url:a(),featured:r(),generated_slug:e(a()),global_unique_id:a(),grouped_products:o(s(t(),i())),has_options:r(),id:s(t(),i()),image_survol:n([a(),c()]),images:o(W),low_stock_amount:n([t(),c()]),manage_stock:r(),menu_order:s(t(),i()),meta_data:o(I),name:a(),on_sale:r(),parent_id:s(t(),i()),permalink:s(a(),h()),permalink_template:e(a()),post_password:a(),price:a(),price_html:a(),purchasable:r(),purchase_note:a(),rating_count:s(t(),i()),regular_price:a(),related_ids:o(s(t(),i())),reviews_allowed:r(),sale_price:a(),shipping_class:a(),shipping_class_id:s(t(),i()),shipping_required:r(),shipping_taxable:r(),short_description:a(),sku:a(),slug:a(),sold_individually:r(),status:_(p),stock_quantity:n([t(),c()]),stock_status:_(g),tags:o(D),tax_class:a(),tax_status:_(k),total_sales:s(t(),i()),type:_(S),upsell_ids:o(s(t(),i())),variations:o(s(t(),i())),virtual:r(),weight:a()}),q=o(L);export{N as W,q as a}; diff --git a/web/app/themes/haiku-atelier-2024/assets/js/products4.js b/web/app/themes/haiku-atelier-2024/assets/js/products4.js index 2eeb732f..0db72a93 100644 --- a/web/app/themes/haiku-atelier-2024/assets/js/products4.js +++ b/web/app/themes/haiku-atelier-2024/assets/js/products4.js @@ -1 +1 @@ -import{o as t,c as e,s as a,e as i,a as o,m as u,n as r,l,b as s,u as _,d as n,f as p,g as m,i as c}from"./index.DFL3aKZD.js";import{A as d,C as g,a as T,P as S,D as b,O as y,b as E,R as A,S as O,T as R,d as f}from"./products3.js";t({after:e(e(a())),attribute_relation:e(i(d)),attributes:e(s(_())),before:e(a()),catalog_visibility:e(i(g)),category:e(a()),category_operator:e(i(T)),context:e(i(S)),date_column:e(i(b)),exclude:e(s(o(r(),c()))),featured:e(n()),include:e(s(o(r(),c()))),max_price:e(a()),min_price:e(a()),offset:e(r()),on_sale:e(n()),order:e(i(y)),orderby:e(i(E)),page:e(o(r(),u(1))),parent:e(s(o(r(),c()))),parent_exclude:e(s(o(r(),c()))),per_page:e(o(r(),u(0),l(100))),rating:e(s(i(A))),search:e(a()),sku:e(a()),slug:e(a()),stock_status:e(s(i(O))),tag:e(a()),tag_operator:e(i(R)),type:e(i(f))});t({add_to_cart:t({description:a(),maximum:r(),minimum:r(),multiple_of:r(),text:a(),url:a()}),attributes:s(_()),average_rating:a(),categories:s(t({id:r(),link:a(),name:a(),slug:a()})),description:a(),extensions:_(),has_options:n(),id:r(),images:s(t({alt:a(),id:r(),name:a(),sizes:a(),src:a(),srcset:a(),thumbnail:a()})),is_in_stock:n(),is_on_backorder:n(),is_purchasable:n(),low_stock_remaining:p([a(),m()]),name:a(),on_sale:n(),parent:r(),permalink:a(),price_html:a(),prices:t({currency_code:a(),currency_decimal_separator:a(),currency_minor_unit:r(),currency_prefix:a(),currency_suffix:a(),currency_symbol:a(),currency_thousand_separator:a(),price:a(),price_range:e(_()),regular_price:a(),sale_price:a()}),review_count:r(),short_description:a(),sku:a(),slug:a(),sold_individually:n(),tags:s(a()),type:a(),variation:_(),variations:s(t({attributes:s(t({name:a(),value:a()})),id:r()}))}); +const T={EDIT:"edit",VIEW:"view"},E={DATE:"date",DATE_GMT:"date_gmt",MODIFIED:"modified",MODIFIED_GMT:"modified_gmt"},n={ASC:"asc",DESC:"desc"},A={COMMENT_COUNT:"comment_count",DATE:"date",ID:"id",INCLUDE:"include",MENU_ORDER:"menu_order",MODIFIED:"modified",POPULARITY:"popularity",PRICE:"price",RATING:"rating",SLUG:"slug",TITLE:"title"},s={EXTERNAL:"external",GROUPED:"grouped",SIMPLE:"simple",VARIABLE:"variable"},t={AND:"and",IN:"in",NOT_IN:"not_in"},I={AND:"and",IN:"in",NOT_IN:"not_in"},a={IN_STOCK:"instock",ON_BACK_ORDER:"onbackorder",OUT_OF_STOCK:"outofstock"},O={AND:"and",IN:"in"},S={ANY:"any",CATALOG:"catalog",HIDDEN:"hidden",SEARCH:"search",VISIBLE:"visible"},o={1:1,2:2,3:3,4:4,5:5},N={ANY:"any",DRAFT:"draft",FUTURE:"future",PENDING:"pending",PRIVATE:"private",PUBLISH:"publish",TRASH:"trash"},R={NONE:"none",SHIPPING:"shipping",TAXABLE:"taxable"},e={NO:"no",NOTIFY:"notify",YES:"yes"};export{O as A,e as B,S as C,E as D,n as O,T as P,o as R,a as S,I as T,t as a,A as b,s as c,N as d,R as e}; diff --git a/web/app/themes/haiku-atelier-2024/assets/js/scripts-page-accueil.js b/web/app/themes/haiku-atelier-2024/assets/js/scripts-page-accueil.js index 2c64b61c..2e8b99ef 100644 --- a/web/app/themes/haiku-atelier-2024/assets/js/scripts-page-accueil.js +++ b/web/app/themes/haiku-atelier-2024/assets/js/scripts-page-accueil.js @@ -1 +1 @@ -import{a as T,b as g,c as L,d as I}from"./dom.js";import{e as u}from"./nombres.js";import{a as l,b as p}from"./utils.js";import"./dom2.js";import"./erreurs.js";import"./exports.BOrjxC8q.js";import"./pipe.CtTFdEz3.js";import"./Either.DDEPhGsy.js";const R=()=>{const s=l(T),r=l(".storytelling__conteneur"),n=p(g),o=n.at(0)?.getBoundingClientRect().height??0;let i=0;const E=(t,e)=>{t.toggleAttribute(L,e),t.toggleAttribute(I,e)};r.style.minHeight=`${String(o*n.length+1)}px`,r.style.maxHeight=`${String(o*n.length+1)}px`;const m=()=>{i=s.scrollTop,console.time(),n.forEach((t,e)=>{const c=o*(e-1),a=o*e;u(i,c,a)?E(t,!1):E(t,!0)}),console.timeEnd()};s.addEventListener("scroll",()=>m())};document.addEventListener("DOMContentLoaded",()=>{R()}); +import{a as T,b as g,c as L,d as I}from"./dom.js";import{e as u}from"./nombres.js";import{a as l,b as p}from"./utils.js";import"./dom2.js";import"./erreurs.js";import"./exports.BOrjxC8q.js";import"./pipe.CtTFdEz3.js";import"./Either.DDEPhGsy.js";const R=()=>{const s=l(T),r=l(".storytelling__conteneur"),n=p(g),o=n.at(0)?.getBoundingClientRect().height??0;let i=0;const E=(t,e)=>{t.toggleAttribute(L,e),t.toggleAttribute(I,e)};r.style.minHeight=`${String(o*n.length)}px`,r.style.maxHeight=`${String(o*n.length)}px`;const m=()=>{i=s.scrollTop,console.time(),n.forEach((t,e)=>{const c=o*(e-1),a=o*e;u(i,c,a)?E(t,!1):E(t,!0)}),console.timeEnd()};s.addEventListener("scroll",()=>m())};document.addEventListener("DOMContentLoaded",()=>{R()}); diff --git a/web/app/themes/haiku-atelier-2024/assets/js/scripts-page-boutique.js b/web/app/themes/haiku-atelier-2024/assets/js/scripts-page-boutique.js index 926ec427..26dd3977 100644 --- a/web/app/themes/haiku-atelier-2024/assets/js/scripts-page-boutique.js +++ b/web/app/themes/haiku-atelier-2024/assets/js/scripts-page-boutique.js @@ -1,4 +1,4 @@ -import{z as _,N as g}from"./index.CuMLbxmh.js";import{p as d}from"./index.DFL3aKZD.js";import{R as f}from"./api.js";import{e as E,f as T,g as h,h as s,i as S}from"./dom.js";import{h as R}from"./dom2.js";import{l as P}from"./erreurs.js";import{e as U}from"./gardes.js";import{g as L,t as A}from"./reseau.js";import{W as O,a as D}from"./products2.js";import{a as m}from"./utils.js";import{E as I}from"./MaybeAsync.BkJailCK.js";import{p as C}from"./pipe.CtTFdEz3.js";import{t as v}from"./index-0eef19ec._7_ubBTi.js";import{E as b}from"./Either.DDEPhGsy.js";import"./exports.BOrjxC8q.js";import"./erreurs2.js";import"./products3.js";import"./belt_Option-91f3b350.aHdMVyeC.js";const p=_etats,i=m(E),n=m(T),B=()=>{const o=i.getAttribute(h);n.addEventListener("click",()=>{const a=Number(i.getAttribute(s))+1,c={page:a,per_page:13,...o&&{category:o}};b.encase(()=>d(O,c)).map(async u=>{await I(()=>L({authString:p.authString,nonce:p.nonce,route:f,searchParams:new URLSearchParams(u).toString()})).map(t=>(console.debug("réponse",t),U(t)&&P("500 Server Error"),t.json())).map(t=>A(t,D)).ifRight(t=>{t.length<12&&n.toggleAttribute(S);const r=document.createDocumentFragment();console.debug(t);for(const e of t.slice(0,12))C(R` +import{z as _,N as g}from"./index.CuMLbxmh.js";import{p as d}from"./index.DFL3aKZD.js";import{R as f}from"./api.js";import{e as E,f as T,g as h,h as s,i as S}from"./dom.js";import{h as R}from"./dom2.js";import{l as P}from"./erreurs.js";import{e as U}from"./gardes.js";import{g as L,t as A}from"./reseau.js";import{W as O,a as D}from"./products3.js";import{a as m}from"./utils.js";import{E as I}from"./MaybeAsync.BkJailCK.js";import{p as C}from"./pipe.CtTFdEz3.js";import{t as v}from"./index-0eef19ec._7_ubBTi.js";import{E as b}from"./Either.DDEPhGsy.js";import"./exports.BOrjxC8q.js";import"./erreurs2.js";import"./products4.js";import"./belt_Option-91f3b350.aHdMVyeC.js";const p=_etats,i=m(E),n=m(T),B=()=>{const o=i.getAttribute(h);n.addEventListener("click",()=>{const a=Number(i.getAttribute(s))+1,c={page:a,per_page:13,...o&&{category:o}};b.encase(()=>d(O,c)).map(async u=>{await I(()=>L({authString:p.authString,nonce:p.nonce,route:f,searchParams:new URLSearchParams(u).toString()})).map(t=>(console.debug("réponse",t),U(t)&&P("500 Server Error"),t.json())).map(t=>A(t,D)).ifRight(t=>{t.length<12&&n.toggleAttribute(S);const r=document.createDocumentFragment();console.debug(t);for(const e of t.slice(0,12))C(R`
diff --git a/web/app/themes/haiku-atelier-2024/src/sass/pages/page-accueil.scss b/web/app/themes/haiku-atelier-2024/src/sass/pages/page-accueil.scss index f649cd26..30e30edf 100644 --- a/web/app/themes/haiku-atelier-2024/src/sass/pages/page-accueil.scss +++ b/web/app/themes/haiku-atelier-2024/src/sass/pages/page-accueil.scss @@ -15,7 +15,7 @@ margin-top: var(--page-marges-bloc-debut); .storytelling { - scrollbar-width: none; + // scrollbar-width: thin; overflow-y: scroll; place-items: center; min-height: inherit; diff --git a/web/app/themes/haiku-atelier-2024/src/scripts/scripts-page-accueil.ts b/web/app/themes/haiku-atelier-2024/src/scripts/scripts-page-accueil.ts index 289aeaf4..c34d2d88 100644 --- a/web/app/themes/haiku-atelier-2024/src/scripts/scripts-page-accueil.ts +++ b/web/app/themes/haiku-atelier-2024/src/scripts/scripts-page-accueil.ts @@ -27,8 +27,8 @@ const initialiseScrollStorytelling = (): void => { image.toggleAttribute(ATTRIBUT_ARIA_HIDDEN, visible); }; - CONTENEUR_STORYTELLING.style.minHeight = `${String(HAUTEUR_IMAGE * IMAGES_STORYTELLING.length + 1)}px`; - CONTENEUR_STORYTELLING.style.maxHeight = `${String(HAUTEUR_IMAGE * IMAGES_STORYTELLING.length + 1)}px`; + CONTENEUR_STORYTELLING.style.minHeight = `${String(HAUTEUR_IMAGE * IMAGES_STORYTELLING.length)}px`; + CONTENEUR_STORYTELLING.style.maxHeight = `${String(HAUTEUR_IMAGE * IMAGES_STORYTELLING.length)}px`; const majImages = (): void => { // Met à jour la position du défilement dans le Conteneur