diff --git a/src/database/entities/category.entity.ts b/src/database/entities/category.entity.ts index 40aa6a6..5d906df 100644 --- a/src/database/entities/category.entity.ts +++ b/src/database/entities/category.entity.ts @@ -6,8 +6,6 @@ import { UpdateDateColumn, OneToMany, } from 'typeorm'; -import { Exclude } from 'class-transformer'; -import { typeImg } from '@models/type-img'; import { Product } from './product.entity'; import { Field, ID, ObjectType } from '@nestjs/graphql'; @@ -26,9 +24,6 @@ export class Category { @Column() image: string; - @Exclude() - keyLoremSpace: typeImg; - @Field() @CreateDateColumn({ name: 'creation_at', diff --git a/src/database/factories/category.factory.ts b/src/database/factories/category.factory.ts deleted file mode 100644 index 9df6fb1..0000000 --- a/src/database/factories/category.factory.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { setSeederFactory } from 'typeorm-extension'; -import { Category } from '@db/entities/category.entity'; -import { generateImage } from '@utils/generate-img'; -import { OptionsTypeImg } from '@models/type-img'; - -export default setSeederFactory(Category, (faker) => { - const category = new Category(); - category.name = faker.commerce.department(); - category.image = generateImage('face'); - category.keyLoremSpace = faker.helpers.arrayElement(OptionsTypeImg); - return category; -}); diff --git a/src/database/factories/product.factory.ts b/src/database/factories/product.factory.ts deleted file mode 100644 index d20e99d..0000000 --- a/src/database/factories/product.factory.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { setSeederFactory } from 'typeorm-extension'; -import { Product } from '@db/entities/product.entity'; - -export default setSeederFactory(Product, (faker) => { - const product = new Product(); - product.title = faker.commerce.productName(); - product.price = parseInt(faker.commerce.price(), 10); - product.description = faker.commerce.productDescription(); - return product; -}); diff --git a/src/database/factories/user.factory.ts b/src/database/factories/user.factory.ts deleted file mode 100644 index c28f0d2..0000000 --- a/src/database/factories/user.factory.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { setSeederFactory } from 'typeorm-extension'; -import { User } from '@db/entities/user.entity'; -import { Role } from '@models/roles'; -import { generateImage } from '@utils/generate-img'; - -export default setSeederFactory(User, (faker) => { - const user = new User(); - user.email = faker.internet.email(); - user.password = faker.internet.password(); - user.role = Role.customer; - user.avatar = generateImage('face'); - user.name = faker.name.firstName(); - return user; -}); diff --git a/src/database/seeds/category.seeder.ts b/src/database/seeds/category.seeder.ts deleted file mode 100644 index 4753034..0000000 --- a/src/database/seeds/category.seeder.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { Seeder } from 'typeorm-extension'; -import { DataSource } from 'typeorm'; -import { Category } from '@db/entities/category.entity'; -import { generateImage } from '@utils/generate-img'; - -export default class CategorySeeder implements Seeder { - async run(dataSource: DataSource) { - const repository = dataSource.getRepository(Category); - await repository.save([ - { - id: 1, - name: 'Clothes', - keyLoremSpace: 'fashion', - image: generateImage('fashion'), - }, - { - id: 2, - name: 'Electronics', - keyLoremSpace: 'watch', - image: generateImage('watch'), - }, - { - id: 3, - name: 'Furniture', - keyLoremSpace: 'furniture', - image: generateImage('furniture'), - }, - { - id: 4, - name: 'Shoes', - keyLoremSpace: 'shoes', - image: generateImage('shoes'), - }, - { - id: 5, - name: 'Others', - keyLoremSpace: 'random', - image: generateImage('random'), - }, - ]); - } -} diff --git a/src/database/seeds/products.seeder.ts b/src/database/seeds/products.seeder.ts deleted file mode 100644 index 42c27e4..0000000 --- a/src/database/seeds/products.seeder.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Seeder, SeederFactoryManager } from 'typeorm-extension'; -import { DataSource } from 'typeorm'; -import { Category } from '@db/entities/category.entity'; -import { Product } from '@db/entities/product.entity'; -import { generateImage } from '@utils/generate-img'; - -export default class ProductsSeeder implements Seeder { - async run(dataSource: DataSource, factoryManager: SeederFactoryManager) { - const categoryRepo = dataSource.getRepository(Category); - const categories = await categoryRepo.find(); - - const promises = categories.map((category) => { - const productFactory = factoryManager.get(Product); - return productFactory.saveMany(40, { - category, - images: JSON.stringify([ - generateImage(category.keyLoremSpace), - generateImage(category.keyLoremSpace), - generateImage(category.keyLoremSpace), - ]), - }); - }); - await Promise.all(promises); - } -} diff --git a/src/database/seeds/user.seeder.ts b/src/database/seeds/user.seeder.ts deleted file mode 100644 index 71aa71b..0000000 --- a/src/database/seeds/user.seeder.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { Seeder, SeederFactoryManager } from 'typeorm-extension'; -import { DataSource } from 'typeorm'; -import { User } from '@db/entities/user.entity'; -import { Role } from '@models/roles'; -import { generateImage } from '@utils/generate-img'; - -export default class UserSeeder implements Seeder { - async run(dataSource: DataSource, factoryManager: SeederFactoryManager) { - const repository = dataSource.getRepository(User); - await repository.save([ - { - id: 1, - email: 'john@mail.com', - password: 'changeme', - name: 'Jhon', - role: Role.customer, - avatar: generateImage('face'), - }, - { - id: 2, - email: 'maria@mail.com', - password: '12345', - name: 'Maria', - role: Role.customer, - avatar: generateImage('face'), - }, - { - id: 3, - email: 'admin@mail.com', - password: 'admin123', - name: 'Admin', - role: Role.admin, - avatar: generateImage('face'), - }, - ]); - - const userFactory = factoryManager.get(User); - await userFactory.saveMany(5); - } -} diff --git a/src/services/seed.service.ts b/src/services/seed.service.ts index 67173d4..666824c 100644 --- a/src/services/seed.service.ts +++ b/src/services/seed.service.ts @@ -7,7 +7,8 @@ import { Category } from '@db/entities/category.entity'; import { Product } from '@db/entities/product.entity'; import { User } from '@db/entities/user.entity'; import { Role } from '@models/roles'; -import { generateImage } from '@utils/generate-img'; +import { generateAvatar } from '@utils/generate-img'; +import { CATEGORIES } from '@utils/images'; @Injectable() export class SeedService { @@ -31,7 +32,7 @@ export class SeedService { password: 'changeme', name: 'Jhon', role: Role.customer, - avatar: generateImage('face'), + avatar: generateAvatar(), }, { id: 2, @@ -39,7 +40,7 @@ export class SeedService { password: '12345', name: 'Maria', role: Role.customer, - avatar: generateImage('face'), + avatar: generateAvatar(), }, { id: 3, @@ -47,87 +48,36 @@ export class SeedService { password: 'admin123', name: 'Admin', role: Role.admin, - avatar: generateImage('face'), + avatar: generateAvatar(), }, ]); // -------- CATEGORIES -------- - - const categoriesRta = await categoriesRepo.save([ - { - id: 1, - name: 'Clothes', - keyLoremSpace: 'fashion', - image: generateImage('fashion'), - }, - { - id: 2, - name: 'Electronics', - keyLoremSpace: 'watch', - image: generateImage('watch'), - }, - { - id: 3, - name: 'Furniture', - keyLoremSpace: 'furniture', - image: generateImage('furniture'), - }, - { - id: 4, - name: 'Shoes', - keyLoremSpace: 'shoes', - image: generateImage('shoes'), - }, - { - id: 5, - name: 'Others', - keyLoremSpace: 'random', - image: generateImage('random'), - }, - ]); + const categoriesData = CATEGORIES.map((item) => ({ + id: item.id, + name: item.name, + image: item.image, + })); + const categoriesRta = await categoriesRepo.save(categoriesData); // -------- Products -------- const productsData: Array> = []; - const size = 200; - const category = faker.helpers.arrayElement(categoriesRta); - productsData.push({ - title: faker.commerce.productName(), - price: parseInt(faker.commerce.price(), 10), - description: faker.commerce.productDescription(), - category, - images: JSON.stringify([ - 'https://i.imgur.com/wUBxCQh.jpeg', - 'https://i.imgur.com/9aM8pz3.jpeg', - 'https://i.imgur.com/ZDMM36B.jpeg', - ]), - }); - productsData.push({ - title: faker.commerce.productName(), - price: parseInt(faker.commerce.price(), 10), - description: faker.commerce.productDescription(), - category, - images: JSON.stringify([ - 'https://i.imgur.com/CCnU4YX.jpeg', - 'https://i.imgur.com/JANnz25.jpeg', - 'https://i.imgur.com/ioc7lwM.jpeg', - ]), - }); - for (let index = 0; index < size; index++) { - const category = faker.helpers.arrayElement(categoriesRta); - const images = [ - generateImage(category.keyLoremSpace), - generateImage(category.keyLoremSpace), - generateImage(category.keyLoremSpace), - ]; - productsData.push({ - title: faker.commerce.productName(), - price: parseInt(faker.commerce.price(), 10), - description: faker.commerce.productDescription(), - category, - images: JSON.stringify(images), + CATEGORIES.forEach((category) => { + category.products.forEach((images) => { + const categoryEntity = categoriesRta.find( + (item) => item.id === category.id, + ); + productsData.push({ + title: faker.commerce.productName(), + price: parseInt(faker.commerce.price(), 10), + description: faker.commerce.productDescription(), + category: categoryEntity, + images: JSON.stringify(images), + }); }); - } + }); + await productsRepo.save(productsData); // -------- COUNTERS -------- diff --git a/src/utils/generate-img.ts b/src/utils/generate-img.ts index 169b7e2..1f7d7a8 100644 --- a/src/utils/generate-img.ts +++ b/src/utils/generate-img.ts @@ -1,130 +1,7 @@ -export type typeImg = - | 'movie' - | 'game' - | 'album' - | 'album' - | 'face' - | 'fashion' - | 'shoes' - | 'watch' - | 'furniture' - | 'pizza' - | 'burger' - | 'drink' - | 'car' - | 'house' - | 'random'; +import { faker } from '@faker-js/faker'; -const images2 = { - clothes: [ - [ - 'https://i.imgur.com/QkIa5tT.jpeg', - 'https://i.imgur.com/jb5Yu0h.jpeg', - 'https://i.imgur.com/UlxxXyG.jpeg' - ], - [ - 'https://i.imgur.com/1twoaDy.jpeg', - 'https://i.imgur.com/FDwQgLy.jpeg', - 'https://i.imgur.com/kg1ZhhH.jpeg', - ] - , [ - 'https://i.imgur.com/cHddUCu.jpeg', - 'https://i.imgur.com/CFOjAgK.jpeg', - 'https://i.imgur.com/wbIMMme.jpeg', - ], [ - 'https://i.imgur.com/R2PN9Wq.jpeg', - 'https://i.imgur.com/IvxMPFr.jpeg', - 'https://i.imgur.com/7eW9nXP.jpeg', - ], [ - 'https://i.imgur.com/cSytoSD.jpeg', - 'https://i.imgur.com/WwKucXb.jpeg', - 'https://i.imgur.com/cE2Dxh9.jpeg', - ], [ - 'https://i.imgur.com/ZKGofuB.jpeg', - 'https://i.imgur.com/GJi73H0.jpeg', - 'https://i.imgur.com/633Fqrz.jpeg', - ], [ - 'https://i.imgur.com/mp3rUty.jpeg', - 'https://i.imgur.com/JQRGIc2.jpeg', - ], [ - 'https://i.imgur.com/9LFjwpI.jpeg', - 'https://i.imgur.com/vzrTgUR.jpeg', - 'https://i.imgur.com/p5NdI6n.jpeg', - ], [ - 'https://i.imgur.com/R3iobJA.jpeg', - 'https://i.imgur.com/Wv2KTsf.jpeg', - 'https://i.imgur.com/76HAxcA.jpeg', - ], [ - 'https://i.imgur.com/wXuQ7bm.jpeg', - 'https://i.imgur.com/BZrIEmb.jpeg', - 'https://i.imgur.com/KcT6BE0.jpeg', - ], [ - 'https://i.imgur.com/cBuLvBi.jpeg', - 'https://i.imgur.com/N1GkCIR.jpeg', - 'https://i.imgur.com/kKc9A5p.jpeg', - ], [ - 'https://i.imgur.com/KeqG6r4.jpeg', - 'https://i.imgur.com/xGQOw3p.jpeg', - 'https://i.imgur.com/oO5OUjb.jpeg', - ], [ - 'https://i.imgur.com/UsFIvYs.jpeg', - 'https://i.imgur.com/YIq57b6.jpeg', - ], [ - 'https://i.imgur.com/eGOUveI.jpeg', - 'https://i.imgur.com/UcsGO7E.jpeg', - 'https://i.imgur.com/NLn4e7S.jpeg', - ], [ - 'https://i.imgur.com/axsyGpD.jpeg', - 'https://i.imgur.com/T8oq9X2.jpeg', - 'https://i.imgur.com/J6MinJn.jpeg', - ], [ - 'https://i.imgur.com/Y54Bt8J.jpeg', - 'https://i.imgur.com/SZPDSgy.jpeg', - 'https://i.imgur.com/sJv4Xx0.jpeg', - ], [ - 'https://i.imgur.com/9DqEOV5.jpeg', - 'https://i.imgur.com/ae0AEYn.jpeg', - 'https://i.imgur.com/mZ4rUjj.jpeg', - ]] -} - -const images = [ - 'https://i.imgur.com/5iNAL9T.jpeg', - 'https://i.imgur.com/x0K3SKA.jpeg', - 'https://i.imgur.com/Dm2pPfd.jpeg', - 'https://i.imgur.com/zQwsC2m.jpeg', - 'https://i.imgur.com/0KlqHu9.jpeg', - 'https://i.imgur.com/lVH533g.jpeg', - 'https://i.imgur.com/QEGACen.jpeg', - 'https://i.imgur.com/rDC2jWQ.jpeg', - 'https://i.imgur.com/OARGZQW.jpeg', - 'https://i.imgur.com/OLKMwgP.jpeg', - 'https://i.imgur.com/00qWleT.jpeg', - 'https://i.imgur.com/RQL19O6.jpeg', - 'https://i.imgur.com/kTPCFG2.jpeg', - 'https://i.imgur.com/gxaUWSF.jpeg', - 'https://i.imgur.com/rUWNzYa.jpeg', - 'https://i.imgur.com/Y5gHJMd.jpeg', - 'https://i.imgur.com/fpT4052.jpeg', - 'https://i.imgur.com/G45P8tI.jpeg', - 'https://i.imgur.com/DumuKkD.jpeg', - 'https://i.imgur.com/nZnWUc0.jpeg', - 'https://i.imgur.com/O1LUkwy.jpeg', - 'https://i.imgur.com/uDpzwEk.jpeg', - 'https://i.imgur.com/s8WRA2O.jpeg', - 'https://i.imgur.com/5mPmJYO.jpeg', - 'https://i.imgur.com/nCqOV7L.jpeg', - 'https://i.imgur.com/aCDF0yh.jpeg', - 'https://i.imgur.com/M3QKiC5.jpeg', - 'https://i.imgur.com/GwylUgV.jpeg', - 'https://i.imgur.com/imQx3Az.jpeg', - 'https://i.imgur.com/RLnJJyQ.jpeg', -]; - -export function generateImage(category: typeImg) { - const position = getRandomInt(0, images.length); - console.log(category); - return images[position]; +export function generateAvatar() { + return faker.image.avatar(); } export function getRandomInt(min: number, max: number) { diff --git a/src/utils/images.ts b/src/utils/images.ts new file mode 100644 index 0000000..5cdba1a --- /dev/null +++ b/src/utils/images.ts @@ -0,0 +1,261 @@ +export const CATEGORIES = [ + { + id: 1, + name: 'Clothes', + image: 'https://i.imgur.com/QkIa5tT.jpeg', + products: [ + [ + 'https://i.imgur.com/QkIa5tT.jpeg', + 'https://i.imgur.com/jb5Yu0h.jpeg', + 'https://i.imgur.com/UlxxXyG.jpeg', + ], + [ + 'https://i.imgur.com/1twoaDy.jpeg', + 'https://i.imgur.com/FDwQgLy.jpeg', + 'https://i.imgur.com/kg1ZhhH.jpeg', + ], + [ + 'https://i.imgur.com/cHddUCu.jpeg', + 'https://i.imgur.com/CFOjAgK.jpeg', + 'https://i.imgur.com/wbIMMme.jpeg', + ], + [ + 'https://i.imgur.com/R2PN9Wq.jpeg', + 'https://i.imgur.com/IvxMPFr.jpeg', + 'https://i.imgur.com/7eW9nXP.jpeg', + ], + [ + 'https://i.imgur.com/cSytoSD.jpeg', + 'https://i.imgur.com/WwKucXb.jpeg', + 'https://i.imgur.com/cE2Dxh9.jpeg', + ], + [ + 'https://i.imgur.com/ZKGofuB.jpeg', + 'https://i.imgur.com/GJi73H0.jpeg', + 'https://i.imgur.com/633Fqrz.jpeg', + ], + ['https://i.imgur.com/mp3rUty.jpeg', 'https://i.imgur.com/JQRGIc2.jpeg'], + [ + 'https://i.imgur.com/9LFjwpI.jpeg', + 'https://i.imgur.com/vzrTgUR.jpeg', + 'https://i.imgur.com/p5NdI6n.jpeg', + ], + [ + 'https://i.imgur.com/R3iobJA.jpeg', + 'https://i.imgur.com/Wv2KTsf.jpeg', + 'https://i.imgur.com/76HAxcA.jpeg', + ], + [ + 'https://i.imgur.com/wXuQ7bm.jpeg', + 'https://i.imgur.com/BZrIEmb.jpeg', + 'https://i.imgur.com/KcT6BE0.jpeg', + ], + [ + 'https://i.imgur.com/cBuLvBi.jpeg', + 'https://i.imgur.com/N1GkCIR.jpeg', + 'https://i.imgur.com/kKc9A5p.jpeg', + ], + [ + 'https://i.imgur.com/KeqG6r4.jpeg', + 'https://i.imgur.com/xGQOw3p.jpeg', + 'https://i.imgur.com/oO5OUjb.jpeg', + ], + ['https://i.imgur.com/UsFIvYs.jpeg', 'https://i.imgur.com/YIq57b6.jpeg'], + [ + 'https://i.imgur.com/eGOUveI.jpeg', + 'https://i.imgur.com/UcsGO7E.jpeg', + 'https://i.imgur.com/NLn4e7S.jpeg', + ], + [ + 'https://i.imgur.com/axsyGpD.jpeg', + 'https://i.imgur.com/T8oq9X2.jpeg', + 'https://i.imgur.com/J6MinJn.jpeg', + ], + [ + 'https://i.imgur.com/Y54Bt8J.jpeg', + 'https://i.imgur.com/SZPDSgy.jpeg', + 'https://i.imgur.com/sJv4Xx0.jpeg', + ], + [ + 'https://i.imgur.com/9DqEOV5.jpeg', + 'https://i.imgur.com/ae0AEYn.jpeg', + 'https://i.imgur.com/mZ4rUjj.jpeg', + ], + ], + }, + { + id: 2, + name: 'Furniture', + image: 'https://i.imgur.com/ZANVnHE.jpeg', + products: [ + [ + 'https://i.imgur.com/ZANVnHE.jpeg', + 'https://i.imgur.com/Ro5z6Tn.jpeg', + 'https://i.imgur.com/woA93Li.jpeg', + ], + [ + 'https://i.imgur.com/DMQHGA0.jpeg', + 'https://i.imgur.com/qrs9QBg.jpeg', + 'https://i.imgur.com/XVp8T1I.jpeg', + ], + [ + 'https://i.imgur.com/NWIJKUj.jpeg', + 'https://i.imgur.com/Jn1YSLk.jpeg', + 'https://i.imgur.com/VNZRvx5.jpeg', + ], + [ + 'https://i.imgur.com/6wkyyIN.jpeg', + 'https://i.imgur.com/Ald3Rec.jpeg', + 'https://i.imgur.com/dIqo03c.jpeg', + ], + [ + 'https://i.imgur.com/4lTaHfF.jpeg', + 'https://i.imgur.com/JktHE1C.jpeg', + 'https://i.imgur.com/cQeXQMi.jpeg', + ], + [ + 'https://i.imgur.com/3oXNBst.jpeg', + 'https://i.imgur.com/ErYYZnT.jpeg', + 'https://i.imgur.com/boBPwYW.jpeg', + ], + ['https://i.imgur.com/3dU0m72.jpeg', 'https://i.imgur.com/zPU3EVa.jpeg'], + ], + }, + { + id: 3, + name: 'Shoes', + image: 'https://i.imgur.com/qNOjJje.jpeg', + products: [ + [ + 'https://i.imgur.com/qNOjJje.jpeg', + 'https://i.imgur.com/NjfCFnu.jpeg', + 'https://i.imgur.com/eYtvXS1.jpeg', + ], + [ + 'https://i.imgur.com/62gGzeF.jpeg', + 'https://i.imgur.com/5MoPuFM.jpeg', + 'https://i.imgur.com/sUVj7pK.jpeg', + ], + [ + 'https://i.imgur.com/9qrmE1b.jpeg', + 'https://i.imgur.com/wqKxBVH.jpeg', + 'https://i.imgur.com/sWSV6DK.jpeg', + ], + [ + 'https://i.imgur.com/hKcMNJs.jpeg', + 'https://i.imgur.com/NYToymX.jpeg', + 'https://i.imgur.com/HiiapCt.jpeg', + ], + [ + 'https://i.imgur.com/mcW42Gi.jpeg', + 'https://i.imgur.com/mhn7qsF.jpeg', + 'https://i.imgur.com/F8vhnFJ.jpeg', + ], + [ + 'https://i.imgur.com/npLfCGq.jpeg', + 'https://i.imgur.com/vYim3gj.jpeg', + 'https://i.imgur.com/HxuHwBO.jpeg', + ], + [ + 'https://i.imgur.com/HqYqLnW.jpeg', + 'https://i.imgur.com/RlDGnZw.jpeg', + 'https://i.imgur.com/qa0O6fg.jpeg', + ], + [ + 'https://i.imgur.com/AzAY4Ed.jpeg', + 'https://i.imgur.com/umfnS9P.jpeg', + 'https://i.imgur.com/uFyuvLg.jpeg', + ], + [ + 'https://i.imgur.com/Au8J9sX.jpeg', + 'https://i.imgur.com/gdr8BW2.jpeg', + 'https://i.imgur.com/KDCZxnJ.jpeg', + ], + [ + 'https://i.imgur.com/sC0ztOB.jpeg', + 'https://i.imgur.com/Jf9DL9R.jpeg', + 'https://i.imgur.com/R1IN95T.jpeg', + ], + ], + }, + { + id: 4, + name: 'Miscellaneous', + image: 'https://i.imgur.com/BG8J0Fj.jpeg', + products: [ + [ + 'https://i.imgur.com/BG8J0Fj.jpeg', + 'https://i.imgur.com/ujHBpCX.jpeg', + 'https://i.imgur.com/WHeVL9H.jpeg', + ], + [ + 'https://i.imgur.com/Ex5x3IU.jpeg', + 'https://i.imgur.com/z7wAQwe.jpeg', + 'https://i.imgur.com/kc0Dj9S.jpeg', + ], + [ + 'https://i.imgur.com/xPDwUb3.jpeg', + 'https://i.imgur.com/3rfp691.jpeg', + 'https://i.imgur.com/kG05a29.jpeg', + ], + [ + 'https://i.imgur.com/jVfoZnP.jpeg', + 'https://i.imgur.com/Tnl15XK.jpeg', + 'https://i.imgur.com/7OqTPO6.jpeg', + ], + [ + 'https://i.imgur.com/Lqaqz59.jpeg', + 'https://i.imgur.com/uSqWK0m.jpeg', + 'https://i.imgur.com/atWACf1.jpeg', + ], + [ + 'https://i.imgur.com/0qQBkxX.jpeg', + 'https://i.imgur.com/I5g1DoE.jpeg', + 'https://i.imgur.com/myfFQBW.jpeg', + ], + [ + 'https://i.imgur.com/TF0pXdL.jpeg', + 'https://i.imgur.com/BLDByXP.jpeg', + 'https://i.imgur.com/b7trwCv.jpeg', + ], + ], + }, + { + id: 5, + name: 'Furniture', + image: 'https://i.imgur.com/Qphac99.jpeg', + products: [ + [ + 'https://i.imgur.com/Qphac99.jpeg', + 'https://i.imgur.com/dJjpEgG.jpeg', + 'https://i.imgur.com/MxJyADq.jpeg', + ], + [ + 'https://i.imgur.com/DMQHGA0.jpeg', + 'https://i.imgur.com/qrs9QBg.jpeg', + 'https://i.imgur.com/XVp8T1I.jpeg', + ], + [ + 'https://i.imgur.com/NWIJKUj.jpeg', + 'https://i.imgur.com/Jn1YSLk.jpeg', + 'https://i.imgur.com/VNZRvx5.jpeg', + ], + [ + 'https://i.imgur.com/6wkyyIN.jpeg', + 'https://i.imgur.com/Ald3Rec.jpeg', + 'https://i.imgur.com/dIqo03c.jpeg', + ], + [ + 'https://i.imgur.com/4lTaHfF.jpeg', + 'https://i.imgur.com/JktHE1C.jpeg', + 'https://i.imgur.com/cQeXQMi.jpeg', + ], + [ + 'https://i.imgur.com/3oXNBst.jpeg', + 'https://i.imgur.com/ErYYZnT.jpeg', + 'https://i.imgur.com/boBPwYW.jpeg', + ], + ['https://i.imgur.com/3dU0m72.jpeg', 'https://i.imgur.com/zPU3EVa.jpeg'], + ], + }, +]; diff --git a/temp.md b/temp.md deleted file mode 100644 index 7e8e875..0000000 --- a/temp.md +++ /dev/null @@ -1,226 +0,0 @@ -Lista completa: https://imgur.com/a/GlcHrIu - -### Ropa (17 items) - -```html -https://i.imgur.com/QkIa5tT.jpeg -https://i.imgur.com/jb5Yu0h.jpeg -https://i.imgur.com/UlxxXyG.jpeg - -https://imgur.com/1twoaDy -https://imgur.com/FDwQgLy -https://imgur.com/kg1ZhhH - -https://imgur.com/cHddUCu -https://imgur.com/CFOjAgK -https://imgur.com/wbIMMme - -https://imgur.com/R2PN9Wq -https://imgur.com/IvxMPFr -https://imgur.com/7eW9nXP - -https://imgur.com/cSytoSD -https://imgur.com/WwKucXb -https://imgur.com/cE2Dxh9 - -https://imgur.com/ZKGofuB -https://imgur.com/GJi73H0 -https://imgur.com/633Fqrz - -https://imgur.com/mp3rUty -https://imgur.com/JQRGIc2 - -https://imgur.com/9LFjwpI -https://imgur.com/vzrTgUR -https://imgur.com/p5NdI6n - -https://imgur.com/R3iobJA -https://imgur.com/Wv2KTsf -https://imgur.com/76HAxcA - -https://imgur.com/wXuQ7bm -https://imgur.com/BZrIEmb -https://imgur.com/KcT6BE0 - -https://imgur.com/cBuLvBi -https://imgur.com/N1GkCIR -https://imgur.com/kKc9A5p - -https://imgur.com/KeqG6r4 -https://imgur.com/xGQOw3p -https://imgur.com/oO5OUjb - -https://imgur.com/UsFIvYs -https://imgur.com/YIq57b6 - -https://imgur.com/eGOUveI -https://imgur.com/UcsGO7E -https://imgur.com/NLn4e7S - -https://imgur.com/axsyGpD -https://imgur.com/T8oq9X2 -https://imgur.com/J6MinJn - -https://imgur.com/Y54Bt8J -https://imgur.com/SZPDSgy -https://imgur.com/sJv4Xx0 - -https://imgur.com/9DqEOV5 -https://imgur.com/ae0AEYn -https://imgur.com/mZ4rUjj - -``` - -### Electronics (10) - -```html -https://imgur.com/ZANVnHE -https://imgur.com/Ro5z6Tn -https://imgur.com/woA93Li - -https://imgur.com/yVeIeDa -https://imgur.com/jByJ4ih -https://imgur.com/KXj6Tpb - -https://imgur.com/SolkFEB -https://imgur.com/KIGW49u -https://imgur.com/mWwek7p - -https://imgur.com/keVCVIa -https://imgur.com/afHY7v2 -https://imgur.com/yAOihUe - -https://imgur.com/w3Y8NwQ -https://imgur.com/WJFOGIC -https://imgur.com/dV4Nklf - -https://imgur.com/OKn1KFI -https://imgur.com/G4f21Ai -https://imgur.com/Z9oKRVJ - -https://imgur.com/ItHcq7o -https://imgur.com/55GM3XZ -https://imgur.com/tcNJxoW - -https://imgur.com/YaSqa06 -https://imgur.com/isQAliJ -https://imgur.com/5B8UQfh - -https://imgur.com/yb9UQKL -https://imgur.com/m2owtQG -https://imgur.com/bNiORct - -https://imgur.com/LGk9Jn2 -https://imgur.com/1ttYWaI -https://imgur.com/sPRWnJH - -``` - -### Furniture (7) - -```html -https://imgur.com/Qphac99 -https://imgur.com/dJjpEgG -https://imgur.com/MxJyADq - -https://imgur.com/DMQHGA0 -https://imgur.com/qrs9QBg -https://imgur.com/XVp8T1I - -https://imgur.com/NWIJKUj -https://imgur.com/Jn1YSLk -https://imgur.com/VNZRvx5 - -https://imgur.com/6wkyyIN -https://imgur.com/Ald3Rec -https://imgur.com/dIqo03c - -https://imgur.com/4lTaHfF -https://imgur.com/JktHE1C -https://imgur.com/cQeXQMi - -https://imgur.com/3oXNBst -https://imgur.com/ErYYZnT -https://imgur.com/boBPwYW - -https://imgur.com/3dU0m72 -https://imgur.com/zPU3EVa - -``` - -### Shoes (10) - -```html -https://imgur.com/qNOjJje -https://imgur.com/NjfCFnu -https://imgur.com/eYtvXS1 - -https://imgur.com/62gGzeF -https://imgur.com/5MoPuFM -https://imgur.com/sUVj7pK - -https://imgur.com/9qrmE1b -https://imgur.com/wqKxBVH -https://imgur.com/sWSV6DK - -https://imgur.com/hKcMNJs -https://imgur.com/NYToymX -https://imgur.com/HiiapCt - -https://imgur.com/mcW42Gi -https://imgur.com/mhn7qsF -https://imgur.com/F8vhnFJ - -https://imgur.com/npLfCGq -https://imgur.com/vYim3gj -https://imgur.com/HxuHwBO - -https://imgur.com/HqYqLnW -https://imgur.com/RlDGnZw -https://imgur.com/qa0O6fg - -https://imgur.com/AzAY4Ed -https://imgur.com/umfnS9P -https://imgur.com/uFyuvLg - -https://imgur.com/Au8J9sX -https://imgur.com/gdr8BW2 -https://imgur.com/KDCZxnJ - -https://imgur.com/sC0ztOB -https://imgur.com/Jf9DL9R -https://imgur.com/R1IN95T -``` - -### Miscellaneous (7) - -```html -https://imgur.com/BG8J0Fj -https://imgur.com/ujHBpCX -https://imgur.com/WHeVL9H - -https://imgur.com/Ex5x3IU -https://imgur.com/z7wAQwe -https://imgur.com/kc0Dj9S - -https://imgur.com/xPDwUb3 -https://imgur.com/3rfp691 -https://imgur.com/kG05a29 - -https://imgur.com/jVfoZnP -https://imgur.com/Tnl15XK -https://imgur.com/7OqTPO6 - -https://imgur.com/Lqaqz59 -https://imgur.com/uSqWK0m -https://imgur.com/atWACf1 - -https://imgur.com/0qQBkxX -https://imgur.com/I5g1DoE -https://imgur.com/myfFQBW - -https://imgur.com/TF0pXdL -https://imgur.com/BLDByXP -https://imgur.com/b7trwCv - -```