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/jobs | |
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/jobs')
-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 |
2 files changed, 9 insertions, 12 deletions
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', |