@nethserver/ns8-ui-lib 0.0.50 → 0.0.54
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/ns8-ui-lib.esm.js +102 -38
- package/dist/ns8-ui-lib.min.js +1 -1
- package/dist/ns8-ui-lib.ssr.js +124 -60
- package/package.json +1 -1
- package/src/lib-components/NsBackupCardDetails.vue +1 -2
- package/src/lib-components/NsPasswordInput.vue +1 -1
- package/src/lib-components/NsProgressBar.vue +4 -4
- package/src/lib-components/NsStatusCard.vue +3 -3
- package/src/lib-components/NsSystemdServiceCard.vue +3 -3
- package/src/lib-components/NsToastNotification.vue +1 -1
package/dist/ns8-ui-lib.ssr.js
CHANGED
|
@@ -1130,7 +1130,7 @@ var __vue_render__$n = function __vue_render__() {
|
|
|
1130
1130
|
|
|
1131
1131
|
return _c('div', {
|
|
1132
1132
|
staticClass: "progress-bar-container"
|
|
1133
|
-
}, [_vm._ssrNode("<div class=\"slider\" data-v-
|
|
1133
|
+
}, [_vm._ssrNode("<div class=\"slider\" data-v-57532057>" + (_vm.indeterminate ? "<div class=\"indeterminate-line\" data-v-57532057></div> <div class=\"indeterminate-subline inc\" data-v-57532057></div> <div class=\"indeterminate-subline dec\" data-v-57532057></div>" : "<div class=\"line\" data-v-57532057></div> <div class=\"progress-line\"" + _vm._ssrStyle(null, _vm.progressLine, null) + " data-v-57532057></div>") + "</div>")]);
|
|
1134
1134
|
};
|
|
1135
1135
|
|
|
1136
1136
|
var __vue_staticRenderFns__$n = [];
|
|
@@ -1138,8 +1138,8 @@ var __vue_staticRenderFns__$n = [];
|
|
|
1138
1138
|
|
|
1139
1139
|
var __vue_inject_styles__$o = function __vue_inject_styles__(inject) {
|
|
1140
1140
|
if (!inject) return;
|
|
1141
|
-
inject("data-v-
|
|
1142
|
-
source: ".progress-bar-container[data-v-
|
|
1141
|
+
inject("data-v-57532057_0", {
|
|
1142
|
+
source: ".progress-bar-container[data-v-57532057]{width:100%;position:relative}.slider[data-v-57532057]{position:absolute;width:100%;height:5px;overflow-x:hidden}.line[data-v-57532057]{position:absolute;opacity:.4;width:100%;height:5px}.progress-line[data-v-57532057]{position:absolute;height:5px}.indeterminate-line[data-v-57532057]{position:absolute;opacity:.4;width:150%;height:5px}.indeterminate-subline[data-v-57532057]{position:absolute;height:5px}.inc[data-v-57532057]{animation:increase-data-v-57532057 2s infinite}.dec[data-v-57532057]{animation:decrease-data-v-57532057 2s .5s infinite}@keyframes increase-data-v-57532057{from{left:-5%;width:5%}to{left:130%;width:100%}}@keyframes decrease-data-v-57532057{from{left:-80%;width:80%}to{left:110%;width:10%}}",
|
|
1143
1143
|
map: undefined,
|
|
1144
1144
|
media: undefined
|
|
1145
1145
|
});
|
|
@@ -1147,10 +1147,10 @@ var __vue_inject_styles__$o = function __vue_inject_styles__(inject) {
|
|
|
1147
1147
|
/* scoped */
|
|
1148
1148
|
|
|
1149
1149
|
|
|
1150
|
-
var __vue_scope_id__$o = "data-v-
|
|
1150
|
+
var __vue_scope_id__$o = "data-v-57532057";
|
|
1151
1151
|
/* module identifier */
|
|
1152
1152
|
|
|
1153
|
-
var __vue_module_identifier__$o = "data-v-
|
|
1153
|
+
var __vue_module_identifier__$o = "data-v-57532057";
|
|
1154
1154
|
/* functional template */
|
|
1155
1155
|
|
|
1156
1156
|
var __vue_is_functional_template__$o = false;
|
|
@@ -5909,17 +5909,17 @@ var __vue_render__$l = function __vue_render__() {
|
|
|
5909
5909
|
|
|
5910
5910
|
return _c('div', [_vm._ssrNode("<div data-notification" + _vm._ssrAttr("role", _vm.isAlert ? 'alert' : undefined) + _vm._ssrAttr("aria-live", !_vm.isAlert ? 'polite' : false) + _vm._ssrClass(null, ["cv-notifiation " + _vm.carbonPrefix + "--toast-notification", _vm.carbonPrefix + "--toast-notification--" + _vm.kind.toLowerCase(), (_obj = {}, _obj[_vm.carbonPrefix + "--toast-notification--low-contrast"] = _vm.lowContrast, _obj), "notification", {
|
|
5911
5911
|
'notification-read': _vm.isRead
|
|
5912
|
-
}]) + " data-v-
|
|
5912
|
+
}]) + " data-v-7385c86a>", "</div>", [_c(_vm.icon, {
|
|
5913
5913
|
tag: "component",
|
|
5914
5914
|
class: _vm.carbonPrefix + "--toast-notification__icon"
|
|
5915
|
-
}), _vm._ssrNode(" "), _vm._ssrNode("<div" + _vm._ssrClass(null, _vm.carbonPrefix + "--toast-notification__details") + " data-v-
|
|
5915
|
+
}), _vm._ssrNode(" "), _vm._ssrNode("<div" + _vm._ssrClass(null, _vm.carbonPrefix + "--toast-notification__details") + " data-v-7385c86a>", "</div>", [_vm._ssrNode("<h3" + _vm._ssrClass(null, _vm.carbonPrefix + "--toast-notification__title") + " data-v-7385c86a>" + _vm._ssrEscape("\n " + _vm._s(_vm.title) + "\n ") + "</h3> "), _vm._ssrNode("<div" + _vm._ssrClass(null, [_vm.carbonPrefix + "--toast-notification__subtitle", "notification-description-and-progress", "row", {
|
|
5916
5916
|
'fix-margin-bottom': _vm.actionLabel
|
|
5917
|
-
}]) + " data-v-
|
|
5917
|
+
}]) + " data-v-7385c86a>", "</div>", [_vm._ssrNode("<span data-v-7385c86a>" + _vm._s(_vm.description) + "</span> "), _vm.isProgressShown ? _vm._ssrNode("<div class=\"progress\" data-v-7385c86a>", "</div>", [_c('NsProgressBar', {
|
|
5918
5918
|
attrs: {
|
|
5919
5919
|
"value": _vm.progress,
|
|
5920
5920
|
"indeterminate": !_vm.progress
|
|
5921
5921
|
}
|
|
5922
|
-
}), _vm._ssrNode(" <div class=\"progress-bar-spacer\" data-v-
|
|
5922
|
+
}), _vm._ssrNode(" <div class=\"progress-bar-spacer\" data-v-7385c86a></div> " + (_vm.progress ? "<div class=\"progress-number\" data-v-7385c86a>" + _vm._ssrEscape(_vm._s(_vm.progress) + " %") + "</div>" : "<!---->"))], 2) : _vm._e()], 2), _vm._ssrNode(" " + (_vm.actionLabel ? "<div" + _vm._ssrClass(null, [_vm.carbonPrefix + "--toast-notification__caption", "action", "row"]) + " data-v-7385c86a><button type=\"button\"" + _vm._ssrClass(null, [_vm.carbonPrefix + "--inline-notification__action-button", _vm.carbonPrefix + "--btn", _vm.carbonPrefix + "--btn--sm", _vm.carbonPrefix + "--btn--ghost"]) + " data-v-7385c86a>" + _vm._ssrEscape("\n " + _vm._s(_vm.actionLabel) + "\n ") + "</button></div>" : "<!---->") + " "), _vm.timestamp && !_vm.isProgressShown ? _vm._ssrNode("<div class=\"timestamp row\" data-v-7385c86a>", "</div>", [_c('cv-tooltip', {
|
|
5923
5923
|
attrs: {
|
|
5924
5924
|
"alignment": "center",
|
|
5925
5925
|
"direction": "bottom",
|
|
@@ -5927,7 +5927,7 @@ var __vue_render__$l = function __vue_render__() {
|
|
|
5927
5927
|
}
|
|
5928
5928
|
}, [_vm._v("\n " + _vm._s(_vm.formatDateDistance(_vm.timestamp, new Date(), {
|
|
5929
5929
|
addSuffix: true
|
|
5930
|
-
})) + "\n ")])], 1) : _vm._e()], 2), _vm._ssrNode(" "), _vm.showCloseButton ? _vm._ssrNode("<button" + _vm._ssrAttr("aria-label", _vm.closeAriaLabel) + " type=\"button\" data-notification-btn" + _vm._ssrClass(null, _vm.carbonPrefix + "--toast-notification__close-button") + " data-v-
|
|
5930
|
+
})) + "\n ")])], 1) : _vm._e()], 2), _vm._ssrNode(" "), _vm.showCloseButton ? _vm._ssrNode("<button" + _vm._ssrAttr("aria-label", _vm.closeAriaLabel) + " type=\"button\" data-notification-btn" + _vm._ssrClass(null, _vm.carbonPrefix + "--toast-notification__close-button") + " data-v-7385c86a>", "</button>", [_c('Close20', {
|
|
5931
5931
|
class: _vm.carbonPrefix + "--toast-notification__close-icon"
|
|
5932
5932
|
})], 1) : _vm._e()], 2)]);
|
|
5933
5933
|
};
|
|
@@ -5937,11 +5937,11 @@ var __vue_staticRenderFns__$l = [];
|
|
|
5937
5937
|
|
|
5938
5938
|
var __vue_inject_styles__$l = function __vue_inject_styles__(inject) {
|
|
5939
5939
|
if (!inject) return;
|
|
5940
|
-
inject("data-v-
|
|
5941
|
-
source: ".notification[data-v-
|
|
5940
|
+
inject("data-v-7385c86a_0", {
|
|
5941
|
+
source: ".notification[data-v-7385c86a]{margin-bottom:0;margin-right:0}.action[data-v-7385c86a]{padding-top:0;margin-bottom:0}.bx--toast-notification .bx--inline-notification__action-button.bx--btn--ghost[data-v-7385c86a]{margin-left:-16px}.notification-description-and-progress[data-v-7385c86a]{margin-top:.75rem;margin-bottom:.75rem}.fix-margin-bottom[data-v-7385c86a]{margin-bottom:0}.progress[data-v-7385c86a]{margin-top:.75rem}.progress-bar-spacer[data-v-7385c86a]{height:.5rem}.cv-notifiation.bx--toast-notification.notification[data-v-7385c86a]{width:26vw;min-width:20rem;margin-top:0}.notification-drawer .cv-notifiation.bx--toast-notification.notification[data-v-7385c86a]{margin-top:1rem}.notification-drawer .cv-notifiation.bx--toast-notification.notification[data-v-7385c86a]{width:100%;cursor:pointer}.notification-read[data-v-7385c86a]{border-color:#8d8d8d;color:#c6c6c6}.notification-read .bx--toast-notification__icon[data-v-7385c86a]{fill:currentColor}.notification-read .bx--toast-notification__subtitle[data-v-7385c86a]{color:#c6c6c6}.notification-read .bx--toast-notification__title[data-v-7385c86a]{font-weight:400}.cv-notifiation .timestamp[data-v-7385c86a]{margin-bottom:.75rem;line-height:1.29;color:#fff;text-decoration:underline}.cv-notifiation .timestamp button[data-v-7385c86a]{color:#c6c6c6}.bx--tooltip__trigger[data-v-7385c86a]:not(.bx--btn--icon-only){font-size:inherit}.cv-notifiation .timestamp .bx--tooltip__trigger[data-v-7385c86a]::before{border-bottom-color:#161616}div.row[data-v-7385c86a]:last-child{margin-bottom:1.5rem}.bx--toast-notification__details[data-v-7385c86a]{flex-grow:1}",
|
|
5942
5942
|
map: undefined,
|
|
5943
5943
|
media: undefined
|
|
5944
|
-
}), inject("data-v-
|
|
5944
|
+
}), inject("data-v-7385c86a_1", {
|
|
5945
5945
|
source: ".cv-notifiation .timestamp button span{background-color:#161616!important;border-left:1px solid #393939;border-right:1px solid #393939;border-bottom:1px solid #393939}",
|
|
5946
5946
|
map: undefined,
|
|
5947
5947
|
media: undefined
|
|
@@ -5950,10 +5950,10 @@ var __vue_inject_styles__$l = function __vue_inject_styles__(inject) {
|
|
|
5950
5950
|
/* scoped */
|
|
5951
5951
|
|
|
5952
5952
|
|
|
5953
|
-
var __vue_scope_id__$l = "data-v-
|
|
5953
|
+
var __vue_scope_id__$l = "data-v-7385c86a";
|
|
5954
5954
|
/* module identifier */
|
|
5955
5955
|
|
|
5956
|
-
var __vue_module_identifier__$l = "data-v-
|
|
5956
|
+
var __vue_module_identifier__$l = "data-v-7385c86a";
|
|
5957
5957
|
/* functional template */
|
|
5958
5958
|
|
|
5959
5959
|
var __vue_is_functional_template__$l = false;
|
|
@@ -6205,8 +6205,8 @@ var __vue_staticRenderFns__$j = [];
|
|
|
6205
6205
|
|
|
6206
6206
|
var __vue_inject_styles__$j = function __vue_inject_styles__(inject) {
|
|
6207
6207
|
if (!inject) return;
|
|
6208
|
-
inject("data-v-
|
|
6209
|
-
source: ".status-card[data-v-
|
|
6208
|
+
inject("data-v-496044f0_0", {
|
|
6209
|
+
source: ".status-card[data-v-496044f0]{display:flex;flex-direction:column;justify-content:center}.row[data-v-496044f0]{display:flex;align-items:center;justify-content:center;margin-bottom:.5rem}.value[data-v-496044f0]{margin-left:.25rem;margin-right:.25rem}.label[data-v-496044f0]{margin-left:.25rem;margin-right:.25rem}.success-icon[data-v-496044f0]{margin-right:.25rem}.error-icon[data-v-496044f0]{margin-right:.25rem}.warning-icon[data-v-496044f0]{margin-right:.25rem}.stats[data-v-496044f0]{display:flex;align-items:center;margin-left:.5rem;margin-right:.5rem}",
|
|
6210
6210
|
map: undefined,
|
|
6211
6211
|
media: undefined
|
|
6212
6212
|
});
|
|
@@ -6214,10 +6214,10 @@ var __vue_inject_styles__$j = function __vue_inject_styles__(inject) {
|
|
|
6214
6214
|
/* scoped */
|
|
6215
6215
|
|
|
6216
6216
|
|
|
6217
|
-
var __vue_scope_id__$j = "data-v-
|
|
6217
|
+
var __vue_scope_id__$j = "data-v-496044f0";
|
|
6218
6218
|
/* module identifier */
|
|
6219
6219
|
|
|
6220
|
-
var __vue_module_identifier__$j = "data-v-
|
|
6220
|
+
var __vue_module_identifier__$j = "data-v-496044f0";
|
|
6221
6221
|
/* functional template */
|
|
6222
6222
|
|
|
6223
6223
|
var __vue_is_functional_template__$j = false;
|
|
@@ -6342,8 +6342,8 @@ var __vue_staticRenderFns__$i = [];
|
|
|
6342
6342
|
|
|
6343
6343
|
var __vue_inject_styles__$i = function __vue_inject_styles__(inject) {
|
|
6344
6344
|
if (!inject) return;
|
|
6345
|
-
inject("data-v-
|
|
6346
|
-
source: ".service-card[data-v-
|
|
6345
|
+
inject("data-v-3dfcfe29_0", {
|
|
6346
|
+
source: ".service-card[data-v-3dfcfe29]{display:flex;flex-direction:column;justify-content:center}.row[data-v-3dfcfe29]{display:flex;align-items:center;justify-content:center;margin-bottom:.5rem}.service-name[data-v-3dfcfe29]{margin-left:.25rem;margin-right:.25rem}.success-icon[data-v-3dfcfe29]{margin-right:.25rem}.error-icon[data-v-3dfcfe29]{margin-right:.25rem}.warning-icon[data-v-3dfcfe29]{margin-right:.25rem}.stats[data-v-3dfcfe29]{display:flex;align-items:center;margin-left:.5rem;margin-right:.5rem}",
|
|
6347
6347
|
map: undefined,
|
|
6348
6348
|
media: undefined
|
|
6349
6349
|
});
|
|
@@ -6351,10 +6351,10 @@ var __vue_inject_styles__$i = function __vue_inject_styles__(inject) {
|
|
|
6351
6351
|
/* scoped */
|
|
6352
6352
|
|
|
6353
6353
|
|
|
6354
|
-
var __vue_scope_id__$i = "data-v-
|
|
6354
|
+
var __vue_scope_id__$i = "data-v-3dfcfe29";
|
|
6355
6355
|
/* module identifier */
|
|
6356
6356
|
|
|
6357
|
-
var __vue_module_identifier__$i = "data-v-
|
|
6357
|
+
var __vue_module_identifier__$i = "data-v-3dfcfe29";
|
|
6358
6358
|
/* functional template */
|
|
6359
6359
|
|
|
6360
6360
|
var __vue_is_functional_template__$i = false;
|
|
@@ -6493,7 +6493,7 @@ var __vue_component__$A = __vue_component__$z;var UtilService = {
|
|
|
6493
6493
|
},
|
|
6494
6494
|
|
|
6495
6495
|
/**
|
|
6496
|
-
* Get app description using the locale of
|
|
6496
|
+
* Get app description using the locale of core context
|
|
6497
6497
|
*/
|
|
6498
6498
|
getAppDescription: function getAppDescription(app, coreContext) {
|
|
6499
6499
|
var langCode = coreContext.$root.$i18n.locale;
|
|
@@ -6508,7 +6508,7 @@ var __vue_component__$A = __vue_component__$z;var UtilService = {
|
|
|
6508
6508
|
},
|
|
6509
6509
|
|
|
6510
6510
|
/**
|
|
6511
|
-
* Get app categories using the locale of
|
|
6511
|
+
* Get app categories using the locale of core context
|
|
6512
6512
|
*/
|
|
6513
6513
|
getAppCategories: function getAppCategories(app, coreContext) {
|
|
6514
6514
|
var i18nCategories = [];
|
|
@@ -6542,6 +6542,58 @@ var __vue_component__$A = __vue_component__$z;var UtilService = {
|
|
|
6542
6542
|
this.$refs.accordion.state.map(function (item, index) {
|
|
6543
6543
|
return index === ev.changedIndex;
|
|
6544
6544
|
});
|
|
6545
|
+
},
|
|
6546
|
+
|
|
6547
|
+
/**
|
|
6548
|
+
* Used in Backup section
|
|
6549
|
+
* */
|
|
6550
|
+
getBackupScheduleDescription: function getBackupScheduleDescription(schedule) {
|
|
6551
|
+
if (!schedule) {
|
|
6552
|
+
return "-";
|
|
6553
|
+
}
|
|
6554
|
+
|
|
6555
|
+
switch (schedule.interval) {
|
|
6556
|
+
case "hourly":
|
|
6557
|
+
if (schedule.minute == 0) {
|
|
6558
|
+
return this.$t("backup.every_hour");
|
|
6559
|
+
} else {
|
|
6560
|
+
return this.$tc("backup.minutes_past_the_hour", schedule.minute, {
|
|
6561
|
+
minutes: schedule.minute
|
|
6562
|
+
});
|
|
6563
|
+
}
|
|
6564
|
+
|
|
6565
|
+
case "daily":
|
|
6566
|
+
if (this.time24HourPattern.test(schedule.time)) {
|
|
6567
|
+
return this.$t("backup.every_day_at", {
|
|
6568
|
+
time: schedule.time
|
|
6569
|
+
});
|
|
6570
|
+
} else {
|
|
6571
|
+
return "-";
|
|
6572
|
+
}
|
|
6573
|
+
|
|
6574
|
+
case "weekly":
|
|
6575
|
+
if (this.time24HourPattern.test(schedule.time)) {
|
|
6576
|
+
return this.$t("backup.every_weekday_at_hour", {
|
|
6577
|
+
weekDay: this.$t("calendar." + schedule.weekDay),
|
|
6578
|
+
time: schedule.time
|
|
6579
|
+
});
|
|
6580
|
+
} else {
|
|
6581
|
+
return "-";
|
|
6582
|
+
}
|
|
6583
|
+
|
|
6584
|
+
case "monthly":
|
|
6585
|
+
if (this.time24HourPattern.test(schedule.time)) {
|
|
6586
|
+
return this.$t("backup.every_month_at_time", {
|
|
6587
|
+
dayNum: schedule.monthDay,
|
|
6588
|
+
time: schedule.time
|
|
6589
|
+
});
|
|
6590
|
+
} else {
|
|
6591
|
+
return "-";
|
|
6592
|
+
}
|
|
6593
|
+
|
|
6594
|
+
default:
|
|
6595
|
+
return "-";
|
|
6596
|
+
}
|
|
6545
6597
|
}
|
|
6546
6598
|
}
|
|
6547
6599
|
};//
|
|
@@ -6701,7 +6753,7 @@ var __vue_render__$h = function __vue_render__() {
|
|
|
6701
6753
|
|
|
6702
6754
|
return _c('div', {
|
|
6703
6755
|
staticClass: "ns-password-input"
|
|
6704
|
-
}, [_vm._ssrNode("<div class=\"new-password-container\" data-v-
|
|
6756
|
+
}, [_vm._ssrNode("<div class=\"new-password-container\" data-v-6ed70bae>", "</div>", [_c('cv-text-input', {
|
|
6705
6757
|
ref: "newPassword",
|
|
6706
6758
|
staticClass: "new-password",
|
|
6707
6759
|
attrs: {
|
|
@@ -6719,27 +6771,27 @@ var __vue_render__$h = function __vue_render__() {
|
|
|
6719
6771
|
on: {
|
|
6720
6772
|
"input": _vm.onInput
|
|
6721
6773
|
}
|
|
6722
|
-
}), _vm._ssrNode(" <div class=\"password-meter\" data-v-
|
|
6774
|
+
}), _vm._ssrNode(" <div class=\"password-meter\" data-v-6ed70bae><span" + _vm._ssrClass(null, ['requirement', {
|
|
6723
6775
|
'requirement-ok': _vm.isLengthOk,
|
|
6724
6776
|
'requirement-light': _vm.light,
|
|
6725
6777
|
'requirement-disabled': _vm.disabled
|
|
6726
|
-
}]) + " data-v-
|
|
6778
|
+
}]) + " data-v-6ed70bae>" + _vm._ssrEscape(_vm._s(_vm.lengthLabel)) + "</span> <span" + _vm._ssrClass(null, ['requirement', {
|
|
6727
6779
|
'requirement-ok': _vm.isLowercaseOk,
|
|
6728
6780
|
'requirement-light': _vm.light,
|
|
6729
6781
|
'requirement-disabled': _vm.disabled
|
|
6730
|
-
}]) + " data-v-
|
|
6782
|
+
}]) + " data-v-6ed70bae>" + _vm._ssrEscape(_vm._s(_vm.lowercaseLabel)) + "</span> <span" + _vm._ssrClass(null, ['requirement', {
|
|
6731
6783
|
'requirement-ok': _vm.isUppercaseOk,
|
|
6732
6784
|
'requirement-light': _vm.light,
|
|
6733
6785
|
'requirement-disabled': _vm.disabled
|
|
6734
|
-
}]) + " data-v-
|
|
6786
|
+
}]) + " data-v-6ed70bae>" + _vm._ssrEscape(_vm._s(_vm.uppercaseLabel)) + "</span> <span" + _vm._ssrClass(null, ['requirement', {
|
|
6735
6787
|
'requirement-ok': _vm.isNumberOk,
|
|
6736
6788
|
'requirement-light': _vm.light,
|
|
6737
6789
|
'requirement-disabled': _vm.disabled
|
|
6738
|
-
}]) + " data-v-
|
|
6790
|
+
}]) + " data-v-6ed70bae>" + _vm._ssrEscape(_vm._s(_vm.numberLabel)) + "</span> <span" + _vm._ssrClass(null, ['requirement', {
|
|
6739
6791
|
'requirement-ok': _vm.isSymbolOk,
|
|
6740
6792
|
'requirement-light': _vm.light,
|
|
6741
6793
|
'requirement-disabled': _vm.disabled
|
|
6742
|
-
}]) + " data-v-
|
|
6794
|
+
}]) + " data-v-6ed70bae>" + _vm._ssrEscape(_vm._s(_vm.symbolLabel)) + "</span></div>")], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"confirm-password-container\" data-v-6ed70bae>", "</div>", [_c('cv-text-input', {
|
|
6743
6795
|
ref: "confirmPassword",
|
|
6744
6796
|
staticClass: "confirm-password",
|
|
6745
6797
|
attrs: {
|
|
@@ -6760,11 +6812,11 @@ var __vue_render__$h = function __vue_render__() {
|
|
|
6760
6812
|
},
|
|
6761
6813
|
expression: "confirmPassword"
|
|
6762
6814
|
}
|
|
6763
|
-
}), _vm._ssrNode(" <div class=\"password-meter\" data-v-
|
|
6815
|
+
}), _vm._ssrNode(" <div class=\"password-meter\" data-v-6ed70bae><span" + _vm._ssrClass(null, ['requirement', {
|
|
6764
6816
|
'requirement-ok': _vm.isEqualOk,
|
|
6765
6817
|
'requirement-light': _vm.light,
|
|
6766
6818
|
'requirement-disabled': _vm.disabled
|
|
6767
|
-
}]) + " data-v-
|
|
6819
|
+
}]) + " data-v-6ed70bae>" + _vm._ssrEscape(_vm._s(_vm.equalLabel)) + "</span></div>")], 2)], 2);
|
|
6768
6820
|
};
|
|
6769
6821
|
|
|
6770
6822
|
var __vue_staticRenderFns__$h = [];
|
|
@@ -6772,8 +6824,8 @@ var __vue_staticRenderFns__$h = [];
|
|
|
6772
6824
|
|
|
6773
6825
|
var __vue_inject_styles__$h = function __vue_inject_styles__(inject) {
|
|
6774
6826
|
if (!inject) return;
|
|
6775
|
-
inject("data-v-
|
|
6776
|
-
source: ".new-password-container[data-v-
|
|
6827
|
+
inject("data-v-6ed70bae_0", {
|
|
6828
|
+
source: ".new-password-container[data-v-6ed70bae]{margin-bottom:1rem}.new-password[data-v-6ed70bae]{margin-bottom:.25rem}.confirm-password[data-v-6ed70bae]{margin-bottom:.25rem}.password-meter[data-v-6ed70bae]{display:flex}@media (min-width:672px){.password-meter[data-v-6ed70bae]{max-width:38rem}}.requirement[data-v-6ed70bae]{padding:.2rem;margin-left:.2rem;margin-right:.2rem;background-color:#f4f4f4;text-align:center;font-size:.75rem;line-height:1.34;letter-spacing:.32px}.requirement-light[data-v-6ed70bae]{background-color:#fff}.requirement[data-v-6ed70bae]:first-child{margin-left:0}.requirement-ok[data-v-6ed70bae]{color:#fff;background-color:#198038}.requirement-disabled[data-v-6ed70bae]{color:#c6c6c6;background-color:#f4f4f4}",
|
|
6777
6829
|
map: undefined,
|
|
6778
6830
|
media: undefined
|
|
6779
6831
|
});
|
|
@@ -6781,10 +6833,10 @@ var __vue_inject_styles__$h = function __vue_inject_styles__(inject) {
|
|
|
6781
6833
|
/* scoped */
|
|
6782
6834
|
|
|
6783
6835
|
|
|
6784
|
-
var __vue_scope_id__$h = "data-v-
|
|
6836
|
+
var __vue_scope_id__$h = "data-v-6ed70bae";
|
|
6785
6837
|
/* module identifier */
|
|
6786
6838
|
|
|
6787
|
-
var __vue_module_identifier__$h = "data-v-
|
|
6839
|
+
var __vue_module_identifier__$h = "data-v-6ed70bae";
|
|
6788
6840
|
/* functional template */
|
|
6789
6841
|
|
|
6790
6842
|
var __vue_is_functional_template__$h = false;
|
|
@@ -7601,7 +7653,7 @@ var __vue_render__$a = function __vue_render__() {
|
|
|
7601
7653
|
|
|
7602
7654
|
return _c('div', {
|
|
7603
7655
|
staticClass: "ns-backup-card-details"
|
|
7604
|
-
}, [_vm._ssrNode("<div class=\"tr\" data-v-
|
|
7656
|
+
}, [_vm._ssrNode("<div class=\"tr\" data-v-25453d1c><div class=\"td label\" data-v-25453d1c>" + _vm._ssrEscape(_vm._s(_vm.repositoryLabel)) + "</div> <div class=\"td\" data-v-25453d1c>" + _vm._ssrEscape("\n " + _vm._s(_vm.backup.repoName) + "\n ") + "</div></div> "), _vm._ssrNode("<div class=\"tr\" data-v-25453d1c>", "</div>", [_vm._ssrNode("<div class=\"td label\" data-v-25453d1c>" + _vm._ssrEscape(_vm._s(_vm.completedLabel)) + "</div> "), _vm._ssrNode("<div class=\"td\" data-v-25453d1c>", "</div>", [_vm.status[_vm.backup.id] && _vm.status[_vm.backup.id].end ? _vm._ssrNode("<span data-v-25453d1c>", "</span>", [_c('cv-interactive-tooltip', {
|
|
7605
7657
|
staticClass: "info tooltip-with-text-trigger",
|
|
7606
7658
|
attrs: {
|
|
7607
7659
|
"alignment": "center",
|
|
@@ -7613,7 +7665,7 @@ var __vue_render__$a = function __vue_render__() {
|
|
|
7613
7665
|
addSuffix: true
|
|
7614
7666
|
})) + "\n ")]), _vm._v(" "), _c('template', {
|
|
7615
7667
|
slot: "content"
|
|
7616
|
-
}, [_vm._v("\n " + _vm._s(_vm._f("date")(_vm.status[_vm.backup.id].end * 1000, "yyyy-MM-dd HH:mm:ss")) + "\n ")])], 2)], 1) : _vm._ssrNode("<span data-v-
|
|
7668
|
+
}, [_vm._v("\n " + _vm._s(_vm._f("date")(_vm.status[_vm.backup.id].end * 1000, "yyyy-MM-dd HH:mm:ss")) + "\n ")])], 2)], 1) : _vm._ssrNode("<span data-v-25453d1c>-</span>")])], 2), _vm._ssrNode(" <div class=\"tr\" data-v-25453d1c><div class=\"td label\" data-v-25453d1c>" + _vm._ssrEscape(_vm._s(_vm.durationLabel)) + "</div> <div class=\"td\" data-v-25453d1c>" + (_vm.status[_vm.backup.id] && _vm.status[_vm.backup.id].end && _vm.status[_vm.backup.id].start ? "<span data-v-25453d1c>" + _vm._ssrEscape("\n " + _vm._s(_vm._f("secondsFormat")(_vm.status[_vm.backup.id].end - _vm.status[_vm.backup.id].start)) + "\n ") + "</span>" : "<span data-v-25453d1c>-</span>") + "</div></div> <div class=\"tr\" data-v-25453d1c><div class=\"td label\" data-v-25453d1c>" + _vm._ssrEscape(_vm._s(_vm.totalSizeLabel)) + "</div> <div class=\"td\" data-v-25453d1c>" + (_vm.status[_vm.backup.id] && _vm.status[_vm.backup.id].total_size ? "<span data-v-25453d1c>" + _vm._ssrEscape("\n " + _vm._s(_vm._f("byteFormat")(_vm.status[_vm.backup.id].total_size)) + "\n ") + "</span>" : "<span data-v-25453d1c>-</span>") + "</div></div> <div class=\"tr\" data-v-25453d1c><div class=\"td label\" data-v-25453d1c>" + _vm._ssrEscape(_vm._s(_vm.totalFileCountLabel)) + "</div> <div class=\"td\" data-v-25453d1c>" + (_vm.status[_vm.backup.id] && _vm.status[_vm.backup.id].total_file_count ? "<span data-v-25453d1c>" + _vm._ssrEscape("\n " + _vm._s(_vm.status[_vm.backup.id].total_file_count) + "\n ") + "</span>" : "<span data-v-25453d1c>-</span>") + "</div></div>")], 2);
|
|
7617
7669
|
};
|
|
7618
7670
|
|
|
7619
7671
|
var __vue_staticRenderFns__$a = [];
|
|
@@ -7621,8 +7673,8 @@ var __vue_staticRenderFns__$a = [];
|
|
|
7621
7673
|
|
|
7622
7674
|
var __vue_inject_styles__$a = function __vue_inject_styles__(inject) {
|
|
7623
7675
|
if (!inject) return;
|
|
7624
|
-
inject("data-v-
|
|
7625
|
-
source: ".ns-backup-card-details[data-v-
|
|
7676
|
+
inject("data-v-25453d1c_0", {
|
|
7677
|
+
source: ".ns-backup-card-details[data-v-25453d1c]{display:contents}.tr[data-v-25453d1c]{display:table-row}.td[data-v-25453d1c]{display:table-cell}.label[data-v-25453d1c]{padding-right:.75rem;font-weight:700;text-align:right;padding-bottom:.5rem}",
|
|
7626
7678
|
map: undefined,
|
|
7627
7679
|
media: undefined
|
|
7628
7680
|
});
|
|
@@ -7630,10 +7682,10 @@ var __vue_inject_styles__$a = function __vue_inject_styles__(inject) {
|
|
|
7630
7682
|
/* scoped */
|
|
7631
7683
|
|
|
7632
7684
|
|
|
7633
|
-
var __vue_scope_id__$a = "data-v-
|
|
7685
|
+
var __vue_scope_id__$a = "data-v-25453d1c";
|
|
7634
7686
|
/* module identifier */
|
|
7635
7687
|
|
|
7636
|
-
var __vue_module_identifier__$a = "data-v-
|
|
7688
|
+
var __vue_module_identifier__$a = "data-v-25453d1c";
|
|
7637
7689
|
/* functional template */
|
|
7638
7690
|
|
|
7639
7691
|
var __vue_is_functional_template__$a = false;
|
|
@@ -8487,7 +8539,7 @@ var __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
|
8487
8539
|
var __vue_component__$1 = __vue_component__;var queryParam = {
|
|
8488
8540
|
name: "QueryParamService",
|
|
8489
8541
|
methods: {
|
|
8490
|
-
// used by
|
|
8542
|
+
// used by core and external apps to dynamically register a watch for every object inside data.q
|
|
8491
8543
|
watchQueryData: function watchQueryData(context) {
|
|
8492
8544
|
if (context.q) {
|
|
8493
8545
|
Object.keys(context.q).forEach(function (dataItem) {
|
|
@@ -8530,10 +8582,10 @@ var __vue_component__$1 = __vue_component__;var queryParam = {
|
|
|
8530
8582
|
queryParams.push(key + "=" + encodeURIComponent(value));
|
|
8531
8583
|
}
|
|
8532
8584
|
|
|
8533
|
-
var urlWithParams = window.parent.
|
|
8585
|
+
var urlWithParams = window.parent.core.$route.path + "?" + queryParams.join("&");
|
|
8534
8586
|
|
|
8535
|
-
if (window.parent.
|
|
8536
|
-
window.parent.
|
|
8587
|
+
if (window.parent.core.$route.fullPath != urlWithParams) {
|
|
8588
|
+
window.parent.core.$router.replace(urlWithParams);
|
|
8537
8589
|
}
|
|
8538
8590
|
},
|
|
8539
8591
|
// used only by external apps to sync UI status with URL query parameters
|
|
@@ -8602,7 +8654,7 @@ var __vue_component__$1 = __vue_component__;var queryParam = {
|
|
|
8602
8654
|
});
|
|
8603
8655
|
}
|
|
8604
8656
|
},
|
|
8605
|
-
// used only by
|
|
8657
|
+
// used only by core to extract query parameters from URL
|
|
8606
8658
|
getQueryParamsForCore: function getQueryParamsForCore() {
|
|
8607
8659
|
if (!window.location.hash.includes("?") || window.location.hash.split("?").length < 2) {
|
|
8608
8660
|
return {};
|
|
@@ -8684,7 +8736,7 @@ var __vue_component__$1 = __vue_component__;var queryParam = {
|
|
|
8684
8736
|
},
|
|
8685
8737
|
createClusterTaskForApp: function createClusterTaskForApp(taskData) {
|
|
8686
8738
|
var token = this.getFromStorage("loginInfo") ? this.getFromStorage("loginInfo").token : "";
|
|
8687
|
-
return this.axios.post("".concat(window.parent.
|
|
8739
|
+
return this.axios.post("".concat(window.parent.core.$root.apiUrl, "/cluster/tasks"), taskData, {
|
|
8688
8740
|
headers: {
|
|
8689
8741
|
Authorization: "Bearer ".concat(token)
|
|
8690
8742
|
}
|
|
@@ -8692,7 +8744,7 @@ var __vue_component__$1 = __vue_component__;var queryParam = {
|
|
|
8692
8744
|
},
|
|
8693
8745
|
createModuleTaskForApp: function createModuleTaskForApp(moduleId, taskData) {
|
|
8694
8746
|
var token = this.getFromStorage("loginInfo") ? this.getFromStorage("loginInfo").token : "";
|
|
8695
|
-
return this.axios.post("".concat(window.parent.
|
|
8747
|
+
return this.axios.post("".concat(window.parent.core.$root.apiUrl, "/module/").concat(moduleId, "/tasks"), taskData, {
|
|
8696
8748
|
headers: {
|
|
8697
8749
|
Authorization: "Bearer ".concat(token)
|
|
8698
8750
|
}
|
|
@@ -8707,8 +8759,8 @@ var __vue_component__$1 = __vue_component__;var queryParam = {
|
|
|
8707
8759
|
});
|
|
8708
8760
|
},
|
|
8709
8761
|
getTaskTitle: function getTaskTitle(task) {
|
|
8710
|
-
if (task && task.context && task.context.
|
|
8711
|
-
return task.context.
|
|
8762
|
+
if (task && task.context && task.context.extra && task.context.extra.title) {
|
|
8763
|
+
return task.context.extra.title;
|
|
8712
8764
|
} else {
|
|
8713
8765
|
return "";
|
|
8714
8766
|
}
|
|
@@ -8747,28 +8799,40 @@ var __vue_component__$1 = __vue_component__;var queryParam = {
|
|
|
8747
8799
|
},
|
|
8748
8800
|
getTaskStatusDescription: function getTaskStatusDescription(task) {
|
|
8749
8801
|
var rootTask = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
8750
|
-
var
|
|
8802
|
+
var taskLabel = task.context.action; // use taskName instead of action, if available
|
|
8803
|
+
|
|
8804
|
+
if (task.context.extra && task.context.extra.taskName) {
|
|
8805
|
+
taskLabel = task.context.extra.taskName;
|
|
8806
|
+
}
|
|
8807
|
+
|
|
8751
8808
|
var taskOrSubtask = rootTask ? "task" : "subtask";
|
|
8809
|
+
var taskPrefix = "";
|
|
8810
|
+
|
|
8811
|
+
if (task.result && task.result.file) {
|
|
8812
|
+
taskPrefix = task.result.file.split("task/")[0];
|
|
8813
|
+
}
|
|
8814
|
+
|
|
8815
|
+
taskLabel = taskPrefix + taskLabel;
|
|
8752
8816
|
|
|
8753
8817
|
switch (task.status) {
|
|
8754
8818
|
case "aborted":
|
|
8755
8819
|
return this.$t("task." + taskOrSubtask + "_failed", {
|
|
8756
|
-
|
|
8820
|
+
task: taskLabel
|
|
8757
8821
|
});
|
|
8758
8822
|
|
|
8759
8823
|
case "validation-failed":
|
|
8760
8824
|
return this.$t("task." + taskOrSubtask + "_failed_validation", {
|
|
8761
|
-
|
|
8825
|
+
task: taskLabel
|
|
8762
8826
|
});
|
|
8763
8827
|
|
|
8764
8828
|
case "completed":
|
|
8765
8829
|
return this.$t("task." + taskOrSubtask + "_completed", {
|
|
8766
|
-
|
|
8830
|
+
task: taskLabel
|
|
8767
8831
|
});
|
|
8768
8832
|
|
|
8769
8833
|
case "pending":
|
|
8770
8834
|
return this.$t("task." + taskOrSubtask + "_pending", {
|
|
8771
|
-
|
|
8835
|
+
task: taskLabel
|
|
8772
8836
|
});
|
|
8773
8837
|
|
|
8774
8838
|
default:
|
|
@@ -8781,7 +8845,7 @@ var __vue_component__$1 = __vue_component__;var queryParam = {
|
|
|
8781
8845
|
},
|
|
8782
8846
|
createErrorNotificationForApp: function createErrorNotificationForApp(err, message) {
|
|
8783
8847
|
console.error(err);
|
|
8784
|
-
window.parent.
|
|
8848
|
+
window.parent.core.$root.$emit("createErrorNotification", err, message);
|
|
8785
8849
|
}
|
|
8786
8850
|
}
|
|
8787
8851
|
};var dataTable = {
|
|
@@ -8844,7 +8908,7 @@ var pageTitle = {
|
|
|
8844
8908
|
var pageTitle = getPageTitle(this);
|
|
8845
8909
|
|
|
8846
8910
|
if (pageTitle) {
|
|
8847
|
-
// window.document would be ok for
|
|
8911
|
+
// window.document would be ok for core, but with window.parent.document we support external apps too (window.parent == window, if it's the root window)
|
|
8848
8912
|
window.parent.document.title = pageTitle;
|
|
8849
8913
|
}
|
|
8850
8914
|
}
|
package/package.json
CHANGED
|
@@ -65,8 +65,7 @@
|
|
|
65
65
|
<div class="td label">{{ totalFileCountLabel }}</div>
|
|
66
66
|
<div class="td">
|
|
67
67
|
<span v-if="status[backup.id] && status[backup.id].total_file_count">
|
|
68
|
-
{{ status[backup.id].total_file_count
|
|
69
|
-
({{ status[backup.id].total_file_count }})
|
|
68
|
+
{{ status[backup.id].total_file_count }}
|
|
70
69
|
</span>
|
|
71
70
|
<span v-else>-</span>
|
|
72
71
|
</div>
|
|
@@ -259,7 +259,7 @@ export default {
|
|
|
259
259
|
|
|
260
260
|
@media (min-width: 672px) {
|
|
261
261
|
.password-meter {
|
|
262
|
-
// same max-width as
|
|
262
|
+
// same max-width as _core.scss for: // limit form fields width on large devices
|
|
263
263
|
max-width: 38rem;
|
|
264
264
|
}
|
|
265
265
|
}
|
|
@@ -61,7 +61,7 @@ export default {
|
|
|
61
61
|
.line {
|
|
62
62
|
position: absolute;
|
|
63
63
|
opacity: 0.4;
|
|
64
|
-
// following rule uses branding color so it's inside core
|
|
64
|
+
// following rule uses branding color so it's inside core _core.scss
|
|
65
65
|
// background: $interactive-01;
|
|
66
66
|
width: 100%;
|
|
67
67
|
height: 5px;
|
|
@@ -69,7 +69,7 @@ export default {
|
|
|
69
69
|
|
|
70
70
|
.progress-line {
|
|
71
71
|
position: absolute;
|
|
72
|
-
// following rule uses branding color so it's inside core
|
|
72
|
+
// following rule uses branding color so it's inside core _core.scss
|
|
73
73
|
// background: $interactive-01;
|
|
74
74
|
height: 5px;
|
|
75
75
|
}
|
|
@@ -77,7 +77,7 @@ export default {
|
|
|
77
77
|
.indeterminate-line {
|
|
78
78
|
position: absolute;
|
|
79
79
|
opacity: 0.4;
|
|
80
|
-
// following rule uses branding color so it's inside core
|
|
80
|
+
// following rule uses branding color so it's inside core _core.scss
|
|
81
81
|
// background: $interactive-01;
|
|
82
82
|
width: 150%;
|
|
83
83
|
height: 5px;
|
|
@@ -85,7 +85,7 @@ export default {
|
|
|
85
85
|
|
|
86
86
|
.indeterminate-subline {
|
|
87
87
|
position: absolute;
|
|
88
|
-
// following rule uses branding color so it's inside core
|
|
88
|
+
// following rule uses branding color so it's inside core _core.scss
|
|
89
89
|
// background: $interactive-01;
|
|
90
90
|
height: 5px;
|
|
91
91
|
}
|
|
@@ -119,19 +119,19 @@ export default {
|
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
.success-icon {
|
|
122
|
-
// following rule uses variable color so it's inside core
|
|
122
|
+
// following rule uses variable color so it's inside core _core.scss
|
|
123
123
|
// color: $support-02;
|
|
124
124
|
margin-right: 0.25rem;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
.error-icon {
|
|
128
|
-
// following rule uses variable color so it's inside core
|
|
128
|
+
// following rule uses variable color so it's inside core _core.scss
|
|
129
129
|
// color: $danger-01;
|
|
130
130
|
margin-right: 0.25rem;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
.warning-icon {
|
|
134
|
-
// following rule uses variable color so it's inside core
|
|
134
|
+
// following rule uses variable color so it's inside core _core.scss
|
|
135
135
|
// color: $support-03;
|
|
136
136
|
margin-right: 0.25rem;
|
|
137
137
|
}
|
|
@@ -90,19 +90,19 @@ export default {
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.success-icon {
|
|
93
|
-
// following rule uses variable color so it's inside core
|
|
93
|
+
// following rule uses variable color so it's inside core _core.scss
|
|
94
94
|
// color: $support-02;
|
|
95
95
|
margin-right: 0.25rem;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
.error-icon {
|
|
99
|
-
// following rule uses variable color so it's inside core
|
|
99
|
+
// following rule uses variable color so it's inside core _core.scss
|
|
100
100
|
// color: $danger-01;
|
|
101
101
|
margin-right: 0.25rem;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.warning-icon {
|
|
105
|
-
// following rule uses variable color so it's inside core
|
|
105
|
+
// following rule uses variable color so it's inside core _core.scss
|
|
106
106
|
// color: $support-03;
|
|
107
107
|
margin-right: 0.25rem;
|
|
108
108
|
}
|
|
@@ -140,7 +140,7 @@ export default {
|
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
.bx--toast-notification .bx--inline-notification__action-button.bx--btn--ghost {
|
|
143
|
-
// following rule uses branding color so it's inside core
|
|
143
|
+
// following rule uses branding color so it's inside core _core.scss
|
|
144
144
|
// color: $inverse-link;
|
|
145
145
|
margin-left: -16px;
|
|
146
146
|
}
|