File tree 21 files changed +97
-74
lines changed
21 files changed +97
-74
lines changed Original file line number Diff line number Diff line change 121
121
[(send [404 ~ [%plain "404 - Not Found" ]]) state]
122
122
::
123
123
%version
124
- [(send [200 ~ [%json (version:enjs '2024-07-13 .1' )]]) state]
124
+ [(send [200 ~ [%json (version:enjs '2024-08-09 .1' )]]) state]
125
125
::
126
126
%members
127
127
?. auth
Original file line number Diff line number Diff line change @@ -175,12 +175,17 @@ main > ul > li {
175
175
mask : var (--circle-question ) center center / 100% auto no-repeat;
176
176
}
177
177
178
+ .tasks__todo > li : not (: last-child ) {
179
+ margin-bottom : var (--vspace--1 );
180
+ }
181
+
178
182
.tasks__done {
179
183
opacity : 0.5 ;
180
184
}
181
185
182
- .tasks > li : not (: last-child ) {
186
+ .tasks__add-task > li : not (: last-child ) {
183
187
margin-bottom : var (--vspace--1 );
188
+ margin-top : var (--vspace--1 );
184
189
}
185
190
186
191
/* .column { */
@@ -233,7 +238,7 @@ main > ul > li {
233
238
position : sticky;
234
239
bottom : 0 ;
235
240
background : var (--color-bg );
236
- padding-top : var (--vspace--2 );
241
+ padding-top : var (--vspace--1 );
237
242
padding-bottom : var (--vspace--1 );
238
243
}
239
244
Original file line number Diff line number Diff line change @@ -102,7 +102,6 @@ <h1>Maat</h1>
102
102
< blockquote >
103
103
< a href ="https://www.createwcare.com/ "> Created w/ care</ a >
104
104
</ blockquote >
105
-
106
105
< h2 > About</ h2 >
107
106
< table class ="col-two ">
108
107
< thead > </ thead >
Original file line number Diff line number Diff line change 106
106
mustache-template ="list_edit__template "
107
107
> </ div >
108
108
< template id ="list_edit__template ">
109
- < h1 > Update {{host}}/{{title}}</ h1 >
109
+ < h1 > {{title}}</ h1 >
110
+ < h2 > Update List</ h2 >
110
111
< form
111
112
id ="update-list "
112
113
hx-put ="/api/lists "
Original file line number Diff line number Diff line change 97
97
< div id ="error-div " class ="error ">
98
98
< pre hidden id ="error-pre "> </ pre >
99
99
</ div >
100
- < h1 > Update Task</ h1 >
100
+ < h1
101
+ hx-get ="/api/lists/{gid} "
102
+ hx-trigger ="load "
103
+ hx-ext ="client-side-templates "
104
+ mustache-template ="edit-task__list-template "
105
+ > </ h1 >
106
+ < h2 > Update Task</ h2 >
107
+ < template id ="edit-task__list-template "> {{title}} </ template >
101
108
< div
102
109
id ="update "
103
110
class ="stack "
Original file line number Diff line number Diff line change 97
97
< div id ="error-div " class ="error ">
98
98
< pre hidden id ="error-pre "> </ pre >
99
99
</ div >
100
- <!-- TODO: does not work -->
101
- <!-- <h1 -->
102
- <!-- hx-get="/api/lists/{gid}" -->
103
- <!-- hx-trigger="load" -->
104
- <!-- hx-ext="client-side-templates" -->
105
- <!-- mustache-template="invite__title-template" -->
106
- <!-- hidden -->
107
- <!-- ></h1> -->
108
- <!-- <template id="invite__title-template"> -->
109
- <!-- {{title}} -->
110
- <!-- </template> -->
100
+ < h1
101
+ hx-get ="/api/lists/{gid} "
102
+ hx-trigger ="load "
103
+ hx-ext ="client-side-templates "
104
+ mustache-template ="invite__list-template "
105
+ > </ h1 >
106
+ < template id ="invite__list-template "> {{title}} </ template >
111
107
112
108
< h2 > Add members</ h2 >
113
109
Original file line number Diff line number Diff line change 97
97
< div id ="error-div " class ="error ">
98
98
< pre hidden id ="error-pre "> </ pre >
99
99
</ div >
100
- < h1 > Settings</ h1 >
100
+ < h1
101
+ hx-get ="/api/lists/{gid} "
102
+ hx-trigger ="load "
103
+ hx-ext ="client-side-templates "
104
+ mustache-template ="tasks__list-template "
105
+ > </ h1 >
106
+ < template id ="tasks__list-template "> {{title}} </ template >
107
+ < h2 > Settings</ h1 >
101
108
102
- < h2 > Details</ h2 >
109
+ < h3 > Details</ h3 >
103
110
< table
104
111
class ="col-two "
105
112
hx-get ="/api/lists/{gid} "
@@ -125,10 +132,10 @@ <h2>Details</h2>
125
132
</ tbody >
126
133
</ template >
127
134
128
- < h2 > Update list</ h2 >
135
+ < h3 > Update list</ h3 >
129
136
< p > < a href ="/lists/{gid}/edit "> Update</ a > this lists metadata.</ p >
130
137
131
- < h2 > Members</ h2 >
138
+ < h3 > Members</ h3 >
132
139
< ul
133
140
hx-get ="/api/lists/{gid}/members "
134
141
hx-trigger ="load "
@@ -144,7 +151,7 @@ <h2>Members</h2>
144
151
</ template >
145
152
</ ul >
146
153
147
- < h2 > Add members</ h2 >
154
+ < h3 > Add members</ h3 >
148
155
< p >
149
156
< a
150
157
hx-get ="/lists/{gid}/invite "
@@ -156,7 +163,7 @@ <h2>Add members</h2>
156
163
members to this list.
157
164
</ p >
158
165
159
- < h2 > Export tasks</ h2 >
166
+ < h3 > Export tasks</ h3 >
160
167
< p >
161
168
< a
162
169
onclick ="window.location.pathname = '/apps/maat/api/lists/' + gid() + '/tasks' "
@@ -165,7 +172,7 @@ <h2>Export tasks</h2>
165
172
all tasks of this list as JSON.
166
173
</ p >
167
174
168
- < h2 > Delete list</ h2 >
175
+ < h3 > Delete list</ h3 >
169
176
< p >
170
177
Permanently
171
178
< a
Original file line number Diff line number Diff line change 110
110
< div id ="error-div " class ="error ">
111
111
< pre hidden id ="error-pre "> </ pre >
112
112
</ div >
113
- <!-- <h1 -->
114
- <!-- id="task_show__title" -->
115
- <!-- hx-get="/api/lists/{gid}" -->
116
- <!-- hx-trigger="load" -->
117
- <!-- hx-ext="client-side-templates" -->
118
- <!-- mustache-template="task_show__title_template" -->
119
- <!-- ></h1> -- >
120
- <!-- < template id="task_show__title_template"> {{title}} </template> -- >
113
+ < h1
114
+ id ="task_show__title "
115
+ hx-get ="/api/lists/{gid} "
116
+ hx-trigger ="load "
117
+ hx-ext ="client-side-templates "
118
+ mustache-template ="task_show__title_template "
119
+ > </ h1 >
120
+ < template id ="task_show__title_template "> {{title}} </ template >
121
121
< div
122
122
id ="update "
123
123
class ="stack "
Original file line number Diff line number Diff line change 98
98
< pre hidden id ="error-pre "> </ pre >
99
99
</ div >
100
100
<!-- TODO: does not work -->
101
- < h1 > Tasks</ h1 >
102
101
< h1
103
102
hx-get ="/api/lists/{gid} "
104
103
hx-trigger ="load "
105
104
hx-ext ="client-side-templates "
106
105
mustache-template ="tasks__list-template "
107
- hidden
108
106
> </ h1 >
109
107
< template id ="tasks__list-template "> {{title}} </ template >
110
108
@@ -149,7 +147,7 @@ <h1>Tasks</h1>
149
147
150
148
<!-- Undone tasks -->
151
149
< ul
152
- class ="tasks "
150
+ class ="tasks__todo "
153
151
hx-get ="/api/lists/{gid}/tasks "
154
152
hx-vals ='{"done": "false"} '
155
153
hx-include ="#tasks__tags "
@@ -221,6 +219,7 @@ <h1>Tasks</h1>
221
219
< li >
222
220
< a class ="icon icon-circle-plus "> </ a >
223
221
< form
222
+ id ="tasks__add-task "
224
223
class ="inline "
225
224
hx-put ="/api/lists/{gid}/tasks "
226
225
hx-swap ="none "
Original file line number Diff line number Diff line change 7
7
mustache-template ="list_edit__template "
8
8
> </ div >
9
9
< template id ="list_edit__template ">
10
- < h1 > Update {{host}}/{{title}}</ h1 >
10
+ < h1 > {{title}}</ h1 >
11
+ < h2 > Update List</ h2 >
11
12
< form
12
13
id ="update-list "
13
14
hx-put ="/api/lists "
Original file line number Diff line number Diff line change 1
- < h1 > Update Task</ h1 >
1
+ < h1
2
+ hx-get ="/api/lists/{gid} "
3
+ hx-trigger ="load "
4
+ hx-ext ="client-side-templates "
5
+ mustache-template ="edit-task__list-template "
6
+ > </ h1 >
7
+ < h2 > Update Task</ h2 >
8
+ < template id ="edit-task__list-template "> {{title}} </ template >
2
9
< div
3
10
id ="update "
4
11
class ="stack "
Original file line number Diff line number Diff line change 1
- <!-- TODO: does not work -->
2
- <!-- <h1 -->
3
- <!-- hx-get="/api/lists/{gid}" -->
4
- <!-- hx-trigger="load" -->
5
- <!-- hx-ext="client-side-templates" -->
6
- <!-- mustache-template="invite__title-template" -->
7
- <!-- hidden -->
8
- <!-- ></h1> -->
9
- <!-- <template id="invite__title-template"> -->
10
- <!-- {{title}} -->
11
- <!-- </template> -->
1
+ < h1
2
+ hx-get ="/api/lists/{gid} "
3
+ hx-trigger ="load "
4
+ hx-ext ="client-side-templates "
5
+ mustache-template ="invite__list-template "
6
+ > </ h1 >
7
+ < template id ="invite__list-template "> {{title}} </ template >
12
8
13
9
< h2 > Add members</ h2 >
14
10
Original file line number Diff line number Diff line change 1
- < h1 > Settings</ h1 >
1
+ < h1
2
+ hx-get ="/api/lists/{gid} "
3
+ hx-trigger ="load "
4
+ hx-ext ="client-side-templates "
5
+ mustache-template ="tasks__list-template "
6
+ > </ h1 >
7
+ < template id ="tasks__list-template "> {{title}} </ template >
8
+ < h2 > Settings</ h1 >
2
9
3
- < h2 > Details</ h2 >
10
+ < h3 > Details</ h3 >
4
11
< table
5
12
class ="col-two "
6
13
hx-get ="/api/lists/{gid} "
@@ -26,10 +33,10 @@ <h2>Details</h2>
26
33
</ tbody >
27
34
</ template >
28
35
29
- < h2 > Update list</ h2 >
36
+ < h3 > Update list</ h3 >
30
37
< p > < a href ="/lists/{gid}/edit "> Update</ a > this lists metadata.</ p >
31
38
32
- < h2 > Members</ h2 >
39
+ < h3 > Members</ h3 >
33
40
< ul
34
41
hx-get ="/api/lists/{gid}/members "
35
42
hx-trigger ="load "
@@ -45,7 +52,7 @@ <h2>Members</h2>
45
52
</ template >
46
53
</ ul >
47
54
48
- < h2 > Add members</ h2 >
55
+ < h3 > Add members</ h3 >
49
56
< p >
50
57
< a
51
58
hx-get ="/lists/{gid}/invite "
@@ -57,7 +64,7 @@ <h2>Add members</h2>
57
64
members to this list.
58
65
</ p >
59
66
60
- < h2 > Export tasks</ h2 >
67
+ < h3 > Export tasks</ h3 >
61
68
< p >
62
69
< a
63
70
onclick ="window.location.pathname = '/apps/maat/api/lists/' + gid() + '/tasks' "
@@ -66,7 +73,7 @@ <h2>Export tasks</h2>
66
73
all tasks of this list as JSON.
67
74
</ p >
68
75
69
- < h2 > Delete list</ h2 >
76
+ < h3 > Delete list</ h3 >
70
77
< p >
71
78
Permanently
72
79
< a
Original file line number Diff line number Diff line change 1
- <!-- <h1 -->
2
- <!-- id="task_show__title" -->
3
- <!-- hx-get="/api/lists/{gid}" -->
4
- <!-- hx-trigger="load" -->
5
- <!-- hx-ext="client-side-templates" -->
6
- <!-- mustache-template="task_show__title_template" -->
7
- <!-- ></h1> -- >
8
- <!-- < template id="task_show__title_template"> {{title}} </template> -- >
1
+ < h1
2
+ id ="task_show__title "
3
+ hx-get ="/api/lists/{gid} "
4
+ hx-trigger ="load "
5
+ hx-ext ="client-side-templates "
6
+ mustache-template ="task_show__title_template "
7
+ > </ h1 >
8
+ < template id ="task_show__title_template "> {{title}} </ template >
9
9
< div
10
10
id ="update "
11
11
class ="stack "
Original file line number Diff line number Diff line change 1
1
<!-- TODO: does not work -->
2
- < h1 > Tasks</ h1 >
3
2
< h1
4
3
hx-get ="/api/lists/{gid} "
5
4
hx-trigger ="load "
6
5
hx-ext ="client-side-templates "
7
6
mustache-template ="tasks__list-template "
8
- hidden
9
7
> </ h1 >
10
8
< template id ="tasks__list-template "> {{title}} </ template >
11
9
@@ -50,7 +48,7 @@ <h1>Tasks</h1>
50
48
51
49
<!-- Undone tasks -->
52
50
< ul
53
- class ="tasks "
51
+ class ="tasks__todo "
54
52
hx-get ="/api/lists/{gid}/tasks "
55
53
hx-vals ='{"done": "false"} '
56
54
hx-include ="#tasks__tags "
@@ -122,6 +120,7 @@ <h1>Tasks</h1>
122
120
< li >
123
121
< a class ="icon icon-circle-plus "> </ a >
124
122
< form
123
+ id ="tasks__add-task "
125
124
class ="inline "
126
125
hx-put ="/api/lists/{gid}/tasks "
127
126
hx-swap ="none "
You can’t perform that action at this time.
0 commit comments