From d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 24 May 2023 15:27:15 +0200 Subject: Fix lint --- client/src/root-helpers/bytes.ts | 2 +- client/src/root-helpers/logger.ts | 2 +- client/src/root-helpers/plugins-manager.ts | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'client/src/root-helpers') diff --git a/client/src/root-helpers/bytes.ts b/client/src/root-helpers/bytes.ts index bda786cc6..7b1920a09 100644 --- a/client/src/root-helpers/bytes.ts +++ b/client/src/root-helpers/bytes.ts @@ -1,4 +1,4 @@ -const dictionary: Array<{ max: number, type: string }> = [ +const dictionary: { max: number, type: string }[] = [ { max: 1024, type: 'B' }, { max: 1048576, type: 'KB' }, { max: 1073741824, type: 'MB' }, diff --git a/client/src/root-helpers/logger.ts b/client/src/root-helpers/logger.ts index 618be62cd..8181c13f3 100644 --- a/client/src/root-helpers/logger.ts +++ b/client/src/root-helpers/logger.ts @@ -59,7 +59,7 @@ class Logger { if (!payload) return const headers = new Headers({ - Accept: 'application/json', + 'Accept': 'application/json', 'Content-Type': 'application/json' }) diff --git a/client/src/root-helpers/plugins-manager.ts b/client/src/root-helpers/plugins-manager.ts index f3416e44a..f99c7598d 100644 --- a/client/src/root-helpers/plugins-manager.ts +++ b/client/src/root-helpers/plugins-manager.ts @@ -60,14 +60,14 @@ class PluginsManager { private loadingScopes: { [id in PluginClientScope]?: boolean } = {} private pluginsLoaded: { [ scope in PluginClientScope ]: ReplaySubject } = { - common: new ReplaySubject(1), + 'common': new ReplaySubject(1), 'admin-plugin': new ReplaySubject(1), - search: new ReplaySubject(1), + 'search': new ReplaySubject(1), 'video-watch': new ReplaySubject(1), - signup: new ReplaySubject(1), - login: new ReplaySubject(1), + 'signup': new ReplaySubject(1), + 'login': new ReplaySubject(1), 'video-edit': new ReplaySubject(1), - embed: new ReplaySubject(1), + 'embed': new ReplaySubject(1), 'my-library': new ReplaySubject(1), 'video-channel': new ReplaySubject(1) } -- cgit v1.2.3