Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
declarations: [AppComponent],
imports: [
BrowserModule,
// TODO - commenting this out for now as it seems to prevent the angular router from clearing it's child elements on route changes
//BrowserAnimationsModule,
FormsModule,
ReactiveFormsModule,
HttpModule,
DynamicFormsCoreModule.forRoot(),
RestangularModule.forRoot([ConfigService], restangularProviderConfigurer),
TabsModule.forRoot(),
TooltipModule.forRoot(),
ModalModule.forRoot(),
BsDropdownModule.forRoot(),
CollapseModule.forRoot(),
AlertModule.forRoot(),
PopoverModule.forRoot(),
TypeaheadModule.forRoot(),
TagInputModule,
AppRoutingModule,
StoreModule,
SyndesisCommonModule.forRoot(),
DataMapperModule,
NotificationModule,
TourNgxBootstrapModule.forRoot()
],
providers: [
{
provide: APP_INITIALIZER,
useFactory: appInitializer,
deps: [ConfigService],
multi: true
declarations: [
AppComponent,
AssetTableComponent,
EntryDetailsComponent,
TradeDetailsComponent,
ExitDetailsComponent,
SLDetailsComponent,
SymbolValidatorDirective,
LogInComponent,
],
imports: [
// CollapseModule.forRoot(),
TypeaheadModule.forRoot(),
ButtonsModule.forRoot(),
ModalModule.forRoot(),
AlertModule.forRoot(),
TooltipModule.forRoot(),
BrowserModule,
HttpClientModule,
TradesRoutingModule,
FormsModule
],
providers: [WebsocketService,
{
provide: HTTP_INTERCEPTORS,
useClass: AuthInterceptor,
multi: true
}],
bootstrap: [AppComponent]
// schemas: schemas
})
export class AppModule {
import { PublicModule } from './public/public.module';
import { CoreModule } from './core/core.module';
import { AppRoutingModule } from './app.routing.module';
import { HashLocationStrategy,LocationStrategy} from '@angular/common';
import { CommonFunctionModule } from './common/common.function.module';
@NgModule({
declarations: [
AppComponent,
],
imports: [
BrowserModule,
FormsModule,
HttpModule,
ModalModule.forRoot(),
AlertModule.forRoot(),
PublicModule,
BusinessModule,
AppRoutingModule,
CoreModule,
CommonFunctionModule,
],
providers: [{provide: LocationStrategy, useClass: HashLocationStrategy}],
bootstrap: [AppComponent]
})
export class AppModule { }
describe('GrafanaComponent', () => {
let component: GrafanaComponent;
let fixture: ComponentFixture;
configureTestBed({
declarations: [GrafanaComponent, InfoPanelComponent, LoadingPanelComponent],
imports: [AlertModule.forRoot(), HttpClientModule, RouterTestingModule],
providers: [CephReleaseNamePipe, SettingsService, SummaryService]
});
beforeEach(() => {
fixture = TestBed.createComponent(GrafanaComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { StreamsDestroyComponent } from './streams-destroy/streams-destroy.component';
import { StreamHistoryComponent } from './stream/history/stream-history.component';
import { StreamHistoryStatusComponent } from './components/stream-history-status/stream-status.component';
import { PropertiesGroupsDialogComponent } from '../shared/flo/properties-groups/properties-groups-dialog.component';
import { StreamsUtilsComponent } from './streams-utils/streams-utils.component';
import { StreamsImportComponent } from './streams-utils/streams-import/streams-import.component';
import { StreamsExportComponent } from './streams-utils/streams-export/streams-export.component';
import { StreamsUtilsService } from './streams-utils/streams-utils.service';
@NgModule({
imports: [
StreamsRoutingModule,
SharedModule,
NgxPaginationModule,
ReactiveFormsModule,
AlertModule.forRoot(),
ModalModule.forRoot(),
PopoverModule.forRoot(),
TooltipModule.forRoot(),
BsDropdownModule.forRoot(),
AppsModule,
FloModule,
AuthModule,
ProgressbarModule,
],
declarations: [
StreamsComponent,
StreamCreateComponent,
StreamComponent,
StreamDeployComponent,
StreamCreateDialogComponent,
StreamPropertiesDialogComponent,
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { AliasesComponent } from './aliases.component';
import { AlertModule } from 'ngx-bootstrap';
import { HeaderModule } from '../shared/modules/header.module';
import { AliasesRouting } from './aliases.routing';
import { CustomMaterialModule } from '../shared/modules/material.module';
import { RefreshAlertModule } from '../shared/alert/alert.module';
import { FlexLayoutModule } from '@angular/flex-layout';
@NgModule({
imports: [CommonModule, AlertModule.forRoot(), HeaderModule, AliasesRouting, CustomMaterialModule, RefreshAlertModule, FlexLayoutModule],
declarations: [AliasesComponent],
exports: [AliasesComponent]
})
export class AliasesModule {}
@NgModule({
declarations: [
AppComponent,
NavComponent,
LandingComponent
],
imports: [
BrowserModule,
FormsModule,
HttpModule,
AppRoutingModule,
NgsRevealModule.forRoot(),
ScrollSpyModule.forRoot(),
Ng2PageScrollModule.forRoot(),
AlertModule.forRoot()
],
providers: [{ provide: LocationStrategy, useClass: HashLocationStrategy }],
bootstrap: [AppComponent]
})
export class AppModule { }
beforeEach(() => {
TestBed.configureTestingModule({
imports: [AlertModule.forRoot(), FormsModule],
providers: [
ChangeDetectorRef,
ModalErrorWindowComponent,
],
declarations: [
ConstantFieldEditComponent,
DataMapperErrorComponent,
ModalErrorWindowComponent
],
}).overrideModule(BrowserDynamicTestingModule, {
set: {
entryComponents: [
ConstantFieldEditComponent
],
}
});
@NgModule({
imports: [
CommonModule,
FormsModule,
RepositoryModule,
SelectModule,
WineryDuplicateValidatorModule,
WineryLoaderModule,
WineryModalModule,
WineryTableModule,
WineryUploaderModule,
WineryNamespaceSelectorModule,
WineryFileComparisonModule,
ProgressbarModule.forRoot(),
AlertModule.forRoot(),
AccordionModule.forRoot(),
CollapseModule.forRoot(),
ModalModule.forRoot(),
AdminRouterModule
],
declarations: [
NamespacesComponent,
LoggerComponent,
TypeWithShortNameComponent,
ConsistencyCheckComponent,
ErrorElementToLinkPipe,
AccountabilityComponent,
AuthorizationComponent,
AuthenticationComponent,
ConfigurationComponent,
ProvenanceComponent
BlockCopyModule,
CardModule,
InlineCopyModule,
InlineNotificationModule,
ListModule,
PaginationModule,
ToastNotificationListModule,
ToastNotificationModule,
ToolbarModule,
} from 'patternfly-ng';
import { CodemirrorModule } from 'ng2-codemirror';
const imports = [
ActionModule,
AlertModule.forRoot(),
BlockCopyModule,
BsDropdownModule.forRoot(),
CardModule,
CodemirrorModule,
CollapseModule.forRoot(),
FileUploadModule,
InlineCopyModule,
InlineNotificationModule,
ListModule,
ModalModule.forRoot(),
PopoverModule.forRoot(),
ToastNotificationListModule,
ToastNotificationModule,
ToolbarModule,
TooltipModule.forRoot(),
TypeaheadModule.forRoot(),