mirror of
https://github.com/portainer/portainer.git
synced 2025-08-05 13:55:21 +02:00
refactor(ui/editor): migrate code-editor to react [EE-4848] (#8257)
This commit is contained in:
parent
273a3f9a10
commit
5507b1e8c9
18 changed files with 259 additions and 130 deletions
|
@ -39,6 +39,7 @@ import { Slider } from '@@/form-components/Slider';
|
|||
import { TagButton } from '@@/TagButton';
|
||||
import { BETeaserButton } from '@@/BETeaserButton';
|
||||
import { TimeWindowDisplay } from '@@/TimeWindowDisplay';
|
||||
import { CodeEditor } from '@@/CodeEditor';
|
||||
|
||||
import { fileUploadField } from './file-upload-field';
|
||||
import { switchField } from './switch-field';
|
||||
|
@ -241,4 +242,16 @@ export const componentsModule = angular
|
|||
.component(
|
||||
'timeWindowDisplay',
|
||||
r2a(withReactQuery(withUIRouter(TimeWindowDisplay)), [])
|
||||
)
|
||||
.component(
|
||||
'reactCodeEditor',
|
||||
r2a(CodeEditor, [
|
||||
'id',
|
||||
'placeholder',
|
||||
'yaml',
|
||||
'readonly',
|
||||
'onChange',
|
||||
'value',
|
||||
'height',
|
||||
])
|
||||
).name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue