From 3503e22be59d01a06e8ac680e1bd3fa292ec92c3 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Sat, 5 Apr 2025 00:31:06 +0200 Subject: [PATCH] chore(webui): remove "change support syndicate" I think this causes more problems than it solves given that universal medallions exist and all. --- .../custom/getItemListsController.ts | 8 ------- static/webui/index.html | 10 +-------- static/webui/script.js | 22 ------------------- static/webui/translations/de.js | 3 --- static/webui/translations/en.js | 3 --- static/webui/translations/fr.js | 3 --- static/webui/translations/ru.js | 3 --- static/webui/translations/zh.js | 3 --- 8 files changed, 1 insertion(+), 54 deletions(-) diff --git a/src/controllers/custom/getItemListsController.ts b/src/controllers/custom/getItemListsController.ts index 7d60f896..df063a11 100644 --- a/src/controllers/custom/getItemListsController.ts +++ b/src/controllers/custom/getItemListsController.ts @@ -12,7 +12,6 @@ import { ExportRelics, ExportResources, ExportSentinels, - ExportSyndicates, ExportUpgrades, ExportWarframes, ExportWeapons, @@ -52,7 +51,6 @@ const getItemListsController: RequestHandler = (req, response) => { res.SpaceSuits = []; res.MechSuits = []; res.miscitems = []; - res.Syndicates = []; res.OperatorAmps = []; res.QuestKeys = []; for (const [uniqueName, item] of Object.entries(ExportWarframes)) { @@ -205,12 +203,6 @@ const getItemListsController: RequestHandler = (req, response) => { res.mods.push(mod); } } - for (const [uniqueName, syndicate] of Object.entries(ExportSyndicates)) { - res.Syndicates.push({ - uniqueName, - name: getString(syndicate.name, lang) - }); - } for (const [uniqueName, key] of Object.entries(ExportKeys)) { if (key.chainStages) { res.QuestKeys.push({ diff --git a/static/webui/index.html b/static/webui/index.html index 74ea23d6..a3842baa 100644 --- a/static/webui/index.html +++ b/static/webui/index.html @@ -633,18 +633,11 @@
-
+
-
- -
- - -
-
@@ -668,7 +661,6 @@ - diff --git a/static/webui/script.js b/static/webui/script.js index 849062b2..a2e15be8 100644 --- a/static/webui/script.js +++ b/static/webui/script.js @@ -177,11 +177,6 @@ function fetchItemList() { datalist.innerHTML = ""; }); - const syndicateNone = document.createElement("option"); - syndicateNone.setAttribute("data-key", ""); - syndicateNone.value = loc("cheats_none"); - document.getElementById("datalist-Syndicates").appendChild(syndicateNone); - window.archonCrystalUpgrades = data.archonCrystalUpgrades; // Add mods mising in data sources @@ -271,9 +266,6 @@ function fetchItemList() { item.name += " " + loc("code_badItem"); } } - if (type == "Syndicates" && item.uniqueName.startsWith("RadioLegion")) { - item.name += " (" + item.uniqueName + ")"; - } if (type == "ModularParts") { const supportedModularParts = [ "LWPT_HB_DECK", @@ -818,10 +810,6 @@ function updateInventory() { single.loadRoute("/webui/inventory"); } } - document.getElementById("changeSyndicate").value = - [...document.querySelectorAll("#datalist-Syndicates option")].find( - option => option.getAttribute("data-key") === (data.SupportedSyndicate ?? "") - )?.value ?? loc("cheats_none"); }); }); } @@ -1500,16 +1488,6 @@ function doImport() { }); } -function doChangeSupportedSyndicate() { - const uniqueName = getKey(document.getElementById("changeSyndicate")); - - revalidateAuthz(() => { - $.get("/api/setSupportedSyndicate.php?" + window.authz + "&syndicate=" + uniqueName).done(function () { - updateInventory(); - }); - }); -} - function doAddCurrency(currency) { $.post({ url: "/custom/addCurrency?" + window.authz, diff --git a/static/webui/translations/de.js b/static/webui/translations/de.js index f04d2780..de1a87b4 100644 --- a/static/webui/translations/de.js +++ b/static/webui/translations/de.js @@ -145,9 +145,6 @@ dict = { cheats_unlockAllFocusSchools: `Alle Fokus-Schulen freischalten`, cheats_helminthUnlockAll: `Helminth vollständig aufleveln`, cheats_intrinsicsUnlockAll: `Alle Inhärenzen auf Max. Rang`, - cheats_changeSupportedSyndicate: `Unterstütztes Syndikat`, - cheats_changeButton: `Ändern`, - cheats_none: `Keines`, import_importNote: `Du kannst hier eine vollständige oder teilweise Inventarantwort (Client-Darstellung) einfügen. Alle Felder, die vom Importer unterstützt werden, werden in deinem Account überschrieben.`, import_submit: `Absenden`, prettier_sucks_ass: `` diff --git a/static/webui/translations/en.js b/static/webui/translations/en.js index ba1e406c..e350de55 100644 --- a/static/webui/translations/en.js +++ b/static/webui/translations/en.js @@ -144,9 +144,6 @@ dict = { cheats_unlockAllFocusSchools: `Unlock All Focus Schools`, cheats_helminthUnlockAll: `Fully Level Up Helminth`, cheats_intrinsicsUnlockAll: `Max Rank All Intrinsics`, - cheats_changeSupportedSyndicate: `Supported syndicate`, - cheats_changeButton: `Change`, - cheats_none: `None`, import_importNote: `You can provide a full or partial inventory response (client respresentation) here. All fields that are supported by the importer will be overwritten in your account.`, import_submit: `Submit`, prettier_sucks_ass: `` diff --git a/static/webui/translations/fr.js b/static/webui/translations/fr.js index 9e307117..f01cb362 100644 --- a/static/webui/translations/fr.js +++ b/static/webui/translations/fr.js @@ -145,9 +145,6 @@ dict = { cheats_unlockAllFocusSchools: `Débloquer toutes les écoles de focus`, cheats_helminthUnlockAll: `Helminth niveau max`, cheats_intrinsicsUnlockAll: `[UNTRANSLATED] Max Rank All Intrinsics`, - cheats_changeSupportedSyndicate: `Allégeance`, - cheats_changeButton: `Changer`, - cheats_none: `Aucun`, import_importNote: `Import manuel. Toutes les modifcations supportées par l'inventaire écraseront celles présentes dans la base de données.`, import_submit: `Soumettre`, prettier_sucks_ass: `` diff --git a/static/webui/translations/ru.js b/static/webui/translations/ru.js index 294b526e..a8df5841 100644 --- a/static/webui/translations/ru.js +++ b/static/webui/translations/ru.js @@ -145,9 +145,6 @@ dict = { cheats_unlockAllFocusSchools: `Разблокировать все школы фокуса`, cheats_helminthUnlockAll: `Полностью улучшить Гельминта`, cheats_intrinsicsUnlockAll: `Полностью улучшить Модуляры`, - cheats_changeSupportedSyndicate: `Поддерживаемый синдикат`, - cheats_changeButton: `Изменить`, - cheats_none: `Отсутствует`, import_importNote: `Вы можете загрузить полный или частичный ответ инвентаря (клиентское представление) здесь. Все поддерживаемые поля будут перезаписаны в вашем аккаунте.`, import_submit: `Отправить`, prettier_sucks_ass: `` diff --git a/static/webui/translations/zh.js b/static/webui/translations/zh.js index 5ec64622..aedf79c5 100644 --- a/static/webui/translations/zh.js +++ b/static/webui/translations/zh.js @@ -145,9 +145,6 @@ dict = { cheats_unlockAllFocusSchools: `解锁所有专精学派`, cheats_helminthUnlockAll: `完全升级Helminth`, cheats_intrinsicsUnlockAll: `[UNTRANSLATED] Max Rank All Intrinsics`, - cheats_changeSupportedSyndicate: `支持的集团`, - cheats_changeButton: `更改`, - cheats_none: `无`, import_importNote: `您可以在此处提供完整或部分库存响应(客户端表示)。支持的所有字段将被覆盖到您的账户中。`, import_submit: `提交`, prettier_sucks_ass: ``