Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
dangowans committed Jun 27, 2024
1 parent 604e122 commit 9f94906
Show file tree
Hide file tree
Showing 17 changed files with 888 additions and 886 deletions.
12 changes: 7 additions & 5 deletions public-typescript/lotOccupancyEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
los.populateAliases(modalElement);
},
onshown(modalElement, closeModalFunction) {
var _a;
var _a, _b;
bulmaJS.toggleHtmlClipped();
lotSelectModalElement = modalElement;
lotSelectCloseModalFunction = closeModalFunction;
Expand Down Expand Up @@ -428,7 +428,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
const optionElement = document.createElement('option');
optionElement.value = map.mapId.toString();
optionElement.textContent =
((_a = map.mapName) !== null && _a !== void 0 ? _a : '') === '' ? '(No Name)' : map.mapName;
((_a = map.mapName) !== null && _a !== void 0 ? _a : '') === '' ? '(No Name)' : (_b = map.mapName) !== null && _b !== void 0 ? _b : '';
mapElement.append(optionElement);
}
;
Expand All @@ -449,7 +449,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
});
}
else {
window.open(los.urlPrefix + '/lots/' + lotId);
window.open(`${los.urlPrefix}/lots/${lotId}`);
}
});
(_e = document
Expand Down Expand Up @@ -1586,7 +1586,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
.querySelector('tbody')) === null || _g === void 0 ? void 0 : _g.append(tableRowElement);
}
;
lotOccupancyTransactionsContainerElement.querySelector('#lotOccupancyTransactions--grandTotal').textContent = '$' + transactionGrandTotal.toFixed(2);
lotOccupancyTransactionsContainerElement.querySelector('#lotOccupancyTransactions--grandTotal').textContent = `\$${transactionGrandTotal.toFixed(2)}`;
const feeGrandTotal = getFeeGrandTotal();
if (feeGrandTotal.toFixed(2) !== transactionGrandTotal.toFixed(2)) {
lotOccupancyTransactionsContainerElement.insertAdjacentHTML('afterbegin', `<div class="message is-warning">
Expand All @@ -1596,7 +1596,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
<div class="level-item">Outstanding Balance</div>
</div>
<div class="level-right">
<div class="level-item">$${cityssm.escapeHTML((feeGrandTotal - transactionGrandTotal).toFixed(2))}</div>
<div class="level-item">
$${cityssm.escapeHTML((feeGrandTotal - transactionGrandTotal).toFixed(2))}
</div>
</div>
</div>
</div></div>`);
Expand Down
6 changes: 3 additions & 3 deletions public-typescript/lotOccupancyEdit/lotOccupancyEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
los.populateAliases(modalElement);
},
onshown(modalElement, closeModalFunction) {
var _a;
var _a, _b;
bulmaJS.toggleHtmlClipped();
lotSelectModalElement = modalElement;
lotSelectCloseModalFunction = closeModalFunction;
Expand Down Expand Up @@ -428,7 +428,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
const optionElement = document.createElement('option');
optionElement.value = map.mapId.toString();
optionElement.textContent =
((_a = map.mapName) !== null && _a !== void 0 ? _a : '') === '' ? '(No Name)' : map.mapName;
((_a = map.mapName) !== null && _a !== void 0 ? _a : '') === '' ? '(No Name)' : (_b = map.mapName) !== null && _b !== void 0 ? _b : '';
mapElement.append(optionElement);
}
;
Expand All @@ -449,7 +449,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
});
}
else {
window.open(los.urlPrefix + '/lots/' + lotId);
window.open(`${los.urlPrefix}/lots/${lotId}`);
}
});
(_e = document
Expand Down
4 changes: 2 additions & 2 deletions public-typescript/lotOccupancyEdit/lotOccupancyEdit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ declare const exports: Record<string, unknown>
const optionElement = document.createElement('option')
optionElement.value = map.mapId!.toString()
optionElement.textContent =
(map.mapName ?? '') === '' ? '(No Name)' : map.mapName!
(map.mapName ?? '') === '' ? '(No Name)' : map.mapName ?? ''
mapElement.append(optionElement)
}

