forked from mirror/MCSM-Daemon
更新 开源协议说明
This commit is contained in:
parent
e4c0f621ad
commit
b6561b3241
@ -11,6 +11,9 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
@ -18,6 +21,9 @@
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
|
||||
禁止删除任何版权声明,请前往官方网站了解更多。
|
||||
*/
|
||||
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import fs from "fs-extra";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
export default class GlobalVariable {
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
import { Socket } from "socket.io";
|
||||
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
// Using SLT (Server List Ping) provided by Minecraft.
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
interface IMap {
|
||||
@ -34,7 +40,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[] = [];
|
||||
@ -82,7 +88,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[] = [];
|
||||
@ -122,14 +128,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);
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import os from "os";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import path from "path";
|
||||
|
@ -11,15 +11,21 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
export default class InstanceCommand {
|
||||
constructor(public info?: string) {}
|
||||
async exec(instance: any): Promise<any> {}
|
||||
constructor(public info?: string) { }
|
||||
async exec(instance: any): Promise<any> { }
|
||||
}
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
export function commandStringToArray(cmd: string) {
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import Instance from "../instance/instance";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import Instance from "../instance/instance";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import Instance from "../../instance/instance";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import Instance from "../../instance/instance";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import Instance from "../../instance/instance";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import Instance from "../../instance/instance";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import os from "os";
|
||||
@ -80,7 +86,7 @@ class ProcessAdapter extends EventEmitter implements IInstanceProcess {
|
||||
this.process.stdout.destroy();
|
||||
this.process.stderr.destroy();
|
||||
}
|
||||
} catch (error) {}
|
||||
} catch (error) { }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import Instance from "../../instance/instance";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import Instance from "../instance/instance";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import InstanceCommand from "./base/command";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import { ProcessConfig } from "../instance/process_config";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import Instance from "../instance/instance";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import Instance from "../instance/instance";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import Instance from "../instance/instance";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import { ILifeCycleTask } from "../../instance/life_cycle";
|
||||
@ -46,7 +52,7 @@ export default class RefreshPlayer implements ILifeCycleTask {
|
||||
instance.info.maxPlayers = result.max_players ? result.max_players : -1;
|
||||
instance.info.currentPlayers = result.current_players ? result.current_players : -1;
|
||||
instance.info.version = result.version ? result.version : "";
|
||||
} catch (error) {}
|
||||
} catch (error) { }
|
||||
}, 3000);
|
||||
}
|
||||
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import { ILifeCycleTask } from "../../instance/life_cycle";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import Instance from "../instance/instance";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import { v4 } from "uuid";
|
||||
|
@ -11,18 +11,24 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import { Socket } from "socket.io";
|
||||
|
||||
export default class RouterContext {
|
||||
constructor(public uuid: string, public socket: Socket, public session?: any, public event?: string) {}
|
||||
constructor(public uuid: string, public socket: Socket, public session?: any, public event?: string) { }
|
||||
|
||||
public response(data: any) {
|
||||
return this;
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import Instance from "./instance";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import { EventEmitter } from "events";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import { EventEmitter } from "events";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import Instance from "./instance";
|
||||
@ -32,7 +38,7 @@ export class LifeCycleTaskManager {
|
||||
// 生命周期任务列表
|
||||
public readonly lifeCycleTask: ILifeCycleTask[] = [];
|
||||
|
||||
constructor(private self: any) {}
|
||||
constructor(private self: any) { }
|
||||
|
||||
registerLifeCycleTask(task: ILifeCycleTask) {
|
||||
this.lifeCycleTask.push(task);
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
interface IExecutable {
|
||||
@ -26,7 +32,7 @@ interface IExecutable {
|
||||
export class PresetCommandManager {
|
||||
public readonly preset = new Map<String, IExecutable>();
|
||||
|
||||
constructor(private self: any) {}
|
||||
constructor(private self: any) { }
|
||||
|
||||
setPreset(action: string, cmd: IExecutable) {
|
||||
this.preset.set(action, cmd);
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import yaml from "yaml";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import Instance from "../instance/instance";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
const dgram = require("dgram");
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import Instance from "../instance/instance";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import fs from "fs-extra";
|
||||
@ -136,7 +142,7 @@ routerApp.on("instance/detail", async (ctx, data) => {
|
||||
// 可能因文件权限导致错误的部分,避免影响整个配置的获取
|
||||
processInfo = await instance.forceExec(new ProcessInfoCommand());
|
||||
space = await instance.usedSpace(null, 2);
|
||||
} catch (err) {}
|
||||
} catch (err) { }
|
||||
protocol.msg(ctx, "instance/detail", {
|
||||
instanceUuid: instance.instanceUuid,
|
||||
started: instance.startCount,
|
||||
@ -275,7 +281,7 @@ routerApp.on("instance/delete", (ctx, data) => {
|
||||
for (const instanceUuid of instanceUuids) {
|
||||
try {
|
||||
InstanceSubsystem.removeInstance(instanceUuid, deleteFile);
|
||||
} catch (err) {}
|
||||
} catch (err) { }
|
||||
}
|
||||
protocol.msg(ctx, "instance/delete", instanceUuids);
|
||||
});
|
||||
@ -288,7 +294,7 @@ routerApp.on("instance/stdin", (ctx, data) => {
|
||||
try {
|
||||
if (data.ch == "\r") return instance.process.write("\n");
|
||||
instance.process.write(data.ch);
|
||||
} catch (err) {}
|
||||
} catch (err) { }
|
||||
});
|
||||
|
||||
routerApp.on("instance/process_config/list", (ctx, data) => {
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import { routerApp } from "../service/router";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import { DockerManager } from "../service/docker_service";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import * as protocol from "../service/protocol";
|
||||
@ -131,7 +137,7 @@ routerApp.on("file/compress", async (ctx, data) => {
|
||||
// 异步执行
|
||||
fileManager
|
||||
.zip(source, targets)
|
||||
.then(() => {})
|
||||
.then(() => { })
|
||||
.catch((error) => {
|
||||
protocol.responseError(ctx, error);
|
||||
});
|
||||
@ -139,7 +145,7 @@ routerApp.on("file/compress", async (ctx, data) => {
|
||||
// 异步执行
|
||||
fileManager
|
||||
.unzip(source, targets)
|
||||
.then(() => {})
|
||||
.then(() => { })
|
||||
.catch((error) => {
|
||||
protocol.responseError(ctx, error);
|
||||
});
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import Router from "@koa/router";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import * as protocol from "../service/protocol";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import path from "path";
|
||||
@ -35,7 +41,7 @@ async function outputLog(instanceUuid: string, text: string) {
|
||||
try {
|
||||
const fileInfo = fs.statSync(logFilePath);
|
||||
if (fileInfo && fileInfo.size > 1024 * 1024 * 1) fs.removeSync(logFilePath);
|
||||
} catch (err) {}
|
||||
} catch (err) { }
|
||||
await fs.writeFile(logFilePath, text, { encoding: "utf-8", flag: "a" });
|
||||
}
|
||||
|
||||
@ -68,8 +74,8 @@ InstanceSubsystem.on("data", (instanceUuid: string, text: string) => {
|
||||
}
|
||||
// 输出内容追加到log文件
|
||||
outputLog(instanceUuid, text)
|
||||
.then(() => {})
|
||||
.catch(() => {});
|
||||
.then(() => { })
|
||||
.catch(() => { });
|
||||
});
|
||||
|
||||
// 实例退出事件
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import { routerApp } from "../service/router";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import { routerApp } from "../service/router";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import * as protocol from "../service/protocol";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import dockerode from "dockerode";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import InstanceSubsystem from "../service/system_instance";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import Koa from "koa";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
export interface IInstanceDetail {
|
||||
instanceUuid: string;
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import * as log4js from "log4js";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
// 任务接口
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import { globalConfiguration } from "../entity/config";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import { Socket } from "socket.io";
|
||||
@ -40,7 +46,7 @@ export interface IPacket {
|
||||
const globalSocket = new Map<String, Socket>();
|
||||
|
||||
export class Packet implements IPacket {
|
||||
constructor(public uuid: string = null, public status = 200, public event: string = null, public data: any = null) {}
|
||||
constructor(public uuid: string = null, public status = 200, public event: string = null, public data: any = null) { }
|
||||
}
|
||||
|
||||
export function response(ctx: RouterContext, data: any) {
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import { EventEmitter } from "events";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import path from "path";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import fs from "fs-extra";
|
||||
@ -78,8 +84,8 @@ class InstanceSubsystem extends EventEmitter {
|
||||
// 所有实例全部进行功能调度器
|
||||
instance
|
||||
.forceExec(new FuntionDispatcher())
|
||||
.then((v) => {})
|
||||
.catch((v) => {});
|
||||
.then((v) => { })
|
||||
.catch((v) => { });
|
||||
this.addInstance(instance);
|
||||
});
|
||||
// 处理自动启动
|
||||
@ -159,7 +165,7 @@ class InstanceSubsystem extends EventEmitter {
|
||||
// 删除计划任务
|
||||
InstanceControl.deleteInstanceAllTask(instanceUuid);
|
||||
// 异步删除文件
|
||||
if (deleteFile) fs.remove(instance.config.cwd, (err) => {});
|
||||
if (deleteFile) fs.remove(instance.config.cwd, (err) => { });
|
||||
return true;
|
||||
}
|
||||
throw new Error("Instance does not exist");
|
||||
@ -168,13 +174,13 @@ class InstanceSubsystem extends EventEmitter {
|
||||
forward(targetInstanceUuid: string, socket: Socket) {
|
||||
try {
|
||||
this.instanceStream.requestForward(socket, targetInstanceUuid);
|
||||
} catch (err) {}
|
||||
} catch (err) { }
|
||||
}
|
||||
|
||||
stopForward(targetInstanceUuid: string, socket: Socket) {
|
||||
try {
|
||||
this.instanceStream.cannelForward(socket, targetInstanceUuid);
|
||||
} catch (err) {}
|
||||
} catch (err) { }
|
||||
}
|
||||
|
||||
forEachForward(instanceUuid: string, callback: (socket: Socket) => void) {
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import schedule from "node-schedule";
|
||||
@ -71,7 +77,7 @@ class IntervalJob implements IScheduleJob {
|
||||
|
||||
// 计划任务实例类
|
||||
class Task {
|
||||
constructor(public config: TaskConfig, public job?: IScheduleJob) {}
|
||||
constructor(public config: TaskConfig, public job?: IScheduleJob) { }
|
||||
}
|
||||
|
||||
class InstanceControlSubsystem {
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
import readline from "readline";
|
||||
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import * as fs from "fs-extra";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
import { describe, it } from "mocha";
|
||||
|
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
export function checkFileName(fileName: string) {
|
||||
|
6
src/types/properties.d.ts
vendored
6
src/types/properties.d.ts
vendored
@ -11,12 +11,18 @@
|
||||
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,
|
||||
and if you modify the source code, you must open source the
|
||||
modified source code.
|
||||
|
||||
版权所有 (C) 2022 Suwings(https://github.com/Suwings)
|
||||
|
||||
本程序为自由软件,你可以依据 GPL 的条款(第三版或者更高),再分发和/或修改它。
|
||||
该程序以具有实际用途为目的发布,但是并不包含任何担保,
|
||||
也不包含基于特定商用或健康用途的默认担保。具体细节请查看 GPL 协议。
|
||||
|
||||
根据协议,您被禁止删除所有相关版权声明,若需修改源码则必须开源修改后的源码。
|
||||
前往 https://mcsmanager.com/ 申请闭源开发授权或了解更多。
|
||||
*/
|
||||
|
||||
declare module "properties" {
|
||||
|
Loading…
Reference in New Issue
Block a user