mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-02 15:50:27 +00:00
Fixed the eslint warnings in the frontend file
This commit is contained in:
parent
bff1912979
commit
ba120b4707
8 changed files with 20 additions and 13 deletions
|
@ -23,7 +23,9 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
<!-- eslint-disable vue/no-v-html -->
|
||||||
<div class="markdown" v-html="raw"></div>
|
<div class="markdown" v-html="raw"></div>
|
||||||
|
<!--eslint-enable-->
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|
|
@ -42,7 +42,7 @@ export function useConfirm(): Store {
|
||||||
if (!store.title) {
|
if (!store.title) {
|
||||||
throw new Error("title is not defined");
|
throw new Error("title is not defined");
|
||||||
}
|
}
|
||||||
|
|
||||||
store.title.value = title;
|
store.title.value = title;
|
||||||
store.text.value = msg;
|
store.text.value = msg;
|
||||||
return await store.reveal();
|
return await store.reveal();
|
||||||
|
|
|
@ -586,7 +586,7 @@
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section v-if="items && items.length > 0" class="my-6">
|
<section v-if="items && items.length > 0" class="my-6">
|
||||||
<ItemViewSelectable :items="items" />
|
<ItemViewSelectable :items="items" />
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -286,7 +286,7 @@
|
||||||
const confirm = useConfirm();
|
const confirm = useConfirm();
|
||||||
|
|
||||||
async function deleteAttachment(attachmentId: string) {
|
async function deleteAttachment(attachmentId: string) {
|
||||||
const confirmed = await confirm.open("Delete Attachment" , "Are you sure you want to delete this attachment?");
|
const confirmed = await confirm.open("Delete Attachment", "Are you sure you want to delete this attachment?");
|
||||||
|
|
||||||
if (confirmed.isCanceled) {
|
if (confirmed.isCanceled) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -23,7 +23,8 @@
|
||||||
|
|
||||||
async function confirmDelete() {
|
async function confirmDelete() {
|
||||||
const { isCanceled } = await confirm.open(
|
const { isCanceled } = await confirm.open(
|
||||||
"Delete Label" , "Are you sure you want to delete this label? This action cannot be undone."
|
"Delete Label",
|
||||||
|
"Are you sure you want to delete this label? This action cannot be undone."
|
||||||
);
|
);
|
||||||
|
|
||||||
if (isCanceled) {
|
if (isCanceled) {
|
||||||
|
@ -93,8 +94,8 @@
|
||||||
<BaseModal v-model="updateModal">
|
<BaseModal v-model="updateModal">
|
||||||
<template #title> Update Label </template>
|
<template #title> Update Label </template>
|
||||||
<form v-if="label" @submit.prevent="update">
|
<form v-if="label" @submit.prevent="update">
|
||||||
<FormTextField class="mt-3" v-model="updateData.name" :autofocus="true" label="Label Name" />
|
<FormTextField v-model="updateData.name" class="mt-3" :autofocus="true" label="Label Name" />
|
||||||
<FormTextArea class="mt-2" v-model="updateData.description" label="Label Description" />
|
<FormTextArea v-model="updateData.description" class="mt-2" label="Label Description" />
|
||||||
<div class="modal-action">
|
<div class="modal-action">
|
||||||
<BaseButton type="submit" :loading="updating"> Update </BaseButton>
|
<BaseButton type="submit" :loading="updating"> Update </BaseButton>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -31,7 +31,8 @@
|
||||||
|
|
||||||
async function confirmDelete() {
|
async function confirmDelete() {
|
||||||
const { isCanceled } = await confirm.open(
|
const { isCanceled } = await confirm.open(
|
||||||
"Delete Location", "Are you sure you want to delete this location and all of its items? This action cannot be undone."
|
"Delete Location",
|
||||||
|
"Are you sure you want to delete this location and all of its items? This action cannot be undone."
|
||||||
);
|
);
|
||||||
if (isCanceled) {
|
if (isCanceled) {
|
||||||
return;
|
return;
|
||||||
|
@ -108,9 +109,9 @@
|
||||||
<BaseModal v-model="updateModal">
|
<BaseModal v-model="updateModal">
|
||||||
<template #title> Update Location </template>
|
<template #title> Update Location </template>
|
||||||
<form v-if="location" @submit.prevent="update">
|
<form v-if="location" @submit.prevent="update">
|
||||||
<FormTextField class="mt-3" v-model="updateData.name" :autofocus="true" label="Location Name" />
|
<FormTextField v-model="updateData.name" class="mt-3" :autofocus="true" label="Location Name" />
|
||||||
<FormTextArea class="mt-2" v-model="updateData.description" label="Location Description" />
|
<FormTextArea v-model="updateData.description" class="mt-2" label="Location Description" />
|
||||||
<LocationSelector class="mt-2" v-model="parent" />
|
<LocationSelector v-model="parent" class="mt-2" />
|
||||||
<div class="modal-action">
|
<div class="modal-action">
|
||||||
<BaseButton type="submit" :loading="updating"> Update </BaseButton>
|
<BaseButton type="submit" :loading="updating"> Update </BaseButton>
|
||||||
</div>
|
</div>
|
||||||
|
@ -159,7 +160,8 @@
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<div class="divider my-0 mb-1"></div>
|
<div class="divider my-0 mb-1"></div>
|
||||||
<Markdown v-if="location && location.description" class="text-base ml-2" :source="location.description"> </Markdown>
|
<Markdown v-if="location && location.description" class="text-base ml-2" :source="location.description">
|
||||||
|
</Markdown>
|
||||||
</div>
|
</div>
|
||||||
<section v-if="location && items">
|
<section v-if="location && items">
|
||||||
<ItemViewSelectable :items="items" />
|
<ItemViewSelectable :items="items" />
|
||||||
|
|
|
@ -97,7 +97,8 @@
|
||||||
|
|
||||||
async function deleteProfile() {
|
async function deleteProfile() {
|
||||||
const result = await confirm.open(
|
const result = await confirm.open(
|
||||||
"Delete Account", "Are you sure you want to delete your account? If you are the last member in your group all your data will be deleted. This action cannot be undone."
|
"Delete Account",
|
||||||
|
"Are you sure you want to delete your account? If you are the last member in your group all your data will be deleted. This action cannot be undone."
|
||||||
);
|
);
|
||||||
|
|
||||||
if (result.isCanceled) {
|
if (result.isCanceled) {
|
||||||
|
|
|
@ -125,7 +125,8 @@
|
||||||
|
|
||||||
async function ensureAssetIDs() {
|
async function ensureAssetIDs() {
|
||||||
const { isCanceled } = await confirm.open(
|
const { isCanceled } = await confirm.open(
|
||||||
"Ensure Asset IDs", "Are you sure you want to ensure all assets have an ID? This can take a while and cannot be undone."
|
"Ensure Asset IDs",
|
||||||
|
"Are you sure you want to ensure all assets have an ID? This can take a while and cannot be undone."
|
||||||
);
|
);
|
||||||
|
|
||||||
if (isCanceled) {
|
if (isCanceled) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue