From 5a8450ed2a50213c692a319a63fd45f6c91c54d7 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 11 May 2023 08:09:57 -0700 Subject: Add railway map overlay --- modern/src/resources/l10n/en.json | 1 + 1 file changed, 1 insertion(+) (limited to 'modern/src/resources') diff --git a/modern/src/resources/l10n/en.json b/modern/src/resources/l10n/en.json index 9d76814d..69db954f 100644 --- a/modern/src/resources/l10n/en.json +++ b/modern/src/resources/l10n/en.json @@ -309,6 +309,7 @@ "mapOverlay": "Map Overlay", "mapOverlayCustom": "Custom Overlay", "mapOpenSeaMap": "OpenSeaMap", + "mapOpenRaiwayMap": "OpenRailwayMap", "mapOpenWeatherKey": "OpenWeather API Key", "mapOpenWeatherClouds": "OpenWeather Clouds", "mapOpenWeatherPrecipitation": "OpenWeather Precipitation", -- cgit v1.2.3 From f421878a61ad86c0490bf8e10863d25fbefea93d Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 11 May 2023 18:47:01 -0700 Subject: Fix typo --- modern/src/map/overlay/useMapOverlays.js | 4 ++-- modern/src/resources/l10n/en.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'modern/src/resources') diff --git a/modern/src/map/overlay/useMapOverlays.js b/modern/src/map/overlay/useMapOverlays.js index fa5240e8..5114424b 100644 --- a/modern/src/map/overlay/useMapOverlays.js +++ b/modern/src/map/overlay/useMapOverlays.js @@ -29,8 +29,8 @@ export default () => { available: true, }, { - id: 'openRaiwayMap', - title: t('mapOpenRaiwayMap'), + id: 'openRailwayMap', + title: t('mapOpenRailwayMap'), source: sourceCustom(['https://tiles.openrailwaymap.org/standard/{z}/{x}/{y}.png']), available: true, }, diff --git a/modern/src/resources/l10n/en.json b/modern/src/resources/l10n/en.json index 69db954f..a6ac151f 100644 --- a/modern/src/resources/l10n/en.json +++ b/modern/src/resources/l10n/en.json @@ -309,7 +309,7 @@ "mapOverlay": "Map Overlay", "mapOverlayCustom": "Custom Overlay", "mapOpenSeaMap": "OpenSeaMap", - "mapOpenRaiwayMap": "OpenRailwayMap", + "mapOpenRailwayMap": "OpenRailwayMap", "mapOpenWeatherKey": "OpenWeather API Key", "mapOpenWeatherClouds": "OpenWeather Clouds", "mapOpenWeatherPrecipitation": "OpenWeather Precipitation", -- cgit v1.2.3 From 60c663cc1df0543d12443ec3aa76b8e65dff6744 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 14 May 2023 07:14:50 -0700 Subject: Standard heart rate attribute --- modern/src/common/attributes/usePositionAttributes.js | 4 ++++ modern/src/resources/l10n/en.json | 1 + 2 files changed, 5 insertions(+) (limited to 'modern/src/resources') diff --git a/modern/src/common/attributes/usePositionAttributes.js b/modern/src/common/attributes/usePositionAttributes.js index 90905395..cc50911c 100644 --- a/modern/src/common/attributes/usePositionAttributes.js +++ b/modern/src/common/attributes/usePositionAttributes.js @@ -148,6 +148,10 @@ export default (t) => useMemo(() => ({ name: t('positionSteps'), type: 'number', }, + heartRate: { + name: t('positionHeartRate'), + type: 'number', + }, input: { name: t('positionInput'), type: 'number', diff --git a/modern/src/resources/l10n/en.json b/modern/src/resources/l10n/en.json index a6ac151f..4ad897a5 100644 --- a/modern/src/resources/l10n/en.json +++ b/modern/src/resources/l10n/en.json @@ -267,6 +267,7 @@ "positionHours": "Hours", "positionSteps": "Steps", "positionInput": "Input", + "positionHeartRate": "Heart Rate", "positionOutput": "Output", "positionBatteryLevel": "Battery Level", "positionFuelConsumption": "Fuel Consumption", -- cgit v1.2.3 From eb364d8726f6e79cede10b168ea2ae31bbbe696e Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 15 May 2023 14:49:09 -0700 Subject: New server attributes --- modern/src/common/attributes/useServerAttributes.js | 18 ++++++++++++++++++ modern/src/resources/l10n/en.json | 4 ++++ 2 files changed, 22 insertions(+) (limited to 'modern/src/resources') 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", -- cgit v1.2.3