mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-24 13:55:04 +02:00
Update to node 14
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user