- Implement ESLint with @antfu/eslint-config and apply consistent formatting across the codebase.

- Refactor `useTasks` to improve task fetching, creation, and updating logic.
- Enhance `TodoItem` and `ListScreen` with improved bindings, sorting, and category handling.
- Update dependencies and adjust task grouping in various components.
This commit is contained in:
2026-02-22 16:24:55 +01:00
parent 395129abb1
commit ec76a52fdd
8 changed files with 2863 additions and 149 deletions

View File

@@ -1,14 +1,17 @@
<script setup lang="ts">
import { PhCheckSquareOffset, PhListChecks, PhSliders } from '@phosphor-icons/vue';
import { useRouter } from 'vue-router';
import { computed } from 'vue';
const router = useRouter();
const currentPath = computed(() => router.currentRoute.value.path);
import { PhCheckSquareOffset, PhListChecks, PhSliders } from '@phosphor-icons/vue'
import { computed, onMounted } from 'vue'
import { useRouter } from 'vue-router'
import { useTasks } from './composables/useTasks.ts'
const { fetchTasks } = useTasks()
const router = useRouter()
const currentPath = computed(() => router.currentRoute.value.path)
onMounted(fetchTasks)
</script>
<template>
<div class="overflow-hidden">
<main class="pb-40 overflow-y-scroll h-screen">
<RouterView />
</main>
@@ -26,5 +29,4 @@ const currentPath = computed(() => router.currentRoute.value.path);
</RouterLink>
</div>
</div>
</template>