Skip to content

Commit 8f8282a

Browse files
feat: update titles, dependencies and fonts
1 parent a137d54 commit 8f8282a

21 files changed

+97
-74
lines changed

maat/app/maat-api.hoon

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
[(send [404 ~ [%plain "404 - Not Found"]]) state]
122122
::
123123
%version
124-
[(send [200 ~ [%json (version:enjs '2024-07-13.1')]]) state]
124+
[(send [200 ~ [%json (version:enjs '2024-08-09.1')]]) state]
125125
::
126126
%members
127127
?. auth

package-lock.json

+6-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/css/style.css

+7-2
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,17 @@ main > ul > li {
175175
mask: var(--circle-question) center center / 100% auto no-repeat;
176176
}
177177

178+
.tasks__todo > li:not(:last-child) {
179+
margin-bottom: var(--vspace--1);
180+
}
181+
178182
.tasks__done {
179183
opacity: 0.5;
180184
}
181185

182-
.tasks > li:not(:last-child) {
186+
.tasks__add-task > li:not(:last-child) {
183187
margin-bottom: var(--vspace--1);
188+
margin-top: var(--vspace--1);
184189
}
185190

186191
/* .column { */
@@ -233,7 +238,7 @@ main > ul > li {
233238
position: sticky;
234239
bottom: 0;
235240
background: var(--color-bg);
236-
padding-top: var(--vspace--2);
241+
padding-top: var(--vspace--1);
237242
padding-bottom: var(--vspace--1);
238243
}
239244

ui/css/udjat.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/html/about.html

-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ <h1>Maat</h1>
102102
<blockquote>
103103
<a href="https://www.createwcare.com/">Created w/ care</a>
104104
</blockquote>
105-
106105
<h2>About</h2>
107106
<table class="col-two">
108107
<thead></thead>

ui/html/edit-list.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@
106106
mustache-template="list_edit__template"
107107
></div>
108108
<template id="list_edit__template">
109-
<h1>Update {{host}}/{{title}}</h1>
109+
<h1>{{title}}</h1>
110+
<h2>Update List</h2>
110111
<form
111112
id="update-list"
112113
hx-put="/api/lists"

ui/html/edit-task.html

+8-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,14 @@
9797
<div id="error-div" class="error">
9898
<pre hidden id="error-pre"></pre>
9999
</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>
101108
<div
102109
id="update"
103110
class="stack"

ui/html/invite.html

+7-11
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,13 @@
9797
<div id="error-div" class="error">
9898
<pre hidden id="error-pre"></pre>
9999
</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>
111107

112108
<h2>Add members</h2>
113109

ui/html/settings.html

+14-7
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,16 @@
9797
<div id="error-div" class="error">
9898
<pre hidden id="error-pre"></pre>
9999
</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>
101108

102-
<h2>Details</h2>
109+
<h3>Details</h3>
103110
<table
104111
class="col-two"
105112
hx-get="/api/lists/{gid}"
@@ -125,10 +132,10 @@ <h2>Details</h2>
125132
</tbody>
126133
</template>
127134

128-
<h2>Update list</h2>
135+
<h3>Update list</h3>
129136
<p><a href="/lists/{gid}/edit">Update</a> this lists metadata.</p>
130137

131-
<h2>Members</h2>
138+
<h3>Members</h3>
132139
<ul
133140
hx-get="/api/lists/{gid}/members"
134141
hx-trigger="load"
@@ -144,7 +151,7 @@ <h2>Members</h2>
144151
</template>
145152
</ul>
146153

147-
<h2>Add members</h2>
154+
<h3>Add members</h3>
148155
<p>
149156
<a
150157
hx-get="/lists/{gid}/invite"
@@ -156,7 +163,7 @@ <h2>Add members</h2>
156163
members to this list.
157164
</p>
158165

159-
<h2>Export tasks</h2>
166+
<h3>Export tasks</h3>
160167
<p>
161168
<a
162169
onclick="window.location.pathname = '/apps/maat/api/lists/' + gid() + '/tasks'"
@@ -165,7 +172,7 @@ <h2>Export tasks</h2>
165172
all tasks of this list as JSON.
166173
</p>
167174

168-
<h2>Delete list</h2>
175+
<h3>Delete list</h3>
169176
<p>
170177
Permanently
171178
<a

ui/html/show-task.html

+8-8
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,14 @@
110110
<div id="error-div" class="error">
111111
<pre hidden id="error-pre"></pre>
112112
</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>
121121
<div
122122
id="update"
123123
class="stack"

ui/html/tasks.html

+2-3
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,11 @@
9898
<pre hidden id="error-pre"></pre>
9999
</div>
100100
<!-- TODO: does not work -->
101-
<h1>Tasks</h1>
102101
<h1
103102
hx-get="/api/lists/{gid}"
104103
hx-trigger="load"
105104
hx-ext="client-side-templates"
106105
mustache-template="tasks__list-template"
107-
hidden
108106
></h1>
109107
<template id="tasks__list-template"> {{title}} </template>
110108

@@ -149,7 +147,7 @@ <h1>Tasks</h1>
149147

150148
<!-- Undone tasks -->
151149
<ul
152-
class="tasks"
150+
class="tasks__todo"
153151
hx-get="/api/lists/{gid}/tasks"
154152
hx-vals='{"done": "false"}'
155153
hx-include="#tasks__tags"
@@ -221,6 +219,7 @@ <h1>Tasks</h1>
221219
<li>
222220
<a class="icon icon-circle-plus"></a>
223221
<form
222+
id="tasks__add-task"
224223
class="inline"
225224
hx-put="/api/lists/{gid}/tasks"
226225
hx-swap="none"

ui/templates/edit-list.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
mustache-template="list_edit__template"
88
></div>
99
<template id="list_edit__template">
10-
<h1>Update {{host}}/{{title}}</h1>
10+
<h1>{{title}}</h1>
11+
<h2>Update List</h2>
1112
<form
1213
id="update-list"
1314
hx-put="/api/lists"

ui/templates/edit-task.html

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
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>
29
<div
310
id="update"
411
class="stack"

ui/templates/invite.html

+7-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
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>
128

139
<h2>Add members</h2>
1410

ui/templates/settings.html

+14-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
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>
29

3-
<h2>Details</h2>
10+
<h3>Details</h3>
411
<table
512
class="col-two"
613
hx-get="/api/lists/{gid}"
@@ -26,10 +33,10 @@ <h2>Details</h2>
2633
</tbody>
2734
</template>
2835

29-
<h2>Update list</h2>
36+
<h3>Update list</h3>
3037
<p><a href="/lists/{gid}/edit">Update</a> this lists metadata.</p>
3138

32-
<h2>Members</h2>
39+
<h3>Members</h3>
3340
<ul
3441
hx-get="/api/lists/{gid}/members"
3542
hx-trigger="load"
@@ -45,7 +52,7 @@ <h2>Members</h2>
4552
</template>
4653
</ul>
4754

48-
<h2>Add members</h2>
55+
<h3>Add members</h3>
4956
<p>
5057
<a
5158
hx-get="/lists/{gid}/invite"
@@ -57,7 +64,7 @@ <h2>Add members</h2>
5764
members to this list.
5865
</p>
5966

60-
<h2>Export tasks</h2>
67+
<h3>Export tasks</h3>
6168
<p>
6269
<a
6370
onclick="window.location.pathname = '/apps/maat/api/lists/' + gid() + '/tasks'"
@@ -66,7 +73,7 @@ <h2>Export tasks</h2>
6673
all tasks of this list as JSON.
6774
</p>
6875

69-
<h2>Delete list</h2>
76+
<h3>Delete list</h3>
7077
<p>
7178
Permanently
7279
<a

ui/templates/show-task.html

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
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>
99
<div
1010
id="update"
1111
class="stack"

ui/templates/tasks.html

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
<!-- TODO: does not work -->
2-
<h1>Tasks</h1>
32
<h1
43
hx-get="/api/lists/{gid}"
54
hx-trigger="load"
65
hx-ext="client-side-templates"
76
mustache-template="tasks__list-template"
8-
hidden
97
></h1>
108
<template id="tasks__list-template"> {{title}} </template>
119

@@ -50,7 +48,7 @@ <h1>Tasks</h1>
5048

5149
<!-- Undone tasks -->
5250
<ul
53-
class="tasks"
51+
class="tasks__todo"
5452
hx-get="/api/lists/{gid}/tasks"
5553
hx-vals='{"done": "false"}'
5654
hx-include="#tasks__tags"
@@ -122,6 +120,7 @@ <h1>Tasks</h1>
122120
<li>
123121
<a class="icon icon-circle-plus"></a>
124122
<form
123+
id="tasks__add-task"
125124
class="inline"
126125
hx-put="/api/lists/{gid}/tasks"
127126
hx-swap="none"

ui/ttf/mononoki-Italic.ttf

132 KB
Binary file not shown.

ui/ttf/mononoki-Regular.ttf

118 KB
Binary file not shown.

ui/woff2/InterVariable-Italic.woff2

372 KB
Binary file not shown.

ui/woff2/InterVariable.woff2

337 KB
Binary file not shown.

0 commit comments

Comments
 (0)