From c172610b7dc7251c2d4fccb25703d418054d6ef2 Mon Sep 17 00:00:00 2001 From: ben_29 Date: Thu, 26 Oct 2023 22:23:30 +0800 Subject: [PATCH] update: sport type: trail_running --- run_page/config.py | 4 ++-- src/utils/const.ts | 4 ++-- src/utils/utils.ts | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/run_page/config.py b/run_page/config.py index d6fe5e496ba..a5693db101d 100644 --- a/run_page/config.py +++ b/run_page/config.py @@ -55,7 +55,7 @@ def safeget(dct, *keys): "RUN": "Run", "Run": "Run", "track_running": "Run", - "trail_running": "Trail Running", + "trail_running": "Trail Run", "cycling": "Ride", "CYCLING": "Ride", "Ride": "Ride", @@ -83,7 +83,7 @@ def safeget(dct, *keys): "VirtualRide", "Rowing", "Run", - "Trail Running", + "Trail Run", "Swim", "RoadTrip", "Kayaking", diff --git a/src/utils/const.ts b/src/utils/const.ts index 1727e8b9ee9..278379985a1 100644 --- a/src/utils/const.ts +++ b/src/utils/const.ts @@ -51,7 +51,7 @@ const INFO_MESSAGE = IS_CHINESE ? CHINESE_INFO_MESSAGE : ENGLISH_INFO_MESSAGE; const FULL_MARATHON_RUN_TITLE = IS_CHINESE ? '全程马拉松' : 'Full Marathon'; const HALF_MARATHON_RUN_TITLE = IS_CHINESE ? '半程马拉松' : 'Half Marathon'; const RUN_TITLE = IS_CHINESE ? '跑步' : 'Run'; -const TRAIL_RUN_TITLE = IS_CHINESE ? '越野跑' : 'Trail Running'; +const TRAIL_RUN_TITLE = IS_CHINESE ? '越野跑' : 'Trail Run'; const SWIM_TITLE = IS_CHINESE ? '游泳' : 'Swim'; const RIDE_TITLE = IS_CHINESE ? '骑行' : 'Ride'; @@ -128,4 +128,4 @@ export const PROVINCE_FILL_COLOR = '#47b8e0'; export const COUNTRY_FILL_COLOR = wpink; export const KAYAKING_COLOR = red; export const SNOWBOARD_COLOR = wpink; -export const TRAIL_RUNNING_COLOR = IKB; +export const TRAIL_RUN_COLOR = IKB; diff --git a/src/utils/utils.ts b/src/utils/utils.ts index ea041aea3fb..18df4a42cbc 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -18,7 +18,7 @@ import { RUN_COLOR, KAYAKING_COLOR, SNOWBOARD_COLOR, - TRAIL_RUNNING_COLOR, + TRAIL_RUN_COLOR, } from './const'; import { FeatureCollection, LineString } from 'geojson'; @@ -196,7 +196,7 @@ const titleForType = (type: string): string => { switch (type) { case 'Run': return RUN_TITLES.RUN_TITLE; - case 'Trail Running': + case 'Trail Run': return RUN_TITLES.TRAIL_RUN_TITLE; case 'Ride': return RUN_TITLES.RIDE_TITLE; @@ -243,8 +243,8 @@ const colorFromType = (workoutType: string): string => { switch (workoutType) { case 'Run': return RUN_COLOR; - case 'Trail Running': - return TRAIL_RUNNING_COLOR; + case 'Trail Run': + return TRAIL_RUN_COLOR; case 'Ride': case 'Indoor Ride': return RIDE_COLOR;