更新 协议说明

This commit is contained in:
Suwings 2022-02-07 13:42:41 +08:00
parent 6acabafa68
commit 7ac6c85fe3
46 changed files with 366 additions and 621 deletions

View File

@ -4,7 +4,7 @@
[![Status](https://img.shields.io/badge/npm-v6.14.15-blue.svg)](https://www.npmjs.com/)
[![Status](https://img.shields.io/badge/node-v14.17.6-blue.svg)](https://nodejs.org/en/download/)
[![Status](https://img.shields.io/badge/License-GPL-red.svg)](https://github.com/Suwings/MCSManager)
[![Status](https://img.shields.io/badge/License-AGPL-red.svg)](https://github.com/Suwings/MCSManager)
[官方网站](http://mcsmanager.com/) | [使用文档](https://docs.mcsmanager.com/) | [团队主页](https://github.com/MCSManager) | [面板端项目](https://github.com/MCSManager/MCSManager) | [网页前端项目](https://github.com/MCSManager/UI) | [守护进程项目](https://github.com/MCSManager/Daemon)

2
app.js
View File

@ -4,7 +4,7 @@ __ /|_/ /_ / _____ \\__ /|_/ /_ __ /_ __ \\ __ /_ __ / _ \\_ ___/
_ / / / / /___ ____/ /_ / / / / /_/ /_ / / / /_/ /_ /_/ // __/ /
/_/ /_/ \\____/ /____/ /_/ /_/ \\__,_/ /_/ /_/\\__,_/ _\\__, / \\___//_/
/____/
+ Released under the GPL-3.0 License
+ Released under the AGPL-3.0 License
+ https://github.com/MCSManager
`);

View File

@ -10,7 +10,7 @@
},
"homepage": "https://mcsmanager.com/",
"author": "https://github.com/Suwings",
"license": "GPL-3.0",
"license": "AGPL-3.0",
"repository": {
"type": "git",
"url": "https://github.com/MCSManager/MCSManager"

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
// 程序启动入口文件
@ -39,7 +33,7 @@ __ /|_/ /_ / _____ \\__ /|_/ /_ __ /_ __ \\ __ /_ __ / _ \\_ ___/
_ / / / / /___ ____/ /_ / / / / /_/ /_ / / / /_/ /_ /_/ // __/ /
/_/ /_/ \\____/ /____/ /_/ /_/ \\__,_/ /_/ /_/\\__,_/ _\\__, / \\___//_/
/____/
+ Released under the GPL-3.0 License
+ Released under the AGPL-3.0 License
+ Copyright 2022 Suwings
+ Version ${VERSION}
`);

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
export default class GlobalVariable {

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import { Socket } from "socket.io";
@ -35,7 +29,9 @@ export default class InstanceStreamListener {
public requestForward(socket: Socket, instanceUuid: string) {
if (this.listenMap.has(instanceUuid)) {
const sockets = this.listenMap.get(instanceUuid);
for (const iterator of sockets) if (iterator.id === socket.id) throw new Error(`此 Socket ${socket.id} 已经存在于指定实例监听表中`);
for (const iterator of sockets)
if (iterator.id === socket.id)
throw new Error(`此 Socket ${socket.id} 已经存在于指定实例监听表中`);
sockets.push(socket);
} else {
this.listenMap.set(instanceUuid, [socket]);
@ -43,7 +39,8 @@ export default class InstanceStreamListener {
}
public cannelForward(socket: Socket, instanceUuid: string) {
if (!this.listenMap.has(instanceUuid)) throw new Error(`指定 ${instanceUuid} 并不存在于监听表中`);
if (!this.listenMap.has(instanceUuid))
throw new Error(`指定 ${instanceUuid} 并不存在于监听表中`);
const socketList = this.listenMap.get(instanceUuid);
socketList.forEach((v, index) => {
if (v.id === socket.id) socketList.splice(index, 1);

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
interface IMap {
@ -40,7 +34,7 @@ interface Page<T> {
// 供给路由层使用的MAP型查询接口
export class QueryMapWrapper {
constructor(public map: IMap) { }
constructor(public map: IMap) {}
select<T>(condition: (v: T) => boolean): T[] {
const result: T[] = [];
@ -88,7 +82,7 @@ export class MySqlSource<T> implements IDataSource<T> {
// 本地文件数据源(内嵌式微型数据库)
export class LocalFileSource<T> implements IDataSource<T> {
constructor(public data: any) { }
constructor(public data: any) {}
selectPage(condition: any, page = 1, pageSize = 10) {
const result: T[] = [];
@ -128,14 +122,14 @@ export class LocalFileSource<T> implements IDataSource<T> {
select(condition: any): any[] {
return null;
}
update(condition: any, data: any) { }
delete(condition: any) { }
insert(data: any) { }
update(condition: any, data: any) {}
delete(condition: any) {}
insert(data: any) {}
}
// 供给路由层使用的统一数据查询接口
export class QueryWrapper<T> {
constructor(public dataSource: IDataSource<T>) { }
constructor(public dataSource: IDataSource<T>) {}
selectPage(condition: any, page = 1, pageSize = 10) {
return this.dataSource.selectPage(condition, page, pageSize);

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import os from "os";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import path from "path";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
// Remote >>> Local

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import * as io from "socket.io-client";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
// @Entity

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import path from "path";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import { IUser } from "./entity_interface";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
// Define subsystem loading and routing loading for the application

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import Koa from "koa";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import Koa from "koa";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import Koa from "koa";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import Koa from "koa";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import Router from "@koa/router";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import Router from "@koa/router";
@ -169,7 +163,7 @@ router.post("/multi_open", permission({ level: 10 }), async (ctx) => {
.request("instance/open", {
instanceUuids
})
.catch(() => { });
.catch(() => {});
});
ctx.body = true;
} catch (err) {
@ -188,7 +182,7 @@ router.post("/multi_stop", permission({ level: 10 }), async (ctx) => {
.request("instance/stop", {
instanceUuids
})
.catch(() => { });
.catch(() => {});
});
ctx.body = true;
} catch (err) {
@ -205,7 +199,7 @@ router.post("/multi_kill", permission({ level: 10 }), async (ctx) => {
const remoteService = RemoteServiceSubsystem.getInstance(remoteUuid);
new RemoteRequest(remoteService)
.request("instance/kill", { instanceUuids })
.catch((err) => { });
.catch((err) => {});
});
ctx.body = true;
} catch (err) {

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import Router from "@koa/router";
@ -101,7 +95,7 @@ router.get("/", permission({ level: 10, token: false }), async (ctx) => {
request: VisualDataSubsystem.getStatusChartArray()
},
remoteCount: RemoteServiceSubsystem.count(),
remote: remoteInfoList,
remote: remoteInfoList
};
ctx.body = overviewData;

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import Koa from "koa";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import Router from "@koa/router";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import Koa from "koa";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import Koa from "koa";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import Router from "@koa/router";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import Koa from "koa";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import Router from "@koa/router";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import Router from "@koa/router";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import Koa from "koa";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import { Socket } from "socket.io";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
// import { v4 } from "uuid";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import { v4 } from "uuid";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
// 多转发操作方法

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import log4js from "log4js";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import Koa from "koa";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import { v4 } from "uuid";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import userSystem from "./system_user";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import { v4 } from "uuid";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import http from "http";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import { logger } from "./log";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import md5 from "md5";

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
@ -104,7 +98,7 @@ class VisualDataSubsystem {
for (const iterator of RemoteServiceSubsystem.services.entries()) {
try {
remoteInfoList.push(await new RemoteRequest(iterator[1]).request("info/overview"));
} catch (err) { }
} catch (err) {}
}
let totalInstance = 0;
let runningInstance = 0;

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
// 全局配置初始化

View File

@ -1,28 +1,22 @@
/*
Copyright (C) 2022 Suwings(https://github.com/Suwings)
Copyright (C) 2022 Suwings <Suwings@outlook.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
According to the GPL, it is forbidden to delete all copyright notices,
According to the AGPL, it is forbidden to delete all copyright notices,
and if you modify the source code, you must open source the
modified source code.
(C) 2022 Suwings(https://github.com/Suwings)
(C) 2022 Suwings <Suwings@outlook.com>
GPL /
GPL
/ GNU Affero
3
https://mcsmanager.com/ 申请闭源开发授权或了解更多
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等
*/
import * as fs from "fs-extra";
@ -56,4 +50,4 @@ export function specifiedDaemonVersion() {
} catch (error) {
return "1.0.0";
}
}
}