Fix: delete useless code

This commit is contained in:
unitwk 2023-11-16 11:37:37 +08:00
parent 89b1c9866a
commit 3dcbc6bb51
2 changed files with 2 additions and 9 deletions

View File

@ -8,10 +8,6 @@ import { Server, Socket } from "socket.io";
import { LOCAL_PRESET_LANG_PATH } from "./const";
import logger from "./service/log";
import { StorageSubsystem } from "common";
const a = new StorageSubsystem();
console.log("XZXZXZX:", a);
initVersionManager();
const VERSION = getVersion();
@ -29,7 +25,7 @@ _ /_/ // /_/ // __/ / / / / / /_/ / / / /
/_____/ \\__,_/ \\___//_/ /_/ /_/\\____//_/ /_/
+ Copyright 2022 MCSManager Dev <https://github.com/MCSManager>
+ Copyright ${new Date().getFullYear()} MCSManager Dev <https://github.com/MCSManager>
+ Version ${VERSION}
`);

View File

@ -1,7 +1,7 @@
import "module-alias/register";
// Initialize the version manager & i18n
import { $t, i18next } from "./app/i18n";
import { $t } from "./app/i18n";
import { initVersionManager, getVersion } from "./app/version";
// Storage
@ -12,8 +12,6 @@ import { initSystemConfig, systemConfig } from "./app/setting";
import SystemUser from "./app/service/system_user";
import SystemRemoteService from "./app/service/system_remote_service";
import fs from "fs";
// Http server requirements
import Koa from "koa";
import { v4 } from "uuid";
@ -41,7 +39,6 @@ function setupHttp(koaApp: Koa, port: number, host?: string) {
// The Socket service is not required
// SocketService.setUpSocketIO(httpServer);
httpServer.listen(port, host);
logger.info("==================================");
logger.info($t("TXT_CODE_app.panelStarted"));