chore: uppercase const
This commit is contained in:
parent
c4d5d409d4
commit
9431c13a7f
1 changed files with 5 additions and 5 deletions
|
@ -65,7 +65,7 @@ import TaskModel from '@/models/task'
|
||||||
import {useRouter} from 'vue-router'
|
import {useRouter} from 'vue-router'
|
||||||
import Loading from '@/components/misc/loading.vue'
|
import Loading from '@/components/misc/loading.vue'
|
||||||
|
|
||||||
const dateFormat = 'yyyy-LL-dd HH:mm'
|
const DATE_FORMAT = 'yyyy-LL-dd HH:mm'
|
||||||
|
|
||||||
const store = useStore()
|
const store = useStore()
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
@ -112,14 +112,14 @@ const canWrite = computed(() => store.state.currentList.maxRight > Rights.READ)
|
||||||
const tasks = ref([])
|
const tasks = ref([])
|
||||||
const ganttBars = ref([])
|
const ganttBars = ref([])
|
||||||
|
|
||||||
const defaultStartDate = format(new Date(), dateFormat)
|
const defaultStartDate = format(new Date(), DATE_FORMAT)
|
||||||
const defaultEndDate = format(new Date((new Date()).setDate((new Date()).getDate() + 7)), dateFormat)
|
const defaultEndDate = format(new Date((new Date()).setDate((new Date()).getDate() + 7)), DATE_FORMAT)
|
||||||
|
|
||||||
function transformTaskToGanttBar(t: TaskModel) {
|
function transformTaskToGanttBar(t: TaskModel) {
|
||||||
const black = 'var(--grey-800)'
|
const black = 'var(--grey-800)'
|
||||||
return [{
|
return [{
|
||||||
startDate: t.startDate ? format(t.startDate, dateFormat) : defaultStartDate,
|
startDate: t.startDate ? format(t.startDate, DATE_FORMAT) : defaultStartDate,
|
||||||
endDate: t.endDate ? format(t.endDate, dateFormat) : defaultEndDate,
|
endDate: t.endDate ? format(t.endDate, DATE_FORMAT) : defaultEndDate,
|
||||||
ganttBarConfig: {
|
ganttBarConfig: {
|
||||||
id: t.id,
|
id: t.id,
|
||||||
label: t.title,
|
label: t.title,
|
||||||
|
|
Loading…
Reference in a new issue