@lancom/shared 0.0.202 → 0.0.203

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.
@@ -58,8 +58,8 @@ export default {
58
58
  getCanonicalProductProducts(id) {
59
59
  return _get(`admin/canonical-product/${id}/products`);
60
60
  },
61
- fetchShops() {
62
- return _get('admin/shops');
61
+ fetchShops(params) {
62
+ return _get('admin/shops', params);
63
63
  },
64
64
  fetchShopById(id) {
65
65
  return _get(`admin/shops/${id}`);
@@ -389,9 +389,6 @@ export default {
389
389
  async fetchCurrencies(params) {
390
390
  return sortByName(await _get('admin/currencies', params));
391
391
  },
392
- async fetchCountries(params) {
393
- return sortByName(await _get('admin/countries', params));
394
- },
395
392
  fetchCountryById(id) {
396
393
  return _get(`admin/countries/${id}`);
397
394
  },
@@ -98,7 +98,7 @@ export const staticLink = link => {
98
98
  }
99
99
  return link;
100
100
  } else {
101
- return `${STATIC_URL}${link}`;
101
+ return `${STATIC_URL || ''}${link}`;
102
102
  };
103
103
  }
104
104
 
@@ -103,6 +103,7 @@ export default {
103
103
  };
104
104
  },
105
105
  computed: {
106
+ ...mapGetters(['country', 'currency']),
106
107
  ...mapGetters(['orderSettings']),
107
108
  ...mapGetters('order', ['card']),
108
109
  ...mapGetters('cart', ['entities', 'notEmptySimpleProducts', 'cartPricing'])
@@ -158,7 +159,9 @@ export default {
158
159
  ...this.order,
159
160
  products: this.entities,
160
161
  pricing: this.cartPricing,
161
- shop: this.shop._id
162
+ shop: this.shop._id,
163
+ currency: this.currency?._id,
164
+ country: this.country?._id
162
165
  });
163
166
  } else {
164
167
  const data = {
@@ -74,6 +74,7 @@ export default {
74
74
  };
75
75
  },
76
76
  computed: {
77
+ ...mapGetters(['country','currency']),
77
78
  ...mapGetters('cart', ['entities', 'notEmptySimpleProducts', 'cartPricing']),
78
79
  isPaymentOrder() {
79
80
  return this.order.paymentMethod === ORDER_PAYMENT_METHOD.CARD;
@@ -95,7 +96,9 @@ export default {
95
96
  ...this.order,
96
97
  products: this.entities,
97
98
  pricing: this.cartPricing,
98
- shop: this.shop._id
99
+ shop: this.shop._id,
100
+ currency: this.currency?._id,
101
+ country: this.country?._id
99
102
  });
100
103
  } else {
101
104
  const data = {
@@ -4,8 +4,8 @@
4
4
  class="EditorPrintAreaOption__content"
5
5
  :class="{ selected }"
6
6
  @click="handleClick"
7
- @mouseover="!(option.suboptions && option.suboptions.length) && $emit('option-mouseover', option)"
8
- @mouseleave="!(option.suboptions && option.suboptions.length) && $emit('option-mouseleave', option)">
7
+ @mouseover="$emit('option-mouseover', option)"
8
+ @mouseleave="$emit('option-mouseleave', option)">
9
9
  <div class="lc_caption">
10
10
  {{ option.label }}
11
11
  </div>
@@ -91,7 +91,7 @@
91
91
  <editor-print-area-options
92
92
  v-if="productDetailsLoaded"
93
93
  :product="product"
94
- :selected="selectedPrintArea"
94
+ :selected="selectedPrintArea._id"
95
95
  :side="editableSide.id"
96
96
  @select="selectPrintArea"
97
97
  @option-mouseover="toogleBoundBox(true, $event)"
@@ -89,7 +89,7 @@ export default {
89
89
  type: Object
90
90
  },
91
91
  printAreaSize: {
92
- type: String,
92
+ type: Object,
93
93
  required: true
94
94
  },
95
95
  zoomSize: {
@@ -150,7 +150,7 @@ export default {
150
150
  );
151
151
  },
152
152
  printAreaIsSmall() {
153
- return this.printAreaSize === 'rect10';
153
+ return this.printAreaSize.alias === 'rect10';
154
154
  },
155
155
  backgroundColor() {
156
156
  return this.backgroundImageLoaded && this.editableColor?.rgb;
package/nuxt.config.js CHANGED
@@ -81,7 +81,8 @@ module.exports = (config, axios, { raygunClient } = {}) => ({
81
81
  PROD_CDN_URL: process.env.PROD_CDN_URL,
82
82
  DEV_CDN_URL: process.env.DEV_CDN_URL,
83
83
  PROD_S3_BUCKET: process.env.PROD_S3_BUCKET,
84
- DEV_S3_BUCKET: process.env.DEV_S3_BUCKET
84
+ DEV_S3_BUCKET: process.env.DEV_S3_BUCKET,
85
+ STATIC_URL: process.env.STATIC_URL
85
86
  },
86
87
  build: {
87
88
  publicPath: '/client/',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.202",
3
+ "version": "0.0.203",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {