From 4c34fe617a87ddf41a1a640e93ebabd9a0238b27 Mon Sep 17 00:00:00 2001 From: Patrik Zander <38403547+pzdr7@users.noreply.github.com> Date: Thu, 24 Oct 2024 22:40:21 +0200 Subject: [PATCH] Development: Migrate the online code editor to a standalone component (#9505) --- .../manage/build-plan-editor.component.html | 2 +- .../programming-exercise-management.module.ts | 2 + .../shared/code-editor/code-editor.module.ts | 6 +- .../header/code-editor-header.component.html | 6 +- .../header/code-editor-header.component.ts | 27 +- .../monaco/code-editor-monaco.component.html | 42 +-- .../monaco/code-editor-monaco.component.ts | 295 ++++++++++-------- .../code-editor-header.component.spec.ts | 20 +- .../code-editor-monaco.component.spec.ts | 223 ++++++------- ...tor-assessment-container.component.spec.ts | 13 +- .../helpers/mocks/mock-instance.helper.ts | 21 ++ .../code-editor-container.integration.spec.ts | 109 ++++--- ...code-editor-instructor.integration.spec.ts | 4 + .../code-editor-student.integration.spec.ts | 4 + 14 files changed, 421 insertions(+), 353 deletions(-) create mode 100644 src/test/javascript/spec/helpers/mocks/mock-instance.helper.ts diff --git a/src/main/webapp/app/exercises/programming/manage/build-plan-editor.component.html b/src/main/webapp/app/exercises/programming/manage/build-plan-editor.component.html index 2ab8b64cf561..5d85ac6360d2 100644 --- a/src/main/webapp/app/exercises/programming/manage/build-plan-editor.component.html +++ b/src/main/webapp/app/exercises/programming/manage/build-plan-editor.component.html @@ -40,7 +40,7 @@