bfg-common 1.0.95 → 1.0.97
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/components/atoms/alert/Notification.vue +167 -167
- package/components/atoms/autocomplete/Autocomplete.vue +236 -236
- package/components/atoms/datepicker/Datepicker.vue +612 -612
- package/components/atoms/list/SelectList.vue +62 -62
- package/components/atoms/nav/NavBar.vue +116 -116
- package/components/atoms/nav/VerticalNavBar.vue +89 -89
- package/components/atoms/notificationBar/NotificationBar.vue +174 -174
- package/components/atoms/perPage/PerPage.vue +52 -52
- package/components/atoms/popup/SimplePopup.vue +90 -90
- package/components/atoms/step/VerticalStep.vue +104 -104
- package/components/atoms/switch/Switch.vue +107 -107
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +204 -204
- package/components/atoms/table/dataGrid/DataGridPage.vue +189 -189
- package/components/atoms/tabs/Tabs.vue +189 -189
- package/components/atoms/tooltip/Signpost.vue +224 -224
- package/components/common/adapterManager/AddAdapterWarningModal.vue +82 -82
- package/components/common/adapterManager/NoActiveAdaptersModal.vue +62 -62
- package/components/common/adapterManager/NoConnectedActiveAdaptersModal.vue +62 -62
- package/components/common/browse/Browse.vue +182 -182
- package/components/common/browse/blocks/Title.vue +66 -66
- package/components/common/content/navbar/left/Left.vue +139 -139
- package/components/common/content/navbar/left/utils/constructAccordion.ts +27 -27
- package/components/common/diagramMain/adapter/AdapterItem.vue +227 -227
- package/components/common/diagramMain/adapter/AdapterItems.vue +57 -57
- package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +339 -339
- package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +202 -202
- package/components/common/diagramMain/modals/remove/RemoveModal.vue +226 -226
- package/components/common/diagramMain/network/Contents.vue +238 -238
- package/components/common/feedback/Buttons.vue +232 -232
- package/components/common/feedback/Message.vue +468 -468
- package/components/common/feedback/VisitPortal.vue +54 -54
- package/components/common/home/Card.vue +63 -0
- package/components/common/home/ResourceBlock.vue +117 -0
- package/components/common/home/StatusContent.vue +47 -0
- package/components/common/home/alertsTable/AlertsTable.vue +105 -0
- package/components/common/home/alertsTable/config/config.ts +61 -0
- package/components/common/home/alertsTable/models/enums.ts +11 -0
- package/components/common/home/alertsTable/models/interfaces.ts +19 -0
- package/components/common/home/alertsTable/models/types.ts +17 -0
- package/components/common/home/config/configResourceMeterBlock.ts +25 -0
- package/components/common/home/models/interfaces.ts +59 -0
- package/components/common/home/models/types.ts +18 -0
- package/components/common/home/servicesTable/ServicesTable.vue +79 -0
- package/components/common/home/servicesTable/config/config.ts +62 -0
- package/components/common/mainNavigationPanel/MainNavigationPanel.vue +359 -359
- package/components/common/modals/Rename.vue +165 -165
- package/components/common/perPage/PerPage.vue +51 -51
- package/components/common/recursionTree/RecursionTree.vue +201 -201
- package/components/common/wizards/datastore/add/nfs/configuration/Configuration.vue +373 -373
- package/components/common/wizards/datastore/add/nfs/configuration/serversList/ServersList.vue +123 -123
- package/components/common/wizards/datastore/add/nfs/kerberosAuthentication/KerberosAuthentication.vue +54 -54
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/HostTable.vue +131 -131
- package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/PartitionConfiguration.vue +230 -230
- package/models/store/storage/interfaces.ts +32 -32
- package/modules/fixContentBuild/index.ts +117 -65
- package/package.json +1 -1
- package/public/spice-console/application/codec.js +257 -257
- package/public/spice-console/lib/rasterEngine.js +907 -907
- package/public/spice-console/network/spicechannel.js +369 -369
- package/public/spice-console-minify/lib/decoder/dixie.min.js +4 -4
- package/public/spice-console-minify/lib/jgestures.min.js +24 -24
- package/public/spice-console-minify/lib/jquery-2.0.3.min.js +24 -24
- package/public/spice-console-minify/lib/jquery-mousewheel.min.js +11 -11
- package/public/spice-console-minify/lib/jquery-visibility.min.js +1 -1
- package/public/spice-console-minify/lib/lodash.4.0.0.min.js +5 -5
- package/utils/contentBuild.ts +0 -34
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="most-alert">
|
|
3
|
+
<atoms-table-data-grid
|
|
4
|
+
v-model:selected-row="selectedRow"
|
|
5
|
+
v-model:page-size="pageSize"
|
|
6
|
+
v-model:page="page"
|
|
7
|
+
class="data-table"
|
|
8
|
+
:head-items="headItems"
|
|
9
|
+
:body-items="bodyItems"
|
|
10
|
+
:total-items="bodyItems.length"
|
|
11
|
+
:total-pages="1"
|
|
12
|
+
off-select-by-row
|
|
13
|
+
hide-page-size
|
|
14
|
+
show-page-info
|
|
15
|
+
server-off
|
|
16
|
+
>
|
|
17
|
+
<template #icon="{ item }">
|
|
18
|
+
<span :class="['datagrid-cell-icon', item.data.iconClassName]" />
|
|
19
|
+
<span class="text-ellipsis">
|
|
20
|
+
{{ item.text }}
|
|
21
|
+
</span>
|
|
22
|
+
</template>
|
|
23
|
+
</atoms-table-data-grid>
|
|
24
|
+
</div>
|
|
25
|
+
</template>
|
|
26
|
+
|
|
27
|
+
<script setup lang="ts">
|
|
28
|
+
import type {
|
|
29
|
+
UI_I_HeadItem,
|
|
30
|
+
UI_I_BodyItem,
|
|
31
|
+
} from '~/components/atoms/table/dataGrid/models/interfaces'
|
|
32
|
+
import type { UI_T_SelectedRow } from '~/components/atoms/table/dataGrid/models/types'
|
|
33
|
+
import type { UI_I_Localization } from '~/models/interfaces'
|
|
34
|
+
import type { UI_I_Service } from '~/components/common/home/models/interfaces'
|
|
35
|
+
import * as table from '~/components/common/home/servicesTable/config/config'
|
|
36
|
+
|
|
37
|
+
const props = defineProps<{
|
|
38
|
+
dataTable: UI_I_Service[]
|
|
39
|
+
}>()
|
|
40
|
+
|
|
41
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
42
|
+
|
|
43
|
+
const selectedRow = ref<UI_T_SelectedRow>(null)
|
|
44
|
+
const headItems = computed<UI_I_HeadItem[]>(() =>
|
|
45
|
+
table.headItems(localization.value)
|
|
46
|
+
)
|
|
47
|
+
const bodyItems = ref<UI_I_BodyItem[][]>([])
|
|
48
|
+
watch(
|
|
49
|
+
() => props.dataTable,
|
|
50
|
+
(newValue) => {
|
|
51
|
+
if (!newValue?.length) {
|
|
52
|
+
bodyItems.value = []
|
|
53
|
+
return
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
bodyItems.value = table.bodyItems(newValue)
|
|
57
|
+
},
|
|
58
|
+
{ deep: true, immediate: true }
|
|
59
|
+
)
|
|
60
|
+
const page = ref<number>(1)
|
|
61
|
+
const pageSize = ref<number>(1)
|
|
62
|
+
</script>
|
|
63
|
+
|
|
64
|
+
<style lang="scss" scoped>
|
|
65
|
+
.most-alert {
|
|
66
|
+
margin: 0;
|
|
67
|
+
border: none;
|
|
68
|
+
|
|
69
|
+
:deep(.datagrid-outer-wrapper) {
|
|
70
|
+
padding: 0;
|
|
71
|
+
|
|
72
|
+
.datagrid {
|
|
73
|
+
margin: 0;
|
|
74
|
+
border: unset;
|
|
75
|
+
min-height: 200px;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
</style>
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
UI_I_BodyItem,
|
|
3
|
+
UI_I_HeadItem,
|
|
4
|
+
} from '~/components/atoms/table/dataGrid/models/interfaces'
|
|
5
|
+
import type { UI_I_Localization } from '~/models/interfaces'
|
|
6
|
+
import { constructHeadItem } from '~/components/atoms/table/dataGrid/utils/constructDataTable'
|
|
7
|
+
import type { UI_T_ServiceColumnKeys } from '~/components/common/home/models/types'
|
|
8
|
+
import type { UI_I_Service } from '~/components/common/home/models/interfaces'
|
|
9
|
+
|
|
10
|
+
export const servicesTableKeys: UI_T_ServiceColumnKeys[] = [
|
|
11
|
+
'item',
|
|
12
|
+
'statusText',
|
|
13
|
+
'statusIcon',
|
|
14
|
+
'version',
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
const getItems = (
|
|
18
|
+
localization: UI_I_Localization
|
|
19
|
+
): [string, boolean, string, string][] => {
|
|
20
|
+
return [
|
|
21
|
+
[localization.item, true, '34%', servicesTableKeys[0]],
|
|
22
|
+
[localization.status, true, '33%', servicesTableKeys[1]],
|
|
23
|
+
[localization.version, true, '33%', servicesTableKeys[2]],
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export const headItems = (localization: UI_I_Localization): UI_I_HeadItem[] => {
|
|
28
|
+
const result: UI_I_HeadItem[] = []
|
|
29
|
+
getItems(localization).forEach((item, i) => {
|
|
30
|
+
const col = i === 1 ? 'icon' : `col${i + 1}`
|
|
31
|
+
result.push(constructHeadItem(col, item[0], item[3], true, item[2]))
|
|
32
|
+
})
|
|
33
|
+
return result
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export const bodyItems = (data: UI_I_Service[]): UI_I_BodyItem[][] => {
|
|
37
|
+
const bodyItems: UI_I_BodyItem[][] = []
|
|
38
|
+
data.forEach((service: UI_I_Service, key) => {
|
|
39
|
+
const statusData = {
|
|
40
|
+
iconClassName: `vsphere-icon-status-${service.statusIcon}`,
|
|
41
|
+
}
|
|
42
|
+
bodyItems.push([
|
|
43
|
+
{
|
|
44
|
+
key: 'col1',
|
|
45
|
+
text: service[servicesTableKeys[0]].toString(),
|
|
46
|
+
id: key,
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
key: 'icon',
|
|
50
|
+
text: service[servicesTableKeys[1]].toString(),
|
|
51
|
+
data: statusData,
|
|
52
|
+
id: key,
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
key: 'col3',
|
|
56
|
+
text: service[servicesTableKeys[2]].toString(),
|
|
57
|
+
id: key,
|
|
58
|
+
},
|
|
59
|
+
])
|
|
60
|
+
})
|
|
61
|
+
return bodyItems
|
|
62
|
+
}
|