small patch to terminal emulator
This commit is contained in:
1 parent
b7b9720a26
commit
11e2316a91
1 file changed
+15
-9
@@ -141,28 +141,34 @@ export class TerminalEmulatorComponent implements OnInit, OnChanges {
|
||||
this.handleCat(arg);
|
||||
break;
|
||||
|
||||
case 'portfolio':
|
||||
case 'portfolio.html':
|
||||
this.history.push({
|
||||
type: 'output',
|
||||
text: 'Opening portfolio...'
|
||||
});
|
||||
void this.router.navigate(['/portfolio']);
|
||||
setTimeout(() => {
|
||||
void this.router.navigate(['/portfolio']);
|
||||
}, 800);
|
||||
break;
|
||||
|
||||
case 'blog':
|
||||
case 'blog.html':
|
||||
this.history.push({
|
||||
type: 'output',
|
||||
text: 'Opening blog...'
|
||||
});
|
||||
void this.router.navigate(['/blog']);
|
||||
setTimeout(() => {
|
||||
void this.router.navigate(['/blog']);
|
||||
}, 800);
|
||||
break;
|
||||
|
||||
case 'socials':
|
||||
case 'socials.html':
|
||||
this.history.push({
|
||||
type: 'output',
|
||||
text: 'Opening socials...'
|
||||
});
|
||||
void this.router.navigate(['/socials']);
|
||||
setTimeout(() => {
|
||||
void this.router.navigate(['/socials']);
|
||||
}, 800);
|
||||
break;
|
||||
|
||||
case 'clear':
|
||||
@@ -229,21 +235,21 @@ export class TerminalEmulatorComponent implements OnInit, OnChanges {
|
||||
case 'portfolio.html':
|
||||
this.history.push({
|
||||
type: 'output',
|
||||
text: 'Navigate to /portfolio'
|
||||
text: 'void this.router.navigate([\'/portfolio\']);'
|
||||
});
|
||||
break;
|
||||
|
||||
case 'blog.html':
|
||||
this.history.push({
|
||||
type: 'output',
|
||||
text: 'Navigate to /blog'
|
||||
text: 'void this.router.navigate([\'/blog\']);'
|
||||
});
|
||||
break;
|
||||
|
||||
case 'socials.html':
|
||||
this.history.push({
|
||||
type: 'output',
|
||||
text: 'Navigate to /socials'
|
||||
text: 'void this.router.navigate([\'/socials\']);'
|
||||
});
|
||||
break;
|
||||
|
||||
|
||||
Reference in new issue
Block a user