dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_HelgolandCoreModule cluster_HelgolandCoreModule_declarations cluster_HelgolandCoreModule_exports cluster_HelgolandCoreModule_providers MatchLabelPipe MatchLabelPipe HelgolandCoreModule HelgolandCoreModule MatchLabelPipe->HelgolandCoreModule TzDatePipe TzDatePipe TzDatePipe->HelgolandCoreModule MatchLabelPipe MatchLabelPipe HelgolandCoreModule->MatchLabelPipe TzDatePipe TzDatePipe HelgolandCoreModule->TzDatePipe ColorService ColorService ColorService->HelgolandCoreModule DatasetApiMapping DatasetApiMapping DatasetApiMapping->HelgolandCoreModule DefinedTimespanService DefinedTimespanService DefinedTimespanService->HelgolandCoreModule HttpService HttpService HttpService->HelgolandCoreModule InternalIdHandler InternalIdHandler InternalIdHandler->HelgolandCoreModule LocalStorage LocalStorage LocalStorage->HelgolandCoreModule NotifierService NotifierService NotifierService->HelgolandCoreModule StatusIntervalResolverService StatusIntervalResolverService StatusIntervalResolverService->HelgolandCoreModule SumValuesService SumValuesService SumValuesService->HelgolandCoreModule Time Time Time->HelgolandCoreModule

File

libs/core/src/lib/core.module.ts

Description

The core module includes the following functionality:

  • the communication to the different APIs
  • describes the base internal model
  • language handling
  • settings handling
  • some pipes
  • time service for calculations

import { HttpClientModule } from '@angular/common/http';
import { Injectable, NgModule } from '@angular/core';

import { ColorService } from './color/color.service';
import { DatasetApiMapping } from './dataset-api/api-mapping.service';
import { StatusIntervalResolverService } from './dataset-api/helper/status-interval-resolver.service';
import { HttpService } from './dataset-api/http.service';
import { InternalIdHandler } from './dataset-api/internal-id-handler.service';
import { LocalStorage } from './local-storage/local-storage.service';
import { Settings } from './model/settings/settings';
import { NotifierService } from './notifier/notifier.service';
import { MatchLabelPipe } from './pipes/matchLabel/match-label.pipe';
import { SumValuesService } from './processing/sum-values.service';
import { SettingsService } from './settings/settings.service';
import { DefinedTimespanService } from './time/defined-timespan.service';
import { Time } from './time/time.service';
import { TzDatePipe } from './time/tz-date.pipe';

@Injectable()
export class ExtendedSettingsService extends SettingsService<Settings> {
  constructor() {
    super();
    this.setSettings({});
  }
}

/**
 * The core module includes the following functionality:
 * - the communication to the different APIs
 * - describes the base internal model
 * - language handling
 * - settings handling
 * - some pipes
 * - time service for calculations
 */
@NgModule({
  declarations: [
    MatchLabelPipe,
    TzDatePipe,
  ],
  imports: [
    HttpClientModule
  ],
  exports: [
    MatchLabelPipe,
    TzDatePipe,
  ],
  providers: [
    ColorService,
    DatasetApiMapping,
    DefinedTimespanService,
    InternalIdHandler,
    LocalStorage,
    NotifierService,
    StatusIntervalResolverService,
    SumValuesService,
    HttpService,
    Time,
    {
      provide: SettingsService,
      useClass: ExtendedSettingsService
    }
  ]
})
export class HelgolandCoreModule { }

result-matching ""

    No results matching ""