aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/attributes
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/common/attributes')
-rw-r--r--modern/src/common/attributes/useCommonDeviceAttributes.js13
-rw-r--r--modern/src/common/attributes/useCommonUserAttributes.js48
-rw-r--r--modern/src/common/attributes/useDeviceAttributes.js23
-rw-r--r--modern/src/common/attributes/useGeofenceAttributes.js12
-rw-r--r--modern/src/common/attributes/useGroupAttributes.js12
-rw-r--r--modern/src/common/attributes/useUserAttributes.js58
6 files changed, 130 insertions, 36 deletions
diff --git a/modern/src/common/attributes/useCommonDeviceAttributes.js b/modern/src/common/attributes/useCommonDeviceAttributes.js
new file mode 100644
index 00000000..8a4d886c
--- /dev/null
+++ b/modern/src/common/attributes/useCommonDeviceAttributes.js
@@ -0,0 +1,13 @@
+import { useMemo } from 'react';
+
+export default (t) => useMemo(() => ({
+ speedLimit: {
+ name: t('attributeSpeedLimit'),
+ type: 'number',
+ subtype: 'speed',
+ },
+ 'report.ignoreOdometer': {
+ name: t('attributeReportIgnoreOdometer'),
+ type: 'boolean',
+ },
+}), [t]);
diff --git a/modern/src/common/attributes/useCommonUserAttributes.js b/modern/src/common/attributes/useCommonUserAttributes.js
new file mode 100644
index 00000000..fa6d7d8f
--- /dev/null
+++ b/modern/src/common/attributes/useCommonUserAttributes.js
@@ -0,0 +1,48 @@
+import { useMemo } from 'react';
+
+export default (t) => useMemo(() => ({
+ notificationTokens: {
+ name: t('attributeNotificationTokens'),
+ type: 'string',
+ },
+ /* 'web.liveRouteLength': {
+ name: t('attributeWebLiveRouteLength'),
+ type: 'number',
+ },
+ 'web.selectZoom': {
+ name: t('attributeWebSelectZoom'),
+ type: 'number',
+ },
+ 'web.maxZoom': {
+ name: t('attributeWebMaxZoom'),
+ type: 'number',
+ },
+ 'ui.disableEvents': {
+ name: t('attributeUiDisableEvents'),
+ type: 'boolean',
+ },
+ 'ui.disableVehicleFetures': {
+ name: t('attributeUiDisableVehicleFetures'),
+ type: 'boolean',
+ },
+ 'ui.disableDrivers': {
+ name: t('attributeUiDisableDrivers'),
+ type: 'boolean',
+ },
+ 'ui.disableComputedAttributes': {
+ name: t('attributeUiDisableComputedAttributes'),
+ type: 'boolean',
+ },
+ 'ui.disableCalendars': {
+ name: t('attributeUiDisableCalendars'),
+ type: 'boolean',
+ },
+ 'ui.disableMaintenance': {
+ name: t('attributeUiDisableMaintenance'),
+ type: 'boolean',
+ },
+ 'ui.hidePositionAttributes': {
+ name: t('attributeUiHidePositionAttributes'),
+ type: 'string',
+ }, */
+}), [t]);
diff --git a/modern/src/common/attributes/useDeviceAttributes.js b/modern/src/common/attributes/useDeviceAttributes.js
index 8a4d886c..34ddb64c 100644
--- a/modern/src/common/attributes/useDeviceAttributes.js
+++ b/modern/src/common/attributes/useDeviceAttributes.js
@@ -1,13 +1,24 @@
import { useMemo } from 'react';
export default (t) => useMemo(() => ({
- speedLimit: {
- name: t('attributeSpeedLimit'),
+ devicePassword: {
+ name: t('attributeDevicePassword'),
+ type: 'string',
+ },
+ 'processing.copyAttributes': {
+ name: t('attributeProcessingCopyAttributes'),
+ type: 'string',
+ },
+ 'decoder.timezone': {
+ name: t('sharedTimezone'),
+ type: 'string',
+ },
+ deviceInactivityStart: {
+ name: t('attributeDeviceInactivityStart'),
type: 'number',
- subtype: 'speed',
},
- 'report.ignoreOdometer': {
- name: t('attributeReportIgnoreOdometer'),
- type: 'boolean',
+ deviceInactivityPeriod: {
+ name: t('attributeDeviceInactivityPeriod'),
+ type: 'number',
},
}), [t]);
diff --git a/modern/src/common/attributes/useGeofenceAttributes.js b/modern/src/common/attributes/useGeofenceAttributes.js
index 89908aa5..a5cd068b 100644
--- a/modern/src/common/attributes/useGeofenceAttributes.js
+++ b/modern/src/common/attributes/useGeofenceAttributes.js
@@ -1,8 +1,18 @@
import { useMemo } from 'react';
export default (t) => useMemo(() => ({
+ color: {
+ name: t('attributeColor'),
+ type: 'string',
+ },
speedLimit: {
name: t('attributeSpeedLimit'),
- type: 'string',
+ type: 'number',
+ subtype: 'speed',
+ },
+ polylineDistance: {
+ name: t('attributePolylineDistance'),
+ type: 'number',
+ subtype: 'distance',
},
}), [t]);
diff --git a/modern/src/common/attributes/useGroupAttributes.js b/modern/src/common/attributes/useGroupAttributes.js
new file mode 100644
index 00000000..53a299e1
--- /dev/null
+++ b/modern/src/common/attributes/useGroupAttributes.js
@@ -0,0 +1,12 @@
+import { useMemo } from 'react';
+
+export default (t) => useMemo(() => ({
+ 'processing.copyAttributes': {
+ name: t('attributeProcessingCopyAttributes'),
+ type: 'string',
+ },
+ 'decoder.timezone': {
+ name: t('sharedTimezone'),
+ type: 'string',
+ },
+}), [t]);
diff --git a/modern/src/common/attributes/useUserAttributes.js b/modern/src/common/attributes/useUserAttributes.js
index fa6d7d8f..56dee060 100644
--- a/modern/src/common/attributes/useUserAttributes.js
+++ b/modern/src/common/attributes/useUserAttributes.js
@@ -1,48 +1,48 @@
import { useMemo } from 'react';
export default (t) => useMemo(() => ({
- notificationTokens: {
- name: t('attributeNotificationTokens'),
+ 'mail.smtp.host': {
+ name: t('attributeMailSmtpHost'),
type: 'string',
},
- /* 'web.liveRouteLength': {
- name: t('attributeWebLiveRouteLength'),
+ 'mail.smtp.port': {
+ name: t('attributeMailSmtpPort'),
type: 'number',
},
- 'web.selectZoom': {
- name: t('attributeWebSelectZoom'),
- type: 'number',
- },
- 'web.maxZoom': {
- name: t('attributeWebMaxZoom'),
- type: 'number',
- },
- 'ui.disableEvents': {
- name: t('attributeUiDisableEvents'),
+ 'mail.smtp.starttls.enable': {
+ name: t('attributeMailSmtpStarttlsEnable'),
type: 'boolean',
},
- 'ui.disableVehicleFetures': {
- name: t('attributeUiDisableVehicleFetures'),
+ 'mail.smtp.starttls.required': {
+ name: t('attributeMailSmtpStarttlsRequired'),
type: 'boolean',
},
- 'ui.disableDrivers': {
- name: t('attributeUiDisableDrivers'),
+ 'mail.smtp.ssl.enable': {
+ name: t('attributeMailSmtpSslEnable'),
type: 'boolean',
},
- 'ui.disableComputedAttributes': {
- name: t('attributeUiDisableComputedAttributes'),
- type: 'boolean',
+ 'mail.smtp.ssl.trust': {
+ name: t('attributeMailSmtpSslTrust'),
+ type: 'string',
},
- 'ui.disableCalendars': {
- name: t('attributeUiDisableCalendars'),
- type: 'boolean',
+ 'mail.smtp.ssl.protocols': {
+ name: t('attributeMailSmtpSslProtocols'),
+ type: 'string',
+ },
+ 'mail.smtp.from': {
+ name: t('attributeMailSmtpFrom'),
+ type: 'string',
},
- 'ui.disableMaintenance': {
- name: t('attributeUiDisableMaintenance'),
+ 'mail.smtp.auth': {
+ name: t('attributeMailSmtpAuth'),
type: 'boolean',
},
- 'ui.hidePositionAttributes': {
- name: t('attributeUiHidePositionAttributes'),
+ 'mail.smtp.username': {
+ name: t('attributeMailSmtpUsername'),
type: 'string',
- }, */
+ },
+ 'mail.smtp.password': {
+ name: t('attributeMailSmtpPassword'),
+ type: 'string',
+ },
}), [t]);