Order and pagination in travel list

This commit is contained in:
Eneko Nieto
2021-01-24 01:34:17 +01:00
parent 4957f8f074
commit 94eba7aefa
26 changed files with 38 additions and 729 deletions

View File

@@ -6,8 +6,7 @@ import { HttpClientModule } from '@angular/common/http';
import { AppComponent } from './app.component';
import { APP_ROUTES } from './app.routes';
import { API_URL } from './app.config';
import { FlightHistoryComponent } from './flight-history/flight-history.component';
import { USER_API_URL, TRAVEL_API_URL } from './app.config';
import { HomeComponent } from './home/home.component';
import { SharedModule } from './shared/shared.module';
import { RouterModule, ExtraOptions } from '@angular/router';
@@ -37,7 +36,7 @@ const ROUTING_OPTIONS: ExtraOptions = {
SharedModule.forRoot(),
OAuthModule.forRoot({
resourceServer: {
allowedUrls: [API_URL],
allowedUrls: [USER_API_URL, TRAVEL_API_URL],
sendAccessToken: true,
},
}),
@@ -46,21 +45,19 @@ const ROUTING_OPTIONS: ExtraOptions = {
MatTableModule,
MatPaginatorModule,
MatSortModule,
MatProgressSpinnerModule
MatProgressSpinnerModule,
],
declarations: [
AppComponent,
HomeComponent,
FlightHistoryComponent,
HeaderComponent,
TravelListComponent
TravelListComponent,
],
providers: [
// (useHash) ? { provide: LocationStrategy, useClass: HashLocationStrategy } : [],
// {provide: AuthConfig, useValue: authConfig },
// { provide: OAuthStorage, useValue: localStorage },
// { provide: ValidationHandler, useClass: JwksValidationHandler },
// { provide: BASE_URL, useValue: 'http://localhost:8080' }
],
bootstrap: [AppComponent],
})