From ef0eaafee012b1b041988dcdb21b1236e5bd6781 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Wed, 20 Mar 2019 13:20:33 +0530 Subject: Editor Component Changes Implemented code to highlight file o select. Issue-ID: CCSDK-1098 Change-Id: I1daa4d86b77ebb5de72f425b536ba64e18b04dfd Signed-off-by: Arundathi Patil --- .../modify-template/editor/editor.component.html | 54 ++-------------------- .../modify-template/editor/editor.component.scss | 7 ++- .../modify-template/editor/editor.component.ts | 3 +- 3 files changed, 12 insertions(+), 52 deletions(-) (limited to 'cds-ui/client/src/app') diff --git a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.html b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.html index 64b201d81..308f9cc1f 100644 --- a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.html +++ b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.html @@ -20,8 +20,8 @@ limitations under the License.
- - + + @@ -31,7 +31,7 @@ limitations under the License. {{treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right'}} - +
@@ -39,50 +39,4 @@ limitations under the License.
- - - \ No newline at end of file + \ No newline at end of file diff --git a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.scss b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.scss index 136c08bfa..2f16af7a5 100644 --- a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.scss +++ b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.scss @@ -29,6 +29,7 @@ limitations under the License. height: 490px !important; overflow-x: scroll; overflow-y: scroll; + background-color: #ebebeb; } .editorConatiner { width: 80%; @@ -57,4 +58,8 @@ limitations under the License. font-size: 24px; cursor: pointer; z-index: 1; -} \ No newline at end of file +} + +.background-highlight { + background-color: whitesmoke !important; + } \ No newline at end of file diff --git a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.ts b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.ts index 7203dc8b3..e48177d0a 100644 --- a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.ts +++ b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.ts @@ -82,6 +82,7 @@ export class EditorComponent implements OnInit { fileExtension: string; mode: string; private zipFile: JSZip = new JSZip(); + activeNode: any; private transformer = (node: Node, level: number) => { return { @@ -143,7 +144,7 @@ export class EditorComponent implements OnInit { blueprint.push(this.blueprintdata[key]); } } - this.text = JSON.stringify(this.blueprintdata, null, '\t'); + // this.text = JSON.stringify(this.blueprintdata, null, '\t'); // this.editor.getEditor().getSession().setMode("ace/mode/json"); this.editor.getEditor().getSession().setTabSize(2); this.editor.getEditor().getSession().setUseWrapMode(true); -- cgit 1.2.3-korg