mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-29 20:21:35 +03:00
update services
This commit is contained in:
parent
b7c2db0e85
commit
8032034f4b
@ -1,4 +1,10 @@
|
||||
glancesApp.service('favicoService', function () {
|
||||
|
||||
import Favico from 'favico.js';
|
||||
// import angular from 'angular';
|
||||
|
||||
angular.module('glancesApp').service('favicoService', favicoService);
|
||||
|
||||
function favicoService () {
|
||||
|
||||
var favico = new Favico({
|
||||
animation: 'none'
|
||||
@ -11,4 +17,4 @@ glancesApp.service('favicoService', function () {
|
||||
this.reset = function () {
|
||||
favico.reset();
|
||||
};
|
||||
});
|
||||
}
|
4
glances/outputs/static/js/services/index.js
Normal file
4
glances/outputs/static/js/services/index.js
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
import './stats';
|
||||
import './plugin_helper';
|
||||
import './favicon';
|
@ -1,4 +1,7 @@
|
||||
glancesApp.service('GlancesPluginHelper', function () {
|
||||
|
||||
export default angular.module('glancesApp').service('GlancesPluginHelper', GlancesPluginHelper);
|
||||
|
||||
function GlancesPluginHelper () {
|
||||
|
||||
var plugin = {
|
||||
'limits': {},
|
||||
@ -39,4 +42,4 @@ glancesApp.service('GlancesPluginHelper', function () {
|
||||
};
|
||||
|
||||
return plugin;
|
||||
});
|
||||
}
|
@ -1,4 +1,9 @@
|
||||
glancesApp.service('GlancesStats', function ($http, $q, $rootScope, $timeout, GlancesPluginHelper, REFRESH_TIME, CONFIG, ARGUMENTS) {
|
||||
|
||||
// import angular from 'angular';
|
||||
|
||||
export default angular.module('glancesApp').service('GlancesStats', GlancesStats);
|
||||
|
||||
function GlancesStats ($http, $q, $rootScope, $timeout, GlancesPluginHelper, REFRESH_TIME, CONFIG, ARGUMENTS) {
|
||||
|
||||
var _data = false;
|
||||
|
||||
@ -65,4 +70,4 @@ glancesApp.service('GlancesStats', function ($http, $q, $rootScope, $timeout, Gl
|
||||
return response.data;
|
||||
});
|
||||
};
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue
Block a user