2023-11-14 12:54:44 +00:00
|
|
|
import angular from 'angular';
|
|
|
|
|
|
|
|
import { r2a } from '@/react-tools/react2angular';
|
|
|
|
import { withCurrentUser } from '@/react-tools/withCurrentUser';
|
|
|
|
import { withUIRouter } from '@/react-tools/withUIRouter';
|
2023-11-15 08:45:07 +00:00
|
|
|
import { ListView } from '@/react/edge/templates/custom-templates/ListView';
|
2023-11-14 12:54:44 +00:00
|
|
|
import { AppTemplatesView } from '@/react/edge/templates/AppTemplatesView';
|
2024-01-08 07:32:32 +00:00
|
|
|
import { CreateView } from '@/react/portainer/templates/custom-templates/CreateView';
|
|
|
|
import { EditView } from '@/react/portainer/templates/custom-templates/EditView';
|
2023-11-14 12:54:44 +00:00
|
|
|
|
|
|
|
export const templatesModule = angular
|
|
|
|
.module('portainer.app.react.components.templates', [])
|
|
|
|
.component(
|
|
|
|
'edgeAppTemplatesView',
|
|
|
|
r2a(withCurrentUser(withUIRouter(AppTemplatesView)), [])
|
2023-11-15 08:45:07 +00:00
|
|
|
)
|
|
|
|
.component(
|
|
|
|
'edgeCustomTemplatesView',
|
|
|
|
r2a(withCurrentUser(withUIRouter(ListView)), [])
|
|
|
|
)
|
|
|
|
.component(
|
2023-12-06 13:11:02 +00:00
|
|
|
'createCustomTemplatesView',
|
2023-11-15 08:45:07 +00:00
|
|
|
r2a(withCurrentUser(withUIRouter(CreateView)), [])
|
|
|
|
)
|
|
|
|
.component(
|
2024-01-08 07:32:32 +00:00
|
|
|
'editCustomTemplatesView',
|
|
|
|
r2a(withCurrentUser(withUIRouter(EditView)), [])
|
2023-11-14 12:54:44 +00:00
|
|
|
).name;
|