Skip to content

Commit

Permalink
fix compiler config
Browse files Browse the repository at this point in the history
  • Loading branch information
TehWazzard committed Jan 17, 2025
1 parent 5ee32b4 commit 9bb1346
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 17 deletions.
1 change: 1 addition & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"src/favicon.ico",
"src/assets"
],
"aot": false,
"styles": [
"src/styles.css",
"src/fonts.css",
Expand Down
2 changes: 2 additions & 0 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<ws-staging-banner *ngIf="environmentWarning" [message]="environmentWarning"></ws-staging-banner>
<ws-puppeteer-banner [currentUser]="currentUser"></ws-puppeteer-banner>

<ws-auth-header [appName]="'Events' | translate" [menuItems]="menuItems">
</ws-auth-header>

Expand All @@ -16,4 +17,5 @@
<router-outlet></router-outlet>
</div>


<ws-auth-footer></ws-auth-footer>
4 changes: 2 additions & 2 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {Component, OnInit} from '@angular/core';
import {ActivatedRoute, Router} from '@angular/router';
import {combineLatest} from 'rxjs';

import {
PuppeteerBannerComponent,
BreadcrumbsService,
Language,
MenuItem,
NgAuthService,
GenericUtil,
User,
UserRoleUtil,
WorldskillsAngularLibService,
Expand Down
18 changes: 3 additions & 15 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {WorldskillsAngularLibModule, WsHttpInterceptor} from '@worldskills/worldskills-angular-lib';
import {PuppeteerBannerComponent, WorldskillsAngularLibModule, WsHttpInterceptor} from '@worldskills/worldskills-angular-lib';
import {TranslateHttpLoader} from '@ngx-translate/http-loader';
import {AppRoutingModule} from './app-routing.module';
import {AppComponent} from './app.component';
Expand Down Expand Up @@ -90,18 +90,6 @@ export const appTranslationConfig = TranslateModule.forRoot({
appTranslationConfig,
CKEditorModule,
],
/*
FormsModule,
OAuthModule.forRoot(),
RouterModule.forRoot(appRoutes, routerOptions),
WorldskillsAngularLibModule,
NgbModule,
NgSelectModule,
appTranslationConfig], providers: [
{ provide: HTTP_INTERCEPTORS, useClass: WsHttpInterceptor, multi: true },
DatePipe,
provideHttpClient(withInterceptorsFromDi())
*/
declarations: [
AppComponent,
HomeComponent,
Expand Down Expand Up @@ -149,7 +137,7 @@ export const appTranslationConfig = TranslateModule.forRoot({
BaseSkillPhotoCreateComponent,
BaseSkillPhotoUpdateComponent,
BaseSkillTagsComponent,
BaseSkillSponsorsComponent,
BaseSkillSponsorsComponent
],
providers: [
DatePipe,
Expand All @@ -158,7 +146,7 @@ export const appTranslationConfig = TranslateModule.forRoot({
provideHttpClient(withInterceptorsFromDi())

],
bootstrap: [AppComponent]
bootstrap: [AppComponent],
})
export class AppModule {
}

0 comments on commit 9bb1346

Please sign in to comment.