feat(webui): add everything in ExportCustoms as an "add items" option
Some checks failed
Build Docker image / docker (push) Has been cancelled
Build / build (push) Has been cancelled

This commit is contained in:
Sainan 2025-04-16 03:11:21 +02:00
parent 7a53363b1b
commit 47551e93b3

View File

@ -3,6 +3,7 @@ import { getDict, getItemName, getString } from "@/src/services/itemDataService"
import {
ExportArcanes,
ExportAvionics,
ExportCustoms,
ExportDrones,
ExportGear,
ExportKeys,
@ -171,6 +172,12 @@ const getItemListsController: RequestHandler = (req, response) => {
name: getString(item.name, lang)
});
}
for (const [uniqueName, item] of Object.entries(ExportCustoms)) {
res.miscitems.push({
uniqueName: uniqueName,
name: getString(item.name, lang)
});
}
res.mods = [];
for (const [uniqueName, upgrade] of Object.entries(ExportUpgrades)) {