Remove BiomeJS integration and improve task categorization in useTasks
- Removed BiomeJS configuration and replaced formatting script with ESLint in `package.json`. - Updated `useTasks` to utilize `@vueuse/core` methods for improved task categorization and unique category retrieval. - Simplified task grouping logic in `ListScreen`.
This commit is contained in:
@@ -14,12 +14,7 @@ onMounted(async () => {
|
||||
|
||||
const visibleTasks = computed<Task[]>(() => tasks.value.filter(task => !task.archived))
|
||||
|
||||
const categorizedTasks = computed(() => visibleTasks.value.reduce((acc, task) => {
|
||||
const tag = task.tag ?? 'Uncategorized';
|
||||
acc[tag] = acc[tag] ?? [];
|
||||
acc[tag].push(task);
|
||||
return acc;
|
||||
}, {} as Record<string, Task[]>))
|
||||
const categorizedTasks = computed(() => visibleTasks.value.reduce())
|
||||
|
||||
const collapsed = ref<string[]>([]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user