parent
8205c11bd9
commit
14369480ea
@ -121,7 +121,10 @@
|
|||||||
<section class="text-gray-400 dark:bg-gray-900 body-font">
|
<section class="text-gray-400 dark:bg-gray-900 body-font">
|
||||||
<div class="container mx-auto">
|
<div class="container mx-auto">
|
||||||
<div class="lg:w-2/3 w-full mx-auto overflow-auto">
|
<div class="lg:w-2/3 w-full mx-auto overflow-auto">
|
||||||
<table class="table-auto w-full text-left whitespace-no-wrap">
|
<table
|
||||||
|
v-if="state.scans.length > 0"
|
||||||
|
class="table-auto w-full text-left whitespace-no-wrap"
|
||||||
|
>
|
||||||
<thead
|
<thead
|
||||||
class="text-black bg-gray-300 dark:text-white text-sm dark:bg-gray-800"
|
class="text-black bg-gray-300 dark:text-white text-sm dark:bg-gray-800"
|
||||||
>
|
>
|
||||||
@ -135,24 +138,15 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="text-gray-900 dark:text-gray-50">
|
<tbody class="text-gray-900 dark:text-gray-50">
|
||||||
<tr class="border-t-2 border-gray-800">
|
<tr v-for="s in state.scans" :key="s.id">
|
||||||
<td class="px-4 py-3">400m</td>
|
<td class="px-4 py-3">s.distance</td>
|
||||||
<td class="px-4 py-3">0min 57s</td>
|
<td class="px-4 py-3">s.time</td>
|
||||||
</tr>
|
|
||||||
<tr class="border-t-2 border-gray-800">
|
|
||||||
<td class="px-4 py-3">400m</td>
|
|
||||||
<td class="px-4 py-3">1min 15s</td>
|
|
||||||
</tr>
|
|
||||||
<tr class="border-t-2 border-gray-800">
|
|
||||||
<td class="px-4 py-3">1km</td>
|
|
||||||
<td class="px-4 py-3">2min 50s</td>
|
|
||||||
</tr>
|
|
||||||
<tr class="border-t-2 border-gray-800">
|
|
||||||
<td class="px-4 py-3">1km</td>
|
|
||||||
<td class="px-4 py-3">3min 00s</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
<div v-else class="text-center font-bold text-black dark:text-white text-2xl">
|
||||||
|
{{ $t('no_laps_scans_were_recorded_yet') }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@ -181,6 +175,7 @@ const state = reactive({
|
|||||||
firstname: "",
|
firstname: "",
|
||||||
middlename: "",
|
middlename: "",
|
||||||
lastname: "",
|
lastname: "",
|
||||||
|
scans: []
|
||||||
})
|
})
|
||||||
let activetab = ref("profile");
|
let activetab = ref("profile");
|
||||||
const toast = useToast();
|
const toast = useToast();
|
||||||
@ -195,4 +190,10 @@ axios.get(`${config.baseurl}api/runners/me/${token}`)
|
|||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
toast.error("An error occured while loading your profile data");
|
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");
|
||||||
|
})
|
||||||
</script>
|
</script>
|
@ -1,36 +1,37 @@
|
|||||||
{
|
{
|
||||||
"already_have_an_account": "Already have an account?",
|
"already_have_an_account": "Already have an account?",
|
||||||
"apartment_suite_etc": "Apartment, suite, etc.",
|
"apartment_suite_etc": "Apartment, suite, etc.",
|
||||||
"configuration_error": "Configuration error",
|
"configuration_error": "Configuration error",
|
||||||
"distance": "Distance",
|
"distance": "Distance",
|
||||||
"download_certificate": "Download certificate",
|
"download_certificate": "Download certificate",
|
||||||
"e_mail_adress": "mail address",
|
"e_mail_adress": "mail address",
|
||||||
"go_to_login": "Go To Login",
|
"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.",
|
"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",
|
"imprint": "Imprint",
|
||||||
"lap_time": "Lap time",
|
"lap_time": "Lap time",
|
||||||
"lap_times": "Lap times",
|
"lap_times": "Lap times",
|
||||||
"main_page_text": "Here you can register for the Lauf Für Kaya! or manage your runner profile.",
|
"main_page_text": "Here you can register for the Lauf Für Kaya! or manage your runner profile.",
|
||||||
"mittelname": "Middlename",
|
"mittelname": "Middlename",
|
||||||
"nachname": "Lastname",
|
"nachname": "Lastname",
|
||||||
"ort": "City",
|
"ort": "City",
|
||||||
"phone_number": "Phone Number",
|
"phone_number": "Phone Number",
|
||||||
"please_provide_a_valid_zipcode": "Please provide a valid zipcode...",
|
"please_provide_a_valid_zipcode": "Please provide a valid zipcode...",
|
||||||
"please_provide_valid_mail": "Please provide a valid mail address.",
|
"please_provide_valid_mail": "Please provide a valid mail address.",
|
||||||
"plz": "zipcode",
|
"plz": "zipcode",
|
||||||
"privacy_policy": "Privacy Policy",
|
"privacy_policy": "Privacy Policy",
|
||||||
"profile": "Profile",
|
"profile": "Profile",
|
||||||
"provide_address": "Provide a postal address?",
|
"provide_address": "Provide a postal address?",
|
||||||
"register": {
|
"register": {
|
||||||
"register_now": "Register now for Lauf für Kaya! 2021."
|
"register_now": "Register now for Lauf für Kaya! 2021."
|
||||||
},
|
},
|
||||||
"register_now": "Register now!",
|
"register_now": "Register now!",
|
||||||
"registrieren": "Register Now",
|
"registrieren": "Register Now",
|
||||||
"save_changes": "Save changes",
|
"save_changes": "Save changes",
|
||||||
"sponsoring": "Sponsoring",
|
"sponsoring": "Sponsoring",
|
||||||
"strasse": "Street/ Block",
|
"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.",
|
"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",
|
"this_is_not_a_valid_international_phone_number": "This is not a valid international phone number",
|
||||||
"view_my_data": "View my data",
|
"view_my_data": "View my data",
|
||||||
"vorname": "Firstname"
|
"vorname": "Firstname",
|
||||||
}
|
"no_laps_scans_were_recorded_yet": "No laps/ scans were recorded yet..."
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user