Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
imports: [
BrowserModule,
FormsModule,
HttpClientModule,
BrowserAnimationsModule,
appRoutes,
ClipboardModule,
JwBootstrapSwitchNg2Module,
TooltipModule.forRoot(),
ToastrModule.forRoot(),
ModalModule.forRoot(),
CollapseModule.forRoot(),
PopoverModule.forRoot(),
BsDropdownModule.forRoot(),
SlimLoadingBarModule.forRoot(),
BsDatepickerModule.forRoot(),
YagaModule
],
declarations: [AppComponent,
LoginComponent,
ShareLoginComponent,
GalleryComponent,
FacesComponent,
// misc
FrameComponent,
LanguageComponent,
// Gallery
GalleryLightboxMediaComponent,
GalleryPhotoLoadingComponent,
GalleryGridComponent,
GalleryDirectoryComponent,
GalleryLightboxComponent,
describe('RbdTrashMoveModalComponent', () => {
let component: RbdTrashMoveModalComponent;
let fixture: ComponentFixture;
let httpTesting: HttpTestingController;
configureTestBed({
imports: [
ReactiveFormsModule,
HttpClientTestingModule,
RouterTestingModule,
SharedModule,
ToastrModule.forRoot(),
BsDatepickerModule.forRoot()
],
declarations: [RbdTrashMoveModalComponent],
providers: [BsModalRef, BsModalService, i18nProviders]
});
beforeEach(() => {
fixture = TestBed.createComponent(RbdTrashMoveModalComponent);
component = fixture.componentInstance;
httpTesting = TestBed.get(HttpTestingController);
component.metaType = 'RBD';
component.poolName = 'foo';
component.imageName = 'bar';
});
it('should create', () => {
}
@NgModule({
imports: [
AppStoreModule,
CommonModule,
FormsModule,
HttpClientModule,
RouterModule,
SharedModule,
ClickOutsideModule,
GuardsModule,
BrowserAnimationsModule,
NotificationsModule,
AlertModule.forRoot(),
BsDatepickerModule.forRoot(),
BsDropdownModule.forRoot(),
PopoverModule.forRoot(),
ModalModule.forRoot(),
TimepickerModule.forRoot(),
TypeaheadModule.forRoot(),
DeviceDetectorModule.forRoot(),
],
declarations: [HomeComponent, RedirectComponent],
providers: [
{
provide: ErrorHandler,
useClass: SentryErrorHandler,
},
httpInterceptorProviders,
CollectionService,
DocumentService,
entryComponents: [
RbdDetailsComponent,
RbdSnapshotFormComponent,
RbdTrashMoveModalComponent,
RbdTrashRestoreModalComponent,
RbdTrashPurgeModalComponent
],
imports: [
CommonModule,
MirroringModule,
FormsModule,
ReactiveFormsModule,
TabsModule.forRoot(),
ProgressbarModule.forRoot(),
BsDropdownModule.forRoot(),
BsDatepickerModule.forRoot(),
TooltipModule.forRoot(),
ModalModule.forRoot(),
SharedModule,
RouterModule
],
declarations: [
RbdListComponent,
IscsiComponent,
RbdDetailsComponent,
RbdFormComponent,
RbdSnapshotListComponent,
RbdSnapshotFormComponent,
RbdTrashListComponent,
RbdTrashMoveModalComponent,
RbdImagesComponent,
RbdTrashRestoreModalComponent,
import { UserPasswordFormComponent } from './user-password-form/user-password-form.component';
import { UserTabsComponent } from './user-tabs/user-tabs.component';
@NgModule({
imports: [
BsDropdownModule.forRoot(),
ButtonsModule.forRoot(),
CommonModule,
FormsModule,
PopoverModule.forRoot(),
ReactiveFormsModule,
SharedModule,
TabsModule.forRoot(),
RouterModule,
NgBootstrapFormValidationModule,
BsDatepickerModule.forRoot()
],
declarations: [
LoginComponent,
RoleDetailsComponent,
RoleFormComponent,
RoleListComponent,
SsoNotFoundComponent,
UserTabsComponent,
UserListComponent,
UserFormComponent,
UserPasswordFormComponent
]
})
export class AuthModule {}
const routes: Routes = [
locales.forEach((locale: LocaleData) => {
if (!locale.abbr) {
return;
}
defineLocale(locale.abbr, locale);
});
@NgModule({
declarations: [
DatepickerSectionComponent,
...DEMO_COMPONENTS
],
imports: [
DatepickerModule.forRoot(),
BsDatepickerModule.forRoot(),
TabsModule.forRoot(),
CommonModule,
FormsModule,
ReactiveFormsModule,
DocsModule,
RouterModule.forChild(routes)
],
exports: [DatepickerSectionComponent],
entryComponents: [...DEMO_COMPONENTS]
})
export class DemoDatepickerModule {}
const DASHBOARD_INDEX_ROUTE = [
{path: '', component: DashboardIndexComponent}
];
@NgModule({
declarations: [
DashboardIndexComponent
],
imports: [
CommonModule,
AngularEchartsModule,
TooltipModule.forRoot(),
BsDropdownModule.forRoot(),
BsDatepickerModule.forRoot(),
ModalModule.forRoot(),
RouterModule.forChild(DASHBOARD_INDEX_ROUTE)
],
providers: []
})
export class DashboardIndexModule {
}
import { routedComponents, ProgramsRoutingModule } from './programs-routing.module';
import { ProgramsService } from './programs.service';
import { ProgramPlayInfoComponent } from './program-play-info.component';
@NgModule({
imports: [
CommonModule,
FormsModule,
ReactiveFormsModule,
LoadingBarModule.forRoot(),
LoadingBarHttpClientModule,
LoadingBarRouterModule,
HotkeyModule,
ToastModule.forRoot(),
CollapseModule.forRoot(),
BsDatepickerModule.forRoot(),
BsDropdownModule.forRoot(),
ModalModule.forRoot(),
PaginationModule.forRoot(),
TabsModule.forRoot(),
ContextMenuModule.forRoot({
useBootstrap4: true,
autoFocus: true,
}),
CommentModule,
SharedModule,
PlayerModule,
ProgramsRoutingModule,
],
declarations: [
routedComponents,
ProgramPlayInfoComponent,
}]
}),
NgxPermissionsModule.forRoot(),
TokenModule.forRoot({
withoutTokenUrls: [
'/api/account/info',
'/api/account/login'
]
}),
AccountModule.forRoot(),
ThemesModule.forRoot(),
RouterModule.forRoot(AppRoutes, { preloadingStrategy: PreloadAllModules, initialNavigation: 'enabled' }),
ModalModule.forRoot(),
AuthModalModule,
NavbarModule,
BsDatepickerModule.forRoot()
],
providers: [
{ provide: ErrorHandler, useClass: CustomErrorHandler },
ErrorsExtractor,
AccountConfig,
GroupsConfig,
PermissionsConfig,
ContentTypesConfig,
UsersConfig,
BsLocaleService
],
bootstrap: [AppComponent]
})
export class AppModule {
}
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
ReactiveFormsModule,
NoopAnimationsModule,
BsDatepickerModule.forRoot(),
TextMaskModule,
DynamicFormsCoreModule
],
declarations: [DynamicBootstrapDatePickerComponent]
}).compileComponents().then(() => {
fixture = TestBed.createComponent(DynamicBootstrapDatePickerComponent);
component = fixture.componentInstance;
debugElement = fixture.debugElement;
});
}));