feat: added components

This commit is contained in:
Mike 2023-12-26 09:25:40 -08:00
parent 46cca88e22
commit 5a9f303e80
2 changed files with 1 additions and 11 deletions

View file

@ -10,17 +10,6 @@ function createTodo(title, description, dueDate, pomodoros) {
return _todo;
}
function editTodo(_todo, title, description, dueDate, pomodoros) {
if (description) _todo.description = description;
if (dueDate) _todo.dueDate = dueDate;
if (pomodoros) _todo.pomodors = pomodoros;
}
function deleteTodo() {
}
function createProject(name) {
let project = {
name: name,

View file

@ -5,6 +5,7 @@ let todos = new todoHandler();
// todoHandler().addTodo('default', 'test', 'some stuff', 'today', 5);
todos.addProject('chores');
todos.addTodo('default', 'test default 2', 'some stuff', 'today', 5);
todos.addTodo('default', 'default 2', 'some stuff', 'today', 5);
// todos.addTodo('chores', 'choretest', 'some stuff', 'today', 5);
console.log(todos.getTodos());
// todos.delProject('de');