Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
declarations: [
App
],
imports: [ // import Angular's modules
BrowserModule,
// shown passing optional global defaults
AdsenseModule.forRoot({
adClient: 'ca-pub-5721689054603180',
adSlot: 6949772221,
}),
HttpClientModule,
RouterModule,
FormsModule,
ReactiveFormsModule,
NgaModule.forRoot(),
TooltipModule.forRoot(),
SimpleNotificationsModule.forRoot(),
MarkdownModule.forRoot(),
PagesModule,
ApiModule,
ApiModuleCoin,
TranslateModule.forRoot(),
routing
],
providers: [ // expose our Services and Providers into Angular's dependency injection
ENV_PROVIDERS,
APP_PROVIDERS,
{provide: user.BASE_PATH, useValue: baseUrl + "/user/api"},
{provide: b2bcoin.BASE_PATH, useValue: baseUrl + "/b2bcoin/api"}
]
})
import {CommonModule} from "@angular/common";
import {RouterModule} from '@angular/router';
import {HttpErrorComponent} from './http-error/http-error.component';
import {ConfirmationDialogComponent} from "./confirm-dialog/confirm-dialog.component";
import {AlertDialogComponent} from "./alert-dialog/alert-dialog.component";
import {InfoLabelComponent} from "./info-label/info-label-component";
import {SpinnerComponent} from './spinner/spinner.component';
import {MaterialModule} from "../theme/material.module";
import {TooltipModule} from "ngx-bootstrap";
@NgModule({
imports: [
CommonModule,
MaterialModule,
TooltipModule.forRoot(),
RouterModule
],
exports: [
ConfirmationDialogComponent,
AlertDialogComponent,
InfoLabelComponent,
SpinnerComponent,
HttpErrorComponent
],
declarations: [
ConfirmationDialogComponent,
AlertDialogComponent,
InfoLabelComponent,
SpinnerComponent,
HttpErrorComponent
],
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { TooltipModule } from 'ngx-bootstrap';
import { ConnectedAccountsRoutingModule } from './connected-accounts-routing.module';
import { ConnectedAccountsComponent } from './connected-accounts.component';
import { TenantService } from '../../services/tenant.service';
@NgModule({
imports: [RouterModule, CommonModule, ConnectedAccountsRoutingModule, TooltipModule.forRoot()],
declarations: [ConnectedAccountsComponent],
providers: [TenantService],
exports: [ConnectedAccountsComponent],
})
export class ConnectedAccountsModule {}
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [TooltipModule.forRoot()],
declarations: [PersonItemMetadataListElementComponent],
schemas: [NO_ERRORS_SCHEMA]
}).overrideComponent(PersonItemMetadataListElementComponent, {
set: { changeDetection: ChangeDetectionStrategy.Default }
}).compileComponents();
}));
TestBed.configureTestingModule({
declarations: [
AppsAddComponent,
DATAFLOW_PAGE,
DATAFLOW_LIST,
PagerComponent,
TippyDirective
],
imports: [
ModalModule.forRoot(),
PopoverModule.forRoot(),
ReactiveFormsModule,
FormsModule,
NgxPaginationModule,
BsDropdownModule.forRoot(),
TooltipModule.forRoot(),
RouterTestingModule.withRoutes([])
],
providers: [
{ provide: AppsService, useValue: appsService },
{ provide: RoutingStateService, useValue: routingStateService },
{ provide: BsModalRef, useValue: bsModalRef },
{ provide: NotificationService, useValue: notificationService }
]
})
.compileComponents();
}));
ColumnWorkItemQuery,
ErrorHandler,
],
imports: [
CommonModule,
DragulaModule,
F8SortByPipeModule,
PlannerBoardRoutingModule,
PlannerBoardColumnModule,
PlannerCardModule,
PlannerLayoutModule,
PlannerModalModule,
WorkItemPreviewPanelModule,
SidepanelModule,
FeatureFlagModule,
TooltipModule.forRoot(),
StoreModule.forFeature(
'boardView',
{
boards: BoardReducer,
columnWorkItem: ColumnWorkItemReducer,
boardUi: BoardUIReducer,
},
{
initialState: {
boards: InitialBoardState,
columnWorkItem: InitialColumnWorkItemState,
boardUi: InitialBoardUIState,
},
},
),
EffectsModule.forFeature([BoardEffects]),
beforeEach(async(() => {
activeRoute = new MockActivatedRoute();
TestBed.configureTestingModule({
declarations: [
AnalyticsComponent,
DATAFLOW_PAGE,
DATAFLOW_LIST,
PagerComponent
],
imports: [
BsDropdownModule.forRoot(),
NgxPaginationModule,
ReactiveFormsModule,
FormsModule,
TooltipModule.forRoot(),
RouterTestingModule.withRoutes([])
],
providers: [
{ provide: ActivatedRoute, useValue: activeRoute }
]
})
.compileComponents();
}));
StreamDeployComponent,
PagerComponent,
DATAFLOW_PAGE,
DATAFLOW_LIST,
LoaderComponent,
AppTypeComponent,
StreamDeployFreeTextComponent,
StreamDeployBuilderComponent,
StreamDeployBuilderErrorsComponent,
FocusDirective,
TippyDirective
],
imports: [
FormsModule,
ReactiveFormsModule,
TooltipModule.forRoot(),
ModalModule.forRoot(),
BsDropdownModule.forRoot(),
NgxPaginationModule,
ClipboardModule,
RouterTestingModule.withRoutes([{ path: 'streams/definitions', component: MockComponent }])
],
providers: [
{ provide: StreamsService, useValue: streamsService },
{ provide: ActivatedRoute, useValue: activeRoute },
{ provide: SharedAboutService, useValue: sharedAboutService },
{ provide: NotificationService, useValue: notificationService },
{ provide: RoutingStateService, useValue: routingStateService },
{ provide: StreamDeployService, useValue: streamDeployService },
{ provide: LoggerService, useValue: loggerService },
ClipboardService,
BlockerService
SideMenuComponent,
TableListComponent,
App,
],
imports: [
CoreModule,
CustomPipesModule,
HttpModule,
BrowserModule,
FormsModule,
ReactiveFormsModule,
MultiselectDropdownModule,
ProgressbarModule.forRoot(),
AccordionModule.forRoot(),
TooltipModule.forRoot(),
ModalModule.forRoot(),
PaginationModule.forRoot(),
TabsModule.forRoot(),
BsDropdownModule.forRoot(),
TimepickerModule.forRoot(),
Ng2TableModule,
RouterModule.forRoot(AppRoutes)
],
providers: [
WindowRef,
ExportServiceCfg,
ValidationService,
BlockUIService
],
entryComponents: [
BlockUIComponent,
JobOutputComponent,
JobExportDialogComponent
],
imports: [
BrowserModule,
BrowserAnimationsModule,
FormsModule,
HttpModule,
MdlModule,
MdlPopoverModule,
MdlSelectModule,
GridManiaModule,
RouterModule.forRoot(ROUTES, { useHash: true }),
DatePipeModule,
BsDropdownModule.forRoot(),
TooltipModule.forRoot(),
ThemeModule,
ManageFlowsModule,
EditFlowModule,
MatchingModule
],
providers: [
AUTH_PROVIDERS,
DeployService,
EntitiesService,
InstallService,
JobService,
JobListenerService,
MapService,
ManageFlowsService,
ProjectService,
SettingsService,