diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-24 15:27:15 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-05-24 15:27:15 +0200 |
commit | d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d (patch) | |
tree | fa29fcfd704cbc56c7bc3e3e1c15d84ea0f4dc61 /client/src/root-helpers | |
parent | 25ea1d85e155382367d11036617848fe69a1e6a4 (diff) | |
download | PeerTube-d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d.tar.gz PeerTube-d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d.tar.zst PeerTube-d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d.zip |
Fix lint
Diffstat (limited to 'client/src/root-helpers')
-rw-r--r-- | client/src/root-helpers/bytes.ts | 2 | ||||
-rw-r--r-- | client/src/root-helpers/logger.ts | 2 | ||||
-rw-r--r-- | client/src/root-helpers/plugins-manager.ts | 10 |
3 files changed, 7 insertions, 7 deletions
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 @@ | |||
1 | const dictionary: Array<{ max: number, type: string }> = [ | 1 | const dictionary: { max: number, type: string }[] = [ |
2 | { max: 1024, type: 'B' }, | 2 | { max: 1024, type: 'B' }, |
3 | { max: 1048576, type: 'KB' }, | 3 | { max: 1048576, type: 'KB' }, |
4 | { max: 1073741824, type: 'MB' }, | 4 | { 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 { | |||
59 | if (!payload) return | 59 | if (!payload) return |
60 | 60 | ||
61 | const headers = new Headers({ | 61 | const headers = new Headers({ |
62 | Accept: 'application/json', | 62 | 'Accept': 'application/json', |
63 | 'Content-Type': 'application/json' | 63 | 'Content-Type': 'application/json' |
64 | }) | 64 | }) |
65 | 65 | ||
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 { | |||
60 | private loadingScopes: { [id in PluginClientScope]?: boolean } = {} | 60 | private loadingScopes: { [id in PluginClientScope]?: boolean } = {} |
61 | 61 | ||
62 | private pluginsLoaded: { [ scope in PluginClientScope ]: ReplaySubject<boolean> } = { | 62 | private pluginsLoaded: { [ scope in PluginClientScope ]: ReplaySubject<boolean> } = { |
63 | common: new ReplaySubject<boolean>(1), | 63 | 'common': new ReplaySubject<boolean>(1), |
64 | 'admin-plugin': new ReplaySubject<boolean>(1), | 64 | 'admin-plugin': new ReplaySubject<boolean>(1), |
65 | search: new ReplaySubject<boolean>(1), | 65 | 'search': new ReplaySubject<boolean>(1), |
66 | 'video-watch': new ReplaySubject<boolean>(1), | 66 | 'video-watch': new ReplaySubject<boolean>(1), |
67 | signup: new ReplaySubject<boolean>(1), | 67 | 'signup': new ReplaySubject<boolean>(1), |
68 | login: new ReplaySubject<boolean>(1), | 68 | 'login': new ReplaySubject<boolean>(1), |
69 | 'video-edit': new ReplaySubject<boolean>(1), | 69 | 'video-edit': new ReplaySubject<boolean>(1), |
70 | embed: new ReplaySubject<boolean>(1), | 70 | 'embed': new ReplaySubject<boolean>(1), |
71 | 'my-library': new ReplaySubject<boolean>(1), | 71 | 'my-library': new ReplaySubject<boolean>(1), |
72 | 'video-channel': new ReplaySubject<boolean>(1) | 72 | 'video-channel': new ReplaySubject<boolean>(1) |
73 | } | 73 | } |