2021-10-01 16:48:48 +02:00
|
|
|
import createI18n from '@/i18n'
|
2021-08-22 21:10:47 +02:00
|
|
|
import { ISport } from '@/types/sports'
|
2021-10-01 16:48:48 +02:00
|
|
|
import { translateSports } from '@/utils/sports'
|
2021-08-22 20:16:04 +02:00
|
|
|
|
2021-10-01 16:48:48 +02:00
|
|
|
const { t } = createI18n.global
|
2021-08-22 20:16:04 +02:00
|
|
|
export const sports: ISport[] = [
|
|
|
|
{
|
2021-11-12 18:52:08 +01:00
|
|
|
color: null,
|
2021-08-22 20:16:04 +02:00
|
|
|
has_workouts: false,
|
|
|
|
id: 1,
|
|
|
|
img: '/img/sports/cycling-sport.png',
|
|
|
|
is_active: true,
|
2021-11-12 18:52:08 +01:00
|
|
|
is_active_for_user: true,
|
2021-08-22 20:16:04 +02:00
|
|
|
label: 'Cycling (Sport)',
|
2021-11-12 18:52:08 +01:00
|
|
|
stopped_speed_threshold: 1,
|
2021-08-22 20:16:04 +02:00
|
|
|
},
|
|
|
|
{
|
2021-11-12 18:52:08 +01:00
|
|
|
color: '#000000',
|
2021-11-13 12:12:22 +01:00
|
|
|
has_workouts: true,
|
2021-08-22 20:16:04 +02:00
|
|
|
id: 2,
|
|
|
|
img: '/img/sports/cycling-transport.png',
|
|
|
|
is_active: false,
|
2021-11-12 18:52:08 +01:00
|
|
|
is_active_for_user: false,
|
2021-08-22 20:16:04 +02:00
|
|
|
label: 'Cycling (Transport)',
|
2021-11-12 18:52:08 +01:00
|
|
|
stopped_speed_threshold: 1,
|
2021-08-22 20:16:04 +02:00
|
|
|
},
|
|
|
|
{
|
2021-11-12 18:52:08 +01:00
|
|
|
color: null,
|
2021-08-22 20:16:04 +02:00
|
|
|
has_workouts: true,
|
|
|
|
id: 3,
|
|
|
|
img: '/img/sports/hiking.png',
|
|
|
|
is_active: true,
|
2021-11-12 18:52:08 +01:00
|
|
|
is_active_for_user: false,
|
2021-08-22 20:16:04 +02:00
|
|
|
label: 'Hiking',
|
2021-11-12 18:52:08 +01:00
|
|
|
stopped_speed_threshold: 0.1,
|
2021-08-22 20:16:04 +02:00
|
|
|
},
|
|
|
|
]
|
2021-10-01 16:48:48 +02:00
|
|
|
|
|
|
|
export const translatedSports = translateSports(sports, t)
|