forked from mirrors/homebox
chore: developer cleanup (#300)
* new PR tasks * add homebox to know words * formatting * bump deps * generate db models * ts errors * drop id * fix accessor * drop unused time field * change CI * add expected error * add type check * resolve serveral type errors * hoise in CI
This commit is contained in:
parent
88f9ff90d4
commit
bd321af29f
142 changed files with 817 additions and 1200 deletions
|
@ -101,6 +101,7 @@
|
|||
|
||||
toast.success("Logged in successfully");
|
||||
|
||||
// @ts-ignore
|
||||
authStore.$patch({
|
||||
token: data.token,
|
||||
expires: data.expiresAt,
|
||||
|
|
|
@ -408,7 +408,7 @@
|
|||
<template #description>
|
||||
<Markdown :source="item.description"> </Markdown>
|
||||
<div class="flex flex-wrap gap-2 mt-3">
|
||||
<NuxtLink ref="badge" class="badge p-3" :to="`/location/${item.location.id}`">
|
||||
<NuxtLink v-if="item.location" ref="badge" class="badge p-3" :to="`/location/${item.location.id}`">
|
||||
<Icon name="heroicons-map-pin" class="mr-2 swap-on"></Icon>
|
||||
{{ item.location.name }}
|
||||
</NuxtLink>
|
||||
|
|
|
@ -392,7 +392,7 @@
|
|||
:items="allFields ?? []"
|
||||
@change="fetchValues(f[0])"
|
||||
>
|
||||
<option v-for="fv in allFields" :key="fv" :value="fv">{{ fv }}</option>
|
||||
<option v-for="(fv, _, i) in allFields" :key="i" :value="fv">{{ fv }}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-control w-full max-w-xs">
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
{
|
||||
name: "Name",
|
||||
text: label.value?.name,
|
||||
},
|
||||
} as AnyDetail,
|
||||
{
|
||||
name: "Description",
|
||||
type: "markdown",
|
||||
|
@ -43,16 +43,16 @@
|
|||
name: "Created",
|
||||
text: label.value?.createdAt,
|
||||
type: "date",
|
||||
},
|
||||
} as AnyDetail,
|
||||
{
|
||||
name: "Updated",
|
||||
text: label.value?.updatedAt,
|
||||
type: "date",
|
||||
},
|
||||
} as AnyDetail,
|
||||
{
|
||||
name: "Database ID",
|
||||
text: label.value?.id,
|
||||
},
|
||||
} as AnyDetail,
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
@ -50,16 +50,16 @@
|
|||
name: "Created",
|
||||
text: location.value?.createdAt,
|
||||
type: "date",
|
||||
},
|
||||
} as AnyDetail,
|
||||
{
|
||||
name: "Updated",
|
||||
text: location.value?.updatedAt,
|
||||
type: "date",
|
||||
},
|
||||
} as AnyDetail,
|
||||
{
|
||||
name: "Database ID",
|
||||
text: location.value?.id,
|
||||
},
|
||||
} as AnyDetail,
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -120,7 +120,6 @@
|
|||
const locationStore = useLocationStore();
|
||||
const locations = computed(() => locationStore.allLocations);
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const parent = ref<LocationSummary | any>({});
|
||||
</script>
|
||||
|
||||
|
|
|
@ -102,8 +102,8 @@
|
|||
const confirm = useConfirm();
|
||||
const notify = useNotifier();
|
||||
|
||||
async function getBillOfMaterials() {
|
||||
await api.reports.billOfMaterials();
|
||||
function getBillOfMaterials() {
|
||||
api.reports.billOfMaterialsURL();
|
||||
}
|
||||
|
||||
async function ensureAssetIDs() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue