2022-05-17 04:22:44 +00:00
|
|
|
import angular from 'angular';
|
|
|
|
|
2022-06-26 14:16:50 +00:00
|
|
|
import { r2a } from '@/react-tools/react2angular';
|
2022-08-11 04:33:29 +00:00
|
|
|
import { StackContainersDatatable } from '@/react/docker/stacks/ItemView/StackContainersDatatable';
|
2022-06-26 14:16:50 +00:00
|
|
|
import { ContainerQuickActions } from '@/react/docker/containers/components/ContainerQuickActions';
|
2022-07-20 19:27:15 +00:00
|
|
|
import { TemplateListDropdownAngular } from '@/react/docker/app-templates/TemplateListDropdown';
|
|
|
|
import { TemplateListSortAngular } from '@/react/docker/app-templates/TemplateListSort';
|
2022-09-20 18:14:24 +00:00
|
|
|
import { Gpu } from '@/react/docker/containers/CreateView/Gpu';
|
|
|
|
import { withCurrentUser } from '@/react-tools/withCurrentUser';
|
|
|
|
import { withReactQuery } from '@/react-tools/withReactQuery';
|
|
|
|
import { withUIRouter } from '@/react-tools/withUIRouter';
|
2022-06-26 14:16:50 +00:00
|
|
|
|
|
|
|
export const componentsModule = angular
|
|
|
|
.module('portainer.docker.react.components', [])
|
|
|
|
.component(
|
|
|
|
'containerQuickActions',
|
2022-09-20 18:14:24 +00:00
|
|
|
r2a(withUIRouter(withCurrentUser(ContainerQuickActions)), [
|
2022-06-26 14:16:50 +00:00
|
|
|
'containerId',
|
|
|
|
'nodeName',
|
|
|
|
'state',
|
|
|
|
'status',
|
|
|
|
'taskId',
|
|
|
|
])
|
2022-07-20 19:27:15 +00:00
|
|
|
)
|
|
|
|
.component('templateListDropdown', TemplateListDropdownAngular)
|
2022-08-11 04:33:29 +00:00
|
|
|
.component('templateListSort', TemplateListSortAngular)
|
|
|
|
.component(
|
|
|
|
'stackContainersDatatable',
|
2022-09-20 18:14:24 +00:00
|
|
|
r2a(
|
|
|
|
withUIRouter(withReactQuery(withCurrentUser(StackContainersDatatable))),
|
|
|
|
['environment', 'stackName']
|
|
|
|
)
|
|
|
|
)
|
|
|
|
.component(
|
|
|
|
'gpu',
|
|
|
|
r2a(Gpu, ['values', 'onChange', 'gpus', 'usedGpus', 'usedAllGpus'])
|
2022-08-11 04:33:29 +00:00
|
|
|
).name;
|