2022-05-17 04:22:44 +00:00
|
|
|
import angular from 'angular';
|
|
|
|
|
2022-11-21 07:51:55 +00:00
|
|
|
import { EdgeGroupsSelector } from '@/react/edge/edge-stacks/components/EdgeGroupsSelector';
|
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';
|
|
|
|
import { EdgeCheckinIntervalField } from '@/react/edge/components/EdgeCheckInIntervalField';
|
|
|
|
import { EdgeScriptForm } from '@/react/edge/components/EdgeScriptForm';
|
|
|
|
import { EdgeAsyncIntervalsForm } from '@/react/edge/components/EdgeAsyncIntervalsForm';
|
2023-01-26 03:03:44 +00:00
|
|
|
import { EdgeStackDeploymentTypeSelector } from '@/react/edge/edge-stacks/components/EdgeStackDeploymentTypeSelector';
|
2022-09-21 07:10:58 +00:00
|
|
|
|
|
|
|
export const componentsModule = angular
|
|
|
|
.module('portainer.edge.react.components', [])
|
|
|
|
.component(
|
|
|
|
'edgeGroupsSelector',
|
2023-03-06 20:25:04 +00:00
|
|
|
r2a(withReactQuery(EdgeGroupsSelector), [
|
|
|
|
'onChange',
|
|
|
|
'value',
|
|
|
|
'error',
|
|
|
|
'horizontal',
|
|
|
|
'isGroupVisible',
|
|
|
|
])
|
2022-11-21 07:51:55 +00:00
|
|
|
)
|
|
|
|
.component(
|
|
|
|
'edgeScriptForm',
|
|
|
|
r2a(withReactQuery(EdgeScriptForm), [
|
|
|
|
'edgeInfo',
|
|
|
|
'commands',
|
|
|
|
'isNomadTokenVisible',
|
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
|
|
|
)
|
|
|
|
.component(
|
|
|
|
'edgeStackDeploymentTypeSelector',
|
|
|
|
r2a(withReactQuery(EdgeStackDeploymentTypeSelector), [
|
|
|
|
'value',
|
|
|
|
'onChange',
|
|
|
|
'hasDockerEndpoint',
|
|
|
|
'hasKubeEndpoint',
|
2023-01-30 21:03:21 +00:00
|
|
|
'allowKubeToSelectCompose',
|
2023-01-26 03:03:44 +00:00
|
|
|
])
|
2022-09-21 07:10:58 +00:00
|
|
|
).name;
|