This commit is contained in:
Louis Lam 2023-11-18 13:54:27 +08:00
parent be7a296fc7
commit cd9f9d2427
10 changed files with 11 additions and 9 deletions

View file

@ -92,6 +92,9 @@ module.exports = {
"one-var": [ "error", "never" ], "one-var": [ "error", "never" ],
"max-statements-per-line": [ "error", { "max": 1 }], "max-statements-per-line": [ "error", { "max": 1 }],
"@typescript-eslint/ban-ts-comment": "off", "@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-unused-vars": [ "warn", {
"args": "none"
}],
"prefer-const" : "off", "prefer-const" : "off",
}, },
}; };

View file

@ -80,7 +80,7 @@ export class Database {
* @param {boolean} noLog Should logs not be output? * @param {boolean} noLog Should logs not be output?
* @returns {Promise<void>} * @returns {Promise<void>}
*/ */
static async connect(autoloadModels = true, noLog = false) { static async connect(autoloadModels = true) {
const acquireConnectionTimeout = 120 * 1000; const acquireConnectionTimeout = 120 * 1000;
let dbConfig; let dbConfig;
try { try {

View file

@ -291,7 +291,7 @@ export class DockgeServer {
} }
// Run every 5 seconds // Run every 5 seconds
const job = Cron("*/2 * * * * *", { Cron("*/2 * * * * *", {
protect: true, // Enabled over-run protection. protect: true, // Enabled over-run protection.
}, () => { }, () => {
log.debug("server", "Cron job running"); log.debug("server", "Cron job running");

View file

@ -1,5 +1,4 @@
import { SocketHandler } from "../socket-handler.js"; import { SocketHandler } from "../socket-handler.js";
import { Socket } from "socket.io";
import { DockgeServer } from "../dockge-server"; import { DockgeServer } from "../dockge-server";
import { log } from "../log"; import { log } from "../log";
import { R } from "redbean-node"; import { R } from "redbean-node";

View file

@ -5,7 +5,7 @@
<li v-for="(value, index) in array" :key="index" class="list-group-item"> <li v-for="(value, index) in array" :key="index" class="list-group-item">
<select v-model="array[index]" class="no-bg domain-input"> <select v-model="array[index]" class="no-bg domain-input">
<option value="">Select a network...</option> <option value="">Select a network...</option>
<option v-for="option in options" :value="option">{{ option }}</option> <option v-for="option in options" :key="option" :value="option">{{ option }}</option>
</select> </select>
<font-awesome-icon icon="times" class="action remove ms-2 me-3 text-danger" @click="remove(index)" /> <font-awesome-icon icon="times" class="action remove ms-2 me-3 text-danger" @click="remove(index)" />

View file

@ -9,7 +9,7 @@
<div v-if="!isEditMode"> <div v-if="!isEditMode">
<span class="badge me-1" :class="bgStyle">{{ status }}</span> <span class="badge me-1" :class="bgStyle">{{ status }}</span>
<a v-for="port in service.ports" :href="parsePort(port).url" target="_blank"> <a v-for="port in service.ports" :key="port" :href="parsePort(port).url" target="_blank">
<span class="badge me-1 bg-secondary">{{ parsePort(port).display }}</span> <span class="badge me-1 bg-secondary">{{ parsePort(port).display }}</span>
</a> </a>
</div> </div>

View file

@ -32,7 +32,7 @@
class="form-control" class="form-control"
@keyup.enter="createExternelNetwork" @keyup.enter="createExternelNetwork"
/> />
<button class="btn btn-normal btn-sm me-2" type="button" @click=""> <button class="btn btn-normal btn-sm me-2" type="button">
{{ $t("createExternalNetwork") }} {{ $t("createExternalNetwork") }}
</button> </button>
</div> </div>

View file

@ -19,7 +19,6 @@ export default {
computed: { computed: {
uptime() { uptime() {
return "0.00%";
return this.$t("notAvailableShort"); return this.$t("notAvailableShort");
}, },

View file

@ -68,13 +68,13 @@
</template> </template>
<script> <script>
import HiddenInput from "../../components/HiddenInput.vue";
import dayjs from "dayjs"; import dayjs from "dayjs";
import { timezoneList } from "../../util-frontend"; import { timezoneList } from "../../util-frontend";
export default { export default {
components: { components: {
HiddenInput,
}, },
data() { data() {

View file

@ -1,3 +1,4 @@
/* eslint-disable */
/// <reference types="vite/client" /> /// <reference types="vite/client" />
declare module "*.vue" { declare module "*.vue" {