-
Notifications
You must be signed in to change notification settings - Fork 1
/
daily.example.md
104 lines (91 loc) · 1.83 KB
/
daily.example.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<%
var renderTodos = function (task) {
var current;
task.todos
.slice(task.previousIndex, task.currentIndex)
.forEach(function (progress) {
%>- [<%= progress.isDone ? "x" : " " %>] <%= progress.name %>
<%
});
if (task.currentIndex < task.todos.length) {
current = task.todos[task.currentIndex];
%>- [<%= current.isDone ? "x" : " " %>] <%= current.name %>
<%
}
}
%>
## ✅ やったこと・⬜️ やること
### 実装
<%
tasks
.filter(function (task) {
return task.type === "created";
})
.reduce(function (group, task) {
group[task.previousIndex < task.currentIndex ? 0 : 1].push(task)
return group
},[
[],
[]
])
.forEach(function (group) {
group.forEach(function (task) {
%><%= task.title %>
<% renderTodos(task) %>
<%
})
});
%>
### レビュー
<%
tasks
.filter(function (task) {
return task.type === "review";
})
.reduce(function (group, task) {
if (task.previousIndex < task.currentIndex) {
group[0].push(task)
} else if (task.progressable) {
group[1].push(task)
}
return group
},[
[],
[]
])
.forEach(function (group) {
group.forEach(function (task) {
%><%= task.title %>
<% renderTodos(task) %>
<%
})
});
%>
### その他
<%
tasks
.filter(function (task) {
return task.type === "other";
})
.reduce(function (current, task) {
current[task.previousIndex < task.currentIndex ? 0 : 1].push(task)
return current
},[
[],
[]
])
.forEach(function (group) {
group.forEach(function (task) {
%><%= task.title %>
<% renderTodos(task) %>
<%
})
});
%>
## 所感
<%
comments.forEach(function (comment) {
%><%= comment %>
<%
});
%>