From 9fc8cf4e8f5af22d7322bd0719f502f6612c8e57 Mon Sep 17 00:00:00 2001 From: tonyaellie Date: Fri, 29 Aug 2025 19:37:44 +0100 Subject: [PATCH] feat: sort all type issues --- frontend/components/Item/Selector.vue | 6 +++--- frontend/components/Item/View/Selectable.vue | 3 +++ frontend/components/Item/View/Table.types.ts | 1 + frontend/components/Item/View/Table.vue | 11 ++++++++++- frontend/components/Label/Chip.vue | 1 + frontend/components/Label/CreateModal.vue | 5 ++++- frontend/components/Label/Selector.vue | 1 + frontend/components/Location/Card.vue | 5 ++--- frontend/components/Location/CreateModal.vue | 5 ++++- frontend/components/Location/Tree/Node.vue | 2 ++ frontend/components/Location/Tree/Root.vue | 1 + frontend/components/Maintenance/EditModal.vue | 3 +++ frontend/components/Maintenance/ListView.vue | 7 +++++++ frontend/components/Search/Filter.vue | 4 ++-- frontend/components/global/CopyText.vue | 1 + frontend/components/global/Currency.vue | 4 +--- .../global/DetailsSection/DetailsSection.vue | 5 +++++ frontend/components/global/Markdown.vue | 2 +- frontend/components/global/Table.types.ts | 1 + frontend/composables/use-api.ts | 1 + frontend/composables/use-auth-context.ts | 2 +- frontend/composables/use-confirm.ts | 1 + frontend/composables/use-defer.ts | 1 + frontend/composables/use-route-params.ts | 1 + frontend/composables/use-server-events.ts | 2 +- frontend/error.vue | 1 + frontend/eslint.config.mjs | 1 + frontend/layouts/default.vue | 12 +++++++++++- frontend/lib/api/__test__/factories/index.ts | 4 ++-- frontend/lib/api/base/base-api.ts | 7 ++++--- frontend/pages/assets/[id].vue | 5 ++++- frontend/pages/index.vue | 4 ++++ frontend/pages/item/[id]/index/maintenance.vue | 2 ++ 33 files changed, 88 insertions(+), 24 deletions(-) diff --git a/frontend/components/Item/Selector.vue b/frontend/components/Item/Selector.vue index 6ac594fb..afde2dbc 100644 --- a/frontend/components/Item/Selector.vue +++ b/frontend/components/Item/Selector.vue @@ -55,9 +55,9 @@ }; interface Props { - label: string; - modelValue: string | ItemsObject | null | undefined; - items: ItemsObject[] | string[]; + label?: string; + modelValue?: string | ItemsObject | null | undefined; + items?: ItemsObject[] | string[]; itemText?: string; itemValue?: string; search?: string; diff --git a/frontend/components/Item/View/Selectable.vue b/frontend/components/Item/View/Selectable.vue index 559c294c..c660b5ca 100644 --- a/frontend/components/Item/View/Selectable.vue +++ b/frontend/components/Item/View/Selectable.vue @@ -5,6 +5,9 @@ import MdiTable from "~icons/mdi/table"; import { Badge } from "@/components/ui/badge"; import { Button, ButtonGroup } from "@/components/ui/button"; + import BaseSectionHeader from "@/components/Base/SectionHeader.vue"; + import ItemCard from "@/components/Item/Card.vue"; + import ItemViewTable from "@/components/Item/View/Table.vue"; type Props = { view?: ViewType; diff --git a/frontend/components/Item/View/Table.types.ts b/frontend/components/Item/View/Table.types.ts index 91c271f4..b445cb6e 100644 --- a/frontend/components/Item/View/Table.types.ts +++ b/frontend/components/Item/View/Table.types.ts @@ -9,4 +9,5 @@ export type TableHeaderType = { type?: "price" | "boolean" | "name" | "location" | "date"; }; +// eslint-disable-next-line @typescript-eslint/no-explicit-any export type TableData = Record; diff --git a/frontend/components/Item/View/Table.vue b/frontend/components/Item/View/Table.vue index 62f19062..e275706d 100644 --- a/frontend/components/Item/View/Table.vue +++ b/frontend/components/Item/View/Table.vue @@ -133,7 +133,7 @@ :sibling-count="2" @update:page="pagination.page = $event" > - +