Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/cheatGUI/src/utils/status.ts
Views: 723
import { Swal } from "../utils/swal"; // Import Swal12/*3export async function statusMessage () {456const UpdateToMv3 = Swal.mixin({7title: "PHEx 3.0.0",8icon: "info",9showCancelButton: true,10showConfirmButton: true,11confirmButtonText: "Update to 3.0.0",12cancelButtonText: "I've already updated.",13html: "<p>WE DID IT!! PHEx 3.0.0 IS NOW RELESED!!!</p> </p>We've released a new version of PHEx! We strongly reccomend updating to PHEx 3.0.0.</p><p><a href=https://github.com/ProdigyPNP/ProdigyMathGameHacking/releases/latest>Update now!</a></p>"1415});1617if (await (await UpdateToMv3.fire()).value) {18window.location.href = "https://github.com/ProdigyPNP/ProdigyMathGameHacking/releases/latest";19};2021}22*/232425262728export function statusMessage () {293031fetch(`https://raw.githubusercontent.com/ProdigyPNP/ProdigyMathGameHacking/master/cheatGUI/statusmessage.json?updated=${Date.now()}`).then(response => response.json()).then(async data => {3233const enabled = data.enabled;3435if (enabled.value === false) {36return console.log("Status message is disabled.");37} else {3839await Swal.fire({40title: data.get("title"),41html: data.get("html"),42icon: data.get("icon"),43});4445}4647});48495051};525354