diff options
author | Chocobozzz <me@florianbigard.com> | 2020-06-23 14:10:17 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-06-23 16:00:49 +0200 |
commit | 67ed6552b831df66713bac9e672738796128d33f (patch) | |
tree | 59c97d41e0b49d75a90aa3de987968ab9b1ff447 /client/src/app/+admin/system | |
parent | 0c4bacbff53bc732f5a2677d62a6ead7752e2405 (diff) | |
download | PeerTube-67ed6552b831df66713bac9e672738796128d33f.tar.gz PeerTube-67ed6552b831df66713bac9e672738796128d33f.tar.zst PeerTube-67ed6552b831df66713bac9e672738796128d33f.zip |
Reorganize client shared modules
Diffstat (limited to 'client/src/app/+admin/system')
-rw-r--r-- | client/src/app/+admin/system/debug/debug.component.ts | 4 | ||||
-rw-r--r-- | client/src/app/+admin/system/debug/debug.service.ts | 7 | ||||
-rw-r--r-- | client/src/app/+admin/system/index.ts | 1 | ||||
-rw-r--r-- | client/src/app/+admin/system/jobs/job.service.ts | 9 | ||||
-rw-r--r-- | client/src/app/+admin/system/jobs/jobs.component.ts | 12 | ||||
-rw-r--r-- | client/src/app/+admin/system/logs/log-row.model.ts | 2 | ||||
-rw-r--r-- | client/src/app/+admin/system/logs/logs.component.ts | 6 | ||||
-rw-r--r-- | client/src/app/+admin/system/logs/logs.service.ts | 9 | ||||
-rw-r--r-- | client/src/app/+admin/system/system.routes.ts | 12 |
9 files changed, 29 insertions, 33 deletions
diff --git a/client/src/app/+admin/system/debug/debug.component.ts b/client/src/app/+admin/system/debug/debug.component.ts index 8a77f79f7..a88d837f3 100644 --- a/client/src/app/+admin/system/debug/debug.component.ts +++ b/client/src/app/+admin/system/debug/debug.component.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import { Component, OnInit } from '@angular/core' | 1 | import { Component, OnInit } from '@angular/core' |
2 | import { Notifier } from '@app/core' | 2 | import { Notifier } from '@app/core' |
3 | import { Debug } from '@shared/models/server' | 3 | import { Debug } from '@shared/models' |
4 | import { DebugService } from '@app/+admin/system/debug/debug.service' | 4 | import { DebugService } from './debug.service' |
5 | 5 | ||
6 | @Component({ | 6 | @Component({ |
7 | templateUrl: './debug.component.html', | 7 | templateUrl: './debug.component.html', |
diff --git a/client/src/app/+admin/system/debug/debug.service.ts b/client/src/app/+admin/system/debug/debug.service.ts index 6c722d177..ab1d0a7fa 100644 --- a/client/src/app/+admin/system/debug/debug.service.ts +++ b/client/src/app/+admin/system/debug/debug.service.ts | |||
@@ -1,10 +1,10 @@ | |||
1 | import { Observable } from 'rxjs' | ||
1 | import { catchError } from 'rxjs/operators' | 2 | import { catchError } from 'rxjs/operators' |
2 | import { HttpClient } from '@angular/common/http' | 3 | import { HttpClient } from '@angular/common/http' |
3 | import { Injectable } from '@angular/core' | 4 | import { Injectable } from '@angular/core' |
4 | import { Observable } from 'rxjs' | 5 | import { RestExtractor } from '@app/core' |
6 | import { Debug } from '@shared/models' | ||
5 | import { environment } from '../../../../environments/environment' | 7 | import { environment } from '../../../../environments/environment' |
6 | import { RestExtractor, RestService } from '../../../shared' | ||
7 | import { Debug } from '@shared/models/server' | ||
8 | 8 | ||
9 | @Injectable() | 9 | @Injectable() |
10 | export class DebugService { | 10 | export class DebugService { |
@@ -12,7 +12,6 @@ export class DebugService { | |||
12 | 12 | ||
13 | constructor ( | 13 | constructor ( |
14 | private authHttp: HttpClient, | 14 | private authHttp: HttpClient, |
15 | private restService: RestService, | ||
16 | private restExtractor: RestExtractor | 15 | private restExtractor: RestExtractor |
17 | ) {} | 16 | ) {} |
18 | 17 | ||
diff --git a/client/src/app/+admin/system/index.ts b/client/src/app/+admin/system/index.ts index 226d999d2..8cced0cdb 100644 --- a/client/src/app/+admin/system/index.ts +++ b/client/src/app/+admin/system/index.ts | |||
@@ -1,3 +1,4 @@ | |||
1 | export * from './debug' | ||
1 | export * from './jobs' | 2 | export * from './jobs' |
2 | export * from './logs' | 3 | export * from './logs' |
3 | export * from './system.component' | 4 | export * from './system.component' |
diff --git a/client/src/app/+admin/system/jobs/job.service.ts b/client/src/app/+admin/system/jobs/job.service.ts index 1e2291ad1..1ac50f050 100644 --- a/client/src/app/+admin/system/jobs/job.service.ts +++ b/client/src/app/+admin/system/jobs/job.service.ts | |||
@@ -1,12 +1,11 @@ | |||
1 | import { SortMeta } from 'primeng/api' | ||
2 | import { Observable } from 'rxjs' | ||
1 | import { catchError, map } from 'rxjs/operators' | 3 | import { catchError, map } from 'rxjs/operators' |
2 | import { HttpClient, HttpParams } from '@angular/common/http' | 4 | import { HttpClient, HttpParams } from '@angular/common/http' |
3 | import { Injectable } from '@angular/core' | 5 | import { Injectable } from '@angular/core' |
4 | import { SortMeta } from 'primeng/api' | 6 | import { RestExtractor, RestPagination, RestService } from '@app/core' |
5 | import { Observable } from 'rxjs' | 7 | import { Job, ResultList } from '@shared/models' |
6 | import { ResultList } from '../../../../../../shared' | ||
7 | import { Job } from '../../../../../../shared/models/server/job.model' | ||
8 | import { environment } from '../../../../environments/environment' | 8 | import { environment } from '../../../../environments/environment' |
9 | import { RestExtractor, RestPagination, RestService } from '../../../shared' | ||
10 | import { JobStateClient } from '../../../../types/job-state-client.type' | 9 | import { JobStateClient } from '../../../../types/job-state-client.type' |
11 | import { JobTypeClient } from '../../../../types/job-type-client.type' | 10 | import { JobTypeClient } from '../../../../types/job-type-client.type' |
12 | 11 | ||
diff --git a/client/src/app/+admin/system/jobs/jobs.component.ts b/client/src/app/+admin/system/jobs/jobs.component.ts index 4f7f7c368..38a78de33 100644 --- a/client/src/app/+admin/system/jobs/jobs.component.ts +++ b/client/src/app/+admin/system/jobs/jobs.component.ts | |||
@@ -1,14 +1,12 @@ | |||
1 | import { Component, OnInit } from '@angular/core' | ||
2 | import { peertubeLocalStorage } from '@app/shared/misc/peertube-web-storage' | ||
3 | import { Notifier } from '@app/core' | ||
4 | import { SortMeta } from 'primeng/api' | 1 | import { SortMeta } from 'primeng/api' |
5 | import { Job, JobType } from '../../../../../../shared/index' | 2 | import { Component, OnInit } from '@angular/core' |
6 | import { JobState } from '../../../../../../shared/models' | 3 | import { Notifier, RestPagination, RestTable } from '@app/core' |
7 | import { RestPagination, RestTable } from '../../../shared' | 4 | import { peertubeLocalStorage } from '@app/helpers/peertube-web-storage' |
8 | import { JobService } from './job.service' | ||
9 | import { I18n } from '@ngx-translate/i18n-polyfill' | 5 | import { I18n } from '@ngx-translate/i18n-polyfill' |
6 | import { Job, JobState, JobType } from '@shared/models' | ||
10 | import { JobStateClient } from '../../../../types/job-state-client.type' | 7 | import { JobStateClient } from '../../../../types/job-state-client.type' |
11 | import { JobTypeClient } from '../../../../types/job-type-client.type' | 8 | import { JobTypeClient } from '../../../../types/job-type-client.type' |
9 | import { JobService } from './job.service' | ||
12 | 10 | ||
13 | @Component({ | 11 | @Component({ |
14 | selector: 'my-jobs', | 12 | selector: 'my-jobs', |
diff --git a/client/src/app/+admin/system/logs/log-row.model.ts b/client/src/app/+admin/system/logs/log-row.model.ts index b22581b5a..615778210 100644 --- a/client/src/app/+admin/system/logs/log-row.model.ts +++ b/client/src/app/+admin/system/logs/log-row.model.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { LogLevel } from '@shared/models/server/log-level.type' | 1 | import { LogLevel } from '@shared/models' |
2 | import omit from 'lodash-es/omit' | 2 | import omit from 'lodash-es/omit' |
3 | 3 | ||
4 | export class LogRow { | 4 | export class LogRow { |
diff --git a/client/src/app/+admin/system/logs/logs.component.ts b/client/src/app/+admin/system/logs/logs.component.ts index b63f11953..51f047188 100644 --- a/client/src/app/+admin/system/logs/logs.component.ts +++ b/client/src/app/+admin/system/logs/logs.component.ts | |||
@@ -1,9 +1,9 @@ | |||
1 | import { Component, ElementRef, OnInit, ViewChild } from '@angular/core' | 1 | import { Component, ElementRef, OnInit, ViewChild } from '@angular/core' |
2 | import { LogsService } from '@app/+admin/system/logs/logs.service' | ||
3 | import { Notifier } from '@app/core' | 2 | import { Notifier } from '@app/core' |
4 | import { LogRow } from '@app/+admin/system/logs/log-row.model' | ||
5 | import { I18n } from '@ngx-translate/i18n-polyfill' | 3 | import { I18n } from '@ngx-translate/i18n-polyfill' |
6 | import { LogLevel } from '@shared/models/server/log-level.type' | 4 | import { LogLevel } from '@shared/models' |
5 | import { LogRow } from './log-row.model' | ||
6 | import { LogsService } from './logs.service' | ||
7 | 7 | ||
8 | @Component({ | 8 | @Component({ |
9 | templateUrl: './logs.component.html', | 9 | templateUrl: './logs.component.html', |
diff --git a/client/src/app/+admin/system/logs/logs.service.ts b/client/src/app/+admin/system/logs/logs.service.ts index 41b38c7ba..69439a179 100644 --- a/client/src/app/+admin/system/logs/logs.service.ts +++ b/client/src/app/+admin/system/logs/logs.service.ts | |||
@@ -1,11 +1,11 @@ | |||
1 | import { Observable } from 'rxjs' | ||
1 | import { catchError, map } from 'rxjs/operators' | 2 | import { catchError, map } from 'rxjs/operators' |
2 | import { HttpClient, HttpParams } from '@angular/common/http' | 3 | import { HttpClient, HttpParams } from '@angular/common/http' |
3 | import { Injectable } from '@angular/core' | 4 | import { Injectable } from '@angular/core' |
4 | import { Observable } from 'rxjs' | 5 | import { RestExtractor } from '@app/core' |
6 | import { LogLevel } from '@shared/models' | ||
5 | import { environment } from '../../../../environments/environment' | 7 | import { environment } from '../../../../environments/environment' |
6 | import { RestExtractor, RestService } from '../../../shared' | 8 | import { LogRow } from './log-row.model' |
7 | import { LogRow } from '@app/+admin/system/logs/log-row.model' | ||
8 | import { LogLevel } from '@shared/models/server/log-level.type' | ||
9 | 9 | ||
10 | @Injectable() | 10 | @Injectable() |
11 | export class LogsService { | 11 | export class LogsService { |
@@ -14,7 +14,6 @@ export class LogsService { | |||
14 | 14 | ||
15 | constructor ( | 15 | constructor ( |
16 | private authHttp: HttpClient, | 16 | private authHttp: HttpClient, |
17 | private restService: RestService, | ||
18 | private restExtractor: RestExtractor | 17 | private restExtractor: RestExtractor |
19 | ) {} | 18 | ) {} |
20 | 19 | ||
diff --git a/client/src/app/+admin/system/system.routes.ts b/client/src/app/+admin/system/system.routes.ts index 2d851794d..0e8d98519 100644 --- a/client/src/app/+admin/system/system.routes.ts +++ b/client/src/app/+admin/system/system.routes.ts | |||
@@ -1,10 +1,10 @@ | |||
1 | import { Routes } from '@angular/router' | 1 | import { Routes } from '@angular/router' |
2 | import { UserRightGuard } from '../../core' | 2 | import { UserRightGuard } from '@app/core' |
3 | import { UserRight } from '../../../../../shared' | 3 | import { UserRight } from '@shared/models' |
4 | import { JobsComponent } from '@app/+admin/system/jobs/jobs.component' | 4 | import { DebugComponent } from './debug' |
5 | import { LogsComponent } from '@app/+admin/system/logs' | 5 | import { JobsComponent } from './jobs/jobs.component' |
6 | import { SystemComponent } from '@app/+admin/system/system.component' | 6 | import { LogsComponent } from './logs' |
7 | import { DebugComponent } from '@app/+admin/system/debug' | 7 | import { SystemComponent } from './system.component' |
8 | 8 | ||
9 | export const SystemRoutes: Routes = [ | 9 | export const SystemRoutes: Routes = [ |
10 | { | 10 | { |