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