diff options
author | Chocobozzz <me@florianbigard.com> | 2021-02-03 11:44:43 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-02-03 11:44:43 +0100 |
commit | 72aa835e170f5dfa5fb7b78d50a5d097ea194ef6 (patch) | |
tree | 899a4d50bef1f772c94f816234649c6d90b8a9b7 /client/src | |
parent | 2e1e4af03bc9ccd2470a9f293d70dc27596aae24 (diff) | |
download | PeerTube-72aa835e170f5dfa5fb7b78d50a5d097ea194ef6.tar.gz PeerTube-72aa835e170f5dfa5fb7b78d50a5d097ea194ef6.tar.zst PeerTube-72aa835e170f5dfa5fb7b78d50a5d097ea194ef6.zip |
Upgrade client dependencies
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/app/helpers/utils.ts | 2 | ||||
-rw-r--r-- | client/src/root-helpers/utils.ts | 2 | ||||
-rw-r--r-- | client/src/sass/include/_variables.scss | 2 | ||||
-rw-r--r-- | client/src/standalone/videos/embed.ts | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/helpers/utils.ts b/client/src/app/helpers/utils.ts index f96f26fff..b4e26d792 100644 --- a/client/src/app/helpers/utils.ts +++ b/client/src/app/helpers/utils.ts | |||
@@ -24,7 +24,7 @@ function populateAsyncUserVideoChannels ( | |||
24 | authService: AuthService, | 24 | authService: AuthService, |
25 | channel: SelectChannelItem[] | 25 | channel: SelectChannelItem[] |
26 | ) { | 26 | ) { |
27 | return new Promise(res => { | 27 | return new Promise<void>(res => { |
28 | authService.userInformationLoaded | 28 | authService.userInformationLoaded |
29 | .subscribe( | 29 | .subscribe( |
30 | () => { | 30 | () => { |
diff --git a/client/src/root-helpers/utils.ts b/client/src/root-helpers/utils.ts index e32187ddb..06591b95e 100644 --- a/client/src/root-helpers/utils.ts +++ b/client/src/root-helpers/utils.ts | |||
@@ -57,7 +57,7 @@ function importModule (path: string) { | |||
57 | } | 57 | } |
58 | 58 | ||
59 | function wait (ms: number) { | 59 | function wait (ms: number) { |
60 | return new Promise(res => { | 60 | return new Promise<void>(res => { |
61 | setTimeout(() => res(), ms) | 61 | setTimeout(() => res(), ms) |
62 | }) | 62 | }) |
63 | } | 63 | } |
diff --git a/client/src/sass/include/_variables.scss b/client/src/sass/include/_variables.scss index acdc8d05f..c8316473d 100644 --- a/client/src/sass/include/_variables.scss +++ b/client/src/sass/include/_variables.scss | |||
@@ -19,7 +19,7 @@ $main-color: hsl(24, 90%, 50%); | |||
19 | $main-hover-color: lighten($main-color, 5%); | 19 | $main-hover-color: lighten($main-color, 5%); |
20 | $main-color-lighter: lighten($main-color, 10%); | 20 | $main-color-lighter: lighten($main-color, 10%); |
21 | $main-color-lightest: lighten($main-color, 40%); | 21 | $main-color-lightest: lighten($main-color, 40%); |
22 | $secondary-color: hsl(187, 77, 34); | 22 | $secondary-color: hsl(187, 77%, 34%); |
23 | 23 | ||
24 | $support-button: inherit; | 24 | $support-button: inherit; |
25 | $support-button-heart: #e83e8c; | 25 | $support-button-heart: #e83e8c; |
diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts index 1709d44e7..cf4bc6f03 100644 --- a/client/src/standalone/videos/embed.ts +++ b/client/src/standalone/videos/embed.ts | |||
@@ -88,7 +88,7 @@ export class PeerTubeEmbed { | |||
88 | .then((res: Response) => { | 88 | .then((res: Response) => { |
89 | if (res.status !== HttpStatusCode.UNAUTHORIZED_401) return res | 89 | if (res.status !== HttpStatusCode.UNAUTHORIZED_401) return res |
90 | 90 | ||
91 | const refreshingTokenPromise = new Promise((resolve, reject) => { | 91 | const refreshingTokenPromise = new Promise<void>((resolve, reject) => { |
92 | const clientId: string = peertubeLocalStorage.getItem(this.LOCAL_STORAGE_OAUTH_CLIENT_KEYS.CLIENT_ID) | 92 | const clientId: string = peertubeLocalStorage.getItem(this.LOCAL_STORAGE_OAUTH_CLIENT_KEYS.CLIENT_ID) |
93 | const clientSecret: string = peertubeLocalStorage.getItem(this.LOCAL_STORAGE_OAUTH_CLIENT_KEYS.CLIENT_SECRET) | 93 | const clientSecret: string = peertubeLocalStorage.getItem(this.LOCAL_STORAGE_OAUTH_CLIENT_KEYS.CLIENT_SECRET) |
94 | 94 | ||