diff --git a/glances/outputs/static/js/app.js b/glances/outputs/static/js/app.js index 3cdcc936..19a5ef1c 100644 --- a/glances/outputs/static/js/app.js +++ b/glances/outputs/static/js/app.js @@ -1,8 +1,8 @@ -import '../css/bootstrap.less'; -import '../css/style.scss'; +import "../css/bootstrap.less"; +import "../css/style.scss"; -import './module'; -import './services'; -import './components'; -import './filters'; \ No newline at end of file +import "./module"; +import "./services"; +import "./components"; +import "./filters"; \ No newline at end of file diff --git a/glances/outputs/static/js/components/glances/component.js b/glances/outputs/static/js/components/glances/component.js index 36591943..a9f96667 100644 --- a/glances/outputs/static/js/components/glances/component.js +++ b/glances/outputs/static/js/components/glances/component.js @@ -1,9 +1,10 @@ -'use strict'; -import GlancesController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glances', { +import GlancesController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glances", { controller: GlancesController, controllerAs: 'vm', templateUrl: template, diff --git a/glances/outputs/static/js/components/glances/controller.js b/glances/outputs/static/js/components/glances/controller.js index c87acabf..192c4273 100644 --- a/glances/outputs/static/js/components/glances/controller.js +++ b/glances/outputs/static/js/components/glances/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesController($scope, GlancesStats, hotkeys, ARGUMENTS) { var vm = this; diff --git a/glances/outputs/static/js/components/help/component.js b/glances/outputs/static/js/components/help/component.js index b250694f..88053914 100644 --- a/glances/outputs/static/js/components/help/component.js +++ b/glances/outputs/static/js/components/help/component.js @@ -1,9 +1,10 @@ -'use strict'; -import GlancesHelpController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glancesHelp', { +import GlancesHelpController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glancesHelp", { controller: GlancesHelpController, controllerAs: 'vm', templateUrl: template, diff --git a/glances/outputs/static/js/components/help/controller.js b/glances/outputs/static/js/components/help/controller.js index 66443ad3..af48598a 100644 --- a/glances/outputs/static/js/components/help/controller.js +++ b/glances/outputs/static/js/components/help/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesHelpController($http) { var vm = this; diff --git a/glances/outputs/static/js/components/index.js b/glances/outputs/static/js/components/index.js index 098ae565..e7c4752d 100644 --- a/glances/outputs/static/js/components/index.js +++ b/glances/outputs/static/js/components/index.js @@ -1,32 +1,32 @@ // import all components -import './glances/component'; -import './help/component'; -import './plugin-alert/component'; -import './plugin-amps/component'; -import './plugin-cloud/component'; -import './plugin-cpu/component'; -import './plugin-diskio/component'; -import './plugin-docker/component'; -import './plugin-folders/component'; -import './plugin-fs/component'; -import './plugin-gpu/component'; -import './plugin-ip/component'; -import './plugin-irq/component'; -import './plugin-load/component'; -import './plugin-mem/component'; -import './plugin-mem-more/component'; -import './plugin-memswap/component'; -import './plugin-network/component'; -import './plugin-percpu/component'; -import './plugin-ports/component'; -import './plugin-process/component'; -import './plugin-processcount/component'; -import './plugin-processlist/component'; -import './plugin-quicklook/component'; -import './plugin-raid/component'; -import './plugin-sensors/component'; -import './plugin-system/component'; -import './plugin-uptime/component'; -import './plugin-wifi/component'; +import "./glances/component"; +import "./help/component"; +import "./plugin-alert/component"; +import "./plugin-amps/component"; +import "./plugin-cloud/component"; +import "./plugin-cpu/component"; +import "./plugin-diskio/component"; +import "./plugin-docker/component"; +import "./plugin-folders/component"; +import "./plugin-fs/component"; +import "./plugin-gpu/component"; +import "./plugin-ip/component"; +import "./plugin-irq/component"; +import "./plugin-load/component"; +import "./plugin-mem/component"; +import "./plugin-mem-more/component"; +import "./plugin-memswap/component"; +import "./plugin-network/component"; +import "./plugin-percpu/component"; +import "./plugin-ports/component"; +import "./plugin-process/component"; +import "./plugin-processcount/component"; +import "./plugin-processlist/component"; +import "./plugin-quicklook/component"; +import "./plugin-raid/component"; +import "./plugin-sensors/component"; +import "./plugin-system/component"; +import "./plugin-uptime/component"; +import "./plugin-wifi/component"; diff --git a/glances/outputs/static/js/components/plugin-alert/component.js b/glances/outputs/static/js/components/plugin-alert/component.js index 1091360c..bf4406e3 100644 --- a/glances/outputs/static/js/components/plugin-alert/component.js +++ b/glances/outputs/static/js/components/plugin-alert/component.js @@ -1,7 +1,8 @@ -'use strict'; -import GlancesPluginAlertController from './controller'; -import template from './view.html'; +import angular from "angular"; + +import GlancesPluginAlertController from "./controller"; +import template from "./view.html"; export default angular.module('glancesApp').component('glancesPluginAlert', { controller: GlancesPluginAlertController, diff --git a/glances/outputs/static/js/components/plugin-alert/controller.js b/glances/outputs/static/js/components/plugin-alert/controller.js index 99169ccf..a13ee4e1 100644 --- a/glances/outputs/static/js/components/plugin-alert/controller.js +++ b/glances/outputs/static/js/components/plugin-alert/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesPluginAlertController($scope, favicoService) { var vm = this; diff --git a/glances/outputs/static/js/components/plugin-amps/component.js b/glances/outputs/static/js/components/plugin-amps/component.js index f892065f..d4426e48 100644 --- a/glances/outputs/static/js/components/plugin-amps/component.js +++ b/glances/outputs/static/js/components/plugin-amps/component.js @@ -1,9 +1,10 @@ -'use strict'; -import GlancesPluginAmpsController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glancesPluginAmps', { +import GlancesPluginAmpsController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glancesPluginAmps", { controller: GlancesPluginAmpsController, controllerAs: 'vm', templateUrl: template, diff --git a/glances/outputs/static/js/components/plugin-amps/controller.js b/glances/outputs/static/js/components/plugin-amps/controller.js index 1517cec4..d552530b 100644 --- a/glances/outputs/static/js/components/plugin-amps/controller.js +++ b/glances/outputs/static/js/components/plugin-amps/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesPluginAmpsController($scope, GlancesStats, favicoService) { var vm = this; diff --git a/glances/outputs/static/js/components/plugin-cloud/component.js b/glances/outputs/static/js/components/plugin-cloud/component.js index 99df631e..1ef22f6c 100644 --- a/glances/outputs/static/js/components/plugin-cloud/component.js +++ b/glances/outputs/static/js/components/plugin-cloud/component.js @@ -1,9 +1,10 @@ -'use strict'; -import GlancesPluginCloudController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glancesPluginCloud', { +import GlancesPluginCloudController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glancesPluginCloud", { controller: GlancesPluginCloudController, controllerAs: 'vm', templateUrl: template, diff --git a/glances/outputs/static/js/components/plugin-cloud/controller.js b/glances/outputs/static/js/components/plugin-cloud/controller.js index 9bd41fff..ccafff18 100644 --- a/glances/outputs/static/js/components/plugin-cloud/controller.js +++ b/glances/outputs/static/js/components/plugin-cloud/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesPluginCloudController($scope, GlancesStats) { var vm = this; diff --git a/glances/outputs/static/js/components/plugin-cpu/component.js b/glances/outputs/static/js/components/plugin-cpu/component.js index 87f859b1..4d80f7b9 100644 --- a/glances/outputs/static/js/components/plugin-cpu/component.js +++ b/glances/outputs/static/js/components/plugin-cpu/component.js @@ -1,9 +1,10 @@ -'use strict'; -import GlancesPluginCpuController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glancesPluginCpu', { +import GlancesPluginCpuController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glancesPluginCpu", { controller: GlancesPluginCpuController, controllerAs: 'vm', templateUrl: template, diff --git a/glances/outputs/static/js/components/plugin-cpu/controller.js b/glances/outputs/static/js/components/plugin-cpu/controller.js index 1846d166..44090d2a 100644 --- a/glances/outputs/static/js/components/plugin-cpu/controller.js +++ b/glances/outputs/static/js/components/plugin-cpu/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesPluginCpuController($scope, GlancesStats) { var vm = this; diff --git a/glances/outputs/static/js/components/plugin-diskio/component.js b/glances/outputs/static/js/components/plugin-diskio/component.js index d423c7d0..0b6d2f95 100644 --- a/glances/outputs/static/js/components/plugin-diskio/component.js +++ b/glances/outputs/static/js/components/plugin-diskio/component.js @@ -1,9 +1,10 @@ -'use strict'; -import GlancesPluginDiskioController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glancesPluginDiskio', { +import GlancesPluginDiskioController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glancesPluginDiskio", { controller: GlancesPluginDiskioController, controllerAs: 'vm', templateUrl: template, diff --git a/glances/outputs/static/js/components/plugin-diskio/controller.js b/glances/outputs/static/js/components/plugin-diskio/controller.js index a8c8e180..49c29fcf 100644 --- a/glances/outputs/static/js/components/plugin-diskio/controller.js +++ b/glances/outputs/static/js/components/plugin-diskio/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesPluginDiskioController($scope, $filter, GlancesStats, ARGUMENTS) { var vm = this; diff --git a/glances/outputs/static/js/components/plugin-docker/component.js b/glances/outputs/static/js/components/plugin-docker/component.js index 3dbe69cc..4a0b2567 100644 --- a/glances/outputs/static/js/components/plugin-docker/component.js +++ b/glances/outputs/static/js/components/plugin-docker/component.js @@ -1,10 +1,11 @@ -'use strict'; -import GlancesPluginDockerController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glancesPluginDocker', { +import GlancesPluginDockerController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glancesPluginDocker", { controller: GlancesPluginDockerController, - controllerAs: 'vm', + controllerAs: "vm", templateUrl: template, }); diff --git a/glances/outputs/static/js/components/plugin-docker/controller.js b/glances/outputs/static/js/components/plugin-docker/controller.js index 6aa9d76f..10d743dd 100644 --- a/glances/outputs/static/js/components/plugin-docker/controller.js +++ b/glances/outputs/static/js/components/plugin-docker/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesPluginDockerController($scope, GlancesStats) { var vm = this; diff --git a/glances/outputs/static/js/components/plugin-folders/component.js b/glances/outputs/static/js/components/plugin-folders/component.js index ee86566b..eaa0f885 100644 --- a/glances/outputs/static/js/components/plugin-folders/component.js +++ b/glances/outputs/static/js/components/plugin-folders/component.js @@ -1,10 +1,11 @@ -'use strict'; -import GlancesPluginFsController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glancesPluginFolders', { +import GlancesPluginFsController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glancesPluginFolders", { controller: GlancesPluginFsController, - controllerAs: 'vm', + controllerAs: "vm", templateUrl: template, }); diff --git a/glances/outputs/static/js/components/plugin-folders/controller.js b/glances/outputs/static/js/components/plugin-folders/controller.js index 07da876c..5af3689b 100644 --- a/glances/outputs/static/js/components/plugin-folders/controller.js +++ b/glances/outputs/static/js/components/plugin-folders/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesPluginFoldersController($scope, GlancesStats) { var vm = this; diff --git a/glances/outputs/static/js/components/plugin-fs/component.js b/glances/outputs/static/js/components/plugin-fs/component.js index cc169aa5..11f7d46b 100644 --- a/glances/outputs/static/js/components/plugin-fs/component.js +++ b/glances/outputs/static/js/components/plugin-fs/component.js @@ -1,9 +1,10 @@ -'use strict'; -import GlancesPluginFsController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glancesPluginFs', { +import GlancesPluginFsController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glancesPluginFs", { controller: GlancesPluginFsController, controllerAs: 'vm', templateUrl: template, diff --git a/glances/outputs/static/js/components/plugin-fs/controller.js b/glances/outputs/static/js/components/plugin-fs/controller.js index 4a716c5f..b4cfdbab 100644 --- a/glances/outputs/static/js/components/plugin-fs/controller.js +++ b/glances/outputs/static/js/components/plugin-fs/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesPluginFsController($scope, $filter, GlancesStats, ARGUMENTS) { var vm = this; diff --git a/glances/outputs/static/js/components/plugin-gpu/component.js b/glances/outputs/static/js/components/plugin-gpu/component.js index f2973637..fa3f7c6b 100644 --- a/glances/outputs/static/js/components/plugin-gpu/component.js +++ b/glances/outputs/static/js/components/plugin-gpu/component.js @@ -1,10 +1,11 @@ -'use strict'; -import GlancesPluginGpuController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glancesPluginGpu', { +import GlancesPluginGpuController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glancesPluginGpu", { controller: GlancesPluginGpuController, - controllerAs: 'vm', + controllerAs: "vm", templateUrl: template, }); diff --git a/glances/outputs/static/js/components/plugin-gpu/controller.js b/glances/outputs/static/js/components/plugin-gpu/controller.js index 6572bd5d..ec6284dd 100644 --- a/glances/outputs/static/js/components/plugin-gpu/controller.js +++ b/glances/outputs/static/js/components/plugin-gpu/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesPluginGpuController($scope, GlancesStats, ARGUMENTS) { var vm = this; diff --git a/glances/outputs/static/js/components/plugin-ip/component.js b/glances/outputs/static/js/components/plugin-ip/component.js index 49a2eab8..8f63d90d 100644 --- a/glances/outputs/static/js/components/plugin-ip/component.js +++ b/glances/outputs/static/js/components/plugin-ip/component.js @@ -1,10 +1,11 @@ -'use strict'; -import GlancesPluginIpController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glancesPluginIp', { +import GlancesPluginIpController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glancesPluginIp", { controller: GlancesPluginIpController, - controllerAs: 'vm', + controllerAs: "vm", templateUrl: template, }); diff --git a/glances/outputs/static/js/components/plugin-ip/controller.js b/glances/outputs/static/js/components/plugin-ip/controller.js index 828aca50..427b7023 100644 --- a/glances/outputs/static/js/components/plugin-ip/controller.js +++ b/glances/outputs/static/js/components/plugin-ip/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesPluginIpController($scope, GlancesStats, ARGUMENTS) { var vm = this; diff --git a/glances/outputs/static/js/components/plugin-irq/component.js b/glances/outputs/static/js/components/plugin-irq/component.js index f0120440..45d9b8c9 100644 --- a/glances/outputs/static/js/components/plugin-irq/component.js +++ b/glances/outputs/static/js/components/plugin-irq/component.js @@ -1,10 +1,11 @@ -'use strict'; -import GlancesPluginIrqController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glancesPluginIrq', { +import GlancesPluginIrqController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glancesPluginIrq", { controller: GlancesPluginIrqController, - controllerAs: 'vm', + controllerAs: "vm", templateUrl: template, }); diff --git a/glances/outputs/static/js/components/plugin-irq/controller.js b/glances/outputs/static/js/components/plugin-irq/controller.js index cb93c027..bf664b83 100644 --- a/glances/outputs/static/js/components/plugin-irq/controller.js +++ b/glances/outputs/static/js/components/plugin-irq/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesPluginIrqController($scope, GlancesStats) { var vm = this; diff --git a/glances/outputs/static/js/components/plugin-load/component.js b/glances/outputs/static/js/components/plugin-load/component.js index 77e6c07b..4bee720f 100644 --- a/glances/outputs/static/js/components/plugin-load/component.js +++ b/glances/outputs/static/js/components/plugin-load/component.js @@ -1,10 +1,11 @@ -'use strict'; -import GlancesPluginLoadController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glancesPluginLoad', { +import GlancesPluginLoadController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glancesPluginLoad", { controller: GlancesPluginLoadController, - controllerAs: 'vm', + controllerAs: "vm", templateUrl: template, }); diff --git a/glances/outputs/static/js/components/plugin-load/controller.js b/glances/outputs/static/js/components/plugin-load/controller.js index 7a2595ca..31eb65a0 100644 --- a/glances/outputs/static/js/components/plugin-load/controller.js +++ b/glances/outputs/static/js/components/plugin-load/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesPluginLoadController($scope, GlancesStats) { var vm = this; diff --git a/glances/outputs/static/js/components/plugin-mem-more/component.js b/glances/outputs/static/js/components/plugin-mem-more/component.js index 9ea97b58..fca3aaae 100644 --- a/glances/outputs/static/js/components/plugin-mem-more/component.js +++ b/glances/outputs/static/js/components/plugin-mem-more/component.js @@ -1,10 +1,11 @@ -'use strict'; -import GlancesPluginMemMoreController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glancesPluginMemMore', { +import GlancesPluginMemMoreController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glancesPluginMemMore", { controller: GlancesPluginMemMoreController, - controllerAs: 'vm', + controllerAs: "vm", templateUrl: template, }); diff --git a/glances/outputs/static/js/components/plugin-mem-more/controller.js b/glances/outputs/static/js/components/plugin-mem-more/controller.js index 7f3516dc..d98b7a30 100644 --- a/glances/outputs/static/js/components/plugin-mem-more/controller.js +++ b/glances/outputs/static/js/components/plugin-mem-more/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesPluginMemMoreController($scope, GlancesStats) { var vm = this; diff --git a/glances/outputs/static/js/components/plugin-mem/component.js b/glances/outputs/static/js/components/plugin-mem/component.js index 914caca2..e7ea675a 100644 --- a/glances/outputs/static/js/components/plugin-mem/component.js +++ b/glances/outputs/static/js/components/plugin-mem/component.js @@ -1,10 +1,11 @@ -'use strict'; -import GlancesPluginMemController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glancesPluginMem', { +import GlancesPluginMemController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glancesPluginMem", { controller: GlancesPluginMemController, - controllerAs: 'vm', + controllerAs: "vm", templateUrl: template, }); diff --git a/glances/outputs/static/js/components/plugin-mem/controller.js b/glances/outputs/static/js/components/plugin-mem/controller.js index 415b8051..702fbcfa 100644 --- a/glances/outputs/static/js/components/plugin-mem/controller.js +++ b/glances/outputs/static/js/components/plugin-mem/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesPluginMemController($scope, GlancesStats) { var vm = this; diff --git a/glances/outputs/static/js/components/plugin-memswap/component.js b/glances/outputs/static/js/components/plugin-memswap/component.js index d28d71f4..00245a8a 100644 --- a/glances/outputs/static/js/components/plugin-memswap/component.js +++ b/glances/outputs/static/js/components/plugin-memswap/component.js @@ -1,10 +1,11 @@ -'use strict'; -import GlancesPluginMemswapController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glancesPluginMemswap', { +import GlancesPluginMemswapController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glancesPluginMemswap", { controller: GlancesPluginMemswapController, - controllerAs: 'vm', + controllerAs: "vm", templateUrl: template, }); diff --git a/glances/outputs/static/js/components/plugin-memswap/controller.js b/glances/outputs/static/js/components/plugin-memswap/controller.js index 908374b8..f8050b24 100644 --- a/glances/outputs/static/js/components/plugin-memswap/controller.js +++ b/glances/outputs/static/js/components/plugin-memswap/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesPluginMemswapController($scope, GlancesStats) { var vm = this; diff --git a/glances/outputs/static/js/components/plugin-network/component.js b/glances/outputs/static/js/components/plugin-network/component.js index d0d2fd8c..e7811203 100644 --- a/glances/outputs/static/js/components/plugin-network/component.js +++ b/glances/outputs/static/js/components/plugin-network/component.js @@ -1,10 +1,11 @@ -'use strict'; -import GlancesPluginNetworkController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glancesPluginNetwork', { +import GlancesPluginNetworkController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glancesPluginNetwork", { controller: GlancesPluginNetworkController, - controllerAs: 'vm', + controllerAs: "vm", templateUrl: template, }); diff --git a/glances/outputs/static/js/components/plugin-network/controller.js b/glances/outputs/static/js/components/plugin-network/controller.js index b6622400..4fe1671e 100644 --- a/glances/outputs/static/js/components/plugin-network/controller.js +++ b/glances/outputs/static/js/components/plugin-network/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesPluginNetworkController($scope, $filter, GlancesStats, ARGUMENTS) { var vm = this; diff --git a/glances/outputs/static/js/components/plugin-percpu/component.js b/glances/outputs/static/js/components/plugin-percpu/component.js index d0997d2f..45a7d5f2 100644 --- a/glances/outputs/static/js/components/plugin-percpu/component.js +++ b/glances/outputs/static/js/components/plugin-percpu/component.js @@ -1,10 +1,11 @@ -'use strict'; -import GlancesPluginPercpuController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glancesPluginPercpu', { +import GlancesPluginPercpuController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glancesPluginPercpu", { controller: GlancesPluginPercpuController, - controllerAs: 'vm', + controllerAs: "vm", templateUrl: template, }); diff --git a/glances/outputs/static/js/components/plugin-percpu/controller.js b/glances/outputs/static/js/components/plugin-percpu/controller.js index 2bec742c..8f21c41c 100644 --- a/glances/outputs/static/js/components/plugin-percpu/controller.js +++ b/glances/outputs/static/js/components/plugin-percpu/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesPluginPercpuController($scope, GlancesStats, GlancesPluginHelper) { var vm = this; diff --git a/glances/outputs/static/js/components/plugin-ports/component.js b/glances/outputs/static/js/components/plugin-ports/component.js index a60e6773..57d22684 100644 --- a/glances/outputs/static/js/components/plugin-ports/component.js +++ b/glances/outputs/static/js/components/plugin-ports/component.js @@ -1,10 +1,11 @@ -'use strict'; -import GlancesPluginPortsController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glancesPluginPorts', { +import GlancesPluginPortsController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glancesPluginPorts", { controller: GlancesPluginPortsController, - controllerAs: 'vm', + controllerAs: "vm", templateUrl: template, }); diff --git a/glances/outputs/static/js/components/plugin-ports/controller.js b/glances/outputs/static/js/components/plugin-ports/controller.js index ed4c8ac9..ec6725c5 100644 --- a/glances/outputs/static/js/components/plugin-ports/controller.js +++ b/glances/outputs/static/js/components/plugin-ports/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesPluginPortsController($scope, GlancesStats) { var vm = this; diff --git a/glances/outputs/static/js/components/plugin-process/component.js b/glances/outputs/static/js/components/plugin-process/component.js index 28621028..d7bf2aa2 100644 --- a/glances/outputs/static/js/components/plugin-process/component.js +++ b/glances/outputs/static/js/components/plugin-process/component.js @@ -1,10 +1,11 @@ -'use strict'; -import GlancesPluginProcessController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glancesPluginProcess', { +import GlancesPluginProcessController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glancesPluginProcess", { controller: GlancesPluginProcessController, - controllerAs: 'vm', + controllerAs: "vm", templateUrl: template, }); diff --git a/glances/outputs/static/js/components/plugin-process/controller.js b/glances/outputs/static/js/components/plugin-process/controller.js index 80db7343..bc6d8a52 100644 --- a/glances/outputs/static/js/components/plugin-process/controller.js +++ b/glances/outputs/static/js/components/plugin-process/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesPluginProcessController(ARGUMENTS, hotkeys) { var vm = this; diff --git a/glances/outputs/static/js/components/plugin-processcount/component.js b/glances/outputs/static/js/components/plugin-processcount/component.js index 08b33a8e..b2fde7e7 100644 --- a/glances/outputs/static/js/components/plugin-processcount/component.js +++ b/glances/outputs/static/js/components/plugin-processcount/component.js @@ -1,13 +1,14 @@ -'use strict'; -import GlancesPluginProcesscountController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glancesPluginProcesscount', { +import GlancesPluginProcesscountController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glancesPluginProcesscount", { controller: GlancesPluginProcesscountController, - controllerAs: 'vm', + controllerAs: "vm", bindings: { - sorter: '<' + sorter: "<" }, templateUrl: template, }); diff --git a/glances/outputs/static/js/components/plugin-processcount/controller.js b/glances/outputs/static/js/components/plugin-processcount/controller.js index 672eafc0..0313db2f 100644 --- a/glances/outputs/static/js/components/plugin-processcount/controller.js +++ b/glances/outputs/static/js/components/plugin-processcount/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesPluginProcesscountController($scope, GlancesStats) { var vm = this; diff --git a/glances/outputs/static/js/components/plugin-processlist/component.js b/glances/outputs/static/js/components/plugin-processlist/component.js index f049cf12..7b2855e2 100644 --- a/glances/outputs/static/js/components/plugin-processlist/component.js +++ b/glances/outputs/static/js/components/plugin-processlist/component.js @@ -1,13 +1,14 @@ -'use strict'; -import GlancesPluginProcesslistController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glancesPluginProcesslist', { +import GlancesPluginProcesslistController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glancesPluginProcesslist", { controller: GlancesPluginProcesslistController, - controllerAs: 'vm', + controllerAs: "vm", bindings: { - sorter: '<' + sorter: "<" }, templateUrl: template, }); diff --git a/glances/outputs/static/js/components/plugin-processlist/controller.js b/glances/outputs/static/js/components/plugin-processlist/controller.js index 314c66a7..9af07659 100644 --- a/glances/outputs/static/js/components/plugin-processlist/controller.js +++ b/glances/outputs/static/js/components/plugin-processlist/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesPluginProcesslistController($scope, GlancesStats, GlancesPluginHelper, $filter, CONFIG, ARGUMENTS) { var vm = this; diff --git a/glances/outputs/static/js/components/plugin-quicklook/component.js b/glances/outputs/static/js/components/plugin-quicklook/component.js index 686056b0..e4047785 100644 --- a/glances/outputs/static/js/components/plugin-quicklook/component.js +++ b/glances/outputs/static/js/components/plugin-quicklook/component.js @@ -1,10 +1,11 @@ -'use strict'; -import GlancesPluginQuicklookController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glancesPluginQuicklook', { +import GlancesPluginQuicklookController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glancesPluginQuicklook", { controller: GlancesPluginQuicklookController, - controllerAs: 'vm', + controllerAs: "vm", templateUrl: template, }); diff --git a/glances/outputs/static/js/components/plugin-quicklook/controller.js b/glances/outputs/static/js/components/plugin-quicklook/controller.js index e5a8c734..b397216e 100644 --- a/glances/outputs/static/js/components/plugin-quicklook/controller.js +++ b/glances/outputs/static/js/components/plugin-quicklook/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesPluginQuicklookController($scope, GlancesStats, ARGUMENTS) { var vm = this; diff --git a/glances/outputs/static/js/components/plugin-raid/component.js b/glances/outputs/static/js/components/plugin-raid/component.js index 569b108f..5dc0629c 100644 --- a/glances/outputs/static/js/components/plugin-raid/component.js +++ b/glances/outputs/static/js/components/plugin-raid/component.js @@ -1,10 +1,11 @@ -'use strict'; -import GlancesPluginRaidController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glancesPluginRaid', { +import GlancesPluginRaidController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glancesPluginRaid", { controller: GlancesPluginRaidController, - controllerAs: 'vm', + controllerAs: "vm", templateUrl: template, }); diff --git a/glances/outputs/static/js/components/plugin-raid/controller.js b/glances/outputs/static/js/components/plugin-raid/controller.js index 51b29d40..d7dbaee0 100644 --- a/glances/outputs/static/js/components/plugin-raid/controller.js +++ b/glances/outputs/static/js/components/plugin-raid/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesPluginRaidController($scope, GlancesStats) { var vm = this; diff --git a/glances/outputs/static/js/components/plugin-sensors/component.js b/glances/outputs/static/js/components/plugin-sensors/component.js index 33b624e6..97ca0774 100644 --- a/glances/outputs/static/js/components/plugin-sensors/component.js +++ b/glances/outputs/static/js/components/plugin-sensors/component.js @@ -1,10 +1,11 @@ -'use strict'; -import GlancesPluginSensorsController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glancesPluginSensors', { +import GlancesPluginSensorsController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glancesPluginSensors", { controller: GlancesPluginSensorsController, - controllerAs: 'vm', + controllerAs: "vm", templateUrl: template, }); diff --git a/glances/outputs/static/js/components/plugin-sensors/controller.js b/glances/outputs/static/js/components/plugin-sensors/controller.js index a8e6ba46..cfa29964 100644 --- a/glances/outputs/static/js/components/plugin-sensors/controller.js +++ b/glances/outputs/static/js/components/plugin-sensors/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesPluginSensorsController($scope, GlancesStats, GlancesPluginHelper, ARGUMENTS) { var vm = this; diff --git a/glances/outputs/static/js/components/plugin-system/component.js b/glances/outputs/static/js/components/plugin-system/component.js index fa5ec202..46dcf9e8 100644 --- a/glances/outputs/static/js/components/plugin-system/component.js +++ b/glances/outputs/static/js/components/plugin-system/component.js @@ -1,10 +1,11 @@ -'use strict'; -import GlancesPluginSystemController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glancesPluginSystem', { +import GlancesPluginSystemController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glancesPluginSystem", { controller: GlancesPluginSystemController, - controllerAs: 'vm', + controllerAs: "vm", templateUrl: template, }); diff --git a/glances/outputs/static/js/components/plugin-system/controller.js b/glances/outputs/static/js/components/plugin-system/controller.js index 5f29ef3b..72bd6d5d 100644 --- a/glances/outputs/static/js/components/plugin-system/controller.js +++ b/glances/outputs/static/js/components/plugin-system/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesPluginSystemController($scope, GlancesStats) { var vm = this; diff --git a/glances/outputs/static/js/components/plugin-uptime/component.js b/glances/outputs/static/js/components/plugin-uptime/component.js index a0b08040..e9122cce 100644 --- a/glances/outputs/static/js/components/plugin-uptime/component.js +++ b/glances/outputs/static/js/components/plugin-uptime/component.js @@ -1,10 +1,11 @@ -'use strict'; -import GlancesPluginUptimeController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glancesPluginUptime', { +import GlancesPluginUptimeController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glancesPluginUptime", { controller: GlancesPluginUptimeController, - controllerAs: 'vm', + controllerAs: "vm", templateUrl: template, }); diff --git a/glances/outputs/static/js/components/plugin-uptime/controller.js b/glances/outputs/static/js/components/plugin-uptime/controller.js index cb6b8d4c..3c16278e 100644 --- a/glances/outputs/static/js/components/plugin-uptime/controller.js +++ b/glances/outputs/static/js/components/plugin-uptime/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesPluginUptimeController($scope, GlancesStats) { var vm = this; diff --git a/glances/outputs/static/js/components/plugin-wifi/component.js b/glances/outputs/static/js/components/plugin-wifi/component.js index d3edb4a7..9eeafd06 100644 --- a/glances/outputs/static/js/components/plugin-wifi/component.js +++ b/glances/outputs/static/js/components/plugin-wifi/component.js @@ -1,10 +1,11 @@ -'use strict'; -import GlancesPluginWifiController from './controller'; -import template from './view.html'; +import angular from "angular"; -export default angular.module('glancesApp').component('glancesPluginWifi', { +import GlancesPluginWifiController from "./controller"; +import template from "./view.html"; + +export default angular.module("glancesApp").component("glancesPluginWifi", { controller: GlancesPluginWifiController, - controllerAs: 'vm', + controllerAs: "vm", templateUrl: template, }); diff --git a/glances/outputs/static/js/components/plugin-wifi/controller.js b/glances/outputs/static/js/components/plugin-wifi/controller.js index d45c2ab3..36ae3612 100644 --- a/glances/outputs/static/js/components/plugin-wifi/controller.js +++ b/glances/outputs/static/js/components/plugin-wifi/controller.js @@ -1,4 +1,3 @@ -'use strict'; export default function GlancesPluginWifiController($scope, $filter, GlancesStats) { var vm = this; diff --git a/glances/outputs/static/js/directives.js b/glances/outputs/static/js/directives.js index 151a3581..68a0ec2d 100644 --- a/glances/outputs/static/js/directives.js +++ b/glances/outputs/static/js/directives.js @@ -1,7 +1,7 @@ -// import angular from 'angular'; +import angular from "angular"; -export default angular.module('glancesApp').directive("sortableTh", function () { +export default angular.module("glancesApp").directive("sortableTh", function () { return { restrict: 'A', scope: { diff --git a/glances/outputs/static/js/filters.js b/glances/outputs/static/js/filters.js index 507caf32..1a262360 100644 --- a/glances/outputs/static/js/filters.js +++ b/glances/outputs/static/js/filters.js @@ -1,15 +1,6 @@ -import _ from 'lodash'; -// import angular from 'angular'; - -export default angular.module('glancesApp') - .filter('min_size', min_size_filter) - .filter('exclamation', exclamation_filter) - .filter('bytes', bytes_filter) - .filter('bits', bits_filter) - .filter('leftPad', leftPad_filter) - .filter('timemillis', timemillis_filter) - .filter('timedelta', timedelta_filter); +import angular from "angular"; +import _ from "lodash"; function min_size_filter() { return function (input, max) { @@ -122,3 +113,12 @@ function timedelta_filter($filter) { }; } } + +export default angular.module("glancesApp") + .filter("min_size", min_size_filter) + .filter("exclamation", exclamation_filter) + .filter("bytes", bytes_filter) + .filter("bits", bits_filter) + .filter("leftPad", leftPad_filter) + .filter("timemillis", timemillis_filter) + .filter("timedelta", timedelta_filter); diff --git a/glances/outputs/static/js/module.js b/glances/outputs/static/js/module.js index 76c99206..280234ba 100644 --- a/glances/outputs/static/js/module.js +++ b/glances/outputs/static/js/module.js @@ -1,11 +1,11 @@ -import angular from 'angular'; -import 'angular-hotkeys'; +import angular from "angular"; +import "angular-hotkeys"; -export default angular.module('glancesApp', ['glances.config', 'cfp.hotkeys']) +export default angular.module("glancesApp", ["glances.config", "cfp.hotkeys"]) -.value('CONFIG', {}) -.value('ARGUMENTS', {}) +.value("CONFIG", {}) +.value("ARGUMENTS", {}) .config(function (hotkeysProvider) { hotkeysProvider.useNgRoute = false; @@ -15,8 +15,8 @@ export default angular.module('glancesApp', ['glances.config', 'cfp.hotkeys']) .run(function ($rootScope, GlancesStats) { $rootScope.title = "Glances"; - $rootScope.$on('data_refreshed', function (event, data) { - $rootScope.title = data.stats.system.hostname + ' - Glances'; + $rootScope.$on("data_refreshed", function (event, data) { + $rootScope.title = `${data.stats.system.hostname} - Glances`; }); GlancesStats.init(); diff --git a/glances/outputs/static/js/services/favicon.js b/glances/outputs/static/js/services/favicon.js index 39d927dc..c741717c 100644 --- a/glances/outputs/static/js/services/favicon.js +++ b/glances/outputs/static/js/services/favicon.js @@ -1,4 +1,5 @@ +import angular from "angular"; import Favico from 'favico.js'; export default angular.module('glancesApp').service('favicoService', favicoService); diff --git a/glances/outputs/static/js/services/index.js b/glances/outputs/static/js/services/index.js index 225ee6e0..c980c2ca 100644 --- a/glances/outputs/static/js/services/index.js +++ b/glances/outputs/static/js/services/index.js @@ -1,4 +1,4 @@ -import './stats'; -import './plugin_helper'; -import './favicon'; +import "./stats"; +import "./plugin_helper"; +import "./favicon"; diff --git a/glances/outputs/static/js/services/plugin_helper.js b/glances/outputs/static/js/services/plugin_helper.js index 2a6c837a..ef0e9c37 100644 --- a/glances/outputs/static/js/services/plugin_helper.js +++ b/glances/outputs/static/js/services/plugin_helper.js @@ -1,5 +1,5 @@ -export default angular.module('glancesApp').service('GlancesPluginHelper', GlancesPluginHelper); +import angular from "angular"; function GlancesPluginHelper () { @@ -42,4 +42,6 @@ function GlancesPluginHelper () { }; return plugin; -} \ No newline at end of file +} + +export default angular.module('glancesApp').service('GlancesPluginHelper', GlancesPluginHelper); diff --git a/glances/outputs/static/js/services/stats.js b/glances/outputs/static/js/services/stats.js index ab8168eb..924e990d 100644 --- a/glances/outputs/static/js/services/stats.js +++ b/glances/outputs/static/js/services/stats.js @@ -1,7 +1,5 @@ -// import angular from 'angular'; - -export default angular.module('glancesApp').service('GlancesStats', GlancesStats); +import angular from 'angular'; function GlancesStats ($http, $q, $rootScope, $timeout, GlancesPluginHelper, REFRESH_TIME, CONFIG, ARGUMENTS) { @@ -70,4 +68,6 @@ function GlancesStats ($http, $q, $rootScope, $timeout, GlancesPluginHelper, REF return response.data; }); }; -} \ No newline at end of file +} + +export default angular.module('glancesApp').service('GlancesStats', GlancesStats);