{"size": 402, "ext": "js", "max_stars_repo_path": "assets/server-power-controls/main.js", "max_stars_repo_name": "UltraVanilla/uvweb", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "assets/server-power-controls/main.js", "max_issues_repo_name": "UltraVanilla/uvweb", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "assets/server-power-controls/main.js", "max_forks_repo_name": "UltraVanilla/uvweb", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.7142857143, "max_line_length": 61, "alphanum_fraction": 0.5472636816}
$(".link").click(async (evt) => {
    const signal = evt.target.dataset["signal"];
    const res = await fetch(`/staff/power/${signal}`, {
        method: "POST",
    });

    const pterodactylRes = await res.text();
    window.alert(
        `Attempted signal ${signal}\n\nPterodactyl result: ${
            pterodactylRes[0] === "2" ? "Success" : "Failure"
        } (${pterodactylRes})`,
    );
});
