@nethserver/ns8-ui-lib 0.0.66 → 0.0.67
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 +41 -37
- package/dist/ns8-ui-lib.min.js +1 -1
- package/dist/ns8-ui-lib.ssr.js +45 -41
- package/package.json +1 -1
- package/src/lib-components/NsBackupCard.vue +17 -23
- 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.ssr.js
CHANGED
|
@@ -5980,6 +5980,10 @@ var script$f = {
|
|
|
5980
5980
|
type: String,
|
|
5981
5981
|
required: false
|
|
5982
5982
|
},
|
|
5983
|
+
titleTooltip: {
|
|
5984
|
+
type: String,
|
|
5985
|
+
required: false
|
|
5986
|
+
},
|
|
5983
5987
|
icon: {
|
|
5984
5988
|
type: [String, Object],
|
|
5985
5989
|
default: undefined,
|
|
@@ -6047,9 +6051,17 @@ var __vue_render__$l = function __vue_render__() {
|
|
|
6047
6051
|
}
|
|
6048
6052
|
})], 1) : [_vm.title ? _c('div', {
|
|
6049
6053
|
staticClass: "row"
|
|
6054
|
+
}, [_vm.titleTooltip ? _c('cv-tooltip', {
|
|
6055
|
+
attrs: {
|
|
6056
|
+
"alignment": "center",
|
|
6057
|
+
"direction": "bottom",
|
|
6058
|
+
"tip": _vm.titleTooltip
|
|
6059
|
+
}
|
|
6050
6060
|
}, [_c('h3', {
|
|
6051
6061
|
staticClass: "title"
|
|
6052
|
-
}, [_vm._v(_vm._s(_vm.title))])]) :
|
|
6062
|
+
}, [_vm._v("\n " + _vm._s(_vm.title) + "\n ")])]) : _c('h3', {
|
|
6063
|
+
staticClass: "title"
|
|
6064
|
+
}, [_vm._v(_vm._s(_vm.title))])], 1) : _vm._e(), _vm._v(" "), _vm.description ? _c('div', {
|
|
6053
6065
|
staticClass: "row"
|
|
6054
6066
|
}, [_c('div', {
|
|
6055
6067
|
staticClass: "description"
|
|
@@ -6063,8 +6075,8 @@ var __vue_staticRenderFns__$l = [];
|
|
|
6063
6075
|
|
|
6064
6076
|
var __vue_inject_styles__$l = function __vue_inject_styles__(inject) {
|
|
6065
6077
|
if (!inject) return;
|
|
6066
|
-
inject("data-v-
|
|
6067
|
-
source: ".info-card[data-v-
|
|
6078
|
+
inject("data-v-aefc1c3e_0", {
|
|
6079
|
+
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}",
|
|
6068
6080
|
map: undefined,
|
|
6069
6081
|
media: undefined
|
|
6070
6082
|
});
|
|
@@ -6072,10 +6084,10 @@ var __vue_inject_styles__$l = function __vue_inject_styles__(inject) {
|
|
|
6072
6084
|
/* scoped */
|
|
6073
6085
|
|
|
6074
6086
|
|
|
6075
|
-
var __vue_scope_id__$l = "data-v-
|
|
6087
|
+
var __vue_scope_id__$l = "data-v-aefc1c3e";
|
|
6076
6088
|
/* module identifier */
|
|
6077
6089
|
|
|
6078
|
-
var __vue_module_identifier__$l = "data-v-
|
|
6090
|
+
var __vue_module_identifier__$l = "data-v-aefc1c3e";
|
|
6079
6091
|
/* functional template */
|
|
6080
6092
|
|
|
6081
6093
|
var __vue_is_functional_template__$l = false;
|
|
@@ -6342,8 +6354,8 @@ var __vue_staticRenderFns__$j = [];
|
|
|
6342
6354
|
|
|
6343
6355
|
var __vue_inject_styles__$j = function __vue_inject_styles__(inject) {
|
|
6344
6356
|
if (!inject) return;
|
|
6345
|
-
inject("data-v-
|
|
6346
|
-
source: ".service-card[data-v-
|
|
6357
|
+
inject("data-v-bf751eca_0", {
|
|
6358
|
+
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}",
|
|
6347
6359
|
map: undefined,
|
|
6348
6360
|
media: undefined
|
|
6349
6361
|
});
|
|
@@ -6351,10 +6363,10 @@ var __vue_inject_styles__$j = function __vue_inject_styles__(inject) {
|
|
|
6351
6363
|
/* scoped */
|
|
6352
6364
|
|
|
6353
6365
|
|
|
6354
|
-
var __vue_scope_id__$j = "data-v-
|
|
6366
|
+
var __vue_scope_id__$j = "data-v-bf751eca";
|
|
6355
6367
|
/* module identifier */
|
|
6356
6368
|
|
|
6357
|
-
var __vue_module_identifier__$j = "data-v-
|
|
6369
|
+
var __vue_module_identifier__$j = "data-v-bf751eca";
|
|
6358
6370
|
/* functional template */
|
|
6359
6371
|
|
|
6360
6372
|
var __vue_is_functional_template__$j = false;
|
|
@@ -7802,10 +7814,6 @@ var NsBackupCardDetails = __vue_component__$m;var script$4 = {
|
|
|
7802
7814
|
type: String,
|
|
7803
7815
|
default: "No backup configured"
|
|
7804
7816
|
},
|
|
7805
|
-
scheduleBackupLabel: {
|
|
7806
|
-
type: String,
|
|
7807
|
-
default: "Configure"
|
|
7808
|
-
},
|
|
7809
7817
|
goToBackupLabel: {
|
|
7810
7818
|
type: String,
|
|
7811
7819
|
default: "Go to Backup"
|
|
@@ -7997,28 +8005,20 @@ var __vue_render__$a = function __vue_render__() {
|
|
|
7997
8005
|
"line-count": 5
|
|
7998
8006
|
}
|
|
7999
8007
|
})], 1) : !_vm.backupsContainingInstance.length ? [_c('div', {
|
|
8000
|
-
staticClass: "row"
|
|
8001
|
-
}, [_c('
|
|
8002
|
-
|
|
8003
|
-
|
|
8004
|
-
"title": _vm.noBackupMessage,
|
|
8005
|
-
"showCloseButton": false,
|
|
8006
|
-
"actionLabel": _vm.scheduleBackupLabel
|
|
8007
|
-
},
|
|
8008
|
-
on: {
|
|
8009
|
-
"action": _vm.goToBackup
|
|
8010
|
-
}
|
|
8011
|
-
})], 1)] : [_c('div', {
|
|
8008
|
+
staticClass: "row no-backup"
|
|
8009
|
+
}, [_c('span', {
|
|
8010
|
+
staticClass: "ns-warning"
|
|
8011
|
+
}, [_vm._v("\n " + _vm._s(_vm.noBackupMessage) + "\n ")])])] : [_c('div', {
|
|
8012
8012
|
staticClass: "backups"
|
|
8013
8013
|
}, _vm._l(_vm.backupsContainingInstance, function (backup) {
|
|
8014
8014
|
return _c('div', {
|
|
8015
8015
|
key: backup.id,
|
|
8016
8016
|
staticClass: "backup"
|
|
8017
|
-
}, [_c('div', {
|
|
8017
|
+
}, [_vm.backupsContainingInstance.length > 1 ? _c('div', {
|
|
8018
8018
|
staticClass: "row"
|
|
8019
|
-
}, [
|
|
8020
|
-
staticClass: "title
|
|
8021
|
-
}, [_vm._v("\n " + _vm._s(backup.name) + "\n ")]) : _vm._e()
|
|
8019
|
+
}, [_c('h5', {
|
|
8020
|
+
staticClass: "title"
|
|
8021
|
+
}, [_vm._v("\n " + _vm._s(backup.name) + "\n ")])]) : _vm._e(), _vm._v(" "), _c('div', {
|
|
8022
8022
|
staticClass: "table-wrapper"
|
|
8023
8023
|
}, [_c('div', {
|
|
8024
8024
|
staticClass: "table"
|
|
@@ -8046,11 +8046,11 @@ var __vue_render__$a = function __vue_render__() {
|
|
|
8046
8046
|
"totalSizeLabel": _vm.totalSizeLabel,
|
|
8047
8047
|
"totalFileCountLabel": _vm.totalFileCountLabel
|
|
8048
8048
|
}
|
|
8049
|
-
}) : _vm._e()], 1)]), _vm._v(" "), _c('div', {
|
|
8049
|
+
}) : _vm._e()], 1)]), _vm._v(" "), _vm.backupsContainingInstance.length > 1 ? _c('div', {
|
|
8050
8050
|
staticClass: "table-wrapper"
|
|
8051
8051
|
}, [_c('div', {
|
|
8052
8052
|
staticClass: "table"
|
|
8053
|
-
}, [
|
|
8053
|
+
}, [_c('cv-accordion', {
|
|
8054
8054
|
ref: "accordion",
|
|
8055
8055
|
refInFor: true
|
|
8056
8056
|
}, [_c('cv-accordion-item', {
|
|
@@ -8071,7 +8071,7 @@ var __vue_render__$a = function __vue_render__() {
|
|
|
8071
8071
|
"totalSizeLabel": _vm.totalSizeLabel,
|
|
8072
8072
|
"totalFileCountLabel": _vm.totalFileCountLabel
|
|
8073
8073
|
}
|
|
8074
|
-
})], 1)], 2)], 1) : _vm._e()]
|
|
8074
|
+
})], 1)], 2)], 1)], 1)]) : _vm._e()]);
|
|
8075
8075
|
}), 0)], _vm._v(" "), _c('div', [_c('div', {
|
|
8076
8076
|
staticClass: "row mg-top-sm"
|
|
8077
8077
|
}, [_c('NsButton', {
|
|
@@ -8091,11 +8091,11 @@ var __vue_staticRenderFns__$a = [];
|
|
|
8091
8091
|
|
|
8092
8092
|
var __vue_inject_styles__$a = function __vue_inject_styles__(inject) {
|
|
8093
8093
|
if (!inject) return;
|
|
8094
|
-
inject("data-v-
|
|
8095
|
-
source: ".ns-backup-card[data-v-
|
|
8094
|
+
inject("data-v-9ef09a4e_0", {
|
|
8095
|
+
source: ".ns-backup-card[data-v-9ef09a4e]{display:flex;flex-direction:column;justify-content:center;min-height:7rem}.backup[data-v-9ef09a4e]{margin-bottom:1rem}.backup[data-v-9ef09a4e]:last-child{margin-bottom:0}.row[data-v-9ef09a4e]{display:flex;align-items:center;justify-content:center;margin-bottom:.5rem}.title[data-v-9ef09a4e]{margin-left:.25rem;margin-right:.25rem;margin-bottom:.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-wrapper[data-v-9ef09a4e]{display:flex;justify-content:center;margin-bottom:.5rem}.table[data-v-9ef09a4e]{display:table}.tr[data-v-9ef09a4e]{display:table-row}.td[data-v-9ef09a4e]{display:table-cell}.label[data-v-9ef09a4e]{padding-right:.75rem;font-weight:700;text-align:right;padding-bottom:.5rem}.status[data-v-9ef09a4e]{font-weight:700}.backup-status-icon[data-v-9ef09a4e]{margin-right:.25rem}.no-backup[data-v-9ef09a4e]{font-weight:700}",
|
|
8096
8096
|
map: undefined,
|
|
8097
8097
|
media: undefined
|
|
8098
|
-
}), inject("data-v-
|
|
8098
|
+
}), inject("data-v-9ef09a4e_1", {
|
|
8099
8099
|
source: ".ns-backup-card .bx--accordion--start .bx--accordion__content{margin-left:0}",
|
|
8100
8100
|
map: undefined,
|
|
8101
8101
|
media: undefined
|
|
@@ -8104,10 +8104,10 @@ var __vue_inject_styles__$a = function __vue_inject_styles__(inject) {
|
|
|
8104
8104
|
/* scoped */
|
|
8105
8105
|
|
|
8106
8106
|
|
|
8107
|
-
var __vue_scope_id__$a = "data-v-
|
|
8107
|
+
var __vue_scope_id__$a = "data-v-9ef09a4e";
|
|
8108
8108
|
/* module identifier */
|
|
8109
8109
|
|
|
8110
|
-
var __vue_module_identifier__$a = "data-v-
|
|
8110
|
+
var __vue_module_identifier__$a = "data-v-9ef09a4e";
|
|
8111
8111
|
/* functional template */
|
|
8112
8112
|
|
|
8113
8113
|
var __vue_is_functional_template__$a = false;
|
|
@@ -8388,6 +8388,10 @@ var script = {
|
|
|
8388
8388
|
type: String,
|
|
8389
8389
|
default: "Go to System logs"
|
|
8390
8390
|
},
|
|
8391
|
+
router: {
|
|
8392
|
+
type: Object,
|
|
8393
|
+
default: null
|
|
8394
|
+
},
|
|
8391
8395
|
context: {
|
|
8392
8396
|
type: String,
|
|
8393
8397
|
default: "cluster",
|
|
@@ -8479,8 +8483,8 @@ var script = {
|
|
|
8479
8483
|
},
|
|
8480
8484
|
methods: {
|
|
8481
8485
|
goToLogs: function goToLogs() {
|
|
8482
|
-
if (this
|
|
8483
|
-
this
|
|
8486
|
+
if (this.router) {
|
|
8487
|
+
this.router.push(this.logsUrl);
|
|
8484
8488
|
}
|
|
8485
8489
|
}
|
|
8486
8490
|
}
|
|
@@ -8521,10 +8525,10 @@ var __vue_staticRenderFns__$6 = [];
|
|
|
8521
8525
|
var __vue_inject_styles__$6 = undefined;
|
|
8522
8526
|
/* scoped */
|
|
8523
8527
|
|
|
8524
|
-
var __vue_scope_id__$6 = "data-v-
|
|
8528
|
+
var __vue_scope_id__$6 = "data-v-aec74b8e";
|
|
8525
8529
|
/* module identifier */
|
|
8526
8530
|
|
|
8527
|
-
var __vue_module_identifier__$6 = "data-v-
|
|
8531
|
+
var __vue_module_identifier__$6 = "data-v-aec74b8e";
|
|
8528
8532
|
/* functional template */
|
|
8529
8533
|
|
|
8530
8534
|
var __vue_is_functional_template__$6 = false;
|
package/package.json
CHANGED
|
@@ -15,15 +15,11 @@
|
|
|
15
15
|
></cv-skeleton-text>
|
|
16
16
|
</div>
|
|
17
17
|
<template v-else-if="!backupsContainingInstance.length">
|
|
18
|
-
<div class="row">
|
|
18
|
+
<div class="row no-backup">
|
|
19
19
|
<!-- no backup -->
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
:showCloseButton="false"
|
|
24
|
-
:actionLabel="scheduleBackupLabel"
|
|
25
|
-
@action="goToBackup"
|
|
26
|
-
/>
|
|
20
|
+
<span class="ns-warning">
|
|
21
|
+
{{ noBackupMessage }}
|
|
22
|
+
</span>
|
|
27
23
|
</div>
|
|
28
24
|
</template>
|
|
29
25
|
<template v-else>
|
|
@@ -33,11 +29,8 @@
|
|
|
33
29
|
:key="backup.id"
|
|
34
30
|
class="backup"
|
|
35
31
|
>
|
|
36
|
-
<div class="row">
|
|
37
|
-
<h5
|
|
38
|
-
v-if="backupsContainingInstance.length > 1"
|
|
39
|
-
class="title mg-top-sm"
|
|
40
|
-
>
|
|
32
|
+
<div v-if="backupsContainingInstance.length > 1" class="row">
|
|
33
|
+
<h5 class="title">
|
|
41
34
|
{{ backup.name }}
|
|
42
35
|
</h5>
|
|
43
36
|
</div>
|
|
@@ -83,12 +76,12 @@
|
|
|
83
76
|
/>
|
|
84
77
|
</div>
|
|
85
78
|
</div>
|
|
86
|
-
<div
|
|
79
|
+
<div
|
|
80
|
+
v-if="backupsContainingInstance.length > 1"
|
|
81
|
+
class="table-wrapper"
|
|
82
|
+
>
|
|
87
83
|
<div class="table">
|
|
88
|
-
<cv-accordion
|
|
89
|
-
v-if="backupsContainingInstance.length > 1"
|
|
90
|
-
ref="accordion"
|
|
91
|
-
>
|
|
84
|
+
<cv-accordion ref="accordion">
|
|
92
85
|
<cv-accordion-item :open="toggleAccordion[0]">
|
|
93
86
|
<template slot="title">{{ showMoreLabel }}</template>
|
|
94
87
|
<template slot="content">
|
|
@@ -140,10 +133,6 @@ export default {
|
|
|
140
133
|
type: String,
|
|
141
134
|
default: "No backup configured",
|
|
142
135
|
},
|
|
143
|
-
scheduleBackupLabel: {
|
|
144
|
-
type: String,
|
|
145
|
-
default: "Configure",
|
|
146
|
-
},
|
|
147
136
|
goToBackupLabel: {
|
|
148
137
|
type: String,
|
|
149
138
|
default: "Go to Backup",
|
|
@@ -292,6 +281,7 @@ export default {
|
|
|
292
281
|
.title {
|
|
293
282
|
margin-left: 0.25rem;
|
|
294
283
|
margin-right: 0.25rem;
|
|
284
|
+
margin-bottom: 0.5rem;
|
|
295
285
|
overflow: hidden;
|
|
296
286
|
text-overflow: ellipsis;
|
|
297
287
|
white-space: nowrap;
|
|
@@ -300,7 +290,7 @@ export default {
|
|
|
300
290
|
.table-wrapper {
|
|
301
291
|
display: flex;
|
|
302
292
|
justify-content: center;
|
|
303
|
-
margin-
|
|
293
|
+
margin-bottom: 0.5rem;
|
|
304
294
|
}
|
|
305
295
|
|
|
306
296
|
.table {
|
|
@@ -329,6 +319,10 @@ export default {
|
|
|
329
319
|
.backup-status-icon {
|
|
330
320
|
margin-right: 0.25rem;
|
|
331
321
|
}
|
|
322
|
+
|
|
323
|
+
.no-backup {
|
|
324
|
+
font-weight: bold;
|
|
325
|
+
}
|
|
332
326
|
</style>
|
|
333
327
|
|
|
334
328
|
<style lang="scss">
|
|
@@ -23,7 +23,19 @@
|
|
|
23
23
|
</div>
|
|
24
24
|
<template v-else>
|
|
25
25
|
<div v-if="title" class="row">
|
|
26
|
-
|
|
26
|
+
<!-- title tooltip -->
|
|
27
|
+
<cv-tooltip
|
|
28
|
+
v-if="titleTooltip"
|
|
29
|
+
alignment="center"
|
|
30
|
+
direction="bottom"
|
|
31
|
+
:tip="titleTooltip"
|
|
32
|
+
>
|
|
33
|
+
<h3 class="title">
|
|
34
|
+
{{ title }}
|
|
35
|
+
</h3>
|
|
36
|
+
</cv-tooltip>
|
|
37
|
+
<!-- no title tooltip -->
|
|
38
|
+
<h3 v-else class="title">{{ title }}</h3>
|
|
27
39
|
</div>
|
|
28
40
|
<div v-if="description" class="row">
|
|
29
41
|
<div class="description">{{ description }}</div>
|
|
@@ -52,6 +64,10 @@ export default {
|
|
|
52
64
|
type: String,
|
|
53
65
|
required: false,
|
|
54
66
|
},
|
|
67
|
+
titleTooltip: {
|
|
68
|
+
type: String,
|
|
69
|
+
required: false,
|
|
70
|
+
},
|
|
55
71
|
icon: {
|
|
56
72
|
type: [String, Object],
|
|
57
73
|
default: undefined,
|
|
@@ -105,6 +121,7 @@ export default {
|
|
|
105
121
|
.title {
|
|
106
122
|
margin-left: 0.25rem;
|
|
107
123
|
margin-right: 0.25rem;
|
|
124
|
+
margin-bottom: 0.5rem;
|
|
108
125
|
overflow: hidden;
|
|
109
126
|
text-overflow: ellipsis;
|
|
110
127
|
white-space: nowrap;
|
|
@@ -33,6 +33,10 @@ export default {
|
|
|
33
33
|
type: String,
|
|
34
34
|
default: "Go to System logs",
|
|
35
35
|
},
|
|
36
|
+
router: {
|
|
37
|
+
type: Object,
|
|
38
|
+
default: null,
|
|
39
|
+
},
|
|
36
40
|
context: {
|
|
37
41
|
type: String,
|
|
38
42
|
default: "cluster",
|
|
@@ -121,8 +125,8 @@ export default {
|
|
|
121
125
|
},
|
|
122
126
|
methods: {
|
|
123
127
|
goToLogs() {
|
|
124
|
-
if (this
|
|
125
|
-
this
|
|
128
|
+
if (this.router) {
|
|
129
|
+
this.router.push(this.logsUrl);
|
|
126
130
|
}
|
|
127
131
|
},
|
|
128
132
|
},
|