chore(webui): remove "change support syndicate"
All checks were successful
Build / build (20) (push) Successful in 36s
Build / build (22) (push) Successful in 1m13s
Build / build (18) (push) Successful in 1m12s
Build / build (18) (pull_request) Successful in 39s
Build / build (20) (pull_request) Successful in 1m13s
Build / build (22) (pull_request) Successful in 1m12s
All checks were successful
Build / build (20) (push) Successful in 36s
Build / build (22) (push) Successful in 1m13s
Build / build (18) (push) Successful in 1m12s
Build / build (18) (pull_request) Successful in 39s
Build / build (20) (pull_request) Successful in 1m13s
Build / build (22) (pull_request) Successful in 1m12s
I think this causes more problems than it solves given that universal medallions exist and all.
This commit is contained in:
parent
23267aa641
commit
3503e22be5
@ -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({
|
||||
|
@ -633,18 +633,11 @@
|
||||
<div class="card mb-3">
|
||||
<h5 class="card-header" data-loc="cheats_account"></h5>
|
||||
<div class="card-body">
|
||||
<div class="mb-2 d-flex flex-wrap gap-2">
|
||||
<div class="d-flex flex-wrap gap-2">
|
||||
<button class="btn btn-primary" onclick="doUnlockAllFocusSchools();" data-loc="cheats_unlockAllFocusSchools"></button>
|
||||
<button class="btn btn-primary" onclick="doHelminthUnlockAll();" data-loc="cheats_helminthUnlockAll"></button>
|
||||
<button class="btn btn-primary" onclick="doIntrinsicsUnlockAll();" data-loc="cheats_intrinsicsUnlockAll"></button>
|
||||
</div>
|
||||
<form class="mt-2" onsubmit="doChangeSupportedSyndicate(); return false;">
|
||||
<label class="form-label" for="changeSyndicate" data-loc="cheats_changeSupportedSyndicate"></label>
|
||||
<div class="input-group">
|
||||
<input class="form-control" id="changeSyndicate" list="datalist-Syndicates" />
|
||||
<button class="btn btn-primary" type="submit" data-loc="cheats_changeButton"></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -668,7 +661,6 @@
|
||||
<datalist id="datalist-SentinelWeapons"></datalist>
|
||||
<datalist id="datalist-Sentinels"></datalist>
|
||||
<datalist id="datalist-MechSuits"></datalist>
|
||||
<datalist id="datalist-Syndicates"></datalist>
|
||||
<datalist id="datalist-MoaPets"></datalist>
|
||||
<datalist id="datalist-QuestKeys"></datalist>
|
||||
<datalist id="datalist-miscitems"></datalist>
|
||||
|
@ -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,
|
||||
|
@ -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, <b>werden in deinem Account überschrieben</b>.`,
|
||||
import_submit: `Absenden`,
|
||||
prettier_sucks_ass: ``
|
||||
|
@ -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 <b>will be overwritten</b> in your account.`,
|
||||
import_submit: `Submit`,
|
||||
prettier_sucks_ass: ``
|
||||
|
@ -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 <b>écraseront celles présentes dans la base de données</b>.`,
|
||||
import_submit: `Soumettre`,
|
||||
prettier_sucks_ass: ``
|
||||
|
@ -145,9 +145,6 @@ dict = {
|
||||
cheats_unlockAllFocusSchools: `Разблокировать все школы фокуса`,
|
||||
cheats_helminthUnlockAll: `Полностью улучшить Гельминта`,
|
||||
cheats_intrinsicsUnlockAll: `Полностью улучшить Модуляры`,
|
||||
cheats_changeSupportedSyndicate: `Поддерживаемый синдикат`,
|
||||
cheats_changeButton: `Изменить`,
|
||||
cheats_none: `Отсутствует`,
|
||||
import_importNote: `Вы можете загрузить полный или частичный ответ инвентаря (клиентское представление) здесь. Все поддерживаемые поля <b>будут перезаписаны</b> в вашем аккаунте.`,
|
||||
import_submit: `Отправить`,
|
||||
prettier_sucks_ass: ``
|
||||
|
@ -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: `您可以在此处提供完整或部分库存响应(客户端表示)。支持的所有字段<b>将被覆盖</b>到您的账户中。`,
|
||||
import_submit: `提交`,
|
||||
prettier_sucks_ass: ``
|
||||
|
Loading…
x
Reference in New Issue
Block a user