From ddfcf3570be2f492d3be3c3bb0205018003acaf7 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Mon, 21 Dec 2020 12:49:41 +0100 Subject: [PATCH] Working --- components/Experience.vue | 8 ++++++-- components/Formation.vue | 2 +- content/experiences.json | 2 +- content/formations.json | 4 ++-- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/components/Experience.vue b/components/Experience.vue index 4480cb7..5395c8d 100644 --- a/components/Experience.vue +++ b/components/Experience.vue @@ -7,7 +7,8 @@
-

{{ formatDate(begin) }} - {{ formatDate(end) }} | {{location}}

+

{{ formatDate(begin) }} | {{location}}

+

{{ formatDate(begin) }} - {{ formatDate(end) }} | {{location}}

{{ $t(title) }}

{{ company }}

@@ -42,7 +43,10 @@ export default { methods: { formatDate(date) { const dateFormat = date.split('-') - return date === 'Today' ? 'Today' : this.$t('month.' + dateFormat[0]) + " " + dateFormat[1] + return date === 'Today' ? this.$t('date.today') : this.$t('month.' + dateFormat[0]) + " " + dateFormat[1] + }, + isSameDate() { + return this.begin === this.end } } } diff --git a/components/Formation.vue b/components/Formation.vue index 8181212..2b9a05f 100644 --- a/components/Formation.vue +++ b/components/Formation.vue @@ -42,7 +42,7 @@ export default { methods: { formatDate(date) { const dateFormat = date.split('-') - return date === 'Today' ? 'Today' : this.$t('month.' + dateFormat[0]) + " " + dateFormat[1] + return date === 'Today' ? this.$t('date.today') : this.$t('month.' + dateFormat[0]) + " " + dateFormat[1] } } } diff --git a/content/experiences.json b/content/experiences.json index 5679d12..426e1ab 100644 --- a/content/experiences.json +++ b/content/experiences.json @@ -13,7 +13,7 @@ "company": "ArtDanjProduction", "location": "France", "begin_date": "09-2015", - "end_date": "date.today" + "end_date": "Today" }, { "slug": "idemia", diff --git a/content/formations.json b/content/formations.json index 4f98e0d..211b00a 100644 --- a/content/formations.json +++ b/content/formations.json @@ -5,7 +5,7 @@ "description": "formations.freelance.description", "location": "Remote", "begin_date": "04-2015", - "end_date": "date.today" + "end_date": "Today" }, { "slug": "dnb", @@ -21,6 +21,6 @@ "description": "formations.bac.description", "location": "France", "begin_date": "09-2020", - "end_date": "date.today" + "end_date": "Today" } ]