Chore: Updated python dependencies
Chore: Updated angular to v19 Chore: Refactored ops with docker and ansible
This commit is contained in:
@ -14,7 +14,6 @@ import {
|
||||
selector: 'app-confirm-dialog',
|
||||
templateUrl: './confirm-dialog.component.html',
|
||||
styleUrls: ['./confirm-dialog.component.css'],
|
||||
standalone: true,
|
||||
imports: [MatDialogTitle, CdkScrollable, MatDialogContent, MatDialogActions, MatButton, MatDialogClose],
|
||||
})
|
||||
export class ConfirmDialogComponent {
|
||||
|
||||
@ -4,9 +4,8 @@ import { Injectable } from '@angular/core';
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class CookieService {
|
||||
// eslint-disable-next-line class-methods-use-this
|
||||
public getCookie(name: string) {
|
||||
const ca: Array<string> = document.cookie.split(';');
|
||||
const ca: string[] = document.cookie.split(';');
|
||||
const caLen: number = ca.length;
|
||||
const cookieName = `${name}=`;
|
||||
let c: string;
|
||||
@ -24,8 +23,7 @@ export class CookieService {
|
||||
this.setCookie(name, '', -1);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line class-methods-use-this
|
||||
public setCookie(name: string, value: string, expireDays: number, path: string = '') {
|
||||
public setCookie(name: string, value: string, expireDays: number, path = '') {
|
||||
const d: Date = new Date();
|
||||
d.setTime(d.getTime() + expireDays * 24 * 60 * 60 * 1000);
|
||||
const expires = `expires=${d.toUTCString()}`;
|
||||
|
||||
@ -5,7 +5,7 @@ import { evaluate, round } from 'mathjs';
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class MathService {
|
||||
parseAmount(amount: string = '', rounding: number = 2): number {
|
||||
parseAmount(amount = '', rounding = 2): number {
|
||||
const cleaned = `${amount}`.replace(new RegExp('(₹[s]*)|(,)|(s)', 'g'), '');
|
||||
if (cleaned === '') {
|
||||
return 0;
|
||||
|
||||
@ -1,3 +1 @@
|
||||
export interface ToCsvType {
|
||||
[column: string]: string | number | boolean | null;
|
||||
}
|
||||
export type ToCsvType = Record<string, string | number | boolean | null>;
|
||||
|
||||
@ -6,8 +6,7 @@ import { ToCsvType } from './to-csv-type';
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class ToCsvService {
|
||||
// eslint-disable-next-line class-methods-use-this
|
||||
toCsv(headers: { [display: string]: string }, data: unknown[]): string {
|
||||
toCsv(headers: Record<string, string>, data: unknown[]): string {
|
||||
const header = Object.keys(headers);
|
||||
const replacer = (key: string, value: string | number | null) => (value === null ? '' : value);
|
||||
const csv = data.map((row) =>
|
||||
|
||||
Reference in New Issue
Block a user