From 03d4fc75b3062e285e09634bc120a03c7edb8e4c Mon Sep 17 00:00:00 2001 From: jon r Date: Mon, 24 Feb 2025 02:55:09 +0100 Subject: [PATCH] chore(front): fmt --- front/src/components/ui/Pill.vue | 8 +- front/src/components/ui/Textarea.vue | 28 +++--- front/src/ui/modals/Upload.vue | 133 +++++++++++++++------------ 3 files changed, 92 insertions(+), 77 deletions(-) diff --git a/front/src/components/ui/Pill.vue b/front/src/components/ui/Pill.vue index c1a0c090d..0d164627d 100644 --- a/front/src/components/ui/Pill.vue +++ b/front/src/components/ui/Pill.vue @@ -2,22 +2,21 @@ import { ref, onMounted } from 'vue' import { type ColorProps, type PastelProps, type VariantProps, type RaisedProps, color } from '~/composables/color' - -const input = ref(); +const input = ref() const emit = defineEmits<{ click: [event: MouseEvent] }>() const handleClick = (event: MouseEvent) => { emit('click', event) if (model.value !== undefined) { - input.value?.focus(); + input.value?.focus() } } const props = defineProps<{ noUnderline?:true, autofocus? : boolean } &(PastelProps | ColorProps) & VariantProps & RaisedProps>() const model = defineModel() onMounted(() => { - if (props.autofocus) input.value?.focus(); + if (props.autofocus) input.value?.focus() }) const sanitize = () => @@ -26,7 +25,6 @@ const sanitize = () => const sanitizeAndBlur = () => sanitize() && input.value?.blur() -