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';
|
2022-09-26 19:43:24 +00:00
|
|
|
import { IngressClassDatatable } from '@/react/kubernetes/cluster/ingressClass/IngressClassDatatable';
|
2022-09-21 07:10:58 +00:00
|
|
|
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';
|
2023-02-07 03:33:57 +00:00
|
|
|
import { KubeApplicationAccessPolicySelector } from '@/react/kubernetes/applications/CreateView/KubeApplicationAccessPolicySelector';
|
|
|
|
import { KubeApplicationDeploymentTypeSelector } from '@/react/kubernetes/applications/CreateView/KubeApplicationDeploymentTypeSelector';
|
2023-05-03 03:55:25 +00:00
|
|
|
import { withReactQuery } from '@/react-tools/withReactQuery';
|
|
|
|
import { withUIRouter } from '@/react-tools/withUIRouter';
|
2023-05-29 03:06:14 +00:00
|
|
|
import {
|
|
|
|
ApplicationSummaryWidget,
|
|
|
|
ApplicationDetailsWidget,
|
|
|
|
} from '@/react/kubernetes/applications/DetailsView';
|
2023-05-03 03:55:25 +00:00
|
|
|
import { withUserProvider } from '@/react/test-utils/withUserProvider';
|
2022-09-21 07:10:58 +00:00
|
|
|
|
|
|
|
export const componentsModule = angular
|
|
|
|
.module('portainer.kubernetes.react.components', [])
|
2022-09-26 19:43:24 +00:00
|
|
|
.component(
|
|
|
|
'ingressClassDatatable',
|
|
|
|
r2a(IngressClassDatatable, [
|
2022-10-24 20:41:30 +00:00
|
|
|
'onChangeControllers',
|
2022-09-26 19:43:24 +00:00
|
|
|
'description',
|
|
|
|
'ingressControllers',
|
2022-10-24 20:41:30 +00:00
|
|
|
'allowNoneIngressClass',
|
2022-10-03 23:13:56 +00:00
|
|
|
'isLoading',
|
2022-09-26 19:43:24 +00:00
|
|
|
'noIngressControllerLabel',
|
|
|
|
'view',
|
|
|
|
])
|
|
|
|
)
|
2022-09-21 07:10:58 +00:00
|
|
|
.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',
|
|
|
|
])
|
2023-02-07 03:33:57 +00:00
|
|
|
)
|
|
|
|
.component(
|
|
|
|
'kubeApplicationAccessPolicySelector',
|
|
|
|
r2a(KubeApplicationAccessPolicySelector, [
|
|
|
|
'value',
|
|
|
|
'onChange',
|
|
|
|
'isEdit',
|
|
|
|
'persistedFoldersUseExistingVolumes',
|
|
|
|
])
|
|
|
|
)
|
|
|
|
.component(
|
|
|
|
'kubeApplicationDeploymentTypeSelector',
|
|
|
|
r2a(KubeApplicationDeploymentTypeSelector, [
|
|
|
|
'value',
|
|
|
|
'onChange',
|
|
|
|
'supportGlobalDeployment',
|
|
|
|
])
|
2023-05-03 03:55:25 +00:00
|
|
|
)
|
|
|
|
.component(
|
|
|
|
'applicationSummaryWidget',
|
|
|
|
r2a(
|
|
|
|
withUIRouter(withReactQuery(withUserProvider(ApplicationSummaryWidget))),
|
|
|
|
[]
|
|
|
|
)
|
2023-05-29 03:06:14 +00:00
|
|
|
)
|
|
|
|
.component(
|
|
|
|
'applicationDetailsWidget',
|
|
|
|
r2a(
|
|
|
|
withUIRouter(withReactQuery(withUserProvider(ApplicationDetailsWidget))),
|
|
|
|
[]
|
|
|
|
)
|
2022-09-21 07:10:58 +00:00
|
|
|
).name;
|