feat: use script setup for ShowTasksinRange.vue (#931)

Co-authored-by: Dominik Pschenitschni <mail@celement.de>
Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/931
Reviewed-by: konrad <k@knt.li>
Co-authored-by: dpschen <dpschen@noreply.kolaente.de>
Co-committed-by: dpschen <dpschen@noreply.kolaente.de>
This commit is contained in:
dpschen 2021-11-02 18:18:54 +00:00 committed by konrad
parent d1ff800b41
commit 108e7af578

View file

@ -7,23 +7,14 @@
</div> </div>
</template> </template>
<script> <script setup>
import { ref } from 'vue'
import ShowTasks from './ShowTasks' import ShowTasks from './ShowTasks'
function getNextWeekDate() { function getNextWeekDate() {
return new Date((new Date()).getTime() + 7 * 24 * 60 * 60 * 1000) return new Date((new Date()).getTime() + 7 * 24 * 60 * 60 * 1000)
} }
export default { const startDate = ref(new Date())
name: 'ShowTasksInRange', const endDate = ref(getNextWeekDate())
components: {
ShowTasks,
},
data() {
return {
startDate: new Date(),
endDate: getNextWeekDate(),
}
},
}
</script> </script>