mirror of https://github.com/Ombi-app/Ombi
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
3.2 KiB
82 lines
3.2 KiB
import { NgModule, } from '@angular/core';
|
|
import { CommonModule } from '@angular/common';
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
import { NgbModule, NgbAccordionModule } from '@ng-bootstrap/ng-bootstrap';
|
|
|
|
import { AuthService } from '../auth/auth.service';
|
|
import { AuthGuard } from '../auth/auth.guard';
|
|
import { AuthModule } from '../auth/auth.module';
|
|
import { SonarrService } from '../services/applications/sonarr.service';
|
|
import { RadarrService } from '../services/applications/radarr.service';
|
|
import { TesterService } from '../services/applications/tester.service';
|
|
import { ValidationService } from '../services/helpers/validation.service';
|
|
|
|
import { OmbiComponent } from './ombi/ombi.component';
|
|
import { PlexComponent } from './plex/plex.component';
|
|
import { EmbyComponent } from './emby/emby.component';
|
|
import { SonarrComponent } from './sonarr/sonarr.component';
|
|
import { RadarrComponent } from './radarr/radarr.component';
|
|
import { LandingPageComponent } from './landingpage/landingpage.component';
|
|
import { CustomizationComponent } from './customization/customization.component';
|
|
import { EmailNotificationComponent } from './notifications/emailnotification.component';
|
|
import { NotificationTemplate } from './notifications/notificationtemplate.component';
|
|
|
|
import { SettingsMenuComponent } from './settingsmenu.component';
|
|
import { HumanizePipe } from '../pipes/HumanizePipe';
|
|
|
|
import { MenuModule, InputSwitchModule, InputTextModule, TooltipModule, AutoCompleteModule } from 'primeng/primeng';
|
|
|
|
const routes: Routes = [
|
|
{ path: 'Settings/Ombi', component: OmbiComponent, canActivate: [AuthGuard] },
|
|
{ path: 'Settings/Plex', component: PlexComponent, canActivate: [AuthGuard] },
|
|
{ path: 'Settings/Emby', component: EmbyComponent, canActivate: [AuthGuard] },
|
|
{ path: 'Settings/Sonarr', component: SonarrComponent, canActivate: [AuthGuard] },
|
|
{ path: 'Settings/Radarr', component: RadarrComponent, canActivate: [AuthGuard] },
|
|
{ path: 'Settings/LandingPage', component: LandingPageComponent, canActivate: [AuthGuard] },
|
|
{ path: 'Settings/Customization', component: CustomizationComponent, canActivate: [AuthGuard] },
|
|
{ path: 'Settings/Email', component: EmailNotificationComponent, canActivate: [AuthGuard] },
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [
|
|
CommonModule,
|
|
FormsModule,
|
|
ReactiveFormsModule,
|
|
RouterModule.forChild(routes),
|
|
MenuModule,
|
|
InputSwitchModule,
|
|
InputTextModule,
|
|
AuthModule,
|
|
NgbModule,
|
|
TooltipModule,
|
|
NgbAccordionModule,
|
|
AutoCompleteModule
|
|
],
|
|
declarations: [
|
|
SettingsMenuComponent,
|
|
OmbiComponent,
|
|
PlexComponent,
|
|
EmbyComponent,
|
|
LandingPageComponent,
|
|
CustomizationComponent,
|
|
SonarrComponent,
|
|
RadarrComponent,
|
|
EmailNotificationComponent,
|
|
HumanizePipe,
|
|
NotificationTemplate
|
|
],
|
|
exports: [
|
|
RouterModule
|
|
],
|
|
providers: [
|
|
SonarrService,
|
|
AuthService,
|
|
RadarrService,
|
|
AuthGuard,
|
|
ValidationService,
|
|
TesterService
|
|
],
|
|
|
|
})
|
|
export class SettingsModule { } |