import { traduction } from '@/utils/language';
import { reactive } from 'vue';
export const roleList = [
{
id: 'Administrator',
label: traduction('COMMON_ROLE_ADMINISTRATOR')
},
{
id: 'Operator',
label: traduction('COMMON_ROLE_OPERATOR')
},
{
id: 'CommonUser',
label: traduction('COMMON_ROLE_COMMONUSER')
},
{
id: 'CustomRole1',
label: traduction('COMMON_ROLE_CUSTOMROLE1')
},
{
id: 'CustomRole2',
label: traduction('COMMON_ROLE_CUSTOMROLE2')
},
{
id: 'CustomRole3',
label: traduction('COMMON_ROLE_CUSTOMROLE3')
},
{
id: 'CustomRole4',
label: traduction('COMMON_ROLE_CUSTOMROLE4')
},
{
id: 'NoAccess',
label: traduction('COMMON_ROLE_NOACCESS')
},
{
id: 'CustomRole5',
label: traduction('COMMON_ROLE_CUSTOMROLE5')
},
{
id: 'CustomRole6',
label: traduction('COMMON_ROLE_CUSTOMROLE6')
},
{
id: 'CustomRole7',
label: traduction('COMMON_ROLE_CUSTOMROLE7')
},
{
id: 'CustomRole8',
label: traduction('COMMON_ROLE_CUSTOMROLE8')
},
{
id: 'CustomRole9',
label: traduction('COMMON_ROLE_CUSTOMROLE9')
},
{
id: 'CustomRole10',
label: traduction('COMMON_ROLE_CUSTOMROLE10')
},
{
id: 'CustomRole11',
label: traduction('COMMON_ROLE_CUSTOMROLE11')
},
{
id: 'CustomRole12',
label: traduction('COMMON_ROLE_CUSTOMROLE12')
},
{
id: 'CustomRole13',
label: traduction('COMMON_ROLE_CUSTOMROLE13')
},
{
id: 'CustomRole14',
label: traduction('COMMON_ROLE_CUSTOMROLE14')
},
{
id: 'CustomRole15',
label: traduction('COMMON_ROLE_CUSTOMROLE15')
},
{
id: 'CustomRole16',
label: traduction('COMMON_ROLE_CUSTOMROLE16')
}
];
export const modifyPwdStrategy = [
{
label: traduction('USER_MODIFY_PWD_HINT'),
value: 1
},
{
label: traduction('USER_MODIFY_PWD_FORCE'),
value: 2
}
];
export const interfaceList: string[] = ['SSH', 'IPMI', 'Local', 'SFTP', 'Web', 'SNMP', 'Redfish'];
export const authorityOptions: any = reactive([
{ label: 'MD5', id: 'MD5' },
{ label: 'SHA', id: 'SHA' },
{ label: 'SHA1', id: 'SHA1', disabled: true },
{ label: 'SHA256', id: 'SHA256' },
{ label: 'SHA384', id: 'SHA384' },
{ label: 'SHA512', id: 'SHA512' }
]);
export const authorityOptions2: any = reactive([
{ label: 'SHA256', id: 'SHA256' },
{ label: 'SHA384', id: 'SHA384' },
{ label: 'SHA512', id: 'SHA512' }
]);
export const encrypOptions = reactive([
{ label: 'DES', id: 'DES' },
{ label: 'AES', id: 'AES' },
{ label: 'AES256', id: 'AES256' }
]);
export const userErrorList: string[] = [
'ResourceAlreadyExists',
'ConflictWithLinuxDefaultUser',
'UserIsLoggingIn',
'UserNameIsRestricted',
'InvalidUserName'
];
export const pwdErrorList: string[] = [
'PasswordNotSatisfyComplexity',
'PasswordComplexityCheckFail',
'DuringMinimumPasswordAge',
'InvalidPasswordSameWithHistory',
'PasswordInWeakPWDDict',
'PropertyValueExceedsMaxLength',
'InvalidPassword'
];