Skip to content

Commit

Permalink
chore: add some misssing trim
Browse files Browse the repository at this point in the history
  • Loading branch information
Yizack committed Jul 24, 2024
1 parent c8ebc16 commit 1456b68
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/pages/admin/dashboard/publicar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async function getPostContent (permalink: string, updated: number) {
<div class="row">
<div class="col-12 d-flex flex-wrap py-2 align-items-center gap-2 shadow bg-dark">
<div class="form-floating flex-grow-1">
<input v-model="form.titulo" type="text" class="form-control form-control-lg" :placeholder="t('titulo')" required @input="generatePermalink($event)">
<input v-model.trim="form.titulo" type="text" class="form-control form-control-lg" :placeholder="t('titulo')" required @input="generatePermalink($event)">
<label>{{ t("titulo") }}</label>
</div>
<Transition name="fade" mode="out-in">
Expand Down
2 changes: 1 addition & 1 deletion app/pages/admin/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ definePageMeta({ layout: false, middleware: "auth" });
<h5 class="text-center mb-4 text-uppercase">{{ t("admin") }}</h5>
</div>
<div class="form-floating mb-3">
<input v-model="form.user" type="text" class="form-control" :placeholder="t('usuario')" autocomplete="username" required>
<input v-model.trim="form.user" type="text" class="form-control" :placeholder="t('usuario')" autocomplete="username" required>
<label>{{ t("usuario") }}</label>
</div>
<div class="form-floating mb-3">
Expand Down
14 changes: 7 additions & 7 deletions app/pages/contacto.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ useHead({
<p class="m-0">{{ t("contacto_desc") }}</p>
</div>
<div class="form-floating mb-3">
<input v-model="contacto.name" type="text" class="form-control" :placeholder="t('nombre')" required>
<input v-model.trim="contacto.name" type="text" class="form-control" :placeholder="t('nombre')" required>
<label>{{ t("nombre") }}</label>
</div>
<div class="form-floating mb-3">
<input v-model="contacto.email" type="email" class="form-control" :placeholder="t('correo')" required>
<input v-model.trim="contacto.email" type="email" class="form-control" :placeholder="t('correo')" required>
<label>{{ t("correo") }}</label>
</div>
<div class="form-floating mb-3">
<input v-model="contacto.subject" type="text" class="form-control" :placeholder="t('asunto')" required>
<input v-model.trim="contacto.subject" type="text" class="form-control" :placeholder="t('asunto')" required>
<label>{{ t("asunto") }}</label>
</div>
<div class="form-floating">
<textarea v-model="contacto.message" class="form-control" :placeholder="t('mensaje')" style="height: 200px" required />
<textarea v-model.trim="contacto.message" class="form-control" :placeholder="t('mensaje')" style="height: 200px" required />
<label for="floatingTextarea2">{{ t("mensaje") }}</label>
</div>
<div class="my-3">
Expand Down Expand Up @@ -80,16 +80,16 @@ useHead({
<p class="m-0">{{ t("unirse_desc") }}</p>
</div>
<div class="form-floating mb-3">
<input v-model="unirse.name" type="text" class="form-control" :placeholder="t('nombre_full')" required>
<input v-model.trim="unirse.name" type="text" class="form-control" :placeholder="t('nombre_full')" required>
<label>{{ t("nombre_full") }}</label>
</div>
<div class="form-floating mb-3">
<input v-model="unirse.email" type="email" class="form-control" :placeholder="t('correo')" required>
<input v-model.trim="unirse.email" type="email" class="form-control" :placeholder="t('correo')" required>
<label>{{ t("correo") }}</label>
</div>
<h5><strong>{{ t("porque_pesp") }}</strong></h5>
<div class="form-floating mb-3">
<textarea v-model="unirse.message" class="form-control" :placeholder="t('cuentanos')" style="height: 200px" required />
<textarea v-model.trim="unirse.message" class="form-control" :placeholder="t('cuentanos')" style="height: 200px" required />
<label for="floatingTextarea2">{{ t("cuentanos") }}</label>
</div>
<div class="row my-0 my-md-3">
Expand Down

0 comments on commit 1456b68

Please sign in to comment.