mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-22 16:51:35 +03:00
update components for webpack
This commit is contained in:
parent
2360c0223b
commit
e298c91ac6
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glances', {
|
import GlancesController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glances', {
|
||||||
controller: GlancesController,
|
controller: GlancesController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
templateUrl: 'components/glances/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesController($scope, GlancesStats, hotkeys, ARGUMENTS) {
|
export default function GlancesController($scope, GlancesStats, hotkeys, ARGUMENTS) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
vm.dataLoaded = false;
|
vm.dataLoaded = false;
|
||||||
vm.arguments = ARGUMENTS;
|
vm.arguments = ARGUMENTS;
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesHelp', {
|
import GlancesHelpController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesHelp', {
|
||||||
controller: GlancesHelpController,
|
controller: GlancesHelpController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
templateUrl: 'components/help/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesHelpController($http) {
|
export default function GlancesHelpController($http) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
|
|
||||||
$http.get('api/2/help').then(function (response) {
|
$http.get('api/2/help').then(function (response) {
|
||||||
|
32
glances/outputs/static/js/components/index.js
Normal file
32
glances/outputs/static/js/components/index.js
Normal file
@ -0,0 +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';
|
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesPluginAlert', {
|
import GlancesPluginAlertController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesPluginAlert', {
|
||||||
controller: GlancesPluginAlertController,
|
controller: GlancesPluginAlertController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
templateUrl: 'components/plugin-alert/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesPluginAlertController($scope, favicoService) {
|
export default function GlancesPluginAlertController($scope, favicoService) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
var _alerts = [];
|
var _alerts = [];
|
||||||
|
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesPluginAmps', {
|
import GlancesPluginAmpsController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesPluginAmps', {
|
||||||
controller: GlancesPluginAmpsController,
|
controller: GlancesPluginAmpsController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
templateUrl: 'components/plugin-amps/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesPluginAmpsController($scope, GlancesStats, favicoService) {
|
export default function GlancesPluginAmpsController($scope, GlancesStats, favicoService) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
vm.processes = [];
|
vm.processes = [];
|
||||||
|
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesPluginCloud', {
|
import GlancesPluginCloudController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesPluginCloud', {
|
||||||
controller: GlancesPluginCloudController,
|
controller: GlancesPluginCloudController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
templateUrl: 'components/plugin-cloud/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesPluginCloudController($scope, GlancesStats) {
|
export default function GlancesPluginCloudController($scope, GlancesStats) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
|
|
||||||
vm.provider = null;
|
vm.provider = null;
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesPluginCpu', {
|
import GlancesPluginCpuController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesPluginCpu', {
|
||||||
controller: GlancesPluginCpuController,
|
controller: GlancesPluginCpuController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
templateUrl: 'components/plugin-cpu/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesPluginCpuController($scope, GlancesStats) {
|
export default function GlancesPluginCpuController($scope, GlancesStats) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
var _view = {};
|
var _view = {};
|
||||||
|
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesPluginDiskio', {
|
import GlancesPluginDiskioController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesPluginDiskio', {
|
||||||
controller: GlancesPluginDiskioController,
|
controller: GlancesPluginDiskioController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
templateUrl: 'components/plugin-diskio/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesPluginDiskioController($scope, $filter, GlancesStats, ARGUMENTS) {
|
export default function GlancesPluginDiskioController($scope, $filter, GlancesStats, ARGUMENTS) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
vm.arguments = ARGUMENTS;
|
vm.arguments = ARGUMENTS;
|
||||||
vm.disks = [];
|
vm.disks = [];
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesPluginDocker', {
|
import GlancesPluginDockerController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesPluginDocker', {
|
||||||
controller: GlancesPluginDockerController,
|
controller: GlancesPluginDockerController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
templateUrl: 'components/plugin-docker/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesPluginDockerController($scope, GlancesStats) {
|
export default function GlancesPluginDockerController($scope, GlancesStats) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
vm.containers = [];
|
vm.containers = [];
|
||||||
vm.version = null;
|
vm.version = null;
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesPluginFolders', {
|
import GlancesPluginFsController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesPluginFolders', {
|
||||||
controller: GlancesPluginFsController,
|
controller: GlancesPluginFsController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
templateUrl: 'components/plugin-folders/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesPluginFoldersController($scope, GlancesStats) {
|
export default function GlancesPluginFoldersController($scope, GlancesStats) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
vm.folders = [];
|
vm.folders = [];
|
||||||
|
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesPluginFs', {
|
import GlancesPluginFsController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesPluginFs', {
|
||||||
controller: GlancesPluginFsController,
|
controller: GlancesPluginFsController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
templateUrl: 'components/plugin-fs/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesPluginFsController($scope, $filter, GlancesStats, ARGUMENTS) {
|
export default function GlancesPluginFsController($scope, $filter, GlancesStats, ARGUMENTS) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
var _view = {};
|
var _view = {};
|
||||||
vm.arguments = ARGUMENTS;
|
vm.arguments = ARGUMENTS;
|
||||||
@ -27,7 +27,7 @@ function GlancesPluginFsController($scope, $filter, GlancesStats, ARGUMENTS) {
|
|||||||
shortMountPoint = '_' + fsData['mnt_point'].slice(-8);
|
shortMountPoint = '_' + fsData['mnt_point'].slice(-8);
|
||||||
}
|
}
|
||||||
|
|
||||||
vm.fileSystems.push(fs = {
|
vm.fileSystems.push({
|
||||||
'name': fsData['device_name'],
|
'name': fsData['device_name'],
|
||||||
'mountPoint': fsData['mnt_point'],
|
'mountPoint': fsData['mnt_point'],
|
||||||
'shortMountPoint': shortMountPoint,
|
'shortMountPoint': shortMountPoint,
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesPluginGpu', {
|
import GlancesPluginGpuController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesPluginGpu', {
|
||||||
controller: GlancesPluginGpuController,
|
controller: GlancesPluginGpuController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
templateUrl: 'components/plugin-gpu/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesPluginGpuController($scope, GlancesStats, ARGUMENTS) {
|
export default function GlancesPluginGpuController($scope, GlancesStats, ARGUMENTS) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
vm.arguments = ARGUMENTS;
|
vm.arguments = ARGUMENTS;
|
||||||
var _view = {};
|
var _view = {};
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesPluginIp', {
|
import GlancesPluginIpController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesPluginIp', {
|
||||||
controller: GlancesPluginIpController,
|
controller: GlancesPluginIpController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
templateUrl: 'components/plugin-ip/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesPluginIpController($scope, GlancesStats, ARGUMENTS) {
|
export default function GlancesPluginIpController($scope, GlancesStats, ARGUMENTS) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
vm.arguments = ARGUMENTS;
|
vm.arguments = ARGUMENTS;
|
||||||
|
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesPluginIrq', {
|
import GlancesPluginIrqController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesPluginIrq', {
|
||||||
controller: GlancesPluginIrqController,
|
controller: GlancesPluginIrqController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
templateUrl: 'components/plugin-irq/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesPluginIrqController($scope, GlancesStats) {
|
export default function GlancesPluginIrqController($scope, GlancesStats) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
vm.irqs = [];
|
vm.irqs = [];
|
||||||
|
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesPluginLoad', {
|
import GlancesPluginLoadController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesPluginLoad', {
|
||||||
controller: GlancesPluginLoadController,
|
controller: GlancesPluginLoadController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
templateUrl: 'components/plugin-load/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesPluginLoadController($scope, GlancesStats) {
|
export default function GlancesPluginLoadController($scope, GlancesStats) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
var _view = {};
|
var _view = {};
|
||||||
|
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesPluginMemMore', {
|
import GlancesPluginMemMoreController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesPluginMemMore', {
|
||||||
controller: GlancesPluginMemMoreController,
|
controller: GlancesPluginMemMoreController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
templateUrl: 'components/plugin-mem-more/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesPluginMemMoreController($scope, GlancesStats) {
|
export default function GlancesPluginMemMoreController($scope, GlancesStats) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
|
|
||||||
vm.active = null;
|
vm.active = null;
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesPluginMem', {
|
import GlancesPluginMemController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesPluginMem', {
|
||||||
controller: GlancesPluginMemController,
|
controller: GlancesPluginMemController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
templateUrl: 'components/plugin-mem/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesPluginMemController($scope, GlancesStats) {
|
export default function GlancesPluginMemController($scope, GlancesStats) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
var _view = {};
|
var _view = {};
|
||||||
|
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesPluginMemswap', {
|
import GlancesPluginMemswapController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesPluginMemswap', {
|
||||||
controller: GlancesPluginMemswapController,
|
controller: GlancesPluginMemswapController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
templateUrl: 'components/plugin-memswap/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesPluginMemswapController($scope, GlancesStats) {
|
export default function GlancesPluginMemswapController($scope, GlancesStats) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
var _view = {};
|
var _view = {};
|
||||||
|
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesPluginNetwork', {
|
import GlancesPluginNetworkController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesPluginNetwork', {
|
||||||
controller: GlancesPluginNetworkController,
|
controller: GlancesPluginNetworkController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
templateUrl: 'components/plugin-network/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesPluginNetworkController($scope, $filter, GlancesStats, ARGUMENTS) {
|
export default function GlancesPluginNetworkController($scope, $filter, GlancesStats, ARGUMENTS) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
vm.arguments = ARGUMENTS;
|
vm.arguments = ARGUMENTS;
|
||||||
vm.networks = [];
|
vm.networks = [];
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesPluginPercpu', {
|
import GlancesPluginPercpuController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesPluginPercpu', {
|
||||||
controller: GlancesPluginPercpuController,
|
controller: GlancesPluginPercpuController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
templateUrl: 'components/plugin-percpu/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesPluginPercpuController($scope, GlancesStats, GlancesPluginHelper) {
|
export default function GlancesPluginPercpuController($scope, GlancesStats, GlancesPluginHelper) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
vm.cpus = [];
|
vm.cpus = [];
|
||||||
|
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesPluginPorts', {
|
import GlancesPluginPortsController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesPluginPorts', {
|
||||||
controller: GlancesPluginPortsController,
|
controller: GlancesPluginPortsController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
templateUrl: 'components/plugin-ports/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesPluginPortsController($scope, GlancesStats) {
|
export default function GlancesPluginPortsController($scope, GlancesStats) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
vm.ports = [];
|
vm.ports = [];
|
||||||
|
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesPluginProcess', {
|
import GlancesPluginProcessController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesPluginProcess', {
|
||||||
controller: GlancesPluginProcessController,
|
controller: GlancesPluginProcessController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
templateUrl: 'components/plugin-process/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesPluginProcessController(ARGUMENTS, hotkeys) {
|
export default function GlancesPluginProcessController(ARGUMENTS, hotkeys) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
vm.arguments = ARGUMENTS;
|
vm.arguments = ARGUMENTS;
|
||||||
|
|
||||||
|
@ -1,10 +1,13 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesPluginProcesscount', {
|
import GlancesPluginProcesscountController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesPluginProcesscount', {
|
||||||
controller: GlancesPluginProcesscountController,
|
controller: GlancesPluginProcesscountController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
bindings: {
|
bindings: {
|
||||||
sorter: '<'
|
sorter: '<'
|
||||||
},
|
},
|
||||||
templateUrl: 'components/plugin-processcount/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesPluginProcesscountController($scope, GlancesStats) {
|
export default function GlancesPluginProcesscountController($scope, GlancesStats) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
|
|
||||||
vm.total = null;
|
vm.total = null;
|
||||||
|
@ -1,10 +1,13 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesPluginProcesslist', {
|
import GlancesPluginProcesslistController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesPluginProcesslist', {
|
||||||
controller: GlancesPluginProcesslistController,
|
controller: GlancesPluginProcesslistController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
bindings: {
|
bindings: {
|
||||||
sorter: '<'
|
sorter: '<'
|
||||||
},
|
},
|
||||||
templateUrl: 'components/plugin-processlist/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesPluginProcesslistController($scope, GlancesStats, GlancesPluginHelper, $filter, CONFIG, ARGUMENTS) {
|
export default function GlancesPluginProcesslistController($scope, GlancesStats, GlancesPluginHelper, $filter, CONFIG, ARGUMENTS) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
vm.arguments = ARGUMENTS;
|
vm.arguments = ARGUMENTS;
|
||||||
vm.processes = [];
|
vm.processes = [];
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesPluginQuicklook', {
|
import GlancesPluginQuicklookController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesPluginQuicklook', {
|
||||||
controller: GlancesPluginQuicklookController,
|
controller: GlancesPluginQuicklookController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
templateUrl: 'components/plugin-quicklook/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesPluginQuicklookController($scope, GlancesStats, ARGUMENTS) {
|
export default function GlancesPluginQuicklookController($scope, GlancesStats, ARGUMENTS) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
vm.arguments = ARGUMENTS;
|
vm.arguments = ARGUMENTS;
|
||||||
var _view = {};
|
var _view = {};
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesPluginRaid', {
|
import GlancesPluginRaidController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesPluginRaid', {
|
||||||
controller: GlancesPluginRaidController,
|
controller: GlancesPluginRaidController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
templateUrl: 'components/plugin-raid/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesPluginRaidController($scope, GlancesStats) {
|
export default function GlancesPluginRaidController($scope, GlancesStats) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
vm.disks = [];
|
vm.disks = [];
|
||||||
|
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesPluginSensors', {
|
import GlancesPluginSensorsController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesPluginSensors', {
|
||||||
controller: GlancesPluginSensorsController,
|
controller: GlancesPluginSensorsController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
templateUrl: 'components/plugin-sensors/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesPluginSensorsController($scope, GlancesStats, GlancesPluginHelper, ARGUMENTS) {
|
export default function GlancesPluginSensorsController($scope, GlancesStats, GlancesPluginHelper, ARGUMENTS) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
vm.sensors = [];
|
vm.sensors = [];
|
||||||
var convertToFahrenheit = ARGUMENTS.fahrenheit;
|
var convertToFahrenheit = ARGUMENTS.fahrenheit;
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesPluginSystem', {
|
import GlancesPluginSystemController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesPluginSystem', {
|
||||||
controller: GlancesPluginSystemController,
|
controller: GlancesPluginSystemController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
templateUrl: 'components/plugin-system/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesPluginSystemController($scope, GlancesStats) {
|
export default function GlancesPluginSystemController($scope, GlancesStats) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
|
|
||||||
vm.hostname = null;
|
vm.hostname = null;
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesPluginUptime', {
|
import GlancesPluginUptimeController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesPluginUptime', {
|
||||||
controller: GlancesPluginUptimeController,
|
controller: GlancesPluginUptimeController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
templateUrl: 'components/plugin-uptime/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesPluginUptimeController($scope, GlancesStats) {
|
export default function GlancesPluginUptimeController($scope, GlancesStats) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
vm.value = null;
|
vm.value = null;
|
||||||
|
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
glancesApp.component('glancesPluginWifi', {
|
import GlancesPluginWifiController from './controller';
|
||||||
|
import template from './view.html';
|
||||||
|
|
||||||
|
export default angular.module('glancesApp').component('glancesPluginWifi', {
|
||||||
controller: GlancesPluginWifiController,
|
controller: GlancesPluginWifiController,
|
||||||
controllerAs: 'vm',
|
controllerAs: 'vm',
|
||||||
templateUrl: 'components/plugin-wifi/view.html'
|
templateUrl: template,
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function GlancesPluginWifiController($scope, $filter, GlancesStats) {
|
export default function GlancesPluginWifiController($scope, $filter, GlancesStats) {
|
||||||
var vm = this;
|
var vm = this;
|
||||||
var _view = {};
|
var _view = {};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user