ensl_gathers/app/javascripts/app.js

29 lines
728 B
JavaScript
Raw Normal View History

2016-01-26 10:44:34 +00:00
const React = require("react");
2016-01-22 10:12:23 +00:00
const ReactDOM = require("react-dom");
2016-01-26 10:44:34 +00:00
const App = require("javascripts/components/main");
const io = require("socket.io-client");
2018-11-18 21:13:47 +00:00
const socketUrl = window.location.origin;
2018-11-18 20:19:19 +00:00
const socket = io(socketUrl);
2016-01-22 21:39:03 +00:00
module.exports = function (mount) {
ReactDOM.render(<App socket={socket} />, mount);
2016-01-26 10:44:34 +00:00
};
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"
}