Merge pull request #45 from itzMiney/development

small patch to terminal emulator
This commit is contained in:
Michael authored and GitHub committed 2026-03-17 04:32:25 +01:00
commit 725a292135
1 file changed
+15 -9
@@ -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...'
}); });
void this.router.navigate(['/portfolio']); setTimeout(() => {
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...'
}); });
void this.router.navigate(['/blog']); setTimeout(() => {
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...'
}); });
void this.router.navigate(['/socials']); setTimeout(() => {
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;