Move send video components inside a dedicated directory

This commit is contained in:
Chocobozzz 2018-08-06 15:30:24 +02:00
parent 047559af6e
commit 788487140c
9 changed files with 35 additions and 35 deletions

View File

@ -1,5 +1,5 @@
@import '_variables';
@import '_mixins';
@import 'variables';
@import 'mixins';
$width-size: 190px;
@ -17,7 +17,7 @@ $width-size: 190px;
margin-bottom: 25px;
cursor: default;
background-image: url('../../../assets/images/video/upload.svg');
background-image: url('../../../../assets/images/video/upload.svg');
}
input[type=text] {

View File

@ -1,23 +1,23 @@
import { Component, EventEmitter, OnInit, Output } from '@angular/core'
import { Router } from '@angular/router'
import { CanComponentDeactivate } from '@app/shared/guards/can-deactivate-guard.service'
import { NotificationsService } from 'angular2-notifications'
import { VideoPrivacy, VideoUpdate } from '../../../../../shared/models/videos'
import { AuthService, ServerService } from '../../core'
import { VideoService } from '../../shared/video/video.service'
import { VideoPrivacy, VideoUpdate } from '../../../../../../shared/models/videos'
import { AuthService, ServerService } from '../../../core'
import { VideoService } from '../../../shared/video/video.service'
import { I18n } from '@ngx-translate/i18n-polyfill'
import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service'
import { VideoImportService } from '@app/shared/video-import'
import { VideoEdit } from '@app/shared/video/video-edit.model'
import { LoadingBarService } from '@ngx-loading-bar/core'
import { VideoSend } from '@app/videos/+video-edit/video-add-components/video-send'
import { CanComponentDeactivate } from '@app/shared/guards/can-deactivate-guard.service'
import { VideoEdit } from '@app/shared/video/video-edit.model'
import { FormValidatorService } from '@app/shared'
import { VideoCaptionService } from '@app/shared/video-caption'
import { VideoSend } from '@app/videos/+video-edit/shared/video-send'
import { VideoImportService } from '@app/shared/video-import'
@Component({
selector: 'my-video-import-url',
templateUrl: './video-import-url.component.html',
styleUrls: [
'./shared/video-edit.component.scss',
'../shared/video-edit.component.scss',
'./video-import-url.component.scss'
]
})

View File

@ -1,16 +1,16 @@
import { FormReactive } from '@app/shared'
import { OnInit } from '@angular/core'
import { CanComponentDeactivate } from '@app/shared/guards/can-deactivate-guard.service'
import { populateAsyncUserVideoChannels } from '@app/shared/misc/utils'
import { VideoConstant, VideoPrivacy } from '../../../../../../shared/models/videos'
import { VideoCaptionEdit } from '@app/shared/video-caption/video-caption-edit.model'
import { EventEmitter, OnInit } from '@angular/core'
import { LoadingBarService } from '@ngx-loading-bar/core'
import { NotificationsService } from 'angular2-notifications'
import { catchError, switchMap, tap } from 'rxjs/operators'
import { FormReactive } from '@app/shared'
import { CanComponentDeactivate } from '@app/shared/guards/can-deactivate-guard.service'
import { VideoConstant, VideoPrivacy } from '../../../../../../shared'
import { AuthService, ServerService } from '@app/core'
import { VideoService } from '@app/shared/video/video.service'
import { VideoCaptionEdit } from '@app/shared/video-caption/video-caption-edit.model'
import { VideoCaptionService } from '@app/shared/video-caption'
import { catchError, switchMap, tap } from 'rxjs/operators'
import { VideoEdit } from '@app/shared/video/video-edit.model'
import { populateAsyncUserVideoChannels } from '@app/shared/misc/utils'
export abstract class VideoSend extends FormReactive implements OnInit, CanComponentDeactivate {
@ -21,6 +21,7 @@ export abstract class VideoSend extends FormReactive implements OnInit, CanCompo
firstStepPrivacyId = 0
firstStepChannelId = 0
abstract firstStepDone: EventEmitter<string>
protected abstract readonly DEFAULT_VIDEO_PRIVACY: VideoPrivacy
protected loadingBar: LoadingBarService

View File

@ -1,5 +1,5 @@
@import '_variables';
@import '_mixins';
@import 'variables';
@import 'mixins';
.peertube-select-container {
@include peertube-select-container(190px);
@ -20,7 +20,7 @@
margin-bottom: 25px;
cursor: default;
background-image: url('../../../assets/images/video/upload.svg');
background-image: url('../../../../assets/images/video/upload.svg');
}
.button-file {

View File

@ -1,26 +1,25 @@
import { HttpEventType, HttpResponse } from '@angular/common/http'
import { Component, EventEmitter, OnDestroy, OnInit, Output, ViewChild } from '@angular/core'
import { Router } from '@angular/router'
import { UserService } from '@app/shared'
import { CanComponentDeactivate } from '@app/shared/guards/can-deactivate-guard.service'
import { LoadingBarService } from '@ngx-loading-bar/core'
import { NotificationsService } from 'angular2-notifications'
import { BytesPipe } from 'ngx-pipes'
import { Subscription } from 'rxjs'
import { VideoPrivacy } from '../../../../../shared/models/videos'
import { AuthService, ServerService } from '../../core'
import { VideoEdit } from '../../shared/video/video-edit.model'
import { VideoService } from '../../shared/video/video.service'
import { VideoPrivacy } from '../../../../../../shared/models/videos'
import { AuthService, ServerService } from '../../../core'
import { VideoEdit } from '../../../shared/video/video-edit.model'
import { VideoService } from '../../../shared/video/video.service'
import { I18n } from '@ngx-translate/i18n-polyfill'
import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service'
import { VideoSend } from '@app/videos/+video-edit/video-add-components/video-send'
import { CanComponentDeactivate } from '@app/shared/guards/can-deactivate-guard.service'
import { FormValidatorService, UserService } from '@app/shared'
import { VideoCaptionService } from '@app/shared/video-caption'
import { VideoSend } from '@app/videos/+video-edit/shared/video-send'
@Component({
selector: 'my-video-upload',
templateUrl: './video-upload.component.html',
styleUrls: [
'./shared/video-edit.component.scss',
'../shared/video-edit.component.scss',
'./video-upload.component.scss'
]
})

View File

@ -1,7 +1,7 @@
import { Component, ViewChild } from '@angular/core'
import { CanComponentDeactivate } from '@app/shared/guards/can-deactivate-guard.service'
import { VideoImportUrlComponent } from '@app/videos/+video-edit/video-import-url.component'
import { VideoUploadComponent } from '@app/videos/+video-edit/video-upload.component'
import { VideoImportUrlComponent } from '@app/videos/+video-edit/video-add-components/video-import-url.component'
import { VideoUploadComponent } from '@app/videos/+video-edit/video-add-components/video-upload.component'
import { ServerService } from '@app/core'
@Component({

View File

@ -5,8 +5,8 @@ import { VideoEditModule } from './shared/video-edit.module'
import { VideoAddRoutingModule } from './video-add-routing.module'
import { VideoAddComponent } from './video-add.component'
import { CanDeactivateGuard } from '../../shared/guards/can-deactivate-guard.service'
import { VideoUploadComponent } from '@app/videos/+video-edit/video-upload.component'
import { VideoImportUrlComponent } from '@app/videos/+video-edit/video-import-url.component'
import { VideoUploadComponent } from '@app/videos/+video-edit/video-add-components/video-upload.component'
import { VideoImportUrlComponent } from '@app/videos/+video-edit/video-add-components/video-import-url.component'
@NgModule({
imports: [