1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
import { useMemo } from 'react';
export default (t) => useMemo(() => ({
telegramChatId: {
name: t('attributeTelegramChatId'),
type: 'string',
},
'mail.smtp.host': {
name: t('attributeMailSmtpHost'),
type: 'string',
},
'mail.smtp.port': {
name: t('attributeMailSmtpPort'),
type: 'number',
},
'mail.smtp.starttls.enable': {
name: t('attributeMailSmtpStarttlsEnable'),
type: 'boolean',
},
'mail.smtp.starttls.required': {
name: t('attributeMailSmtpStarttlsRequired'),
type: 'boolean',
},
'mail.smtp.ssl.enable': {
name: t('attributeMailSmtpSslEnable'),
type: 'boolean',
},
'mail.smtp.ssl.trust': {
name: t('attributeMailSmtpSslTrust'),
type: 'string',
},
'mail.smtp.ssl.protocols': {
name: t('attributeMailSmtpSslProtocols'),
type: 'string',
},
'mail.smtp.from': {
name: t('attributeMailSmtpFrom'),
type: 'string',
},
'mail.smtp.auth': {
name: t('attributeMailSmtpAuth'),
type: 'boolean',
},
'mail.smtp.username': {
name: t('attributeMailSmtpUsername'),
type: 'string',
},
'mail.smtp.password': {
name: t('attributeMailSmtpPassword'),
type: 'string',
},
}), [t]);
|