chore(core): install primeng and tailwind
This commit is contained in:
+27
-4
@@ -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
|
||||
}),
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user