2022-05-17 04:22:44 +00:00
|
|
|
import angular from 'angular';
|
2022-07-17 23:02:14 +00:00
|
|
|
import { Gpu } from 'Docker/react/views/gpu';
|
2022-05-17 04:22:44 +00:00
|
|
|
|
2022-08-11 04:33:29 +00:00
|
|
|
import { ItemView as NetworksItemView } from '@/react/docker/networks/ItemView';
|
2022-06-26 14:16:50 +00:00
|
|
|
import { r2a } from '@/react-tools/react2angular';
|
|
|
|
|
2022-08-11 04:33:29 +00:00
|
|
|
import { containersModule } from './containers';
|
|
|
|
|
2022-06-26 14:16:50 +00:00
|
|
|
export const viewsModule = angular
|
2022-08-11 04:33:29 +00:00
|
|
|
.module('portainer.docker.react.views', [containersModule])
|
2022-07-17 23:02:14 +00:00
|
|
|
.component(
|
|
|
|
'gpu',
|
|
|
|
r2a(Gpu, ['values', 'onChange', 'gpus', 'usedGpus', 'usedAllGpus'])
|
|
|
|
)
|
2022-08-11 04:33:29 +00:00
|
|
|
.component('networkDetailsView', r2a(NetworksItemView, [])).name;
|