This file contains 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
export enum Plan { | |
BASIC = 'basic', | |
PRO = 'pro', | |
PREMIUM = 'premium', | |
ENTERPRISE = 'enterprise', | |
} | |
export interface Client { | |
id: string; // C1-12345 | |
name: string; |
This file contains 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 { Test, TestingModule } from '@nestjs/testing'; | |
import { INestApplication, ValidationPipe } from '@nestjs/common'; | |
import { getRepositoryToken } from '@nestjs/typeorm'; | |
import * as request from 'supertest'; | |
import { Repository } from 'typeorm'; | |
import { AppModule } from '../../../src/app.module'; | |
import { User } from '../../../src/auth/entities/user.entity'; | |
import { validate } from 'uuid'; |
This file contains 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 { Test, TestingModule } from '@nestjs/testing'; | |
import { INestApplication, ValidationPipe } from '@nestjs/common'; | |
import * as request from 'supertest'; | |
import { getRepositoryToken } from '@nestjs/typeorm'; | |
import { Repository } from 'typeorm'; | |
import { AppModule } from '../../../src/app.module'; | |
import { User } from '../../../src/auth/entities/user.entity'; | |
const testingUser = { |
This file contains 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 { | |
AbstractControl, | |
FormArray, | |
FormGroup, | |
ValidationErrors, | |
} from '@angular/forms'; | |
async function sleep() { | |
return new Promise((resolve) => { | |
setTimeout(() => { |
This file contains 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
<h1 class="text-2xl font-bold">{{ product().title }}</h1> | |
<div class="divider"></div> | |
<div class="grid grid-cols-1 sm:grid-cols-2 gap-4"> | |
<!-- Datos generales --> | |
<div class="flex flex-col gap-2"> | |
<h2 class="text-2xl font-bold h-12">Datos generales</h2> | |
<input | |
type="text" | |
placeholder="Título" |
This file contains 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
const color = '#xxxxxx'.replace(/x/g, (y) => | |
((Math.random() * 16) | 0).toString(16) | |
); |
NewerOlder