Chore: Updated python dependencies

Chore: Updated angular to v19
Chore: Refactored ops with docker and ansible
This commit is contained in:
2024-12-16 17:53:21 +05:30
parent 010e9a84db
commit 2495c24e1a
127 changed files with 9712 additions and 416 deletions

View File

@ -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 {

View File

@ -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()}`;

View File

@ -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;

View File

@ -1,3 +1 @@
export interface ToCsvType {
[column: string]: string | number | boolean | null;
}
export type ToCsvType = Record<string, string | number | boolean | null>;

View File

@ -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) =>