Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
*
* @author Gunnar Hillert
* @author Ilayaperumal Gopinathan
* @author Damien Vitrac
*/
@NgModule({
imports: [
CommonModule,
FormsModule,
HttpClientModule,
ReactiveFormsModule,
FloModule,
ModalModule.forRoot(),
TooltipModule.forRoot(),
BsDropdownModule.forRoot(),
PopoverModule.forRoot(),
TimepickerModule.forRoot(),
NgxPaginationModule,
ToastContainerModule,
ProgressbarModule.forRoot(),
GrafanaModule,
ToastrModule.forRoot({
timeOut: 3000,
positionClass: 'toast-top-right',
preventDuplicates: true,
maxOpened: 6,
enableHtml: true
}),
LocalStorageModule.withConfig({
prefix: 'dataflow-',
storageType: 'localStorage'
})
DataflowDateTimePipe,
LoaderComponent,
DATAFLOW_PAGE,
DATAFLOW_LIST,
KvRichTextComponent,
PagerComponent,
TippyDirective
],
imports: [
FormsModule,
ReactiveFormsModule,
NgxPaginationModule,
ClipboardModule,
BsDropdownModule.forRoot(),
TooltipModule.forRoot(),
PopoverModule.forRoot(),
RouterTestingModule.withRoutes([])
],
providers: [
{ provide: TasksService, useValue: tasksService },
{ provide: ActivatedRoute, useValue: activeRoute },
{ provide: RoutingStateService, useValue: routingStateService },
{ provide: NotificationService, useValue: notificationService },
ClipboardService,
BlockerService
]
})
.compileComponents();
}));
...flowRoute,
...flowPopupRoute,
];
@NgModule({
imports: [
GatewaySharedModule,
GatewayFromEndpointModule,
GatewayToEndpointModule,
GatewayErrorEndpointModule,
RouterModule.forChild(ENTITY_STATES),
NgbModule,
NgSelectModule,
FormsModule,
ReactiveFormsModule,
PopoverModule.forRoot(),
AceEditorModule
],
exports: [
FlowComponent
],
declarations: [
FlowComponent,
FlowConfigurationComponent,
FlowDetailComponent,
FlowEditAllComponent,
FlowDialogComponent,
FlowDeleteDialogComponent,
FlowPopupComponent,
FlowDeletePopupComponent,
FlowRowComponent,
FlowLiveModeComponent
async(() => {
TestBed.configureTestingModule({
imports: [
CommonModule,
FormsModule,
RouterTestingModule.withRoutes([]),
RestangularModule.forRoot(),
ConnectionsModule,
ModalModule,
TabsModule.forRoot(),
PopoverModule.forRoot(),
CollapseModule.forRoot(),
SyndesisCommonModule.forRoot(),
CollapseModule
],
declarations: [FlowViewComponent, FlowViewStepComponent],
providers: [
MockBackend,
{
provide: RequestOptions,
useClass: BaseRequestOptions
},
{
provide: Http,
useFactory: (backend, options) => {
return new Http(backend, options);
},
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
CollapseModule,
CommonModule,
FormsModule,
SyndesisCommonModule,
ModalModule,
RouterTestingModule.withRoutes([]),
PopoverModule.forRoot(),
CollapseModule.forRoot(),
SyndesisStoreModule,
ToolbarModule
],
declarations: [
IntegrationEditPage,
ConnectionsListComponent,
FlowViewComponent,
FlowViewStepComponent
],
providers: [CurrentFlowService, NavigationService]
}).compileComponents();
}));
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
SharedModule,
RouterTestingModule,
HttpClientTestingModule,
CollapseModule.forRoot(),
PopoverModule.forRoot()
],
declarations: [
NavigationComponent,
NotificationsComponent,
LogoutComponent,
TaskManagerComponent
],
providers: [{ provide: NotificationService, useValue: fakeService }]
}).compileComponents();
}));
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [ PopoverModule.forRoot() ],
declarations: [ HelperComponent ]
})
.compileComponents();
}));
declarations: [
AuditRecordDetailsComponent,
SortComponent,
OrderByPipe,
RolesDirective,
DATAFLOW_PAGE,
DATAFLOW_LIST,
PagerComponent,
AuditRecordActionComponent,
AuditRecordOperationComponent,
DataflowDateTimePipe,
TippyDirective
],
imports: [
ModalModule.forRoot(),
PopoverModule.forRoot(),
TooltipModule.forRoot(),
BsDropdownModule.forRoot(),
NgxPaginationModule,
ReactiveFormsModule,
FormsModule,
RouterTestingModule.withRoutes([])
],
providers: [
{ provide: AuditRecordService, useValue: auditRecordService },
{ provide: AuthService, useValue: authService },
{ provide: ActivatedRoute, useValue: {
params: of({ auditRecordId: 12347 })
} },
BsModalService,
{ provide: RoutingStateService, useValue: routingStateService },
{ provide: NotificationService, useValue: notificationService },
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [SearchComponent, MapFriendlyValuesPipe, HeaderComponent, BasicSearchComponent, SearchResultsComponent],
imports: [CustomMaterialModule, ClipboardModule, PopoverModule.forRoot(), FontAwesomeModule, RouterTestingModule],
providers: [
{ provide: SearchService, useClass: SearchStubService },
{ provide: QueryBuilderService, useClass: QueryBuilderStubService },
{ provide: ProviderService, useClass: ProviderStubService },
{ provide: SearchQuery, useValue: jasmine.createSpyObj('SearchQuery', ['select', 'getValue', 'searchText']) }
]
}).compileComponents();
}));
declarations: [
AppDetailsComponent,
AppTypeComponent,
AppVersionLabelComponent,
SortComponent,
OrderByPipe,
RolesDirective,
DATAFLOW_PAGE,
DATAFLOW_LIST,
LoaderComponent,
PagerComponent,
TippyDirective
],
imports: [
ModalModule.forRoot(),
PopoverModule.forRoot(),
TooltipModule.forRoot(),
BsDropdownModule.forRoot(),
NgxPaginationModule,
ReactiveFormsModule,
FormsModule,
RouterTestingModule.withRoutes([])
],
providers: [
{ provide: AppsService, useValue: appsService },
{ provide: AuthService, useValue: authService },
{ provide: ActivatedRoute, useValue: activeRoute },
BsModalService,
{ provide: ConfirmService, useValue: confirmService },
{ provide: RoutingStateService, useValue: routingStateService },
{ provide: SharedAboutService, useValue: sharedAboutService },
{ provide: NotificationService, useValue: notificationService },