diff --git a/src/locales/de.json b/src/locales/de.json index 6defd9c..be62862 100644 --- a/src/locales/de.json +++ b/src/locales/de.json @@ -1,12 +1,14 @@ { "access_is_only_provided_via_your_email_link": "Der Zugang erfolgt nur über den Link, den Sie bei der Registrierung erhalten haben.", "already_have_an_account": "Sie haben bereits einen Account?", + "amount_per_kilometer_in_eur": "Betrag pro Kilometer (in €)", "apartment_suite_etc": "Addresszeile 2", "cancel_keep_my_data": "Abbrechen, meine Daten behalten", "configuration_error": "Konfigurationsfehler", "confirm_delete_all_of_my_data": "Bestätigung, meine gesamten Daten löschen", "confirm_personal_data": "Hiermit bestätige ich die Vollständigkeit und Richtigkeit der oben genannten Angaben", - "delete-all-of-my-data": "Meine gesamten Daten löschen", + "current_total_amount_in_eur": "Aktueller Gesamtbetrag (in €)", + "delete_all_of_my_data": "Meine gesamten Daten löschen", "delete_my_data": "Meine Daten löschen", "deletion_in_progress": "Daten werden gelöscht...", "distance": "Distanz", @@ -24,6 +26,7 @@ "mittelname": "Mittelname", "nachname": "Nachname", "no_laps_scans_were_recorded_yet": "Es wurden noch keine Runden / Scans aufgezeichnet ...", + "no_sponsorings_for_you_were_recorded_yet": "Es gibt noch keine Sponsorings für dich", "not_registered_yet": "Noch nicht registriert?", "organization": "Organisation", "ort": "Ort", @@ -47,6 +50,7 @@ "the_system_is_not_properly_configured_please_contact_the_system_administrator_for_help": "Das System ist nicht richtig konfiguriert. Bitte wenden Sie sich an den Systemadministrator, um Hilfe zu erhalten.", "this_is_not_a_valid_international_phone_number": "Dies ist keine gültige internationale Telefonnummer", "tos": "AGBs", + "total": "Gesamt", "view_my_data": "Meine Läuferdaten einsehen", "vorname": "Vorname", "you_have_been_registered": "Sie wurden registriert!", diff --git a/src/locales/en.json b/src/locales/en.json index e55c7e6..56e68d6 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -2,11 +2,13 @@ "access_is_only_provided_via_your_email_link": "Access is only provided via the link you received upon registration.", "all_data_deleted": "All Data deleted!", "already_have_an_account": "Already have an account?", + "amount_per_kilometer_in_eur": "Amount per kilometer (in €)", "apartment_suite_etc": "Apartment, suite, etc.", "cancel_keep_my_data": "Cancel, keep my data", "configuration_error": "Configuration error", "confirm_delete_all_of_my_data": "Confirm, delete all of my data", "confirm_personal_data": "I hereby confirm that the above information is complete and correct", + "current_total_amount_in_eur": "Current total amount (in €)", "delete_my_data": "Delete my data", "deletion_in_progress": "Deletion in progress...", "distance": "Distance", @@ -24,6 +26,7 @@ "mittelname": "Middlename", "nachname": "Lastname", "no_laps_scans_were_recorded_yet": "No laps/ scans were recorded yet...", + "no_sponsorings_for_you_were_recorded_yet": "No sponsorings for you were recorded yet...", "not_registered_yet": "Not registered yet?", "organization": "Organization", "ort": "City", @@ -47,6 +50,7 @@ "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", "tos": "Terms of Service", + "total": "Total", "view_my_data": "View my data", "vorname": "Firstname", "you_have_been_registered": "You have been registered!", diff --git a/src/views/Profile.vue b/src/views/Profile.vue index 7eeb9ff..c22d580 100644 --- a/src/views/Profile.vue +++ b/src/views/Profile.vue @@ -216,7 +216,7 @@ - m + @@ -236,7 +236,88 @@
-
coming soon...
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + +
Name{{ $t('amount_per_kilometer_in_eur') }}{{ $t('current_total_amount_in_eur') }}
+ + + + + + + € + + € +
{{ $t('total') }} + € + + € +
+
+ + {{ $t('no_sponsorings_for_you_were_recorded_yet') }} +
+
+
+
+
@@ -256,6 +337,7 @@ const state = reactive({ middlename: "", lastname: "", scans: [], + sponsorings: [], group: "", activetab: "profile", delete_active: false, @@ -274,6 +356,7 @@ axios.get(`${config.baseurl}api/runners/me/${accesstoken}`) state.middlename = data.middlename; state.lastname = data.lastname; state.group = data.group; + state.sponsorings = data.distanceDonations; state.fullobject = data; }).catch((error) => { toast.error("An error occured while loading your profile data"); @@ -282,6 +365,7 @@ axios.get(`${config.baseurl}api/runners/me/${accesstoken}/scans`) .then(({ data }) => { data.map(function(s) { s.lapTime = Math.floor(s.lapTime / 60) + 'min ' + (Math.floor(s.lapTime % 60) + "").padStart(2, "0") + "s" + s.distance = Math.floor(s.distance / 1000) + 'km ' + (Math.floor(s.distance % 1000) + "").padStart(3, "0") + "m" return s; }) data.filter(s => s.valid === true);