UNPKG

@e280/authlocal

Version:

User-sovereign login system for everybody

14 lines 402 B
import { debounce } from "@e280/stz"; import { signal } from "@benev/slate"; export class Flasher { #flashing = signal("none"); reset = debounce(300, () => { this.#flashing.value = "none"; }); get flashing() { return this.#flashing.value; } async flash(flash = "good") { this.#flashing.value = flash; this.reset(); } } //# sourceMappingURL=flasher.js.map