36 lines
1.5 KiB
JavaScript
36 lines
1.5 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.Main = void 0;
|
|
var socket_io_client_1 = require("socket.io-client");
|
|
var menuBar_1 = require("./menuBar");
|
|
var tabController_1 = require("./tabController");
|
|
var morphux_1 = require("morphux");
|
|
var dashboard_camerarunner_1 = require("./dashboard.camerarunner");
|
|
var logsHandler_1 = require("./logsHandler");
|
|
var calibration_1 = require("./calibration");
|
|
var dashboard_unity_1 = require("./dashboard.unity");
|
|
var socket = (0, socket_io_client_1.io)('/');
|
|
var Main = /** @class */ (function () {
|
|
function Main() {
|
|
this.socket = socket;
|
|
this.MenuBar = new menuBar_1.MenuBar(this);
|
|
this.TabController = new tabController_1.TabController(this);
|
|
this.Logs = new logsHandler_1.LogsHandler(this);
|
|
this.Calibration = new calibration_1.Calibration(this);
|
|
this.DashboardCameraRunner = new dashboard_camerarunner_1.DashboardCameraRunner(this);
|
|
this.DashboardUnityRunner = new dashboard_unity_1.DashboardUnity(this);
|
|
if (window.location.search.includes('debug')) {
|
|
window.SN = this;
|
|
console.log('Debug mode enabled');
|
|
}
|
|
}
|
|
return Main;
|
|
}());
|
|
exports.Main = Main;
|
|
morphux_1.MorphFeature.Loader({ active: true, message: 'Connecting to server...' });
|
|
socket.on('connect', function () {
|
|
console.log('Connected to server');
|
|
morphux_1.MorphFeature.Loader({ active: false });
|
|
});
|
|
var _Main = new Main();
|
|
//# sourceMappingURL=main.js.map
|