[Tasks calendar] Added 15min task

This commit is contained in:
Matej Glasnák committed 2022-12-12 17:13:58 +01:00
1 parent b89ac1c343
commit a4401bf922
3 files changed
+27 -9

No files matched your search

@@ -46,6 +46,16 @@
"master_task_color": "#E9FFE6" "master_task_color": "#E9FFE6"
}, },
{
"id": 1,
"task_id": 1,
"starts_at": "2022-12-12T08:30:00+00:00",
"ends_at": "2022-12-12T09:00:00+00:00",
"title": "Kratky task",
"project_code": "CO-2201",
"master_task_color": "#f27e57"
},
{ {
"id": 2, "id": 2,
"task_id": 2, "task_id": 2,
@@ -35,6 +35,14 @@
"starts_at": "2022-11-10T16:00:00+00:00", "starts_at": "2022-11-10T16:00:00+00:00",
"ends_at": "2022-11-12T18:00:00+00:00", "ends_at": "2022-11-12T18:00:00+00:00",
"is_blocker": true "is_blocker": true
},
{
"id": 4,
"is_finished": false,
"starts_at": "2022-12-12T17:30:00+00:00",
"ends_at": "2022-12-12T18:00:00+00:00",
"is_blocker": true
} }
] ]
}, },
@@ -13,7 +13,7 @@
:unscheduledTime="calData.unscheduled_times" :unscheduledTime="calData.unscheduled_times"
:overlaps-per-time-step="false" :overlaps-per-time-step="false"
:showTimeInCells="false" :showTimeInCells="false"
:time-cell-height="200" :time-cell-height="100"
:min-cell-width="300" :min-cell-width="300"
@ready="onReady()" @ready="onReady()"
@view-change="weekChanged" @view-change="weekChanged"
@@ -22,7 +22,7 @@
<template v-slot:weekday-heading="{ heading }"> <template v-slot:weekday-heading="{ heading }">
<div class="w-100 h-100 d-flex flex-column"> <div class="w-100 h-100 d-flex flex-column">
<span class="d-flex align-center"> <span class="d-flex align-center">
<img v-if="getHeadingDate(heading.date) == 'Dnes'" :src="require('./_img/home-icon.svg')" class="mr-2"> <img v-if="getHeadingDate(heading.date) == 'Dnes'" :src="require('./_img/home-icon.svg')" class="mr-2">
<p>{{ getHeadingDate(heading.date) }}</p> <p>{{ getHeadingDate(heading.date) }}</p>
</span> </span>
@@ -68,7 +68,7 @@
</Vue-cal> </Vue-cal>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
props: { props: {
@@ -96,7 +96,7 @@ export default {
drag: true, drag: true,
resize: false, resize: false,
delete: false, delete: false,
create: false create: false
} }
}, },
} }
@@ -199,7 +199,7 @@ export default {
display: none !important display: none !important
.weekday-label .weekday-label
justify-content: start !important justify-content: start !important
font-size: 24px font-size: 24px
font-weight: 700 font-weight: 700
@@ -232,7 +232,7 @@ export default {
font-weight: 400 font-weight: 400
font-size: 20px font-size: 20px
color: white color: white
.vuecal__cells.week-view .vuecal__cells.week-view
border-left: 1px solid rgba(0, 0, 0, .1) border-left: 1px solid rgba(0, 0, 0, .1)
@@ -241,14 +241,14 @@ export default {
.vuecal__time-column .vuecal__time-column
width: 150px width: 150px
box-shadow: none !important box-shadow: none !important
.time-column-line .time-column-line
width: 40px width: 40px
height: 0 height: 0
border: 1px solid rgba(33, 33, 33, 0.08) border: 1px solid rgba(33, 33, 33, 0.08)
margin-left: 10px margin-left: 10px
@media (max-width: 450px) @media (max-width: 450px)
.vuecal__time-column .vuecal__time-column
width: 70px width: 70px
@@ -259,7 +259,7 @@ export default {
flex-wrap: nowrap !important flex-wrap: nowrap !important
.vuecal__cell .vuecal__cell
padding: 10px 20px 10px 0px padding: 10px 20px 10px 0px
.vuecal:not(.vuecal--day-view) .vuecal__cell--selected:not(.vuecal__cell--today) , .vuecal:not(.vuecal--day-view) .vuecal__cell--selected:not(.vuecal__cell--today) ,
.vuecal__cell--current:not(.vuecal__cell--today), .vuecal__cell--current:not(.vuecal__cell--today),