Commit 7e4091eb authored by Julien BOUYER's avatar Julien BOUYER
Browse files

UNOTOPLYS-217 chore : fix des erreurs ESLint

parent ae484431
<template></template>
<template>
<div></div>
</template>
<script lang="ts" src="./form-preview.component.ts" />
<template></template>
<template>
<div></div>
</template>
<script lang="ts" src="./form-results.component.ts" />
......@@ -28,11 +28,11 @@ export default class FormSettings extends Vue {
public form: IForm = new Form();
private currentIdForm: number = -1;
private currentIdForm = -1;
private isSaving = false;
public authorizedUsers: Object[] = [];
public authorizedUsers: IUser[] = [];
beforeRouteEnter(to, from, next) {
next(vm => {
......
<template></template>
<template>
<div></div>
</template>
<script lang="ts" src="./form-share.component.ts" />
<template></template>
<template>
<div></div>
</template>
<script lang="ts" src="./form-variables.component.ts" />
......@@ -32,7 +32,7 @@ export default class ScreenEdit extends Vue {
public screen: IScreen = new Screen();
public newItemType: string = '';
public newItemType = '';
beforeRouteEnter(to, from, next) {
next(vm => {
......
......@@ -23,7 +23,7 @@ export default class VariableEdit extends Vue {
@Inject('headerService')
private headerService: () => HeaderService;
public idVariable: String = '';
public idVariable = '';
public variable: IVariable;
......@@ -35,7 +35,7 @@ export default class VariableEdit extends Vue {
beforeRouteEnter(to, from, next) {
next(vm => {
vm.headerService().updateTabsForFormId(to.params.idWorkspace, to.params.idForm, TABS.KEY_VARIABLE);
let idVariable = to.params.idVariable;
const idVariable = to.params.idVariable;
vm.variable.formId = to.params.idForm;
if (idVariable) {
vm.idVariable = idVariable;
......
......@@ -25,9 +25,9 @@ export default class VariableList extends Vue {
public variables: IVariable[] = [];
public idForm: string = '';
public idForm = '';
public idWorkspace: string = '';
public idWorkspace = '';
beforeRouteEnter(to, from, next) {
next(vm => {
......@@ -46,7 +46,7 @@ export default class VariableList extends Vue {
});
}
public getVariableEditLink(idVariable: String) {
public getVariableEditLink(idVariable: string) {
return `/admin/workspace/${this.idWorkspace}/form/${this.idForm}/variable/${idVariable}/edit`;
}
......
......@@ -5,6 +5,7 @@ import Card from '@/components/card/card.vue';
import Toolbar from '@/components/toolbar/toolbar.vue';
import HeaderService from '@/shared/service/header-service';
import { TABS } from '@/shared/service/tabs-constants';
import { IWorkspace } from '@/shared/model/workspace.model';
@Component({
components: {
......@@ -28,7 +29,7 @@ export default class WorkspaceList extends Vue {
/**
* Liste des workspaces.
*/
public workspaces: Object[] = [];
public workspaces: IWorkspace[] = [];
/**
* Récupération des workspaces avant de faire l'affichage.
......
......@@ -28,11 +28,11 @@ export default class WorkspaceSettings extends Vue {
public workspace: IWorkspace = new Workspace();
public authorizedUsers: Object[] = [];
public authorizedUsers: IUser[] = [];
private isSaving = false;
private currentWorkspaceId: number = -1;
private currentWorkspaceId = -1;
beforeRouteEnter(to, from, next) {
next(vm => {
......
......@@ -5,7 +5,7 @@ import Card from '@/components/card/card.vue';
import Toolbar from '@/components/toolbar/toolbar.vue';
import FormService from '@/entities/form/form.service';
import HeaderService from '@/shared/service/header-service';
import { TABS } from '@/shared/service/tabs-constants';
import { IForm } from '@/shared/model/form.model';
@Component({
components: {
......@@ -27,9 +27,9 @@ export default class WorkspaceView extends Vue {
private headerService: () => HeaderService;
/**
* Liste des workspaces.
* Liste des forms.
*/
public forms: Object[] = [];
public forms: IForm[] = [];
public idWorkspace = -1;
......
/* eslint-disable @typescript-eslint/no-var-requires */
const tailwindcssLineClamp = require('@tailwindcss/line-clamp');
module.exports = {
purge: ['./src/webapp/**.html', './src/webapp/app/**/*.{vue,js,ts,jsx,tsx}'],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment