aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-05-15 14:49:09 -0700
committerAnton Tananaev <anton@traccar.org>2023-05-15 14:49:09 -0700
commiteb364d8726f6e79cede10b168ea2ae31bbbe696e (patch)
treec55dcb6f1088ac2d10e264e332cb22efed58c091
parent4aa5da9a669c58dbe43600e576bcfc0346c121a0 (diff)
downloadtrackermap-web-eb364d8726f6e79cede10b168ea2ae31bbbe696e.tar.gz
trackermap-web-eb364d8726f6e79cede10b168ea2ae31bbbe696e.tar.bz2
trackermap-web-eb364d8726f6e79cede10b168ea2ae31bbbe696e.zip
New server attributes
-rw-r--r--modern/src/common/attributes/useServerAttributes.js18
-rw-r--r--modern/src/resources/l10n/en.json4
2 files changed, 22 insertions, 0 deletions
diff --git a/modern/src/common/attributes/useServerAttributes.js b/modern/src/common/attributes/useServerAttributes.js
index ba49e44d..76d5a157 100644
--- a/modern/src/common/attributes/useServerAttributes.js
+++ b/modern/src/common/attributes/useServerAttributes.js
@@ -1,6 +1,24 @@
import { useMemo } from 'react';
export default (t) => useMemo(() => ({
+ title: {
+ name: t('serverName'),
+ type: 'string',
+ },
+ description: {
+ name: t('serverDescription'),
+ type: 'string',
+ },
+ colorPrimary: {
+ name: t('serverColorPrimary'),
+ type: 'string',
+ subtype: 'color',
+ },
+ colorSecondary: {
+ name: t('serverColorSecondary'),
+ type: 'string',
+ subtype: 'color',
+ },
'ui.disableLoginLanguage': {
name: t('attributeUiDisableLoginLanguage'),
type: 'boolean',
diff --git a/modern/src/resources/l10n/en.json b/modern/src/resources/l10n/en.json
index 4ad897a5..c20023a0 100644
--- a/modern/src/resources/l10n/en.json
+++ b/modern/src/resources/l10n/en.json
@@ -305,6 +305,10 @@
"serverReadonly": "Readonly",
"serverForceSettings": "Force Settings",
"serverAnnouncement": "Announcement",
+ "serverName": "Server Name",
+ "serverDescription": "Server Description",
+ "serverColorPrimary": "Color Primary",
+ "serverColorSecondary": "Color Secondary",
"mapTitle": "Map",
"mapActive": "Active Maps",
"mapOverlay": "Map Overlay",