UNPKG

@nodefony/monitoring-bundle

Version:

Nodefony Framework Bundle Monitoring

66 lines (61 loc) 1.74 kB
/* * * ENTRY POINT WEBPACK APP * */ const stage = require("@nodefony/stage"); require("bootstrap"); require("../less/style.less"); require('font-awesome/css/font-awesome.css'); //require("../vendors/jquery.timeago/jquery.timeago.js"); require("./json-view/jquery.jsonview.js"); require("./flot/jquery.flot.js"); require("./flot/jquery.flot.categories.js"); require("./flot/jquery.flot.pie.js"); require("./flot/jquery.flot.crosshair.js"); const smoothie = require("./smoothie/smoothie.js"); require("../css/json-view/jquery.jsonview.css"); const nodefony = require('nodefony-client') const socket = require("nodefony-client/dist/socket"); socket.default(nodefony); module.exports = function () { // expose in gobal window object window["stage"] = stage; window["SmoothieChart"] = smoothie.SmoothieChart; window["TimeSeries"] = smoothie.TimeSeries; window.nodefony = nodefony ; /* * * Class Bundle App client side * * */ var monitoring = class monitoring { constructor() { /** * * * * * * KERNEL * * * * * * */ //== Kernel var environment = $(".environment").attr("value"); var debug = $(".debug").attr("value"); this.kernel = new stage.appKernel("/nodefony/modules/app", environment, { debug: debug, location: { html5Mode: false }, onBoot: function () { }, onDomReady: function () { this.uiContainer = $(".debugContent").get(0) || $("body").get(0); }, onReady: function () { this.router.redirect(this.router.generateUrl("index")); }, onGetConfigError: function (module) {} }); } }; return new monitoring(); }();