@hulkapps/app-manager-vue 2.0.6 → 2.0.9
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/dist/app-manager-vue.esm.js +50 -19
- package/dist/app-manager-vue.min.js +2 -2
- package/dist/app-manager-vue.ssr.js +58 -27
- package/dist/hulkapps-app-manager.css +1 -1
- package/dist/hulkapps-app-manager.min.css +1 -1
- package/package.json +1 -1
- package/src/components/Marketing/Banners.vue +9 -0
- package/src/components/Plans/AppManagerPlan.vue +2 -2
- package/src/components/Plans/AppManagerSliderPlan.vue +14 -10
- package/src/components/Plans/PlanBanners.vue +9 -0
- package/src/components/Plans/YearlyPlanPromotion.vue +9 -0
|
@@ -23023,6 +23023,15 @@ var script$O = {
|
|
|
23023
23023
|
console.error(error);
|
|
23024
23024
|
});
|
|
23025
23025
|
this.staticContent = data.banners;
|
|
23026
|
+
Object.keys(this.staticContent).map(key => {
|
|
23027
|
+
if (this.staticContent[key].length) {
|
|
23028
|
+
Object.keys(this.staticContent[key]).map(index => {
|
|
23029
|
+
if (this.staticContent[key][index].length) {
|
|
23030
|
+
this.staticContent[key][index] = this.staticContent[key][index][Math.floor(Math.random() * this.staticContent[key][index].length)];
|
|
23031
|
+
}
|
|
23032
|
+
});
|
|
23033
|
+
}
|
|
23034
|
+
});
|
|
23026
23035
|
}
|
|
23027
23036
|
|
|
23028
23037
|
};
|
|
@@ -23065,7 +23074,7 @@ var __vue_staticRenderFns__$M = [];
|
|
|
23065
23074
|
const __vue_inject_styles__$O = undefined;
|
|
23066
23075
|
/* scoped */
|
|
23067
23076
|
|
|
23068
|
-
const __vue_scope_id__$O = "data-v-
|
|
23077
|
+
const __vue_scope_id__$O = "data-v-5bb9ba8a";
|
|
23069
23078
|
/* module identifier */
|
|
23070
23079
|
|
|
23071
23080
|
const __vue_module_identifier__$O = undefined;
|
|
@@ -23113,6 +23122,15 @@ var script$N = {
|
|
|
23113
23122
|
console.error(error);
|
|
23114
23123
|
});
|
|
23115
23124
|
this.staticContent = data.banners;
|
|
23125
|
+
Object.keys(this.staticContent).map(key => {
|
|
23126
|
+
if (this.staticContent[key].length) {
|
|
23127
|
+
Object.keys(this.staticContent[key]).map(index => {
|
|
23128
|
+
if (this.staticContent[key][index].length) {
|
|
23129
|
+
this.staticContent[key][index] = this.staticContent[key][index][Math.floor(Math.random() * this.staticContent[key][index].length)];
|
|
23130
|
+
}
|
|
23131
|
+
});
|
|
23132
|
+
}
|
|
23133
|
+
});
|
|
23116
23134
|
}
|
|
23117
23135
|
|
|
23118
23136
|
};
|
|
@@ -23161,7 +23179,7 @@ var __vue_staticRenderFns__$L = [];
|
|
|
23161
23179
|
const __vue_inject_styles__$N = undefined;
|
|
23162
23180
|
/* scoped */
|
|
23163
23181
|
|
|
23164
|
-
const __vue_scope_id__$N = "data-v-
|
|
23182
|
+
const __vue_scope_id__$N = "data-v-ac88498c";
|
|
23165
23183
|
/* module identifier */
|
|
23166
23184
|
|
|
23167
23185
|
const __vue_module_identifier__$N = undefined;
|
|
@@ -23208,6 +23226,15 @@ var script$M = {
|
|
|
23208
23226
|
console.error(error);
|
|
23209
23227
|
});
|
|
23210
23228
|
this.staticContent = data.banners;
|
|
23229
|
+
Object.keys(this.staticContent).map(key => {
|
|
23230
|
+
if (this.staticContent[key].length) {
|
|
23231
|
+
Object.keys(this.staticContent[key]).map(index => {
|
|
23232
|
+
if (this.staticContent[key][index].length) {
|
|
23233
|
+
this.staticContent[key][index] = this.staticContent[key][index][Math.floor(Math.random() * this.staticContent[key][index].length)];
|
|
23234
|
+
}
|
|
23235
|
+
});
|
|
23236
|
+
}
|
|
23237
|
+
});
|
|
23211
23238
|
}
|
|
23212
23239
|
|
|
23213
23240
|
};
|
|
@@ -23251,7 +23278,7 @@ var __vue_staticRenderFns__$K = [];
|
|
|
23251
23278
|
const __vue_inject_styles__$M = undefined;
|
|
23252
23279
|
/* scoped */
|
|
23253
23280
|
|
|
23254
|
-
const __vue_scope_id__$M = "data-v-
|
|
23281
|
+
const __vue_scope_id__$M = "data-v-6baa003e";
|
|
23255
23282
|
/* module identifier */
|
|
23256
23283
|
|
|
23257
23284
|
const __vue_module_identifier__$M = undefined;
|
|
@@ -41981,7 +42008,7 @@ var script$1 = {
|
|
|
41981
42008
|
|
|
41982
42009
|
calculateDiscountedPrice(plan) {
|
|
41983
42010
|
if (plan.discount_type === 'percentage') {
|
|
41984
|
-
return plan.price - plan.price
|
|
42011
|
+
return plan.price - plan.price * plan.discount / 100;
|
|
41985
42012
|
} else if (plan.discount_type === 'amount') {
|
|
41986
42013
|
return plan.price - plan.discount;
|
|
41987
42014
|
}
|
|
@@ -42076,13 +42103,17 @@ var script$1 = {
|
|
|
42076
42103
|
},
|
|
42077
42104
|
|
|
42078
42105
|
created() {
|
|
42079
|
-
|
|
42106
|
+
let initializeSliderComponent = setInterval(() => {
|
|
42080
42107
|
let element = document.querySelector('.slide-0');
|
|
42081
|
-
|
|
42082
|
-
|
|
42083
|
-
|
|
42084
|
-
|
|
42085
|
-
|
|
42108
|
+
|
|
42109
|
+
if (element) {
|
|
42110
|
+
element.classList.add('first-slide');
|
|
42111
|
+
element = document.querySelector('.slide-3');
|
|
42112
|
+
element.classList.add('last-slide');
|
|
42113
|
+
document.querySelector('.VueCarousel-navigation-button.VueCarousel-navigation-prev').style.left = -document.querySelector('.Polaris-ResourceList__ResourceListWrapper.features').offsetWidth + 'px';
|
|
42114
|
+
clearInterval(initializeSliderComponent);
|
|
42115
|
+
}
|
|
42116
|
+
}, 100);
|
|
42086
42117
|
}
|
|
42087
42118
|
|
|
42088
42119
|
};
|
|
@@ -42254,12 +42285,12 @@ var __vue_render__$1 = function () {
|
|
|
42254
42285
|
"margin-top": "5px",
|
|
42255
42286
|
"font-size": "17px"
|
|
42256
42287
|
}
|
|
42257
|
-
}, [_vm._v("/" + _vm._s(_vm.selectedPlan === 'monthly' ? "mo" : "year"))])], 1)])]), _vm._v(" "), _c('div', [
|
|
42288
|
+
}, [_vm._v("/" + _vm._s(_vm.selectedPlan === 'monthly' ? "mo" : "year"))])], 1)])]), _vm._v(" "), _c('div', [_c('ul', [_vm._l(_vm.features, function (feature, key) {
|
|
42258
42289
|
return _c('li', {
|
|
42259
42290
|
key: key,
|
|
42260
42291
|
class: _vm.activePlanClass(plan),
|
|
42261
42292
|
style: _vm.activePlanStyle(plan)
|
|
42262
|
-
}, [_c('div', [plan.features[feature.uuid] ? [plan.features[feature.uuid].value_type === 'boolean' ? [parseInt(plan.features[feature.uuid].value) === 1 ? _c('PIcon', {
|
|
42293
|
+
}, [_c('div', [plan.features && plan.features[feature.uuid] ? [plan.features[feature.uuid].value_type === 'boolean' ? [parseInt(plan.features[feature.uuid].value) === 1 ? _c('PIcon', {
|
|
42263
42294
|
attrs: {
|
|
42264
42295
|
"color": "success",
|
|
42265
42296
|
"source": "TickMinor"
|
|
@@ -42302,8 +42333,8 @@ var __vue_render__$1 = function () {
|
|
|
42302
42333
|
"full-width": "",
|
|
42303
42334
|
"pressed": true
|
|
42304
42335
|
}
|
|
42305
|
-
}, [_vm._v("\n " + _vm._s('Not applicable') + "\n ")])], 1)], 2)
|
|
42306
|
-
})], 2)]], 2)], 1), _vm._v(" "), _vm.onboard && !_vm.shop.has_plan ? _c('PStack', {
|
|
42336
|
+
}, [_vm._v("\n " + _vm._s('Not applicable') + "\n ")])], 1)], 2)])]);
|
|
42337
|
+
})], 2)]], 2), _vm._v(" "), _c('PlanBanners')], 1), _vm._v(" "), _vm.onboard && !_vm.shop.has_plan ? _c('PStack', {
|
|
42307
42338
|
staticClass: "choose-plan-btn",
|
|
42308
42339
|
attrs: {
|
|
42309
42340
|
"alignment": "center",
|
|
@@ -42329,7 +42360,7 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
42329
42360
|
|
|
42330
42361
|
const __vue_inject_styles__$1 = function (inject) {
|
|
42331
42362
|
if (!inject) return;
|
|
42332
|
-
inject("data-v-
|
|
42363
|
+
inject("data-v-9f706e68_0", {
|
|
42333
42364
|
source: "@import url(https://fonts.googleapis.com/css2?family=Satisfy&display=swap);.app-manager .app-manager-plan-page ul{list-style:none;margin:0;padding:0}.app-manager .app-manager-plan-page .Polaris-Layout__Section .VueCarousel-slide li,.app-manager .app-manager-plan-page .Polaris-ResourceList__ResourceListWrapper.features li,.app-manager .app-manager-plan-page .plan__price{padding:16px 16px 16px 20px}.app-manager .app-manager-plan-page .Polaris-Layout.custom-plan .VueCarousel .plan__price,.app-manager .app-manager-plan-page .Polaris-Layout__Section .VueCarousel-slide li:not(:last-child),.app-manager .app-manager-plan-page .Polaris-ResourceList__ResourceListWrapper.features li{border-top:1px solid #ddd;border-right:1px solid #ddd;background:#fff}.app-manager .app-manager-plan-page .Polaris-ResourceList__ResourceListWrapper.features li{border-right:none;border-left:1px solid #ddd}.app-manager .app-manager-plan-page .plan__price{min-height:121px}.app-manager .app-manager-plan-page .Polaris-Layout__Section .VueCarousel-slide li:nth-last-child(2),.app-manager .app-manager-plan-page .Polaris-ResourceList__ResourceListWrapper.features li:last-child{border-bottom:1px solid #ddd}.app-manager .app-manager-plan-page .Polaris-ResourceList__ResourceListWrapper.features li:first-child{border-top-left-radius:12px}.app-manager .app-manager-plan-page .Polaris-ResourceList__ResourceListWrapper.features li:last-child{border-bottom-left-radius:12px}.app-manager .app-manager-plan-page .VueCarousel-inner .VueCarousel-slide.first-slide ul li:not(:last-child){border-left:1px solid #ddd}.app-manager .app-manager-plan-page .VueCarousel-inner .VueCarousel-slide.first-slide .plan__price{border-left:1px solid #ddd;box-shadow:none;border-top-left-radius:12px;overflow:hidden}.app-manager .app-manager-plan-page .VueCarousel-inner .VueCarousel-slide.last-slide ul li:nth-last-child(2){border-bottom-right-radius:12px}.app-manager .app-manager-plan-page .VueCarousel-inner .VueCarousel-slide.last-slide .plan__price{border-right:1px solid #ddd;box-shadow:none;border-top-right-radius:12px;overflow:hidden}.app-manager .app-manager-plan-page .VueCarousel-inner .VueCarousel-slide.last-slide{border-top-right-radius:12px}.app-manager .app-manager-plan-page .VueCarousel-inner .VueCarousel-slide.first-slide{border-top-left-radius:12px}.app-manager .app-manager-plan-page .VueCarousel .VueCarousel-inner li{text-align:center}.app-manager .app-manager-plan-page .VueCarousel-navigation-button{color:#257f60}",
|
|
42334
42365
|
map: undefined,
|
|
42335
42366
|
media: undefined
|
|
@@ -42385,15 +42416,15 @@ var __vue_render__ = function () {
|
|
|
42385
42416
|
|
|
42386
42417
|
var _c = _vm._self._c || _h;
|
|
42387
42418
|
|
|
42388
|
-
return _vm.group_plan ? _c('AppManagerGroupPlan', {
|
|
42419
|
+
return _vm.group_plan ? _c('AppManagerGroupPlan', _vm._g({
|
|
42389
42420
|
attrs: {
|
|
42390
42421
|
"shop_domain": _vm.shop_domain
|
|
42391
42422
|
}
|
|
42392
|
-
}) : _c('AppManagerSliderPlan', {
|
|
42423
|
+
}, _vm.$listeners)) : _c('AppManagerSliderPlan', _vm._g({
|
|
42393
42424
|
attrs: {
|
|
42394
42425
|
"shop_domain": _vm.shop_domain
|
|
42395
42426
|
}
|
|
42396
|
-
});
|
|
42427
|
+
}, _vm.$listeners));
|
|
42397
42428
|
};
|
|
42398
42429
|
|
|
42399
42430
|
var __vue_staticRenderFns__ = [];
|
|
@@ -42402,7 +42433,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
42402
42433
|
const __vue_inject_styles__ = undefined;
|
|
42403
42434
|
/* scoped */
|
|
42404
42435
|
|
|
42405
|
-
const __vue_scope_id__ = "data-v-
|
|
42436
|
+
const __vue_scope_id__ = "data-v-592e37e8";
|
|
42406
42437
|
/* module identifier */
|
|
42407
42438
|
|
|
42408
42439
|
const __vue_module_identifier__ = undefined;
|