-
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.
feat(): collapse/expand commands log in terminal
- Loading branch information
Showing
5 changed files
with
165 additions
and
15 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 12 additions & 1 deletion
13
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 +1,12 @@ | ||
<pre class="window-terminal-container batman-ansi-theme" [ngClass]="{ large: options.size === 'large' }" slimScroll [options]="scrollOptions" [scrollEvents]="scrollEvents"></pre> | ||
<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> | ||
</pre> |
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