ethstats-server/public/js/services.js

35 lines
772 B
JavaScript
Raw Normal View History

2015-01-20 19:29:31 +01:00
'use strict';
/* Services */
2015-04-29 12:58:09 +02:00
netStatsApp.factory('socket', function ($rootScope) {
var socket = new Primus();
2015-02-17 06:12:44 +01:00
return socket;
2015-01-28 23:38:54 +01:00
});
2015-04-29 12:58:09 +02:00
netStatsApp.factory('toastr', function ($rootScope) {
2015-02-17 11:14:48 +01:00
toastr = window.toastr;
toastr.options = {
"closeButton": false,
"debug": false,
2015-02-18 07:06:41 +01:00
"progressBar": false,
2015-02-17 11:14:48 +01:00
"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;
});
2015-02-17 10:30:41 +01:00
var lodash = angular.module('lodash', []);
lodash.factory('_', function() {
2015-01-28 23:38:54 +01:00
return window._;
2015-01-20 19:29:31 +01:00
});