Skip to content

Commit 47e05ce

Browse files
committed
Clean up imports in demos
1 parent 3793c81 commit 47e05ce

File tree

17 files changed

+20
-58
lines changed

17 files changed

+20
-58
lines changed

projects/quickstart-demo/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { Component } from '@angular/core';
22
import { OAuthService } from 'angular-oauth2-oidc';
33
import { filter } from 'rxjs/operators';
44
import { authCodeFlowConfig } from './auth.config';
5-
import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';
65

76
@Component({
87
selector: 'app-root',

projects/quickstart-demo/src/app/app.module.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@ import { BrowserModule } from '@angular/platform-browser';
22
import { NgModule } from '@angular/core';
33

44
import { AppComponent } from './app.component';
5-
import { OAuthModule, OAuthStorage } from 'angular-oauth2-oidc';
6-
import {
7-
provideHttpClient,
8-
withInterceptorsFromDi,
9-
} from '@angular/common/http';
5+
import { OAuthModule } from 'angular-oauth2-oidc';
6+
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
107

118
@NgModule({
129
declarations: [AppComponent],

projects/quickstart-demo/src/test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22

33
import 'zone.js/testing';
44
import { getTestBed } from '@angular/core/testing';
5-
import {
6-
BrowserDynamicTestingModule,
7-
platformBrowserDynamicTesting,
8-
} from '@angular/platform-browser-dynamic/testing';
5+
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';
96

107
// First, initialize the Angular testing environment.
118
getTestBed().initTestEnvironment(

projects/sample/src/app/app.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import { noDiscoveryAuthConfig } from './auth-no-discovery.config';
22
import { authConfig } from './auth.config';
33
import { Component } from '@angular/core';
4-
import { OAuthService, NullValidationHandler } from 'angular-oauth2-oidc';
4+
import { NullValidationHandler, OAuthService } from 'angular-oauth2-oidc';
55
import { Router } from '@angular/router';
66
import { filter } from 'rxjs/operators';
77
import { authCodeFlowConfig } from './auth-code-flow.config';
8-
import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';
98
import { useHash } from '../flags';
109

1110
@Component({

projects/sample/src/app/app.module.ts

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
import { NgModule } from '@angular/core';
22
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
33
import { BrowserModule } from '@angular/platform-browser';
4-
import {
5-
OAuthModule,
6-
OAuthStorage,
7-
DateTimeProvider,
8-
} from 'angular-oauth2-oidc';
9-
import {
10-
provideHttpClient,
11-
withInterceptorsFromDi,
12-
} from '@angular/common/http';
4+
import { OAuthModule } from 'angular-oauth2-oidc';
5+
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
136

147
import { AppComponent } from './app.component';
158
import { APP_ROUTES } from './app.routes';
@@ -19,9 +12,7 @@ import { HomeComponent } from './home/home.component';
1912
import { PasswordFlowLoginComponent } from './password-flow-login/password-flow-login.component';
2013
// import { CustomDateTimeProvider } from './shared/date/custom-date-time-provider';
2114
import { SharedModule } from './shared/shared.module';
22-
import { RouterModule, ExtraOptions } from '@angular/router';
23-
import { CustomPreloadingStrategy } from './shared/preload/custom-preloading.strategy';
24-
import { LocationStrategy, HashLocationStrategy } from '@angular/common';
15+
import { RouterModule } from '@angular/router';
2516
import { useHash } from '../flags';
2617

2718
@NgModule({

projects/sample/src/app/app.routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { PasswordFlowLoginComponent } from './password-flow-login/password-flow-login.component';
2-
import { Routes, RouterModule } from '@angular/router';
2+
import { Routes } from '@angular/router';
33
import { HomeComponent } from './home/home.component';
44
import { FlightHistoryComponent } from './flight-history/flight-history.component';
55

projects/sample/src/app/flight-booking/alt-flight-card/flight-list.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { Component, Input, Output, EventEmitter } from '@angular/core';
1+
import { Component, EventEmitter, Input, Output } from '@angular/core';
22
import { Flight } from '../../entities/flight';
3+
34
@Component({
45
selector: 'flight-list',
56
template: `

projects/sample/src/app/flight-booking/flight-booking.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Component } from '@angular/core';
2-
import { FlightService } from './services/flight.service';
32

43
@Component({
54
selector: 'flight-booking',

projects/sample/src/app/flight-booking/flight-booking.routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { inject } from '@angular/core';
2-
import { Routes, RouterModule } from '@angular/router';
2+
import { RouterModule, Routes } from '@angular/router';
33
import { FlightSearchComponent } from './flight-search/flight-search.component';
44
import { PassengerSearchComponent } from './passenger-search/passenger-search.component';
55
import { FlightEditComponent } from './flight-edit/flight-edit.component';

projects/sample/src/app/flight-booking/flight-search-reactive/flight-search-reactive.component.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
import { Component } from '@angular/core';
22
import { Flight } from '../../entities/flight';
33
import { FlightService } from '../services/flight.service';
4-
import {
5-
UntypedFormGroup,
6-
UntypedFormBuilder,
7-
Validators,
8-
AbstractControl,
9-
} from '@angular/forms';
10-
import { CityValidatorDirective } from '../../shared/validation/city.validator';
4+
import { AbstractControl, UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms';
115

126
@Component({
137
selector: 'flight-search-reactive',

0 commit comments

Comments
 (0)