2022-05-17 07:22:44 +03:00
|
|
|
import angular from 'angular';
|
|
|
|
|
2022-09-21 16:49:42 +12:00
|
|
|
import { r2a } from '@/react-tools/react2angular';
|
2022-09-22 16:12:19 +12:00
|
|
|
import { withCurrentUser } from '@/react-tools/withCurrentUser';
|
|
|
|
import { withReactQuery } from '@/react-tools/withReactQuery';
|
|
|
|
import { withUIRouter } from '@/react-tools/withUIRouter';
|
2022-11-07 08:03:11 +02:00
|
|
|
import { IngressesDatatableView } from '@/react/kubernetes/ingresses/IngressDatatable';
|
|
|
|
import { CreateIngressView } from '@/react/kubernetes/ingresses/CreateIngressView';
|
2023-06-12 09:46:48 +12:00
|
|
|
import { DashboardView } from '@/react/kubernetes/dashboard/DashboardView';
|
|
|
|
import { ServicesView } from '@/react/kubernetes/services/ServicesView';
|
2023-05-08 14:07:46 +12:00
|
|
|
import { ConsoleView } from '@/react/kubernetes/applications/ConsoleView';
|
2023-06-12 09:46:48 +12:00
|
|
|
import { ConfigmapsAndSecretsView } from '@/react/kubernetes/configs/ListView/ConfigmapsAndSecretsView';
|
2023-10-11 20:32:02 +01:00
|
|
|
import { CreateNamespaceView } from '@/react/kubernetes/namespaces/CreateView/CreateNamespaceView';
|
2024-10-25 12:28:05 +13:00
|
|
|
import { ApplicationsView } from '@/react/kubernetes/applications/ListView/ApplicationsView';
|
2023-08-27 23:01:35 +02:00
|
|
|
import { ApplicationDetailsView } from '@/react/kubernetes/applications/DetailsView/ApplicationDetailsView';
|
2023-09-05 18:06:36 +02:00
|
|
|
import { ConfigureView } from '@/react/kubernetes/cluster/ConfigureView';
|
2024-10-01 14:15:51 +13:00
|
|
|
import { NamespacesView } from '@/react/kubernetes/namespaces/ListView/NamespacesView';
|
|
|
|
import { ServiceAccountsView } from '@/react/kubernetes/more-resources/ServiceAccountsView/ServiceAccountsView';
|
|
|
|
import { ClusterRolesView } from '@/react/kubernetes/more-resources/ClusterRolesView';
|
|
|
|
import { RolesView } from '@/react/kubernetes/more-resources/RolesView';
|
|
|
|
import { VolumesView } from '@/react/kubernetes/volumes/ListView/VolumesView';
|
2024-12-11 10:15:46 +13:00
|
|
|
import { NamespaceView } from '@/react/kubernetes/namespaces/ItemView/NamespaceView';
|
2024-11-11 08:17:20 +13:00
|
|
|
import { AccessView } from '@/react/kubernetes/namespaces/AccessView/AccessView';
|
2025-01-10 13:21:27 +13:00
|
|
|
import { JobsView } from '@/react/kubernetes/more-resources/JobsView/JobsView';
|
2025-02-26 14:13:50 +13:00
|
|
|
import { ClusterView } from '@/react/kubernetes/cluster/ClusterView';
|
2025-03-03 11:29:58 +13:00
|
|
|
import { HelmApplicationView } from '@/react/kubernetes/helm/HelmApplicationView';
|
2022-09-21 16:49:42 +12:00
|
|
|
|
|
|
|
export const viewsModule = angular
|
|
|
|
.module('portainer.kubernetes.react.views', [])
|
2023-10-11 20:32:02 +01:00
|
|
|
.component(
|
|
|
|
'kubernetesCreateNamespaceView',
|
|
|
|
r2a(withUIRouter(withReactQuery(withCurrentUser(CreateNamespaceView))), [])
|
|
|
|
)
|
2024-12-11 10:15:46 +13:00
|
|
|
.component(
|
|
|
|
'namespaceView',
|
|
|
|
r2a(withUIRouter(withReactQuery(withCurrentUser(NamespaceView))), [])
|
|
|
|
)
|
2024-10-01 14:15:51 +13:00
|
|
|
.component(
|
|
|
|
'kubernetesNamespacesView',
|
|
|
|
r2a(withUIRouter(withReactQuery(withCurrentUser(NamespacesView))), [])
|
|
|
|
)
|
2024-11-11 08:17:20 +13:00
|
|
|
.component(
|
|
|
|
'kubernetesNamespaceAccessView',
|
|
|
|
r2a(withUIRouter(withReactQuery(withCurrentUser(AccessView))), [])
|
|
|
|
)
|
2023-03-03 08:45:19 +13:00
|
|
|
.component(
|
|
|
|
'kubernetesServicesView',
|
|
|
|
r2a(withUIRouter(withReactQuery(withCurrentUser(ServicesView))), [])
|
|
|
|
)
|
2024-10-01 14:15:51 +13:00
|
|
|
.component(
|
|
|
|
'kubernetesVolumesView',
|
|
|
|
r2a(withUIRouter(withReactQuery(withCurrentUser(VolumesView))), [])
|
|
|
|
)
|
2022-09-22 16:12:19 +12:00
|
|
|
.component(
|
|
|
|
'kubernetesIngressesView',
|
|
|
|
r2a(
|
|
|
|
withUIRouter(withReactQuery(withCurrentUser(IngressesDatatableView))),
|
|
|
|
[]
|
|
|
|
)
|
|
|
|
)
|
|
|
|
.component(
|
|
|
|
'kubernetesIngressesCreateView',
|
|
|
|
r2a(withUIRouter(withReactQuery(withCurrentUser(CreateIngressView))), [])
|
2023-03-08 11:22:08 +13:00
|
|
|
)
|
2023-06-12 09:46:48 +12:00
|
|
|
.component(
|
|
|
|
'kubernetesConfigMapsAndSecretsView',
|
|
|
|
r2a(
|
|
|
|
withUIRouter(withReactQuery(withCurrentUser(ConfigmapsAndSecretsView))),
|
|
|
|
[]
|
|
|
|
)
|
|
|
|
)
|
2024-10-25 12:28:05 +13:00
|
|
|
.component(
|
|
|
|
'kubernetesApplicationsView',
|
|
|
|
r2a(withUIRouter(withReactQuery(withCurrentUser(ApplicationsView))), [])
|
|
|
|
)
|
2023-08-27 23:01:35 +02:00
|
|
|
.component(
|
|
|
|
'applicationDetailsView',
|
|
|
|
r2a(
|
|
|
|
withUIRouter(withReactQuery(withCurrentUser(ApplicationDetailsView))),
|
|
|
|
[]
|
|
|
|
)
|
|
|
|
)
|
2025-03-03 11:29:58 +13:00
|
|
|
.component(
|
|
|
|
'kubernetesHelmApplicationView',
|
|
|
|
r2a(withUIRouter(withReactQuery(withCurrentUser(HelmApplicationView))), [])
|
|
|
|
)
|
2025-02-26 14:13:50 +13:00
|
|
|
.component(
|
|
|
|
'kubernetesClusterView',
|
|
|
|
r2a(withUIRouter(withReactQuery(withCurrentUser(ClusterView))), [])
|
|
|
|
)
|
2023-09-05 18:06:36 +02:00
|
|
|
.component(
|
|
|
|
'kubernetesConfigureView',
|
|
|
|
r2a(withUIRouter(withReactQuery(withCurrentUser(ConfigureView))), [])
|
|
|
|
)
|
2023-03-08 11:22:08 +13:00
|
|
|
.component(
|
|
|
|
'kubernetesDashboardView',
|
|
|
|
r2a(withUIRouter(withReactQuery(withCurrentUser(DashboardView))), [])
|
2023-05-08 14:07:46 +12:00
|
|
|
)
|
|
|
|
.component(
|
|
|
|
'kubernetesConsoleView',
|
|
|
|
r2a(withUIRouter(withReactQuery(withCurrentUser(ConsoleView))), [])
|
2024-10-01 14:15:51 +13:00
|
|
|
)
|
2025-01-10 13:21:27 +13:00
|
|
|
.component(
|
|
|
|
'jobsView',
|
|
|
|
r2a(withUIRouter(withReactQuery(withCurrentUser(JobsView))), [])
|
|
|
|
)
|
2024-10-01 14:15:51 +13:00
|
|
|
.component(
|
|
|
|
'serviceAccountsView',
|
|
|
|
r2a(withUIRouter(withReactQuery(withCurrentUser(ServiceAccountsView))), [])
|
|
|
|
)
|
|
|
|
.component(
|
|
|
|
'clusterRolesView',
|
|
|
|
r2a(withUIRouter(withReactQuery(withCurrentUser(ClusterRolesView))), [])
|
|
|
|
)
|
|
|
|
.component(
|
|
|
|
'k8sRolesView',
|
|
|
|
r2a(withUIRouter(withReactQuery(withCurrentUser(RolesView))), [])
|
2022-09-22 16:12:19 +12:00
|
|
|
).name;
|