feat(webui): edit suit invigorations #2478
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "nyaoouo/SpaceNinjaServer:ImplEditSuitInvigorationUpgradeController"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -2865,0 +2922,4 @@
form.style.left = "50%";
form.style.transform = "translate(-50%, -50%)";
form.style.zIndex = "1050";
form.style.width = "400px";
If you need godawful custom CSS, put it in the CSS file.
@ -45,6 +46,7 @@ customRouter.get("/addMissingMaxRankMods", addMissingMaxRankModsController);
customRouter.get("/webuiFileChangeDetected", webuiFileChangeDetectedController);
customRouter.get("/completeAllMissions", completeAllMissionsController);
customRouter.get("/addMissingHelminthBlueprints", addMissingHelminthBlueprintsController);
customRouter.post("/editSuitInvigorationUpgrade", editSuitInvigorationUpgradeController);
Really? Don't see what's wrong here?
@ -977,6 +977,59 @@
</div>
<div class="toast-container position-fixed bottom-0 end-0 p-3"></div>
</div>
<div id="editSuitInvigorationForm" class="card" style="display: none;">
What is this shit? We have a detailedView, this is completely misplaced.
detailed view dont pass detail of item to view, cannot auto fillin data
Damn, all the other features on the detailed view must be magic then. Purely guessing the data to fill in. What a miracle that it guesses correctly.
i found it, but i want to remind u that part is
id="archonShards-card"
=_=And
id="modularParts-card"
andid="valenceBonus-card"
is underid="detailedView-route"
@ -477,2 +477,4 @@
<tbody id="crystals-list"></tbody>
</table>
<form onsubmit="submitSuitInvigorationUpgrade(event)">
<input type="hidden" id="dv-invigoration-oid" />
The oid is already in the query string. Be consistent.
impl editSuitInvigorationUpgradeController in web uito WIP: impl editSuitInvigorationUpgradeController in web ui@ -1232,1 +1232,4 @@
});
const { OffensiveUpgrade, DefensiveUpgrade, UpgradesExpiry } =
suitInvigorationUpgradeData(item);
document.getElementById("dv-invigoration-oid").value = oid;
Unused?
WIP: impl editSuitInvigorationUpgradeController in web uito impl editSuitInvigorationUpgradeController in web ui@ -476,6 +476,51 @@
<table class="table table-hover w-100">
<tbody id="crystals-list"></tbody>
</table>
<form onsubmit="submitSuitInvigorationUpgrade(event)">
Why is this inside of the archon crystals card and not its own card?
Because I didn't realize that you used path route first and then only controlled visibility based on url params...
impl editSuitInvigorationUpgradeController in web uito feat(webui): edit suit invigorations@ -480,1 +480,4 @@
</div>
<div id="edit-suit-invigorations-card" class="card mb-3 d-none">
<h5 class="card-header">
edit suit invigorations
All your strings should be added to the translation system. And let's not lowercase a title? 😒
because i just use my mobile phone to edit it =_=...
Try coding on a PC. :)
@ -481,0 +482,4 @@
<h5 class="card-header" data-loc="detailedView_editSuitInvigoration"></h5>
<div class="card-body">
<form onsubmit="submitSuitInvigorationUpgrade(event)">
<div class="mb-3">
There are a few more strings here...
I don't know the exact translation of the attributes, so I'll just estimate it based on the key.
@ -2866,0 +2907,4 @@
const expiry = document.getElementById("dv-invigoration-expiry").value;
if (!offensiveUpgrade && !defensiveUpgrade) {
alert("Please select at least one upgrade type.");
...and here.