PWA: install button, one icon badge for Signal, mail and tasks due, share target for files, manifest launch handler
build-container / build (push) Successful in 22m24s
build-container / build (push) Successful in 22m24s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5c5a7b5155
commit
924a024b0b
9 files changed
+88
-6
No files matched your search
@@ -99,6 +99,13 @@ function newListSheet(lists, list) {
|
||||
el.querySelectorAll('[data-rm]').forEach(b => b.onclick = () => confirmSheet('Delete list?', 'Its tasks are deleted too.', 'Delete', async () => { await jfetch('/api/tasks/lists/delete', { method: 'POST', body: JSON.stringify({ id: b.dataset.rm }) }); store.del('task_list'); viewTasks(); }));
|
||||
}
|
||||
|
||||
// Overdue and due-today tasks, for the icon badge
|
||||
let taskDue = 0;
|
||||
async function taskPoll() {
|
||||
if (!allowed('tasks')) return;
|
||||
try { const s = await jfetch('/api/tasks/summary?today=' + ymd(new Date())), n = (s.overdue || 0) + (s.today || 0); if (n !== taskDue) { taskDue = n; renderNav(); } } catch {}
|
||||
}
|
||||
|
||||
// Home: a card only when something is overdue or due today
|
||||
async function renderTasksCard(el) {
|
||||
if (!el) return;
|
||||
|
||||
Reference in new issue
Block a user