mirror of
https://github.com/MCSManager/MCSManager.git
synced 2024-11-27 06:59:54 +08:00
Fix: delete useless code
This commit is contained in:
parent
89b1c9866a
commit
3dcbc6bb51
@ -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}
|
||||
`);
|
||||
|
||||
|
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user