Skip to content

Commit 900aee4

Browse files
committed
Add some comments and fix all warnings
1 parent 0f5fc61 commit 900aee4

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/components/TodoList.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export default defineComponent({
8080
},
8181
computed: {
8282
todos() {
83+
//eslint-disable-next-line
8384
return store.getters.getTodos.sort((a: any, b: any) =>
8485
a.dueDate.localeCompare(b.dueDate)
8586
); //get todos and sort tasks by due date with the top one the oldest

src/store/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import createPersistedState from "vuex-persistedstate";
33

44
export default createStore({
55
state: {
6+
//eslint-disable-next-line
67
todos: [] as any[],
78
user: {
89
level: 1 as number, //set level to 1 as total xp is 0 when state is created
@@ -247,6 +248,7 @@ export default createStore({
247248
) as boolean; //ask user to confirm task deletion
248249
}
249250
if (deleteTask || state.todos[index].completed) {
251+
//delete task if one-time task is completed when the delete button is clicked or when user confirms deletion alert
250252
state.todos.splice(index, 1); //delete task item
251253
}
252254
},

src/typings/global.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
declare module "vue-ellipse-progress";
1+
declare module "vue-ellipse-progress"; //use vue-ellipse-progress for circular progress

0 commit comments

Comments
 (0)