@lancom/shared 0.0.248 → 0.0.251
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/assets/scss/ui_kit/_forms.scss +2 -2
- package/assets/scss/ui_kit/_tooltip.scss +1 -3
- package/assets/scss/variables/_theme.scss +3 -3
- package/components/common/payment/payment_card/pinpayment/pinpayment.vue +5 -34
- package/components/editor/editor.vue +2 -8
- package/components/editor/editor_product_details/editor-product-details.scss +0 -6
- package/components/editor/editor_product_details/editor-product-details.vue +2 -12
- package/components/faq/faq.vue +2 -2
- package/components/products/products_autocomplete/products-autocomplete.scss +12 -10
- package/mixins/meta-info.js +1 -4
- package/package.json +1 -1
- package/plugins/cache-headers.js +6 -0
- package/store/product.js +0 -1
|
@@ -177,7 +177,7 @@ html[dir=rtl] .form-icon-left {
|
|
|
177
177
|
height: 50px;
|
|
178
178
|
border-width: 1px;
|
|
179
179
|
border-style: solid;
|
|
180
|
-
border-color:
|
|
180
|
+
border-color: #EFF1F2;
|
|
181
181
|
border-radius: 5px;
|
|
182
182
|
font-style: normal;
|
|
183
183
|
font-weight: normal;
|
|
@@ -424,7 +424,7 @@ html[dir=rtl] .textarea {
|
|
|
424
424
|
}
|
|
425
425
|
&__tags {
|
|
426
426
|
min-height: 50px;
|
|
427
|
-
border: 1px solid
|
|
427
|
+
border: 1px solid #e5e5e5;
|
|
428
428
|
border-radius: 8px !important;
|
|
429
429
|
padding: 19px 3px 4px 20px;
|
|
430
430
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@import "@/assets/scss/variables";
|
|
2
|
-
|
|
3
1
|
.tooltip {
|
|
4
2
|
display: block !important;
|
|
5
3
|
z-index: 10000;
|
|
@@ -27,7 +25,7 @@
|
|
|
27
25
|
&.white &-inner {
|
|
28
26
|
background: #FFF !important;
|
|
29
27
|
color: #575872 !important;
|
|
30
|
-
border: 1px solid
|
|
28
|
+
border: 1px solid #EFF1F2 !important;
|
|
31
29
|
}
|
|
32
30
|
&.white &-arrow {
|
|
33
31
|
border-color: #FFF !important;
|
|
@@ -15,7 +15,7 @@ $white_high_emphasis: #FFFFFF;
|
|
|
15
15
|
$white_medium_emphasis: rgba(255, 255, 255, .66);
|
|
16
16
|
$gray: #575872 !default;
|
|
17
17
|
$medium_gray: #B0B0BA !default;
|
|
18
|
-
$light_gray: #F9F9FC;
|
|
18
|
+
$light_gray: #F9F9FC !default;
|
|
19
19
|
$link: #5D89A9;
|
|
20
20
|
$error: #E44868;
|
|
21
21
|
$secondary_900: #20303C;
|
|
@@ -52,8 +52,8 @@ $black: #343750 !default;
|
|
|
52
52
|
$gray_main: #616277 !default;
|
|
53
53
|
$grey_1: #616277 !default;
|
|
54
54
|
$grey_2: #B0B0BA !default;
|
|
55
|
-
$grey_3: #EFF1F2;
|
|
56
|
-
$grey_4: #F9F9FC;
|
|
55
|
+
$grey_3: #EFF1F2 !default;
|
|
56
|
+
$grey_4: #F9F9FC !default;
|
|
57
57
|
$grey_5: #9898A5 !default;
|
|
58
58
|
|
|
59
59
|
$white: #fff;
|
|
@@ -86,8 +86,6 @@
|
|
|
86
86
|
</template>
|
|
87
87
|
|
|
88
88
|
<script>
|
|
89
|
-
let interval = null;
|
|
90
|
-
|
|
91
89
|
export default {
|
|
92
90
|
name: 'Payment',
|
|
93
91
|
props: {
|
|
@@ -110,17 +108,14 @@ export default {
|
|
|
110
108
|
fields: null
|
|
111
109
|
};
|
|
112
110
|
},
|
|
113
|
-
|
|
111
|
+
mounted() {
|
|
114
112
|
this.loading = true;
|
|
115
|
-
|
|
116
|
-
await this.preloadPinpayments();
|
|
117
|
-
|
|
118
113
|
if (window.HostedFields) {
|
|
119
|
-
|
|
114
|
+
this.initHostedPayment();
|
|
120
115
|
} else {
|
|
121
|
-
window.addEventListener('load',
|
|
116
|
+
window.addEventListener('load', () => {
|
|
122
117
|
if (!this.fields) {
|
|
123
|
-
|
|
118
|
+
this.initHostedPayment();
|
|
124
119
|
}
|
|
125
120
|
});
|
|
126
121
|
}
|
|
@@ -199,31 +194,7 @@ export default {
|
|
|
199
194
|
}
|
|
200
195
|
);
|
|
201
196
|
});
|
|
202
|
-
}
|
|
203
|
-
async preloadPinpayments() {
|
|
204
|
-
if (!window.HostedFields) {
|
|
205
|
-
clearInterval(interval);
|
|
206
|
-
await this.loadPinpayments();
|
|
207
|
-
await new Promise((resolve, reject) => {
|
|
208
|
-
interval = setInterval(() => {
|
|
209
|
-
if (window.HostedFields) {
|
|
210
|
-
clearInterval(interval);
|
|
211
|
-
resolve()
|
|
212
|
-
}
|
|
213
|
-
}, 100);
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
loadPinpayments() {
|
|
218
|
-
return new Promise((resolve) => {
|
|
219
|
-
const script = document.createElement('script');
|
|
220
|
-
script.type = "text/javascript";
|
|
221
|
-
script.src = 'https://cdn.pinpayments.com/pin.hosted_fields.v1.js';
|
|
222
|
-
script.onload = () => resolve();
|
|
223
|
-
const body = document.getElementsByTagName('body')[0];
|
|
224
|
-
body.appendChild(script);
|
|
225
|
-
});
|
|
226
|
-
}
|
|
197
|
+
}
|
|
227
198
|
}
|
|
228
199
|
};
|
|
229
200
|
</script>
|
|
@@ -18,9 +18,7 @@
|
|
|
18
18
|
</component>
|
|
19
19
|
</template>
|
|
20
20
|
</tabs>
|
|
21
|
-
<div
|
|
22
|
-
v-if="productAvailableInCurrentCountry"
|
|
23
|
-
class="Editor__footer">
|
|
21
|
+
<div class="Editor__footer">
|
|
24
22
|
<btn
|
|
25
23
|
btn-label="Start again"
|
|
26
24
|
btn-class="white"
|
|
@@ -137,12 +135,8 @@ export default {
|
|
|
137
135
|
...mapGetters('layers', [
|
|
138
136
|
'layerThumbnails'
|
|
139
137
|
]),
|
|
140
|
-
productAvailableInCurrentCountry() {
|
|
141
|
-
const { countries } = this.product;
|
|
142
|
-
return !(countries || []).length || countries.includes(this.country._id);
|
|
143
|
-
},
|
|
144
138
|
addToCartDisabled() {
|
|
145
|
-
return !this.
|
|
139
|
+
return !(this.template.layers.length && this.usedSimpleProducts.length);
|
|
146
140
|
}
|
|
147
141
|
},
|
|
148
142
|
watch: {
|
|
@@ -61,13 +61,8 @@
|
|
|
61
61
|
</div>
|
|
62
62
|
</div>
|
|
63
63
|
</div>
|
|
64
|
-
<div
|
|
65
|
-
v-if="!productAvailableInCurrentCountry"
|
|
66
|
-
class="EditorProductDetails__available-warning">
|
|
67
|
-
Product Not Available in {{ country.name }}
|
|
68
|
-
</div>
|
|
69
64
|
<fragment
|
|
70
|
-
v-if="productDetailsLoaded
|
|
65
|
+
v-if="productDetailsLoaded">
|
|
71
66
|
<div class="EditorProductDetails__section">
|
|
72
67
|
<product-colors-selector />
|
|
73
68
|
</div>
|
|
@@ -117,13 +112,8 @@ export default {
|
|
|
117
112
|
'layerThumbnails'
|
|
118
113
|
]),
|
|
119
114
|
...mapGetters([
|
|
120
|
-
'pricingSettings'
|
|
121
|
-
'country'
|
|
115
|
+
'pricingSettings'
|
|
122
116
|
]),
|
|
123
|
-
productAvailableInCurrentCountry() {
|
|
124
|
-
const { countries } = this.product;
|
|
125
|
-
return !(countries || []).length || countries.includes(this.country._id);
|
|
126
|
-
},
|
|
127
117
|
productLink() {
|
|
128
118
|
return generateProductLink(this.product);
|
|
129
119
|
},
|
package/components/faq/faq.vue
CHANGED
|
@@ -111,7 +111,7 @@ export default {
|
|
|
111
111
|
</script>
|
|
112
112
|
|
|
113
113
|
<style lang="scss">
|
|
114
|
-
@import "
|
|
114
|
+
@import "@lancom/shared/assets/scss/variables";
|
|
115
115
|
$types: delivery, general, other, printing, garments;
|
|
116
116
|
.FAQ {
|
|
117
117
|
&__wrapper {
|
|
@@ -218,7 +218,7 @@ $types: delivery, general, other, printing, garments;
|
|
|
218
218
|
&-body {
|
|
219
219
|
padding: 6px 30px 24px 30px;
|
|
220
220
|
line-height: 27px;
|
|
221
|
-
color: $
|
|
221
|
+
color: $gray;
|
|
222
222
|
overflow: hidden;
|
|
223
223
|
@import "@lancom/shared/assets/scss/normalize";
|
|
224
224
|
}
|
|
@@ -10,21 +10,20 @@
|
|
|
10
10
|
right: 0;
|
|
11
11
|
top: 41px;
|
|
12
12
|
padding: 10px;
|
|
13
|
-
background-color:
|
|
14
|
-
|
|
15
|
-
z-index: 999;
|
|
13
|
+
background-color: $black;
|
|
14
|
+
color: $white;
|
|
16
15
|
}
|
|
17
16
|
&__result-item {
|
|
18
17
|
padding-bottom: 10px;
|
|
19
18
|
margin-bottom: 10px;
|
|
20
|
-
border-bottom: 1px solid $
|
|
19
|
+
border-bottom: 1px solid $gray_main;
|
|
21
20
|
&:last-child {
|
|
22
21
|
border-bottom: none;
|
|
23
22
|
margin-bottom: 0px;
|
|
24
23
|
}
|
|
25
24
|
::v-deep {
|
|
26
25
|
a {
|
|
27
|
-
color: $
|
|
26
|
+
color: $white;
|
|
28
27
|
font-size: 13px;
|
|
29
28
|
text-decoration: none;
|
|
30
29
|
}
|
|
@@ -34,22 +33,24 @@
|
|
|
34
33
|
padding: 10px;
|
|
35
34
|
text-align: center;
|
|
36
35
|
display: block;
|
|
37
|
-
background-color: $
|
|
38
|
-
color: $white !important;
|
|
36
|
+
background-color: $white;
|
|
39
37
|
&:hover {
|
|
40
|
-
background-color: $
|
|
41
|
-
color: $
|
|
38
|
+
background-color: $black;
|
|
39
|
+
color: $white;
|
|
42
40
|
}
|
|
43
41
|
}
|
|
44
42
|
}
|
|
45
43
|
&__input {
|
|
46
44
|
input {
|
|
47
|
-
|
|
45
|
+
background-color: #535353;
|
|
46
|
+
border: none;
|
|
48
47
|
border-radius: 0px;
|
|
48
|
+
color: $white;
|
|
49
49
|
height: 41px;
|
|
50
50
|
position: relative;
|
|
51
51
|
z-index: 1;
|
|
52
52
|
&::placeholder {
|
|
53
|
+
font-weight: 600;
|
|
53
54
|
font-size: 14px;
|
|
54
55
|
color: $grey_3;
|
|
55
56
|
}
|
|
@@ -60,6 +61,7 @@
|
|
|
60
61
|
right: 10px;
|
|
61
62
|
font-size: 17px;
|
|
62
63
|
pointer-events: none;
|
|
64
|
+
color: $white;
|
|
63
65
|
&.icon-search {
|
|
64
66
|
z-index: 2;
|
|
65
67
|
pointer-events: all;
|
package/mixins/meta-info.js
CHANGED
|
@@ -34,10 +34,7 @@ const metaInfo = {
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
head() {
|
|
37
|
-
const hasQueryParams = Object
|
|
38
|
-
.keys(this.$route.query || {})
|
|
39
|
-
.filter(key => !['color', 'store'].includes(`${key || ''}`.toLowerCase()))
|
|
40
|
-
.length > 0;
|
|
37
|
+
const hasQueryParams = Object.keys(this.$route.query || {}).length > 0;
|
|
41
38
|
|
|
42
39
|
const { short_text: shortText, image, meta = {} } = this.routeInfo || {};
|
|
43
40
|
const pageItemMeta = this.pageItem?.meta || {};
|
package/package.json
CHANGED
package/store/product.js
CHANGED
|
@@ -160,7 +160,6 @@ export const actions = {
|
|
|
160
160
|
commit('setSelectedPrintArea', { printArea: first._id, size: first.printSize });
|
|
161
161
|
}
|
|
162
162
|
} catch (e) {
|
|
163
|
-
console.log(e);
|
|
164
163
|
const { status, data } = e?.response || {};
|
|
165
164
|
const statusCode = status || 500;
|
|
166
165
|
commit('setLoadError', {
|