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