Skip to content

Commit

Permalink
Revert "Mock angular ɵSharedStylesHost.addStyles and include ng-selec…
Browse files Browse the repository at this point in the history
…t css in build process"

This reverts commit 13e0955.
  • Loading branch information
evilaliv3 committed Jan 26, 2025
1 parent 3e6cd71 commit aded7a5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
1 change: 0 additions & 1 deletion client/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@
},
"styles": [
{ "bundleName": "styles", "inject": true, "input": "node_modules/ng-multiselect-dropdown/themes/ng-multiselect-dropdown.theme.scss" },
{ "bundleName": "styles", "inject": true, "input": "node_modules/@ng-select/ng-select/scss/ng-select.component.scss" },
{ "bundleName": "styles", "inject": true, "input": "node_modules/@ng-select/ng-select/themes/default.theme.css" },
{ "bundleName": "styles", "inject": true, "input": "node_modules/@fortawesome/fontawesome-free/css/fontawesome.css" },
{ "bundleName": "styles", "inject": true, "input": "node_modules/@fortawesome/fontawesome-free/css/solid.css" },
Expand Down
12 changes: 1 addition & 11 deletions client/app/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,9 @@ import * as Flow from "@flowjs/flow.js";
import {provideRouter} from "@angular/router";


import { ApplicationRef, Injectable } from '@angular/core';
import { ɵSharedStylesHost } from '@angular/platform-browser';
import { ApplicationRef } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

@Injectable()
export class InlineStyleDisablerService extends ɵSharedStylesHost {
override addStyles(styles: string[]): void {
// Do not call super.addStyles to block adding styles
}
}


bootstrapApplication(AppComponent, {
providers: [
provideRouter(appRoutes),
Expand Down Expand Up @@ -103,7 +94,6 @@ bootstrapApplication(AppComponent, {
{ provide: HTTP_INTERCEPTORS, useClass: appInterceptor, multi: true },
{ provide: HTTP_INTERCEPTORS, useClass: ErrorCatchingInterceptor, multi: true },
{ provide: HTTP_INTERCEPTORS, useClass: CompletedInterceptor, multi: true },
{ provide: ɵSharedStylesHost, useClass: InlineStyleDisablerService },
{ provide: FlowInjectionToken, useValue: Flow },
{ provide: LocationStrategy, useClass: HashLocationStrategy },
{ provide: NgbDatepickerI18n, useClass: CustomDatepickerI18n },
Expand Down

0 comments on commit aded7a5

Please sign in to comment.