improve(webui): autogenerate uiConfigs array
This commit is contained in:
parent
8ebd7068e2
commit
6714cf9ac2
@ -794,26 +794,7 @@ $("#mod-to-acquire").on("input", () => {
|
|||||||
$("#mod-to-acquire").removeClass("is-invalid");
|
$("#mod-to-acquire").removeClass("is-invalid");
|
||||||
});
|
});
|
||||||
|
|
||||||
const uiConfigs = [
|
const uiConfigs = [...$("#server-settings input[id]")].map(x => x.id);
|
||||||
"autoCreateAccount",
|
|
||||||
"skipTutorial",
|
|
||||||
"skipAllDialogue",
|
|
||||||
"unlockAllScans",
|
|
||||||
"unlockAllMissions",
|
|
||||||
"unlockAllQuests",
|
|
||||||
"completeAllQuests",
|
|
||||||
"infiniteCredits",
|
|
||||||
"infinitePlatinum",
|
|
||||||
"infiniteEndo",
|
|
||||||
"infiniteRegalAya",
|
|
||||||
"unlockAllShipFeatures",
|
|
||||||
"unlockAllShipDecorations",
|
|
||||||
"unlockAllFlavourItems",
|
|
||||||
"unlockAllSkins",
|
|
||||||
"unlockAllCapturaScenes",
|
|
||||||
"universalPolarityEverywhere",
|
|
||||||
"spoofMasteryRank"
|
|
||||||
];
|
|
||||||
|
|
||||||
function doChangeSettings() {
|
function doChangeSettings() {
|
||||||
fetch("/custom/config?" + window.authz)
|
fetch("/custom/config?" + window.authz)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user