Skip to content

Commit

Permalink
cleanup: be compliant with vue-tsc
Browse files Browse the repository at this point in the history
  • Loading branch information
prigaux committed Jan 29, 2024
1 parent 76ffef9 commit ab3b35a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/src/attrs/AutocompleteAttr.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div v-if="opts.readOnly">
<component v-if="opts.uiOptions && opts.uiOptions.texts_are_vue_template"
:is="formatting_vue(val)" :v="v"></component>
<input v-else disabled="disabled" class="form-control" :value="val ? val.title : ''">
<input v-else :disabled="true" class="form-control" :value="val ? val.title : ''">
</div>
<div :class="{ 'input-group': array_allowed_actions.any }" v-else>
<typeahead :id="name" :name="name" v-model="val" :options="search" :minChars="3" :formatting="formatting" :formatting_html="formatting_html"
Expand Down
5 changes: 3 additions & 2 deletions app/src/attrs/PhotoUploadAttr.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
</div>
<nav class="photoModifyButtons">
<ul class="nav">
<li><button type="button" @click="$refs.croppie.rotate(90)" title="Rotation droite">↺</button></li>
<li><button type="button" @click="$refs.croppie.rotate(-90)" title="Rotation gauche">↻</button></li>

<li><!-- @vue-ignore --><button type="button" @click="$refs.croppie.rotate(90)" title="Rotation droite">↺</button></li>
<li><!-- @vue-ignore --><button type="button" @click="$refs.croppie.rotate(-90)" title="Rotation gauche">↻</button></li>
<li><button type="button" @click="croppieValidate()" title="Valider la photo" class="submit"><span class="glyphicon glyphicon-ok"></span></button></li>
<li><button type="button" @click="cancel()" title="Annuler"><span class="glyphicon glyphicon-remove"></span></button></li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion app/src/controllers/ModerateList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<InitialStep :step="step"></InitialStep>
</div>

<div v-for="(svs_,step) in svsGroupedByStep">
<div v-for="(svs_,_step) in svsGroupedByStep">
<h2 v-if="svs_[0].step.labels" v-html="svs_[0].step.labels.title_in_list || svs_[0].step.labels.title"></h2>
<template v-for="description in [svs_[0].step.labels.description_in_list]">
<div style="margin-bottom: 0.7rem;" v-html="description"></div>
Expand Down
9 changes: 9 additions & 0 deletions app/src/global-mixins.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Vue from "vue";
import conf from './conf';

declare module "vue/types/vue" {
interface Vue {
default_attrs_title: Dictionary<string>
conf: typeof conf
}
}
2 changes: 1 addition & 1 deletion app/src/import/ImportFile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</div>

<p v-if="forced_headers_">
<input v-model="ignore_first_line" type="checkbox"> Ignorer la 1ère ligne</input>
<input v-model="ignore_first_line" type="checkbox"> Ignorer la 1ère ligne
</p>

<button type="button" class="btn btn-primary" @click="to_import = null">
Expand Down

0 comments on commit ab3b35a

Please sign in to comment.