This repository was archived by the owner on Dec 15, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +34
-7
lines changed
Expand file tree Collapse file tree 4 files changed +34
-7
lines changed Original file line number Diff line number Diff line change 11export default class Project {
22 constructor ( {
3- name = "_No_Name_Provided_ " ,
3+ name = "_No_Project_Name_Provided_ " ,
44 parent_id,
55 color,
6- favorite = false ,
6+ favorite,
77 } = { } ) {
88 this . name = name ;
9+ //these are optional
910 this . parent_id = parent_id ;
1011 this . color = color ;
1112 this . favorite = favorite ;
Original file line number Diff line number Diff line change 1+ export default class Section {
2+ constructor ( { name = "_No_Section_Name_Provided_" , parent_id, order } = { } ) {
3+ this . name = name ;
4+ //these are optional
5+ this . parent_id = parent_id ;
6+ this . order = order ;
7+ }
8+ }
Original file line number Diff line number Diff line change 11export default class Task {
22 constructor ( {
33 content = "_NO_CONTENT_" ,
4- due_string = "" ,
5- due_lang = "" ,
6- priority = 1 ,
4+ project_id,
5+ section_id,
6+ parent_id,
7+ order,
8+ label_ids,
9+ priority,
10+ due_string,
11+ due_date,
12+ due_datetime,
13+ due_lang,
14+ assignee,
715 } = { } ) {
8- this . priority = priority ;
916 this . content = content ;
17+ //these are optional
18+ this . project_id = project_id ;
19+ this . section_id = section_id ;
20+ this . parent_id = parent_id ;
21+ this . order = order ;
22+ this . label_ids = label_ids ;
23+ this . priority = priority ;
1024 this . due_string = due_string ;
25+ this . due_date = due_date ;
26+ this . due_datetime = due_datetime ;
1127 this . due_lang = due_lang ;
28+ this . assignee = assignee ;
1229 }
1330}
Original file line number Diff line number Diff line change 11import Task from "./Task.js" ;
22import Project from "./Project.js" ;
3+ import Section from "./Section.js" ;
34
4- export { Task , Project } ;
5+ export { Task , Project , Section } ;
You can’t perform that action at this time.
0 commit comments