Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
TreeTableModule,
ChartModule,
CalendarModule,
SpinnerModule,
SliderModule,
ToggleButtonModule,
TabMenuModule,
CarouselModule,
TableModule,
BlockUIModule,
/* Cytoscape network graph */
CytoscapeModule,
// Local modules
AppRoutingModule,
ArchwizardModule,
NgxMdModule.forRoot(),
/**
* store
*/
StoreModule.forRoot({
applications: ApplicationsStoreService.reducer,
environments: EnvironmentsStoreService.reducer,
graphs: GraphsStoreService.reducer,
badges: BadgesStoreService.reducer,
loaders: LoadersStoreService.reducer,
helps: HelpsStoreService.reducer,
config: ConfigStoreService.reducer,
errors: ErrorsStoreService.reducer,
}),
/**
* i18n
*/
import { DocComponent } from './doc.component';
import 'prismjs/prism';
import 'prismjs/components/prism-typescript';
const DOC_ROUTES: Routes = [
{
path: '',
component: DocComponent
}
];
@NgModule({
imports: [
CommonModule,
SharedModule,
NgxMdModule.forRoot(),
RouterModule.forChild(DOC_ROUTES)
],
declarations: [DocComponent]
})
export class DocModule { }
import { HighlightModule } from 'ngx-highlightjs';
import { NgxMdModule } from 'ngx-md';
import { SchemaFormModule } from '../../lib/schema-form.module';
import { CodeSliderComponent } from './components/code-slider/code-slider.component';
const COMPONENTS = [CodeSliderComponent];
@NgModule({
declarations: [...COMPONENTS],
imports: [
CommonModule,
FormsModule,
NgZorroAntdModule.forRoot(),
AceEditorModule,
SchemaFormModule,
HighlightModule.forRoot({ theme: 'googlecode' }),
NgxMdModule.forRoot()
],
exports: [
CommonModule,
FormsModule,
NgZorroAntdModule,
AceEditorModule,
SchemaFormModule,
NgxMdModule,
...COMPONENTS
]
})
export class SharedModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: SharedModule,
providers: []
import { AppComponent } from './app.component';
import { DemoComponent } from './demo/components/demo.component';
import { DemoModule } from './demo/demo.module';
import { ReadmeComponent } from './readme/components/readme.component';
import { ReadmeModule } from './readme/readme.module';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
DemoModule,
ReadmeModule,
NgxMdModule.forRoot(),
ImageUploadModule.forRoot(),
RouterModule.forRoot([{
path: '',
redirectTo: 'demo',
pathMatch: 'prefix'
}, {
path: 'demo',
component: DemoComponent
}, {
path: 'readme',
component: ReadmeComponent
}], { useHash: true })
],
providers: [],
bootstrap: [AppComponent]
})
@Component({
selector: 'my-app',
template: `
## HI
`,
})
export class AppComponent {
constructor() {
}
}
@NgModule({
imports: [BrowserModule, HttpClientModule, NgxMdModule.forRoot()],
declarations: [AppComponent],
bootstrap: [AppComponent]
})
export class AppModule {}
imports: [
BrowserModule,
AppRoutingModule,
BrowserModule,
NgbModule,
HttpClientModule,
TranslationModule.forRoot(l10nConfig),
AppRoutingModule,
OverlayModule,
FormsModule,
AceModule,
LMarkdownEditorModule,
ReactiveFormsModule,
BrowserAnimationsModule,
ToastrModule.forRoot(),
NgxMdModule.forRoot(),
SimplemdeModule.forRoot()
],
providers: [
{
provide: APP_BASE_HREF,
useValue: '/'
}, {
provide: ACE_CONFIG,
useValue: DEFAULT_ACE_CONFIG
},
NgbActiveModal
],
bootstrap: [AppComponent],
entryComponents: [
SpinnerComponent,
ModalDialogSignInComponent,
declarations: [
AppComponent
],
imports: [
BrowserModule,
BrowserAnimationsModule,
FormsModule,
HttpModule,
HttpClientModule,
CommonModule,
RouterModule,
AppRoutingModule,
NgZorroAntdModule.forRoot(),
DndModule.forRoot(),
LayoutModule,
NgxMdModule.forRoot(),
UIGridModule,
],
providers: [
{ provide: NZ_I18N, useValue: zh_CN },
StartUpService,
],
bootstrap: [AppComponent]
})
export class AppModule { }
import { SharedModule } from '@sunbird/shared';
import { NgxMdModule } from 'ngx-md';
import { TimeAgoPipe } from 'time-ago-pipe';
import { NoteListComponent, InlineEditorComponent, NoteCardComponent, DeleteNoteComponent, PopupEditorComponent } from './components';
import { TelemetryModule } from '@sunbird/telemetry';
import { NgInviewModule } from 'angular-inport';
@NgModule({
imports: [
CommonModule,
NotesRoutingModule,
SuiModule,
FormsModule,
OrderModule,
SharedModule,
NgxMdModule.forRoot(),
TelemetryModule,
NgInviewModule
],
declarations: [TimeAgoPipe, NoteListComponent, InlineEditorComponent,
NoteCardComponent, PopupEditorComponent, DeleteNoteComponent],
providers: [NotesService],
exports: [NoteListComponent, PopupEditorComponent, NoteCardComponent]
})
export class NotesModule { }
import { AppRoutingModule } from './app.router.module';
@NgModule({
declarations: [
AppComponent,
HomeComponent,
TablesComponent,
PathComponent,
VariableBindComponent,
TodoComponent,
],
imports: [
HttpClientModule,
BrowserModule,
FormsModule,
NgxMdModule.forRoot(),
AppRoutingModule,
],
bootstrap: [AppComponent],
})
export class AppModule {}
import { ContainerModule } from '../shared/modules/container.module';
import { HeaderModule } from '../shared/modules/header.module';
import { ListContainersModule } from '../shared/modules/list-containers.module';
import { SelectModule } from '../shared/modules/select.module';
import { ContainersComponent } from './containers.component';
import { containersRouting } from './containers.routing';
import { SearchContainersComponent } from './search/search.component';
@NgModule({
declarations: [
ContainersComponent,
SearchContainersComponent
],
imports: [
CommonModule,
NgxMdModule.forRoot(),
HeaderModule,
SelectModule,
ListContainersModule,
ContainerModule,
containersRouting
]
})
export class ContainersModule {
}