mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-18 13:12:16 +01:00
chore: Add zod/type deps and tighten TimeTracker types
This commit is contained in:
@@ -48,7 +48,10 @@
|
|||||||
"author": "solidtime",
|
"author": "solidtime",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vite-plugin-dts": "^4.0.3"
|
"@types/chroma-js": "^3.1.0",
|
||||||
|
"@zodios/core": "^10.9.6",
|
||||||
|
"vite-plugin-dts": "^4.0.3",
|
||||||
|
"zod": "^3.23.8"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@floating-ui/vue": "^1.1.4",
|
"@floating-ui/vue": "^1.1.4",
|
||||||
|
|||||||
@@ -74,10 +74,10 @@ const props = withDefaults(
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
const filteredResults = ref([] as ClientsWithProjectsWithTasks);
|
const filteredResults = ref<ClientsWithProjectsWithTasks>([]);
|
||||||
|
|
||||||
// computed filterProjects that flattens the first layer of filteredResults and combines all the projects
|
// computed filterProjects that flattens the first layer of filteredResults and combines all the projects
|
||||||
const filteredProjects = computed(() => {
|
const filteredProjects = computed<ProjectWithTasks[]>(() => {
|
||||||
return filteredResults.value.map((client) => client.projects).flat();
|
return filteredResults.value.map((client) => client.projects).flat();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user