Skip to content

Commit

Permalink
Merge branch 'master' into branding-css
Browse files Browse the repository at this point in the history
  • Loading branch information
DhaaraniCIT authored Jan 21, 2025
2 parents c897659 + 1d05001 commit dfd75c5
Show file tree
Hide file tree
Showing 102 changed files with 12,848 additions and 5,016 deletions.
16,615 changes: 12,164 additions & 4,451 deletions package-lock.json

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,17 @@
},
"private": true,
"dependencies": {
"@angular-devkit/build-angular": "^17.3.8",
"@angular-eslint/schematics": "^17.5.1",
"@angular/animations": "^17.3.10",
"@angular/cli": "^17.3.8",
"@angular/common": "^17.3.10",
"@angular/compiler": "^17.3.10",
"@angular/compiler-cli": "^17.3.10",
"@angular/core": "^17.3.10",
"@angular/forms": "^17.3.10",
"@angular/platform-browser": "^17.3.10",
"@angular/platform-browser-dynamic": "^17.3.10",
"@angular/router": "^17.3.10",
"@angular-devkit/build-angular": "^18.2.12",
"@angular/animations": "^18.2.13",
"@angular/cli": "^18.2.12",
"@angular/common": "^18.2.13",
"@angular/compiler": "^18.2.13",
"@angular/compiler-cli": "^18.2.13",
"@angular/core": "^18.2.13",
"@angular/forms": "^18.2.13",
"@angular/platform-browser": "^18.2.13",
"@angular/platform-browser-dynamic": "^18.2.13",
"@angular/router": "^18.2.13",
"@auth0/angular-jwt": "^5.1.0",
"@rxweb/reactive-form-validators": "^2.1.6",
"@sentry/angular": "^8.18.0",
Expand All @@ -55,6 +54,7 @@
"@angular-eslint/builder": "14.1.2",
"@angular-eslint/eslint-plugin": "14.1.2",
"@angular-eslint/eslint-plugin-template": "14.1.2",
"@angular-eslint/schematics": "^18.4.3",
"@angular-eslint/template-parser": "14.1.2",
"@compodoc/compodoc": "^1.1.23",
"@storybook/addon-docs": "^7.6.3",
Expand Down
92 changes: 43 additions & 49 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';

import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';

// External Libraries
import { IconSpriteModule } from 'ng-svg-icon-sprite';
Expand All @@ -22,52 +22,46 @@ import { Sage300ConfigurationModule } from './integrations/sage300/sage300-main/
import * as Sentry from "@sentry/angular";
import { Router } from '@angular/router';

@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
AppRoutingModule,
BrowserAnimationsModule,
HttpClientModule,
ToastModule,
SharedModule,
RippleModule,
IconSpriteModule.forRoot({ path: 'assets/sprites/sprite.svg' }),
Sage300ConfigurationModule
],
providers: [
MessageService,
{
provide: JWT_OPTIONS,
useValue: JWT_OPTIONS
},
JwtHelperService,
{
provide: HTTP_INTERCEPTORS,
useClass: JwtInterceptor,
multi: true
},
{
provide: ErrorHandler,
useClass: GlobalErrorHandler
},
{
provide: ErrorHandler,
useValue: Sentry.createErrorHandler()
},
{
provide: Sentry.TraceService,
deps: [Router]
},
{
provide: APP_INITIALIZER,
useFactory: (brandingService: BrandingService) => () => brandingService.init(),
deps: [BrandingService, Sentry.TraceService],
multi: true
}
],
bootstrap: [AppComponent]
})
@NgModule({ declarations: [
AppComponent
],
bootstrap: [AppComponent], imports: [BrowserModule,
AppRoutingModule,
BrowserAnimationsModule,
ToastModule,
SharedModule,
RippleModule,
IconSpriteModule.forRoot({ path: 'assets/sprites/sprite.svg' }),
Sage300ConfigurationModule], providers: [
MessageService,
{
provide: JWT_OPTIONS,
useValue: JWT_OPTIONS
},
JwtHelperService,
{
provide: HTTP_INTERCEPTORS,
useClass: JwtInterceptor,
multi: true
},
{
provide: ErrorHandler,
useClass: GlobalErrorHandler
},
{
provide: ErrorHandler,
useValue: Sentry.createErrorHandler()
},
{
provide: Sentry.TraceService,
deps: [Router]
},
{
provide: APP_INITIALIZER,
useFactory: (brandingService: BrandingService) => () => brandingService.init(),
deps: [BrandingService, Sentry.TraceService],
multi: true
},
provideHttpClient(withInterceptorsFromDi())
] })
export class AppModule { }
31 changes: 15 additions & 16 deletions src/app/auth/login/login.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HttpClientModule } from '@angular/common/http';
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ActivatedRoute, Router } from '@angular/router';
import { RouterTestingModule } from '@angular/router/testing';
Expand All @@ -23,23 +23,22 @@ xdescribe('LoginComponent', () => {

beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [
HttpClientModule, RouterTestingModule
],
declarations: [ LoginComponent ],
providers: [
declarations: [LoginComponent],
imports: [RouterTestingModule],
providers: [
{
provide: ActivatedRoute,
useValue: {
queryParams: of({
code: 'dummy-auth-code'
})
}
provide: ActivatedRoute,
useValue: {
queryParams: of({
code: 'dummy-auth-code'
})
}
},
{ provide: AuthService, useValue: service1},
{ provide: Router, useValue: routerSpy }
]
})
{ provide: AuthService, useValue: service1 },
{ provide: Router, useValue: routerSpy },
provideHttpClient(withInterceptorsFromDi())
]
})
.compileComponents();

fixture = TestBed.createComponent(LoginComponent);
Expand Down
Loading

0 comments on commit dfd75c5

Please sign in to comment.