123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
- import { RouterModule } from '@angular/router';
- import { JhiLanguageService } from 'ng-jhipster';
- import { JhiLanguageHelper } from 'app/core';
- import { ZipConnectSharedModule } from 'app/shared';
- /* jhipster-needle-add-admin-module-import - JHipster will add admin modules imports here */
-
- import {
- adminState,
- AuditsComponent,
- UserMgmtComponent,
- UserMgmtDetailComponent,
- UserMgmtUpdateComponent,
- UserMgmtDeleteDialogComponent,
- LogsComponent,
- JhiMetricsMonitoringModalComponent,
- JhiMetricsMonitoringComponent,
- JhiHealthModalComponent,
- JhiHealthCheckComponent,
- JhiConfigurationComponent,
- JhiDocsComponent
- } from './';
-
- @NgModule({
- imports: [
- ZipConnectSharedModule,
- RouterModule.forChild(adminState)
- /* jhipster-needle-add-admin-module - JHipster will add admin modules here */
- ],
- declarations: [
- AuditsComponent,
- UserMgmtComponent,
- UserMgmtDetailComponent,
- UserMgmtUpdateComponent,
- UserMgmtDeleteDialogComponent,
- LogsComponent,
- JhiConfigurationComponent,
- JhiHealthCheckComponent,
- JhiHealthModalComponent,
- JhiDocsComponent,
- JhiMetricsMonitoringComponent,
- JhiMetricsMonitoringModalComponent
- ],
- providers: [{ provide: JhiLanguageService, useClass: JhiLanguageService }],
- entryComponents: [UserMgmtDeleteDialogComponent, JhiHealthModalComponent, JhiMetricsMonitoringModalComponent],
- schemas: [CUSTOM_ELEMENTS_SCHEMA]
- })
- export class ZipConnectAdminModule {
- constructor(private languageService: JhiLanguageService, private languageHelper: JhiLanguageHelper) {
- this.languageHelper.language.subscribe((languageKey: string) => {
- if (languageKey !== undefined) {
- this.languageService.changeLanguage(languageKey);
- }
- });
- }
- }
|