From 6b796258d413f00e498ce7f80f73a9f6c061f29c Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Sat, 30 Mar 2024 23:40:33 +0100 Subject: Updated 5 files, added 2 files, deleted 495 files and renamed 7 files (automated) --- pages/api/_main.php | 30 ----------------- pages/api/pluralkit-integration.php | 64 ------------------------------------- pages/api/timeline.php | 12 ------- pages/api/violette.php | 23 ------------- 4 files changed, 129 deletions(-) delete mode 100644 pages/api/_main.php delete mode 100644 pages/api/pluralkit-integration.php delete mode 100644 pages/api/timeline.php delete mode 100644 pages/api/violette.php (limited to 'pages/api') diff --git a/pages/api/_main.php b/pages/api/_main.php deleted file mode 100644 index 215c1b2..0000000 --- a/pages/api/_main.php +++ /dev/null @@ -1,30 +0,0 @@ - $system - ]); - createJob("UpdateAssets", [ - "type" => "members" - ]); -} - -if ($input["type"] === "UPDATE_SYSTEM") { - createJob("PKSystem", [ - "system" => $system - ]); - createJob("UpdateAssets", [ - "type" => "system" - ]); -} - -if ($input["type"] === "CREATE_SWITCH" || $input["type"] === "UPDATE_SWITCH" || $input["type"] === "DELETE_SWITCH") { - createJob("PKFronters", [ - "system" => $system - ]); - createJob("PKSwitches", [ - "system" => $system - ]); - createJob("FrontersNotification", [ - "system" => $system - ]); -} diff --git a/pages/api/timeline.php b/pages/api/timeline.php deleted file mode 100644 index 8271b7a..0000000 --- a/pages/api/timeline.php +++ /dev/null @@ -1,12 +0,0 @@ - 0, - "ponies" => [] -]; - -$list = scoreOrder(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/gdapd/members.json"), true), "gdapd"); - -$data["count"] = count($list); -$data["ponies"] = array_values(array_filter(array_map(function ($i) { - return [ - "url" => "https://ponycule.p.equestria.dev" . getAsset("gdapd", $i["id"] ?? "", "heads"), - "label" => $i["display_name"] ?? $i["name"] - ]; -}, $list), function ($i) { - return isset($i["url"]) && getAsset("gdapd", $i["id"] ?? "", "heads") !== null; -})); - -header("Content-Type: application/json"); -die(json_encode($data, JSON_PRETTY_PRINT)); \ No newline at end of file -- cgit