2022-05-17 07:22:44 +03:00
|
|
|
import angular from 'angular';
|
|
|
|
|
2022-05-29 09:14:14 +03:00
|
|
|
import { r2a } from '@/react-tools/react2angular';
|
2022-06-23 09:32:18 +03:00
|
|
|
import { Icon } from '@/react/components/Icon';
|
|
|
|
import { ReactQueryDevtoolsWrapper } from '@/react/components/ReactQueryDevtoolsWrapper';
|
2022-05-29 09:14:14 +03:00
|
|
|
|
2022-06-23 09:32:18 +03:00
|
|
|
import { PageHeader } from '@@/PageHeader';
|
2022-06-17 19:18:42 +03:00
|
|
|
import { TagSelector } from '@@/TagSelector';
|
|
|
|
import { Loading } from '@@/Widget/Loading';
|
|
|
|
import { PasswordCheckHint } from '@@/PasswordCheckHint';
|
|
|
|
import { ViewLoading } from '@@/ViewLoading';
|
2022-07-04 02:21:25 +03:00
|
|
|
import { Tooltip } from '@@/Tip/Tooltip';
|
2022-07-06 11:23:53 +03:00
|
|
|
import { DashboardItem } from '@@/DashboardItem';
|
2022-06-17 19:18:42 +03:00
|
|
|
|
|
|
|
import { fileUploadField } from './file-upload-field';
|
|
|
|
import { switchField } from './switch-field';
|
2022-05-31 13:00:47 +03:00
|
|
|
import { customTemplatesModule } from './custom-templates';
|
|
|
|
|
2022-05-29 09:14:14 +03:00
|
|
|
export const componentsModule = angular
|
2022-05-31 13:00:47 +03:00
|
|
|
.module('portainer.app.react.components', [customTemplatesModule])
|
2022-05-29 09:14:14 +03:00
|
|
|
.component(
|
|
|
|
'tagSelector',
|
|
|
|
r2a(TagSelector, ['allowCreate', 'onChange', 'value'])
|
2022-06-17 19:18:42 +03:00
|
|
|
)
|
2022-07-04 02:21:25 +03:00
|
|
|
.component('portainerTooltip', r2a(Tooltip, ['message', 'position']))
|
2022-06-17 19:18:42 +03:00
|
|
|
.component('fileUploadField', fileUploadField)
|
|
|
|
.component('porSwitchField', switchField)
|
|
|
|
.component(
|
|
|
|
'passwordCheckHint',
|
|
|
|
r2a(PasswordCheckHint, ['forceChangePassword', 'passwordValid'])
|
|
|
|
)
|
|
|
|
.component('rdLoading', r2a(Loading, []))
|
2022-06-23 09:32:18 +03:00
|
|
|
.component('viewLoading', r2a(ViewLoading, ['message']))
|
|
|
|
.component(
|
|
|
|
'pageHeader',
|
|
|
|
r2a(PageHeader, ['title', 'breadcrumbs', 'loading', 'onReload', 'reload'])
|
|
|
|
)
|
2022-07-04 14:11:13 +12:00
|
|
|
.component(
|
|
|
|
'prIcon',
|
|
|
|
r2a(Icon, ['className', 'feather', 'icon', 'mode', 'size'])
|
|
|
|
)
|
2022-07-06 11:23:53 +03:00
|
|
|
.component('reactQueryDevTools', r2a(ReactQueryDevtoolsWrapper, []))
|
|
|
|
.component(
|
|
|
|
'dashboardItem',
|
|
|
|
r2a(DashboardItem, ['featherIcon', 'icon', 'type', 'value', 'children'])
|
|
|
|
).name;
|