Fix lint issues
And disable eslint when building in prod mode Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -6,13 +6,20 @@
|
||||
<router-link
|
||||
:to="{
|
||||
name: RouteName.GROUP,
|
||||
params: { preferredUsername: todo.todoList.actor.preferredUsername },
|
||||
params: {
|
||||
preferredUsername: todo.todoList.actor.preferredUsername,
|
||||
},
|
||||
}"
|
||||
>{{ todo.todoList.actor.name }}</router-link
|
||||
>
|
||||
</li>
|
||||
<li>
|
||||
<router-link :to="{ name: RouteName.TODO_LIST, params: { id: todo.todoList.id } }">
|
||||
<router-link
|
||||
:to="{
|
||||
name: RouteName.TODO_LIST,
|
||||
params: { id: todo.todoList.id },
|
||||
}"
|
||||
>
|
||||
{{ todo.todoList.title }}
|
||||
</router-link>
|
||||
</li>
|
||||
|
||||
@@ -21,7 +21,9 @@
|
||||
>
|
||||
</li>
|
||||
<li class="is-active">
|
||||
<router-link :to="{ name: RouteName.TODO_LIST, params: { id: todoList.id } }">
|
||||
<router-link
|
||||
:to="{ name: RouteName.TODO_LIST, params: { id: todoList.id } }"
|
||||
>
|
||||
{{ todoList.title }}
|
||||
</router-link>
|
||||
</li>
|
||||
@@ -95,7 +97,9 @@ export default class TodoList extends Vue {
|
||||
if (cachedData == null) return;
|
||||
const { todoList } = cachedData;
|
||||
if (todoList === null) {
|
||||
console.error("Cannot update event notes cache, because of null value.");
|
||||
console.error(
|
||||
"Cannot update event notes cache, because of null value."
|
||||
);
|
||||
return;
|
||||
}
|
||||
const newTodo: ITodo = data.createTodo;
|
||||
|
||||
@@ -25,7 +25,9 @@
|
||||
<section>
|
||||
<p>
|
||||
{{
|
||||
$t("Create to-do lists for all the tasks you need to do, assign them and set due dates.")
|
||||
$t(
|
||||
"Create to-do lists for all the tasks you need to do, assign them and set due dates."
|
||||
)
|
||||
}}
|
||||
</p>
|
||||
<form class="form" @submit.prevent="createNewTodoList">
|
||||
@@ -35,7 +37,9 @@
|
||||
<b-button native-type="submit">{{ $t("Create a new list") }}</b-button>
|
||||
</form>
|
||||
<div v-for="todoList in todoLists" :key="todoList.id">
|
||||
<router-link :to="{ name: RouteName.TODO_LIST, params: { id: todoList.id } }">
|
||||
<router-link
|
||||
:to="{ name: RouteName.TODO_LIST, params: { id: todoList.id } }"
|
||||
>
|
||||
<h3 class="is-size-3">
|
||||
{{
|
||||
$tc("{title} ({count} todos)", todoList.todos.total, {
|
||||
@@ -45,7 +49,11 @@
|
||||
}}
|
||||
</h3>
|
||||
</router-link>
|
||||
<compact-todo :todo="todo" v-for="todo in todoList.todos.elements" :key="todo.id" />
|
||||
<compact-todo
|
||||
:todo="todo"
|
||||
v-for="todo in todoList.todos.elements"
|
||||
:key="todo.id"
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user