Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix dependency issues

buoyantaird4681c0074ba
diff --git a/shared/utils/search/videos.ts b/shared/utils/search/videos.ts
index 3a0c10e424..115b3ff9ab 100644
--- a/shared/utils/search/videos.ts
+++ b/shared/utils/search/videos.ts
@@ -1,7 +1,7 @@
/* tslint:disable:no-unused-expression */
import * as request from 'supertest'
-import { VideosSearchQuery } from '../../../../shared/models/search'
+import { VideosSearchQuery } from '../../models/search'
import { immutableAssign } from '..'
function searchVideo (url: string, search: string) {
diff --git a/shared/utils/server/config.ts b/shared/utils/server/config.ts
index b85e02ab77..15a94432b7 100644
--- a/shared/utils/server/config.ts
+++ b/shared/utils/server/config.ts
@@ -1,5 +1,5 @@
import { makeDeleteRequest, makeGetRequest, makePutBodyRequest } from '../'
-import { CustomConfig } from '../../../../shared/models/server/custom-config.model'
+import { CustomConfig } from '../../models/server/custom-config.model'
function getConfig (url: string) {
const path = '/api/v1/config'
diff --git a/shared/utils/server/jobs.ts b/shared/utils/server/jobs.ts
index 4c02cace56..3eec1d7d78 100644
--- a/shared/utils/server/jobs.ts
+++ b/shared/utils/server/jobs.ts
@@ -1,5 +1,5 @@
import * as request from 'supertest'
-import { Job, JobState } from '../../../../shared/models'
+import { Job, JobState } from '../../models'
import { ServerInfo, wait } from '../index'
function getJobsList (url: string, accessToken: string, state: JobState) {
diff --git a/shared/utils/users/accounts.ts b/shared/utils/users/accounts.ts
index f82b8d9069..5601f2a775 100644
--- a/shared/utils/users/accounts.ts
+++ b/shared/utils/users/accounts.ts
@@ -3,7 +3,7 @@
import { expect } from 'chai'
import { existsSync, readdir } from 'fs-extra'
import { join } from 'path'
-import { Account } from '../../../../shared/models/actors'
+import { Account } from '../../models/actors'
import { root } from '../index'
import { makeGetRequest } from '../requests/requests'
diff --git a/shared/utils/videos/video-abuses.ts b/shared/utils/videos/video-abuses.ts
index 14907e6a09..8be891a9b0 100644
--- a/shared/utils/videos/video-abuses.ts
+++ b/shared/utils/videos/video-abuses.ts
@@ -1,5 +1,5 @@
import * as request from 'supertest'
-import { VideoAbuseUpdate } from '../../../../shared/models/videos/abuse/video-abuse-update.model'
+import { VideoAbuseUpdate } from '../../models/videos/abuse/video-abuse-update.model'
import { makeDeleteRequest, makePutBodyRequest } from '..'
function reportVideoAbuse (url: string, token: string, videoId: number | string, reason: string, specialStatus = 200) {
diff --git a/shared/utils/videos/video-channels.ts b/shared/utils/videos/video-channels.ts
index 0929857779..3d37f0e4c7 100644
--- a/shared/utils/videos/video-channels.ts
+++ b/shared/utils/videos/video-channels.ts
@@ -1,5 +1,5 @@
import * as request from 'supertest'
-import { VideoChannelCreate, VideoChannelUpdate } from '../../../../shared/models/videos'
+import { VideoChannelCreate, VideoChannelUpdate } from '../../models/videos'
import { updateAvatarRequest } from '../index'
function getVideoChannelsList (url: string, start: number, count: number, sort?: string) {
diff --git a/shared/utils/videos/video-imports.ts b/shared/utils/videos/video-imports.ts
index 59dfd481ab..bf5062cd13 100644
--- a/shared/utils/videos/video-imports.ts
+++ b/shared/utils/videos/video-imports.ts
@@ -1,4 +1,4 @@
-import { VideoImportCreate } from '../../../../shared/models/videos'
+import { VideoImportCreate } from '../../models/videos'
import { makeGetRequest, makeUploadRequest } from '..'
function getYoutubeVideoUrl () {
diff --git a/shared/utils/videos/videos.ts b/shared/utils/videos/videos.ts
index 87c385f387..b3206e5660 100644
--- a/shared/utils/videos/videos.ts
+++ b/shared/utils/videos/videos.ts
@@ -16,8 +16,8 @@ import {
ServerInfo,
testImage
} from '../'
-import { VideoDetails, VideoPrivacy } from '../../../../shared/models/videos'
-import { VIDEO_CATEGORIES, VIDEO_LANGUAGES, VIDEO_LICENCES, VIDEO_PRIVACIES } from '../../../initializers'
+import { VideoDetails, VideoPrivacy } from '../../models/videos'
+import { VIDEO_CATEGORIES, VIDEO_LANGUAGES, VIDEO_LICENCES, VIDEO_PRIVACIES } from '../../../server/initializers'
import { dateIsValid, webtorrentAdd } from '../index'
type VideoAttributes = {