From e4bc529e2f2125c40b2528fb0286b995e823c4c6 Mon Sep 17 00:00:00 2001 From: bach Date: Fri, 11 Jun 2021 11:53:31 +0200 Subject: [PATCH] fixed add to cart text translation --- .../assets/dist/module-pricing.bundle.js | 2 +- .../assets/dist/module-pricing.bundle.js.gz | Bin 999 -> 998 bytes .../custom/materiotheme/assets/dist/report.html | 4 ++-- .../vuejs/components/Content/Product.vue | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/themes/custom/materiotheme/assets/dist/module-pricing.bundle.js b/web/themes/custom/materiotheme/assets/dist/module-pricing.bundle.js index b6ea2594..9b8e8122 100644 --- a/web/themes/custom/materiotheme/assets/dist/module-pricing.bundle.js +++ b/web/themes/custom/materiotheme/assets/dist/module-pricing.bundle.js @@ -1 +1 @@ -(self.webpackChunkmaterio_com=self.webpackChunkmaterio_com||[]).push([[665],{1003:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>v});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"pricing"}},[t.products.length?t._l(t.products,(function(t){return s("Product",{key:t.uuid,attrs:{product:t}})})):s("div",{staticClass:"loading"},[s("span",[t._v(t._s(t.$t("default.Loading…")))])])],2)};o._withStripped=!0;var r=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("article",{staticClass:"product"},[s("header",[s("h1",{domProps:{innerHTML:t._s(t.product.title)}})]),t._v(" "),s("section",{staticClass:"content"},[s("div",{staticClass:"description",domProps:{innerHTML:t._s(t.product.body)}})]),t._v(" "),t.isAdherent?t._e():s("aside",[t._l(t.product.variations,(function(e){return s("div",{key:e.id,staticClass:"variation"},[s("div",{staticClass:"variation-description",domProps:{innerHTML:t._s(e.description)}}),t._v(" "),s("button",{attrs:{type:"button",name:"addtocart"},on:{click:function(s){return s.stopPropagation(),t.checkaddtocart(s,e.id)}}},[t._v("\n "+t._s(t.$t(t.variation_btn_txt[e.id]))+"\n ")])])})),t._v(" "),4==t.product.id?s("div",[s("a",{staticClass:"btn",attrs:{href:"mailto:info@materio.com?subject=Multi-Joueurs"}},[t._v("\n "+t._s(t.$t("default.Ask for a quote"))+"\n ")])]):t._e()],2)])};r._withStripped=!0;var i=s(4408),n=s(1423);const a={name:"Product",router:i.Z,props:["product"],mixins:[n.Z],data:()=>({quantity:1,variation_btn_txt:{3:"Yeees!",4:"Yay!",5:"Great!",6:"OKAY!"}}),created(){this.product}};var c=s(1900),d=(0,c.Z)(a,r,[],!1,null,"0f9e2147",null);d.options.__file="web/themes/custom/materiotheme/vuejs/components/Content/Product.vue";const u=d.exports;var p=s(629);const l={name:"Pricing",computed:{...(0,p.rn)({products:t=>t.Pages.products})},created(){this.products.length||this.getProducts()},methods:{...(0,p.nv)({getProducts:"Pages/getProducts"})},components:{Product:u}};var _=(0,c.Z)(l,o,[],!1,null,"bdd44e2e",null);_.options.__file="web/themes/custom/materiotheme/vuejs/components/Pages/Pricing.vue";const v=_.exports}}]); \ No newline at end of file +(self.webpackChunkmaterio_com=self.webpackChunkmaterio_com||[]).push([[665],{1003:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>v});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"pricing"}},[t.products.length?t._l(t.products,(function(t){return s("Product",{key:t.uuid,attrs:{product:t}})})):s("div",{staticClass:"loading"},[s("span",[t._v(t._s(t.$t("default.Loading…")))])])],2)};o._withStripped=!0;var r=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("article",{staticClass:"product"},[s("header",[s("h1",{domProps:{innerHTML:t._s(t.product.title)}})]),t._v(" "),s("section",{staticClass:"content"},[s("div",{staticClass:"description",domProps:{innerHTML:t._s(t.product.body)}})]),t._v(" "),t.isAdherent?t._e():s("aside",[t._l(t.product.variations,(function(e){return s("div",{key:e.id,staticClass:"variation"},[s("div",{staticClass:"variation-description",domProps:{innerHTML:t._s(e.description)}}),t._v(" "),s("button",{attrs:{type:"button",name:"addtocart"},on:{click:function(s){return s.stopPropagation(),t.checkaddtocart(s,e.id)}}},[t._v("\n "+t._s(t.$t("default."+t.variation_btn_txt[e.id]))+"\n ")])])})),t._v(" "),4==t.product.id?s("div",[s("a",{staticClass:"btn",attrs:{href:"mailto:info@materio.com?subject=Multi-Joueurs"}},[t._v("\n "+t._s(t.$t("default.Ask for a quote"))+"\n ")])]):t._e()],2)])};r._withStripped=!0;var i=s(4408),n=s(1423);const a={name:"Product",router:i.Z,props:["product"],mixins:[n.Z],data:()=>({quantity:1,variation_btn_txt:{3:"Yeees!",4:"Yay!",5:"Great!",6:"OKAY!"}}),created(){this.product}};var c=s(1900),d=(0,c.Z)(a,r,[],!1,null,"0f9e2147",null);d.options.__file="web/themes/custom/materiotheme/vuejs/components/Content/Product.vue";const u=d.exports;var p=s(629);const l={name:"Pricing",computed:{...(0,p.rn)({products:t=>t.Pages.products})},created(){this.products.length||this.getProducts()},methods:{...(0,p.nv)({getProducts:"Pages/getProducts"})},components:{Product:u}};var _=(0,c.Z)(l,o,[],!1,null,"bdd44e2e",null);_.options.__file="web/themes/custom/materiotheme/vuejs/components/Pages/Pricing.vue";const v=_.exports}}]); \ No newline at end of file diff --git a/web/themes/custom/materiotheme/assets/dist/module-pricing.bundle.js.gz b/web/themes/custom/materiotheme/assets/dist/module-pricing.bundle.js.gz index 6465784b05ec08f4a109452abbdc63a015c83bac..93afb80fa3e446705a2a0edf954f9022cdfc2da5 100644 GIT binary patch delta 978 zcmV;@11jkj#xn$3ypCAQq$*Nw3|YXQW)HR}+0}<-=c7Y_%?1qm zisU`#+;gu22kDZ3g+(Ug)pb&s)mnPUwT)uC4*%`pZa14#o)s<$X0!A2w{upGN24P3M2HWi(2WPd)e;j%EX*VY8ItOGvu ziFOP^&tJtkVCo-JScCD*VJK?AMe%M2(;R$}n}G|6(i_4`>3!}*sg)oZrq||ymV5g|8}FQ7U>6&P%W3 z>r^@?NNS~OV1KX~Zg812q{b6%f|?2byz+RiRfT_OH~;7baT#N#=XMbM+U}4qvNq*0@yHW|{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fzKHd1H73T>A5yKaba9AcNgSbRVq#_zE2^sAq20fqDA-&pjWdga%HrF8>2 z_*mEgaJ`7}Bw)N^~kh2Bi7nI`CnZ=7LR;l%R8v_SK1hF!^;;BZ^O2Yg~Txi#3n zet6xEjN#3`T?-(cd_}A{+~?K>-vG=J;Q8srUft}VZu^>G^|h$45+&yxDdgN48ttdN z7a@KV_>H`Sp1Q}m{{>a{@0s1MiQYlzAWZrQ&uk#9tn!CUW{a7QHX*D!(eNllnq)n7 zQFaeR(N!SnbK006$p B=-dDR diff --git a/web/themes/custom/materiotheme/assets/dist/report.html b/web/themes/custom/materiotheme/assets/dist/report.html index 1687724c..93e1baa8 100644 --- a/web/themes/custom/materiotheme/assets/dist/report.html +++ b/web/themes/custom/materiotheme/assets/dist/report.html @@ -3,7 +3,7 @@ - materio.com [11 Jun 2021 at 09:47] + materio.com [11 Jun 2021 at 09:53] diff --git a/web/themes/custom/materiotheme/vuejs/components/Content/Product.vue b/web/themes/custom/materiotheme/vuejs/components/Content/Product.vue index f85891fd..b030e3fc 100644 --- a/web/themes/custom/materiotheme/vuejs/components/Content/Product.vue +++ b/web/themes/custom/materiotheme/vuejs/components/Content/Product.vue @@ -18,7 +18,7 @@ name="addtocart" @click.stop="checkaddtocart($event, variation.id)" > - {{ $t(variation_btn_txt[variation.id]) }} + {{ $t('default.'+variation_btn_txt[variation.id]) }}