optimized ui a little bit and added impressum
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import {ApplicationConfig, provideBrowserGlobalErrorListeners, provideZonelessChangeDetection} from '@angular/core';
|
||||
import {ApplicationConfig, inject, provideAppInitializer, provideBrowserGlobalErrorListeners, provideZonelessChangeDetection} from '@angular/core';
|
||||
import { provideRouter } from '@angular/router';
|
||||
|
||||
import { routes } from './app.routes';
|
||||
@@ -7,6 +7,8 @@ import {provideHttpClient} from '@angular/common/http';
|
||||
import {provideTranslateService} from '@ngx-translate/core';
|
||||
import {provideTranslateHttpLoader} from '@ngx-translate/http-loader';
|
||||
import {LocalStoreConstants} from './constants/LocalStoreConstants';
|
||||
import {MatIconRegistry} from '@angular/material/icon';
|
||||
import {DomSanitizer} from '@angular/platform-browser';
|
||||
|
||||
|
||||
const INITIAL_LANG = getInitialLang();
|
||||
@@ -26,6 +28,20 @@ export const appConfig: ApplicationConfig = {
|
||||
suffix: '.json'
|
||||
})
|
||||
}),
|
||||
provideAppInitializer(() => {
|
||||
const iconRegistry = inject(MatIconRegistry);
|
||||
const sanitizer = inject(DomSanitizer);
|
||||
|
||||
iconRegistry.addSvgIcon(
|
||||
'github',
|
||||
sanitizer.bypassSecurityTrustResourceUrl('assets/logos/github.svg')
|
||||
);
|
||||
|
||||
iconRegistry.addSvgIcon(
|
||||
'linkedin',
|
||||
sanitizer.bypassSecurityTrustResourceUrl('assets/logos/linkedIn.svg')
|
||||
);
|
||||
}),
|
||||
]
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user