@lancom/shared 0.0.110 → 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.
@@ -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 {
@@ -2,7 +2,10 @@
2
2
 
3
3
  .ProductReview {
4
4
  &__wrapper {
5
- margin-top: 14px;
5
+ padding: 25px 71px 20px 71px;
6
+ @media (max-width: $bp-extra-small-max) {
7
+ padding: 15px 51px 10px 51px;
8
+ }
6
9
  }
7
10
  &__mark {
8
11
  margin-top: 10px;
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: `${product.name} ${sp.color.name}` },
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.110",
3
+ "version": "0.0.111",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {
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.alias });
141
+ commit('setSelectedPrintArea', { printArea: first._id, size: first.printSize });
142
142
  }
143
143
  } catch (e) {
144
144
  const { status, data } = e?.response || {};