This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { TranslationValues, useTranslations } from 'next-intl'; | |
| import { ZodErrorMap, ZodIssueCode, ZodParsedType, defaultErrorMap } from 'zod'; | |
| const jsonStringifyReplacer = (_: string, value: any): any => { | |
| if (typeof value === 'bigint') { | |
| return value.toString(); | |
| } | |
| return value; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * A detailed table that maps story points to T-shirt sizes and kitchen tasks. | |
| * Clear explanations on why tasks are assigned specific story points. | |
| * Insights on how these everyday analogies can clarify the principles of task estimation in agile environments. | |
| Story Points | Development Task Description | Kitchen Task Example | T-Shirt Size | |
| -------------|---------------------------------------|------------------------------|:--------------: | |
| 0 Points | No effort; no business value. | Washing a single spoon. | N/A | |
| 1 Point | Easy; understood; completed quickly. | Making a sandwich. | XS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM node:12.22-alpine3.15 AS build | |
| WORKDIR /app/acvali-backoffice | |
| RUN npm cache clean --force | |
| COPY . . | |
| RUN npm install --legacy-peer-deps | |
| RUN npm run build:prod -- --base-href /backoffice/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ARG APP_NAME=aplication-name | |
| FROM maven:3.6.1-jdk-8-alpine as build-env | |
| COPY pom.xml /tmp/ | |
| COPY src /tmp/src/ | |
| WORKDIR /tmp/ | |
| RUN mvn package |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| read -p "Enter the log filter: " filter | |
| echo "" | |
| echo "[Logging to '$filter']" | |
| echo "" | |
| adb logcat | grep $filter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if [ -z "$ANDROID_SDK_ROOT" ]; then | |
| echo "ANDROID_SDK_ROOT is not set" | |
| exit 1 | |
| fi | |
| cd $ANDROID_SDK_ROOT/emulator | |
| echo "" | |
| echo "[Available devices]" | |
| ./emulator -list-avds |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {NgModule, Pipe, PipeTransform} from '@angular/core'; | |
| @Pipe({ | |
| name: 'trackByKey', | |
| pure: true, | |
| }) | |
| export class TrackByKeyPipe implements PipeTransform { | |
| public transform(key: string) { | |
| return (index, value) => { | |
| return value[key]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { ErrorHandler, Inject, Injectable, InjectionToken } from '@angular/core'; | |
| import { | |
| HTTP_INTERCEPTORS, | |
| HttpErrorResponse, | |
| HttpEvent, | |
| HttpHandler, | |
| HttpInterceptor, | |
| HttpRequest | |
| } from '@angular/common/http'; | |
| import { Observable, throwError } from 'rxjs'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Used to guarantee an error-free conversion of a string to JSON object. | |
| * @param str: string | |
| * @return any | |
| */ | |
| export function safeJSONParse(str: string): any { | |
| try { | |
| return JSON.parse(str); | |
| } catch (_) { | |
| return null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Injectable, OnDestroy } from '@angular/core'; | |
| import { NavigationEnd, Router } from '@angular/router'; | |
| import { Subscription } from 'rxjs'; | |
| import { environment } from '@env/environment'; | |
| declare let fbq: Function; | |
| @Injectable({ | |
| providedIn: 'root' |