chore(core): install primeng and tailwind

This commit is contained in:
2025-08-20 18:20:02 +02:00
parent cc7eb48fe1
commit 613263731d
14 changed files with 1628 additions and 482 deletions
+27 -4
View File
@@ -1,12 +1,35 @@
import { ApplicationConfig, provideBrowserGlobalErrorListeners, provideZoneChangeDetection } from '@angular/core';
import { provideRouter } from '@angular/router';
import { ApplicationConfig, LOCALE_ID, provideBrowserGlobalErrorListeners, provideZoneChangeDetection } from '@angular/core';
import { provideRouter, withComponentInputBinding } from '@angular/router';
import { providePrimeNG } from 'primeng/config';
import { Theme } from '../../public/theme/theme';
import { routes } from './app.routes';
import { registerLocaleData } from '@angular/common';
import localeDeAt from '@angular/common/locales/de-AT';
import { germanTranslation } from './core/config/translations';
registerLocaleData(localeDeAt);
export const appConfig: ApplicationConfig = {
providers: [
provideBrowserGlobalErrorListeners(),
provideZoneChangeDetection({ eventCoalescing: true }),
provideRouter(routes)
]
provideRouter(routes, withComponentInputBinding()),
{ provide: LOCALE_ID, useValue: 'de-AT' },
providePrimeNG({
theme: {
preset: Theme,
options: {
darkModeSelector: '.dark',
cssLayer: {
name: 'primeng',
order: 'theme, base, primeng'
},
prefix: '',
},
},
translation: germanTranslation, // TODO: dynamic - selected language
}),
],
};