mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-09 20:12:10 +10:00
* feat: revise library source names & update droplet * feat: add internal name hint to library sources * feat: update library source table with new name + icons * fix: admin invitation localisation issue * feat: #164 * feat: overhaul task UIs, #163 * fix: remove debug task * fix: lint
19 lines
544 B
TypeScript
19 lines
544 B
TypeScript
import { defineDropTask } from "..";
|
|
|
|
export default defineDropTask({
|
|
buildId: () => `debug:${new Date().toISOString()}`,
|
|
name: "Debug Task",
|
|
acls: ["system:maintenance:read"],
|
|
taskGroup: "debug",
|
|
async run({ progress, logger }) {
|
|
const amount = 1000;
|
|
for (let i = 0; i < amount; i++) {
|
|
progress((i / amount) * 100);
|
|
logger.info(`dajksdkajd ${i}`);
|
|
logger.warn("warning");
|
|
logger.error("error\nmultiline and stuff\nwoah more lines");
|
|
await new Promise((r) => setTimeout(r, 1500));
|
|
}
|
|
},
|
|
});
|