add: last_online and online indicators

This commit is contained in:
trisua 2025-04-02 14:11:01 -04:00
parent d3d0c41334
commit e0a6072cc4
12 changed files with 177 additions and 9 deletions

View file

@ -150,4 +150,16 @@
`/mod_panel/file_report?asset=${asset}&asset_type=${asset_type}`,
);
});
self.define("seen", () => {
fetch("/api/v1/auth/profile/me/seen", {
method: "POST",
})
.then((res) => res.json())
.then((res) => {
if (!res.ok) {
trigger("atto::toast", ["error", res.message]);
}
});
});
})();