1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-07 14:55:27 +02:00

fix(code-editor): highlight syntax web editor EE-5405 (#8871)

This commit is contained in:
cmeng 2023-05-17 14:07:21 +12:00 committed by GitHub
parent 1473cc208b
commit e156243e43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 41 additions and 4 deletions

View file

@ -2,6 +2,8 @@
id="$ctrl.identifier"
placeholder="$ctrl.placeholder"
yaml="$ctrl.yml"
docker-file="$ctrl.dockerFile"
shell="$ctrl.shell"
readonly="$ctrl.readOnly"
on-change="($ctrl.handleChange)"
value="$ctrl.value"

View file

@ -7,6 +7,8 @@ angular.module('portainer.app').component('codeEditor', {
identifier: '@',
placeholder: '@',
yml: '<',
dockerFile: '<',
shell: '<',
readOnly: '<',
onChange: '<',
value: '<',

View file

@ -24,7 +24,7 @@
Switch to simple mode to define variables line by line, or load from .env file
</div>
<div class="col-sm-12">
<code-editor identifier="environment-variables-editor" placeholder="e.g. key=value" value="$ctrl.editorText" yml="false" on-change="($ctrl.editorUpdate)"></code-editor>
<code-editor identifier="environment-variables-editor" placeholder="e.g. key=value" value="$ctrl.editorText" on-change="($ctrl.editorUpdate)"></code-editor>
</div>
<div class="col-sm-12 small text-muted" ng-if="$ctrl.showHelpMessage">
<pr-icon icon="'alert-circle'" mode="'primary'"></pr-icon>

View file

@ -189,6 +189,8 @@ export const componentsModule = angular
'id',
'placeholder',
'yaml',
'dockerFile',
'shell',
'readonly',
'onChange',
'value',