Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
PreviewComponent,
ThemesComponent,
PopupComponent
],
imports: [
BrowserModule,
BrowserAnimationsModule,
HttpClientModule,
AppRoutingModule,
SharedModule,
NgxsModule.forRoot([
AppState,
UserState,
ErrorState
], { developmentMode: !environment.production }),
NgxsReduxDevtoolsPluginModule.forRoot({ disabled: environment.production }),
NgxsLoggerPluginModule.forRoot({ disabled: true }), // it logs too much, enable only when needed
SitesModule,
SitesSharedModule
],
providers: [
{provide: ErrorHandler, useClass: SentryErrorHandler}
],
bootstrap: [AppComponent]
})
export class AppModule { }
import { IEnvironment } from '@env/ienvironment';
import { NgxsReduxDevtoolsPluginModule } from '@ngxs/devtools-plugin';
import { NgxsLoggerPluginModule } from '@ngxs/logger-plugin';
import sharedEnvironment from './base';
export const environment: IEnvironment = {
...sharedEnvironment,
production: false,
envName: 'dev',
REMOTE_CONFIG_URL: '/assets/data/ui-config.json',
DOCS_BASE_URL: 'http://localhost:8000',
API_BASE_URL: 'http://localhost:3000/api',
WS_EVENT_BUS_URL: 'ws://localhost:3000/eventbus',
plugins: [NgxsReduxDevtoolsPluginModule.forRoot({ maxAge: 10 }), NgxsLoggerPluginModule.forRoot()],
auth: {
// clientId: 'ngxweb',
// issuer: 'http://localhost:8080/auth/realms/ngx',
// issuer: 'https://keycloak.kashmora.com/auth/realms/ngx',
// issuer: 'https://keycloak.traefik.k8s/auth/realms/ngx',
clientId: '791772336084-vkt37abstm1du92ofdmhgi30vgd7t0oa.apps.googleusercontent.com',
issuer: 'https://accounts.google.com',
},
};
/*
* For easier debugging in development mode, you can import the following file
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
*
SettingsModule,
UserModule,
FeatureFlagModule.forRoot(),
NotImplementedModule,
FeedbackDrawerModule,
MatBadgeModule,
NgxsModule.forRoot([AppState, BookmarksState, LastPersonsState, CommonPersonsState, SearchState, TableState], {
// TODO: Fix https://github.com/T-Systems-MMS/phonebook/issues/95 first.
// developmentMode: !environment.production
}),
NgxsStoragePluginModule.forRoot({
key: ['appstate', 'bookmarks', 'commonpersons', 'lastpersons', 'tablestate']
}),
NgxsRouterPluginModule.forRoot(),
NgxsLoggerPluginModule.forRoot({ disabled: environment.production }),
NgxsReduxDevtoolsPluginModule.forRoot({ disabled: environment.production }),
AddFilterModule,
TableModule,
ApiModule,
// Has to be included here because of https://stackoverflow.com/a/41519512/9277073
FeedbackDrawerModule,
DragDropModule,
ApiModule,
IeWarningModule,
PlatformModule,
// Pages
UserPagesModule
],
providers: [
{
provide: TRANSLATIONS,
useFactory: (locale: string) => {
declarations: [
...COMPONENTS
],
imports: [
...MODULES,
NgxsModule.forRoot(states),
NgxsLoggerPluginModule.forRoot({
collapsed: false,
logger: console
}),
NgxsStoragePluginModule.forRoot({
key: ['prefs', 'layout', 'window'],
storage: StorageOption.LocalStorage
}),
NgxsReduxDevtoolsPluginModule.forRoot({disabled: !window['DEV_MODE']}),
RouterModule.forRoot(ROUTES, { enableTracing: false, useHash: true })
],
providers: [
...SERVICES
]
})
export class EL3270Module { }
imports: [
...MODULES,
ContextMenuModule.forRoot({
autoFocus: true
}),
NgxsModule.forRoot(states),
NgxsLoggerPluginModule.forRoot({
collapsed: false,
logger: console
}),
NgxsStoragePluginModule.forRoot({
key: ['fscolor', 'fslog', 'layout', 'prefs', 'views', 'window'],
storage: StorageOption.LocalStorage
}),
NgxsReduxDevtoolsPluginModule.forRoot({disabled: !window['DEV_MODE']})
],
providers: [
...SERVICES
]
})
export class ELFileModule { }
import { CommonModule } from '@angular/common';
import { NgxsModule } from '@ngxs/store';
import { NgxsLoggerPluginModule } from '@ngxs/logger-plugin';
import { NgxsReduxDevtoolsPluginModule } from '@ngxs/devtools-plugin';
import {
DEVTOOLS_REDUX_CONFIG,
LOGGER_CONFIG,
OPTIONS_CONFIG,
STATES_MODULES
} from './store.config';
@NgModule({
imports: [
CommonModule,
NgxsModule.forRoot(STATES_MODULES, OPTIONS_CONFIG),
NgxsReduxDevtoolsPluginModule.forRoot(DEVTOOLS_REDUX_CONFIG),
NgxsLoggerPluginModule.forRoot(LOGGER_CONFIG)
],
exports: [NgxsModule]
})
export class NgxsStoreModule {}
import { states } from './app.state';
@NgModule({
declarations: [AppComponent],
imports: [
BrowserModule,
FormsModule,
ReactiveFormsModule,
RouterModule.forRoot(routes),
NgxsModule.forRoot(states, { developmentMode: !environment.production }),
NgxsStoragePluginModule.forRoot({
key: ['todos.todo']
}),
NgxsFormPluginModule.forRoot(),
NgxsLoggerPluginModule.forRoot({ logger: console, collapsed: false }),
NgxsReduxDevtoolsPluginModule.forRoot({
disabled: environment.production
})
],
bootstrap: [AppComponent]
})
export class AppModule {}
imports: [
CommonModule,
BrowserModule,
BrowserAnimationsModule,
HttpClientModule,
AuthModule.forRoot(),
AppRoutingModule,
NgxsModule.forRoot(AppStates, {
developmentMode: !environment.production,
}),
NgxsStoragePluginModule.forRoot({
key: ['auth.status', 'books'],
}),
NgxsRouterPluginModule.forRoot(),
NgxsReduxDevtoolsPluginModule.forRoot({
name: 'Ngxs Book Store DevTools',
}),
NgxsLoggerPluginModule.forRoot({
disabled: environment.production,
}),
CoreModule.forRoot(),
],
bootstrap: [AppComponent],
})
export class AppModule {}
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { NgxsModule } from '@ngxs/store';
import { NgxsReduxDevtoolsPluginModule } from '@ngxs/devtools-plugin';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
NgxsModule.forRoot(),
NgxsReduxDevtoolsPluginModule.forRoot()
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }