2022-05-17 04:22:44 +00:00
|
|
|
import angular from 'angular';
|
|
|
|
|
2022-09-21 07:10:58 +00:00
|
|
|
import { r2a } from '@/react-tools/react2angular';
|
|
|
|
import { NamespacesSelector } from '@/react/kubernetes/cluster/RegistryAccessView/NamespacesSelector';
|
|
|
|
import { StorageAccessModeSelector } from '@/react/kubernetes/cluster/ConfigureView/StorageAccessModeSelector';
|
|
|
|
import { NamespaceAccessUsersSelector } from '@/react/kubernetes/namespaces/AccessView/NamespaceAccessUsersSelector';
|
|
|
|
import { CreateNamespaceRegistriesSelector } from '@/react/kubernetes/namespaces/CreateView/CreateNamespaceRegistriesSelector';
|
|
|
|
|
|
|
|
export const componentsModule = angular
|
|
|
|
.module('portainer.kubernetes.react.components', [])
|
|
|
|
.component(
|
|
|
|
'namespacesSelector',
|
|
|
|
r2a(NamespacesSelector, [
|
|
|
|
'dataCy',
|
|
|
|
'inputId',
|
|
|
|
'name',
|
|
|
|
'namespaces',
|
|
|
|
'onChange',
|
|
|
|
'placeholder',
|
|
|
|
'value',
|
|
|
|
])
|
|
|
|
)
|
|
|
|
.component(
|
|
|
|
'storageAccessModeSelector',
|
|
|
|
r2a(StorageAccessModeSelector, [
|
|
|
|
'inputId',
|
|
|
|
'onChange',
|
|
|
|
'options',
|
|
|
|
'value',
|
|
|
|
'storageClassName',
|
|
|
|
])
|
|
|
|
)
|
|
|
|
.component(
|
|
|
|
'namespaceAccessUsersSelector',
|
|
|
|
r2a(NamespaceAccessUsersSelector, [
|
|
|
|
'inputId',
|
|
|
|
'onChange',
|
|
|
|
'options',
|
|
|
|
'value',
|
|
|
|
'dataCy',
|
|
|
|
'placeholder',
|
|
|
|
'name',
|
|
|
|
])
|
|
|
|
)
|
|
|
|
.component(
|
|
|
|
'createNamespaceRegistriesSelector',
|
|
|
|
r2a(CreateNamespaceRegistriesSelector, [
|
|
|
|
'inputId',
|
|
|
|
'onChange',
|
|
|
|
'options',
|
|
|
|
'value',
|
|
|
|
])
|
|
|
|
).name;
|