Fixed the eslint warnings in the frontend file

This commit is contained in:
ThaiMing3 2024-01-11 09:14:54 +08:00
parent bff1912979
commit ba120b4707
8 changed files with 20 additions and 13 deletions

View file

@ -23,7 +23,9 @@
</script>
<template>
<!-- eslint-disable vue/no-v-html -->
<div class="markdown" v-html="raw"></div>
<!--eslint-enable-->
</template>
<style scoped>

View file

@ -23,7 +23,8 @@
async function confirmDelete() {
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) {
@ -93,8 +94,8 @@
<BaseModal v-model="updateModal">
<template #title> Update Label </template>
<form v-if="label" @submit.prevent="update">
<FormTextField class="mt-3" v-model="updateData.name" :autofocus="true" label="Label Name" />
<FormTextArea class="mt-2" v-model="updateData.description" label="Label Description" />
<FormTextField v-model="updateData.name" class="mt-3" :autofocus="true" label="Label Name" />
<FormTextArea v-model="updateData.description" class="mt-2" label="Label Description" />
<div class="modal-action">
<BaseButton type="submit" :loading="updating"> Update </BaseButton>
</div>

View file

@ -31,7 +31,8 @@
async function confirmDelete() {
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) {
return;
@ -108,9 +109,9 @@
<BaseModal v-model="updateModal">
<template #title> Update Location </template>
<form v-if="location" @submit.prevent="update">
<FormTextField class="mt-3" v-model="updateData.name" :autofocus="true" label="Location Name" />
<FormTextArea class="mt-2" v-model="updateData.description" label="Location Description" />
<LocationSelector class="mt-2" v-model="parent" />
<FormTextField v-model="updateData.name" class="mt-3" :autofocus="true" label="Location Name" />
<FormTextArea v-model="updateData.description" class="mt-2" label="Location Description" />
<LocationSelector v-model="parent" class="mt-2" />
<div class="modal-action">
<BaseButton type="submit" :loading="updating"> Update </BaseButton>
</div>
@ -159,7 +160,8 @@
</div>
</header>
<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>
<section v-if="location && items">
<ItemViewSelectable :items="items" />

View file

@ -97,7 +97,8 @@
async function deleteProfile() {
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) {

View file

@ -125,7 +125,8 @@
async function ensureAssetIDs() {
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) {