taskwarrior web package

This commit is contained in:
Matt Nish-Lapidus 2025-04-02 19:09:02 -04:00
parent e79220af5c
commit b16d004685
16 changed files with 4093 additions and 1 deletions

View file

@ -0,0 +1,24 @@
<div hx-get="tasks/active" hx-trigger="every 60s" hx-swap="outerHTML" hx-target="this">
{% if active_task %}
<div class="join">
</div>
<div class="pl-2.5 pr-6 py-1.5 bg-green-900 text-green-200 shadow-xl rounded-sm flex flex-wrap " id="active-timer">
<span class="flex-grow">{{ active_task.description }}</span>
<div class="join">
<span class="badge badge-success badge-md badge-soft join-item">
{{ timer_value(date=active_task.start) }}
</span>
<button class="btn btn-accent btn-xs join-item"
hx-post="tasks"
hx-target="#list-of-tasks"
hx-swap="innerHTML"
hx-include="[id='filtering']"
hx-vals='{"uuid":"{{ active_task.uuid }}", "action": "ToggleTimer"}'
hx-trigger="click,keyup[key=='o'] from:#cmd-inp">
<span>St<span class="shortcut_key">o</span>p</span>
</button>
</div>
</div>
{% endif %}
</div>