diff options
Diffstat (limited to 'client/src/standalone')
9 files changed, 13 insertions, 13 deletions
diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts index 78b812ffd..e4f723079 100644 --- a/client/src/standalone/videos/embed.ts +++ b/client/src/standalone/videos/embed.ts | |||
@@ -11,7 +11,7 @@ import { | |||
11 | VideoPlaylist, | 11 | VideoPlaylist, |
12 | VideoPlaylistElement, | 12 | VideoPlaylistElement, |
13 | VideoState | 13 | VideoState |
14 | } from '../../../../shared/models' | 14 | } from '@peertube/peertube-models' |
15 | import { PeerTubePlayer } from '../../assets/player/peertube-player' | 15 | import { PeerTubePlayer } from '../../assets/player/peertube-player' |
16 | import { TranslationsManager } from '../../assets/player/translations-manager' | 16 | import { TranslationsManager } from '../../assets/player/translations-manager' |
17 | import { getParamString, logger, videoRequiresFileToken } from '../../root-helpers' | 17 | import { getParamString, logger, videoRequiresFileToken } from '../../root-helpers' |
diff --git a/client/src/standalone/videos/shared/auth-http.ts b/client/src/standalone/videos/shared/auth-http.ts index c1e9f7750..3dfc47b88 100644 --- a/client/src/standalone/videos/shared/auth-http.ts +++ b/client/src/standalone/videos/shared/auth-http.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { HttpStatusCode, OAuth2ErrorCode, UserRefreshToken } from '../../../../../shared/models' | 1 | import { HttpStatusCode, OAuth2ErrorCode, OAuth2ErrorCodeType, UserRefreshToken } from '@peertube/peertube-models' |
2 | import { OAuthUserTokens, objectToUrlEncoded } from '../../../root-helpers' | 2 | import { OAuthUserTokens, objectToUrlEncoded } from '../../../root-helpers' |
3 | import { peertubeLocalStorage } from '../../../root-helpers/peertube-web-storage' | 3 | import { peertubeLocalStorage } from '../../../root-helpers/peertube-web-storage' |
4 | 4 | ||
@@ -66,7 +66,7 @@ export class AuthHTTP { | |||
66 | if (res.status === HttpStatusCode.UNAUTHORIZED_401) return undefined | 66 | if (res.status === HttpStatusCode.UNAUTHORIZED_401) return undefined |
67 | 67 | ||
68 | return res.json() | 68 | return res.json() |
69 | }).then((obj: UserRefreshToken & { code?: OAuth2ErrorCode }) => { | 69 | }).then((obj: UserRefreshToken & { code?: OAuth2ErrorCodeType }) => { |
70 | if (!obj || obj.code === OAuth2ErrorCode.INVALID_GRANT) { | 70 | if (!obj || obj.code === OAuth2ErrorCode.INVALID_GRANT) { |
71 | OAuthUserTokens.flushLocalStorage(peertubeLocalStorage) | 71 | OAuthUserTokens.flushLocalStorage(peertubeLocalStorage) |
72 | this.removeTokensFromHeaders() | 72 | this.removeTokensFromHeaders() |
diff --git a/client/src/standalone/videos/shared/live-manager.ts b/client/src/standalone/videos/shared/live-manager.ts index 5fac229ba..274f70d9c 100644 --- a/client/src/standalone/videos/shared/live-manager.ts +++ b/client/src/standalone/videos/shared/live-manager.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import { Socket } from 'socket.io-client' | 1 | import { Socket } from 'socket.io-client' |
2 | import { LiveVideoEventPayload, VideoDetails, VideoState } from '../../../../../shared/models' | 2 | import { LiveVideoEventPayload, VideoDetails, VideoState, VideoStateType } from '@peertube/peertube-models' |
3 | import { PlayerHTML } from './player-html' | 3 | import { PlayerHTML } from './player-html' |
4 | import { Translations } from './translations' | 4 | import { Translations } from './translations' |
5 | 5 | ||
@@ -49,7 +49,7 @@ export class LiveManager { | |||
49 | } | 49 | } |
50 | 50 | ||
51 | displayInfo (options: { | 51 | displayInfo (options: { |
52 | state: VideoState | 52 | state: VideoStateType |
53 | translations: Translations | 53 | translations: Translations |
54 | }) { | 54 | }) { |
55 | const { state, translations } = options | 55 | const { state, translations } = options |
diff --git a/client/src/standalone/videos/shared/peertube-plugin.ts b/client/src/standalone/videos/shared/peertube-plugin.ts index daf6f2b03..95433299e 100644 --- a/client/src/standalone/videos/shared/peertube-plugin.ts +++ b/client/src/standalone/videos/shared/peertube-plugin.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import { peertubeTranslate } from '../../../../../shared/core-utils/i18n' | 1 | import { peertubeTranslate } from '@peertube/peertube-core-utils' |
2 | import { HTMLServerConfig, PublicServerSetting } from '../../../../../shared/models' | 2 | import { HTMLServerConfig, PublicServerSetting } from '@peertube/peertube-models' |
3 | import { PluginInfo, PluginsManager } from '../../../root-helpers' | 3 | import { PluginInfo, PluginsManager } from '../../../root-helpers' |
4 | import { RegisterClientHelpers } from '../../../types' | 4 | import { RegisterClientHelpers } from '../../../types' |
5 | import { AuthHTTP } from './auth-http' | 5 | import { AuthHTTP } from './auth-http' |
diff --git a/client/src/standalone/videos/shared/player-html.ts b/client/src/standalone/videos/shared/player-html.ts index 0defa0d70..ada2aaaf7 100644 --- a/client/src/standalone/videos/shared/player-html.ts +++ b/client/src/standalone/videos/shared/player-html.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { peertubeTranslate } from '../../../../../shared/core-utils/i18n' | 1 | import { peertubeTranslate } from '@peertube/peertube-core-utils' |
2 | import { logger } from '../../../root-helpers' | 2 | import { logger } from '../../../root-helpers' |
3 | import { Translations } from './translations' | 3 | import { Translations } from './translations' |
4 | 4 | ||
diff --git a/client/src/standalone/videos/shared/player-options-builder.ts b/client/src/standalone/videos/shared/player-options-builder.ts index 8a4e32444..3437ef421 100644 --- a/client/src/standalone/videos/shared/player-options-builder.ts +++ b/client/src/standalone/videos/shared/player-options-builder.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { peertubeTranslate } from '../../../../../shared/core-utils/i18n' | 1 | import { peertubeTranslate } from '@peertube/peertube-core-utils' |
2 | import { | 2 | import { |
3 | HTMLServerConfig, | 3 | HTMLServerConfig, |
4 | LiveVideo, | 4 | LiveVideo, |
@@ -9,7 +9,7 @@ import { | |||
9 | VideoPlaylistElement, | 9 | VideoPlaylistElement, |
10 | VideoState, | 10 | VideoState, |
11 | VideoStreamingPlaylistType | 11 | VideoStreamingPlaylistType |
12 | } from '../../../../../shared/models' | 12 | } from '@peertube/peertube-models' |
13 | import { HLSOptions, PeerTubePlayerContructorOptions, PeerTubePlayerLoadOptions, PlayerMode, VideoJSCaption } from '../../../assets/player' | 13 | import { HLSOptions, PeerTubePlayerContructorOptions, PeerTubePlayerLoadOptions, PlayerMode, VideoJSCaption } from '../../../assets/player' |
14 | import { | 14 | import { |
15 | getBoolOrDefault, | 15 | getBoolOrDefault, |
diff --git a/client/src/standalone/videos/shared/playlist-fetcher.ts b/client/src/standalone/videos/shared/playlist-fetcher.ts index 713d82e3a..db38e3d6c 100644 --- a/client/src/standalone/videos/shared/playlist-fetcher.ts +++ b/client/src/standalone/videos/shared/playlist-fetcher.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { HttpStatusCode, ResultList, VideoPlaylistElement } from '../../../../../shared/models' | 1 | import { HttpStatusCode, ResultList, VideoPlaylistElement } from '@peertube/peertube-models' |
2 | import { logger } from '../../../root-helpers' | 2 | import { logger } from '../../../root-helpers' |
3 | import { AuthHTTP } from './auth-http' | 3 | import { AuthHTTP } from './auth-http' |
4 | 4 | ||
diff --git a/client/src/standalone/videos/shared/playlist-tracker.ts b/client/src/standalone/videos/shared/playlist-tracker.ts index d8708826d..dc9a084b7 100644 --- a/client/src/standalone/videos/shared/playlist-tracker.ts +++ b/client/src/standalone/videos/shared/playlist-tracker.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { VideoPlaylist, VideoPlaylistElement } from '../../../../../shared/models' | 1 | import { VideoPlaylist, VideoPlaylistElement } from '@peertube/peertube-models' |
2 | import { logger } from '../../../root-helpers' | 2 | import { logger } from '../../../root-helpers' |
3 | 3 | ||
4 | export class PlaylistTracker { | 4 | export class PlaylistTracker { |
diff --git a/client/src/standalone/videos/shared/video-fetcher.ts b/client/src/standalone/videos/shared/video-fetcher.ts index 7fb94fbf3..9149d946e 100644 --- a/client/src/standalone/videos/shared/video-fetcher.ts +++ b/client/src/standalone/videos/shared/video-fetcher.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { HttpStatusCode, LiveVideo, VideoDetails, VideoToken } from '../../../../../shared/models' | 1 | import { HttpStatusCode, LiveVideo, VideoDetails, VideoToken } from '@peertube/peertube-models' |
2 | import { logger } from '../../../root-helpers' | 2 | import { logger } from '../../../root-helpers' |
3 | import { PeerTubeServerError } from '../../../types' | 3 | import { PeerTubeServerError } from '../../../types' |
4 | import { AuthHTTP } from './auth-http' | 4 | import { AuthHTTP } from './auth-http' |