33 lines
1.3 KiB
TypeScript
33 lines
1.3 KiB
TypeScript
import { ApplicationConfig, LOCALE_ID } from '@angular/core';
|
|
import { provideRouter } from '@angular/router';
|
|
|
|
import { routes } from './app.routes';
|
|
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
|
|
import { provideHttpClient, withInterceptors } from '@angular/common/http';
|
|
import locale from '@angular/common/locales/de';
|
|
import { registerLocaleData } from '@angular/common';
|
|
import { authenticationInterceptor } from './shared/interceptors/authentication.interceptor';
|
|
import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
|
|
import { MatPaginatorIntl } from '@angular/material/paginator';
|
|
import { PaginatorIntl } from './shared/utils/paginatorIntl';
|
|
import { provideEchartsCore } from 'ngx-echarts';
|
|
|
|
|
|
registerLocaleData(locale);
|
|
|
|
export const appConfig: ApplicationConfig = {
|
|
providers: [
|
|
{ provide: LOCALE_ID, useValue: 'de' },
|
|
{
|
|
provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,
|
|
useValue: { appearance: 'outline' },
|
|
},
|
|
{ provide: MatPaginatorIntl, useClass: PaginatorIntl },
|
|
provideRouter(routes),
|
|
provideHttpClient(withInterceptors([authenticationInterceptor])),
|
|
// provideApi('/inse-service'),
|
|
provideAnimationsAsync(),
|
|
provideEchartsCore({ echarts: () => import('echarts') }),
|
|
],
|
|
};
|