@hulkapps/app-manager-vue 2.2.3 → 2.2.4
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.
|
@@ -23012,6 +23012,14 @@ var script$R = {
|
|
|
23012
23012
|
methods: {
|
|
23013
23013
|
dismissBanner(key) {
|
|
23014
23014
|
this.staticContent[this.banner_type].splice(key, 1);
|
|
23015
|
+
},
|
|
23016
|
+
|
|
23017
|
+
date_compare(published_on) {
|
|
23018
|
+
var published_on_obj = published_on.split('/');
|
|
23019
|
+
var now = new Date();
|
|
23020
|
+
var compareDate = new Date(published_on_obj[2] + '/' + published_on_obj[0] + '/' + published_on_obj[1]);
|
|
23021
|
+
var isShow = now.getTime() >= compareDate.getTime();
|
|
23022
|
+
return isShow;
|
|
23015
23023
|
}
|
|
23016
23024
|
|
|
23017
23025
|
},
|
|
@@ -23048,7 +23056,7 @@ var __vue_render__$P = function () {
|
|
|
23048
23056
|
var _c = _vm._self._c || _h;
|
|
23049
23057
|
|
|
23050
23058
|
return _vm.mappedStaticContentHeaders && _vm.mappedStaticContentHeaders.length ? _c('PLayoutSection', _vm._l(_vm.mappedStaticContentHeaders, function (header, key) {
|
|
23051
|
-
return _c('PBanner', {
|
|
23059
|
+
return _vm.date_compare(header.published_on) && (header.expired_on == null || !_vm.date_compare(header.expired_on)) ? _c('PBanner', {
|
|
23052
23060
|
key: key,
|
|
23053
23061
|
attrs: {
|
|
23054
23062
|
"id": "static-content-header-" + key,
|
|
@@ -23064,7 +23072,7 @@ var __vue_render__$P = function () {
|
|
|
23064
23072
|
domProps: {
|
|
23065
23073
|
"innerHTML": _vm._s(header.content)
|
|
23066
23074
|
}
|
|
23067
|
-
})]);
|
|
23075
|
+
})]) : _vm._e();
|
|
23068
23076
|
}), 1) : _vm._e();
|
|
23069
23077
|
};
|
|
23070
23078
|
|
|
@@ -23074,7 +23082,7 @@ var __vue_staticRenderFns__$P = [];
|
|
|
23074
23082
|
const __vue_inject_styles__$R = undefined;
|
|
23075
23083
|
/* scoped */
|
|
23076
23084
|
|
|
23077
|
-
const __vue_scope_id__$R = "data-v-
|
|
23085
|
+
const __vue_scope_id__$R = "data-v-f6317514";
|
|
23078
23086
|
/* module identifier */
|
|
23079
23087
|
|
|
23080
23088
|
const __vue_module_identifier__$R = undefined;
|