@lancom/shared 0.0.424 → 0.0.427
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/js/api/admin.js +7 -33
- package/assets/js/api/index.js +3 -17
- package/components/common/coupon_select/coupon-select.vue +2 -12
- package/components/common/phone_input/phone-input.vue +3 -15
- package/components/common/postcode_select/postcode-select.vue +1 -3
- package/components/customer/customer.vue +2 -2
- package/components/customer/customer_navigation_menu/customer-navigation-menu.vue +7 -11
- package/components/editor/editor_layers/editor-layers.vue +13 -1
- package/components/editor/editor_layers/editor_layers_layer/editor-layers-layer.scss +20 -2
- package/components/editor/editor_layers/editor_layers_layer/editor-layers-layer.vue +22 -4
- package/components/editor/editor_workspace/editor_workspace_side/editor-workspace-side.vue +7 -19
- package/components/pages/customer/sign_in/sign-in.vue +2 -2
- package/components/product/editor_pricing/editor-pricing.vue +16 -10
- package/components/product/product.vue +12 -0
- package/components/product/product_reviews/product-reviews.vue +6 -6
- package/components/product/related_products/related-products.vue +4 -4
- package/package.json +1 -1
- package/routes/index.js +0 -10
- package/store/auth.js +0 -1
- package/store/index.js +3 -12
- package/store/product.js +37 -1
- package/assets/js/utils/share-promises/index.js +0 -76
- package/components/customer/customer_preferences_form/customer-preferences-form.scss +0 -12
- package/components/customer/customer_preferences_form/customer-preferences-form.vue +0 -87
- package/components/pages/customer/preferences/preferences.vue +0 -79
- package/components/resource/resource_view/resource-view.mixin.js +0 -74
- package/components/resource/resource_view/resource-view.scss +0 -13
- package/components/resource/resource_view/resource-view.vue +0 -97
- package/components/resource/resource_view/resource_view_prints/resource-view-prints.scss +0 -7
- package/components/resource/resource_view/resource_view_prints/resource-view-prints.vue +0 -42
- package/components/resource/resource_view/resource_view_prints/resource_view_print/resource-view-print.scss +0 -5
- package/components/resource/resource_view/resource_view_prints/resource_view_print/resource-view-print.vue +0 -54
- package/components/resource/resource_view/resource_view_prints/resource_view_print/resource_view_print_products/resource-view-print-products.scss +0 -0
- package/components/resource/resource_view/resource_view_prints/resource_view_print/resource_view_print_products/resource-view-print-products.vue +0 -45
- package/components/resource/resource_view/resource_view_prints/resource_view_print/resource_view_print_products/resource_view_print_product/resource-view-print-product.scss +0 -0
- package/components/resource/resource_view/resource_view_prints/resource_view_print/resource_view_print_products/resource_view_print_product/resource-view-print-product.vue +0 -44
- package/pages/customer/preferences.vue +0 -33
- package/pages/order/_token/resource/_resource.vue +0 -53
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="ResourceViewPrintProducts__wrapper">
|
|
3
|
-
<resource-view-print-product
|
|
4
|
-
v-for="(product, index) in products"
|
|
5
|
-
:key="product.guid || index"
|
|
6
|
-
:order="order"
|
|
7
|
-
:resource="resource"
|
|
8
|
-
:print="print"
|
|
9
|
-
:product="product" />
|
|
10
|
-
</div>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<script>
|
|
14
|
-
import ResourceViewPrintProduct from './resource_view_print_product/resource-view-print-product';
|
|
15
|
-
|
|
16
|
-
export default {
|
|
17
|
-
name: 'LancomResourceViewPrintProducts',
|
|
18
|
-
components: {
|
|
19
|
-
ResourceViewPrintProduct
|
|
20
|
-
},
|
|
21
|
-
props: {
|
|
22
|
-
order: {
|
|
23
|
-
type: Object,
|
|
24
|
-
required: true
|
|
25
|
-
},
|
|
26
|
-
resource: {
|
|
27
|
-
type: Object,
|
|
28
|
-
required: true
|
|
29
|
-
},
|
|
30
|
-
print: {
|
|
31
|
-
type: Object,
|
|
32
|
-
required: true
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
computed: {
|
|
36
|
-
products() {
|
|
37
|
-
return this.order.products;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
</script>
|
|
42
|
-
|
|
43
|
-
<style lang="scss" scoped>
|
|
44
|
-
@import 'resource-view-print-products.scss';
|
|
45
|
-
</style>
|
|
File without changes
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="ResourceViewPrintProduct__wrapper">
|
|
3
|
-
<div
|
|
4
|
-
v-for="simpleProduct in simpleProducts"
|
|
5
|
-
:key="simpleProduct.guid"
|
|
6
|
-
class="lc_regular14">
|
|
7
|
-
{{ simpleProduct.SKU }} x {{ simpleProduct.amount }}
|
|
8
|
-
</div>
|
|
9
|
-
</div>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script>
|
|
13
|
-
export default {
|
|
14
|
-
name: 'LancomResourceViewPrintProduct',
|
|
15
|
-
props: {
|
|
16
|
-
order: {
|
|
17
|
-
type: Object,
|
|
18
|
-
required: true
|
|
19
|
-
},
|
|
20
|
-
resource: {
|
|
21
|
-
type: Object,
|
|
22
|
-
required: true
|
|
23
|
-
},
|
|
24
|
-
print: {
|
|
25
|
-
type: Object,
|
|
26
|
-
required: true
|
|
27
|
-
},
|
|
28
|
-
product: {
|
|
29
|
-
type: Object,
|
|
30
|
-
required: true
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
computed: {
|
|
34
|
-
simpleProducts() {
|
|
35
|
-
const simpleProducts = this.product.simpleProducts || [];
|
|
36
|
-
return simpleProducts.filter(sp => sp.amount > 0);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
</script>
|
|
41
|
-
|
|
42
|
-
<style lang="scss" scoped>
|
|
43
|
-
@import 'resource-view-print-product.scss';
|
|
44
|
-
</style>
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
:data-aos="aosFadeLeft"
|
|
4
|
-
class="CustomerPreferencesPage__wrapper">
|
|
5
|
-
<customer-preferences />
|
|
6
|
-
</div>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<script>
|
|
10
|
-
import metaInfo from '@lancom/shared/mixins/meta-info';
|
|
11
|
-
|
|
12
|
-
export default {
|
|
13
|
-
name: 'CustomerPreferencesPage',
|
|
14
|
-
components: {
|
|
15
|
-
CustomerPreferences: () => import('@lancom/shared/components/pages/customer/preferences/preferences')
|
|
16
|
-
},
|
|
17
|
-
mixins: [metaInfo]
|
|
18
|
-
};
|
|
19
|
-
</script>
|
|
20
|
-
|
|
21
|
-
<style lang="scss" scoped>
|
|
22
|
-
@import "@/assets/scss/variables";
|
|
23
|
-
|
|
24
|
-
.CustomerPreferencesPage {
|
|
25
|
-
&__wrapper {
|
|
26
|
-
margin: 100px auto;
|
|
27
|
-
width: 500px;
|
|
28
|
-
@media (max-width: $bp-extra-small-max) {
|
|
29
|
-
width: auto;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
</style>
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="ResourceViewPage__wrapper">
|
|
3
|
-
<div :class="isFullScreen ? '' : 'content-inner'">
|
|
4
|
-
<resource-view
|
|
5
|
-
:order="order"
|
|
6
|
-
:resource="resource"
|
|
7
|
-
:responsive="!isFullScreen" />
|
|
8
|
-
</div>
|
|
9
|
-
</div>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script>
|
|
13
|
-
import metaInfo from '@lancom/shared/mixins/meta-info';
|
|
14
|
-
import api from '@lancom/shared/assets/js/api';
|
|
15
|
-
|
|
16
|
-
export default {
|
|
17
|
-
name: 'OrderResourceViewPage',
|
|
18
|
-
components: {
|
|
19
|
-
ResourceView: () => import('@lancom/shared/components/resource/resource_view/resource-view')
|
|
20
|
-
},
|
|
21
|
-
mixins: [metaInfo],
|
|
22
|
-
async asyncData({ params, error }) {
|
|
23
|
-
try {
|
|
24
|
-
const order = await api.fetchOrderByToken(params.token, { invoiceProducts: true });
|
|
25
|
-
const resource = order.resources.find(i => [i._id, i.guid].includes(params.resource));
|
|
26
|
-
if (!resource) {
|
|
27
|
-
return error({
|
|
28
|
-
statusCode: 404,
|
|
29
|
-
error: 'Resource not found'
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
return { order, resource };
|
|
33
|
-
} catch (e) {
|
|
34
|
-
const { status, data } = e?.response || {};
|
|
35
|
-
const statusCode = status || 500;
|
|
36
|
-
error({
|
|
37
|
-
statusCode,
|
|
38
|
-
error: data?.error || 'Resource not found'
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
data() {
|
|
43
|
-
return {
|
|
44
|
-
order: null,
|
|
45
|
-
invoice: null,
|
|
46
|
-
isFullScreen: this.$route.query.print
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
</script>
|
|
51
|
-
|
|
52
|
-
<style lang="scss">
|
|
53
|
-
</style>
|