window.onload = function () {
Network.instance.init("http://localhost:3000");//Ip地址和开的端口。
Network.instance.onLogin = (data) => {
let obj = JSON.parse(data);
alert(obj.message)
if (obj.code == "1") {
document.getElementById("network").innerHTML = ''
PluginManager.setup($plugins);
SceneManager.run(Scene_Boot);
}
}
Network.instance.onError = (data) => {
let obj = JSON.parse(data);
alert(obj.message)
if (obj.code == "100") {
window.location.reload();
}
}
};
window.onload = function () {
Network.instance.init("http://localhost:3000");//Ip地址和开的端口。
Network.instance.onLogin = (data) => {
let obj = JSON.parse(data);
alert(obj.message)
if (obj.code == "1") {
document.getElementById("network").innerHTML = ''
PluginManager.setup($plugins);
SceneManager.run(Scene_Boot);
}
}
Network.instance.onError = (data) => {
let obj = JSON.parse(data);
alert(obj.message)
if (obj.code == "100") {
window.location.reload();
}
}
};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("dotenv/config");
const core_1 = require("@nestjs/core");
const app_module_1 = require("./app.module");
const port = process.env.PORT || 8080;
async function bootstrap() {
const app = await core_1.NestFactory.create(app_module_1.AppModule);
var bodyParser = require('body-parser');
app.use(bodyParser.json({limit: '50mb'}));
app.use(bodyParser.urlencoded({limit: '50mb', extended: true}));
app.useStaticAssets("www");
await app.listen(port);
}
bootstrap();
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("dotenv/config");
const core_1 = require("@nestjs/core");
const app_module_1 = require("./app.module");
const port = process.env.PORT || 8080;
async function bootstrap() {
const app = await core_1.NestFactory.create(app_module_1.AppModule);
var bodyParser = require('body-parser');
app.use(bodyParser.json({limit: '50mb'}));
app.use(bodyParser.urlencoded({limit: '50mb', extended: true}));
app.useStaticAssets("www");
await app.listen(port);
}
bootstrap();