Lint project

This commit is contained in:
2022-07-11 13:59:14 +02:00
parent 136db4a934
commit 3364855a25
27 changed files with 279 additions and 243 deletions

View File

@@ -1,3 +1,42 @@
<script setup lang="ts">
import { useI18n } from 'vue-i18n'
const props = defineProps({
title: {
type: String,
},
company: {
type: String,
},
location: {
type: String,
},
beginDate: {
type: String,
required: true,
},
endDate: {
type: String,
required: true,
},
url: {
type: String,
},
})
const { t } = useI18n()
const getEndDate = computed(() => {
return props.endDate === 'Today'
? t('date.today')
: `${t(`months.${props.endDate.split('/')[0]}`)} ${props.endDate.split('/')[1]}`
})
const getBeginDate = computed(() => {
return `${t(`months.${props.beginDate.split('/')[0]}`)} ${props.beginDate.split('/')[1]}`
})
</script>
<template>
<div>
<div>
@@ -25,42 +64,3 @@
</p>
</div>
</template>
<script setup lang="ts">
import { useI18n } from 'vue-i18n'
const { t } = useI18n()
const props = defineProps({
title: {
type: String,
},
company: {
type: String,
},
location: {
type: String,
},
beginDate: {
type: String,
required: true,
},
endDate: {
type: String,
required: true,
},
url: {
type: String,
},
})
const getEndDate = computed(() => {
return props.endDate === 'Today'
? t('date.today')
: `${t(`months.${props.endDate.split('/')[0]}`)} ${props.endDate.split('/')[1]}`
})
const getBeginDate = computed(() => {
return `${t(`months.${props.beginDate.split('/')[0]}`)} ${props.beginDate.split('/')[1]}`
})
</script>