Expand All @@ -688,7 +688,7 @@ declare const exports: Record<string, unknown>
contextualColorName: 'info'
})
} else {
window.open(los.urlPrefix + '/lots/' + lotId)
window.open(`${los.urlPrefix}/lots/${lotId}`)
}
})

Expand Down
6 changes: 4 additions & 2 deletions public-typescript/lotOccupancyEdit/lotOccupancyEditFees.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ function renderLotOccupancyTransactions() {
.querySelector('tbody')) === null || _g === void 0 ? void 0 : _g.append(tableRowElement);
}
;
lotOccupancyTransactionsContainerElement.querySelector('#lotOccupancyTransactions--grandTotal').textContent = '$' + transactionGrandTotal.toFixed(2);
lotOccupancyTransactionsContainerElement.querySelector('#lotOccupancyTransactions--grandTotal').textContent = `\$${transactionGrandTotal.toFixed(2)}`;
const feeGrandTotal = getFeeGrandTotal();
if (feeGrandTotal.toFixed(2) !== transactionGrandTotal.toFixed(2)) {
lotOccupancyTransactionsContainerElement.insertAdjacentHTML('afterbegin', `<div class="message is-warning">
Expand All @@ -524,7 +524,9 @@ function renderLotOccupancyTransactions() {
<div class="level-item">Outstanding Balance</div>
</div>
<div class="level-right">
<div class="level-item">$${cityssm.escapeHTML((feeGrandTotal - transactionGrandTotal).toFixed(2))}</div>
<div class="level-item">
$${cityssm.escapeHTML((feeGrandTotal - transactionGrandTotal).toFixed(2))}
</div>
</div>
</div>
</div></div>`);
Expand Down
6 changes: 4 additions & 2 deletions public-typescript/lotOccupancyEdit/lotOccupancyEditFees.ts
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ function renderLotOccupancyTransactions(): void {
lotOccupancyTransactionsContainerElement.querySelector(
'#lotOccupancyTransactions--grandTotal'
) as HTMLElement
).textContent = '$' + transactionGrandTotal.toFixed(2)
).textContent = `\$${transactionGrandTotal.toFixed(2)}`

const feeGrandTotal = getFeeGrandTotal()

Expand All @@ -798,7 +798,9 @@ function renderLotOccupancyTransactions(): void {
<div class="level-item">Outstanding Balance</div>
</div>
<div class="level-right">
<div class="level-item">$${cityssm.escapeHTML((feeGrandTotal - transactionGrandTotal).toFixed(2))}</div>
<div class="level-item">
$${cityssm.escapeHTML((feeGrandTotal - transactionGrandTotal).toFixed(2))}
</div>
</div>
</div>
</div></div>`
Expand Down
2 changes: 1 addition & 1 deletion public-typescript/lotSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
function getLots() {
// eslint-disable-next-line no-unsanitized/property
searchResultsContainerElement.innerHTML = los.getLoadingParagraphHTML(`Loading ${los.escapedAliases.Lots}...`);
cityssm.postJSON(los.urlPrefix + '/lots/doSearchLots', searchFilterFormElement, renderLots);
cityssm.postJSON(`${los.urlPrefix}/lots/doSearchLots`, searchFilterFormElement, renderLots);
}
function resetOffsetAndGetLots() {
offsetElement.value = '0';
Expand Down
2 changes: 1 addition & 1 deletion public-typescript/lotSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ declare const exports: Record<string, unknown>
)

cityssm.postJSON(
los.urlPrefix + '/lots/doSearchLots',
`${los.urlPrefix}/lots/doSearchLots`,
searchFilterFormElement,
renderLots
)
Expand Down
Loading

0 comments on commit 9f94906

Please sign in to comment.