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:
Hayden 2023-02-17 21:41:01 -09:00 committed by GitHub
parent 88f9ff90d4
commit bd321af29f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
142 changed files with 817 additions and 1200 deletions

View file

@ -101,6 +101,7 @@
toast.success("Logged in successfully");
// @ts-ignore
authStore.$patch({
token: data.token,
expires: data.expiresAt,

View file

@ -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>

View file

@ -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">

View file

@ -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,
];
}

View file

@ -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>

View file

@ -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() {