diff --git a/fittrackee/migrations/versions/28_a8cc0adfe1d3_add_mountaineering.py b/fittrackee/migrations/versions/28_a8cc0adfe1d3_add_mountaineering.py new file mode 100644 index 00000000..46de43d4 --- /dev/null +++ b/fittrackee/migrations/versions/28_a8cc0adfe1d3_add_mountaineering.py @@ -0,0 +1,34 @@ +"""add Mountaineering + +Revision ID: a8cc0adfe1d3 +Revises: bf13b8f5589d +Create Date: 2022-12-11 11:03:01.216734 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = 'a8cc0adfe1d3' +down_revision = 'bf13b8f5589d' +branch_labels = None +depends_on = None + + +def upgrade(): + op.execute( + """ + INSERT INTO sports (label, is_active, stopped_speed_threshold) + VALUES ('Mountaineering', True, 0.1) + """ + ) + + +def downgrade(): + op.execute( + """ + DELETE FROM sports + WHERE label = 'Mountaineering'; + """ + ) diff --git a/fittrackee_client/src/components/Common/Images/SportImage/Mountaineering.vue b/fittrackee_client/src/components/Common/Images/SportImage/Mountaineering.vue new file mode 100644 index 00000000..a1ffd9bf --- /dev/null +++ b/fittrackee_client/src/components/Common/Images/SportImage/Mountaineering.vue @@ -0,0 +1,57 @@ + + + diff --git a/fittrackee_client/src/components/Common/Images/SportImage/index.vue b/fittrackee_client/src/components/Common/Images/SportImage/index.vue index ec3b4e67..396df149 100644 --- a/fittrackee_client/src/components/Common/Images/SportImage/index.vue +++ b/fittrackee_client/src/components/Common/Images/SportImage/index.vue @@ -12,6 +12,7 @@ + @@ -31,6 +32,7 @@ import Hiking from '@/components/Common/Images/SportImage/Hiking.vue' import MountainBiking from '@/components/Common/Images/SportImage/MountainBiking.vue' import MountainBikingElectric from '@/components/Common/Images/SportImage/MountainBikingElectric.vue' + import Mountaineering from '@/components/Common/Images/SportImage/Mountaineering.vue' import Rowing from '@/components/Common/Images/SportImage/Rowing.vue' import Running from '@/components/Common/Images/SportImage/Running.vue' import SkiingAlpine from '@/components/Common/Images/SportImage/SkiingAlpine.vue' diff --git a/fittrackee_client/src/locales/en/sports.json b/fittrackee_client/src/locales/en/sports.json index e14e3417..cf0a04f0 100644 --- a/fittrackee_client/src/locales/en/sports.json +++ b/fittrackee_client/src/locales/en/sports.json @@ -17,6 +17,9 @@ "Mountain Biking (Electric)": { "LABEL": "Mountain Biking (Electric)" }, + "Mountaineering": { + "LABEL": "Mountaineering" + }, "Rowing": { "LABEL": "Rowing" }, diff --git a/fittrackee_client/src/locales/fr/sports.json b/fittrackee_client/src/locales/fr/sports.json index ff7730ce..8e2fa944 100644 --- a/fittrackee_client/src/locales/fr/sports.json +++ b/fittrackee_client/src/locales/fr/sports.json @@ -17,6 +17,9 @@ "Mountain Biking (Electric)": { "LABEL": "VTT (Électrique)" }, + "Mountaineering": { + "LABEL": "Alpinisme" + }, "Rowing": { "LABEL": "Aviron" }, diff --git a/fittrackee_client/src/utils/sports.ts b/fittrackee_client/src/utils/sports.ts index a23023b5..0559992a 100644 --- a/fittrackee_client/src/utils/sports.ts +++ b/fittrackee_client/src/utils/sports.ts @@ -8,6 +8,7 @@ export const sportColors: Record = { Hiking: '#bb757c', 'Mountain Biking': '#d4b371', 'Mountain Biking (Electric)': '#fc9d6f', + Mountaineering: '#48b3b7', Rowing: '#fcce72', Running: '#835b83', 'Skiing (Alpine)': '#67a4bd',