@nethserver/ns8-ui-lib 0.0.66 → 0.0.69
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 +54 -36
- package/dist/ns8-ui-lib.min.js +1 -1
- package/dist/ns8-ui-lib.ssr.js +58 -40
- package/package.json +1 -1
- package/src/lib-components/NsBackupCard.vue +15 -24
- package/src/lib-components/NsInfoCard.vue +18 -1
- package/src/lib-components/NsSystemLogsCard.vue +6 -2
- package/src/lib-components/NsSystemdServiceCard.vue +1 -0
package/dist/ns8-ui-lib.esm.js
CHANGED
|
@@ -6299,6 +6299,10 @@ var script$f = {
|
|
|
6299
6299
|
type: String,
|
|
6300
6300
|
required: false
|
|
6301
6301
|
},
|
|
6302
|
+
titleTooltip: {
|
|
6303
|
+
type: String,
|
|
6304
|
+
required: false
|
|
6305
|
+
},
|
|
6302
6306
|
icon: {
|
|
6303
6307
|
type: [String, Object],
|
|
6304
6308
|
default: undefined,
|
|
@@ -6372,9 +6376,17 @@ var __vue_render__$l = function () {
|
|
|
6372
6376
|
}
|
|
6373
6377
|
})], 1) : [_vm.title ? _c('div', {
|
|
6374
6378
|
staticClass: "row"
|
|
6379
|
+
}, [_vm.titleTooltip ? _c('cv-tooltip', {
|
|
6380
|
+
attrs: {
|
|
6381
|
+
"alignment": "center",
|
|
6382
|
+
"direction": "bottom",
|
|
6383
|
+
"tip": _vm.titleTooltip
|
|
6384
|
+
}
|
|
6375
6385
|
}, [_c('h3', {
|
|
6376
6386
|
staticClass: "title"
|
|
6377
|
-
}, [_vm._v(_vm._s(_vm.title))])]) :
|
|
6387
|
+
}, [_vm._v("\n " + _vm._s(_vm.title) + "\n ")])]) : _c('h3', {
|
|
6388
|
+
staticClass: "title"
|
|
6389
|
+
}, [_vm._v(_vm._s(_vm.title))])], 1) : _vm._e(), _vm._v(" "), _vm.description ? _c('div', {
|
|
6378
6390
|
staticClass: "row"
|
|
6379
6391
|
}, [_c('div', {
|
|
6380
6392
|
staticClass: "description"
|
|
@@ -6388,8 +6400,8 @@ var __vue_staticRenderFns__$l = [];
|
|
|
6388
6400
|
|
|
6389
6401
|
const __vue_inject_styles__$l = function (inject) {
|
|
6390
6402
|
if (!inject) return;
|
|
6391
|
-
inject("data-v-
|
|
6392
|
-
source: ".info-card[data-v-
|
|
6403
|
+
inject("data-v-aefc1c3e_0", {
|
|
6404
|
+
source: ".info-card[data-v-aefc1c3e]{display:flex;flex-direction:column;justify-content:center;min-height:7rem;position:relative}.skeleton[data-v-aefc1c3e]{margin-top:.5rem;margin-left:auto;margin-right:auto}.row[data-v-aefc1c3e]{display:flex;align-items:center;justify-content:center;margin-bottom:.5rem}.title[data-v-aefc1c3e]{margin-left:.25rem;margin-right:.25rem;margin-bottom:.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.description[data-v-aefc1c3e]{margin-left:.25rem;margin-right:.25rem}.slot[data-v-aefc1c3e]{margin-top:.5rem}",
|
|
6393
6405
|
map: undefined,
|
|
6394
6406
|
media: undefined
|
|
6395
6407
|
});
|
|
@@ -6397,7 +6409,7 @@ const __vue_inject_styles__$l = function (inject) {
|
|
|
6397
6409
|
/* scoped */
|
|
6398
6410
|
|
|
6399
6411
|
|
|
6400
|
-
const __vue_scope_id__$l = "data-v-
|
|
6412
|
+
const __vue_scope_id__$l = "data-v-aefc1c3e";
|
|
6401
6413
|
/* module identifier */
|
|
6402
6414
|
|
|
6403
6415
|
const __vue_module_identifier__$l = undefined;
|
|
@@ -6685,8 +6697,8 @@ var __vue_staticRenderFns__$j = [];
|
|
|
6685
6697
|
|
|
6686
6698
|
const __vue_inject_styles__$j = function (inject) {
|
|
6687
6699
|
if (!inject) return;
|
|
6688
|
-
inject("data-v-
|
|
6689
|
-
source: ".service-card[data-v-
|
|
6700
|
+
inject("data-v-bf751eca_0", {
|
|
6701
|
+
source: ".service-card[data-v-bf751eca]{display:flex;flex-direction:column;justify-content:center}.row[data-v-bf751eca]{display:flex;align-items:center;justify-content:center;margin-bottom:.5rem}.service-name[data-v-bf751eca]{margin-left:.25rem;margin-right:.25rem;margin-bottom:.5rem}.success-icon[data-v-bf751eca]{margin-right:.25rem}.error-icon[data-v-bf751eca]{margin-right:.25rem}.warning-icon[data-v-bf751eca]{margin-right:.25rem}.stats[data-v-bf751eca]{display:flex;align-items:center;margin-left:.5rem;margin-right:.5rem}",
|
|
6690
6702
|
map: undefined,
|
|
6691
6703
|
media: undefined
|
|
6692
6704
|
});
|
|
@@ -6694,7 +6706,7 @@ const __vue_inject_styles__$j = function (inject) {
|
|
|
6694
6706
|
/* scoped */
|
|
6695
6707
|
|
|
6696
6708
|
|
|
6697
|
-
const __vue_scope_id__$j = "data-v-
|
|
6709
|
+
const __vue_scope_id__$j = "data-v-bf751eca";
|
|
6698
6710
|
/* module identifier */
|
|
6699
6711
|
|
|
6700
6712
|
const __vue_module_identifier__$j = undefined;
|
|
@@ -6967,6 +6979,17 @@ var UtilService = {
|
|
|
6967
6979
|
|
|
6968
6980
|
reader.onerror = error => reject(error);
|
|
6969
6981
|
});
|
|
6982
|
+
},
|
|
6983
|
+
|
|
6984
|
+
/**
|
|
6985
|
+
* Navigate to a page of an external app. Use this method only from an external app (e.g. from AppSideMenuContent)
|
|
6986
|
+
*/
|
|
6987
|
+
goToAppPage(instanceName, page) {
|
|
6988
|
+
const path = `/apps/${instanceName}?page=${page}`;
|
|
6989
|
+
|
|
6990
|
+
if (this.core.$route.fullPath != path) {
|
|
6991
|
+
this.core.$router.push(path);
|
|
6992
|
+
}
|
|
6970
6993
|
}
|
|
6971
6994
|
|
|
6972
6995
|
}
|
|
@@ -8457,10 +8480,6 @@ var script$4 = {
|
|
|
8457
8480
|
type: String,
|
|
8458
8481
|
default: "No backup configured"
|
|
8459
8482
|
},
|
|
8460
|
-
scheduleBackupLabel: {
|
|
8461
|
-
type: String,
|
|
8462
|
-
default: "Configure"
|
|
8463
|
-
},
|
|
8464
8483
|
goToBackupLabel: {
|
|
8465
8484
|
type: String,
|
|
8466
8485
|
default: "Go to Backup"
|
|
@@ -8619,31 +8638,26 @@ var __vue_render__$a = function () {
|
|
|
8619
8638
|
staticClass: "mg-top-sm",
|
|
8620
8639
|
attrs: {
|
|
8621
8640
|
"paragraph": true,
|
|
8622
|
-
"line-count":
|
|
8641
|
+
"line-count": 2
|
|
8623
8642
|
}
|
|
8624
8643
|
})], 1) : !_vm.backupsContainingInstance.length ? [_c('div', {
|
|
8625
|
-
staticClass: "row"
|
|
8626
|
-
}, [_c('
|
|
8644
|
+
staticClass: "row icon-and-text"
|
|
8645
|
+
}, [_c('NsSvg', {
|
|
8646
|
+
staticClass: "icon ns-warning",
|
|
8627
8647
|
attrs: {
|
|
8628
|
-
"
|
|
8629
|
-
"title": _vm.noBackupMessage,
|
|
8630
|
-
"showCloseButton": false,
|
|
8631
|
-
"actionLabel": _vm.scheduleBackupLabel
|
|
8632
|
-
},
|
|
8633
|
-
on: {
|
|
8634
|
-
"action": _vm.goToBackup
|
|
8648
|
+
"svg": _vm.Warning16
|
|
8635
8649
|
}
|
|
8636
|
-
})], 1)] : [_c('div', {
|
|
8650
|
+
}), _vm._v(" "), _c('span', [_vm._v("\n " + _vm._s(_vm.noBackupMessage) + "\n ")])], 1)] : [_c('div', {
|
|
8637
8651
|
staticClass: "backups"
|
|
8638
8652
|
}, _vm._l(_vm.backupsContainingInstance, function (backup) {
|
|
8639
8653
|
return _c('div', {
|
|
8640
8654
|
key: backup.id,
|
|
8641
8655
|
staticClass: "backup"
|
|
8642
|
-
}, [_c('div', {
|
|
8656
|
+
}, [_vm.backupsContainingInstance.length > 1 ? _c('div', {
|
|
8643
8657
|
staticClass: "row"
|
|
8644
|
-
}, [
|
|
8645
|
-
staticClass: "title
|
|
8646
|
-
}, [_vm._v("\n " + _vm._s(backup.name) + "\n ")]) : _vm._e()
|
|
8658
|
+
}, [_c('h5', {
|
|
8659
|
+
staticClass: "title"
|
|
8660
|
+
}, [_vm._v("\n " + _vm._s(backup.name) + "\n ")])]) : _vm._e(), _vm._v(" "), _c('div', {
|
|
8647
8661
|
staticClass: "table-wrapper"
|
|
8648
8662
|
}, [_c('div', {
|
|
8649
8663
|
staticClass: "table"
|
|
@@ -8671,11 +8685,11 @@ var __vue_render__$a = function () {
|
|
|
8671
8685
|
"totalSizeLabel": _vm.totalSizeLabel,
|
|
8672
8686
|
"totalFileCountLabel": _vm.totalFileCountLabel
|
|
8673
8687
|
}
|
|
8674
|
-
}) : _vm._e()], 1)]), _vm._v(" "), _c('div', {
|
|
8688
|
+
}) : _vm._e()], 1)]), _vm._v(" "), _vm.backupsContainingInstance.length > 1 ? _c('div', {
|
|
8675
8689
|
staticClass: "table-wrapper"
|
|
8676
8690
|
}, [_c('div', {
|
|
8677
8691
|
staticClass: "table"
|
|
8678
|
-
}, [
|
|
8692
|
+
}, [_c('cv-accordion', {
|
|
8679
8693
|
ref: "accordion",
|
|
8680
8694
|
refInFor: true
|
|
8681
8695
|
}, [_c('cv-accordion-item', {
|
|
@@ -8696,7 +8710,7 @@ var __vue_render__$a = function () {
|
|
|
8696
8710
|
"totalSizeLabel": _vm.totalSizeLabel,
|
|
8697
8711
|
"totalFileCountLabel": _vm.totalFileCountLabel
|
|
8698
8712
|
}
|
|
8699
|
-
})], 1)], 2)], 1) : _vm._e()]
|
|
8713
|
+
})], 1)], 2)], 1)], 1)]) : _vm._e()]);
|
|
8700
8714
|
}), 0)], _vm._v(" "), _c('div', [_c('div', {
|
|
8701
8715
|
staticClass: "row mg-top-sm"
|
|
8702
8716
|
}, [_c('NsButton', {
|
|
@@ -8716,11 +8730,11 @@ var __vue_staticRenderFns__$a = [];
|
|
|
8716
8730
|
|
|
8717
8731
|
const __vue_inject_styles__$a = function (inject) {
|
|
8718
8732
|
if (!inject) return;
|
|
8719
|
-
inject("data-v-
|
|
8720
|
-
source: ".ns-backup-card[data-v-
|
|
8733
|
+
inject("data-v-5a3b7738_0", {
|
|
8734
|
+
source: ".ns-backup-card[data-v-5a3b7738]{display:flex;flex-direction:column;justify-content:center;min-height:7rem}.backup[data-v-5a3b7738]{margin-bottom:1rem}.backup[data-v-5a3b7738]:last-child{margin-bottom:0}.row[data-v-5a3b7738]{display:flex;align-items:center;justify-content:center;margin-bottom:.5rem}.title[data-v-5a3b7738]{margin-left:.25rem;margin-right:.25rem;margin-bottom:.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-wrapper[data-v-5a3b7738]{display:flex;justify-content:center;margin-bottom:.5rem}.table[data-v-5a3b7738]{display:table}.tr[data-v-5a3b7738]{display:table-row}.td[data-v-5a3b7738]{display:table-cell}.label[data-v-5a3b7738]{padding-right:.75rem;font-weight:700;text-align:right;padding-bottom:.5rem}.status[data-v-5a3b7738]{font-weight:700}.backup-status-icon[data-v-5a3b7738]{margin-right:.25rem}",
|
|
8721
8735
|
map: undefined,
|
|
8722
8736
|
media: undefined
|
|
8723
|
-
}), inject("data-v-
|
|
8737
|
+
}), inject("data-v-5a3b7738_1", {
|
|
8724
8738
|
source: ".ns-backup-card .bx--accordion--start .bx--accordion__content{margin-left:0}",
|
|
8725
8739
|
map: undefined,
|
|
8726
8740
|
media: undefined
|
|
@@ -8729,7 +8743,7 @@ const __vue_inject_styles__$a = function (inject) {
|
|
|
8729
8743
|
/* scoped */
|
|
8730
8744
|
|
|
8731
8745
|
|
|
8732
|
-
const __vue_scope_id__$a = "data-v-
|
|
8746
|
+
const __vue_scope_id__$a = "data-v-5a3b7738";
|
|
8733
8747
|
/* module identifier */
|
|
8734
8748
|
|
|
8735
8749
|
const __vue_module_identifier__$a = undefined;
|
|
@@ -9091,6 +9105,10 @@ var script = {
|
|
|
9091
9105
|
type: String,
|
|
9092
9106
|
default: "Go to System logs"
|
|
9093
9107
|
},
|
|
9108
|
+
router: {
|
|
9109
|
+
type: Object,
|
|
9110
|
+
default: null
|
|
9111
|
+
},
|
|
9094
9112
|
context: {
|
|
9095
9113
|
type: String,
|
|
9096
9114
|
default: "cluster",
|
|
@@ -9181,8 +9199,8 @@ var script = {
|
|
|
9181
9199
|
},
|
|
9182
9200
|
methods: {
|
|
9183
9201
|
goToLogs() {
|
|
9184
|
-
if (this
|
|
9185
|
-
this
|
|
9202
|
+
if (this.router) {
|
|
9203
|
+
this.router.push(this.logsUrl);
|
|
9186
9204
|
}
|
|
9187
9205
|
}
|
|
9188
9206
|
|
|
@@ -9226,7 +9244,7 @@ var __vue_staticRenderFns__$6 = [];
|
|
|
9226
9244
|
const __vue_inject_styles__$6 = undefined;
|
|
9227
9245
|
/* scoped */
|
|
9228
9246
|
|
|
9229
|
-
const __vue_scope_id__$6 = "data-v-
|
|
9247
|
+
const __vue_scope_id__$6 = "data-v-aec74b8e";
|
|
9230
9248
|
/* module identifier */
|
|
9231
9249
|
|
|
9232
9250
|
const __vue_module_identifier__$6 = undefined;
|