import angular from 'angular'; import { r2a } from '@/react-tools/react2angular'; import { withCurrentUser } from '@/react-tools/withCurrentUser'; import { withUIRouter } from '@/react-tools/withUIRouter'; import { ListView } from '@/react/edge/templates/custom-templates/ListView'; import { EditView as EdgeEditView } from '@/react/edge/templates/custom-templates/EditView'; import { AppTemplatesView } from '@/react/edge/templates/AppTemplatesView'; import { CreateView } from '@/react/portainer/templates/custom-templates/CreateView/CreateView'; export const templatesModule = angular .module('portainer.app.react.components.templates', []) .component( 'edgeAppTemplatesView', r2a(withCurrentUser(withUIRouter(AppTemplatesView)), []) ) .component( 'edgeCustomTemplatesView', r2a(withCurrentUser(withUIRouter(ListView)), []) ) .component( 'createCustomTemplatesView', r2a(withCurrentUser(withUIRouter(CreateView)), []) ) .component( 'edgeEditCustomTemplatesView', r2a(withCurrentUser(withUIRouter(EdgeEditView)), []) ).name;