2022-05-17 04:22:44 +00:00
|
|
|
import angular from 'angular';
|
|
|
|
|
2022-09-21 07:10:58 +00:00
|
|
|
import { r2a } from '@/react-tools/react2angular';
|
2022-11-21 07:51:55 +00:00
|
|
|
import { withReactQuery } from '@/react-tools/withReactQuery';
|
2023-03-09 21:48:44 +00:00
|
|
|
import { withUIRouter } from '@/react-tools/withUIRouter';
|
2023-06-22 14:11:10 +00:00
|
|
|
import { AssociatedEdgeEnvironmentsSelector } from '@/react/edge/components/AssociatedEdgeEnvironmentsSelector';
|
2024-06-02 12:43:37 +00:00
|
|
|
import { EdgeAsyncIntervalsForm } from '@/react/edge/components/EdgeAsyncIntervalsForm';
|
|
|
|
import { EdgeCheckinIntervalField } from '@/react/edge/components/EdgeCheckInIntervalField';
|
|
|
|
import { EdgeScriptForm } from '@/react/edge/components/EdgeScriptForm';
|
|
|
|
import { EdgeGroupsSelector } from '@/react/edge/edge-stacks/components/EdgeGroupsSelector';
|
2022-09-21 07:10:58 +00:00
|
|
|
|
2024-04-08 10:18:59 +00:00
|
|
|
import { edgeJobsModule } from './edge-jobs';
|
|
|
|
|
2024-01-08 05:11:31 +00:00
|
|
|
const ngModule = angular
|
2024-04-08 10:18:59 +00:00
|
|
|
.module('portainer.edge.react.components', [edgeJobsModule])
|
2024-05-09 15:02:20 +00:00
|
|
|
|
2022-09-21 07:10:58 +00:00
|
|
|
.component(
|
|
|
|
'edgeGroupsSelector',
|
2023-03-09 21:48:44 +00:00
|
|
|
r2a(withUIRouter(withReactQuery(EdgeGroupsSelector)), [
|
2023-03-06 20:25:04 +00:00
|
|
|
'onChange',
|
|
|
|
'value',
|
|
|
|
'error',
|
|
|
|
'horizontal',
|
|
|
|
'isGroupVisible',
|
2023-11-14 12:54:44 +00:00
|
|
|
'required',
|
2023-03-06 20:25:04 +00:00
|
|
|
])
|
2022-11-21 07:51:55 +00:00
|
|
|
)
|
|
|
|
.component(
|
|
|
|
'edgeScriptForm',
|
|
|
|
r2a(withReactQuery(EdgeScriptForm), [
|
|
|
|
'edgeInfo',
|
|
|
|
'commands',
|
2023-03-01 18:33:05 +00:00
|
|
|
'asyncMode',
|
2023-03-06 20:25:04 +00:00
|
|
|
'showMetaFields',
|
2022-11-21 07:51:55 +00:00
|
|
|
])
|
|
|
|
)
|
|
|
|
.component(
|
|
|
|
'edgeCheckinIntervalField',
|
|
|
|
r2a(withReactQuery(EdgeCheckinIntervalField), [
|
|
|
|
'value',
|
|
|
|
'onChange',
|
|
|
|
'isDefaultHidden',
|
|
|
|
'tooltip',
|
|
|
|
'label',
|
|
|
|
'readonly',
|
|
|
|
'size',
|
|
|
|
])
|
|
|
|
)
|
|
|
|
.component(
|
|
|
|
'edgeAsyncIntervalsForm',
|
|
|
|
r2a(withReactQuery(EdgeAsyncIntervalsForm), [
|
|
|
|
'values',
|
|
|
|
'onChange',
|
|
|
|
'isDefaultHidden',
|
|
|
|
'readonly',
|
|
|
|
'fieldSettings',
|
|
|
|
])
|
2023-01-26 03:03:44 +00:00
|
|
|
)
|
2023-06-22 14:11:10 +00:00
|
|
|
.component(
|
|
|
|
'associatedEdgeEnvironmentsSelector',
|
|
|
|
r2a(withReactQuery(AssociatedEdgeEnvironmentsSelector), [
|
|
|
|
'onChange',
|
|
|
|
'value',
|
2024-06-02 12:43:37 +00:00
|
|
|
'error',
|
2023-06-22 14:11:10 +00:00
|
|
|
])
|
2024-01-08 05:11:31 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
export const componentsModule = ngModule.name;
|