diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-06 14:58:01 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-08-07 08:28:14 +0200 |
commit | bd45d503e5d007e730f4e81dccd7e7864c9a85cc (patch) | |
tree | b78df768b8253ba401232c17da940cea016c9960 /client/src/app/core | |
parent | 583eb04b541175035d6d452ca626a96ebf2b7437 (diff) | |
download | PeerTube-bd45d503e5d007e730f4e81dccd7e7864c9a85cc.tar.gz PeerTube-bd45d503e5d007e730f4e81dccd7e7864c9a85cc.tar.zst PeerTube-bd45d503e5d007e730f4e81dccd7e7864c9a85cc.zip |
Reorganize shared models
Diffstat (limited to 'client/src/app/core')
-rw-r--r-- | client/src/app/core/auth/auth-user.model.ts | 4 | ||||
-rw-r--r-- | client/src/app/core/plugins/plugin.service.ts | 4 | ||||
-rw-r--r-- | client/src/app/core/server/server.service.ts | 11 | ||||
-rw-r--r-- | client/src/app/core/users/user.model.ts | 2 |
4 files changed, 6 insertions, 15 deletions
diff --git a/client/src/app/core/auth/auth-user.model.ts b/client/src/app/core/auth/auth-user.model.ts index ee61ff881..5efc6e1ab 100644 --- a/client/src/app/core/auth/auth-user.model.ts +++ b/client/src/app/core/auth/auth-user.model.ts | |||
@@ -1,9 +1,9 @@ | |||
1 | import { Observable, of } from 'rxjs' | 1 | import { Observable, of } from 'rxjs' |
2 | import { map } from 'rxjs/operators' | 2 | import { map } from 'rxjs/operators' |
3 | import { User } from '@app/core/users/user.model' | 3 | import { User } from '@app/core/users/user.model' |
4 | import { peertubeLocalStorage } from '@root-helpers/peertube-web-storage' | 4 | import { peertubeLocalStorage } from '@app/helpers/peertube-web-storage' |
5 | import { hasUserRight } from '@shared/core-utils/users' | ||
5 | import { | 6 | import { |
6 | hasUserRight, | ||
7 | MyUser as ServerMyUserModel, | 7 | MyUser as ServerMyUserModel, |
8 | MyUserSpecialPlaylist, | 8 | MyUserSpecialPlaylist, |
9 | NSFWPolicyType, | 9 | NSFWPolicyType, |
diff --git a/client/src/app/core/plugins/plugin.service.ts b/client/src/app/core/plugins/plugin.service.ts index 3cab64142..dc115c0e1 100644 --- a/client/src/app/core/plugins/plugin.service.ts +++ b/client/src/app/core/plugins/plugin.service.ts | |||
@@ -9,15 +9,13 @@ import { RestExtractor } from '@app/core/rest' | |||
9 | import { ServerService } from '@app/core/server/server.service' | 9 | import { ServerService } from '@app/core/server/server.service' |
10 | import { getDevLocale, importModule, isOnDevLocale } from '@app/helpers' | 10 | import { getDevLocale, importModule, isOnDevLocale } from '@app/helpers' |
11 | import { CustomModalComponent } from '@app/modal/custom-modal.component' | 11 | import { CustomModalComponent } from '@app/modal/custom-modal.component' |
12 | import { getCompleteLocale, isDefaultLocale, peertubeTranslate } from '@shared/core-utils/i18n' | ||
12 | import { getHookType, internalRunHook } from '@shared/core-utils/plugins/hooks' | 13 | import { getHookType, internalRunHook } from '@shared/core-utils/plugins/hooks' |
13 | import { | 14 | import { |
14 | ClientHook, | 15 | ClientHook, |
15 | ClientHookName, | 16 | ClientHookName, |
16 | clientHookObject, | 17 | clientHookObject, |
17 | ClientScript, | 18 | ClientScript, |
18 | getCompleteLocale, | ||
19 | isDefaultLocale, | ||
20 | peertubeTranslate, | ||
21 | PluginClientScope, | 19 | PluginClientScope, |
22 | PluginTranslation, | 20 | PluginTranslation, |
23 | PluginType, | 21 | PluginType, |
diff --git a/client/src/app/core/server/server.service.ts b/client/src/app/core/server/server.service.ts index c69e0919a..5bcf33c1b 100644 --- a/client/src/app/core/server/server.service.ts +++ b/client/src/app/core/server/server.service.ts | |||
@@ -4,15 +4,8 @@ import { HttpClient } from '@angular/common/http' | |||
4 | import { Inject, Injectable, LOCALE_ID } from '@angular/core' | 4 | import { Inject, Injectable, LOCALE_ID } from '@angular/core' |
5 | import { getDevLocale, isOnDevLocale, sortBy } from '@app/helpers' | 5 | import { getDevLocale, isOnDevLocale, sortBy } from '@app/helpers' |
6 | import { peertubeLocalStorage } from '@root-helpers/peertube-web-storage' | 6 | import { peertubeLocalStorage } from '@root-helpers/peertube-web-storage' |
7 | import { | 7 | import { getCompleteLocale, isDefaultLocale, peertubeTranslate } from '@shared/core-utils/i18n' |
8 | getCompleteLocale, | 8 | import { SearchTargetType, ServerConfig, ServerStats, VideoConstant } from '@shared/models' |
9 | isDefaultLocale, | ||
10 | peertubeTranslate, | ||
11 | SearchTargetType, | ||
12 | ServerConfig, | ||
13 | ServerStats, | ||
14 | VideoConstant | ||
15 | } from '@shared/models' | ||
16 | import { environment } from '../../../environments/environment' | 9 | import { environment } from '../../../environments/environment' |
17 | 10 | ||
18 | @Injectable() | 11 | @Injectable() |
diff --git a/client/src/app/core/users/user.model.ts b/client/src/app/core/users/user.model.ts index a94b35c46..f0d3a08b8 100644 --- a/client/src/app/core/users/user.model.ts +++ b/client/src/app/core/users/user.model.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import { Account } from '@app/shared/shared-main/account/account.model' | 1 | import { Account } from '@app/shared/shared-main/account/account.model' |
2 | import { hasUserRight } from '@shared/core-utils/users' | ||
2 | import { | 3 | import { |
3 | Avatar, | 4 | Avatar, |
4 | hasUserRight, | ||
5 | NSFWPolicyType, | 5 | NSFWPolicyType, |
6 | User as UserServerModel, | 6 | User as UserServerModel, |
7 | UserAdminFlag, | 7 | UserAdminFlag, |