first commit
This commit is contained in:
40
frontend/src/main.ts
Normal file
40
frontend/src/main.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
import { provideHttpClient, withInterceptors } from '@angular/common/http';
|
||||
import { bootstrapApplication } from '@angular/platform-browser';
|
||||
import { provideAnimations } from '@angular/platform-browser/animations';
|
||||
import { ConfirmationService, MessageService } from 'primeng/api';
|
||||
import { providePrimeNG } from 'primeng/config';
|
||||
import AppPreset from './app/core/theme-preset';
|
||||
import { provideRouter } from '@angular/router';
|
||||
import { provideTranslateService } from '@ngx-translate/core';
|
||||
import { provideTranslateHttpLoader } from '@ngx-translate/http-loader';
|
||||
|
||||
import { AppComponent } from './app/app.component';
|
||||
import { routes } from './app/app.routes';
|
||||
import { authInterceptor } from './app/core/interceptors/auth.interceptor';
|
||||
|
||||
bootstrapApplication(AppComponent, {
|
||||
providers: [
|
||||
provideAnimations(),
|
||||
provideHttpClient(withInterceptors([authInterceptor])),
|
||||
provideRouter(routes),
|
||||
providePrimeNG({
|
||||
theme: {
|
||||
preset: AppPreset,
|
||||
options: {
|
||||
darkModeSelector: '.dark-theme',
|
||||
cssLayer: false
|
||||
}
|
||||
}
|
||||
}),
|
||||
provideTranslateService({
|
||||
loader: provideTranslateHttpLoader({
|
||||
prefix: './assets/i18n/',
|
||||
suffix: '.json'
|
||||
}),
|
||||
lang: 'en',
|
||||
fallbackLang: 'en'
|
||||
}),
|
||||
MessageService,
|
||||
ConfirmationService
|
||||
]
|
||||
}).catch((err) => console.error(err));
|
||||
Reference in New Issue
Block a user