bfg-common 1.5.770 → 1.5.773
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/assets/localization/local_be.json +3 -0
- package/assets/localization/local_en.json +3 -0
- package/assets/localization/local_hy.json +3 -0
- package/assets/localization/local_kk.json +3 -0
- package/assets/localization/local_ru.json +3 -0
- package/assets/localization/local_zh.json +3 -0
- package/components/common/pages/backups/modals/createBackup/configuration/backupWindow/BackupWindow.vue +29 -29
- package/components/common/pages/backups/modals/createBackup/configuration/maxBandwidth/MaxBandwidth.vue +69 -69
- package/components/common/pages/backups/modals/createBackup/configuration/maxBandwidth/lib/config/options.ts +6 -6
- package/components/common/pages/backups/modals/createBackup/configuration/strategy/Strategy.vue +38 -38
- package/components/common/pages/backups/modals/createBackup/lib/models/interfaces.ts +8 -8
- package/package.json +1 -1
- package/components/common/configure/securityProfile/SecurityProfile.vue +0 -28
- package/components/common/configure/securityProfile/lockdownMode/LockdownMode.vue +0 -112
- package/components/common/configure/securityProfile/lockdownMode/lib/utils/constructData.ts +0 -27
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/LockdownModeEdit.vue +0 -61
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/New.vue +0 -5
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/Old.vue +0 -109
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/ExceptionUsers.vue +0 -28
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/New.vue +0 -5
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/Old.vue +0 -180
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/config/table.ts +0 -64
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/config/tableKeys.ts +0 -6
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/models/types.ts +0 -1
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lib/config/tabs.ts +0 -19
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/LockdownMode.vue +0 -22
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/New.vue +0 -5
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/Old.vue +0 -76
- package/components/common/configure/securityProfile/lockdownMode/tools/New.vue +0 -5
- package/components/common/configure/securityProfile/lockdownMode/tools/Old.vue +0 -30
- package/components/common/configure/securityProfile/lockdownMode/tools/Tools.vue +0 -29
- package/store/inventory/modules/configure/securityProfile/actions.ts +0 -58
- package/store/inventory/modules/configure/securityProfile/getters.ts +0 -10
- package/store/inventory/modules/configure/securityProfile/lib/models/interfaces.ts +0 -16
- package/store/inventory/modules/configure/securityProfile/mutations.ts +0 -13
- package/store/inventory/modules/configure/securityProfile/state.ts +0 -7
- package/store/inventory/modules/configure/securityProfile/store.ts +0 -12
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import type { UI_I_RefreshStack } from '~/store/main/lib/interfaces'
|
|
2
|
-
import type { UI_I_Options } from '~/lib/models/composables/useMyFetch/interfaces'
|
|
3
|
-
import type {
|
|
4
|
-
API_UI_I_Error,
|
|
5
|
-
API_UI_I_Response,
|
|
6
|
-
UI_I_CommitOptions,
|
|
7
|
-
} from '~/lib/models/store/interfaces'
|
|
8
|
-
import type {
|
|
9
|
-
UI_I_SecurityProfileData,
|
|
10
|
-
UI_API_I_SecurityProfileData,
|
|
11
|
-
} from '~/store/inventory/modules/configure/securityProfile/lib/models/interfaces'
|
|
12
|
-
|
|
13
|
-
export default {
|
|
14
|
-
async A_GET_SECURITY_PROFILE(
|
|
15
|
-
context: {
|
|
16
|
-
commit: <T>(arg0: string, arg1: T) => void
|
|
17
|
-
dispatch: (
|
|
18
|
-
arg0: string,
|
|
19
|
-
arg1: UI_I_RefreshStack,
|
|
20
|
-
arg2: UI_I_CommitOptions
|
|
21
|
-
) => void
|
|
22
|
-
},
|
|
23
|
-
payload: string
|
|
24
|
-
): Promise<API_UI_I_Error | void> {
|
|
25
|
-
const url = `ui/hosts/${payload}/securityProfile`
|
|
26
|
-
const options: UI_I_Options = {
|
|
27
|
-
method: 'GET',
|
|
28
|
-
key: Date.now().toString(),
|
|
29
|
-
onResponse({
|
|
30
|
-
response,
|
|
31
|
-
}: API_UI_I_Response<UI_API_I_SecurityProfileData>) {
|
|
32
|
-
const data = response._data
|
|
33
|
-
context.commit<UI_I_SecurityProfileData>('M_SET_SECURITY_PROFILE', data)
|
|
34
|
-
},
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// TODO удалить после апи
|
|
38
|
-
const data: UI_API_I_SecurityProfileData = {
|
|
39
|
-
lockdownMode: {
|
|
40
|
-
lockdownMode: 'disabled',
|
|
41
|
-
exceptionUsers: ['user 1', 'user 2'],
|
|
42
|
-
},
|
|
43
|
-
}
|
|
44
|
-
context.commit<UI_I_SecurityProfileData>('M_SET_SECURITY_PROFILE', data)
|
|
45
|
-
|
|
46
|
-
const { error } = await useMyFetch<never, API_UI_I_Error>(url, options)
|
|
47
|
-
|
|
48
|
-
if (error.value?.data?.error_code) {
|
|
49
|
-
Promise.reject(error.value.data.error_message)
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
context.dispatch(
|
|
53
|
-
'main/A_ADD_IN_GLOBAL_REFRESH',
|
|
54
|
-
{ key: 'hostSystemSecurityProfile', url, options },
|
|
55
|
-
{ root: true }
|
|
56
|
-
)
|
|
57
|
-
},
|
|
58
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
UI_I_SecurityProfileData,
|
|
3
|
-
UI_I_SecurityProfileState,
|
|
4
|
-
} from '~/store/inventory/modules/configure/securityProfile/lib/models/interfaces'
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
getSystemSecurityProfile: (
|
|
8
|
-
state: UI_I_SecurityProfileState
|
|
9
|
-
): UI_I_SecurityProfileData | null => state.securityProfileData,
|
|
10
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface UI_API_I_LockdownModeData {
|
|
2
|
-
lockdownMode: string
|
|
3
|
-
exceptionUsers: string[]
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export interface UI_API_I_SecurityProfileData {
|
|
7
|
-
lockdownMode: UI_API_I_LockdownModeData
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface UI_I_LockdownModeData extends UI_API_I_LockdownModeData {}
|
|
11
|
-
|
|
12
|
-
export interface UI_I_SecurityProfileData extends UI_API_I_SecurityProfileData {}
|
|
13
|
-
|
|
14
|
-
export interface UI_I_SecurityProfileState {
|
|
15
|
-
securityProfileData: UI_I_SecurityProfileData | null
|
|
16
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
UI_I_SecurityProfileData,
|
|
3
|
-
UI_I_SecurityProfileState,
|
|
4
|
-
} from '~/store/inventory/modules/configure/securityProfile/lib/models/interfaces'
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
M_SET_SECURITY_PROFILE(
|
|
8
|
-
state: UI_I_SecurityProfileState,
|
|
9
|
-
payload: UI_I_SecurityProfileData
|
|
10
|
-
): void {
|
|
11
|
-
state.securityProfileData = payload
|
|
12
|
-
},
|
|
13
|
-
}
|