diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 1a292dc..0a6dee2 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -92,6 +92,9 @@ module.exports = { "one-var": [ "error", "never" ], "max-statements-per-line": [ "error", { "max": 1 }], "@typescript-eslint/ban-ts-comment": "off", + "@typescript-eslint/no-unused-vars": [ "warn", { + "args": "none" + }], "prefer-const" : "off", }, }; diff --git a/backend/database.ts b/backend/database.ts index d508af4..814e61c 100644 --- a/backend/database.ts +++ b/backend/database.ts @@ -80,7 +80,7 @@ export class Database { * @param {boolean} noLog Should logs not be output? * @returns {Promise} */ - static async connect(autoloadModels = true, noLog = false) { + static async connect(autoloadModels = true) { const acquireConnectionTimeout = 120 * 1000; let dbConfig; try { diff --git a/backend/dockge-server.ts b/backend/dockge-server.ts index ca081b5..ea781ff 100644 --- a/backend/dockge-server.ts +++ b/backend/dockge-server.ts @@ -291,7 +291,7 @@ export class DockgeServer { } // Run every 5 seconds - const job = Cron("*/2 * * * * *", { + Cron("*/2 * * * * *", { protect: true, // Enabled over-run protection. }, () => { log.debug("server", "Cron job running"); diff --git a/backend/socket-handlers/main-socket-handler.ts b/backend/socket-handlers/main-socket-handler.ts index 194d093..1547840 100644 --- a/backend/socket-handlers/main-socket-handler.ts +++ b/backend/socket-handlers/main-socket-handler.ts @@ -1,5 +1,4 @@ import { SocketHandler } from "../socket-handler.js"; -import { Socket } from "socket.io"; import { DockgeServer } from "../dockge-server"; import { log } from "../log"; import { R } from "redbean-node"; diff --git a/frontend/src/components/ArraySelect.vue b/frontend/src/components/ArraySelect.vue index 563bcbd..ebf505c 100644 --- a/frontend/src/components/ArraySelect.vue +++ b/frontend/src/components/ArraySelect.vue @@ -5,7 +5,7 @@
  • diff --git a/frontend/src/components/Container.vue b/frontend/src/components/Container.vue index 9d382be..0826437 100644 --- a/frontend/src/components/Container.vue +++ b/frontend/src/components/Container.vue @@ -9,7 +9,7 @@
    {{ status }} - + {{ parsePort(port).display }}
    diff --git a/frontend/src/components/NetworkInput.vue b/frontend/src/components/NetworkInput.vue index 57f3c3f..84f9fef 100644 --- a/frontend/src/components/NetworkInput.vue +++ b/frontend/src/components/NetworkInput.vue @@ -32,7 +32,7 @@ class="form-control" @keyup.enter="createExternelNetwork" /> - diff --git a/frontend/src/components/Uptime.vue b/frontend/src/components/Uptime.vue index 84c2c27..5d9c6fc 100644 --- a/frontend/src/components/Uptime.vue +++ b/frontend/src/components/Uptime.vue @@ -19,7 +19,6 @@ export default { computed: { uptime() { - return "0.00%"; return this.$t("notAvailableShort"); }, diff --git a/frontend/src/components/settings/General.vue b/frontend/src/components/settings/General.vue index f9cf5c3..b0f3dc2 100644 --- a/frontend/src/components/settings/General.vue +++ b/frontend/src/components/settings/General.vue @@ -68,13 +68,13 @@