@lancom/shared 0.0.108 → 0.0.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/checkout/cart/cart.mixin.js +8 -2
- package/components/checkout/cart/cart_entity/cart_entity_color_simple_products/cart_entity_color_simple_product/cart-entity-color-simple-product.vue +1 -1
- package/components/product/product_reviews/product-reviews.scss +0 -4
- package/components/product/product_reviews/product_review/product-review.scss +4 -1
- package/components/the_navbar/the-navbar.scss +5 -0
- package/components/the_navbar/the-navbar.vue +1 -2
- package/nuxt.config.js +4 -1
- package/package.json +1 -1
- package/store/product.js +1 -1
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { mapGetters, mapActions, mapMutations } from 'vuex';
|
|
2
2
|
import confirmModal from '@lancom/shared/mixins/confirm';
|
|
3
|
+
import debounce from 'lodash.debounce';
|
|
3
4
|
|
|
4
5
|
export default {
|
|
5
6
|
mixins: [
|
|
6
7
|
confirmModal
|
|
7
8
|
],
|
|
9
|
+
data() {
|
|
10
|
+
return {
|
|
11
|
+
calculateCartPriceWithDebounce: debounce(this.calculateCartPrice, 300)
|
|
12
|
+
};
|
|
13
|
+
},
|
|
8
14
|
computed: {
|
|
9
15
|
...mapGetters(['shop']),
|
|
10
16
|
...mapGetters('auth', ['user']),
|
|
@@ -29,11 +35,11 @@ export default {
|
|
|
29
35
|
},
|
|
30
36
|
watch: {
|
|
31
37
|
entities() {
|
|
32
|
-
this.
|
|
38
|
+
this.calculateCartPriceWithDebounce({ shop: this.shop });
|
|
33
39
|
}
|
|
34
40
|
},
|
|
35
41
|
mounted() {
|
|
36
|
-
this.
|
|
42
|
+
this.calculateCartPriceWithDebounce({ shop: this.shop });
|
|
37
43
|
if (!this.suburb && this.user?.suburb) {
|
|
38
44
|
this.handleSuburbChange(this.user.suburb);
|
|
39
45
|
}
|
|
@@ -82,7 +82,7 @@ export default {
|
|
|
82
82
|
const message = `Maximum value: ${this.simpleProduct.quantityStock}`;
|
|
83
83
|
this.showConfirmationModal(message);
|
|
84
84
|
}
|
|
85
|
-
this.
|
|
85
|
+
this.setSimpleProductAmount({
|
|
86
86
|
guid: this.simpleProduct.guid,
|
|
87
87
|
amount: this.formatAmount(value),
|
|
88
88
|
shop: this.shop
|
|
@@ -20,11 +20,7 @@
|
|
|
20
20
|
display: none !important;
|
|
21
21
|
}
|
|
22
22
|
::v-deep .slick-list {
|
|
23
|
-
padding: 10px 71px 20px 71px;
|
|
24
23
|
min-height: 205px;
|
|
25
|
-
@media (max-width: $bp-extra-small-max) {
|
|
26
|
-
padding: 10px 51px 20px 51px;
|
|
27
|
-
}
|
|
28
24
|
}
|
|
29
25
|
::v-deep .slick-arrow.slick-prev,
|
|
30
26
|
::v-deep .slick-arrow.slick-next {
|
|
@@ -20,6 +20,10 @@
|
|
|
20
20
|
height: $mobile_navbar_height + $mobile_notification_bar_height;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
+
p {
|
|
24
|
+
margin: 0 !important;
|
|
25
|
+
padding: 0 !important;
|
|
26
|
+
}
|
|
23
27
|
}
|
|
24
28
|
&__notification {
|
|
25
29
|
background-color: $black;
|
|
@@ -30,6 +34,7 @@
|
|
|
30
34
|
&-close {
|
|
31
35
|
position: absolute;
|
|
32
36
|
right: 20px;
|
|
37
|
+
top: 10px;
|
|
33
38
|
cursor: pointer;
|
|
34
39
|
color: $black;
|
|
35
40
|
}
|
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
v-if="notificationBar.enabled"
|
|
10
10
|
class="TheNavbar__notification lc_regular12"
|
|
11
11
|
:style="{
|
|
12
|
-
'background-color': notificationBar.backgroundColor
|
|
13
|
-
color: notificationBar.textColor
|
|
12
|
+
'background-color': notificationBar.backgroundColor
|
|
14
13
|
}">
|
|
15
14
|
<span v-html="notificationBar.text"></span>
|
|
16
15
|
<span
|
package/nuxt.config.js
CHANGED
|
@@ -99,8 +99,11 @@ module.exports = (config, axios) => ({
|
|
|
99
99
|
const catalogFrontImages = (product.images || []).filter(i => (i.types || []).includes('catalog_front')).map(i => i.image);
|
|
100
100
|
const image = spliceFirstImage(feedImages) || spliceFirstImage(frontImages) || spliceFirstImage(catalogFrontImages) || spliceFirstImage(backImages) || {};
|
|
101
101
|
const images = getImages(backImages) || getImages(frontImages) || [];
|
|
102
|
+
const title = product.feedTitle
|
|
103
|
+
? product.feedTitle.replace('{colour}', sp.color.name).replace('{size}', sp.size.name).replace('{brand}', product.brand.name)
|
|
104
|
+
: `${product.name} ${sp.color.name}`;
|
|
102
105
|
const info = {
|
|
103
|
-
title: { _text:
|
|
106
|
+
title: { _text: title },
|
|
104
107
|
description: { _text: product.description || product.fabricInfoShort || product.name },
|
|
105
108
|
link: { _text: `https://${config.HOST_NAME}/${product.brand.alias}/${product.productType.alias}/${product.alias}?color=${sp.color.alias}` },
|
|
106
109
|
'g:id': { _text: sp.SKU },
|
package/package.json
CHANGED
package/store/product.js
CHANGED
|
@@ -138,7 +138,7 @@ export const actions = {
|
|
|
138
138
|
const [first] = (product.printAreas || []);
|
|
139
139
|
if (first) {
|
|
140
140
|
commit('setEditablePrintArea', first);
|
|
141
|
-
commit('setSelectedPrintArea', { printArea: first._id, size: first.printSize
|
|
141
|
+
commit('setSelectedPrintArea', { printArea: first._id, size: first.printSize });
|
|
142
142
|
}
|
|
143
143
|
} catch (e) {
|
|
144
144
|
const { status, data } = e?.response || {};
|