chore: install prettier

This commit is contained in:
Viet An
2026-05-04 15:22:27 +07:00
parent 93d29ca7d8
commit bd58e2b847
267 changed files with 22950 additions and 13581 deletions

View File

@@ -1,6 +1,10 @@
<template>
<div>
<div class="file is-primary" id="ignore" v-if="position === 'left'">
<div
class="file is-primary"
id="ignore"
v-if="position === 'left'"
>
<label class="file-label">
<input
class="file-input"
@@ -12,15 +16,17 @@
/>
<span class="file-cta px-2">
<span class="icon-text is-clickable">
<SvgIcon
v-bind="{ name: 'attach-file.svg', type: 'white', size: 22 }"
></SvgIcon>
<SvgIcon v-bind="{ name: 'attach-file.svg', type: 'white', size: 22 }"></SvgIcon>
<!--<span class="has-text-white">File</span>-->
</span>
</span>
</label>
</div>
<div class="field is-grouped is-grouped-right" id="ignore" v-else>
<div
class="field is-grouped is-grouped-right"
id="ignore"
v-else
>
<div class="control">
<div class="file is-primary">
<label class="file-label">
@@ -34,9 +40,7 @@
/>
<span class="file-cta is-primary px-1">
<span class="icon-text is-clickable">
<SvgIcon
v-bind="{ name: 'attach-file.svg', type: 'white', size: 22 }"
></SvgIcon>
<SvgIcon v-bind="{ name: 'attach-file.svg', type: 'white', size: 22 }"></SvgIcon>
</span>
</span>
</label>
@@ -75,10 +79,10 @@ export default {
const imageFormat = ["png", "jpg", "jpeg", "bmp", "gif", "svg", "webp"];
const videoFormat = ["wmv", "avi", "mp4", "flv", "mov", "mpg", "amv", "rm"];
if (ext === 'pdf') return 'pdf';
if (imageFormat.includes(ext)) return 'image';
if (videoFormat.includes(ext)) return 'video';
return 'file';
if (ext === "pdf") return "pdf";
if (imageFormat.includes(ext)) return "image";
if (videoFormat.includes(ext)) return "video";
return "file";
},
doChange() {
this.dataFiles = [];