treewide: refactor w/ deadnix && statix applied

This commit is contained in:
notohh 2024-02-01 15:48:47 -05:00
commit 83f4b12cfe
Signed by: notohh
GPG key ID: BD47506D475EE86D
73 changed files with 1893 additions and 624 deletions
home/ags/config/js/widgets

View file

@ -1,18 +1,16 @@
import { Widget, Utils } from '../../import.js';
import { Utils, Widget } from "../../import.js";
const Time = () => Widget.Box({
const Time = () =>
Widget.Box({
child: Widget.Label({
className: "date"
className: "date",
}).poll(
1000,
(self) =>
Utils.execAsync(["date", "+%a %b %d %H:%M"]).then((time) =>
self.label = time
),
1000,
(self) =>
Utils.execAsync(["date", "+%a %b %d %H:%M"]).then((time) =>
self.label = time
),
),
});
});
export {
Time
}
export { Time };