aboutsummaryrefslogtreecommitdiff
path: root/src/common/attributes/useUserAttributes.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/attributes/useUserAttributes.js')
-rw-r--r--src/common/attributes/useUserAttributes.js60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/common/attributes/useUserAttributes.js b/src/common/attributes/useUserAttributes.js
new file mode 100644
index 00000000..81230884
--- /dev/null
+++ b/src/common/attributes/useUserAttributes.js
@@ -0,0 +1,60 @@
+import { useMemo } from 'react';
+
+export default (t) => useMemo(() => ({
+ telegramChatId: {
+ name: t('attributeTelegramChatId'),
+ type: 'string',
+ },
+ pushoverUserKey: {
+ name: t('attributePushoverUserKey'),
+ type: 'string',
+ },
+ pushoverDeviceNames: {
+ name: t('attributePushoverDeviceNames'),
+ 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]);