ensl_gathers/app/javascripts/app.js
2018-11-18 22:13:47 +01:00

28 lines
728 B
JavaScript

const React = require("react");
const ReactDOM = require("react-dom");
const App = require("javascripts/components/main");
const io = require("socket.io-client");
const socketUrl = window.location.origin;
const socket = io(socketUrl);
module.exports = function (mount) {
ReactDOM.render(<App socket={socket} />, mount);
};
toastr.options = {
"closeButton": true,
"debug": false,
"newestOnTop": false,
"progressBar": false,
"positionClass": "toast-top-center",
"preventDuplicates": false,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"timeOut": "5000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut"
}