Update to node 14

This commit is contained in:
2026-03-21 19:19:38 +01:00
parent ab80722be8
commit 3b17f9c53c
7 changed files with 749 additions and 1219 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ $chat-line-indent: 10px;
}
@each $key, $value in $chat-colors {
&.chat-line-#{$key} {
.chat-line-#{$key} {
color: $value;
> .chat-line-name {
+1 -1
View File
@@ -19,7 +19,7 @@ kbd {
}
@each $color, $value in $gamepad-colors {
.gamepad-#{$color} > kbd, kbd.gamepad-#{$color} {
.gamepad-#{"" + $color} > kbd, kbd.gamepad-#{"" + $color} {
background: $value;
}
}
@@ -240,8 +240,8 @@ export class ChatLog implements AfterViewInit, OnDestroy, DoCheck {
private indexes = new Map<string, IndexEntry>();
private messageCounter = 0;
private lastOpacity = 0;
private autoClear?: NodeJS.Timeout;
private autoUnfocus?: NodeJS.Timeout;
private autoClear?: number;
private autoUnfocus?: number;
constructor(
private game: PonyTownGame,
private settingsService: SettingsService,
@@ -466,13 +466,13 @@ export class ChatLog implements AfterViewInit, OnDestroy, DoCheck {
this.filterColor = this.bg;
}
this.autoClear = setTimeout(() => {
this.autoClear = window.setTimeout(() => {
this.filterInput.nativeElement.value = '';
this.filterChat();
this.unFocus();
}, SECOND * 30);
this.autoUnfocus = setTimeout(() => {
this.autoUnfocus = window.setTimeout(() => {
this.unFocus();
}, SECOND * 3);