bfg-common 1.5.762 → 1.5.763
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/common/browse/blocks/lib/models/types.ts +1 -1
- package/components/common/browse/lib/models/interfaces.ts +5 -5
- package/components/common/configure/securityProfile/SecurityProfile.vue +13 -0
- package/components/common/configure/securityProfile/lockdownMode/LockdownMode.vue +94 -0
- package/components/common/configure/securityProfile/lockdownMode/lib/utils/constructData.ts +27 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/LockdownModeEdit.vue +60 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/New.vue +5 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/Old.vue +150 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/ExceptionUsers.vue +28 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/New.vue +5 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/Old.vue +137 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/config/table.ts +43 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/config/tableKeys.ts +6 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/models/types.ts +1 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lib/config/tabs.ts +19 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/LockdownMode.vue +22 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/New.vue +5 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/Old.vue +76 -0
- package/components/common/configure/securityProfile/lockdownMode/tools/New.vue +5 -0
- package/components/common/configure/securityProfile/lockdownMode/tools/Old.vue +30 -0
- package/components/common/configure/securityProfile/lockdownMode/tools/Tools.vue +24 -0
- package/components/common/diagramMain/modals/lib/config/vCenterModal.ts +48 -48
- package/components/common/diagramMain/network/Contents.vue +497 -497
- package/components/common/diagramMain/port/Port.vue +580 -580
- package/package.json +1 -1
- package/plugins/time.ts +58 -58
- package/store/inventory/modules/configure/securityProfile/lib/models/interfaces.ts +12 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="lockdown-mode">
|
|
3
|
+
<h5 class="font-bold">{{ localization.common.lockdownMode }}</h5>
|
|
4
|
+
<p>{{ localization.configureSecurityProfile.lockdownModeDesc }}</p>
|
|
5
|
+
|
|
6
|
+
<div class="clr-form-control">
|
|
7
|
+
<label class="clr-col-12 clr-col-md-12 clr-control-label">
|
|
8
|
+
{{ localization.configureSecurityProfile.specifyHostLockdownMode }}
|
|
9
|
+
</label>
|
|
10
|
+
<div class="radio-content">
|
|
11
|
+
<div class="label-content">
|
|
12
|
+
<div class="flex-align-center">
|
|
13
|
+
<input
|
|
14
|
+
id="disabledValue"
|
|
15
|
+
v-model="form.lockdownMode"
|
|
16
|
+
type="radio"
|
|
17
|
+
class="custom-radio-button absolute"
|
|
18
|
+
value="disabled"
|
|
19
|
+
name="lockdownMode"
|
|
20
|
+
/>
|
|
21
|
+
<label for="disabledValue" class="custom-radio-label">
|
|
22
|
+
{{ localization.common.disabled }}
|
|
23
|
+
</label>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="radio-content">
|
|
28
|
+
<div class="label-content">
|
|
29
|
+
<div class="flex-align-center">
|
|
30
|
+
<input
|
|
31
|
+
id="normalValue"
|
|
32
|
+
v-model="form.lockdownMode"
|
|
33
|
+
type="radio"
|
|
34
|
+
class="custom-radio-button absolute"
|
|
35
|
+
value="normal"
|
|
36
|
+
name="lockdownMode"
|
|
37
|
+
/>
|
|
38
|
+
<label for="normalValue" class="custom-radio-label">
|
|
39
|
+
{{ localization.common.normal }}
|
|
40
|
+
</label>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
<div class="radio-content">
|
|
45
|
+
<div class="label-content">
|
|
46
|
+
<div class="flex-align-center">
|
|
47
|
+
<input
|
|
48
|
+
id="strictValue"
|
|
49
|
+
v-model="form.lockdownMode"
|
|
50
|
+
type="radio"
|
|
51
|
+
class="custom-radio-button absolute"
|
|
52
|
+
value="strict"
|
|
53
|
+
name="lockdownMode"
|
|
54
|
+
/>
|
|
55
|
+
<label for="strictValue" class="custom-radio-label">
|
|
56
|
+
{{ localization.common.strict }}
|
|
57
|
+
</label>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
</template>
|
|
64
|
+
|
|
65
|
+
<script setup lang="ts">
|
|
66
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
67
|
+
import type { UI_I_LockdownModeData } from '~/store/inventory/modules/configure/securityProfile/lib/models/interfaces'
|
|
68
|
+
|
|
69
|
+
const form = defineModel<UI_I_LockdownModeData>('form', {
|
|
70
|
+
required: true,
|
|
71
|
+
})
|
|
72
|
+
|
|
73
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
74
|
+
</script>
|
|
75
|
+
|
|
76
|
+
<style scoped lang="scss"></style>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<common-headline :headline="props.title" class="items-center">
|
|
3
|
+
<template #action>
|
|
4
|
+
<button
|
|
5
|
+
class="btn btn-sm btn-secondary ng-star-inserted"
|
|
6
|
+
@click="emits('show-edit')"
|
|
7
|
+
>
|
|
8
|
+
{{ localization.common.edit }}...
|
|
9
|
+
</button>
|
|
10
|
+
</template>
|
|
11
|
+
</common-headline>
|
|
12
|
+
<p>{{ props.description }}</p>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script setup lang="ts">
|
|
16
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
17
|
+
|
|
18
|
+
const props = defineProps<{
|
|
19
|
+
title: string
|
|
20
|
+
description: string
|
|
21
|
+
}>()
|
|
22
|
+
|
|
23
|
+
const emits = defineEmits<{
|
|
24
|
+
(event: 'show-edit'): void
|
|
25
|
+
}>()
|
|
26
|
+
|
|
27
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<style scoped lang="scss"></style>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<component
|
|
3
|
+
:is="currentComponent"
|
|
4
|
+
:title="localization.common.lockdownMode"
|
|
5
|
+
:description="localization.configureSecurityProfile.lockdownModeDesc"
|
|
6
|
+
/>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script setup lang="ts">
|
|
10
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
11
|
+
|
|
12
|
+
const { $store }: any = useNuxtApp()
|
|
13
|
+
|
|
14
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
15
|
+
|
|
16
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
17
|
+
const currentComponent = computed(() =>
|
|
18
|
+
isNewView.value
|
|
19
|
+
? defineAsyncComponent(() => import('./New.vue'))
|
|
20
|
+
: defineAsyncComponent(() => import('./Old.vue'))
|
|
21
|
+
)
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<style scoped lang="scss"></style>
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
|
|
2
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
3
|
-
import type { UI_I_ModalsInitialData } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
4
|
-
import type { UI_I_CollapseNavItem } from '~/components/atoms/collapse/lib/models/interfaces'
|
|
5
|
-
|
|
6
|
-
export const vCenterViewSettingsFunc = (
|
|
7
|
-
localization: UI_I_Localization,
|
|
8
|
-
initialData: UI_I_ModalsInitialData
|
|
9
|
-
) => [
|
|
10
|
-
{
|
|
11
|
-
title: 'Network adapter 1',
|
|
12
|
-
id: 1,
|
|
13
|
-
type: 1,
|
|
14
|
-
rows: [
|
|
15
|
-
{
|
|
16
|
-
name: localization.common.macAddress,
|
|
17
|
-
value: initialData.macAddress,
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
name: localization.common.adapterType,
|
|
21
|
-
value: initialData.adapter,
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
},
|
|
25
|
-
]
|
|
26
|
-
|
|
27
|
-
export const vCenterPopupFieldsFunc = (
|
|
28
|
-
localization: UI_I_Localization,
|
|
29
|
-
testId: string
|
|
30
|
-
): UI_I_CollapseNavItem[] => [
|
|
31
|
-
{
|
|
32
|
-
text: localization.common.viewSettings,
|
|
33
|
-
value: 'v-center-view-settings',
|
|
34
|
-
testId: `${testId}-view`,
|
|
35
|
-
},
|
|
36
|
-
]
|
|
37
|
-
|
|
38
|
-
export const vCenterPopupFieldsNewFunc = (
|
|
39
|
-
localization: UI_I_Localization,
|
|
40
|
-
testId: string
|
|
41
|
-
): UI_I_Dropdown[] => [
|
|
42
|
-
{
|
|
43
|
-
text: localization.common.viewSettings,
|
|
44
|
-
value: 'v-center-view-settings',
|
|
45
|
-
iconName: 'password-hide',
|
|
46
|
-
testId: `${testId}-view`,
|
|
47
|
-
},
|
|
48
|
-
]
|
|
1
|
+
import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
|
|
2
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
3
|
+
import type { UI_I_ModalsInitialData } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
4
|
+
import type { UI_I_CollapseNavItem } from '~/components/atoms/collapse/lib/models/interfaces'
|
|
5
|
+
|
|
6
|
+
export const vCenterViewSettingsFunc = (
|
|
7
|
+
localization: UI_I_Localization,
|
|
8
|
+
initialData: UI_I_ModalsInitialData
|
|
9
|
+
) => [
|
|
10
|
+
{
|
|
11
|
+
title: 'Network adapter 1',
|
|
12
|
+
id: 1,
|
|
13
|
+
type: 1,
|
|
14
|
+
rows: [
|
|
15
|
+
{
|
|
16
|
+
name: localization.common.macAddress,
|
|
17
|
+
value: initialData.macAddress,
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: localization.common.adapterType,
|
|
21
|
+
value: initialData.adapter,
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
export const vCenterPopupFieldsFunc = (
|
|
28
|
+
localization: UI_I_Localization,
|
|
29
|
+
testId: string
|
|
30
|
+
): UI_I_CollapseNavItem[] => [
|
|
31
|
+
{
|
|
32
|
+
text: localization.common.viewSettings,
|
|
33
|
+
value: 'v-center-view-settings',
|
|
34
|
+
testId: `${testId}-view`,
|
|
35
|
+
},
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
export const vCenterPopupFieldsNewFunc = (
|
|
39
|
+
localization: UI_I_Localization,
|
|
40
|
+
testId: string
|
|
41
|
+
): UI_I_Dropdown[] => [
|
|
42
|
+
{
|
|
43
|
+
text: localization.common.viewSettings,
|
|
44
|
+
value: 'v-center-view-settings',
|
|
45
|
+
iconName: 'password-hide',
|
|
46
|
+
testId: `${testId}-view`,
|
|
47
|
+
},
|
|
48
|
+
]
|