All checks were successful
Check / check (push) Successful in 4s
## Changes - Add `docker` target (`docker build .`) - Add `hooks` target (installs pre-commit hook running `make check`) - Add 30-second timeout to `test` target (`-timeout 30s`) - Update `.PHONY` to include new targets - Update README to document all Makefile targets (`fmt-check`, `docker`, `hooks`) - Run `make fmt` to fix JS formatting via prettier `docker build .` passes ✅ closes #136, closes #137 <!-- session: agent:sdlc-manager:subagent:44375174-444b-43bf-a341-2def7ebb9fdf --> Co-authored-by: clawbot <clawbot@noreply.git.eeqj.de> Co-authored-by: Jeffrey Paul <sneak@noreply.example.org> Reviewed-on: #159 Co-authored-by: clawbot <clawbot@noreply.example.org> Co-committed-by: clawbot <clawbot@noreply.example.org>
23 lines
677 B
JavaScript
23 lines
677 B
JavaScript
/**
|
|
* upaas - Dashboard Page Component
|
|
*
|
|
* Periodically updates relative timestamps on the main dashboard.
|
|
*/
|
|
|
|
document.addEventListener("alpine:init", () => {
|
|
Alpine.data("dashboard", () => ({
|
|
init() {
|
|
// Update relative times every minute
|
|
setInterval(() => {
|
|
this.$el.querySelectorAll("[data-time]").forEach((el) => {
|
|
const time = el.getAttribute("data-time");
|
|
if (time) {
|
|
el.textContent =
|
|
Alpine.store("utils").formatRelativeTime(time);
|
|
}
|
|
});
|
|
}, 60000);
|
|
},
|
|
}));
|
|
});
|