first commit

This commit is contained in:
Mateusz Gruszczyński
2026-04-14 11:39:46 +02:00
commit 3da6c2832c
125 changed files with 30111 additions and 0 deletions

40
frontend/src/main.ts Normal file
View 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));