prettier
This commit is contained in:
parent
f93d8e0cee
commit
377e275742
@ -26,7 +26,11 @@ const getItemListsController: RequestHandler = (req, response) => {
|
|||||||
res.miscitems = [];
|
res.miscitems = [];
|
||||||
for (const [uniqueName, item] of Object.entries(ExportWeapons)) {
|
for (const [uniqueName, item] of Object.entries(ExportWeapons)) {
|
||||||
if (item.totalDamage !== 0) {
|
if (item.totalDamage !== 0) {
|
||||||
if (item.productCategory == "LongGuns" || item.productCategory == "Pistols" || item.productCategory == "Melee") {
|
if (
|
||||||
|
item.productCategory == "LongGuns" ||
|
||||||
|
item.productCategory == "Pistols" ||
|
||||||
|
item.productCategory == "Melee"
|
||||||
|
) {
|
||||||
res[item.productCategory].push({
|
res[item.productCategory].push({
|
||||||
uniqueName,
|
uniqueName,
|
||||||
name: getString(item.name, lang)
|
name: getString(item.name, lang)
|
||||||
|
@ -553,7 +553,9 @@ $("input[list]").on("input", function () {
|
|||||||
function doAcquireWeapon(category) {
|
function doAcquireWeapon(category) {
|
||||||
const uniqueName = getKey(document.getElementById("acquire-type-" + category));
|
const uniqueName = getKey(document.getElementById("acquire-type-" + category));
|
||||||
if (!uniqueName) {
|
if (!uniqueName) {
|
||||||
$("#acquire-type-" + category).addClass("is-invalid").focus();
|
$("#acquire-type-" + category)
|
||||||
|
.addClass("is-invalid")
|
||||||
|
.focus();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
revalidateAuthz(() => {
|
revalidateAuthz(() => {
|
||||||
@ -644,11 +646,13 @@ function maxRankAllWarframes() {
|
|||||||
|
|
||||||
function addMissingWeapons() {
|
function addMissingWeapons() {
|
||||||
const requests = [];
|
const requests = [];
|
||||||
document.querySelectorAll("#datalist-LongGuns option, #datalist-Pistols option, #datalist-Melee option").forEach(elm => {
|
document
|
||||||
if (!document.querySelector("#weapon-list [data-item-type='" + elm.getAttribute("data-key") + "']")) {
|
.querySelectorAll("#datalist-LongGuns option, #datalist-Pistols option, #datalist-Melee option")
|
||||||
requests.push({ type: "Weapon", internalName: elm.getAttribute("data-key") });
|
.forEach(elm => {
|
||||||
}
|
if (!document.querySelector("#weapon-list [data-item-type='" + elm.getAttribute("data-key") + "']")) {
|
||||||
});
|
requests.push({ type: "Weapon", internalName: elm.getAttribute("data-key") });
|
||||||
|
}
|
||||||
|
});
|
||||||
if (
|
if (
|
||||||
requests.length != 0 &&
|
requests.length != 0 &&
|
||||||
window.confirm("Are you sure you want to add " + requests.length + " items to your account?")
|
window.confirm("Are you sure you want to add " + requests.length + " items to your account?")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user