2022-05-17 04:22:44 +00:00
|
|
|
import angular from 'angular';
|
|
|
|
|
2022-09-21 04:49:42 +00:00
|
|
|
import { r2a } from '@/react-tools/react2angular';
|
2022-09-22 04:12:19 +00:00
|
|
|
import { withCurrentUser } from '@/react-tools/withCurrentUser';
|
|
|
|
import { withReactQuery } from '@/react-tools/withReactQuery';
|
|
|
|
import { withUIRouter } from '@/react-tools/withUIRouter';
|
2022-11-07 06:03:11 +00:00
|
|
|
import { IngressesDatatableView } from '@/react/kubernetes/ingresses/IngressDatatable';
|
|
|
|
import { CreateIngressView } from '@/react/kubernetes/ingresses/CreateIngressView';
|
2023-06-11 21:46:48 +00:00
|
|
|
import { DashboardView } from '@/react/kubernetes/dashboard/DashboardView';
|
|
|
|
import { ServicesView } from '@/react/kubernetes/services/ServicesView';
|
2023-05-08 02:07:46 +00:00
|
|
|
import { ConsoleView } from '@/react/kubernetes/applications/ConsoleView';
|
2023-06-11 21:46:48 +00:00
|
|
|
import { ConfigmapsAndSecretsView } from '@/react/kubernetes/configs/ListView/ConfigmapsAndSecretsView';
|
2022-09-21 04:49:42 +00:00
|
|
|
|
|
|
|
export const viewsModule = angular
|
|
|
|
.module('portainer.kubernetes.react.views', [])
|
2023-03-02 19:45:19 +00:00
|
|
|
.component(
|
|
|
|
'kubernetesServicesView',
|
|
|
|
r2a(withUIRouter(withReactQuery(withCurrentUser(ServicesView))), [])
|
|
|
|
)
|
2022-09-22 04:12:19 +00:00
|
|
|
.component(
|
|
|
|
'kubernetesIngressesView',
|
|
|
|
r2a(
|
|
|
|
withUIRouter(withReactQuery(withCurrentUser(IngressesDatatableView))),
|
|
|
|
[]
|
|
|
|
)
|
|
|
|
)
|
|
|
|
.component(
|
|
|
|
'kubernetesIngressesCreateView',
|
|
|
|
r2a(withUIRouter(withReactQuery(withCurrentUser(CreateIngressView))), [])
|
2023-03-07 22:22:08 +00:00
|
|
|
)
|
2023-06-11 21:46:48 +00:00
|
|
|
.component(
|
|
|
|
'kubernetesConfigMapsAndSecretsView',
|
|
|
|
r2a(
|
|
|
|
withUIRouter(withReactQuery(withCurrentUser(ConfigmapsAndSecretsView))),
|
|
|
|
[]
|
|
|
|
)
|
|
|
|
)
|
2023-03-07 22:22:08 +00:00
|
|
|
.component(
|
|
|
|
'kubernetesDashboardView',
|
|
|
|
r2a(withUIRouter(withReactQuery(withCurrentUser(DashboardView))), [])
|
2023-05-08 02:07:46 +00:00
|
|
|
)
|
|
|
|
.component(
|
|
|
|
'kubernetesConsoleView',
|
|
|
|
r2a(withUIRouter(withReactQuery(withCurrentUser(ConsoleView))), [])
|
2022-09-22 04:12:19 +00:00
|
|
|
).name;
|