forked from AmadeusITGroup/otter
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(training): loading progress indicator
- Loading branch information
Showing
6 changed files
with
110 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 29 additions & 31 deletions
60
apps/showcase/src/components/training/code-editor-view/code-editor-view.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,30 @@ | ||
@if (cwdTree$ | async; as tree) { | ||
<as-split direction="vertical"> | ||
<as-split-area [size]="50"> | ||
<form [formGroup]="form" class="editor overflow-hidden h-100"> | ||
<as-split direction="horizontal"> | ||
<as-split-area [size]="25"> | ||
<monaco-tree (clickFile)="onClickFile($event)" | ||
[tree]="tree" | ||
[currentFile]="project?.startingFile" | ||
[width]="'auto'" | ||
[height]="'auto'" | ||
class="w-100"></monaco-tree> | ||
</as-split-area> | ||
<as-split-area [size]="75"> | ||
<ngx-monaco-editor class="h-100 position-relative" | ||
[options]="editorOptions$ | async" | ||
formControlName="code"> | ||
</ngx-monaco-editor> | ||
</as-split-area> | ||
</as-split> | ||
</form> | ||
</as-split-area> | ||
@if (editorMode === 'interactive') { | ||
<as-split-area [size]="50"> | ||
<code-editor-control class="d-flex flex-column h-100" [showOutput]="project?.commands.length > 0 && tree.length > 0"></code-editor-control> | ||
<as-split direction="vertical"> | ||
<as-split-area [size]="50"> | ||
<form [formGroup]="form" class="editor overflow-hidden h-100"> | ||
<as-split direction="horizontal"> | ||
<as-split-area [size]="25"> | ||
<monaco-tree (clickFile)="onClickFile($event)" | ||
[tree]="(cwdTree$ | async) || []" | ||
[currentFile]="project?.startingFile" | ||
[width]="'auto'" | ||
[height]="'auto'" | ||
class="w-100 editor-view"></monaco-tree> | ||
</as-split-area> | ||
} | ||
</as-split> | ||
} | ||
@else { | ||
<div class="spinner-border" role="status"></div> | ||
} | ||
<as-split-area [size]="75" class="editor-view"> | ||
@let editorOptions = editorOptions$ | async; | ||
@if (editorOptions) { | ||
<ngx-monaco-editor class="h-100 position-relative" | ||
[options]="editorOptions" | ||
formControlName="code"> | ||
</ngx-monaco-editor> | ||
} | ||
</as-split-area> | ||
</as-split> | ||
</form> | ||
</as-split-area> | ||
@if (editorMode === 'interactive') { | ||
<as-split-area [size]="50"> | ||
<code-editor-control class="d-flex flex-column h-100"></code-editor-control> | ||
</as-split-area> | ||
} | ||
</as-split> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters