From cf00a91b1ebd079300a05df0a220758038e7df83 Mon Sep 17 00:00:00 2001
From: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>
Date: Fri, 7 Feb 2025 18:20:33 +0100
Subject: [PATCH] feat(webui): change SupportedSyndicate
Closes #829
---
.../custom/getItemListsController.ts | 8 +++++++
static/webui/index.html | 6 +++++
static/webui/script.js | 23 +++++++++++++++++++
static/webui/translations/en.js | 3 +++
static/webui/translations/ru.js | 5 +++-
5 files changed, 44 insertions(+), 1 deletion(-)
diff --git a/src/controllers/custom/getItemListsController.ts b/src/controllers/custom/getItemListsController.ts
index 14bdc021..38add971 100644
--- a/src/controllers/custom/getItemListsController.ts
+++ b/src/controllers/custom/getItemListsController.ts
@@ -8,6 +8,7 @@ import {
ExportRecipes,
ExportResources,
ExportSentinels,
+ ExportSyndicates,
ExportUpgrades,
ExportWarframes,
ExportWeapons
@@ -36,6 +37,7 @@ const getItemListsController: RequestHandler = (req, response) => {
res.SpaceSuits = [];
res.MechSuits = [];
res.miscitems = [];
+ res.Syndicates = [];
for (const [uniqueName, item] of Object.entries(ExportWarframes)) {
if (
item.productCategory == "Suits" ||
@@ -160,6 +162,12 @@ const getItemListsController: RequestHandler = (req, response) => {
badItems[uniqueName] = true;
}
}
+ for (const [uniqueName, syndicate] of Object.entries(ExportSyndicates)) {
+ res.Syndicates.push({
+ uniqueName,
+ name: getString(syndicate.name, lang)
+ });
+ }
response.json({
badItems,
diff --git a/static/webui/index.html b/static/webui/index.html
index 92dd82d0..0401dcc7 100644
--- a/static/webui/index.html
+++ b/static/webui/index.html
@@ -465,6 +465,11 @@
@@ -489,6 +494,7 @@
+