Moved to Angular 16
Moved to FastAPI 0.100.0
Moved to pydantic 2.0
This commit is contained in:
tanshu committed 2023-07-22 09:20:01 +05:30
1 parent 8b2d15b9e1
commit 09b762d154
161 files changed
+693 -753

No files matched your search

@@ -1,5 +1,5 @@
import { Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, Resolve } from '@angular/router';
import { ActivatedRouteSnapshot } from '@angular/router';
import { Observable } from 'rxjs';
import { Bill } from './bill';
@@ -8,7 +8,7 @@ import { VoucherService } from './voucher.service';
@Injectable({
providedIn: 'root',
})
export class BillResolver implements Resolve<Bill> {
export class BillResolver {
constructor(private ser: VoucherService) {}
resolve(route: ActivatedRouteSnapshot): Observable<Bill> {
@@ -130,7 +130,7 @@
</ng-container>
<ng-container matColumnDef="gross-amount">
<mat-footer-cell *matFooterCellDef class="bold right-align">{{
bs.grossAmount | async | currency : 'INR'
bs.grossAmount | async | currency: 'INR'
}}</mat-footer-cell>
</ng-container>
@@ -140,7 +140,7 @@
</ng-container>
<ng-container matColumnDef="hh-amount">
<mat-footer-cell *matFooterCellDef class="bold right-align">{{
bs.hhAmount | async | currency : 'INR'
bs.hhAmount | async | currency: 'INR'
}}</mat-footer-cell>
</ng-container>
@@ -150,7 +150,7 @@
</ng-container>
<ng-container matColumnDef="discount-amount">
<mat-footer-cell *matFooterCellDef class="bold right-align">{{
bs.discountAmount | async | currency : 'INR'
bs.discountAmount | async | currency: 'INR'
}}</mat-footer-cell>
</ng-container>
@@ -160,7 +160,7 @@
</ng-container>
<ng-container matColumnDef="tax-amount">
<mat-footer-cell *matFooterCellDef class="bold right-align">{{
bs.taxAmount | async | currency : 'INR'
bs.taxAmount | async | currency: 'INR'
}}</mat-footer-cell>
</ng-container>
@@ -170,7 +170,7 @@
</ng-container>
<ng-container matColumnDef="amount-amount">
<mat-footer-cell *matFooterCellDef class="bold right-align">{{
bs.amount | async | currency : 'INR'
bs.amount | async | currency: 'INR'
}}</mat-footer-cell>
</ng-container>
</table>
@@ -1,11 +1,11 @@
import { Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, Resolve } from '@angular/router';
import { ActivatedRouteSnapshot } from '@angular/router';
import { Observable, of as observableOf } from 'rxjs';
@Injectable({
providedIn: 'root',
})
export class UpdateTableResolver implements Resolve<boolean> {
export class UpdateTableResolver {
constructor() {}
resolve(route: ActivatedRouteSnapshot): Observable<boolean> {
@@ -17,7 +17,10 @@ const serviceName = 'VoucherService';
@Injectable({ providedIn: 'root' })
export class VoucherService {
constructor(private http: HttpClient, private log: ErrorLoggerService) {}
constructor(
private http: HttpClient,
private log: ErrorLoggerService,
) {}
get(id: string): Observable<Bill> {
return this.http