generated from open-template-hub/web-ui-template
-
Notifications
You must be signed in to change notification settings - Fork 10
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
1 parent
053fa69
commit 6cb54eb
Showing
8 changed files
with
101 additions
and
35 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
30 changes: 18 additions & 12 deletions
30
src/app/component/animated-code-editor/animated-code-editor.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,20 +1,26 @@ | ||
<div class="code-editor"> | ||
<div class="code-editor-header"> | ||
<p class="code-editor-title">OTH Terminal</p> | ||
<div class="arrow-right"></div> | ||
</div> | ||
|
||
<div class="code-editor-content"> | ||
<p class="command-line"> | ||
<span class="request command">$</span>open-template-hub-server-generator | ||
</p> | ||
<p class="command-line"><span class="response command">></span> 1) Payment Server</p> | ||
<p class="command-line"><span class="response command">></span> 2) Auth Server</p> | ||
<p class="command-line"> | ||
<span class="response command">></span> 3) Basic Info Server | ||
</p> | ||
<p class="command-line"> | ||
<span class="response command">></span> Please enter a server type you want to | ||
generate: | ||
</p> | ||
<app-command-line | ||
[command]="'open-template-hub-server-generator'" | ||
[type]="1" | ||
> | ||
</app-command-line> | ||
<app-command-line [command]="'1) Payment Server'" [type]="2"> | ||
</app-command-line> | ||
<app-command-line [command]="'2) Auth Server'" [type]="2"> | ||
</app-command-line> | ||
<app-command-line [command]="'3) Basic Info Server'" [type]="2"> | ||
</app-command-line> | ||
<app-command-line | ||
[command]="'Please enter a server type you want to | ||
generate:'" | ||
[type]="2" | ||
> | ||
</app-command-line> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<p class="command-line"> | ||
<span class="request command" *ngIf="type === 1">$</span> | ||
<span class="response command" *ngIf="type === 2">></span> | ||
{{ command }} | ||
</p> |
20 changes: 20 additions & 0 deletions
20
src/app/component/command-line/command-line.component.scss
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 @@ | ||
.command { | ||
font-size: 14px; | ||
font-weight: 600; | ||
} | ||
|
||
.command-line { | ||
color: var(--card); | ||
font-size: 14px; | ||
margin-top: 5px; | ||
} | ||
|
||
.response { | ||
margin-right: 10px; | ||
color: var(--warn); | ||
} | ||
|
||
.request { | ||
margin-right: 8px; | ||
color: var(--error); | ||
} |
25 changes: 25 additions & 0 deletions
25
src/app/component/command-line/command-line.component.spec.ts
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,25 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { CommandLineComponent } from './command-line.component'; | ||
|
||
describe('CommandLineComponent', () => { | ||
let component: CommandLineComponent; | ||
let fixture: ComponentFixture<CommandLineComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ CommandLineComponent ] | ||
}) | ||
.compileComponents(); | ||
}); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(CommandLineComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
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,16 @@ | ||
import { Component, Input, OnInit } from '@angular/core'; | ||
import { CommandType } from 'src/app/enum/command-type.enum'; | ||
|
||
@Component({ | ||
selector: 'app-command-line', | ||
templateUrl: './command-line.component.html', | ||
styleUrls: ['./command-line.component.scss'], | ||
}) | ||
export class CommandLineComponent implements OnInit { | ||
@Input() command: string = ''; | ||
@Input() type: CommandType = CommandType.Request; | ||
|
||
constructor() {} | ||
|
||
ngOnInit(): void {} | ||
} |
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,4 @@ | ||
export enum CommandType { | ||
Request = 1, | ||
Response = 2, | ||
} |