2018-12-25 23:41:55 +01:00
|
|
|
<template>
|
|
|
|
<div class="content has-text-centered">
|
2020-05-12 15:08:17 +02:00
|
|
|
<ShowTasks
|
2018-12-25 23:41:55 +01:00
|
|
|
:end-date="endDate"
|
2020-09-05 22:35:52 +02:00
|
|
|
:start-date="startDate"
|
2018-12-25 23:41:55 +01:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2021-11-02 19:18:54 +01:00
|
|
|
<script setup>
|
|
|
|
import { ref } from 'vue'
|
2020-09-05 22:35:52 +02:00
|
|
|
import ShowTasks from './ShowTasks'
|
2020-05-12 15:08:17 +02:00
|
|
|
|
2021-09-08 11:59:38 +02:00
|
|
|
function getNextWeekDate() {
|
|
|
|
return new Date((new Date()).getTime() + 7 * 24 * 60 * 60 * 1000)
|
|
|
|
}
|
|
|
|
|
2021-11-02 19:18:54 +01:00
|
|
|
const startDate = ref(new Date())
|
|
|
|
const endDate = ref(getNextWeekDate())
|
2018-12-25 23:41:55 +01:00
|
|
|
</script>
|