Ethereum network status dashboard for PoW and PoA networks
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ethstats-server/public/js/services.js

35 lines
772 B

10 years ago
'use strict';
/* Services */
10 years ago
netStatsApp.factory('socket', function ($rootScope) {
var socket = new Primus();
return socket;
});
10 years ago
netStatsApp.factory('toastr', function ($rootScope) {
10 years ago
toastr = window.toastr;
toastr.options = {
"closeButton": false,
"debug": false,
"progressBar": false,
10 years ago
"newestOnTop": true,
"positionClass": "toast-top-right",
"preventDuplicates": false,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"timeOut": "5000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut"
};
return toastr;
});
var lodash = angular.module('lodash', []);
lodash.factory('_', function() {
return window._;
10 years ago
});