1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-24 16:55:24 +03:00

chore: add prefer template rule

This commit is contained in:
Tomas Chmelevskij 2021-12-19 07:51:44 +01:00
parent 27b3afbca7
commit 8cf9473c88
36 changed files with 277 additions and 276 deletions

View file

@ -59,7 +59,7 @@ firmware_flasher.initialize = function (callback) {
}
function show_loaded_hex(summary) {
self.flashingMessage('<a class="save_firmware" href="#" title="Save Firmware">' + i18n.getMessage('firmwareFlasherFirmwareOnlineLoaded', self.parsed_hex.bytes_total) + '</a>',
self.flashingMessage(`<a class="save_firmware" href="#" title="Save Firmware">${ i18n.getMessage('firmwareFlasherFirmwareOnlineLoaded', self.parsed_hex.bytes_total) }</a>`,
self.FLASH_MESSAGE_TYPES.NEUTRAL);
self.enableFlashing(true);
@ -205,7 +205,7 @@ firmware_flasher.initialize = function (callback) {
return;
}
const date = new Date(release.published_at);
const formattedDate = ("0" + date.getDate()).slice(-2) + "-" + ("0" + (date.getMonth() + 1)).slice(-2) + "-" + date.getFullYear() + " " + ("0" + date.getHours()).slice(-2) + ":" + ("0" + date.getMinutes()).slice(-2);
const formattedDate = `${(`0${ date.getDate()}`).slice(-2) }-${ (`0${ date.getMonth() + 1}`).slice(-2) }-${ date.getFullYear() } ${ (`0${ date.getHours()}`).slice(-2) }:${ (`0${ date.getMinutes()}`).slice(-2)}`;
const descriptor = {
"releaseUrl": release.html_url,
"name" : version,