diff --git a/src/components/Profile.vue b/src/components/Profile.vue index 7d60dcf..7a3fb7a 100644 --- a/src/components/Profile.vue +++ b/src/components/Profile.vue @@ -121,7 +121,10 @@
- +
@@ -135,24 +138,15 @@ - - - - - - - - - - - - - - - + + +
400m0min 57s
400m1min 15s
1km2min 50s
1km3min 00s
s.distances.time
+
+ {{ $t('no_laps_scans_were_recorded_yet') }} +
@@ -181,6 +175,7 @@ const state = reactive({ firstname: "", middlename: "", lastname: "", + scans: [] }) let activetab = ref("profile"); const toast = useToast(); @@ -195,4 +190,10 @@ axios.get(`${config.baseurl}api/runners/me/${token}`) }).catch((error) => { toast.error("An error occured while loading your profile data"); }) +axios.get(`${config.baseurl}api/runners/me/${token}/scans`) + .then(({ data }) => { + state.scans = data; + }).catch((error) => { + toast.error("An error occured while loading your profile data"); + }) \ No newline at end of file diff --git a/src/locales/en.json b/src/locales/en.json index 7ce8dba..e134b50 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -1,36 +1,37 @@ { - "already_have_an_account": "Already have an account?", - "apartment_suite_etc": "Apartment, suite, etc.", - "configuration_error": "Configuration error", - "distance": "Distance", - "download_certificate": "Download certificate", - "e_mail_adress": "mail address", - "go_to_login": "Go To Login", - "if_you_are_the_system_administrator_please_refer_to_the_official_product_documentation_readme_for_configuration_guidance": "If you are the system administrator, please refer to the official product documentation/ README for configuration guidance.", - "imprint": "Imprint", - "lap_time": "Lap time", - "lap_times": "Lap times", - "main_page_text": "Here you can register for the Lauf Für Kaya! or manage your runner profile.", - "mittelname": "Middlename", - "nachname": "Lastname", - "ort": "City", - "phone_number": "Phone Number", - "please_provide_a_valid_zipcode": "Please provide a valid zipcode...", - "please_provide_valid_mail": "Please provide a valid mail address.", - "plz": "zipcode", - "privacy_policy": "Privacy Policy", - "profile": "Profile", - "provide_address": "Provide a postal address?", - "register": { - "register_now": "Register now for Lauf für Kaya! 2021." - }, - "register_now": "Register now!", - "registrieren": "Register Now", - "save_changes": "Save changes", - "sponsoring": "Sponsoring", - "strasse": "Street/ Block", - "the_system_is_not_properly_configured_please_contact_the_system_administrator_for_help": "The system is not properly configured. Please contact the system administrator for help.", - "this_is_not_a_valid_international_phone_number": "This is not a valid international phone number", - "view_my_data": "View my data", - "vorname": "Firstname" -} \ No newline at end of file + "already_have_an_account": "Already have an account?", + "apartment_suite_etc": "Apartment, suite, etc.", + "configuration_error": "Configuration error", + "distance": "Distance", + "download_certificate": "Download certificate", + "e_mail_adress": "mail address", + "go_to_login": "Go To Login", + "if_you_are_the_system_administrator_please_refer_to_the_official_product_documentation_readme_for_configuration_guidance": "If you are the system administrator, please refer to the official product documentation/ README for configuration guidance.", + "imprint": "Imprint", + "lap_time": "Lap time", + "lap_times": "Lap times", + "main_page_text": "Here you can register for the Lauf Für Kaya! or manage your runner profile.", + "mittelname": "Middlename", + "nachname": "Lastname", + "ort": "City", + "phone_number": "Phone Number", + "please_provide_a_valid_zipcode": "Please provide a valid zipcode...", + "please_provide_valid_mail": "Please provide a valid mail address.", + "plz": "zipcode", + "privacy_policy": "Privacy Policy", + "profile": "Profile", + "provide_address": "Provide a postal address?", + "register": { + "register_now": "Register now for Lauf für Kaya! 2021." + }, + "register_now": "Register now!", + "registrieren": "Register Now", + "save_changes": "Save changes", + "sponsoring": "Sponsoring", + "strasse": "Street/ Block", + "the_system_is_not_properly_configured_please_contact_the_system_administrator_for_help": "The system is not properly configured. Please contact the system administrator for help.", + "this_is_not_a_valid_international_phone_number": "This is not a valid international phone number", + "view_my_data": "View my data", + "vorname": "Firstname", + "no_laps_scans_were_recorded_yet": "No laps/ scans were recorded yet..." +}