-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow for the creation of Tasks in the Scenario-Wizard UI (#207)
* add components to allow for the creation of Tasks in the Scenario UI * add tasks to scenario detail view * fix create new scenario with empty task list * add validation for tasks to scenario wizard --------- Co-authored-by: Philip Prinz <[email protected]> Co-authored-by: Jan-Gerrit Goebel <[email protected]> Co-authored-by: Jan-Gerrit Göbel <[email protected]>
- Loading branch information
1 parent
7935d5e
commit 05cc9e8
Showing
26 changed files
with
1,038 additions
and
39 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
4 changes: 2 additions & 2 deletions
4
.../configuration/code-with-syntax-highlighting/code-with-syntax-highlighting.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,5 +1,5 @@ | ||
<div class="code-editor" #codeEditor> | ||
<textarea (input)="onValueChange($event)" (resize)="resizeEvent($event)" [(ngModel)]="textValue" #textarea> | ||
<textarea (input)="onValueChange($event)" (resize)="manualResizeEvent($event)" [(ngModel)]="_textValue" [readonly]="readonly" #textarea> | ||
</textarea> | ||
<code #code class="language-yaml" [innerHTML]="highlightedText"></code> | ||
<code #code class="{{ language }}" [innerHTML]="highlightedText"></code> | ||
</div> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export type VMTasks = { | ||
vm_name: string; | ||
tasks: Task[]; | ||
}; | ||
|
||
export enum ReturnType { | ||
Return_Text = "Return Text", | ||
Return_Code_And_Text = "Return Code and Text", | ||
Return_Code = "Return Code", | ||
Match_Regex = "Match Regex" | ||
} | ||
|
||
export type Task = { | ||
name: string; | ||
description: string; | ||
command: string; | ||
expected_output_value: string; | ||
expected_return_code: number; | ||
return_type: ReturnType; | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#single-column-block ::ng-deep .stack-block-label { | ||
max-width: 100%; | ||
flex-basis: 100%; | ||
} | ||
|
||
#single-column-block ::ng-deep .stack-view-key { | ||
min-width: 100%; | ||
// max-width: 100%; | ||
// flex-basis: 100%; | ||
// flex: 0 0 100%; | ||
} | ||
|
||
#single-column-block ::ng-deep .stack-block-content { | ||
display: none; | ||
} |
Oops, something went wrong.