Add import paths
This commit is contained in:
@@ -1,14 +1,14 @@
|
|||||||
import {inject, Injectable} from "@angular/core";
|
import { HttpClient } from '@angular/common/http';
|
||||||
import {HttpClient} from '@angular/common/http';
|
import { inject, Injectable } from "@angular/core";
|
||||||
import {map, Observable} from 'rxjs';
|
import { map, Observable } from 'rxjs';
|
||||||
import {API_BASE_PATH} from '../api-base-path';
|
import { API_BASE_PATH } from "../api-base-path";
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root',
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class CarClient {
|
export class CarClient {
|
||||||
private readonly http = inject(HttpClient);
|
private readonly http = inject(HttpClient);
|
||||||
private readonly apiBasePath = inject(API_BASE_PATH, {optional: true});
|
private readonly apiBasePath = inject(API_BASE_PATH, { optional: true });
|
||||||
|
|
||||||
getAll(): Observable<GetCarsResponse> {
|
getAll(): Observable<GetCarsResponse> {
|
||||||
return this.http.get<GetCarsResponse>(`${this.apiBasePath}/v1/cars`);
|
return this.http.get<GetCarsResponse>(`${this.apiBasePath}/v1/cars`);
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
import { environment } from '../../environments/environment';
|
import { environment } from '@vegasco-web/environments/environment';
|
||||||
import {
|
import {
|
||||||
provideKeycloak,
|
|
||||||
createInterceptorCondition,
|
|
||||||
IncludeBearerTokenCondition,
|
|
||||||
INCLUDE_BEARER_TOKEN_INTERCEPTOR_CONFIG,
|
|
||||||
withAutoRefreshToken,
|
|
||||||
AutoRefreshTokenService,
|
AutoRefreshTokenService,
|
||||||
UserActivityService
|
createInterceptorCondition,
|
||||||
|
INCLUDE_BEARER_TOKEN_INTERCEPTOR_CONFIG,
|
||||||
|
IncludeBearerTokenCondition,
|
||||||
|
provideKeycloak,
|
||||||
|
UserActivityService,
|
||||||
|
withAutoRefreshToken
|
||||||
} from 'keycloak-angular';
|
} from 'keycloak-angular';
|
||||||
|
|
||||||
const serverHostBearerInterceptorCondition = createInterceptorCondition<IncludeBearerTokenCondition>({
|
const serverHostBearerInterceptorCondition = createInterceptorCondition<IncludeBearerTokenCondition>({
|
||||||
|
|||||||
@@ -1,26 +1,20 @@
|
|||||||
import {AsyncPipe, CommonModule} from '@angular/common';
|
import {AsyncPipe, CommonModule} from '@angular/common';
|
||||||
import { Component, inject } from '@angular/core';
|
import { Component, inject } from '@angular/core';
|
||||||
import { FormControl, ReactiveFormsModule } from '@angular/forms';
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||||
|
import { ReactiveFormsModule } from '@angular/forms';
|
||||||
import { RouterLink } from '@angular/router';
|
import { RouterLink } from '@angular/router';
|
||||||
import { MessageService } from 'primeng/api';
|
import { CarClient } from '@vegasco-web/api/cars/car-client';
|
||||||
|
import { ConsumptionClient } from '@vegasco-web/api/consumptions/consumption-client';
|
||||||
import { ButtonModule } from 'primeng/button';
|
import { ButtonModule } from 'primeng/button';
|
||||||
import { DataViewModule } from 'primeng/dataview';
|
import { DataViewModule } from 'primeng/dataview';
|
||||||
import { SelectModule } from 'primeng/select';
|
|
||||||
import { ScrollTopModule } from 'primeng/scrolltop';
|
import { ScrollTopModule } from 'primeng/scrolltop';
|
||||||
|
import { SelectModule } from 'primeng/select';
|
||||||
import { SkeletonModule } from 'primeng/skeleton';
|
import { SkeletonModule } from 'primeng/skeleton';
|
||||||
import {
|
import {
|
||||||
BehaviorSubject,
|
|
||||||
combineLatest,
|
|
||||||
map,
|
map,
|
||||||
Observable,
|
Observable,
|
||||||
of,
|
tap
|
||||||
startWith,
|
|
||||||
tap,
|
|
||||||
} from 'rxjs';
|
} from 'rxjs';
|
||||||
import { HttpClient } from '@angular/common/http';
|
|
||||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
||||||
import {CarClient} from '../../../api/cars/car-client';
|
|
||||||
import {ConsumptionClient} from '../../../api/consumptions/consumption-client';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-entries',
|
selector: 'app-entries',
|
||||||
|
|||||||
@@ -3,6 +3,12 @@
|
|||||||
{
|
{
|
||||||
"compileOnSave": false,
|
"compileOnSave": false,
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"baseUrl": "./",
|
||||||
|
"paths": {
|
||||||
|
"@vegasco-web/*": ["src/app/*"],
|
||||||
|
"@vegasco-web/assets/*": ["assets/*"],
|
||||||
|
"@vegasco-web/environments/*": ["src/environments/*"]
|
||||||
|
},
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"noImplicitOverride": true,
|
"noImplicitOverride": true,
|
||||||
"noPropertyAccessFromIndexSignature": true,
|
"noPropertyAccessFromIndexSignature": true,
|
||||||
|
|||||||
Reference in New Issue
Block a user