-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
82 additions
and
65 deletions.
There are no files selected for viewing
20 changes: 9 additions & 11 deletions
20
src/app/components/app-terminal/app-terminal.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,12 +1,10 @@ | ||
<pre class="window-terminal-container dracula-ansi-theme" [ngClass]="{ large: options.size === 'large' }" slimScroll [options]="scrollOptions" [scrollEvents]="scrollEvents"> | ||
<div class="command columns log" *ngFor="let cmd of commands; let i = index;" [id]="i"> | ||
<div class="terminal"> | ||
<span class="icon"> | ||
<img *ngIf="cmd.visible" src="images/icons/collapse.svg" (click)="toogleCommand(i)"> | ||
<img *ngIf="!cmd.visible" src="images/icons/expand.svg" (click)="toogleCommand(i)"> | ||
</span> | ||
<div class="output" [class.is-hidden]="!cmd.visible" [innerHTML]="cmd.output"></div> | ||
<div class="output" [class.is-hidden]="cmd.visible" [innerHTML]="cmd.command"></div> | ||
</div> | ||
<div class="window-terminal-container dracula-ansi-theme" [ngClass]="{ large: options.size === 'large' }" slimScroll [options]="scrollOptions" [scrollEvents]="scrollEvents"> | ||
<div class="terminal" *ngFor="let cmd of commands; let i = index;" [id]="i"> | ||
<span class="icon"> | ||
<img *ngIf="cmd.visible" src="images/icons/collapse.svg" (click)="toogleCommand(i)"> | ||
<img *ngIf="!cmd.visible" src="images/icons/expand.svg" (click)="toogleCommand(i)"> | ||
</span> | ||
<span class="command" [innerHTML]="cmd.command"></span> | ||
<pre class="output" [class.is-hidden]="!cmd.visible" [innerHTML]="cmd.output"></pre> | ||
</div> | ||
</pre> | ||
</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