-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add mocks to available products
- Loading branch information
1 parent
62b8e88
commit a1c7b25
Showing
8 changed files
with
195 additions
and
47 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import type { | ||
ProductCategory, | ||
ProductList | ||
} from 'infra/services/availableProducts/types' | ||
|
||
const items: ProductList = [ | ||
{ | ||
id: 'okmwdfsiodfnin323', | ||
product: 'Água de Coco 300mL', | ||
description: 'Copo de 300mL', | ||
img: '/img/drinks/agua-de-coco-350ml.webp', | ||
hasFixedPrice: true, | ||
price: 5 | ||
}, | ||
{ | ||
id: 'astgvasutyv9782390', | ||
product: 'Coca-Cola 350mL', | ||
description: 'Lata de 350mL', | ||
img: '/img/drinks/coca-cola-350ml.webp', | ||
hasFixedPrice: true, | ||
price: 4 | ||
}, | ||
{ | ||
id: 'wdojkno8934b3rhb3', | ||
product: 'Guaraná Antarctica 350mL', | ||
description: 'Lata de 350mL', | ||
img: '/img/drinks/guarana-antarctica-350ml.webp', | ||
hasFixedPrice: true, | ||
price: 4 | ||
}, | ||
{ | ||
id: '9034jb34ib34yihbdew', | ||
product: 'Guaraná Antarctica 1L', | ||
description: 'Garrafa de 1L', | ||
img: '/img/drinks/guarana-antarctica-1l.webp', | ||
hasFixedPrice: true, | ||
price: 6 | ||
} | ||
] | ||
|
||
export const drinks: ProductCategory = { | ||
id: 'odfom89023ub23yugvsdijkbnsd97u23jb', | ||
category: 'Bebidas', | ||
items | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type { AvailableProducts } from 'infra/services/availableProducts/types' | ||
|
||
import { availableProducts } from './mock' | ||
|
||
export const mockAvailableProductsFindAll = { | ||
get: async (_endPoint: string): Promise<{ data: AvailableProducts }> => { | ||
return await new Promise(resolve => { | ||
setTimeout(() => resolve({ data: availableProducts }), 200) | ||
}) | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import type { AvailableProducts } from 'infra/services/availableProducts/types' | ||
|
||
import { drinks } from './drinks' | ||
import { promotionsOfTheDay } from './promotionsOfTheDay' | ||
import { sweetPizzas } from './sweetPizzas' | ||
import { traditionalPizzas } from './traditionalPizzas' | ||
|
||
export const availableProducts: AvailableProducts = [ | ||
promotionsOfTheDay, | ||
traditionalPizzas, | ||
sweetPizzas, | ||
drinks | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import type { | ||
ProductCategory, | ||
ProductList | ||
} from 'infra/services/availableProducts/types' | ||
|
||
const items: ProductList = [ | ||
{ | ||
id: 'fdg45jkmmwl4', | ||
product: 'Pizza Napolitana', | ||
description: | ||
'Mussarela, tomate, cebola, molho de tomate, azeite, orégano e parmesão ralado', | ||
img: '/img/pizzas/traditionalPizzas/napolitana.jpg', | ||
hasFixedPrice: false, | ||
price: 19 | ||
}, | ||
{ | ||
id: 'fdg4lght345', | ||
product: 'Pizza Peperoni', | ||
description: | ||
'Mussarela, alho, azeitona, molho de tomate, azeite, orégano e pepperoni', | ||
img: '/img/pizzas/traditionalPizzas/peperoni.jpg', | ||
hasFixedPrice: false, | ||
price: 19 | ||
} | ||
] | ||
|
||
export const promotionsOfTheDay: ProductCategory = { | ||
id: 'rfdfkljk23ij23ij23wedsdsd34', | ||
category: 'Promoções do dia', | ||
items | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import type { | ||
ProductCategory, | ||
ProductList | ||
} from 'infra/services/availableProducts/types' | ||
|
||
const items: ProductList = [ | ||
{ | ||
id: 'wodfkfwojknduojn24', | ||
product: 'Pizza Romeu e Julieta', | ||
description: 'Queijo, goiabada e leite condensado', | ||
img: '/img/pizzas/sweetPizzas/romeu-e-julieta.webp', | ||
hasFixedPrice: false, | ||
price: 22 | ||
}, | ||
{ | ||
id: 'oknojknasi89233nj', | ||
product: 'Pizza Banana', | ||
description: 'Banana, canela, leite condensado, coco e leite em pó', | ||
img: '/img/pizzas/sweetPizzas/banana.webp', | ||
hasFixedPrice: false, | ||
price: 22 | ||
}, | ||
{ | ||
id: '00sd8sduhsdhjweiohj', | ||
product: 'Pizza Chocolate', | ||
description: | ||
'Chocolate derretido, leite condensado, leite em pó e chocolate granulado', | ||
img: '/img/pizzas/sweetPizzas/chocolate.webp', | ||
hasFixedPrice: false, | ||
price: 22 | ||
}, | ||
{ | ||
id: 'sd0ds0oj9uioub34', | ||
product: 'Pizza Confete', | ||
description: 'Confete, leite condensado e chocolate derretido', | ||
img: '/img/pizzas/sweetPizzas/confete.webp', | ||
hasFixedPrice: false, | ||
price: 22 | ||
} | ||
] | ||
|
||
export const sweetPizzas: ProductCategory = { | ||
id: 'kwdidnw8922783b34j34kj34nh3vdhsdsdf', | ||
category: 'Pizzas Doces', | ||
items | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import type { | ||
ProductCategory, | ||
ProductList | ||
} from 'infra/services/availableProducts/types' | ||
|
||
const items: ProductList = [ | ||
{ | ||
id: 'fdg45jkm345', | ||
product: 'Pizza Calabresa', | ||
description: | ||
'Mussarela, molho especial, alho, azeitona, pimentão, milho, cebola, ervilha, orégano, tomate, azeite, pepperoni, pimenta-do-reino e catupiri', | ||
img: '/img/pizzas/traditionalPizzas/calabresa.jpg', | ||
hasFixedPrice: false, | ||
price: 19 | ||
}, | ||
{ | ||
id: 'l20z5jkm345', | ||
product: 'Pizza Mussarela', | ||
description: | ||
'Queijo mussarela, azeitona, molho de tomate, alho, cebola, azeite e orégano', | ||
img: '/img/pizzas/traditionalPizzas/mussarela.jpg', | ||
hasFixedPrice: false, | ||
price: 19 | ||
}, | ||
{ | ||
id: 'fdg45jkmmwl4', | ||
product: 'Pizza Napolitana', | ||
description: | ||
'Mussarela, tomate, cebola, molho de tomate, azeite, orégano e parmesão ralado', | ||
img: '/img/pizzas/traditionalPizzas/napolitana.jpg', | ||
hasFixedPrice: false, | ||
price: 19 | ||
}, | ||
{ | ||
id: 'fdg4lght345', | ||
product: 'Pizza Peperoni', | ||
description: | ||
'Mussarela, alho, azeitona, molho de tomate, azeite, orégano e pepperoni', | ||
img: '/img/pizzas/traditionalPizzas/peperoni.jpg', | ||
hasFixedPrice: false, | ||
price: 19 | ||
} | ||
] | ||
|
||
export const traditionalPizzas: ProductCategory = { | ||
id: 'rfuojnrufjn893434893489th439bt34', | ||
category: 'Pizzas Tradicionais', | ||
items | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.