portainer/app/kubernetes/react/views/index.ts

38 lines
1.4 KiB
TypeScript
Raw Normal View History

import angular from 'angular';
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';
import { IngressesDatatableView } from '@/react/kubernetes/ingresses/IngressDatatable';
import { CreateIngressView } from '@/react/kubernetes/ingresses/CreateIngressView';
import { DashboardView } from '@/react/kubernetes/DashboardView';
import { ServicesView } from '@/react/kubernetes/ServicesView';
import { ConsoleView } from '@/react/kubernetes/applications/ConsoleView';
export const viewsModule = angular
.module('portainer.kubernetes.react.views', [])
.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))), [])
)
.component(
'kubernetesDashboardView',
r2a(withUIRouter(withReactQuery(withCurrentUser(DashboardView))), [])
)
.component(
'kubernetesConsoleView',
r2a(withUIRouter(withReactQuery(withCurrentUser(ConsoleView))), [])
2022-09-22 04:12:19 +00:00
).name;