Fixed warnings
This commit is contained in:
parent
57f9681e0f
commit
e32df0035d
@ -1,6 +1,6 @@
|
|||||||
import InfoArea from "@/common/components/InfoArea";
|
import InfoArea from "@/common/components/InfoArea";
|
||||||
import Button from "@/common/components/Button";
|
import Button from "@/common/components/Button";
|
||||||
import {faGear, faServer} from "@fortawesome/free-solid-svg-icons";
|
import {faServer} from "@fortawesome/free-solid-svg-icons";
|
||||||
import {useContext, useState} from "react";
|
import {useContext, useState} from "react";
|
||||||
import Software from "./software.jsx";
|
import Software from "./software.jsx";
|
||||||
import SoftwareGrid from "@/pages/tools/linux/InstallSoftware/components/SoftwareGrid";
|
import SoftwareGrid from "@/pages/tools/linux/InstallSoftware/components/SoftwareGrid";
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import InfoArea from "@/common/components/InfoArea";
|
import InfoArea from "@/common/components/InfoArea";
|
||||||
import Button from "@/common/components/Button";
|
import Button from "@/common/components/Button";
|
||||||
import {faGear, faServer} from "@fortawesome/free-solid-svg-icons";
|
import {faServer} from "@fortawesome/free-solid-svg-icons";
|
||||||
import ErrorArea from "@/common/components/ErrorArea";
|
import ErrorArea from "@/common/components/ErrorArea";
|
||||||
import "./styles.sass";
|
import "./styles.sass";
|
||||||
import ServerDialog from "@/pages/tools/linux/components/ServerDialog/index.js";
|
import ServerDialog from "@/pages/tools/linux/components/ServerDialog/index.js";
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import InfoArea from "@/common/components/InfoArea";
|
import InfoArea from "@/common/components/InfoArea";
|
||||||
import Button from "@/common/components/Button";
|
import Button from "@/common/components/Button";
|
||||||
import {faGear, faServer} from "@fortawesome/free-solid-svg-icons";
|
import {faServer} from "@fortawesome/free-solid-svg-icons";
|
||||||
import ErrorArea from "@/common/components/ErrorArea";
|
import ErrorArea from "@/common/components/ErrorArea";
|
||||||
import "./styles.sass";
|
import "./styles.sass";
|
||||||
import {useState} from "react";
|
import {useState} from "react";
|
||||||
|
@ -34,7 +34,7 @@ module.exports.checkServer = async ({hostname, username = "root", password, priv
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
}).connect({host: hostname, port, username, password, privateKey, readyTimeout: 5000}).on("error", (err) => {
|
}).connect({host: hostname, port, username, password, privateKey, readyTimeout: 5000}).on("error", () => {
|
||||||
reject("Error while connecting to server");
|
reject("Error while connecting to server");
|
||||||
session.end();
|
session.end();
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user