import { NgModule } from '@angular/core' ; import { CommonModule as NgCommonModule } from '@angular/common' ; import { RouterModule , Routes } from '@angular/router' ; import { FormsModule as NgFormsModule , ReactiveFormsModule , } from '@angular/forms' ; import { CommonModule } from '../../common/common.module' ; import { LegacyModule } from '../legacy/legacy.module' ; import { ModalsModule } from '../modals/modals.module' ; import { MindsFormsModule } from '../forms/forms.module' ; import { CanDeactivateGuardService } from '../../services/can-deactivate-guard' ; import { WireModule } from '../wire/wire.module' ; import { PostMenuModule } from '../../common/components/post-menu/post-menu.module' ; import { VideoModule } from './components/video/video.module' ; import { MediaModalComponent } from './modal/modal.component' ; import { ThumbnailSelectorComponent } from './components/thumbnail-selector.component' ; import { CommentsModule } from '../comments/comments.module' ; import { HashtagsModule } from '../hashtags/hashtags.module' ; import { YoutubeMigrationMarketingComponent } from './youtube-migration/marketing/marketing.component' ; import { TranslateModule } from '../translate/translate.module' ; const routes = [ { path : 'media/videos/:filter' , redirectTo : '/newsfeed/global/top' } , { path : 'media/videos' , redirectTo : '/newsfeed/global/top' , pathMatch : 'full' , } , { path : 'media/images/:filter' , redirectTo : '/newsfeed/global/top' } , { path : 'media/images' , redirectTo : '/newsfeed/global/top' , pathMatch : 'full' , } , { path : 'media/:container/:guid' , redirectTo : 'newsfeed/:guid' } , { path : 'media/:guid' , redirectTo : 'newsfeed/:guid' } , { path : 'youtube-migration' , component : YoutubeMigrationMarketingComponent , data : { title : 'YouTube Migration' , description : 'Link your accounts so that every new upload to YouTube also posts to Minds. Import your full video library to protect your content from unfair censorship and demonetization.' , ogImage : '/assets/og-images/youtube-migration-v3.png' , ogImageWidth : 1200 , ogImageHeight : 1200 , } , } , { path : 'archive/view/:container/:guid' , redirectTo : 'newsfeed/:guid' } , { path : 'archive/view/:guid' , redirectTo : 'newsfeed/:guid' } , ] ; @ NgModule ( { imports : [ NgCommonModule , RouterModule . forChild ( routes ) , NgFormsModule , ReactiveFormsModule , CommonModule , CommentsModule , LegacyModule , ModalsModule , MindsFormsModule , WireModule , PostMenuModule , VideoModule , HashtagsModule , TranslateModule , ] , declarations : [ ThumbnailSelectorComponent , MediaModalComponent ] , } ) export class MediaModule { }