small patch to terminal emulator

This commit is contained in:
itzMiney committed 2026-03-17 04:31:36 +01:00
1 parent b7b9720a26
commit 11e2316a91
1 file changed
+12 -6
@@ -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...'
});
setTimeout(() => {
void this.router.navigate(['/portfolio']);
}, 800);
break;
case 'blog':
case 'blog.html':
this.history.push({
type: 'output',
text: 'Opening blog...'
});
setTimeout(() => {
void this.router.navigate(['/blog']);
}, 800);
break;
case 'socials':
case 'socials.html':
this.history.push({
type: 'output',
text: 'Opening 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;