id
stringlengths
12
53
messages
listlengths
3
3
code_omnichannel-order-status_c44b4774
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of omnichannel-order-status/node/clients/order.ts from the omnichannel-order-status VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport {\n ExternalClient,\n InstanceOptions,\n IOContext,\n IOResponse,\n} from '@vtex/api'\n\nexport default class Orders extends ExternalClient {\n constructor(context: IOContext, options?: InstanceOptions) {\n super('', context, options)\n }\n\n public async getOrganization(\n hostSite: String,\n email: String\n ): Promise<IOResponse<string>> {\n return this.http.getRaw(\n `http://${hostSite}/api/dataentities/CL/search?_fields=companyId&_where=email=${email}`,\n {\n metric: 'get-email',\n }\n )\n }\n\n public async getOrdersWithHeaders(\n order: String,\n endpoint: String,\n token: String,\n revendaId: String\n ): Promise<IOResponse<string>> {\n return this.http.getRaw(\n endpoint +\n '/api/v1/pedido/?pedidoErpId=' +\n order +\n '&revendaId=' +\n revendaId,\n {\n metric: 'status-get-raw',\n headers: {\n Authorization: 'Bearer ' + token + '',\n },\n }\n )\n }\n\n public async getOrdersFilesWithHeaders(\n order: String,\n endpoint: String,\n token: String,\n revendaId: String\n ): Promise<IOResponse<string>> {\n return this.http.getRaw(\n endpoint +\n '/api/v1/ArquivosPedido/?pedidoErpId=' +\n order +\n '&revendaId=' +\n revendaId,\n {\n metric: 'status-get-raw',\n headers: {\n Authorization: 'Bearer ' + token + '',\n },\n }\n )\n }\n\n public async postOrdersPeriod(\n body: any,\n endpoint: String,\n token: String\n ): Promise<IOResponse<string>> {\n return this.http.postRaw(endpoint + '/api/v1/pedido/pesquisa', body, {\n metric: 'get-order',\n headers: {\n Authorization: 'Bearer ' + token + '',\n 'Content-Type': 'application/json',\n },\n })\n }\n}\n\n```" } ]
code_omnichannel-order-status_c8e83942
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of omnichannel-order-status/node/clients/index.ts from the omnichannel-order-status VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { IOClients } from '@vtex/api'\n\nimport Ordersb2b from './order'\n\nexport class Clients extends IOClients {\n public get orders() {\n return this.getOrSet('orders', Ordersb2b)\n }\n}\n\n```" } ]
code_omnichannel-order-status_36d974cb
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of omnichannel-order-status/node/middlewares/orders.ts from the omnichannel-order-status VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { json } from 'co-body'\n\nexport async function ordersMiddleware(ctx: Context, next: () => Promise<any>) {\n const {\n state: { order },\n clients: { orders: statusClient },\n } = ctx\n\n const appId = process.env.VTEX_APP_ID as string\n const settings = await ctx.clients.apps.getAppSettings(appId)\n const email = ctx.request.header['x-vtex-caller']\n const hostSite = ctx.request.header['x-forwarded-host']\n\n const { data: organizationId }: any = await statusClient.getOrganization(\n hostSite,\n email\n )\n\n const {\n headers,\n data,\n status: responseStatus,\n } = await statusClient.getOrdersWithHeaders(\n order,\n settings.endpoint,\n settings.token,\n organizationId[0].companyId\n )\n\n ctx.status = responseStatus\n ctx.body = data\n ctx.set('Cache-Control', headers['cache-control'])\n\n await next()\n}\n\nexport async function ordersFilesMiddleware(\n ctx: Context,\n next: () => Promise<any>\n) {\n const {\n state: { order },\n clients: { orders: statusClient },\n } = ctx\n\n const appId = process.env.VTEX_APP_ID as string\n const settings = await ctx.clients.apps.getAppSettings(appId)\n const email = ctx.request.header['x-vtex-caller']\n const hostSite = ctx.request.header['x-forwarded-host']\n\n const { data: organizationId }: any = await statusClient.getOrganization(\n hostSite,\n email\n )\n\n const {\n headers,\n data,\n status: responseStatus,\n } = await statusClient.getOrdersFilesWithHeaders(\n order,\n settings.endpoint,\n settings.token,\n organizationId[0].companyId\n )\n\n ctx.status = responseStatus\n ctx.body = data\n ctx.set('Cache-Control', headers['cache-control'])\n\n await next()\n}\n\nexport async function ordersPeriodMiddleware(\n ctx: Context,\n next: () => Promise<any>\n) {\n const {\n clients: { orders: statusClient },\n } = ctx\n\n const appId = process.env.VTEX_APP_ID as string\n const settings = await ctx.clients.apps.getAppSettings(appId)\n const email = ctx.request.header['x-vtex-caller']\n const hostSite = ctx.request.header['x-forwarded-host']\n\n const { data: organizationId }: any = await statusClient.getOrganization(\n hostSite,\n email\n )\n\n let body = await json(ctx.req)\n\n body = {\n ...body,\n revendaId: organizationId[0].companyId,\n }\n\n const {\n headers,\n data,\n status: responseStatus,\n } = await statusClient.postOrdersPeriod(\n body,\n settings.endpoint,\n settings.token\n )\n\n ctx.status = responseStatus\n ctx.body = data\n ctx.set('Cache-Control', headers['cache-control'])\n await next()\n}\n\n```" } ]
code_omnichannel-order-status_0a4a5025
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of omnichannel-order-status/node/middlewares/oderValidation.ts from the omnichannel-order-status VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { UserInputError } from '@vtex/api'\n\nexport async function orderValidationMiddleware(\n ctx: Context,\n next: () => Promise<any>\n) {\n const {\n vtex: {\n route: { params },\n },\n } = ctx\n\n const { order } = params\n\n if (!order) {\n throw new UserInputError('Validation Error')\n }\n\n ctx.state.order = order.toString()\n\n await next()\n}\n\n```" } ]
code_omnichannel-order-status_f0bdacad
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of omnichannel-order-status/react/typings/storefront.d.ts from the omnichannel-order-status VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { FunctionComponent } from 'react'\n\ndeclare global {\n interface StorefrontFunctionComponent<P = {}> extends FunctionComponent<P> {\n getSchema?(props: P): object\n schema?: object\n }\n\n interface StorefrontComponent<P = {}, S = {}> extends Component<P, S> {\n getSchema?(props: P): object\n schema: object\n }\n}\n\n```" } ]
code_omnichannel-order-status_646365f2
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of omnichannel-order-status/react/typings/vtex.render-runtime.d.ts from the omnichannel-order-status VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\n/* Typings for `render-runtime` */\ndeclare module 'vtex.render-runtime' {\n import { Component, ComponentType, ReactElement, ReactType } from 'react'\n\n export interface NavigationOptions {\n page: string\n params?: any\n }\n\n export interface RenderContextProps {\n runtime: {\n navigate: (options: NavigationOptions) => void\n }\n }\n\n interface ExtensionPointProps {\n id: string\n [key: string]: any\n }\n\n export const ExtensionPoint: ComponentType<ExtensionPointProps>\n\n interface ChildBlockProps {\n id: string\n }\n\n export const ChildBlock: ComponentType<ChildBlockProps>\n export const useChildBlock = function({ id: string }): object {}\n\n export const Helmet: ReactElement\n export const Link: ReactType\n export const NoSSR: ReactElement\n export const RenderContextConsumer: ReactElement\n export const canUseDOM: boolean\n export const withRuntimeContext: <TOriginalProps extends {}>(\n Component: ComponentType<TOriginalProps & RenderContextProps>\n ) => ComponentType<TOriginalProps>\n}\n\n```" } ]
code_omnichannel-order-status_e6444863
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of omnichannel-order-status/react/typings/global.d.ts from the omnichannel-order-status VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nexport interface TimeSplit {\n hours: string,\n minutes: string,\n seconds: string\n}\n```" } ]
code_omnichannel-order-status_faad9ac3
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of omnichannel-order-status/react/typings/css.d.ts from the omnichannel-order-status VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\ndeclare module '*.css' {\n const css: any\n export default css\n}\n\n```" } ]
code_omnichannel-order-status_dc7be0ab
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of omnichannel-order-status/react/typings/graphql.d.ts from the omnichannel-order-status VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\ndeclare module '*.graphql' {\n import { DocumentNode } from 'graphql'\n\n const value: DocumentNode\n export default value\n}\n\n```" } ]
code_omnichannel-order-status_4adaf305
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of omnichannel-order-status/react/typings/vtex.styleguide.d.ts from the omnichannel-order-status VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\ndeclare module 'vtex.styleguide' {\n import { ComponentType } from 'react'\n\n export const Input: ComponentType<InputProps>\n\n interface InputProps {\n [key: string]: any\n }\n\n export const DatePicker: ComponentType<any>\n export const Spinner: ComponentType<any>\n export const Alert: ComponentType<any>\n export const Button: ComponentType<any>\n export const Table: ComponentType<any>\n export const EXPERIMENTAL_Table: ComponentType<any>\n export const Link: ComponentType<any>\n export const ArrowDown: ComponentType<any>\n export const ArrowUp: ComponentType<any>\n}\n\ndeclare module '@vtex/styleguide/lib/*' {\n const Component: ComponentType<any>\n export default Component\n}\n```" } ]
code_omnichannel-order-status_1af1ea41
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of omnichannel-order-status/react/utils/order.ts from the omnichannel-order-status VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nexport const orderStatus = (s: any) => {\n switch (s) {\n case -1:\n s = 'Cancelado'\n break\n case 0:\n s = 'Recebido'\n break\n case 1:\n s = 'Liberação Comercial'\n break\n case 2:\n s = 'Liberação Financeira'\n break\n case 3:\n s = 'Em Separação'\n break\n case 4:\n s = 'Despachado'\n break\n case 5:\n s = 'Entregue'\n break\n default:\n s = '----'\n }\n return s\n}\n```" } ]
code_omnichannel-order-status_2fd480d9
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of omnichannel-order-status/react/utils/time.ts from the omnichannel-order-status VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { TimeSplit } from \"../typings/global\"\n\nconst SECONDS_IN_MINUTE = 60\nconst SECONDS_IN_HOUR = 60 * SECONDS_IN_MINUTE\n\nexport const parseTimeRemaining = (totalSeconds: number) : TimeSplit => {\n const hours = Math.floor(totalSeconds / SECONDS_IN_HOUR)\n const minutes = Math.floor(((totalSeconds % SECONDS_IN_HOUR) / SECONDS_IN_MINUTE))\n const seconds = Math.floor(((totalSeconds % SECONDS_IN_HOUR) % SECONDS_IN_MINUTE))\n return {\n hours: fillWithZero(2, hours),\n minutes: fillWithZero(2, minutes),\n seconds: fillWithZero(2, seconds)\n } \n}\n\nconst fillWithZero = (digits: number, number: number) : string => { \n const filled = '0'.repeat(digits - 1) + number \n return filled.slice(filled.length - digits)\n}\n\n/**\n * \n * @param targetDate ISOString for the date that the countdown will expire\n * @param dispatchFn A function that updates the state of the component\n */\nexport const tick = (targetDate: string, dispatchFn: React.Dispatch<React.SetStateAction<TimeSplit>>) => { \n const ONE_SECOND_IN_MILLIS = 1000\n let finalDate = new Date(targetDate)\n let now = new Date()\n\n let secondsLeft = (finalDate.getTime() - now.getTime())/ONE_SECOND_IN_MILLIS\n\n setTimeout(()=> {\n dispatchFn(parseTimeRemaining(secondsLeft))\n }, ONE_SECOND_IN_MILLIS)\n}\n\n```" } ]
code_omnichannel-order-status_eec38922
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of omnichannel-order-status/react/components/CurrencyContext.tsx from the omnichannel-order-status VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport { createContext, useContext } from 'react'\n\nexport const CurrencyContext = createContext<string>('BRL')\n\nexport function useCurrency() {\n return useContext(CurrencyContext)\n}\n```" } ]
code_omnichannel-order-status_54495752
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of omnichannel-order-status/react/components/FormattedPrice.tsx from the omnichannel-order-status VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React, { FC } from 'react'\nimport { FormattedNumber } from 'react-intl'\n\nimport { useCurrency } from './CurrencyContext'\n\ninterface Props {\n value: number\n}\n\nconst FormattedPrice: FC<Props> = ({ value }) => {\n const currency = useCurrency()\n\n return (\n <FormattedNumber currency={currency} style=\"currency\" value={value / 100} />\n )\n}\n\nexport default FormattedPrice\n```" } ]
code_omnichannel-order-status_1d855121
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of omnichannel-order-status/react/graphql/productReleaseDate.graphql from the omnichannel-order-status VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```graphql\nquery productReleaseDate($slug: String){\n product(slug: $slug) {\n releaseDate\n }\n}\n\n```" } ]
code_omnichannel-order-status_d888659f
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of omnichannel-order-status/react/components/OrderDetails/index.tsx from the omnichannel-order-status VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React, { useState, useEffect, FunctionComponent } from 'react'\nimport { ContentWrapper } from 'vtex.my-account-commons'\nimport ApiB2B from '../Services/ApiB2b'\nimport OrderTracking from './orderTracking'\n\nimport { FormattedMessage } from 'react-intl'\nimport { FormattedCurrency } from 'vtex.format-currency'\nimport { format } from 'date-fns'\nimport { Link, Alert, Spinner, EXPERIMENTAL_Table } from 'vtex.styleguide'\n import useTableMeasures from '@vtex/styleguide/lib/EXPERIMENTAL_Table/hooks/useTableMeasures'\nimport './style.global.css'\n\n\nimport {\n tableSchemaProducts,\ntableSchemaBillingAddress,\ntableSchemaDeliveryAddress,\ntableSchemaOtherInformations\n} from \"./tableStructure\"\n\nconst OrderDatails: FunctionComponent<Props> = ({ match }) => {\n const [dataOrder, setDataOrder] = useState<any | undefined>([])\n const [dataFiles, setDataFile] = useState<any | undefined>([])\n\n const [isLoading, setisLoading] = useState<boolean | false>(false)\n const [isErrorDataOrder, setIsErrorDataOrder] = useState<boolean | false>(false)\n const [isErrorDataFile, setIsErrorDataFile] = useState<boolean | false>(false)\n\n const idOrder = match.params.order.toString()\n\n const itensOthersInformations = [\n {\n paymentMethod: dataOrder.paymentMethod,\n paymentOptions: dataOrder.paymentOptions,\n deliveryMethod: dataOrder.deliveryMethod,\n linkTransportadora: dataOrder.linkTransportadora\n }\n ]\n\n const itensDeliveryAddress = [\n {\n deliveryAddressCorpname: dataOrder.deliveryAddressCorpname,\n billingAddressCity: dataOrder.billingAddressCity,\n billingAddressState: dataOrder.billingAddressState,\n billingAddresszipcode: dataOrder.billingAddresszipcode\n }\n ]\n\n const itensBillingAddress = [\n {\n deliveryAddressCorpname: dataOrder.deliveryAddressCorpname,\n billingAddressFormattedAddres: dataOrder.billingAddressFormattedAddres,\n billingAddressCity: dataOrder.billingAddressCity,\n billingAddressState: dataOrder.billingAddressState,\n billingAddresszipcode: dataOrder.billingAddresszipcode\n }\n ]\n\n const measuresProducts = useTableMeasures({ size: dataOrder.itens?.length })\n const measuresOthersInformations = useTableMeasures({ size: itensOthersInformations?.length })\n const measuresDeliveryAddress = useTableMeasures({ size: itensDeliveryAddress?.length })\n const measureBillingAddress = useTableMeasures({ size: itensBillingAddress?.length })\n\n async function detailOrders() {\n setisLoading(true)\n try {\n const results = await ApiB2B.get('ordersb2b/' + idOrder)\n setDataOrder(results.data)\n } catch (err) {\n setIsErrorDataOrder(true)\n console.warn('Pedido', err)\n } finally {\n setisLoading(false)\n }\n }\n\n async function getFiles() {\n try {\n const result = await ApiB2B.get('ordersb2b/files/' + idOrder)\n setDataFile(result.data)\n } catch (err) {\n setIsErrorDataFile(true)\n console.warn('Arquivos do pedido', err)\n }\n }\n\n useEffect(() => {\n getFiles(), detailOrders()\n }, [])\n\n return (\n <ContentWrapper\n titleId=\"titleOrderDetails\"\n namespace=\"custom-page\"\n backButton={{\n title: \"return\",\n titleId: \"titleOrderDetails\",\n path: \"/b2b-order\"\n }\n }>\n {() => (\n <div>\n {isErrorDataOrder && (\n <Alert type=\"error\" onClose={() => console.log('Closed!')}>\n <FormattedMessage id=\"message.error\" />\n </Alert>\n )}\n <div className=\"vtex_orders-detail c-on-base\">\n <table className=\"f6 w-100 mw8\">\n <tbody className=\"lh-copy\">\n <tr>\n <td className=\"fw6 pv3 pr3 bb tl b--black-20 c-on-base\">\n {<FormattedMessage id=\"label.numberOrderWeb\" />}\n </td>\n <td className=\"pv3 pr3 bb tr b--black-20\">\n {dataOrder.pedidoErpId}\n </td>\n </tr>\n <tr>\n <td className=\"fw6 pv3 pr3 bb tl b--black-20 c-on-base\">\n {<FormattedMessage id=\"table.orderDate\" />}\n </td>\n <td className=\"pv3 pr3 bb tr b--black-20\">\n {dataOrder.dataPedido\n ? format(new Date(dataOrder.dataPedido), 'dd/MM/yyyy')\n : dataOrder.dataPedido}\n </td>\n </tr>\n <tr>\n <td className=\"fw6 pv3 pr3 bb tl b--black-20 c-on-base\">\n {<FormattedMessage id=\"table.name\" />}\n </td>\n <td className=\"pv3 pr3 bb tr b--black-20\">\n {dataOrder.clienteFinalNome}\n </td>\n </tr>\n <tr>\n <td className=\"fw6 pr3 bb tl b--black-20 c-on-base\">\n CPF/CNPJ\n </td>\n <td className=\"pv3 pr3 bb tr b--black-20\">\n {dataOrder.clienteFinalCpf}\n {dataOrder.clienteFinalCnpj}\n </td>\n </tr>\n </tbody>\n </table>\n\n <div className=\"t-heading-4 mt6 mb5\">\n {<FormattedMessage id=\"order.tracking\" />}\n </div>\n\n <div>\n <OrderTracking status={dataOrder.status} />\n </div>\n\n {isErrorDataOrder ? (\n <div className=\"flex items-center h-100 c-muted-2 pa7-l\">\n <div className=\"w-80 w-60-l center tc\">\n <span className=\"t-heading-4 mt0\">Nothing to show.</span>\n </div>\n </div>\n ) : (\n <div>\n <div className=\"w-100 pa2\">\n <p>\n <strong className=\"c-on-base\">\n {<FormattedMessage id=\"order.billingAddress\" />}\n </strong>\n </p>\n {isLoading ? (\n <div className=\"tc\">\n <Spinner />\n </div>\n ) : (\n <EXPERIMENTAL_Table\n measures={measureBillingAddress}\n columns={tableSchemaBillingAddress}\n items={itensBillingAddress}\n />\n )}\n </div>\n\n <div className=\"w-100 pa2\">\n <p>\n <strong className=\"c-on-base\">\n {<FormattedMessage id=\"order.deliveryAddress\" />}\n </strong>\n </p>\n {isLoading ? (\n <div className=\"tc\">\n <Spinner />\n </div>\n ) : (\n <EXPERIMENTAL_Table\n measures={measuresDeliveryAddress}\n columns={tableSchemaDeliveryAddress}\n items={itensDeliveryAddress}\n />\n )}\n </div>\n\n <div className=\"w-100 pa2\">\n <p>\n <strong className=\"c-on-base\">\n {<FormattedMessage id=\"order.otherInformations\" />}\n </strong>\n </p>\n {isLoading ? (\n <div className=\"tc\">\n <Spinner />\n </div>\n ) : (\n <EXPERIMENTAL_Table\n measures={measuresOthersInformations}\n columns={tableSchemaOtherInformations}\n items={itensOthersInformations}\n />\n )}\n </div>\n </div>\n )}\n\n <div className=\"t-heading-4 mt6 mb5\">\n {<FormattedMessage id=\"order.purchaseData\" />}\n </div>\n\n <div className=\"overflow-auto mt7 mb7\">\n {isLoading ? (\n <div className=\"tc\">\n <Spinner />\n </div>\n ) : (\n <EXPERIMENTAL_Table\n measures={measuresProducts}\n columns={tableSchemaProducts}\n items={dataOrder.itens}\n />\n )}\n </div>\n\n {!isErrorDataOrder && (\n <div className=\"order_-summary tr\">\n <div className=\"w-100 mw6 dib\">\n <table className=\"f6 w-100 ba b--black-10\">\n <tbody className=\"lh-copy\">\n <tr>\n <td className=\"fw5 pv3 pr3 bb tl b--black-10\">\n Sub-total:\n </td>\n <td className=\"pv3 pr3 bb tr b--black-10\">\n <FormattedCurrency\n value={\n dataOrder.valorTotalPedido -\n dataOrder.valorFrete\n }\n />\n </td>\n </tr>\n <tr>\n <td className=\"fw5 pv3 pr3 bb tl b--black-10\">\n {<FormattedMessage id=\"table.freight\" />}:\n </td>\n <td className=\"pv3 pr3 bb tr b--black-10\">\n <FormattedCurrency value={dataOrder.valorFrete} />\n </td>\n </tr>\n <tr>\n <td className=\"fw5 pv3 pr3 bb tl b--black-10\">\n {<FormattedMessage id=\"table.orderTotal\" />}:\n </td>\n <td className=\"pv3 pr3 bb tr b--black-10\">\n <FormattedCurrency\n value={dataOrder.valorTotalPedido}\n />\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n )}\n\n <div className=\"t-heading-4 mt6 mb5\">\n {<FormattedMessage id=\"title.serviceTax\" />}\n </div>\n\n {isErrorDataFile ? (\n <div className=\"flex items-center h-100 c-muted-2 pa7-l\">\n <div className=\"w-80 w-60-l center tc\">\n <span className=\"t-heading-4 mt0\">Nothing to show.</span>\n </div>\n </div>\n ) : (\n <ul className=\"pa0 ma0\">\n {dataFiles.itens?.map((item: any, index: number) => (\n <li key={index} className=\"pa3 dib\">\n <Link href={item.url} target=\"_blank\">\n {item.descricao}\n </Link>\n </li>\n ))}\n </ul>\n )}\n </div>\n </div>\n )}\n </ContentWrapper>\n )\n}\n\ntype Props = {\n match: {\n params: {\n param: string\n order: string\n }\n }\n}\n\nexport default OrderDatails\n\n```" } ]
code_omnichannel-order-status_b7cdb9e0
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of omnichannel-order-status/react/components/OrderDetails/tableStructure.tsx from the omnichannel-order-status VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React from \"react\"\nimport { FormattedMessage } from 'react-intl'\nimport { FormattedCurrency } from 'vtex.format-currency'\n\nexport const tableSchemaProducts = [\n {\n id: 'descricaoDoProduto',\n title: <FormattedMessage id='table.name' />\n },\n {\n id: 'valorUnitario',\n title: <FormattedMessage id='table.price' />,\n cellRenderer: ({ data }: any) => {\n return <FormattedCurrency value={data} />\n }\n },\n {\n id: 'quantidade',\n title: <FormattedMessage id='table.quantity' />\n },\n {\n id: 'valorTotal',\n title: 'Total',\n cellRenderer: ({ data }: any) => {\n return <FormattedCurrency value={data} />\n },\n }\n]\n\nexport const tableSchemaBillingAddress = [\n {\n id: 'deliveryAddressCorpname',\n title: <FormattedMessage id='order.deliveryAddress' />\n },\n {\n id: 'billingAddressFormattedAddres',\n title: <FormattedMessage id='table.address' />\n },\n {\n id: 'billingAddressCity',\n title: <FormattedMessage id='table.city' />\n },\n {\n id: 'billingAddressState',\n title: <FormattedMessage id='table.state' />\n },\n {\n id: 'billingAddresszipcode',\n title: <FormattedMessage id='table.zipCode' />\n }\n]\n\nexport const tableSchemaDeliveryAddress = [\n {\n id: 'deliveryAddressCorpname',\n title: <FormattedMessage id='order.deliveryAddress' />\n },\n {\n id: 'billingAddressCity',\n title: <FormattedMessage id='table.city' />\n },\n {\n id: 'billingAddressState',\n title: <FormattedMessage id='table.state' />\n },\n {\n id: 'billingAddresszipcode',\n title: <FormattedMessage id='table.zipCode' />\n },\n]\n\nexport const tableSchemaOtherInformations = [\n {\n id: 'paymentMethod',\n title: <FormattedMessage id='table.methodPayment' />\n },\n {\n id: 'paymentOptions',\n title: <FormattedMessage id='table.optionPayment' />\n },\n {\n id: 'deliveryMethod',\n title: <FormattedMessage id='table.deliveryMethod' />\n },\n {\n id: 'linkTransportadora',\n title: <FormattedMessage id='table.carrierLink' />\n },\n]\n\n```" } ]
code_omnichannel-order-status_dc07a68f
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of omnichannel-order-status/react/components/OrderDetails/orderTracking.tsx from the omnichannel-order-status VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React, { FunctionComponent } from 'react'\nimport { FormattedMessage } from 'react-intl'\n\ninterface TrackingProps {\n status: number\n}\n\nconst OrderTracking: FunctionComponent<TrackingProps> = ({status}) => {\n\tfunction orderStatusDot(meuNum: Number, status: Number){\n\t\tif(meuNum <= status){\n\t\t\t\treturn \"milestone--reached\"\n\t\t}\n\t\treturn \"\"\n\t}\n\n\tfunction orderStatusBar(status: number){\n\t\tif(status > 4){\n\t\t\treturn \"100%\"\n\t\t}\n\n\t\treturn `${(Number(17) * status)}%`\n\t}\n\n\treturn (\n\t\t<div className=\"progress-bar\" role=\"progressbar\">\n\t\t\t<span className=\"progress\" style={{\"width\": `${orderStatusBar(status)}`}}></span>\n\t\t\t<div className=\"isMobile\">\n\t\t\t\t<div className={`milestone ${orderStatusDot(1, status)}`}>\n\t\t\t\t\t<label className=\"c-on-base\">{<FormattedMessage id=\"order.commercialRelease\" />}</label>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div className=\"isMobile\">\n\t\t\t\t<div className={`milestone ${orderStatusDot(2, status)}`}>\n\t\t\t\t\t<label className=\"c-on-base\"><FormattedMessage id=\"order.financeRelease\" /></label>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div className=\"isMobile\">\n\t\t\t\t<div className={`milestone ${orderStatusDot(3, status)}`}>\n\t\t\t\t\t<label className=\"c-on-base\"><FormattedMessage id=\"order.separation\" /></label>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div className=\"isMobile\">\n\t\t\t\t<div className={`milestone ${orderStatusDot(4, status)}`}>\n\t\t\t\t\t<label className=\"c-on-base\"><FormattedMessage id=\"order.dispatch\" /></label>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div className=\"isMobile\">\n\t\t\t\t<div className={`milestone ${orderStatusDot(5, status)}`}>\n\t\t\t\t\t<label className=\"c-on-base\"><FormattedMessage id=\"order.delivery\" /></label>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t)\n}\n\nexport default OrderTracking\n```" } ]
code_omnichannel-order-status_eb511a74
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of omnichannel-order-status/react/components/OrderDetails/style.global.css from the omnichannel-order-status VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.progress-bar {\n margin: 40px 0 60px 0;\n width: 100%;\n margin-left: auto;\n margin-right: auto;\n max-width: 800px;\n height: 10px;\n background-color: #cdd0d0;\n border-radius: 99em;\n display: flex;\n justify-content: space-evenly;\n align-items: center;\n position: relative;\n}\n\n.progress {\n background-color: #006a71;\n top: 0;\n left: 0;\n bottom: 0;\n position: absolute;\n border-radius: 99em;\n}\n\n.milestone {\n position: relative;\n width: 20px;\n height: 20px;\n border-radius: 50%;\n border: 2px solid #fff;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #cdd0d0;\n color: #fff;\n}\n.milestone--reached {\n background-color: #006a71;\n}\n.milestone label{\n position: absolute;\n top: 35px;\n width: 130px;\n text-align: center;\n}\n\n@media (max-width: 768px){\n .progress-bar{\n max-width: initial;\n height: initial;\n background-color: initial;\n flex-direction: column;\n margin: 40px 0 20px 0;\n }\n\n .progress{\n display: none;\n }\n\n .milestone label {\n top: 27px;\n }\n\n .isMobile{\n height: 75px;\n }\n}\n\n```" } ]
code_omnichannel-order-status_ec1ff237
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of omnichannel-order-status/react/components/OrdersB2B/index.tsx from the omnichannel-order-status VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React, { useState, FunctionComponent } from 'react'\nimport { ContentWrapper } from 'vtex.my-account-commons'\nimport ApiB2B from '../Services/ApiB2b'\nimport { tableOrdersPeriod, tableOrders } from \"./tableOrders\"\nimport { FormattedMessage } from 'react-intl'\nimport { format } from 'date-fns'\nimport {\n DatePicker,\n Spinner,\n Alert,\n Button,\n Table,\n Input,\n} from 'vtex.styleguide'\n\ntype typeOrder = \"orderWeb\" | \"orderERP\" | \"myOrder\"\n\nconst OrdersB2B: FunctionComponent<Props> = ({}) => {\n const [formFileds, setFormFileds] = useState<any | {}>({\n inputOrderWeb: '',\n inputOrderErp: '',\n inputOrderInpt: '',\n })\n\n const [pedidoWebInputError, setOrderWebInputError] = useState<any | {}>({})\n const [dataPedidosWeb, setDataPedidoWeb] = useState<any | []>([])\n const [dataPedidoPeriod, setDataPedidoPeriod] = useState<any | []>([])\n\n const [dateInicial, setDateInicial] = useState(new Date())\n const [dateFim, setEndDateFim] = useState(new Date())\n\n const [loadSpinner, setLoadSpinner] = useState<boolean | false>(false)\n const [noResult, setNoResult] = useState<boolean | false>(false)\n\n const itensPeriodOrder = dataPedidoPeriod.itens\n const orders = [dataPedidosWeb]\n\n function validateOrderInput(type: typeOrder){\n switch(type){\n case \"myOrder\": {\n if (formFileds.inputOrderInpt === '') {\n setOrderWebInputError({\n ...pedidoWebInputError,\n inputOrderInpt: <FormattedMessage id=\"label.required\" />,\n })\n return true;\n }\n return null;\n }\n case \"orderWeb\": {\n if (formFileds.inputOrderWeb === '') {\n setOrderWebInputError({\n ...pedidoWebInputError,\n inptOrderWeb: <FormattedMessage id=\"label.required\" />,\n })\n return true;\n }\n return null;\n }\n case \"orderERP\": {\n if (formFileds.inputOrderErp === '') {\n setOrderWebInputError({\n ...pedidoWebInputError,\n inptOrderERP: <FormattedMessage id=\"label.required\" />,\n })\n return true;\n }\n return null;\n }\n default: {\n return null;\n }\n }\n }\n\n async function searchMyOrder(type: typeOrder){\n const validation = validateOrderInput(type);\n\n if(!validation){\n setDataPedidoPeriod([])\n setLoadSpinner(true)\n setNoResult(false)\n\n try {\n const result = await ApiB2B.get('ordersb2b/' + formFileds.inputOrderWeb + formFileds.inputOrderErp, formFileds.inputOrderInpt)\n setLoadSpinner(false)\n setDataPedidoWeb(result.data)\n } catch (err) {\n setDataPedidoWeb([])\n setLoadSpinner(false)\n setNoResult(true)\n }\n }\n }\n\n async function searchOrderData() {\n setDataPedidoWeb([])\n setLoadSpinner(true)\n setNoResult(false)\n\n const parseDateIncial = format(dateInicial, 'yyyy-MM-dd')\n const parseDateFinal = format(dateFim, 'yyyy-MM-dd')\n\n try {\n const data = {\n porPeriodo: {\n dataInicial: parseDateIncial,\n dataFim: parseDateFinal,\n },\n }\n\n const result = await ApiB2B.post('/ordersb2b/date', data)\n setDataPedidoPeriod(result.data)\n setLoadSpinner(false)\n } catch (err) {\n setLoadSpinner(false)\n setNoResult(true)\n }\n }\n\n return (\n <ContentWrapper titleId=\"title.OrderPage\" namespace=\"custom-page\">\n {() => (\n <div>\n <div className=\"vtex_ordersb2b flex flex-column-s flex-row-ns\">\n <div className=\"w-60-ns w-100-s\">\n <form>\n <p className=\"f4\">\n {<FormattedMessage id=\"title.searchOrders\" />}\n </p>\n <div className=\"w-80-l mb4 cf\">\n <div className=\"mw5-l fl w-100 w-60-s\">\n <Input\n label={<FormattedMessage id=\"label.numberOrderWeb\" />}\n type=\"text\"\n size=\"small\"\n id=\"pedido_web\"\n name=\"pedido_web\"\n errorMessage={pedidoWebInputError.inptOrderWeb}\n onChange={(e: any) => {\n setFormFileds({\n ...formFileds,\n inputOrderWeb: e.target.value,\n })\n if (pedidoWebInputError.inptOrderWeb !== '') {\n setOrderWebInputError({\n ...pedidoWebInputError,\n inptOrderWeb: '',\n })\n }\n }}\n ></Input>\n </div>\n\n <div className=\"fl mw4 w-100 ml2 mt6 w-30-s\">\n <Button\n size=\"small\"\n variation=\"primary\"\n onClick={() => searchMyOrder(\"orderWeb\")}\n >\n <FormattedMessage id=\"btn.search\" />\n </Button>\n </div>\n </div>\n\n <div className=\"w-80-l mb4 cf\">\n <div className=\"mw5-l fl w-100 w-60-s\">\n <Input\n size=\"small\"\n label={<FormattedMessage id=\"label.numberDigimess\" />}\n type=\"text\"\n id=\"digimess\"\n name=\"digimess\"\n errorMessage={pedidoWebInputError.inptOrderERP}\n onChange={(e: any) => {\n setFormFileds({\n ...formFileds,\n inputOrderErp: e.target.value,\n })\n if (pedidoWebInputError.inptOrderERP !== '') {\n setOrderWebInputError({\n ...pedidoWebInputError,\n inptOrderERP: '',\n })\n }\n }}\n ></Input>\n </div>\n <div className=\"fl mw4 w-100 ml2 mt6 w-30-s\">\n <Button\n size=\"small\"\n variation=\"primary\"\n onClick={() => searchMyOrder(\"orderERP\")}\n >\n <FormattedMessage id=\"btn.search\" />\n </Button>\n </div>\n </div>\n\n <div className=\"w-80-l b4 cf\">\n <div className=\"mw5-l fl w-100 w-60-s\">\n <Input\n size=\"small\"\n label={<FormattedMessage id=\"label.myOrder\" />}\n type=\"text\"\n id=\"meu_pedido\"\n name=\"meu_pedido\"\n errorMessage={pedidoWebInputError.inputOrderInpt}\n onChange={(e: any) => {\n setFormFileds({\n ...formFileds,\n inputOrderInpt: e.target.value,\n })\n if (pedidoWebInputError.inputOrderInpt !== '') {\n setOrderWebInputError({\n ...pedidoWebInputError,\n inputOrderInpt: '',\n })\n }\n }}\n ></Input>\n </div>\n\n <div className=\"fl mw4 w-100 ml2 mt6 w-30-s\">\n <Button\n size=\"small\"\n variation=\"primary\"\n onClick={() => searchMyOrder(\"myOrder\")}\n >\n <FormattedMessage id=\"btn.search\" />\n </Button>\n </div>\n </div>\n </form>\n </div>\n\n <div className=\"w-60-ns w-100-s\">\n <p className=\"f4\">{<FormattedMessage id=\"title.searchDate\" />}</p>\n\n <form className=\"flex\">\n <div className=\"w-60-ns w-100\">\n <DatePicker\n label={<FormattedMessage id=\"label.date\" />}\n id=\"start_data\"\n name=\"start_data\"\n className=\"w-100 ma0 border-box bw1 br2 b--solid outline-0 near-black b--light-gray hover-b--silver bg-white f6 pv3 ph5\"\n value={dateInicial}\n locale=\"pt-BR\"\n onChange={(date: any) => setDateInicial(date)}\n />\n </div>\n\n <div className=\"w-60-ns w-100 ph2\">\n <DatePicker\n label={<FormattedMessage id=\"label.dateUpTo\" />}\n id=\"end_data\"\n name=\"end_data\"\n className=\"w-100 ma0 border-box bw1 br2 b--solid outline-0 near-black b--light-gray hover-b--silver bg-white f6 pv3 ph5\"\n value={dateFim}\n locale=\"pt-BR\"\n s\n onChange={(date: any) => setEndDateFim(date)}\n />\n </div>\n </form>\n <div className=\"db mt4\">\n <Button\n block\n size=\"small\"\n variation=\"primary\"\n onClick={searchOrderData}\n >\n <FormattedMessage id=\"btn.search\" />\n </Button>\n </div>\n </div>\n </div>\n\n <div className=\"vtex_order-table flex flex-column-s flex-row-ns\">\n <div className=\"w-100 mt7\">\n {loadSpinner ? (\n <div className=\"tc\">\n <Spinner />\n </div>\n ) : dataPedidosWeb?.itens ? (\n <Table\n fullWidth\n dynamicRowHeight\n schema={tableOrders}\n items={orders}\n density=\"high\"\n />\n ) : (\n <div></div>\n )}\n\n {noResult ? (\n <Alert type=\"error\" onClose={() => console.log('Closed!')}>\n <FormattedMessage id=\"message.results\" />\n </Alert>\n ) : (\n <div></div>\n )}\n\n {dataPedidoPeriod?.itens ? (\n <Table\n fullWidth\n dynamicRowHeight\n schema={tableOrdersPeriod}\n items={itensPeriodOrder}\n density=\"high\"\n />\n ) : (\n <div></div>\n )}\n </div>\n </div>\n </div>\n )}\n </ContentWrapper>\n )\n}\n\ntype Props = {\n match: {\n params: {\n param: string\n }\n }\n}\n\nexport default OrdersB2B\n\n```" } ]
code_omnichannel-order-status_3853f778
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of omnichannel-order-status/react/components/OrdersB2B/tableOrders.tsx from the omnichannel-order-status VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React from \"react\"\nimport { Link } from 'react-router-dom'\nimport { FormattedMessage } from 'react-intl'\nimport { orderStatus } from \"../../utils/order\"\nimport { format } from 'date-fns'\nimport { FormattedCurrency } from 'vtex.format-currency'\n\nexport const tableOrdersPeriod = {\n properties: {\n pedidoErpId: {\n title: <FormattedMessage id=\"label.numberOrderWeb\" />,\n },\n dataPedido: {\n title: <FormattedMessage id=\"table.orderDate\" />,\n cellRenderer: ({ rowData }: any) => {\n return format(new Date(rowData.dataPedido), 'dd/MM/yyyy')\n },\n },\n notaFiscal: {\n title: <FormattedMessage id=\"table.invoice\" />,\n },\n status: {\n title: <FormattedMessage id=\"table.orderStatus\" />,\n cellRenderer: ({ rowData }: any) => {\n return orderStatus(rowData.status)\n },\n },\n totalPedido: {\n title: <FormattedMessage id=\"table.orderTotal\" />,\n cellRenderer: ({ rowData }: any) => {\n return <FormattedCurrency value={rowData.totalPedido} />\n },\n },\n details: {\n title: <FormattedMessage id=\"table.details\" />,\n cellRenderer: ({ rowData }: any) => {\n return (\n <Link className=\"\" to={`b2b-order-details/${rowData.pedidoErpId}`}>\n <FormattedMessage id=\"table.details\" />\n </Link>\n )\n },\n },\n },\n }\n\nexport const tableOrders = {\n properties: {\n pedidoErpId: {\n title: <FormattedMessage id=\"label.numberOrderWeb\" />,\n },\n pedidoErp: {\n title: <FormattedMessage id=\"label.numberDigimess\" />,\n },\n meuPedido: {\n title: <FormattedMessage id=\"label.myOrder\" />,\n },\n status: {\n title: <FormattedMessage id=\"table.orderStatus\" />,\n cellRenderer: ({ rowData }: any) => {\n return orderStatus(rowData.status)\n },\n },\n dataPedido: {\n title: <FormattedMessage id=\"table.orderDate\" />,\n cellRenderer: ({ rowData }: any) => {\n return format(new Date(rowData.dataPedido), 'dd/MM/yyyy')\n },\n },\n valorTotalPedido: {\n title: <FormattedMessage id=\"table.orderTotal\" />,\n cellRenderer: ({ rowData }: any) => {\n return <FormattedCurrency value={rowData.valorTotalPedido} />\n },\n },\n details: {\n title: <FormattedMessage id=\"table.details\" />,\n cellRenderer: ({ rowData }: any) => {\n return (\n <Link className=\"\" to={`b2b-order-details/${rowData.pedidoErpId}`}>\n <FormattedMessage id=\"table.details\" />\n </Link>\n )\n },\n },\n },\n}\n\n\n\n\n\n```" } ]
code_omnichannel-order-status_c741e30c
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of omnichannel-order-status/react/components/Services/ApiB2b.tsx from the omnichannel-order-status VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport axios from 'axios';\n\nconst apiB2B = axios.create({\n responseType: 'json',\n baseURL: '/_v/',\n});\n\nexport default apiB2B;\n```" } ]
code_search-demo-theme_2a6da8a7
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/sitemap/sitemap.json from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"urlset\": {\n \"url\": [\n {\n \"loc\": \"https://storetheme.vtex.com/about-us\"\n }\n ]\n }\n}\n```" } ]
code_search-demo-theme_db2d3f47
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/docs/README.md from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```markdown\n# Store theme 5.x\nOur boilerplate theme to create stores in the VTEX IO platform.\n\n## Preview\n![](https://user-images.githubusercontent.com/1354492/63937047-e8d81c80-ca37-11e9-86fc-61e88847bbfb.png)\n\n## Tutorial\nTo understand how things work check our tutorial [Build a store using VTEX IO](https://help.vtex.com/en/tracks/build-a-store-using-vtex-io)\n\n## Dependencies\nAll store components that you see on this document are open source too. Production ready, you can found those apps in this GitHub organization. \n \nStore framework is the baseline to create any store using _VTEX IO Web Framework_.\n- [Store](https://github.com/vtex-apps/store/blob/master/README.md)\n\nStore GraphQL is a middleware to access all VTEX APIs.\n- [Store GraphQL](https://github.com/vtex-apps/store-graphql/blob/master/README.md)\n\n### Store Component Apps \n- [Header](https://github.com/vtex-apps/store-header/blob/master/README.md)\n- [Footer](https://github.com/vtex-apps/store-footer/blob/master/README.md)\n- [Carousel](https://github.com/vtex-apps/carousel/blob/master/README.md)\n- [Shelf](https://github.com/vtex-apps/shelf/blob/master/README.md)\n- [Telemarketing](https://github.com/vtex-apps/telemarketing/blob/master/README.md)\n- [Menu](https://github.com/vtex-apps/menu/blob/master/README.md)\n- [Login](https://github.com/vtex-apps/login/blob/master/README.md)\n- [Minicart](https://github.com/vtex-apps/minicart/blob/master/README.md)\n- [Category Menu](https://github.com/vtex-apps/category-menu/blob/master/README.md)\n- [Product Summary](https://github.com/vtex-apps/product-summary/blob/master/README.md)\n- [Breadcrumb](https://github.com/vtex-apps/breadcrumb/blob/master/README.md)\n- [Search Result](https://github.com/vtex-apps/search-result/blob/master/README.md)\n- [Product Details](https://github.com/vtex-apps/product-details/blob/master/README.md)\n- [Storecomponents](https://github.com/vtex-apps/store-components/blob/master/README.md)\n- [Product Kit](https://github.com/vtex-apps/product-kit/blob/master/README.md) :construction: under construction\n- [WishList](https://github.com/vtex-apps/wishlist/blob/master/README.md) :construction: under construction\n- [Order Placed](https://github.com/vtex-apps/order-placed/blob/master/README.md) :construction: under construction\n\n### Store Pixel Apps\n \n - [Facebook Pixel](https://github.com/vtex-apps/facebook-pixel/blob/master/README.md)\n - [Google Analytics](https://github.com/vtex-apps/google-analytics/blob/master/README.md)\n - [Google Tag Manager](https://github.com/vtex-apps/google-tag-manager/blob/master/README.md)\n\n## Contributing\n\nCheck it out [how to contribute](https://github.com/vtex-apps/awesome-io#contributing) with this project. \n\n```" } ]
code_search-demo-theme_cf3711e4
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/store/blocks.jsonc from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n/* Blocks can be defined both on the store/blocks.json file, and in any number of json\n * files inside the store/blocks directory, with any arbitrary directory structure.\n *\n * Additionally, all blocks files can support comments, such as this one, if given the\n * .jsonc file extension.\n *\n * The store/blocks.json file is intended for backwards compatibility, for miscellaneous\n * blocks, or if the app is simple enough that it doesn't warrant splitting the file.\n */\n{\n \"store.orderplaced\": {\n \"blocks\": [\"order-placed\"]\n },\n\n \"store.account\": {\n \"blocks\": [\"my-account\"],\n \"parent\": {\n \"challenge\": \"challenge.profile\"\n }\n },\n\n \"store.login\": {\n \"blocks\": [\"login-content#default\"]\n },\n\n \"login-content#default\": {\n \"props\": {\n \"isInitialScreenOptionOnly\": false,\n \"defaultOption\": 1,\n \"showPasswordVerificationIntoTooltip\": true\n }\n },\n\n \"store.product-review-form\": {\n \"blocks\": [\"product-review-form\"]\n },\n\n \"store.custom#recommendation-shelf-cart\": {\n \"blocks\": [\"flex-layout.row#recommendation-cart\"]\n },\n\n \"store.not-found#product\": {\n \"blocks\": [\"rich-text#not-found\"]\n },\n\n \"store.not-found#search\": {\n \"blocks\": [\"rich-text#not-found\"]\n },\n\n \"rich-text#not-found\": {\n \"props\": {\n \"textAlignment\": \"CENTER\",\n \"textPosition\": \"CENTER\",\n \"text\": \"**PAGE NOT FOUND**\",\n \"font\": \"t-heading-1\"\n }\n }\n}\n\n```" } ]
code_search-demo-theme_01e7471c
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/store/routes.json from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store.custom#about-us\": {\n \"path\": \"/about-us\"\n },\n \"store.custom#faq\": {\n \"path\": \"/faq\"\n },\n \"store.custom#contact-us\": {\n \"path\": \"/contact-us\"\n },\n \"store.custom#recommendation-shelf-cart\": {\n \"path\": \"/_v/public/recommendations-embedded-shelf\"\n }\n}\n\n```" } ]
code_search-demo-theme_7e897d35
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/css/vtex.store-video.css from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.videoContainer {\n width: 100%;\n height: 300px;\n margin-top: 2%;\n}\n\n@media only screen and (min-width: 640px) {\n .videoContainer {\n height: 700px;\n }\n}\n\n```" } ]
code_search-demo-theme_d56af177
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/css/vtex.product-price.css from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.listPrice {\n color: #727273;\n margin-bottom: .25rem;\n font-size: 1rem;\n}\n\n.sellingPrice {\n color: #3f3f40;\n font-size: 1.25rem;\n}\n\n.sellingPriceValue {\n font-size: 2.25rem;\n font-weight: 700;\n}\n\n.installments {\n color: #727273;\n margin-bottom: 1rem;\n}\n\n.savings {\n font-weight: 500;\n color: #79B03A;\n}\n\n.sellingPriceValue--summary {\n font-size: 1.25rem;\n font-weight: 600;\n color: #2E2E2E;\n}\n\n.savings--summary {\n background: #8BC34A;\n border-radius: 1000px;\n align-items: center;\n display: flex;\n\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n font-size: 0.875rem;\n font-weight: 600;\n vertical-align: baseline;\n color: #FFFFFF;\n}\n\n.savings-discount--summary {\n font-size: 0.875rem;\n font-weight: 600;\n vertical-align: baseline;\n color: #FFFFFF;\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n\n.listPrice--summary {\n margin-bottom: 0.25rem;\n font-size: .875rem;\n}\n\n.installments--summary {\n margin-bottom: 2rem;\n font-size: 0.875rem;\n}\n\n.savings--summaryPercentage {\n background: #0f3e99;\n border-radius: 1000px;\n align-items: center;\n display: flex;\n}\n\n.savingsPercentage--summaryPercentage {\n font-size: 0.875rem;\n font-weight: 600;\n vertical-align: baseline;\n color: #FFFFFF;\n padding: 0.25rem 0.5rem 0.25rem 0.5rem;\n}\n\n```" } ]
code_search-demo-theme_c0d0b0da
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/css/vtex.recommendation-shelf.css from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.shelfTitle {\n color: #727273;\n font-size: 2.25rem; /* 36px */\n font-weight: 300;\n font-family: \"San Francisco\", -apple-system, \"system-ui\", \"avenir next\", avenir, \"helvetica neue\", helvetica, ubuntu, roboto, noto, \"segoe ui\", arial, sans-serif;\n}\n\n.shelfTitleContainer {\n margin-bottom: 1rem; /* 15px */\n}\n\n.recommendationShelfContainer.recommendationShelfContainer--recommendation-shelf-cross-sell-cart {\n margin-top: 4rem;\n margin-bottom: 4rem;\n}\n\n.recommendationShelfContainer {\n margin-bottom: 2.5rem;\n}\n\n@media (max-width: 768px) {\n .shelfTitle {\n font-size: 1.5rem; /* 24px */\n }\n\n .shelfTitleContainer {\n margin-bottom: 0.75rem; /* 12px */\n padding-bottom: 1rem; /* 16px */\n padding-top: 1.5rem; /* 24px */\n }\n}\n\n@media (max-width: 480px) {\n .shelfTitle {\n font-size: 1.25rem; /* 20px */\n }\n}\n\n```" } ]
code_search-demo-theme_482b2d92
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/css/vtex.rich-text.css from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.container--deals {\n color: #ffffff;\n text-align: center;\n justify-content: center;\n}\n\n.container--shelfTitle {\n color: #727273;\n justify-content: center;\n text-align: center;\n}\n\n.headingLevel2--shelfTitle {\n font-weight: 200;\n}\n\n.container--deals .paragraph {\n margin: 0;\n}\n\n.container--link {\n justify-content: center;\n}\n\n.container--question {\n justify-content: center;\n}\n\n.container--question .paragraph {\n text-align: center;\n max-width: 540px;\n margin: 0 16px;\n padding-top: 120px;\n color: #03034E;\n}\n\n.container--question .strong {\n font-size: 32px;\n line-height: 2rem;\n font-weight: 700;\n}\n\n.container--link .paragraph {\n text-align: center;\n max-width: 540px;\n padding-top: 36px;\n padding-bottom: 84px;\n color: #03034E;\n}\n\n.container--link .strong {\n font-size: 16px;\n font-weight: 700;\n text-transform: uppercase;\n}\n\n.container--link .link {\n text-decoration: none;\n font-size: 36px;\n font-weight: 300;\n color: #03034E;\n}\n\n.container--title {\n color: #03034E;\n font-size: 28px;\n font-weight: 700;\n}\n\n@media only screen and (min-width: 640px) {\n .container--question .strong {\n font-size: 40px;\n line-height: 3rem;\n }\n\n .container--about {\n max-width: 85%;\n }\n\n .container--title {\n color: #03034E;\n font-size: 40px;\n font-weight: 700;\n max-width: 60%;\n }\n\n .container--title .paragraph {\n line-height: 1.3em;\n }\n}\n\n```" } ]
code_search-demo-theme_bc57e866
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/css/vtex.product-summary.css from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.skuSelectorContainer--quickview .skuSelectorItemImage .frameAround, .skuSelectorContainer--quickview .skuSelectorItemImage .skuSelectorInternalBox {\n border-radius: 50%;\n}\n\n.container :global(.vtex-modal-layout-0-x-triggerContainer) {\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n}\n\n.container:hover :global(.vtex-modal-layout-0-x-triggerContainer) {\n opacity: 1;\n}\n\n@media screen and (max-width: 40em) {\n .container :global(.vtex-modal-layout-0-x-triggerContainer) {\n display: none;\n }\n}\n\n.nameContainer {\n justify-content: start;\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n\n.brandName {\n font-weight: 600;\n font-size: 18px;\n color: #2E2E2E;\n}\n\n.container {\n text-align: start;\n}\n\n.imageContainer {\n text-align: center;\n}\n\n.image {\n border-radius: 0.25rem;\n}\n\n```" } ]
code_search-demo-theme_7c7c3a14
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/css/vtex.modal-layout.css from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n@media screen and (min-width: 40em) {\n .paper--quickview {\n height: 260px;\n width: 580px;\n }\n\n .actionsContainer--quickview {\n padding: 0 2rem 2rem 2rem;\n }\n}\n\n@media screen and (min-width: 50em) {\n .paper--quickview {\n height: 450px;\n width: 900px;\n }\n}\n\n\n@media screen and (min-width: 75em) {\n .paper--quickview {\n width: calc(100% - 4rem);\n height: auto;\n }\n}\n\n@media screen and (min-width: 82em) {\n .actionsContainer--quickview {\n padding: 0 2.5rem 2.5rem 2.5rem;\n }\n}\n\n.paper--quickview {\n min-width: 320px;\n max-width: 96rem;\n}\n\n.headerContainer--quickview {\n border: none;\n position: absolute;\n right: 0;\n}\n\n.actionsContainer--quickview {\n height: 100%;\n width: 100%;\n transition: box-shadow 150ms ease-in-out, border-top 150ms ease-in-out;\n border-top-style: solid;\n border-top-width: 1px;\n border-top-color: transparent;\n box-shadow: -4px 0px 27px -12px transparent;\n}\n\n.actionsContentWrapper {\n border-top-width: 1px;\n border-top-style: solid;\n border-top-color: #aaa;\n padding-top: 1.5rem;\n}\n\n.contentContainer--quickviewContent {\n padding: 2.5rem 0 2.5rem 2rem;\n overflow-x: hidden;\n}\n\n.triggerContainer--quickview {\n padding: .75rem;\n}\n\n.triggerContainer {\n outline: none;\n}\n\n.actionsContainer--quickview:not(.actionsContainerEndOfContent--quickview) {\n border-top-color: rgb(238, 238, 238);\n box-shadow: -4px 0px 27px -12px rgba(0,0,0,0.64);\n}\n\n.actionsContainer--quickview:not(.actionsContainerEndOfContent--quickview) .actionsContentWrapper {\n border-top-color: transparent;\n}\n\n.closeButton {\n padding-right: 1rem;\n}\n\n.paper--product-gifts {\n padding: 1.5rem;\n}\n\n```" } ]
code_search-demo-theme_805697ee
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/css/vtex.store-header.css from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n/* add transitions */\n:global(.vtex-sticky-layout-0-x-container)\n :global(.vtex-store-components-3-x-logoLink),\n:global(.vtex-sticky-layout-0-x-container)\n :global(.vtex-minicart-2-x-openIconContainer),\n:global(.vtex-sticky-layout-0-x-container)\n :global(.vtex-store-components-3-x-searchBarContainer) {\n transition: all 0.3s ease;\n display: block;\n}\n\n/* desktop/mobile main header padding and background transitions */\n:global(.vtex-flex-layout-0-x-flexRowContent--main-header),\n:global(.vtex-flex-layout-0-x-flexRowContent--main-header-mobile) {\n transition: background 0.3s ease;\n will-change: padding, background;\n}\n\n/* main header desktop has a bigger padding when not stuck */\n:global(.vtex-flex-layout-0-x-flexRowContent--main-header) {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n\n/* add a box-shadow to desktop/mobile header when stuck */\n:global(.vtex-sticky-layout-0-x-wrapper--stuck)\n :global(.vtex-flex-layout-0-x-flexRowContent--main-header),\n:global(.vtex-sticky-layout-0-x-wrapper--stuck)\n :global(.vtex-flex-layout-0-x-flexRowContent--main-header-mobile) {\n box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);\n}\n\n/*\n * remove the extra padding when stuck from the desktop header\n * we add a transition only when \"stuck\" for the \"unstick\" step seem faster\n */\n:global(.vtex-sticky-layout-0-x-wrapper--stuck)\n :global(.vtex-flex-layout-0-x-flexRowContent--main-header) {\n transition: padding 0.3s ease, background 0.3s ease;\n padding-top: 0;\n padding-bottom: 0;\n}\n\n/* if supported add some translucency to the desktop/mobile header background */\n@supports (backdrop-filter: blur(5px)) {\n :global(.vtex-sticky-layout-0-x-wrapper--stuck)\n :global(.vtex-flex-layout-0-x-flexRowContent--main-header),\n :global(.vtex-sticky-layout-0-x-wrapper--stuck)\n :global(.vtex-flex-layout-0-x-flexRowContent--main-header-mobile) {\n backdrop-filter: blur(8px);\n }\n\n /* header background when stuck and not hovered */\n :global(.vtex-sticky-layout-0-x-wrapper--stuck):not(:hover)\n :global(.vtex-flex-layout-0-x-flexRowContent--main-header),\n :global(.vtex-sticky-layout-0-x-wrapper--stuck):not(:hover)\n :global(.vtex-flex-layout-0-x-flexRowContent--main-header-mobile) {\n background: rgba(240, 240, 240, 0.8);\n }\n}\n\n/* stick wrapper with the same color as the desktop/mobile header */\n:global(.vtex-sticky-layout-0-x-wrapper--sticky-header) {\n background-color: #f0f0f0;\n}\n\n/* resize the logo for neat effect */\n:global(.vtex-sticky-layout-0-x-wrapper--stuck)\n :global(.vtex-store-components-3-x-logoLink) {\n transform: scale(0.85);\n}\n\n@media (prefers-reduced-motion: reduce) {\n :global(.vtex-sticky-layout-0-x-container)\n :global(.vtex-store-components-3-x-logoLink),\n :global(.vtex-sticky-layout-0-x-container)\n :global(.vtex-minicart-2-x-openIconContainer),\n :global(.vtex-sticky-layout-0-x-container)\n :global(.vtex-store-components-3-x-searchBarContainer),\n :global(.vtex-sticky-layout-0-x-wrapper--stuck)\n :global(.vtex-flex-layout-0-x-flexRowContent--main-header) {\n transition: none;\n }\n}\n\n```" } ]
code_search-demo-theme_7748c080
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/css/vtex.store-components.css from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.notificationBarContainer {\n background-color: #e6f1e6;\n color: #03034e;\n font-weight: 700;\n font-size: 12px;\n text-decoration: underline;\n}\n\n.infoCardContainer--info-card-home {\n max-width: 1520px;\n margin: 0 auto;\n background-color: #e6f1e6;\n padding: 0px;\n}\n\n.newsletter {\n background-color: #03054e;\n max-width: 1528px;\n margin: 0 auto;\n}\n\n.newsletter .container {\n padding: 60px 10px;\n}\n\n.label {\n color: #fff;\n font-size: 26px;\n}\n\n.inputGroup {\n padding-bottom: 4px;\n display: flex;\n color: #fff;\n}\n\n.inputGroup :global(.vtex-styleguide-9-x-hideDecorators) {\n background-color: transparent;\n color: #fff;\n border: none;\n}\n\n.inputGroup :global(.vtex-styleguide-9-x-hideDecorators)::placeholder {\n color: #fff;\n font-size: 16px;\n}\n\n.inputGroup :global(.vtex-button) {\n background-color: transparent;\n color: #fff;\n border: none;\n margin-right: -24px;\n}\n\n.buttonContainer {\n padding-top: 0px;\n}\n\n.imageElement--storePrint {\n max-height: 300px;\n margin-bottom: 20px;\n}\n\n.skuSelectorContainer {\n margin: 1rem 0;\n}\n\n@media only screen and (min-width: 640px) {\n .newsletter .container {\n padding: 140px;\n }\n .label {\n font-size: 40px;\n }\n .infoCardContainer--info-card-home .infoCardTextContainer {\n width: 30%;\n }\n .infoCardContainer--info-card-home .infoCardImageContainer {\n width: 70%;\n }\n .imageElement--storePrint {\n margin-bottom: 0px;\n max-height: 600px;\n }\n}\n\n.productImagesContainer--quickview .carouselContainer {\n justify-content: flex-start;\n}\n\n.productImagesContainer--quickview .productImageTag {\n object-fit: cover !important;\n}\n\n.productImagesContainer--quickview .carouselGaleryThumbs {\n display: none;\n}\n\n.productImagesContainer--quickview .carouselGaleryCursor {\n margin: 0;\n padding: 0;\n width: 100%;\n}\n\n.productNameContainer {\n color: #3f3f40;\n font-weight: bold;\n font-size: 30px;\n}\n\n.image {\n image-rendering: -webkit-optimize-contrast;\n}\n\n```" } ]
code_search-demo-theme_6d0d14d3
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/css/vtex.store-footer.css from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.row--menu-row {\n padding-right: 24px;\n}\n\n.row--menu-row .rowContainer {\n align-items: flex-start;\n}\n\n.row--payment-methods {\n padding-top: 16px;\n}\n\n```" } ]
code_search-demo-theme_29741f5f
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/css/vtex.product-identifier.css from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.product-identifier--productReference {\n margin-bottom: 1rem;\n}\n\n```" } ]
code_search-demo-theme_f57e757b
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/css/vtex.reviews-and-ratings.css from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.container {\n max-width: 96rem;\n padding-left: .5rem;\n padding-right: .5rem;\n}\n\n.inlineContainer {\n margin-left: 0rem;\n}\n\n.star--filled {\n color: #FFB100;\n}\n\n.star--empty {\n color: #FFB100;\n}\n\n```" } ]
code_search-demo-theme_adcc0559
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/css/vtex.tab-layout.css from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.listContainer--home-tab-layout {\n display: flex;\n align-items: center;\n gap: 72px;\n border-bottom: 2px solid rgba(234, 239, 239, 1);\n min-height: 31px;\n margin-bottom: 36px;\n margin-top: 36px;\n\n @media screen and (max-width: 1024px) {\n gap: 24px;\n flex-wrap: nowrap;\n scrollbar-color: #fff #fff;\n padding: 0px 24px;\n overflow: auto;\n }\n}\n\n.listItem--home-tab-layout-item {\n margin: 0;\n padding: 0;\n\n :global(.vtex-button) {\n font-size: 20px;\n text-transform: none;\n background: none;\n border: none;\n color: rgba(139, 151, 159, 1);\n min-height: 31px;\n display: flex;\n align-items: center;\n justify-content: center;\n\n @media screen and (max-width: 1024px) {\n font-size: 14px;\n color: rgba(187, 202, 210, 1);\n }\n\n :global(.vtex-button__label) {\n padding: 0 !important;\n position: relative;\n height: 31px;\n display: flex;\n align-items: center;\n justify-content: center;\n\n @media screen and (max-width: 1024px) {\n text-wrap: nowrap;\n }\n }\n }\n}\n.listItemActive--home-tab-layout-item {\n :global(.vtex-button) {\n color: rgba(62, 80, 85, 1);\n font-weight: 700;\n\n :global(.vtex-button__label) {\n &::after {\n content: \"\";\n border-bottom: 2px solid #0F3E99;\n position: absolute;\n top: 100%;\n width: 100%;\n @media screen and (max-width: 1024px) {\n top: 98%;\n }\n }\n }\n }\n}\n\n```" } ]
code_search-demo-theme_3bb1f715
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/css/vtex.product-highlights.css from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.productHighlightWrapper--collection {\n position: absolute;\n top: 10px;\n left: 5px;\n width: 200px;\n}\n\n.productHighlightText {\n background: antiquewhite;\n border-radius: 20px;\n padding: 5px 10px;\n}\n\n```" } ]
code_search-demo-theme_1a1b1e82
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/css/vtex.flex-layout.css from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.flexRowContent--menu-link,\n.flexRowContent--main-header {\n padding: 0 0.5rem;\n}\n\n@media screen and (min-width: 40em) {\n .flexRowContent--menu-link,\n .flexRowContent--main-header {\n padding: 0 1rem;\n }\n}\n\n@media screen and (min-width: 80rem) {\n .flexRowContent--menu-link,\n .flexRowContent--main-header {\n padding: 0 0.25rem;\n }\n}\n\n.flexRowContent--menu-link {\n background-color: #03044e;\n color: #fff;\n}\n\n.flexRowContent--main-header {\n background-color: #f0f0f0;\n}\n\n.flexRowContent--main-header-mobile {\n align-items: center;\n padding: 0.625rem 0.5rem;\n background-color: #f0f0f0;\n}\n\n.flexRowContent--menu-link :global(.vtex-menu-2-x-styledLink) {\n color: #ffffff;\n font-size: 14px;\n}\n\n.flexRowContent--main-header :global(.vtex-menu-2-x-styledLink) {\n color: #727273;\n font-size: 14px;\n}\n\n.flexRow--deals {\n background-color: #0F3E99;\n padding: 14px 0px;\n}\n\n.flexRow--deals .stretchChildrenWidth {\n align-items: center;\n}\n\n.flexRow--deals .flexCol {\n align-items: center;\n margin-bottom: 5px;\n padding-top: 5px;\n}\n\n.flexCol--filterCol {\n max-width: 500px;\n min-width: 230px;\n}\n\n.flexCol--productCountCol {\n align-items: flex-start;\n}\n\n.flexCol--orderByCol {\n align-items: flex-end;\n}\n\n.flexCol--orderByMobileCol {\n width: 42%;\n}\n\n.flexCol--filterMobileCol {\n width: 38%;\n}\n\n.flexRow--quickviewMainRow {\n display: flex;\n max-height: 100%;\n}\n\n.flexColChild--quickviewDetails:first-child {\n overflow-y: auto;\n height: 66% !important;\n overflow-x: hidden;\n}\n\n.flexColChild--quickviewDetails:last-child {\n height: 34% !important;\n}\n\n.flexRow--addToCartRow {\n padding-bottom: 1rem;\n}\n\n```" } ]
code_search-demo-theme_e49b0b19
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/css/vtex.carousel.css from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.containerImg {\n background-color: #f0f0f0;\n}\n\n.containerImg .img {\n max-width: 100%;\n}\n\n```" } ]
code_search-demo-theme_76ac4258
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/css/vtex.search-result.css from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.galleryLayoutOptionButton {\n background-color: #F0F0F0;\n color: #3F3F40;\n padding: 0.375rem 0.75rem 0.375rem 0.75rem;\n}\n\n.galleryLayoutOptionButton--selected {\n background-color: #3F3F40;\n color: #FFFFFF;\n}\n\n.galleryLayoutSwitcher {\n border-radius: 4px 4px 4px 4px;\n justify-content: center;\n overflow: hidden;\n width: auto !important;\n align-self: center\n}\n\n.galleryItem--list {\n border-bottom: 1px #E7E9EE solid;\n}\n\n```" } ]
code_search-demo-theme_1c2c9585
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/css/vtex.slider-layout.css from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.sliderLayoutContainer {\n justify-content: center;\n}\n\n.sliderLayoutContainer--carousel {\n background-color: #F0F0F0;\n min-height: 450px;\n}\n\n.sliderTrackContainer {\n max-width: 100%;\n}\n\n.paginationDotsContainer {\n margin-top: .5rem;\n margin-bottom: .5rem;\n}\n\n.layoutContainer--shelf {\n margin-top: 20px;\n margin-bottom: 20px;\n max-width: 96rem;\n min-height: 550px;\n}\n\n.slide--shelf {\n margin-bottom: 25px;\n padding-left: .5rem;\n padding-right: .5rem;\n min-height: 550px;\n}\n\n.sliderTrack--vtex-recommendation-shelf-slider{\n gap: 3rem;\n}\n\n```" } ]
code_search-demo-theme_c2f66bb3
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/css/vtex.stack-layout.css from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.stackItem--product {\n width: 100%;\n min-height: 257px\n}\n\n.stackItem--quickview {\n right: 0;\n top: 0;\n left: auto;\n}\n\n```" } ]
code_search-demo-theme_d7f87ed7
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/configs/style.json from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"typeScale\": [\n 3, 2.25, 1.5, 1.25, 1, 0.875, 0.75\n ],\n \"spacing\": [0.125, 0.25, 0.5, 0.75, 1, 1.5, 2, 3, 4, 8, 16],\n \"customMedia\": [\n { \"s\": 20 },\n { \"ns\": {\n \"value\": 40,\n \"minWidth\": true\n }\n },\n { \"m\": {\n \"value\": 40,\n \"minWidth\": true\n }\n },\n { \"l\": {\n \"value\": 64,\n \"minWidth\": true\n }\n },\n { \"xl\": {\n \"value\": 80,\n \"minWidth\": true\n }\n }\n ],\n \"colors\": {\n \"black-90\": \"rgba(0,0,0,.9)\",\n \"black-80\": \"rgba(0,0,0,.8)\",\n \"black-70\": \"rgba(0,0,0,.7)\",\n \"black-60\": \"rgba(0,0,0,.6)\",\n \"black-50\": \"rgba(0,0,0,.5)\",\n \"black-40\": \"rgba(0,0,0,.4)\",\n \"black-30\": \"rgba(0,0,0,.3)\",\n \"black-20\": \"rgba(0,0,0,.2)\",\n \"black-10\": \"rgba(0,0,0,.1)\",\n \"black-05\": \"rgba(0,0,0,.05)\",\n \"black-025\": \"rgba(0,0,0,.025)\",\n \"black-0125\": \"rgba(0,0,0,.0125)\",\n\n \"white-90\": \"rgba(255,255,255,.9)\",\n \"white-80\": \"rgba(255,255,255,.8)\",\n \"white-70\": \"rgba(255,255,255,.7)\",\n \"white-60\": \"rgba(255,255,255,.6)\",\n \"white-50\": \"rgba(255,255,255,.5)\",\n \"white-40\": \"rgba(255,255,255,.4)\",\n \"white-30\": \"rgba(255,255,255,.3)\",\n \"white-20\": \"rgba(255,255,255,.2)\",\n \"white-10\": \"rgba(255,255,255,.1)\",\n \"white-05\": \"rgba(255,255,255,.05)\",\n \"white-025\": \"rgba(255,255,255,.025)\",\n \"white-0125\": \"rgba(255,255,255,.0125)\"\n },\n \"semanticColors\": {\n \"background\": {\n \"base\": \"#ffffff\",\n \"base--inverted\": \"#03044e\",\n \"action-primary\": \"#0F3E99\",\n \"action-secondary\": \"#eef3f7\",\n \"emphasis\": \"#f71963\",\n \"disabled\": \"#f2f4f5\",\n \"success\": \"#8bc34a\",\n \"success--faded\": \"#eafce3\",\n \"danger\": \"#ff4c4c\",\n \"danger--faded\": \"#ffe6e6\",\n \"warning\": \"#ffb100\",\n \"warning--faded\": \"#fff6e0\",\n \"muted-1\": \"#727273\",\n \"muted-2\": \"#979899\",\n \"muted-3\": \"#cacbcc\",\n \"muted-4\": \"#e3e4e6\",\n \"muted-5\": \"#f2f4f5\"\n },\n \"hover-background\": {\n \"action-primary\": \"#072c75\",\n \"action-secondary\": \"#dbe9fd\",\n \"emphasis\": \"#dd1659\",\n \"success\": \"#8bc34a\",\n \"success--faded\": \"#eafce3\",\n \"danger\": \"#e13232\",\n \"danger--faded\": \"#ffe6e6\",\n \"warning\": \"#ffb100\",\n \"warning--faded\": \"#fff6e0\",\n \"muted-1\": \"#727273\",\n \"muted-2\": \"#979899\",\n \"muted-3\": \"#cacbcc\",\n \"muted-4\": \"#e3e4e6\",\n \"muted-5\": \"#f2f4f5\"\n },\n \"active-background\": {\n \"action-primary\": \"#0c389f\",\n \"action-secondary\": \"#d2defc\",\n \"emphasis\": \"#dd1659\",\n \"success\": \"#8bc34a\",\n \"success--faded\": \"#eafce3\",\n \"danger\": \"#ff4c4c\",\n \"danger--faded\": \"#ffe6e6\",\n \"warning\": \"#ffb100\",\n \"warning--faded\": \"#fff6e0\",\n \"muted-1\": \"#727273\",\n \"muted-2\": \"#979899\",\n \"muted-3\": \"#cacbcc\",\n \"muted-4\": \"#e3e4e6\",\n \"muted-5\": \"#f2f4f5\"\n },\n \"text\": {\n \"action-primary\": \"#0F3E99\",\n \"action-secondary\": \"#eef3f7\",\n \"link\": \"#0F3E99\",\n \"emphasis\": \"#f71963\",\n \"disabled\": \"#979899\",\n \"success\": \"#8bc34a\",\n \"success--faded\": \"#eafce3\",\n \"danger\": \"#ff4c4c\",\n \"danger--faded\": \"#ffe6e6\",\n \"warning\": \"#ffb100\",\n \"warning--faded\": \"#fff6e0\",\n \"muted-1\": \"#727273\",\n \"muted-2\": \"#979899\",\n \"muted-3\": \"#cacbcc\",\n \"muted-4\": \"#e3e4e6\",\n \"muted-5\": \"#f2f4f5\"\n },\n \"visited-text\": {\n \"link\": \"#0c389f\"\n },\n \"hover-text\": {\n \"action-primary\": \"#072c75\",\n \"action-secondary\": \"#dbe9fd\",\n \"link\": \"#0c389f\",\n \"emphasis\": \"#dd1659\",\n \"success\": \"#8bc34a\",\n \"success--faded\": \"#eafce3\",\n \"danger\": \"#e13232\",\n \"danger--faded\": \"#ffe6e6\",\n \"warning\": \"#ffb100\",\n \"warning--faded\": \"#fff6e0\"\n },\n \"active-text\": {\n \"link\": \"#0c389f\",\n \"emphasis\": \"#dd1659\",\n \"success\": \"#8bc34a\",\n \"success--faded\": \"#eafce3\",\n \"danger\": \"#ff4c4c\",\n \"danger--faded\": \"#ffe6e6\",\n \"warning\": \"#ffb100\",\n \"warning--faded\": \"#fff6e0\"\n },\n \"border\": {\n \"action-primary\": \"#0F3E99\",\n \"action-secondary\": \"#eef3f7\",\n \"emphasis\": \"#f71963\",\n \"disabled\": \"#e3e4e6\",\n \"success\": \"#8bc34a\",\n \"success--faded\": \"#eafce3\",\n \"danger\": \"#ff4c4c\",\n \"danger--faded\": \"#ffe6e6\",\n \"warning\": \"#ffb100\",\n \"warning--faded\": \"#fff6e0\",\n \"muted-1\": \"#727273\",\n \"muted-2\": \"#979899\",\n \"muted-3\": \"#cacbcc\",\n \"muted-4\": \"#e3e4e6\",\n \"muted-5\": \"#f2f4f5\"\n },\n \"hover-border\": {\n \"action-primary\": \"#072c75\",\n \"action-secondary\": \"#dbe9fd\",\n \"emphasis\": \"#dd1659\",\n \"success\": \"#8bc34a\",\n \"success--faded\": \"#eafce3\",\n \"danger\": \"#e13232\",\n \"danger--faded\": \"#ffe6e6\",\n \"warning\": \"#ffb100\",\n \"warning--faded\": \"#fff6e0\",\n \"muted-1\": \"#727273\",\n \"muted-2\": \"#979899\",\n \"muted-3\": \"#cacbcc\",\n \"muted-4\": \"#e3e4e6\",\n \"muted-5\": \"#f2f4f5\"\n },\n \"active-border\": {\n \"action-primary\": \"#0c389f\",\n \"action-secondary\": \"#d2defc\",\n \"emphasis\": \"#dd1659\",\n \"success\": \"#8bc34a\",\n \"success--faded\": \"#eafce3\",\n \"danger\": \"#ff4c4c\",\n \"danger--faded\": \"#ffe6e6\",\n \"warning\": \"#ffb100\",\n \"warning--faded\": \"#fff6e0\",\n \"muted-1\": \"#727273\",\n \"muted-2\": \"#979899\",\n \"muted-3\": \"#cacbcc\",\n \"muted-4\": \"#e3e4e6\",\n \"muted-5\": \"#f2f4f5\"\n },\n \"on\": {\n \"base\": \"#3f3f40\",\n \"base--inverted\": \"#ffffff\",\n \"action-primary\": \"#ffffff\",\n \"action-secondary\": \"#0F3E99\",\n \"emphasis\": \"#ffffff\",\n \"disabled\": \"#979899\",\n \"success\": \"#ffffff\",\n \"success--faded\": \"#3f3f40\",\n \"danger\": \"#ffffff\",\n \"danger--faded\": \"#3f3f40\",\n \"warning\": \"#ffffff\",\n \"warning--faded\": \"#1a1a1a\",\n \"muted-1\": \"#ffffff\",\n \"muted-2\": \"#ffffff\",\n \"muted-3\": \"#3f3f40\",\n \"muted-4\": \"#3f3f40\",\n \"muted-5\": \"#3f3f40\"\n },\n \"hover-on\": {\n \"action-primary\": \"#ffffff\",\n \"action-secondary\": \"#0F3E99\",\n \"emphasis\": \"#ffffff\",\n \"success\": \"#ffffff\",\n \"success--faded\": \"#3f3f40\",\n \"danger\": \"#ffffff\",\n \"danger--faded\": \"#3f3f40\",\n \"warning\": \"#ffffff\",\n \"warning--faded\": \"#1a1a1a\"\n },\n \"active-on\": {\n \"action-primary\": \"#ffffff\",\n \"action-secondary\": \"#0F3E99\",\n \"emphasis\": \"#ffffff\",\n \"success\": \"#ffffff\",\n \"success--faded\": \"#3f3f40\",\n \"danger\": \"#ffffff\",\n \"danger--faded\": \"#3f3f40\",\n \"warning\": \"#ffffff\",\n \"warning--faded\": \"#1a1a1a\"\n }\n },\n \"borderWidths\": [0, 0.125, 0.25, 0.5, 1, 2],\n \"borderRadius\": [0, 0.125, 0.25, 0.5, 1],\n \"widths\": [1, 2, 4, 8, 16],\n \"maxWidths\": [1, 2, 4, 8, 16, 32, 48, 64, 96],\n \"heights\": [1, 2, 4, 8, 16],\n \"sizes\": [\n {\"name\": \"small\", \"value\": 2},\n {\"name\": \"regular\", \"value\": 2.5},\n {\"name\": \"large\", \"value\": 3}\n ],\n \"typography\":{\n \"measure\": [30, 34, 20],\n \"styles\": {\n \"heading-1\": {\n \"fontFamily\": \"San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif\",\n \"fontWeight\": \"700\",\n \"fontSize\": \"3rem\",\n \"textTransform\": \"initial\",\n \"letterSpacing\": \"0\"\n },\n \"heading-2\": {\n \"fontFamily\": \"San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif\",\n \"fontWeight\": \"700\",\n \"fontSize\": \"2.25rem\",\n \"textTransform\": \"initial\",\n \"letterSpacing\": \"0\"\n },\n \"heading-3\": {\n \"fontFamily\": \"San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif\",\n \"fontWeight\": \"700\",\n \"fontSize\": \"1.75rem\",\n \"textTransform\": \"initial\",\n \"letterSpacing\": \"0\"\n },\n \"heading-4\": {\n \"fontFamily\": \"San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif\",\n \"fontWeight\": \"normal\",\n \"fontSize\": \"1.5rem\",\n \"textTransform\": \"initial\",\n \"letterSpacing\": \"0\"\n },\n \"heading-5\": {\n \"fontFamily\": \"San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif\",\n \"fontWeight\": \"normal\",\n \"fontSize\": \"1.25rem\",\n \"textTransform\": \"initial\",\n \"letterSpacing\": \"0\"\n },\n \"heading-6\": {\n \"fontFamily\": \"San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif\",\n \"fontWeight\": \"normal\",\n \"fontSize\": \"1.25rem\",\n \"textTransform\": \"initial\",\n \"letterSpacing\": \"0\"\n },\n \"body\": {\n \"fontFamily\": \"San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif\",\n \"fontWeight\": \"normal\",\n \"fontSize\": \"1rem\",\n \"textTransform\": \"initial\",\n \"letterSpacing\": \"0\"\n },\n \"small\": {\n \"fontFamily\": \"San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif\",\n \"fontWeight\": \"normal\",\n \"fontSize\": \"0.875rem\",\n \"textTransform\": \"initial\",\n \"letterSpacing\": \"0\"\n },\n \"mini\": {\n \"fontFamily\": \"San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif\",\n \"fontWeight\": \"normal\",\n \"fontSize\": \"0.75rem\",\n \"textTransform\": \"initial\",\n \"letterSpacing\": \"0\"\n },\n \"action\": {\n \"fontFamily\": \"San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif\",\n \"fontWeight\": \"500\",\n \"fontSize\": \"1rem\",\n \"textTransform\": \"uppercase\",\n \"letterSpacing\": \"0\"\n },\n \"action--small\": {\n \"fontFamily\": \"San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif\",\n \"fontWeight\": \"500\",\n \"fontSize\": \"0.875rem\",\n \"textTransform\": \"uppercase\",\n \"letterSpacing\": \"0\"\n },\n \"action--large\": {\n \"fontFamily\": \"San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif\",\n \"fontWeight\": \"500\",\n \"fontSize\": \"1.25rem\",\n \"textTransform\": \"uppercase\",\n \"letterSpacing\": \"0\"\n },\n \"code\": {\n \"fontFamily\": \"Consolas, monaco, monospace\",\n \"fontWeight\": \"normal\",\n \"fontSize\": \"1rem\",\n \"textTransform\": \"initial\",\n \"letterSpacing\": \"0\"\n }\n }\n },\n \"opacity\": [1, 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1, 0.05, 0.025, 0]\n}\n\n```" } ]
code_search-demo-theme_2193ba04
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/css/contact/vtex.flex-layout.css from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.flexRowContent--contact {\n max-width: 700px;\n margin: auto;\n}\n\n.flexRowContent--contact :global(.vtex-input__label),\n.flexRowContent--contact :global(.vtex-textarea__label) {\n font-size: 1rem;\n color: #3f3f40;\n}\n\n.flexRowContent--contact :global(.vtex-input),\n.flexRowContent--contact :global(.vtex-textarea) {\n display: block;\n margin-bottom: 1rem;\n}\n\n```" } ]
code_search-demo-theme_4fd2f386
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/css/faq/vtex.flex-layout.css from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.flexRowContent--faq {\n max-width: 700px;\n margin: auto;\n}\n\n```" } ]
code_search-demo-theme_393bf56b
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/css/faq/vtex.disclosure-layout.css from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.trigger--question {\n display: flex;\n align-items: center;\n cursor: pointer;\n outline: none;\n}\n\n.trigger--question :global(.vtex-rich-text-0-x-paragraph) {\n font-weight: bold;\n}\n\n.trigger--question:focus,\n.trigger--question:focus :global(.vtex-rich-text-0-x-paragraph) {\n color: #0F3E99;\n}\n\n.trigger :global(.vtex-store-icons-0-x-caretIcon) {\n margin-right: 1rem;\n}\n\n.content--answer {\n transition: opacity 250ms ease-in-out, height 250ms ease-in-out, transform 250ms ease-in-out;\n opacity: 0;\n height: 0;\n transform: translate3d(0, -10%, 0);\n}\n\n.content--answer[data-enter] {\n opacity: 1;\n height: fit-content;\n transform: translate3d(0, 0, 0);\n}\n\n.content--answer[data-leave] {\n height: 0;\n overflow: hidden;\n}\n\n```" } ]
code_search-demo-theme_38a638c4
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/css/search/vtex.rich-text.css from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.container--layout-option {\n margin-left: 0.3em;\n}\n\n.paragraph--layout-option {\n margin: 0;\n}\n\n.paragraph--summarySpecificationBullet {\n margin: 0;\n line-height: initial;\n font-size: 1.25rem;\n line-height: 1.15rem;\n}\n\n```" } ]
code_search-demo-theme_f8a9c73f
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/css/search/vtex.product-summary.css from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.nameContainer--summaryListDesktop {\n padding-top: 0.25rem;\n padding-bottom: 0.75rem;\n justify-content: start;\n}\n\n.nameContainer--summaryListMobile {\n padding-top: 0.25rem;\n padding-bottom: 0.5rem;\n justify-content: start;\n}\n\n.brandName--summaryListMobile {\n font-weight: 400;\n font-size: 0.875rem;\n color: black;\n}\n\n.container--listLayout {\n max-width: none !important;\n}\n\n.image--summaryListDesktop {\n width: 180px !important;\n}\n\n.image--summaryListMobile {\n width: 140px !important;\n min-width: 140px;\n height: inherit !important;\n}\n\n```" } ]
code_search-demo-theme_2a7f1196
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/css/search/vtex.store-components.css from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.productBrandName--summaryListDesktop {\n text-decoration: none;\n font-weight: 500;\n color: #0067C7;\n font-size: .875rem;\n}\n\n.productBrandName--summaryListMobile {\n text-decoration: none;\n color: #0067C7;\n font-size: .875rem;\n}\n\n```" } ]
code_search-demo-theme_8cff714d
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/css/search/vtex.flex-layout.css from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.flexRow--orderByAndSwitcher {\n padding-right: 1.5em;\n}\n\n.flexRowContent--savingsSummaryListDesktop {\n justify-content: flex-start;\n}\n\n.flexCol--summaryRightListDesktop {\n justify-content: space-around;\n}\n\n.flexRow--buyNowButton :global(.vtex-button) {\n background: #eef3f7;\n border-color:#eef3f7;\n color: #0f3e99;\n}\n\n.flexRow--buyNowButton:hover :global(.vtex-button) {\n background: #dbe9fd;\n border-color:#dbe9fd;\n}\n\n.flexCol--productRating {\n margin-bottom: 3rem;\n}\n\n.flexCol--summaryDetailsListMobile {\n justify-content: space-between;\n}\n\n.flexCol--summaryUpDetailsListMobile {\n margin-bottom: 0.25rem\n}\n\n```" } ]
code_search-demo-theme_b2e7eb1b
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/css/product-specification-table/vtex.flex-layout.css from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.flexRow--productSpecificationGroup:not(:first-child) {\n margin-top: 1.5rem;\n}\n\n.flexRow--productSpecificationGroupName {\n background-color: #eaeaea;\n padding: 0.5rem 1rem;\n}\n\n.flexCol--productSpecificationName {\n padding: 1rem;\n}\n\n.flexCol--productSpecificationValue {\n padding: 1rem 1rem 1rem 0;\n}\n\n.flexRow--productSpecification:nth-child(even) {\n background-color: #f9f9f9;\n}\n\n```" } ]
code_search-demo-theme_89a9ee46
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/styles/css/product-specification-table/vtex.product-specifications.css from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\n.groupName {\n font-size: 1.25rem;\n}\n\n.specificationName {\n font-weight: bold;\n}\n\n```" } ]
code_search-demo-theme_51cf1365
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/store/blocks/about-us.json from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store.custom#about-us\": {\n \"blocks\": [\n \"flex-layout.row#about-us\",\n \"video#about-us\"\n ]\n },\n\n \"flex-layout.row#about-us\": {\n \"children\": [\n \"image#mobile-phone\",\n \"flex-layout.col#text-about-us\"\n ]\n },\n\n \"flex-layout.col#text-about-us\": {\n \"children\": [\n \"rich-text#title-about-us\",\n \"rich-text#about-us\"\n ],\n \"props\": {\n \"blockclass\": \"textColumn\",\n \"preventVerticalStretch\": true\n }\n },\n\n \"rich-text#title-about-us\": {\n \"props\": {\n \"text\":\n \"# Create meaningful and relevant experiences.\",\n \"blockClass\": \"title\"\n }\n },\n\n \"image#mobile-phone\": {\n \"props\": {\n \"src\": \"https://storecomponents.vteximg.com.br/arquivos/mobile-phone.png\",\n \"maxHeight\": \"\",\n \"maxWidth\": \"\",\n \"blockClass\": \"storePrint\"\n }\n },\n \"video#about-us\": {\n \"props\": {\n \"src\": \"https://www.youtube.com/embed/JgkrlaF52WQ\",\n \"width\": \"100%\",\n \"height\": \"100%\"\n }\n },\n \"rich-text#about-us\": {\n \"props\": {\n \"text\": \"**Optimized store framework** \\n Free your front-end with our React + Node store framework. Improve usability and SEO, while driving more conversion with modular components, single page applications, and a ready-for-PWA structure. \\n **Multi-currency and language** \\n Go international with multiple storefronts to support different languages and easily manage local currencies and payment conditions. \\n **Serverless development platform** \\n Reduce loading time, improve usability, and make the best out of SEO. Developing scalable components with a comprehensive, easy-to-use toolset, you can build stores faster than ever.\",\n \"blockClass\": \"about\"\n }\n }\n}\n\n```" } ]
code_search-demo-theme_28b45a7b
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/store/blocks/recommendations.jsonc from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n // Cart Shelf\n \"flex-layout.row#recommendation-cart\": {\n \"children\": [\"recommendation-shelf#cart\"]\n },\n \"recommendation-shelf#cart\": {\n \"blocks\": [\"list-context.product-list-static#recommendations-cart\"],\n \"props\": {\n \"campaignVrn\": \"vrn:recommendations:biggy:rec-cross-v2:1ac9593d-f96a-4929-9d96-af60897e6cc1\",\n \"blockClass\": \"recommendation-shelf-cross-sell-cart\",\n \"itemsContext\": [\"CART\"]\n }\n },\n // Similar items\n \"flex-layout.row#recommendation-similar-items\": {\n \"children\": [\"recommendation-shelf#similar-items\"]\n },\n \"recommendation-shelf#similar-items\": {\n \"blocks\": [\"list-context.product-list-static#recommendations\"],\n \"props\": {\n \"campaignVrn\": \"vrn:recommendations:biggy:rec-similar-v2:26d53537-065d-4fff-92ac-1aeba049b33d\",\n \"blockClass\": \"recommendation-shelf-similar-items\"\n }\n },\n // Cross-sell\n \"flex-layout.row#recommendation-cross-sell\": {\n \"children\": [\"recommendation-shelf#cross-sell\"]\n },\n \"recommendation-shelf#cross-sell\": {\n \"blocks\": [\"list-context.product-list-static#recommendations\"],\n \"props\": {\n \"campaignVrn\": \"vrn:recommendations:biggy:rec-cross-v2:ca2acae8-41a4-4bcd-9ffd-0ac40b7c0a57\",\n \"blockClass\": \"recommendation-shelf-cross-sell\"\n }\n },\n // Top items\n \"flex-layout.row#recommendation-top-items\": {\n \"children\": [\"recommendation-shelf#top-items\"]\n },\n \"recommendation-shelf#top-items\": {\n \"blocks\": [\"list-context.product-list-static#recommendations\"],\n \"props\": {\n \"campaignVrn\": \"vrn:recommendations:biggy:rec-top-items-v2:2860bc12-c343-4f1c-9006-ab1184fa4ca3\",\n \"blockClass\": \"recommendation-shelf-top-items\",\n \"displayTitle\": false\n }\n },\n // Personalized recommendations\n \"flex-layout.row#recommendation-personalized\": {\n \"children\": [\"recommendation-shelf#personalized\"]\n },\n \"flex-layout.row#recommendation-personalized-with-title\": {\n \"children\": [\"recommendation-shelf#personalized-with-title\"]\n },\n \"recommendation-shelf#personalized\": {\n \"blocks\": [\"list-context.product-list-static#recommendations\"],\n \"props\": {\n \"campaignVrn\": \"vrn:recommendations:biggy:rec-persona-v2:ebc2cdc4-b610-4ea1-88f1-b34908daf7cb\",\n \"blockClass\": \"recommendation-shelf-personalized\",\n \"displayTitle\": false\n }\n },\n \"recommendation-shelf#personalized-with-title\": {\n \"blocks\": [\"list-context.product-list-static#recommendations\"],\n \"props\": {\n \"campaignVrn\": \"vrn:recommendations:biggy:rec-persona-v2:ebc2cdc4-b610-4ea1-88f1-b34908daf7cb\",\n \"blockClass\": \"recommendation-shelf-personalized\"\n }\n },\n // Last seen\n \"flex-layout.row#recommendation-last-seen\": {\n \"children\": [\"recommendation-shelf#last-seen\"]\n },\n \"recommendation-shelf#last-seen\": {\n \"blocks\": [\"list-context.product-list-static#recommendations\"],\n \"props\": {\n \"campaignVrn\": \"vrn:recommendations:biggy:rec-last-v2:fad5f2b7-24be-469e-8ccb-0b1e98faec6a\",\n \"blockClass\": \"recommendation-shelf-last-seen\",\n \"title\": \"Continue shopping\"\n }\n },\n // Search Based Best discounts\n \"flex-layout.row#recommendation-best-discounts\": {\n \"children\": [\"recommendation-shelf#best-discounts\"]\n },\n \"recommendation-shelf#best-discounts\": {\n \"blocks\": [\"list-context.product-list-static#recommendations\"],\n \"props\": {\n \"campaignVrn\": \"vrn:recommendations:biggy:rec-search-v2:217c0e34-96e9-44fc-8e1a-2459399779e7\",\n \"blockClass\": \"recommendation-shelf-best-discounts\",\n \"displayTitle\": false\n }\n },\n // Personalized Tab\n \"flex-layout.row#home-tab\": {\n \"children\": [\"tab-layout#home\"]\n },\n \"tab-layout#home\": {\n \"children\": [\"tab-list#home\", \"tab-content#home\"],\n \"props\": {\n \"blockClass\": \"home-tab-layout\",\n \"defaultActiveTabId\": \"personalized\"\n }\n },\n \"tab-list#home\": {\n \"children\": [\n \"tab-list.item#personalized\",\n \"tab-list.item#best-sellers\",\n \"tab-list.item#best-discounts\"\n ],\n \"props\": {\n \"blockClass\": \"home-tab-layout\"\n }\n },\n \"tab-content#home\": {\n \"children\": [\n \"tab-content.item#personalized\",\n \"tab-content.item#best-sellers\",\n \"tab-content.item#best-discounts\"\n ],\n \"props\": {\n \"blockClass\": \"home-tab-layout\"\n }\n },\n \"tab-list.item#personalized\": {\n \"props\": {\n \"tabId\": \"personalized\",\n \"label\": \"For you\",\n \"defaultActiveTab\": true,\n \"blockClass\": \"home-tab-layout-item\"\n }\n },\n \"tab-list.item#best-discounts\": {\n \"props\": {\n \"tabId\": \"best-discounts\",\n \"label\": \"Best Discounts\",\n \"blockClass\": \"home-tab-layout-item\"\n }\n },\n \"tab-list.item#best-sellers\": {\n \"props\": {\n \"tabId\": \"best-sellers\",\n \"label\": \"Best Sellers\",\n \"blockClass\": \"home-tab-layout-item\"\n }\n },\n \"tab-content.item#personalized\": {\n \"children\": [\"flex-layout.row#recommendation-personalized\"],\n \"props\": {\n \"tabId\": \"personalized\"\n }\n },\n \"tab-content.item#best-discounts\": {\n \"children\": [\"flex-layout.row#recommendation-best-discounts\"],\n \"props\": {\n \"tabId\": \"best-discounts\"\n }\n },\n \"tab-content.item#best-sellers\": {\n \"children\": [\"flex-layout.row#recommendation-top-items\"],\n \"props\": {\n \"tabId\": \"best-sellers\"\n }\n },\n // Commons\n \"product-summary.shelf#recommendation-cart\": {\n \"children\": [\n \"stack-layout#prodsum\",\n \"product-summary-name\",\n \"flex-layout.col#productRating\",\n \"product-summary-space\",\n \"product-list-price#summary\",\n \"flex-layout.row#selling-price-savings\",\n \"product-installments#summary\",\n \"add-to-cart-button#buyNow\"\n ]\n },\n \"list-context.product-list-static#recommendations-cart\": {\n \"blocks\": [\"product-summary.shelf#recommendation-cart\"],\n \"children\": [\"slider-layout#recommendation-slider\"]\n },\n \"list-context.product-list-static#recommendations\": {\n \"blocks\": [\"product-summary.shelf\"],\n \"children\": [\"slider-layout#recommendation-slider\"]\n },\n \"slider-layout#recommendation-slider\": {\n \"props\": {\n \"blockClass\": \"vtex-recommendation-shelf-slider\",\n \"itemsPerPage\": {\n \"desktop\": 5,\n \"tablet\": 3,\n \"phone\": 2\n },\n \"infinite\": true\n }\n }\n}\n\n```" } ]
code_search-demo-theme_68fd325d
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/store/blocks/product-price.jsonc from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"flex-layout.row#selling-price\": {\n \"props\": {\n \"colGap\": 2,\n \"preserveLayoutOnMobile\": true,\n \"preventHorizontalStretch\": true,\n \"marginBottom\": 4\n },\n \"children\": [\n \"product-selling-price\"\n ]\n },\n\n \"flex-layout.row#list-price-savings\": {\n \"props\": {\n \"colGap\": 2,\n \"preserveLayoutOnMobile\": true,\n \"preventHorizontalStretch\": true,\n \"marginBottom\": 2,\n \"marginTop\": 5\n },\n \"children\": [\n \"product-list-price\",\n \"product-price-savings\"\n ]\n }\n}\n\n```" } ]
code_search-demo-theme_129c5726
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/store/blocks/minicart.jsonc from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"add-to-cart-button\": {\n \"props\": {\n \"addToCartFeedback\": \"customEvent\",\n \"customPixelEventId\": \"add-to-cart-button\"\n }\n },\n\n \"minicart.v2\": {\n \"props\": {\n \"customPixelEventId\": \"add-to-cart-button\"\n },\n \"children\": [\"minicart-base-content\"]\n },\n \"minicart-base-content\": {\n \"blocks\": [\"minicart-empty-state\"],\n \"children\": [\"minicart-product-list\", \"flex-layout.row#minicart-footer\"]\n },\n \"flex-layout.row#minicart-footer\": {\n \"props\": {\n \"blockClass\": \"minicart-footer\"\n },\n \"children\": [\"flex-layout.col#minicart-footer\"]\n },\n \"flex-layout.col#minicart-footer\": {\n \"children\": [\"minicart-summary\", \"minicart-checkout-button\"]\n },\n \"minicart-product-list\": {\n \"blocks\": [\"product-list#minicart\"],\n \"props\": {\n \"splitItem\": false\n }\n }\n}\n\n```" } ]
code_search-demo-theme_71bac27d
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/store/blocks/search.jsonc from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store.search\": {\n \"blocks\": [\"search-result-layout\"],\n \"props\": {\n \"context\": {\n \"skusFilter\": \"ALL\",\n \"simulationBehavior\": \"skip\"\n }\n }\n },\n\n \"store.search#brand\": {\n \"blocks\": [\"search-result-layout\"],\n \"props\": {\n \"context\": {\n \"orderByField\": \"OrderByReleaseDateDESC\",\n \"hideUnavailableItems\": true,\n \"maxItemsPerPage\": 10,\n \"skusFilter\": \"ALL\",\n \"simulationBehavior\": \"skip\"\n }\n }\n },\n\n \"store.search#department\": {\n \"blocks\": [\"search-result-layout\"],\n \"props\": {\n \"context\": {\n \"skusFilter\": \"ALL\",\n \"simulationBehavior\": \"skip\"\n }\n }\n },\n\n \"store.search#category\": {\n \"blocks\": [\"search-result-layout\"],\n \"props\": {\n \"context\": {\n \"skusFilter\": \"ALL\",\n \"simulationBehavior\": \"skip\"\n }\n }\n },\n\n \"store.search#subcategory\": {\n \"blocks\": [\"search-result-layout\"],\n \"props\": {\n \"context\": {\n \"skusFilter\": \"ALL\",\n \"simulationBehavior\": \"skip\"\n }\n }\n },\n\n \"search-result-layout\": {\n \"blocks\": [\n \"search-result-layout.desktop\",\n \"search-result-layout.mobile\",\n \"search-not-found-layout\"\n ]\n },\n\n \"search-result-layout.desktop\": {\n \"children\": [\n \"flex-layout.row#searchbread\",\n \"flex-layout.row#searchtitle\",\n \"flex-layout.row#result\"\n ],\n \"props\": {\n \"pagination\": \"show-more\",\n \"preventRouteChange\": false,\n \"defaultGalleryLayout\": \"grid\"\n }\n },\n \"flex-layout.row#searchbread\": {\n \"children\": [\"breadcrumb.search\"],\n \"props\": {\n \"preserveLayoutOnMobile\": true,\n \"fullWidth\": true\n }\n },\n \"flex-layout.row#searchtitle\": {\n \"children\": [\"search-title.v2\"]\n },\n \"flex-layout.row#result\": {\n \"children\": [\"flex-layout.col#filter\", \"flex-layout.col#content\"],\n \"props\": {\n \"preventHorizontalStretch\": true,\n \"fullWidth\": true\n }\n },\n \"flex-layout.col#filter\": {\n \"children\": [\"filter-navigator.v3\"],\n \"props\": {\n \"blockClass\": \"filterCol\"\n }\n },\n \"flex-layout.col#content\": {\n \"children\": [\n \"flex-layout.row#searchinfo\",\n \"flex-layout.row#fetchprevious\",\n \"flex-layout.row#products\",\n \"flex-layout.row#fetchmore\"\n ],\n \"props\": {\n \"width\": \"grow\",\n \"preventVerticalStretch\": true\n }\n },\n \"flex-layout.row#searchinfo\": {\n \"children\": [\n \"flex-layout.col#productCount\",\n \"flex-layout.row#orderByAndSwitcher\"\n ]\n },\n \"flex-layout.row#orderByAndSwitcher\": {\n \"children\": [\"order-by.v2\", \"gallery-layout-switcher\"],\n \"props\": {\n \"horizontalAlign\": \"right\",\n \"preventHorizontalStretch\": true,\n \"blockClass\": \"orderByAndSwitcher\",\n \"colGap\": 3\n }\n },\n \"flex-layout.col#productCount\": {\n \"children\": [\"total-products.v2\"],\n \"props\": {\n \"blockClass\": \"productCountCol\"\n }\n },\n \"flex-layout.row#fetchprevious\": {\n \"props\": {\n \"marginBottom\": 3\n },\n \"children\": [\"search-fetch-previous\"]\n },\n \"flex-layout.row#fetchmore\": {\n \"props\": {\n \"marginTop\": 3\n },\n \"children\": [\"search-fetch-more\"]\n },\n \"search-fetch-previous\": {\n \"props\": {\n \"htmlElementForButton\": \"a\"\n }\n },\n \"search-fetch-more\": {\n \"props\": {\n \"htmlElementForButton\": \"a\"\n }\n },\n \"flex-layout.row#products\": {\n \"children\": [\"search-content\"]\n },\n \"search-content\": {\n \"blocks\": [\"gallery\", \"not-found\"]\n },\n\n \"search-result-layout.mobile\": {\n \"children\": [\n \"flex-layout.row#searchinfomobile\",\n \"flex-layout.row#searchbread\",\n \"flex-layout.row#productCountMobile\",\n \"flex-layout.row#fetchprevious\",\n \"flex-layout.row#contentmobile\",\n \"flex-layout.row#fetchmore\"\n ],\n \"props\": {\n \"pagination\": \"show-more\",\n \"mobileLayout\": {\n \"mode1\": \"small\",\n \"mode2\": \"normal\"\n },\n \"defaultGalleryLayout\": \"grid\"\n }\n },\n \"flex-layout.row#contentmobile\": {\n \"children\": [\"search-content\"],\n \"props\": {\n \"preserveLayoutOnMobile\": true\n }\n },\n\n \"flex-layout.row#searchinfomobile\": {\n \"children\": [\n \"flex-layout.col#orderByMobile\",\n \"flex-layout.col#filterMobile\",\n \"flex-layout.col#switcherMobile\"\n ],\n \"props\": {\n \"preserveLayoutOnMobile\": true,\n \"colSizing\": \"auto\",\n \"colJustify\": \"around\"\n }\n },\n\n \"flex-layout.col#orderByMobile\": {\n \"children\": [\"order-by.v2\"],\n \"props\": {\n \"blockClass\": \"orderByMobileCol\"\n }\n },\n\n \"flex-layout.row#productCountMobile\": {\n \"children\": [\"total-products.v2\"],\n \"props\": {\n \"blockClass\": \"productCountMobileRow\"\n }\n },\n\n \"flex-layout.col#filterMobile\": {\n \"children\": [\"filter-navigator.v3\"],\n \"props\": {\n \"blockClass\": \"filterMobileCol\"\n }\n },\n \"flex-layout.col#switcherMobile\": {\n \"children\": [\"gallery-layout-switcher\"],\n \"props\": {\n \"verticalAlign\": \"middle\"\n }\n },\n \"search-not-found-layout\": {\n \"children\": [\n \"flex-layout.row#searchbread\",\n \"flex-layout.row#notfound\",\n \"flex-layout.row#recommendation-personalized-with-title\"\n ]\n },\n\n \"flex-layout.row#notfound\": {\n \"children\": [\"not-found\"],\n \"props\": {\n \"fullWidth\": true\n }\n },\n\n \"breadcrumb\": {\n \"props\": {\n \"showOnMobile\": true\n }\n },\n\n \"gallery\": {\n \"props\": {\n \"layouts\": [\n {\n \"name\": \"grid\",\n \"component\": \"GridSummary\",\n \"itemsPerRow\": {\n \"(min-width:1300px)\": 4,\n \"desktop\": 3,\n \"tablet\": 3,\n \"phone\": 2\n }\n },\n {\n \"name\": \"list\",\n \"component\": \"ListSummary\",\n \"itemsPerRow\": 1\n }\n ],\n \"ListSummary\": \"product-summary.shelf#listLayout\",\n \"GridSummary\": \"product-summary.shelf\"\n }\n },\n \"gallery-layout-switcher\": {\n \"children\": [\n /*\n * For accessbility to work properly,\n * It's important to define the options in the same order as the layouts\n */\n \"gallery-layout-option#grid\",\n \"gallery-layout-option#list\"\n ]\n },\n \"gallery-layout-option#grid\": {\n \"props\": {\n \"name\": \"grid\"\n },\n \"children\": [\"icon-grid\", \"responsive-layout.desktop#textOptionGrid\"]\n },\n \"gallery-layout-option#list\": {\n \"props\": {\n \"name\": \"list\"\n },\n \"children\": [\"icon-inline-grid\", \"responsive-layout.desktop#textOptionList\"]\n },\n \"responsive-layout.desktop#textOptionGrid\": {\n \"children\": [\"rich-text#option-grid\"]\n },\n \"responsive-layout.desktop#textOptionList\": {\n \"children\": [\"rich-text#option-list\"]\n },\n \"rich-text#option-grid\": {\n \"props\": {\n \"text\": \"Grid\",\n \"textColor\": \"c-auto\",\n \"blockClass\": \"layout-option\"\n }\n },\n \"rich-text#option-list\": {\n \"props\": {\n \"text\": \"List\",\n \"textColor\": \"c-auto\",\n \"blockClass\": \"layout-option\"\n }\n }\n}\n\n```" } ]
code_search-demo-theme_c2d59fd1
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/store/blocks/contact.jsonc from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store.custom#contact-us\": {\n \"children\": [\n \"flex-layout.row#contact-us\"\n ]\n },\n\n \"flex-layout.row#contact-us\": {\n \"props\": {\n \"blockClass\": \"contact\"\n },\n \"children\": [\n \"flex-layout.col#contact-us\"\n ]\n },\n\n \"flex-layout.col#contact-us\": {\n \"children\": [\n \"rich-text#contact-us\",\n \"form#contact-us\"\n ]\n },\n \"rich-text#contact-us\": {\n \"props\": {\n \"text\": \"## Contact Us\"\n }\n },\n\n \"form#contact-us\": {\n \"props\": {\n \"entity\": \"contact\",\n \"schema\": \"site-contact\"\n },\n \"blocks\": [\n \"form-success#contact-us\"\n ],\n \"children\": [\n \"form-input.text#title\",\n \"form-input.text#name\",\n \"form-input.text#email\",\n \"form-input.textarea#message\",\n \"form-submit#contact\"\n ]\n },\n\n \"form-success#contact-us\": {\n \"children\": [\n \"rich-text#success-submit\"\n ]\n },\n \"rich-text#success-submit\": {\n \"props\": {\n \"text\": \"Thanks for reaching out! We will come back shortly.\",\n \"textAlignment\": \"CENTER\",\n \"textPosition\": \"CENTER\"\n }\n },\n\n \"form-input.text#title\": {\n \"props\": {\n \"pointer\": \"#/properties/title\"\n }\n },\n \"form-input.text#name\": {\n \"props\": {\n \"pointer\": \"#/properties/name\"\n }\n },\n \"form-input.text#email\": {\n \"props\": {\n \"pointer\": \"#/properties/email\"\n }\n },\n \"form-input.textarea#message\": {\n \"props\": {\n \"pointer\": \"#/properties/message\"\n }\n },\n\n \"form-submit#contact\": {\n \"props\": {\n \"label\": \"Submit\"\n }\n }\n}\n\n```" } ]
code_search-demo-theme_b0985828
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/store/blocks/orderplaced.jsonc from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"order-placed\": {\n \"blocks\": [\"op-header\", \"op-order\"]\n },\n \"op-header\": {\n \"children\": [\n \"op-section#confirmation\",\n \"op-section#notices\",\n \"op-summary-section\",\n \"op-bank-invoice-section\"\n ]\n },\n \"op-section#confirmation\": {\n \"props\": {\n \"name\": \"confirmation\",\n \"marginBottom\": 9,\n \"borderless\": true\n },\n \"children\": [\n \"op-confirmation-icon\",\n \"op-confirmation-title\",\n \"op-confirmation-message\",\n \"flex-layout.row#confirmation-buttons\"\n ]\n },\n \"flex-layout.row#confirmation-buttons\": {\n \"props\": {\n \"blockClass\": \"confirmationButtons\",\n \"marginTop\": 8,\n \"marginBottom\": 8,\n \"horizontalAlign\": \"center\",\n \"preventHorizontalStretch\": true,\n \"preserveLayoutOnMobile\": true\n },\n \"children\": [\"flex-layout.col#confirmation-buttons\"]\n },\n \"flex-layout.col#confirmation-buttons\": {\n \"children\": [\"op-print-button\"]\n },\n \"op-section#notices\": {\n \"props\": {\n \"name\": \"notices\",\n \"marginBottom\": 9,\n \"borderless\": true\n },\n \"children\": [\"op-notices\"]\n },\n // each order section\n \"op-order\": {\n \"children\": [\n \"flex-layout.row#order-header\",\n \"op-order-split-notice\",\n \"op-order-customer\",\n \"op-section#payments\",\n \"op-section#pickup-packages\",\n \"op-section#delivery-packages\",\n \"op-order-takeaway-packages\",\n \"op-order-total\"\n ]\n },\n // each order header\n \"flex-layout.row#order-header\": {\n \"props\": {\n \"fullWidth\": true,\n \"colSizing\": \"auto\",\n \"colGap\": 5,\n \"marginBottom\": 5\n },\n \"children\": [\n \"flex-layout.col#order-header-info\",\n \"flex-layout.col#order-header-options\"\n ]\n },\n \"flex-layout.col#order-header-info\": {\n \"children\": [\"op-order-number\", \"op-order-datetime\", \"op-order-seller\"]\n },\n \"flex-layout.col#order-header-options\": {\n \"children\": [\"responsive-layout.desktop#order-options-desktop\"]\n },\n \"responsive-layout.desktop#order-options-desktop\": {\n \"children\": [\"op-order-options\"]\n },\n // payment section\n \"op-section#payments\": {\n \"props\": {\n \"name\": \"paymentMethods\"\n },\n \"children\": [\n \"op-order-payment\",\n \"responsive-layout.mobile#order-options-mobile\"\n ]\n },\n // bottom of top section of order header\n \"responsive-layout.mobile#order-options-mobile\": {\n \"children\": [\"op-order-options#mobile\"]\n },\n \"op-order-options#mobile\": {\n \"props\": {\n \"blockClass\": \"mobile\",\n \"fullWidth\": true\n }\n },\n \"op-section#pickup-packages\": {\n \"props\": {\n \"name\": \"pickupPackages\"\n },\n \"children\": [\"op-order-pickup-packages\"]\n },\n \"op-section#delivery-packages\": {\n \"props\": {\n \"name\": \"deliveryPackages\"\n },\n \"children\": [\"op-order-delivery-packages\"]\n }\n}\n\n```" } ]
code_search-demo-theme_87049790
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/store/blocks/faq.jsonc from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store.custom#faq\": {\n \"children\": [\n \"flex-layout.row#faq\"\n ]\n },\n\n \"flex-layout.row#faq\": {\n \"props\": {\n \"blockClass\": \"faq\"\n },\n \"children\": [\n \"flex-layout.col#faq\"\n ]\n },\n\n \"flex-layout.col#faq\": {\n \"children\": [\n \"rich-text#faq\",\n \"disclosure-layout-group#group\"\n ]\n },\n \"rich-text#faq\": {\n \"props\": {\n \"text\": \"## FAQ\"\n }\n },\n\n \"disclosure-layout-group#group\": {\n \"children\": [\n \"disclosure-layout#first\",\n \"disclosure-layout#second\",\n \"disclosure-layout#third\",\n \"disclosure-layout#fourth\"\n ]\n },\n\n \"disclosure-layout#first\": {\n \"props\": {\n \"animated\": true\n },\n \"children\": [\"disclosure-trigger#first\", \"disclosure-content#first\"]\n },\n \"disclosure-trigger#first\": {\n \"props\": {\n \"blockClass\": \"question\",\n \"as\": \"div\"\n },\n \"children\": [\"disclosure-state-indicator\", \"rich-text#question1\"]\n },\n \"disclosure-content#first\": {\n \"props\": {\n \"blockClass\": \"answer\"\n },\n \"children\": [\"rich-text#answer1\"]\n },\n \"rich-text#question1\": {\n \"props\": {\n \"text\": \"How can I change my shipping address?\"\n }\n },\n \"rich-text#answer1\": {\n \"props\": {\n \"text\": \"Call us at the number (212) 1234-1234.\"\n }\n },\n\n \"disclosure-layout#second\": {\n \"props\": {\n \"animated\": true\n },\n \"children\": [\"disclosure-trigger#second\", \"disclosure-content#second\"]\n },\n \"disclosure-trigger#second\": {\n \"props\": {\n \"blockClass\": \"question\",\n \"as\": \"div\"\n },\n \"children\": [\"disclosure-state-indicator\", \"rich-text#question2\"]\n },\n \"disclosure-content#second\": {\n \"props\": {\n \"blockClass\": \"answer\"\n },\n \"children\": [\"rich-text#answer2\"]\n },\n \"rich-text#question2\": {\n \"props\": {\n \"text\": \"How can I track my order?\"\n }\n },\n \"rich-text#answer2\": {\n \"props\": {\n \"text\": \"After logging into your account, you can find this info at the link Orders.\"\n }\n },\n\n\n \"disclosure-layout#third\": {\n \"props\": {\n \"animated\": true\n },\n \"children\": [\"disclosure-trigger#third\", \"disclosure-content#third\"]\n },\n \"disclosure-trigger#third\": {\n \"props\": {\n \"blockClass\": \"question\",\n \"as\": \"div\"\n },\n \"children\": [\"disclosure-state-indicator\", \"rich-text#question3\"]\n },\n \"disclosure-content#third\": {\n \"props\": {\n \"blockClass\": \"answer\"\n },\n \"children\": [\"rich-text#answer3\"]\n },\n \"rich-text#question3\": {\n \"props\": {\n \"text\": \"How can I change my shipping address?\"\n }\n },\n \"rich-text#answer3\": {\n \"props\": {\n \"text\": \"Call us at the number (212) 1234-1234.\"\n }\n },\n\n\n \"disclosure-layout#fourth\": {\n \"props\": {\n \"animated\": true\n },\n \"children\": [\"disclosure-trigger#fourth\", \"disclosure-content#fourth\"]\n },\n \"disclosure-trigger#fourth\": {\n \"props\": {\n \"blockClass\": \"question\",\n \"as\": \"div\"\n },\n \"children\": [\"disclosure-state-indicator\", \"rich-text#question4\"]\n },\n \"disclosure-content#fourth\": {\n \"props\": {\n \"blockClass\": \"answer\"\n },\n \"children\": [\"rich-text#answer2\"]\n },\n \"rich-text#question4\": {\n \"props\": {\n \"text\": \"How can I track my order?\"\n }\n },\n \"rich-text#answer4\": {\n \"props\": {\n \"text\": \"After logging into your account, you can find this info at the link Orders.\"\n }\n },\n\n\n \"disclosure-state-indicator\": {\n \"props\": {\n \"Show\": \"icon-caret#down\",\n \"Hide\": \"icon-caret#up\"\n }\n },\n \"icon-caret#down\": {\n \"props\": {\n \"orientation\": \"down\"\n }\n },\n \"icon-caret#up\": {\n \"props\": {\n \"orientation\": \"up\"\n }\n }\n}\n\n```" } ]
code_search-demo-theme_317cfafa
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/store/blocks/home/home.jsonc from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store.home\": {\n \"blocks\": [\n \"flex-layout.row#image-list\",\n /* You can make references to blocks defined in other files.\n * For example, `flex-layout.row#deals` is defined in the `deals.json` file. */\n \"flex-layout.row#deals\",\n \"__fold__\",\n \"flex-layout.row#home-tab\",\n \"flex-layout.row#recommendation-last-seen\",\n \"info-card#home\",\n \"rich-text#question\",\n \"rich-text#link\",\n \"newsletter\"\n ]\n },\n\n \"flex-layout.row#image-list\": {\n \"children\": [\"list-context.image-list#demo\"]\n },\n\n \"list-context.image-list#demo\": {\n \"children\": [\"slider-layout#demo-images\"],\n \"props\": {\n \"height\": 570,\n \"preload\": true,\n \"images\": [\n {\n \"image\": \"https://storecomponents.vteximg.com.br/arquivos/banner-principal.png\",\n \"mobileImage\": \"https://storecomponents.vteximg.com.br/arquivos/banner-principal-mobile.jpg\"\n },\n {\n \"image\": \"https://storecomponents.vteximg.com.br/arquivos/banner.jpg\",\n \"mobileImage\": \"https://storecomponents.vteximg.com.br/arquivos/banner-principal-mobile.jpg\"\n }\n ]\n }\n },\n \"slider-layout#demo-images\": {\n \"props\": {\n \"itemsPerPage\": {\n \"desktop\": 1,\n \"tablet\": 1,\n \"phone\": 1\n },\n \"infinite\": true,\n \"showNavigationArrows\": \"desktopOnly\",\n \"blockClass\": \"carousel\"\n }\n },\n\n \"info-card#home\": {\n \"props\": {\n \"id\": \"info-card-home\",\n \"isFullModeStyle\": false,\n \"textPosition\": \"left\",\n \"imageUrl\": \"https://storecomponents.vteximg.com.br/arquivos/banner-infocard2.png\",\n \"headline\": \"Clearance Sale\",\n \"callToActionText\": \"DISCOVER\",\n \"callToActionUrl\": \"/sale/d\",\n \"blockClass\": \"info-card-home\",\n \"textAlignment\": \"center\"\n }\n },\n\n \"rich-text#question\": {\n \"props\": {\n \"text\": \"**This is an example store built using the VTEX platform.\\nWant to know more?**\",\n \"blockClass\": \"question\"\n }\n },\n\n \"rich-text#link\": {\n \"props\": {\n \"text\": \"\\n**Reach us at**\\nwww.vtex.com.br\",\n \"blockClass\": \"link\"\n }\n }\n}\n\n```" } ]
code_search-demo-theme_8bfd2bcb
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/store/blocks/home/deals.json from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"flex-layout.row#deals\": {\n \"children\": [\n \"flex-layout.col#deals1\",\n \"flex-layout.col#deals2\",\n \"flex-layout.col#deals3\",\n \"flex-layout.col#deals4\"\n ],\n \"props\": {\n \"blockClass\": \"deals\"\n }\n },\n\n \"flex-layout.col#deals1\": {\n \"children\": [\n \"image#deal1\",\n \"rich-text#deal1\"\n ]\n },\n \"image#deal1\": {\n \"props\": {\n \"src\": \"https://storecomponents.vteximg.com.br/arquivos/box.png\",\n \"maxHeight\": \"24px\"\n }\n },\n \"rich-text#deal1\": {\n \"props\": {\n \"text\": \"Free shipping\",\n \"blockClass\": \"deals\"\n }\n },\n \"flex-layout.col#deals2\": {\n \"children\": [\n \"image#deal2\",\n \"rich-text#deal2\"\n ]\n },\n \"image#deal2\": {\n \"props\": {\n \"src\": \"https://storecomponents.vteximg.com.br/arquivos/delivery-fast.png\",\n \"maxHeight\": \"24px\"\n }\n },\n \"rich-text#deal2\": {\n \"props\": {\n \"text\": \"One day delivery\",\n \"blockClass\": \"deals\"\n }\n },\n \"flex-layout.col#deals3\": {\n \"children\": [\n \"image#deal3\",\n \"rich-text#deal3\"\n ]\n },\n \"image#deal3\": {\n \"props\": {\n \"src\": \"https://storecomponents.vteximg.com.br/arquivos/store.png\",\n \"maxHeight\": \"24px\"\n }\n },\n \"rich-text#deal3\": {\n \"props\": {\n \"text\": \"Pick up in store\",\n \"blockClass\": \"deals\"\n }\n },\n \"flex-layout.col#deals4\": {\n \"children\": [\n \"image#deal4\",\n \"rich-text#deal4\"\n ]\n },\n \"image#deal4\": {\n \"props\": {\n \"src\": \"https://storecomponents.vteximg.com.br/arquivos/coupon.png\",\n \"maxHeight\": \"24px\"\n }\n },\n \"rich-text#deal4\": {\n \"props\": {\n \"text\": \"Exclusive deals\",\n \"blockClass\": \"deals\"\n }\n }\n}\n\n```" } ]
code_search-demo-theme_4819bc29
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/store/blocks/footer/footer.json from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"footer\": {\n \"blocks\": [\"footer-layout.desktop\", \"footer-layout.mobile\"]\n },\n \"footer-layout.desktop\": {\n \"children\": [\n \"flex-layout.row#footer-1-desktop\",\n \"flex-layout.row#footer-2-desktop\",\n \"flex-layout.row#footer-3-desktop\"\n ]\n },\n \"flex-layout.row#footer-1-desktop\": {\n \"children\": [\n \"vtex.menu@2.x:menu#Products\",\n \"vtex.menu@2.x:menu#footer-clothing\",\n \"vtex.menu@2.x:menu#footer-decoration\",\n \"vtex.menu@2.x:menu#footer-bags\",\n \"footer-spacer\",\n \"social-networks\"\n ],\n \"props\": {\n \"blockClass\": \"menu-row\",\n \"paddingTop\": 6,\n \"paddingBottom\": 3\n }\n },\n\n \"social-networks\": {\n \"props\": {\n \"socialNetworks\": [\n {\n \"name\": \"Facebook\",\n \"url\": \"https://www.facebook.com/vtexonline/\"\n },\n {\n \"name\": \"Instagram\",\n \"url\": \"https://www.instagram.com/vtextruecloud/\"\n },\n {\n \"name\": \"Twitter\",\n \"url\": \"https://twitter.com/vtexonline\"\n },\n {\n \"name\": \"Youtube\",\n \"url\": \"https://www.youtube.com/user/VTEXTV\"\n }\n ]\n }\n },\n\n \"flex-layout.row#footer-2-desktop\": {\n \"children\": [\"accepted-payment-methods\"],\n \"props\": {\n \"blockClass\": \"payment-methods\"\n }\n },\n \"accepted-payment-methods\": {\n \"props\": {\n \"paymentMethods\": [\"MasterCard\", \"Visa\", \"Diners Club\"]\n }\n },\n\n \"flex-layout.row#footer-3-desktop\": {\n \"children\": [\"rich-text#footer\"],\n \"props\": {\n \"blockClass\": \"credits\"\n }\n },\n \"rich-text#footer\": {\n \"props\": {\n \"text\": \"All stock and product photos are from photos.icons8.com\",\n \"blockClass\": \"footer\"\n }\n },\n\n \"footer-layout.mobile\": {\n \"children\": [\n \"flex-layout.row#1-footer-mobile\",\n \"flex-layout.row#2-footer-mobile\"\n ]\n },\n \"flex-layout.row#2-footer-mobile\": {\n \"children\": [\"flex-layout.col#footer-1-mobile\"],\n \"props\": {\n \"blockClass\": \"payment-methods\",\n \"paddingTop\": 4,\n \"paddingBottom\": 4\n }\n },\n \"flex-layout.col#footer-1-mobile\": {\n \"children\": [\n \"accepted-payment-methods\",\n \"social-networks\",\n \"rich-text#footer-mobile\"\n ],\n \"props\": {\n \"blockClass\": \"payment-methods\",\n \"paddingTop\": 4,\n \"paddingBottom\": 4,\n \"rowGap\": 4\n }\n },\n \"flex-layout.row#1-footer-mobile\": {\n \"props\": {\n \"paddingTop\": 4,\n \"paddingBottom\": 4\n },\n \"children\": [\"vtex.menu@2.x:menu#footer-mobile\"]\n },\n \"rich-text#footer-mobile\": {\n \"props\": {\n \"text\": \"All stock and product photos are from photos.icons8.com\",\n \"blockClass\": \"footer\"\n }\n }\n}\n\n```" } ]
code_search-demo-theme_7bb60efa
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/store/blocks/footer/menu.json from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vtex.menu@2.x:menu#Products\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#news\",\n \"menu-item#blackfriday\",\n \"menu-item#sale\",\n \"menu-item#personalization\"\n ]\n },\n \"menu-item#news\": {\n \"props\": {\n \"id\": \"menu-item-news\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"#\",\n \"noFollow\": false,\n \"tagTitle\": \"News\",\n \"text\": \"News\"\n }\n }\n },\n \"menu-item#blackfriday\": {\n \"props\": {\n \"id\": \"menu-item-black-friday\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"#\",\n \"noFollow\": false,\n \"tagTitle\": \"BlackFriday\",\n \"text\": \"Black Friday\"\n }\n }\n },\n \"menu-item#sale\": {\n \"props\": {\n \"id\": \"menu-item-sale\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"#\",\n \"noFollow\": false,\n \"tagTitle\": \"Sale\",\n \"text\": \"Sale\"\n }\n }\n },\n \"menu-item#personalization\": {\n \"props\": {\n \"id\": \"menu-item-personalization\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"#\",\n \"noFollow\": false,\n \"tagTitle\": \"Personalization\",\n \"text\": \"Personalization\"\n }\n }\n },\n\n \"vtex.menu@2.x:menu#footer-decoration\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#smartphones\",\n \"menu-item#videogames\",\n \"menu-item#tvs\"\n ]\n },\n\n \"menu-item#smartphones\": {\n \"props\": {\n \"id\": \"menu-item-smartphones\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/decoration/smartphones\",\n \"noFollow\": true,\n \"tagTitle\": \"Smartphones\",\n \"text\": \"Smartphones\"\n }\n }\n },\n\n \"menu-item#videogames\": {\n \"props\": {\n \"id\": \"menu-item-videogames\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/decoration/videogames\",\n \"noFollow\": true,\n \"tagTitle\": \"Videogames\",\n \"text\": \"Videogames\"\n }\n }\n },\n\n \"menu-item#tvs\": {\n \"props\": {\n \"id\": \"menu-item-tvs\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/decoration/tvs\",\n \"noFollow\": true,\n \"tagTitle\": \"TVs\",\n \"text\": \"TVs\"\n }\n }\n },\n\n \"vtex.menu@2.x:menu#footer-bags\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#bags\",\n \"menu-item#backpacks\",\n \"menu-item#necessaire\"\n ]\n },\n\n \"menu-item#bags\": {\n \"props\": {\n \"id\": \"menu-item-bags\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/bags/d\",\n \"noFollow\": true,\n \"tagTitle\": \"Bags\",\n \"text\": \"Bags\"\n }\n }\n },\n\n \"menu-item#backpacks\": {\n \"props\": {\n \"id\": \"menu-item-backpacks\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/bags/backpacks\",\n \"noFollow\": true,\n \"tagTitle\": \"Backpacks\",\n \"text\": \"Backpacks\"\n }\n }\n },\n\n \"menu-item#necessaire\": {\n \"props\": {\n \"id\": \"menu-item-necessaire\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/bags/necessaire\",\n \"noFollow\": true,\n \"tagTitle\": \"Necessaire\",\n \"text\": \"Necessaire\"\n }\n }\n },\n\n \"vtex.menu@2.x:menu#footer-clothing\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#clothing\",\n \"menu-item#shorts\",\n \"menu-item#tank-tops\",\n \"menu-item#shirts\",\n \"menu-item#sweatshirt\",\n \"menu-item#cropped\"\n ]\n },\n\n \"vtex.menu@2.x:menu#footer-mobile\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#clothing-mobile\",\n \"menu-item#decoration-mobile\",\n \"menu-item#sale-mobile\"\n ]\n },\n\n \"menu-item#clothing-mobile\": {\n \"props\": {\n \"id\": \"menu-item-category-clothing\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/clothing/d\",\n \"noFollow\": true,\n \"tagTitle\": \"Clothing\",\n \"text\": \"Clothing\"\n }\n },\n \"blocks\": [\"vtex.menu@2.x:submenu.accordion#clothing\"]\n },\n \"vtex.menu@2.x:submenu.accordion#clothing\": {\n \"children\": [\"vtex.menu@2.x:menu#clothing-accordion\"]\n },\n\n \"vtex.menu@2.x:menu#clothing-accordion\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#shorts\",\n \"menu-item#tank-tops\",\n \"menu-item#shirts\",\n \"menu-item#sweatshirt\",\n \"menu-item#cropped\"\n ]\n },\n\n \"menu-item#decoration-mobile\": {\n \"props\": {\n \"itemProps\": {\n \"tagTitle\": \"Decoration\",\n \"text\": \"Decoration\"\n }\n },\n \"blocks\": [\"vtex.menu@2.x:submenu.accordion#decoration\"]\n },\n \"vtex.menu@2.x:submenu.accordion#decoration\": {\n \"children\": [\"vtex.menu@2.x:menu#footer-decoration-mobile\"]\n },\n\n \"vtex.menu@2.x:menu#footer-decoration-mobile\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#smartphones\",\n \"menu-item#videogames\",\n \"menu-item#tvs\"\n ]\n },\n\n \"menu-item#sale-mobile\": {\n \"props\": {\n \"itemProps\": {\n \"tagTitle\": \"Sale\",\n \"text\": \"Sale\"\n }\n },\n \"blocks\": [\"vtex.menu@2.x:submenu.accordion#sale\"]\n },\n \"vtex.menu@2.x:submenu.accordion#sale\": {\n \"children\": [\"vtex.menu@2.x:menu#footer-sale-mobile\"]\n },\n\n \"vtex.menu@2.x:menu#footer-sale-mobile\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#smartphones\",\n \"menu-item#videogames\",\n \"menu-item#tvs\"\n ]\n },\n\n \"menu-item#clothing\": {\n \"props\": {\n \"id\": \"menu-item-category-clothing\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/clothing/d\",\n \"noFollow\": true,\n \"tagTitle\": \"Clothing\",\n \"text\": \"Clothing\"\n }\n }\n },\n\n \"menu-item#shorts\": {\n \"props\": {\n \"id\": \"menu-item-shorts\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/clothing/shorts\",\n \"noFollow\": false,\n \"tagTitle\": \"Shorts\",\n \"text\": \"Shorts\"\n }\n }\n },\n\n \"menu-item#tank-tops\": {\n \"props\": {\n \"id\": \"menu-item-tank-tops\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/clothing/tank-tops\",\n \"noFollow\": false,\n \"tagTitle\": \"Tank tops\",\n \"text\": \"Tank tops\"\n }\n }\n },\n\n \"menu-item#shirts\": {\n \"props\": {\n \"id\": \"menu-item-shirts\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/clothing/shirts\",\n \"noFollow\": false,\n \"tagTitle\": \"Shirts\",\n \"text\": \"Shirts\"\n }\n }\n },\n\n \"menu-item#sweatshirt\": {\n \"props\": {\n \"id\": \"menu-item-sweat-shirts\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/clothing/sweatshirt\",\n \"noFollow\": false,\n \"tagTitle\": \"Sweatshirt\",\n \"text\": \"Sweatshirt\"\n }\n }\n },\n\n \"menu-item#cropped\": {\n \"props\": {\n \"id\": \"menu-item-cropped\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/clothing/cropped\",\n \"noFollow\": false,\n \"tagTitle\": \"Cropped\",\n \"text\": \"Cropped\"\n }\n }\n }\n}\n\n```" } ]
code_search-demo-theme_80669900
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/store/blocks/product-summary/product-summary.jsonc from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"product-summary.shelf\": {\n \"children\": [\n \"stack-layout#prodsum\",\n \"product-summary-name\",\n \"flex-layout.col#productRating\",\n \"product-summary-space\",\n \"product-list-price#summary\",\n \"flex-layout.row#selling-price-savings\",\n \"product-installments#summary\",\n \"add-to-cart-button\"\n ]\n },\n \"flex-layout.col#productRating\": {\n \"props\": {\n \"blockClass\": \"productRating\"\n },\n \"children\": [\"product-rating-inline\"]\n },\n\n \"stack-layout#prodsum\": {\n \"children\": [\n \"product-summary-image#shelf\",\n \"vtex.product-highlights@2.x:product-highlights#collection\",\n \"modal-trigger#quickview\" // Check quickview.jsonc\n ]\n },\n\n \"product-summary-image#shelf\": {\n \"props\": {\n \"showBadge\": false,\n \"aspectRatio\": \"1:1\",\n \"maxHeight\": 300,\n \"hoverImageLabel\": \"hover\",\n \"fetchpriority\": \"high\",\n \"hoverImage\": {\n \"index\": 2\n }\n }\n },\n\n \"vtex.product-highlights@2.x:product-highlights#collection\": {\n \"props\": {\n \"type\": \"collection\"\n },\n \"children\": [\"product-highlight-wrapper\"]\n },\n \"product-highlight-wrapper\": {\n \"props\": {\n \"blockClass\": \"collection\"\n },\n \"children\": [\"product-highlight-text\"]\n },\n \"product-highlight-text\": {\n \"props\": {\n \"message\": \"{highlightName}\"\n }\n },\n\n \"product-list-price#summary\": {\n \"props\": {\n \"blockClass\": \"summary\"\n }\n },\n \"flex-layout.row#selling-price-savings\": {\n \"props\": {\n \"colGap\": 2,\n \"preserveLayoutOnMobile\": true,\n \"preventHorizontalStretch\": true,\n \"marginBottom\": 4\n },\n \"children\": [\n \"product-selling-price#summary\",\n \"product-price-savings#summary\"\n ]\n },\n \"product-installments#summary\": {\n \"props\": {\n \"blockClass\": \"summary\"\n }\n },\n \"product-selling-price#summary\": {\n \"props\": {\n \"blockClass\": \"summary\"\n }\n },\n \"product-price-savings#summary\": {\n \"props\": {\n \"markers\": [\"discount\"],\n \"blockClass\": \"summary\"\n }\n }\n}\n\n```" } ]
code_search-demo-theme_7ad69db6
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/store/blocks/product-summary/quickview.json from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"modal-trigger#quickview\": {\n \"children\": [\n \"icon-expand\",\n \"modal-layout#quickview\"\n ],\n \"props\": {\n \"blockClass\": \"quickview\"\n }\n },\n\n \"modal-layout#quickview\": {\n \"children\": [\n \"modal-header#quickview\",\n \"flex-layout.row#quickview-main-row\"\n ],\n \"props\": {\n \"blockClass\": \"quickview\"\n }\n },\n \"modal-header#quickview\": {\n \"props\": {\n \"blockClass\": \"quickview\"\n }\n },\n\n \"modal-content#quickview\": {\n \"children\": [\n \"vtex.store-components:product-name\",\n \"flex-layout.col#quickviewPrice\",\n \"product-summary-sku-selector#quickview\"\n ],\n \"props\": {\n \"blockClass\": \"quickviewContent\"\n }\n },\n \"flex-layout.col#quickviewPrice\": {\n \"children\": [\n \"flex-layout.row#list-price-savings\",\n \"flex-layout.row#selling-price\",\n \"product-installments\"\n ]\n },\n \"modal-actions#quickview\": {\n \"props\": {\n \"blockClass\": \"quickview\"\n },\n \"children\": [\n \"flex-layout.row#quickview-actions-1\",\n \"flex-layout.row#quickview-actions-2\"\n ]\n },\n \"flex-layout.row#quickview-actions-1\": {\n \"children\": [\n \"flex-layout.col#quickview-product-quantity\",\n \"flex-layout.col#quickview-add-to-card-button\"\n ],\n \"props\": {\n \"colSizing\": \"auto\",\n \"colGap\": 6,\n \"blockClass\": \"addToCartRow\"\n }\n },\n\n \"flex-layout.col#quickview-product-quantity\": {\n \"children\": [\n \"product-summary-quantity#quickview\"\n ]\n },\n \"product-summary-quantity#quickview\": {\n \"props\": {\n \"showLabel\": false,\n \"size\": \"regular\"\n }\n },\n \"flex-layout.col#quickview-add-to-card-button\": {\n \"children\": [\n \"add-to-cart-button\"\n ],\n \"props\": {\n \"width\": \"grow\"\n }\n },\n\n \"flex-layout.row#quickview-actions-2\": {\n \"children\": [\n \"link.product#button-pdp\"\n ]\n },\n \"link.product#button-pdp\": {\n \"props\": {\n \"buttonProps\": {\n \"variant\": \"secondary\"\n },\n \"displayMode\": \"button\",\n \"label\": \"View details\",\n \"href\": \"/{slug}/p\"\n }\n },\n \"flex-layout.row#quickview-main-row\": {\n \"children\": [\n \"flex-layout.col#quickview-images\",\n \"flex-layout.col#quickview-product-details\"\n ],\n \"props\": {\n \"blockClass\": \"quickviewMainRow\"\n }\n },\n \"flex-layout.col#quickview-images\": {\n \"children\": [\n \"product-images#quickview\"\n ]\n },\n \"flex-layout.col#quickview-product-details\": {\n \"children\": [\n \"modal-content#quickview\",\n \"modal-actions#quickview\"\n ],\n \"props\": {\n \"preventVerticalStretch\": true,\n \"blockClass\": \"quickviewDetails\"\n }\n },\n \"product-summary-sku-selector#quickview\": {\n \"props\": {\n \"thumbnailImage\": \"skuvariation\",\n \"imageHeight\": 28,\n \"blockClass\": \"quickview\",\n \"visibility\": \"more-than-one\"\n }\n },\n \"vtex.store-components:product-name\": {\n \"props\": {\n \"blockClass\": \"quickview\"\n }\n },\n \"product-images#quickview\" : {\n \"props\": {\n \"blockClass\": \"quickview\",\n \"showNavigationArrows\": true\n }\n }\n}\n\n```" } ]
code_search-demo-theme_7ab9b09a
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/store/blocks/product-summary/product-summary-list.jsonc from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"product-summary.shelf#listLayout\": {\n \"props\": {\n \"blockClass\": \"listLayout\"\n },\n \"children\": [\n \"responsive-layout.desktop#productSummaryList\",\n \"responsive-layout.mobile#productSummaryList\"\n ]\n },\n \"responsive-layout.desktop#productSummaryList\": {\n \"children\": [\n \"flex-layout.row#summaryListDesktop\"\n ]\n },\n \"responsive-layout.mobile#productSummaryList\": {\n \"children\": [\n \"flex-layout.row#summaryListMobile\"\n ]\n },\n \"product-price-savings#summaryPercentage\": {\n \"props\": {\n \"message\": \"{savingsPercentage}\",\n \"blockClass\": \"summaryPercentage\"\n }\n },\n \"flex-layout.row#savingsSummaryListDesktop\": {\n \"props\": {\n \"colSizing\": \"auto\",\n \"colGap\": 3,\n \"blockClass\": \"savingsSummaryListDesktop\"\n },\n \"children\": [\n \"product-price-savings#summaryPercentage\",\n \"product-price-savings#summary\"\n ]\n },\n \"flex-layout.row#summaryListDesktop\": {\n \"props\":{\n \"fullWidth\": true,\n \"colSizing\": \"auto\",\n \"blockClass\": \"summaryListDesktop\"\n },\n \"children\": [\n \"flex-layout.row#summaryLeftListDesktop\",\n \"flex-layout.col#summaryRightListDesktop\"\n ]\n },\n \"flex-layout.row#summaryLeftListDesktop\": {\n \"props\": {\n \"blockClass\": \"summaryLeftListDesktop\",\n \"colSizing\": \"auto\",\n \"colGap\": 7\n },\n \"children\": [\n \"stack-layout#summaryListDesktop\",\n \"flex-layout.col#summaryDetailsListDesktop\"\n ]\n },\n \"flex-layout.col#summaryDetailsListDesktop\": {\n \"props\": {\n \"preventVerticalStretch\": true\n },\n \"children\": [\n \"vtex.store-components:product-brand#summaryListDesktop\",\n \"product-summary-name#summaryListDesktop\",\n \"flex-layout.col#productRating\",\n \"flex-layout.row#productSpecifications\"\n ]\n },\n \"flex-layout.row#productSpecifications\": {\n \"children\": [\n \"product-specification-group#summary\"\n ]\n },\n \"product-summary-name#summaryListDesktop\": {\n \"props\": {\n \"blockClass\": \"summaryListDesktop\"\n }\n },\n \"vtex.store-components:product-brand#summaryListDesktop\": {\n \"props\": {\n \"displayMode\": \"text\",\n \"blockClass\": \"summaryListDesktop\"\n }\n },\n \"flex-layout.col#summaryRightListDesktop\": {\n \"props\": {\n \"blockClass\": \"summaryRightListDesktop\",\n \"preventVerticalStretch\": true\n },\n \"children\": [\n \"flex-layout.row#savingsSummaryListDesktop\",\n \"flex-layout.col#priceSummaryListDesktop\",\n \"flex-layout.row#buyButtonsSummaryListDesktop\"\n ]\n },\n \"flex-layout.row#buyButtonsSummaryListDesktop\": {\n \"props\": {\n \"colSizing\": \"auto\",\n \"colGap\": 5\n },\n \"children\": [\n \"add-to-cart-button\",\n \"flex-layout.row#buyNowButton\"\n ]\n },\n \"flex-layout.row#buyNowButton\": {\n \"props\": {\n \"blockClass\": \"buyNowButton\"\n },\n \"children\": [\n \"add-to-cart-button#buyNow\"\n ]\n },\n\n \"add-to-cart-button#buyNow\": {\n \"props\": {\n \"isOneClickBuy\": true,\n \"blockClass\": \"buyNow\"\n }\n },\n \"flex-layout.col#priceSummaryListDesktop\": {\n \"children\": [\n \"product-selling-price#summary\",\n \"product-list-price#summary\"\n ]\n },\n \"stack-layout#summaryListDesktop\": {\n \"children\": [\n \"product-summary-image#summaryListDesktop\",\n \"vtex.product-highlights@2.x:product-highlights#collection\",\n \"modal-trigger#quickview\" // Check quickview.jsonc\n ]\n },\n \"product-summary-image#summaryListDesktop\": {\n \"props\": {\n \"showBadge\": false,\n \"aspectRatio\": \"1:1\",\n \"maxHeight\": 180,\n \"blockClass\": \"summaryListDesktop\"\n }\n },\n \"flex-layout.row#summaryListMobile\": {\n \"props\":{\n \"preserveLayoutOnMobile\": true,\n \"colSizing\": \"auto\",\n \"blockClass\": \"summaryListMobile\",\n \"colGap\": 5\n },\n \"children\": [\n \"stack-layout#summaryListMobile\",\n \"flex-layout.col#summaryDetailsListMobile\"\n ]\n },\n \"stack-layout#summaryListMobile\": {\n \"children\": [\n \"product-summary-image#summaryListMobile\",\n \"vtex.product-highlights@2.x:product-highlights#collection\",\n \"modal-trigger#quickview\" // Check quickview.jsonc\n ]\n },\n \"product-summary-image#summaryListMobile\": {\n \"props\": {\n \"showBadge\": false,\n \"aspectRatio\": \"1:1\",\n \"maxHeight\": 220,\n \"blockClass\": \"summaryListMobile\"\n }\n },\n \"flex-layout.col#summaryDetailsListMobile\": {\n \"props\": {\n \"preventVerticalStretch\": true,\n \"width\": \"grow\",\n \"blockClass\": \"summaryDetailsListMobile\"\n },\n \"children\": [\n \"flex-layout.col#summaryUpDetailsListMobile\",\n \"flex-layout.col#summaryDownDetailsListMobile\"\n ]\n },\n \"flex-layout.col#summaryUpDetailsListMobile\": {\n \"props\": {\n \"preventVerticalStretch\": true,\n \"blockClass\": \"summaryUpDetailsListMobile\"\n },\n \"children\": [\n \"vtex.store-components:product-brand#summaryListMobile\",\n \"product-summary-name#summaryListMobile\",\n \"product-rating-inline\"\n ]\n },\n \"flex-layout.col#summaryDownDetailsListMobile\": {\n \"props\": {\n \"preventVerticalStretch\": true\n },\n \"children\": [\n \"product-selling-price#summary\",\n \"product-installments#summary\"\n ]\n },\n \"vtex.store-components:product-brand#summaryListMobile\": {\n \"props\": {\n \"displayMode\": \"text\",\n \"blockClass\": \"summaryListMobile\"\n }\n },\n \"product-summary-name#summaryListMobile\": {\n \"props\": {\n \"tag\": \"div\",\n \"blockClass\": \"summaryListMobile\"\n }\n }\n}\n\n```" } ]
code_search-demo-theme_dc1107c1
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/store/blocks/product-summary/product-specification-list.jsonc from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"product-specification-group#summary\": {\n \"children\": [\n \"product-specification#summary\"\n ]\n },\n \"product-specification#summary\": {\n \"children\": [\n \"flex-layout.row#summarySpecificationValues\"\n ]\n },\n \"flex-layout.row#summarySpecificationValues\": {\n \"props\": {\n \"preventHorizontalStretch\": true,\n \"colGap\": 3\n },\n \"children\": [\n \"rich-text#summarySpecificationBullet\",\n \"product-specification-values\"\n ]\n },\n \"rich-text#summarySpecificationBullet\": {\n \"props\": {\n \"text\": \"•\",\n \"textColor\": \"c-action-primary\",\n \"blockClass\": \"summarySpecificationBullet\"\n }\n }\n}\n\n```" } ]
code_search-demo-theme_283d005a
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/store/blocks/pdp/product-assembly.jsonc from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"sticky-layout#buy-button\": {\n \"props\": {\n \"position\": \"bottom\"\n },\n \"children\": [\"flex-layout.row#buy-button\"]\n },\n \"product-assembly-options\": {\n \"children\": [\n \"flex-layout.row#product-assembly-options\",\n \"assembly-option-input-values\"\n ]\n },\n \"assembly-option-input-values\": {\n \"props\": {\n \"optionsDisplay\": \"box\"\n }\n },\n \"flex-layout.row#product-assembly-options\": {\n \"props\": {\n \"colGap\": 2,\n \"preserveLayoutOnMobile\": true,\n \"colSizing\": \"auto\"\n },\n \"children\": [\n \"flex-layout.col#product-assembly-image\",\n \"flex-layout.col#product-assembly-middle\",\n \"flex-layout.col#product-assembly-quantity\"\n ]\n },\n \"flex-layout.col#product-assembly-quantity\": {\n \"props\": {\n \"verticalAlign\": \"middle\"\n },\n \"children\": [\n \"assembly-option-item-quantity-selector\"\n ]\n },\n \"flex-layout.col#product-assembly-image\": {\n \"props\": {\n \"marginRight\": 4\n },\n \"children\": [\n \"assembly-option-item-image\"\n ]\n },\n \"flex-layout.col#product-assembly-middle\": {\n \"props\": {\n \"width\": \"grow\",\n \"verticalAlignment\": \"middle\"\n },\n \"children\": [\n \"assembly-option-item-name\",\n \"assembly-option-item-price\",\n \"assembly-option-item-children-description\",\n \"assembly-option-item-customize#first-level\"\n ]\n },\n \"assembly-option-item-customize#first-level\": {\n \"props\": {\n \"buttonProps\": {\n \"collapse\": \"left\"\n }\n },\n \"children\": [\n \"flex-layout.row#item-customize\",\n \"assembly-option-input-values\"\n ]\n },\n \"flex-layout.row#item-customize\": {\n \"props\": {\n \"colGap\": 2,\n \"preserveLayoutOnMobile\": true,\n \"colSizing\": \"auto\"\n },\n \"children\": [\n \"flex-layout.col#product-assembly-image\",\n \"flex-layout.col#item-customize-middle\",\n \"flex-layout.col#item-customize-quantity\"\n ]\n },\n \"flex-layout.col#item-customize-middle\": {\n \"props\": {\n \"width\": \"grow\",\n \"verticalAlignment\": \"middle\"\n },\n \"children\": [\n \"assembly-option-item-name\",\n \"assembly-option-item-price\",\n \"assembly-option-item-children-description\",\n \"assembly-option-item-customize#sec-level\"\n ]\n },\n \"flex-layout.col#item-customize-quantity\": {\n \"props\": {\n \"horizontalAlign\": \"right\",\n \"verticalAlign\": \"middle\"\n },\n \"children\": [\n \"assembly-option-item-quantity-selector\"\n ]\n },\n \"assembly-option-item-customize#sec-level\": {\n \"props\": {\n \"buttonProps\": {\n \"collapse\": \"left\"\n }\n },\n \"children\": [\n \"assembly-option-item-image\",\n \"assembly-option-item-name\",\n \"assembly-option-item-price\",\n \"assembly-option-item-quantity-selector\"\n ]\n }\n}\n\n```" } ]
code_search-demo-theme_24321c03
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/store/blocks/pdp/product-gifts.jsonc from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"product-gifts\": {\n \"props\": {\n \"maxVisibleItems\": {\n \"desktop\": 1,\n \"mobile\": 1\n }\n },\n \"children\": [\"flex-layout.row#product-gifts-text\", \"product-gift-list\"]\n },\n\n \"flex-layout.row#product-gifts-text\": {\n \"props\": {\n \"verticalAlign\": \"middle\",\n \"colSizing\": \"auto\",\n \"preserveLayoutOnMobile\": true\n },\n \"children\": [\n \"rich-text#product-gifts\",\n \"flex-layout.col#product-gifts-text\"\n ]\n },\n \"flex-layout.col#product-gifts-text\": {\n \"children\": [\"modal-trigger#product-gifts\"],\n \"props\": {\n \"verticalAlign\": \"middle\"\n }\n },\n \"rich-text#product-gifts\": {\n \"props\": {\n \"text\": \"**+ GIFT**\"\n }\n },\n \"gift-text\": {\n \"props\": {\n \"blockClass\": \"default\",\n \"text\": \"{exceedingItems, plural, =0{} one {+ # gift} other {+ # gifts}}\"\n }\n },\n \"product-gift-list\": {\n \"children\": [\"flex-layout.row#gift\"]\n },\n \"flex-layout.row#gift\": {\n \"props\": {\n \"fullWidth\": true\n },\n \"children\": [\"flex-layout.col#gift-name-description\", \"gift-image\"]\n },\n \"flex-layout.col#gift-name-description\": {\n \"props\": {\n \"verticalAlign\": \"middle\",\n \"rowGap\": 3\n },\n \"children\": [\"gift-name\", \"gift-description\"]\n },\n\n \"modal-trigger#product-gifts\": {\n \"children\": [\"modal-layout#product-gifts\", \"gift-text\"],\n \"props\": {\n \"blockClass\": \"product-gifts\"\n }\n },\n \"modal-layout#product-gifts\": {\n \"props\": {\n \"blockClass\": \"product-gifts\",\n \"fullScreen\": {\n \"phone\": true,\n \"desktop\": false,\n \"tablet\": false\n }\n },\n \"children\": [\"product-gifts#modal\"]\n },\n\n \"product-gifts#modal\": {\n \"children\": [\"product-gift-list\"]\n }\n}\n\n```" } ]
code_search-demo-theme_8f172b75
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/store/blocks/pdp/product.jsonc from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"store.product\": {\n \"children\": [\n \"flex-layout.row#product-breadcrumb\",\n \"condition-layout.product#availability\",\n \"flex-layout.row#recommendation-cross-sell\",\n \"flex-layout.row#recommendation-similar-items\",\n \"flex-layout.row#description\",\n \"flex-layout.row#specifications-title\",\n \"product-specification-group#table\",\n \"product-reviews\",\n \"product-questions-and-answers\"\n ]\n },\n \"flex-layout.row#specifications-title\": {\n \"children\": [\"rich-text#specifications\"]\n },\n \"rich-text#specifications\": {\n \"props\": {\n \"text\": \"##### Product Specifications\"\n }\n },\n \"flex-layout.row#product-breadcrumb\": {\n \"props\": {\n \"marginTop\": 4\n },\n \"children\": [\"breadcrumb\"]\n },\n \"flex-layout.row#description\": {\n \"props\": {\n \"marginBottom\": 7\n },\n \"children\": [\"product-description\"]\n },\n \"condition-layout.product#availability\": {\n \"props\": {\n \"conditions\": [\n {\n \"subject\": \"isProductAvailable\"\n }\n ],\n \"Then\": \"flex-layout.row#product-main\",\n \"Else\": \"flex-layout.row#product-availability\"\n }\n },\n \"flex-layout.row#product-main\": {\n \"props\": {\n \"colGap\": 7,\n \"rowGap\": 7,\n \"marginTop\": 4,\n \"marginBottom\": 7,\n \"paddingTop\": 7,\n \"paddingBottom\": 7\n },\n \"children\": [\"flex-layout.col#stack\", \"flex-layout.col#right-col\"]\n },\n\n \"stack-layout\": {\n \"props\": {\n \"blockClass\": \"product\"\n },\n \"children\": [\n \"flex-layout.row#product-image\",\n \"product-bookmark\",\n \"product-specification-badges\"\n ]\n },\n\n \"product-specification-badges\": {\n \"props\": {\n \"specificationGroupName\": \"Group\",\n \"specificationName\": \"On Sale\",\n \"visibleWhen\": \"True\",\n \"displayValue\": \"SPECIFICATION_NAME\"\n }\n },\n\n \"flex-layout.col#stack\": {\n \"children\": [\"stack-layout\"],\n \"props\": {\n \"width\": \"60%\",\n \"rowGap\": 0\n }\n },\n \"flex-layout.row#product-image\": {\n \"children\": [\"product-images\"]\n },\n \"product-images\": {\n \"props\": {\n \"aspectRatio\": {\n \"desktop\": \"auto\",\n \"phone\": \"16:9\"\n },\n \"displayThumbnailsArrows\": true\n }\n },\n \"flex-layout.col#right-col\": {\n \"props\": {\n \"preventVerticalStretch\": true,\n \"rowGap\": 0\n },\n \"children\": [\n \"flex-layout.row#product-name\",\n \"product-rating-summary\",\n \"flex-layout.row#list-price-savings\",\n \"flex-layout.row#selling-price\",\n \"product-installments\",\n \"product-separator\",\n \"product-identifier.product\",\n \"sku-selector\",\n \"product-quantity\",\n \"product-assembly-options\",\n \"product-gifts\",\n \"flex-layout.row#buy-button\",\n \"availability-subscriber\",\n \"shipping-simulator\",\n \"share#default\"\n ]\n },\n\n \"flex-layout.row#product-name\": {\n \"props\": {\n \"marginBottom\": 3\n },\n \"children\": [\"vtex.store-components:product-name\"]\n },\n\n \"sku-selector\": {\n \"props\": {\n \"variationsSpacing\": 3,\n \"showValueNameForImageVariation\": true\n }\n },\n\n \"flex-layout.row#buy-button\": {\n \"props\": {\n \"marginTop\": 4,\n \"marginBottom\": 7\n },\n \"children\": [\"add-to-cart-button\"]\n },\n\n \"flex-layout.row#product-availability\": {\n \"props\": {\n \"colGap\": 7,\n \"marginTop\": 4,\n \"marginBottom\": 7,\n \"paddingTop\": 7\n },\n \"children\": [\n \"flex-layout.col#stack\",\n \"flex-layout.col#right-col-availability\"\n ]\n },\n \"flex-layout.col#right-col-availability\": {\n \"props\": {\n \"preventVerticalStretch\": true,\n \"rowGap\": 0,\n \"blockClass\": \"info-availability\"\n },\n \"children\": [\n \"flex-layout.row#product-name\",\n \"product-identifier.product\",\n \"sku-selector\",\n \"flex-layout.row#availability\"\n ]\n },\n \"flex-layout.row#availability\": {\n \"props\": {\n \"blockClass\": \"message-availability\"\n },\n \"children\": [\"availability-subscriber\"]\n },\n\n \"share#default\": {\n \"props\": {\n \"social\": {\n \"Facebook\": true,\n \"WhatsApp\": true,\n \"Twitter\": false,\n \"Pinterest\": true\n }\n }\n }\n}\n\n```" } ]
code_search-demo-theme_0a520c46
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/store/blocks/pdp/product-specifications-table.jsonc from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"product-specification-group#table\": {\n \"children\": [\n \"flex-layout.row#spec-group\"\n ]\n },\n \"flex-layout.row#spec-group\": {\n \"props\": {\n \"blockClass\": \"productSpecificationGroup\"\n },\n \"children\": [\n \"flex-layout.col#spec-group\"\n ]\n },\n \"flex-layout.col#spec-group\": {\n \"children\": [\n \"flex-layout.row#spec-group-name\",\n \"product-specification\"\n ]\n },\n \"flex-layout.row#spec-group-name\": {\n \"props\": {\n \"blockClass\": \"productSpecificationGroupName\"\n },\n \"children\": [\n \"product-specification-text#group\"\n ]\n },\n \"product-specification\": {\n \"children\": [\n \"flex-layout.row#spec-item\"\n ]\n },\n \"flex-layout.row#spec-item\": {\n \"props\": {\n \"blockClass\": \"productSpecification\"\n },\n \"children\": [\n \"flex-layout.col#spec-name\",\n \"flex-layout.col#spec-value\"\n ]\n },\n \"flex-layout.col#spec-name\": {\n \"props\": {\n \"blockClass\": \"productSpecificationName\",\n \"width\": {\n \"mobile\": \"50%\",\n \"desktop\": \"25%\"\n }\n },\n \"children\": [\n \"product-specification-text#specification\"\n ]\n },\n \"flex-layout.col#spec-value\": {\n \"props\": {\n \"blockClass\": \"productSpecificationValue\"\n },\n \"children\": [\n \"product-specification-values\"\n ]\n },\n \"product-specification-values\": {\n \"children\": [\n \"product-specification-text#value\"\n ]\n },\n \"product-specification-text#group\": {\n \"props\": {\n \"message\": \"{groupName}\"\n }\n },\n \"product-specification-text#specification\": {\n \"props\": {\n \"message\": \"{specificationName}\"\n }\n },\n \"product-specification-text#value\": {\n \"props\": {\n \"message\": \"{specificationValue}\"\n }\n }\n}\n\n```" } ]
code_search-demo-theme_0885543d
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/store/blocks/header/category-menu.json from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vtex.menu@2.x:menu#category-menu\": {\n \"props\": {\n \"experimentalOptimizeRendering\": true\n },\n \"children\": [\n \"menu-item#category-apparel\",\n \"menu-item#category-home\",\n \"menu-item#more\"\n ]\n },\n \"menu-item#category-apparel\": {\n \"props\": {\n \"id\": \"menu-item-category-apparel\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/apparel---accessories/\",\n \"noFollow\": false,\n \"tagTitle\": \"Apparel & Accessories\",\n \"text\": \"Apparel & Accessories\"\n }\n },\n \"blocks\": [\n \"vtex.menu@2.x:submenu#category-apparel\"\n ]\n },\n \"vtex.menu@2.x:submenu#category-apparel\": {\n \"props\": {\n \"width\": \"auto\"\n },\n \"children\": [\n \"vtex.menu@2.x:menu#category-apparel\"\n ]\n },\n \"vtex.menu@2.x:menu#category-apparel\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#category-apparel-clothing\",\n \"menu-item#category-apparel-accessories\",\n \"menu-item#category-apparel-eyeglasses\"\n ]\n },\n \"menu-item#category-apparel-clothing\": {\n \"props\": {\n \"id\": \"menu-item-category-apparel-clothing\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/apparel---accessories/clothing/\",\n \"noFollow\": false,\n \"tagTitle\": \"Clothing\",\n \"text\": \"Clothing\"\n }\n }\n },\n \"menu-item#category-apparel-accessories\": {\n \"props\": {\n \"id\": \"menu-item-category-apparel-accessories\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/apparel---accessories/accessories/\",\n \"noFollow\": false,\n \"tagTitle\": \"Accessories\",\n \"text\": \"Accessories\"\n }\n }\n },\n \"menu-item#category-apparel-eyeglasses\": {\n \"props\": {\n \"id\": \"menu-item-category-apparel-eyeglasses\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/apparel---accessories/eyeglasses/\",\n \"noFollow\": false,\n \"tagTitle\": \"Eyeglasses\",\n \"text\": \"Eyeglasses\"\n }\n }\n },\n \"menu-item#category-home\": {\n \"props\": {\n \"id\": \"menu-item-category-home\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/home---decor/\",\n \"noFollow\": false,\n \"tagTitle\": \"Home & Decor\",\n \"text\": \"Home & Decor\"\n }\n }\n },\n \"menu-item#more\": {\n \"props\": {\n \"id\": \"menu-item-custom-sale\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"#\",\n \"noFollow\": true,\n \"tagTitle\": \"More\",\n \"text\": \"More\"\n }\n },\n \"blocks\": [\n \"vtex.menu@2.x:submenu#more\"\n ]\n },\n \"vtex.menu@2.x:submenu#more\": {\n \"props\": {\n \"width\": \"100%\"\n },\n \"children\": [\n \"flex-layout.row#menu-more\"\n ]\n },\n \"flex-layout.row#menu-more\": {\n \"children\": [\n \"flex-layout.col#menu-more-1\",\n \"flex-layout.col#menu-more-2\"\n ]\n },\n \"flex-layout.col#menu-more-1\": {\n \"children\": [\n \"vtex.menu@2.x:menu#more\"\n ]\n },\n \"flex-layout.col#menu-more-2\": {\n \"children\": [\n \"info-card#home\"\n ]\n },\n \"vtex.menu@2.x:menu#more\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#about-us\",\n \"menu-item#faq\"\n ]\n },\n \"menu-item#about-us\": {\n \"props\": {\n \"id\": \"menu-item-about-us\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/about-us\",\n \"noFollow\": true,\n \"tagTitle\": \"About us\",\n \"text\": \"About us\"\n }\n }\n },\n \"menu-item#faq\": {\n \"props\": {\n \"id\": \"menu-item-faq\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/faq\",\n \"noFollow\": true,\n \"tagTitle\": \"FAQ\",\n \"text\": \"FAQ\"\n }\n }\n },\n \"menu-item#contact-us\": {\n \"props\": {\n \"id\": \"menu-item-contact-us\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/contact-us\",\n \"noFollow\": true,\n \"tagTitle\": \"Contact Us\",\n \"text\": \"Contact Us\"\n }\n }\n }\n}\n\n```" } ]
code_search-demo-theme_5099a0a1
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/store/blocks/header/header.jsonc from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"header\": {\n \"blocks\": [\"header-layout.desktop\", \"header-layout.mobile\"]\n },\n \"header.full\": {\n \"blocks\": [\"header-layout.desktop\", \"header-layout.mobile\"]\n },\n \"header-layout.desktop\": {\n \"children\": [\n \"flex-layout.row#1-desktop\",\n \"flex-layout.row#3-desktop\",\n \"sticky-layout#4-desktop\"\n ]\n },\n\n \"flex-layout.row#1-desktop\": {\n \"children\": [\"telemarketing\"],\n \"props\": {\n \"fullWidth\": true\n }\n },\n\n \"flex-layout.row#3-desktop\": {\n \"props\": {\n \"blockClass\": \"menu-link\",\n \"horizontalAlign\": \"center\",\n \"preventHorizontalStretch\": true,\n \"preventVerticalStretch\": true,\n \"fullWidth\": true\n },\n \"children\": [\n \"vtex.menu@2.x:menu#websites\",\n \"flex-layout.col#spacer\",\n \"vtex.menu@2.x:menu#institutional\"\n ]\n },\n \"flex-layout.col#spacer\": {\n \"props\": {\n \"width\": \"grow\"\n }\n },\n \"sticky-layout#4-desktop\": {\n \"props\": {\n \"blockClass\": \"sticky-header\"\n },\n \"children\": [\"flex-layout.row#4-desktop\"]\n },\n \"flex-layout.row#4-desktop\": {\n \"props\": {\n \"blockClass\": \"main-header\",\n \"horizontalAlign\": \"center\",\n \"verticalAlign\": \"center\",\n \"preventHorizontalStretch\": true,\n \"preventVerticalStretch\": true,\n \"fullWidth\": true\n },\n \"children\": [\n \"flex-layout.col#logo-desktop\",\n \"flex-layout.col#category-menu\",\n \"flex-layout.col#spacer\",\n \"search-bar\",\n \"locale-switcher\",\n \"login\",\n \"minicart.v2\"\n ]\n },\n \"flex-layout.col#logo-desktop\": {\n \"props\": {\n \"verticalAlign\": \"middle\"\n },\n \"children\": [\"logo#desktop\"]\n },\n \"flex-layout.col#category-menu\": {\n \"props\": {\n \"verticalAlign\": \"middle\"\n },\n \"children\": [\"vtex.menu@2.x:menu#category-menu\"]\n },\n \"logo#desktop\": {\n \"props\": {\n \"title\": \"Logo\",\n \"href\": \"/\",\n \"url\": \"https://storecomponents.vteximg.com.br/arquivos/store-theme-logo.png\",\n \"width\": \"180\",\n \"height\": \"12\"\n }\n },\n \"header-layout.mobile\": {\n \"children\": [\"sticky-layout#1-mobile\"]\n },\n \"sticky-layout#1-mobile\": {\n \"children\": [\"flex-layout.row#1-mobile\"]\n },\n \"flex-layout.row#1-mobile\": {\n \"children\": [\n \"drawer\",\n \"logo#mobile\",\n \"flex-layout.col#spacer\",\n \"login\",\n \"minicart.v2\"\n ],\n \"props\": {\n \"blockClass\": \"main-header-mobile\",\n \"preventHorizontalStretch\": true,\n \"preserveLayoutOnMobile\": true,\n \"fullWidth\": true\n }\n },\n \"drawer\": {\n \"children\": [\"menu#drawer\"]\n },\n\n \"menu#drawer\": {\n \"children\": [\n \"menu-item#category-apparel\",\n \"menu-item#category-home\",\n \"menu-item#more\"\n ],\n \"props\": {\n \"orientation\": \"vertical\"\n }\n },\n\n \"logo#mobile\": {\n \"props\": {\n \"title\": \"Logo\",\n \"href\": \"/\",\n \"url\": \"https://storecomponents.vteximg.com.br/arquivos/store-theme-logo-mobile.png\",\n \"width\": \"77.5\",\n \"height\": \"27.5\"\n }\n },\n\n // Custom\n\n \"search-bar\": {\n \"blocks\": [\"autocomplete-result-list.v2\"],\n \"props\": {\n \"openAutocompleteOnFocus\": true\n }\n }\n}\n\n```" } ]
code_search-demo-theme_5dd6c95e
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of search-demo-theme/store/blocks/header/top-menu.json from the search-demo-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vtex.menu@2.x:menu#websites\": {\n \"children\": [\n \"menu-item#shop\",\n \"menu-item#about-us\"\n ]\n },\n \"menu-item#shop\": {\n \"props\": {\n \"id\": \"menu-item-shop\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"#\",\n \"noFollow\": false,\n \"tagTitle\": \"Shop\",\n \"text\": \"Shop\"\n }\n }\n },\n \"vtex.menu@2.x:menu#institutional\": {\n \"children\": [\n \"menu-item#vtex-website\"\n ]\n },\n \"menu-item#vtex-website\": {\n \"props\": {\n \"id\": \"menu-item-vtex-website\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"external\",\n \"href\": \"http://vtex.com\",\n \"noFollow\": false,\n \"tagTitle\": \"visit vtex.com\",\n \"text\": \"visit vtex.com\"\n }\n }\n }\n}\n\n```" } ]
code_admin-list_09231b7e
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-list/messages/nl.json from the admin-list VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/section.name\": \"Cadeaulijst\",\n \"admin/subsection.name\": \"Lijstbeheer\",\n \"admin/interface.name\": \"Cadeaulijst app-beheer\",\n \"admin/interface.title.user\": \"Alle eigenaren\",\n \"admin/interface.columns.title\": \"Titel\",\n \"admin/interface.columns.user\": \"Gebruiker\",\n \"admin/interface.columns.validate\": \"Datum evenement\",\n \"admin/interface.columns.bought\": \"Totaal krediet\",\n \"admin/interface.columns.converted\": \"Gegenereerd in cadeaubon\",\n \"admin/interface.columns.status\": \"Status\",\n \"admin/interface.columns.owner\": \"Eigenaar\",\n \"admin/interface.columns.lists\": \"Lijsten\",\n \"admin/interface.active\": \"Ingeschakeld\",\n \"admin/interface.disabled\": \"Uitgeschakeld\",\n \"admin/interface.search.user\": \"Zoeken op e-mail\",\n \"admin/interface.search.list\": \"Zoeken op titel\",\n \"admin/interface.pagination.preposition\": \"van\",\n \"admin/interface.pagination.subject\": \"resultaten\",\n \"admin/interface.pagination.previous\": \"Vorige\",\n \"admin/interface.pagination.next\": \"Volgende\",\n \"admin/interface.totalizer.lists.created\": \"Lijsten\",\n \"admin/interface.totalizer.bought\": \"Totaal krediet\",\n \"admin/interface.totalizer.converted\": \"Gegenereerd in cadeaubon\",\n \"admin/interface.totalizer.info\": \"Dit veld verandert niet wanneer een filter wordt toegepast\",\n \"admin/interface.filter.date\": \"Lijst aanmaakdatum\",\n \"admin/interface.filter.date.today\": \"Vandaag\",\n \"admin/interface.filter.date.yesterday\": \"Gisteren\",\n \"admin/interface.filter.date.this.week\": \"Deze week\",\n \"admin/interface.filter.date.last.week\": \"Vorige week\",\n \"admin/interface.filter.date.this.month\": \"Deze maand\",\n \"admin/interface.filter.date.last.month\": \"Vorige maand\",\n \"admin/interface.filter.date.this.year\": \"Dit jaar\",\n \"admin/interface.filter.date.last.year\": \"Afgelopen jaar\",\n \"admin/interface.filter.date.customizer\": \"Aangepast\",\n \"admin/interface.filter.status\": \"Status\",\n \"admin/interface.filter.status.active\": \"Ingeschakeld\",\n \"admin/interface.filter.status.disabled\": \"Uitgeschakeld\",\n \"admin/interface.modal.date.initial\": \"Startdatum\",\n \"admin/interface.modal.date.final\": \"Einddatum\",\n \"admin/interface.modal.title\": \"Zoekopdracht op datum aanpassen\",\n \"admin/interface.modal.aria.label\": \"Datum aanpassing modus\",\n \"admin/interface.modal.confirm\": \"Bevestig\",\n \"admin/interface.columns.tooltip.user\": \"Alle lijsten van deze gebruiker bekijken\",\n \"admin/interface.columns.tooltip.list\": \"Lijstpagina bekijken\",\n \"admin/interface.empty\": \"Tabel leegmaken\"\n}\n\n```" } ]
code_admin-list_6fd578a0
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-list/messages/pt.json from the admin-list VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/section.name\": \"Lista de presentes\",\n \"admin/subsection.name\": \"Gerenciamento de listas\",\n \"admin/interface.name\": \"Gerenciamento do app Lista de presentes\",\n \"admin/interface.title.user\": \"Todos os proprietários\",\n \"admin/interface.columns.title\": \"Título\",\n \"admin/interface.columns.user\": \"Usuário\",\n \"admin/interface.columns.validate\": \"Data do evento\",\n \"admin/interface.columns.bought\": \"Total de créditos\",\n \"admin/interface.columns.converted\": \"Gerados em vale-presente\",\n \"admin/interface.columns.status\": \"Status\",\n \"admin/interface.columns.owner\": \"Proprietário\",\n \"admin/interface.columns.lists\": \"Listas\",\n \"admin/interface.active\": \"Ativa\",\n \"admin/interface.disabled\": \"Desativada\",\n \"admin/interface.search.user\": \"Buscar por email\",\n \"admin/interface.search.list\": \"Buscar por título\",\n \"admin/interface.pagination.preposition\": \"de\",\n \"admin/interface.pagination.subject\": \"resultados\",\n \"admin/interface.pagination.previous\": \"Anterior\",\n \"admin/interface.pagination.next\": \"Próxima\",\n \"admin/interface.totalizer.lists.created\": \"Listas\",\n \"admin/interface.totalizer.bought\": \"Total de créditos\",\n \"admin/interface.totalizer.converted\": \"Gerados em vale-presente\",\n \"admin/interface.totalizer.info\": \"Esse campo não é alterado ao aplicar filtros\",\n \"admin/interface.filter.date\": \"Data da criação da lista\",\n \"admin/interface.filter.date.today\": \"Hoje\",\n \"admin/interface.filter.date.yesterday\": \"Ontem\",\n \"admin/interface.filter.date.this.week\": \"Esta semana\",\n \"admin/interface.filter.date.last.week\": \"Semana passada\",\n \"admin/interface.filter.date.this.month\": \"Este mês\",\n \"admin/interface.filter.date.last.month\": \"Mês passado\",\n \"admin/interface.filter.date.this.year\": \"Este ano\",\n \"admin/interface.filter.date.last.year\": \"Ano passado\",\n \"admin/interface.filter.date.customizer\": \"Personalizado\",\n \"admin/interface.filter.status\": \"Status\",\n \"admin/interface.filter.status.active\": \"Ativada\",\n \"admin/interface.filter.status.disabled\": \"Expirada\",\n \"admin/interface.modal.date.initial\": \"Data inicial\",\n \"admin/interface.modal.date.final\": \"Data final\",\n \"admin/interface.modal.title\": \"Personalizar busca por data\",\n \"admin/interface.modal.aria.label\": \"Modal de personalizaçao da data\",\n \"admin/interface.modal.confirm\": \"Confirmar\",\n \"admin/interface.columns.tooltip.user\": \"Ver todas as listas desse usuário\",\n \"admin/interface.columns.tooltip.list\": \"Ver página da lista\",\n \"admin/interface.empty\": \"Tabela vazia\"\n}\n\n```" } ]
code_admin-list_09715ddc
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-list/messages/en.json from the admin-list VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/section.name\": \"Gift List\",\n \"admin/subsection.name\": \"List management\",\n \"admin/interface.name\": \"Gift List App Management\",\n \"admin/interface.title.user\": \"All owners\",\n \"admin/interface.columns.title\": \"Title\",\n \"admin/interface.columns.user\": \"User\",\n \"admin/interface.columns.validate\": \"Event Date\",\n \"admin/interface.columns.bought\": \"Total Credit\",\n \"admin/interface.columns.converted\": \"Generated in Gift Card\",\n \"admin/interface.columns.status\": \"Status\",\n \"admin/interface.columns.owner\": \"Owner\",\n \"admin/interface.columns.lists\": \"Lists\",\n \"admin/interface.active\": \"Enabled\",\n \"admin/interface.disabled\": \"Disabled\",\n \"admin/interface.search.user\": \"Search by email\",\n \"admin/interface.search.list\": \"Search by title\",\n \"admin/interface.pagination.preposition\": \"of\",\n \"admin/interface.pagination.subject\": \"results\",\n \"admin/interface.pagination.previous\": \"Previous\",\n \"admin/interface.pagination.next\": \"Next\",\n \"admin/interface.totalizer.lists.created\": \"Lists\",\n \"admin/interface.totalizer.bought\": \"Total credit\",\n \"admin/interface.totalizer.converted\": \"Generated in gift card\",\n \"admin/interface.totalizer.info\": \"This field does not change when a filter is applied\",\n \"admin/interface.filter.date\": \"List creation date\",\n \"admin/interface.filter.date.today\": \"Today\",\n \"admin/interface.filter.date.yesterday\": \"Yesterday\",\n \"admin/interface.filter.date.this.week\": \"This week\",\n \"admin/interface.filter.date.last.week\": \"Last week\",\n \"admin/interface.filter.date.this.month\": \"This month\",\n \"admin/interface.filter.date.last.month\": \"Last month\",\n \"admin/interface.filter.date.this.year\": \"This year\",\n \"admin/interface.filter.date.last.year\": \"Last year\",\n \"admin/interface.filter.date.customizer\": \"Customized\",\n \"admin/interface.filter.status\": \"Status\",\n \"admin/interface.filter.status.active\": \"Enabled\",\n \"admin/interface.filter.status.disabled\": \"Disabled\",\n \"admin/interface.modal.date.initial\": \"Start date\",\n \"admin/interface.modal.date.final\": \"End date\",\n \"admin/interface.modal.title\": \"Customize search by date\",\n \"admin/interface.modal.aria.label\": \"Date customization modal\",\n \"admin/interface.modal.confirm\": \"Confirm\",\n \"admin/interface.columns.tooltip.user\": \"View all lists for this user\",\n \"admin/interface.columns.tooltip.list\": \"View list page\",\n \"admin/interface.empty\": \"Empty table\"\n}\n\n```" } ]
code_admin-list_e29e43d5
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-list/messages/it.json from the admin-list VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/section.name\": \"Liste regali\",\n \"admin/subsection.name\": \"Gestione delle liste\",\n \"admin/interface.name\": \"Gestione dell'app \\\"Liste regali\\\"\",\n \"admin/interface.title.user\": \"Tutti i proprietari\",\n \"admin/interface.columns.title\": \"Titolo\",\n \"admin/interface.columns.user\": \"Utente\",\n \"admin/interface.columns.validate\": \"Data dell'evento\",\n \"admin/interface.columns.bought\": \"Crediti totali\",\n \"admin/interface.columns.converted\": \"Generati in buoni regalo\",\n \"admin/interface.columns.status\": \"Stato\",\n \"admin/interface.columns.owner\": \"Proprietario\",\n \"admin/interface.columns.lists\": \"Liste\",\n \"admin/interface.active\": \"Attiva\",\n \"admin/interface.disabled\": \"Inattiva\",\n \"admin/interface.search.user\": \"Cerca per email\",\n \"admin/interface.search.list\": \"Cerca per titolo\",\n \"admin/interface.pagination.preposition\": \"di\",\n \"admin/interface.pagination.subject\": \"risultati\",\n \"admin/interface.pagination.previous\": \"Indietro\",\n \"admin/interface.pagination.next\": \"Avanti\",\n \"admin/interface.totalizer.lists.created\": \"Liste\",\n \"admin/interface.totalizer.bought\": \"Crediti totali\",\n \"admin/interface.totalizer.converted\": \"Generati in buoni regalo\",\n \"admin/interface.totalizer.info\": \"Questo campo non cambia quando viene applicato un filtro\",\n \"admin/interface.filter.date\": \"Data di creazione della lista\",\n \"admin/interface.filter.date.today\": \"Oggi\",\n \"admin/interface.filter.date.yesterday\": \"Ieri\",\n \"admin/interface.filter.date.this.week\": \"Questa settimana\",\n \"admin/interface.filter.date.last.week\": \"Ultima settimana\",\n \"admin/interface.filter.date.this.month\": \"Questo mese\",\n \"admin/interface.filter.date.last.month\": \"Ultimo mese\",\n \"admin/interface.filter.date.this.year\": \"Quest'anno\",\n \"admin/interface.filter.date.last.year\": \"Ultimo anno\",\n \"admin/interface.filter.date.customizer\": \"Personalizzato\",\n \"admin/interface.filter.status\": \"Stato\",\n \"admin/interface.filter.status.active\": \"Attivo\",\n \"admin/interface.filter.status.disabled\": \"Inattivo\",\n \"admin/interface.modal.date.initial\": \"Data di inizio\",\n \"admin/interface.modal.date.final\": \"Data di fine\",\n \"admin/interface.modal.title\": \"Personalizza ricerca per data\",\n \"admin/interface.modal.aria.label\": \"Modale di personalizzazione della data\",\n \"admin/interface.modal.confirm\": \"Conferma\",\n \"admin/interface.columns.tooltip.user\": \"Visualizza tutte le liste di questo utente\",\n \"admin/interface.columns.tooltip.list\": \"Visualizza pagina della lista\",\n \"admin/interface.empty\": \"Tabella vuota\"\n}\n\n```" } ]
code_admin-list_fd3e68cf
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-list/messages/fr.json from the admin-list VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/section.name\": \"Liste de cadeau\",\n \"admin/subsection.name\": \"Gestion des listes\",\n \"admin/interface.name\": \"Gestion de l'appli pour la liste des cadeaux\",\n \"admin/interface.title.user\": \"Tous les propriétaires\",\n \"admin/interface.columns.title\": \"Titre\",\n \"admin/interface.columns.user\": \"Utilisateur\",\n \"admin/interface.columns.validate\": \"Date de l’évènement\",\n \"admin/interface.columns.bought\": \"Crédit total\",\n \"admin/interface.columns.converted\": \"Généré en carte cadeau\",\n \"admin/interface.columns.status\": \"Statut\",\n \"admin/interface.columns.owner\": \"Propriétaire\",\n \"admin/interface.columns.lists\": \"Listes\",\n \"admin/interface.active\": \"Activé\",\n \"admin/interface.disabled\": \"Désactivé\",\n \"admin/interface.search.user\": \"Recherche par adresse email\",\n \"admin/interface.search.list\": \"Recherche par titre\",\n \"admin/interface.pagination.preposition\": \"le\",\n \"admin/interface.pagination.subject\": \"résultats\",\n \"admin/interface.pagination.previous\": \"Précédent\",\n \"admin/interface.pagination.next\": \"Suivant\",\n \"admin/interface.totalizer.lists.created\": \"Listes\",\n \"admin/interface.totalizer.bought\": \"Crédit total\",\n \"admin/interface.totalizer.converted\": \"Généré en carte cadeau\",\n \"admin/interface.totalizer.info\": \"Ce champ ne change pas quand un filtre est appliqué\",\n \"admin/interface.filter.date\": \"Date de création de la liste\",\n \"admin/interface.filter.date.today\": \"Aujourd’hui\",\n \"admin/interface.filter.date.yesterday\": \"Hier\",\n \"admin/interface.filter.date.this.week\": \"Cette semaine\",\n \"admin/interface.filter.date.last.week\": \"La semaine dernière\",\n \"admin/interface.filter.date.this.month\": \"Ce mois-ci\",\n \"admin/interface.filter.date.last.month\": \"Le mois dernier\",\n \"admin/interface.filter.date.this.year\": \"Cette année\",\n \"admin/interface.filter.date.last.year\": \"L'an dernier\",\n \"admin/interface.filter.date.customizer\": \"Personnalisé\",\n \"admin/interface.filter.status\": \"Statut\",\n \"admin/interface.filter.status.active\": \"Activé\",\n \"admin/interface.filter.status.disabled\": \"Désactivé\",\n \"admin/interface.modal.date.initial\": \"Date de début\",\n \"admin/interface.modal.date.final\": \"Date de fin\",\n \"admin/interface.modal.title\": \"Personnaliser la recherche par date\",\n \"admin/interface.modal.aria.label\": \"Modal de personnalisation de la date\",\n \"admin/interface.modal.confirm\": \"Confirmer\",\n \"admin/interface.columns.tooltip.user\": \"Afficher toutes les listes pour cet utilisateur\",\n \"admin/interface.columns.tooltip.list\": \"Voir la page de la liste\",\n \"admin/interface.empty\": \"Tableau vide\"\n}\n\n```" } ]
code_admin-list_b9260371
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-list/messages/bg.json from the admin-list VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/section.name\": \"Списък с подаръци\",\n \"admin/subsection.name\": \"Управление на списък\",\n \"admin/interface.name\": \"Управление на приложение за списъци с подаръци\",\n \"admin/interface.title.user\": \"Всички собственици\",\n \"admin/interface.columns.title\": \"Заглавие\",\n \"admin/interface.columns.user\": \"Потребител\",\n \"admin/interface.columns.validate\": \"Дата на събитието\",\n \"admin/interface.columns.bought\": \"Общо кредит\",\n \"admin/interface.columns.converted\": \"Генерирано в подаръчна карта\",\n \"admin/interface.columns.status\": \"Статус\",\n \"admin/interface.columns.owner\": \"Собственик\",\n \"admin/interface.columns.lists\": \"Списъци\",\n \"admin/interface.active\": \"Активирано\",\n \"admin/interface.disabled\": \"Деактивирано\",\n \"admin/interface.search.user\": \"Търсене по имейл\",\n \"admin/interface.search.list\": \"Търсене по заглавие\",\n \"admin/interface.pagination.preposition\": \"от\",\n \"admin/interface.pagination.subject\": \"резултата\",\n \"admin/interface.pagination.previous\": \"Назад\",\n \"admin/interface.pagination.next\": \"Следващ\",\n \"admin/interface.totalizer.lists.created\": \"Списъци\",\n \"admin/interface.totalizer.bought\": \"Общо кредит\",\n \"admin/interface.totalizer.converted\": \"Генерирано в подаръчна карта\",\n \"admin/interface.totalizer.info\": \"Това поле не се променя, когато бъде приложен филтър\",\n \"admin/interface.filter.date\": \"Дата на създаване на списъка\",\n \"admin/interface.filter.date.today\": \"Днес\",\n \"admin/interface.filter.date.yesterday\": \"Вчера\",\n \"admin/interface.filter.date.this.week\": \"Тази седмица\",\n \"admin/interface.filter.date.last.week\": \"Миналата седмица\",\n \"admin/interface.filter.date.this.month\": \"Този месец\",\n \"admin/interface.filter.date.last.month\": \"Последния месец\",\n \"admin/interface.filter.date.this.year\": \"Тази година\",\n \"admin/interface.filter.date.last.year\": \"Миналата година\",\n \"admin/interface.filter.date.customizer\": \"Персонализирано\",\n \"admin/interface.filter.status\": \"Статус\",\n \"admin/interface.filter.status.active\": \"Активирано\",\n \"admin/interface.filter.status.disabled\": \"Деактивирано\",\n \"admin/interface.modal.date.initial\": \"Начална дата\",\n \"admin/interface.modal.date.final\": \"Крайна дата\",\n \"admin/interface.modal.title\": \"Персонализиране на търсенето по дата\",\n \"admin/interface.modal.aria.label\": \"Модален прозорец за персонализиране на дата\",\n \"admin/interface.modal.confirm\": \"Потвърждаване\",\n \"admin/interface.columns.tooltip.user\": \"Преглед на всички списъци за този потребител\",\n \"admin/interface.columns.tooltip.list\": \"Преглед на страницата със списъка\",\n \"admin/interface.empty\": \"Празна таблица\"\n}\n\n```" } ]
code_admin-list_2fa86492
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-list/messages/ro.json from the admin-list VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/section.name\": \"Listă de cadouri\",\n \"admin/subsection.name\": \"Gestionare liste\",\n \"admin/interface.name\": \"Gestionare Gift List App (aplicație listă de cadouri)\",\n \"admin/interface.title.user\": \"Toți proprietarii\",\n \"admin/interface.columns.title\": \"Titlu\",\n \"admin/interface.columns.user\": \"Utilizator\",\n \"admin/interface.columns.validate\": \"Dată eveniment\",\n \"admin/interface.columns.bought\": \"Credit total\",\n \"admin/interface.columns.converted\": \"Generat în card cadou\",\n \"admin/interface.columns.status\": \"Status\",\n \"admin/interface.columns.owner\": \"Proprietar\",\n \"admin/interface.columns.lists\": \"Liste\",\n \"admin/interface.active\": \"Activat\",\n \"admin/interface.disabled\": \"Dezactivat\",\n \"admin/interface.search.user\": \"Caută după e-mail\",\n \"admin/interface.search.list\": \"Caută după titlu\",\n \"admin/interface.pagination.preposition\": \"din\",\n \"admin/interface.pagination.subject\": \"rezultate\",\n \"admin/interface.pagination.previous\": \"Anterioară\",\n \"admin/interface.pagination.next\": \"Următoarea\",\n \"admin/interface.totalizer.lists.created\": \"Liste\",\n \"admin/interface.totalizer.bought\": \"Credit total\",\n \"admin/interface.totalizer.converted\": \"Generat în card cadou\",\n \"admin/interface.totalizer.info\": \"Acest câmp nu se modifică atunci când se aplică un filtru\",\n \"admin/interface.filter.date\": \"Data creării listei\",\n \"admin/interface.filter.date.today\": \"Azi\",\n \"admin/interface.filter.date.yesterday\": \"Ieri\",\n \"admin/interface.filter.date.this.week\": \"Săptămâna asta\",\n \"admin/interface.filter.date.last.week\": \"Săptămâna trecută\",\n \"admin/interface.filter.date.this.month\": \"Luna asta\",\n \"admin/interface.filter.date.last.month\": \"Luna trecută\",\n \"admin/interface.filter.date.this.year\": \"Anul ăsta\",\n \"admin/interface.filter.date.last.year\": \"Ultimul an\",\n \"admin/interface.filter.date.customizer\": \"Personalizat\",\n \"admin/interface.filter.status\": \"Stare\",\n \"admin/interface.filter.status.active\": \"Activat\",\n \"admin/interface.filter.status.disabled\": \"Dezactivat\",\n \"admin/interface.modal.date.initial\": \"Data de început\",\n \"admin/interface.modal.date.final\": \"Data de sfârșit\",\n \"admin/interface.modal.title\": \"Personalizează căutarea după dată\",\n \"admin/interface.modal.aria.label\": \"Modal personalizare dată\",\n \"admin/interface.modal.confirm\": \"Confirmă\",\n \"admin/interface.columns.tooltip.user\": \"Vezi toate listele pentru acest utilizator\",\n \"admin/interface.columns.tooltip.list\": \"Vezi pagina listei\",\n \"admin/interface.empty\": \"Tabel gol\"\n}\n\n```" } ]
code_admin-list_0288548e
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-list/messages/ko.json from the admin-list VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/section.name\": \"선물 목록\",\n \"admin/subsection.name\": \"목록 관리\",\n \"admin/interface.name\": \"선물 목록 앱 관리\",\n \"admin/interface.title.user\": \"모든 소유자\",\n \"admin/interface.columns.title\": \"제목\",\n \"admin/interface.columns.user\": \"사용자\",\n \"admin/interface.columns.validate\": \"이벤트 날짜\",\n \"admin/interface.columns.bought\": \"총 크레딧\",\n \"admin/interface.columns.converted\": \"기프트 카드에서 생성됨\",\n \"admin/interface.columns.status\": \"상태\",\n \"admin/interface.columns.owner\": \"소유자\",\n \"admin/interface.columns.lists\": \"목록\",\n \"admin/interface.active\": \"활성화됨\",\n \"admin/interface.disabled\": \"비활성화됨\",\n \"admin/interface.search.user\": \"이메일로 검색\",\n \"admin/interface.search.list\": \"제목으로 검색\",\n \"admin/interface.pagination.preposition\": \"/\",\n \"admin/interface.pagination.subject\": \"결과\",\n \"admin/interface.pagination.previous\": \"이전\",\n \"admin/interface.pagination.next\": \"다음\",\n \"admin/interface.totalizer.lists.created\": \"목록\",\n \"admin/interface.totalizer.bought\": \"총 크레딧\",\n \"admin/interface.totalizer.converted\": \"기프트 카드에서 생성됨\",\n \"admin/interface.totalizer.info\": \"이 필드는 필터가 적용될 때 변경되지 않습니다.\",\n \"admin/interface.filter.date\": \"목록 생성 날짜\",\n \"admin/interface.filter.date.today\": \"오늘\",\n \"admin/interface.filter.date.yesterday\": \"어제\",\n \"admin/interface.filter.date.this.week\": \"이번주\",\n \"admin/interface.filter.date.last.week\": \"지난 주\",\n \"admin/interface.filter.date.this.month\": \"이번 달\",\n \"admin/interface.filter.date.last.month\": \"지난 달\",\n \"admin/interface.filter.date.this.year\": \"올해\",\n \"admin/interface.filter.date.last.year\": \"작년\",\n \"admin/interface.filter.date.customizer\": \"맞춤형\",\n \"admin/interface.filter.status\": \"상태\",\n \"admin/interface.filter.status.active\": \"활성화됨\",\n \"admin/interface.filter.status.disabled\": \"비활성화됨\",\n \"admin/interface.modal.date.initial\": \"시작 날짜\",\n \"admin/interface.modal.date.final\": \"종료 날짜\",\n \"admin/interface.modal.title\": \"날짜별 검색 사용자 지정\",\n \"admin/interface.modal.aria.label\": \"날짜 사용자 정의 모달\",\n \"admin/interface.modal.confirm\": \"확인\",\n \"admin/interface.columns.tooltip.user\": \"이 사용자의 모든 목록 보기\",\n \"admin/interface.columns.tooltip.list\": \"목록 페이지 보기\",\n \"admin/interface.empty\": \"빈 테이블\"\n}\n\n```" } ]
code_admin-list_0d87d2ee
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-list/messages/th.json from the admin-list VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/section.name\": \"รายการของกำนัล\",\n \"admin/subsection.name\": \"การบริหารจัดการรายการ\",\n \"admin/interface.name\": \"การบริหารจัดการแอปรายการของกำนัล\",\n \"admin/interface.title.user\": \"เจ้าของทั้งหมด\",\n \"admin/interface.columns.title\": \"คำเรียก\",\n \"admin/interface.columns.user\": \"ผู้ใช้\",\n \"admin/interface.columns.validate\": \"วันที่ของอีเวนต์\",\n \"admin/interface.columns.bought\": \"ยอดรวมเครดิต\",\n \"admin/interface.columns.converted\": \"สร้างในบัตรกำนัลแล้ว\",\n \"admin/interface.columns.status\": \"สถานะ\",\n \"admin/interface.columns.owner\": \"เจ้าของ\",\n \"admin/interface.columns.lists\": \"รายการ\",\n \"admin/interface.active\": \"เปิดใช้งานแล้ว\",\n \"admin/interface.disabled\": \"ปิดการใช้งานแล้ว\",\n \"admin/interface.search.user\": \"ค้นหาด้วยอีเมล\",\n \"admin/interface.search.list\": \"ค้นหาด้วยชื่อเรื่อง\",\n \"admin/interface.pagination.preposition\": \"ของ\",\n \"admin/interface.pagination.subject\": \"ผลลัพธ์\",\n \"admin/interface.pagination.previous\": \"ก่อนหน้า\",\n \"admin/interface.pagination.next\": \"ถัดไป\",\n \"admin/interface.totalizer.lists.created\": \"รายการ\",\n \"admin/interface.totalizer.bought\": \"ยอดรวมเครดิต\",\n \"admin/interface.totalizer.converted\": \"สร้างในบัตรกำนัลแล้ว\",\n \"admin/interface.totalizer.info\": \"ฟิลด์นี้จะไม่เปลี่ยนเมื่อใช้ตัวกรอง\",\n \"admin/interface.filter.date\": \"แสดงรายการวันที่สร้าง\",\n \"admin/interface.filter.date.today\": \"วันนี้\",\n \"admin/interface.filter.date.yesterday\": \"เมื่อวานนี้\",\n \"admin/interface.filter.date.this.week\": \"สัปดาห์นี้\",\n \"admin/interface.filter.date.last.week\": \"สัปดาห์ที่แล้ว\",\n \"admin/interface.filter.date.this.month\": \"เดือนนี้\",\n \"admin/interface.filter.date.last.month\": \"เดือนที่แล้ว\",\n \"admin/interface.filter.date.this.year\": \"ปีนี้\",\n \"admin/interface.filter.date.last.year\": \"ปีที่แล้ว\",\n \"admin/interface.filter.date.customizer\": \"กำหนดเอง\",\n \"admin/interface.filter.status\": \"สถานะ\",\n \"admin/interface.filter.status.active\": \"เปิดใช้งานแล้ว\",\n \"admin/interface.filter.status.disabled\": \"ปิดการใช้งานแล้ว\",\n \"admin/interface.modal.date.initial\": \"วันที่เริ่มต้น\",\n \"admin/interface.modal.date.final\": \"วันที่สิ้นสุด\",\n \"admin/interface.modal.title\": \"ปรับใช้การค้นหาตามวันที่\",\n \"admin/interface.modal.aria.label\": \"Modal การปรับใช้วันที่\",\n \"admin/interface.modal.confirm\": \"ยืนยัน\",\n \"admin/interface.columns.tooltip.user\": \"ดูลิสต์ทั้งหมดสำหรับผู้ใช้นี้\",\n \"admin/interface.columns.tooltip.list\": \"ดูหน้าแสดงรายการ\",\n \"admin/interface.empty\": \"ตารางว่าง\"\n}\n\n```" } ]
code_admin-list_edf32683
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-list/messages/es.json from the admin-list VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/interface.name\": \"Gestión de la aplicación Lista de regalos\",\n \"admin/interface.title.user\": \"Todos los propietarios\",\n \"admin/interface.columns.title\": \"Título\",\n \"admin/interface.columns.user\": \"Usuario\",\n \"admin/interface.columns.validate\": \"Fecha del evento\",\n \"admin/interface.columns.bought\": \"Total de créditos\",\n \"admin/interface.columns.converted\": \"Generado en tarjeta de regalo\",\n \"admin/interface.columns.status\": \"Status\",\n \"admin/interface.columns.owner\": \"Propietario\",\n \"admin/interface.columns.lists\": \"Listas\",\n \"admin/interface.active\": \"Activa\",\n \"admin/interface.disabled\": \"Inactiva\",\n \"admin/interface.search.user\": \"Buscar por email\",\n \"admin/interface.search.list\": \"Buscar por título\",\n \"admin/interface.pagination.preposition\": \"de\",\n \"admin/interface.pagination.subject\": \"resultados\",\n \"admin/interface.pagination.previous\": \"Anterior\",\n \"admin/interface.pagination.next\": \"Siguiente\",\n \"admin/interface.totalizer.lists.created\": \"Listas\",\n \"admin/interface.totalizer.bought\": \"Total de créditos\",\n \"admin/interface.totalizer.converted\": \"Generado en tarjeta de regalo\",\n \"admin/interface.totalizer.info\": \"Este campo no cambia cuando se aplican filtros\",\n \"admin/interface.filter.date\": \"Fecha de creación de la lista\",\n \"admin/interface.filter.date.today\": \"Hoy\",\n \"admin/interface.filter.date.yesterday\": \"Ayer\",\n \"admin/interface.filter.date.this.week\": \"Esta semana\",\n \"admin/interface.filter.date.last.week\": \"Semana pasada\",\n \"admin/interface.filter.date.this.month\": \"Este mes\",\n \"admin/interface.filter.date.last.month\": \"Este mes\",\n \"admin/interface.filter.date.this.year\": \"Este año\",\n \"admin/interface.filter.date.last.year\": \"Año pasado\",\n \"admin/interface.filter.date.customizer\": \"Personalizado\",\n \"admin/interface.filter.status\": \"Status\",\n \"admin/interface.filter.status.active\": \"Activo\",\n \"admin/interface.filter.status.disabled\": \"Inactivo\",\n \"admin/interface.modal.date.initial\": \"Fecha de inicio\",\n \"admin/interface.modal.date.final\": \"Fecha de fin\",\n \"admin/interface.modal.title\": \"Personalizar búsqueda por fecha\",\n \"admin/interface.modal.aria.label\": \"Modal de personalización de fecha\",\n \"admin/interface.modal.confirm\": \"Confirmar\",\n \"admin/interface.columns.tooltip.user\": \"Ver todas las listas de este usuario\",\n \"admin/interface.columns.tooltip.list\": \"Ver página de la lista\",\n \"admin/interface.empty\": \"Tabla vacía\"\n}\n\n```" } ]
code_admin-list_114aad88
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-list/admin/navigation.json from the admin-list VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"section\": \"other\",\n \"subSection\": \"giftListSection\",\n \"titleId\": \"admin/section.name\",\n \"icon\": \"extensions-ic\",\n \"subSectionItems\": [\n {\n \"labelId\": \"admin/subsection.name\",\n \"path\": \"/admin/interface\"\n }\n ]\n}\n\n```" } ]
code_admin-list_ce51dfbf
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-list/admin/routes.json from the admin-list VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin.app.example\": {\n \"component\": \"Interface\",\n \"path\": \"/admin/app/interface\"\n }\n}\n\n```" } ]
code_admin-list_3991a1fd
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-list/docs/README.md from the admin-list VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```markdown\n# Admin List Interface\n\nThis application is a dependency of the [`vtex.list`](https://github.com/vtex/list) application. Its purpose is to create an interface in the admin where the shopkeepers can manage all the information coming from the gift list application.\n\nIn this interface we will have a list of all users that contain a gift list, with their respective amounts of lists, the value they have already won in gifts, the value converted into gift vouchers and whether or not there is already an active list at the moment, respectively. There is also the possibility of having more information about a specific user, with the information of each list of this user.\n\nThis app depends on `vtex.list-graphql` and `vtex.gift-card-list` configuration to work properly.\n\n```" } ]
code_admin-list_65e43729
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-list/react/Interface.tsx from the admin-list VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React from 'react'\nimport { createSystem } from '@vtex/admin-ui'\n\nimport ChooseTableArea from './components/ChooseTable'\nimport ProviderLists from './provider/providerLists'\nimport ProviderUser from './provider/providerUser'\nimport ProviderInterface from './provider/providerInterface'\n\nconst [ThemeProvider] = createSystem({\n key: 'admin-interface-shopkeeper',\n})\n\nfunction Interface() {\n return (\n <ProviderInterface>\n <ProviderLists>\n <ProviderUser>\n <ThemeProvider>\n <ChooseTableArea />\n </ThemeProvider>\n </ProviderUser>\n </ProviderLists>\n </ProviderInterface>\n )\n}\n\nexport default Interface\n\n```" } ]
code_admin-list_251f6cf4
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-list/react/package.json from the admin-list VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"vtex.admin-ui-example\",\n \"version\": \"0.18.0\",\n \"devDependencies\": {\n \"@types/faker\": \"^5.5.9\",\n \"@types/node\": \"^11.12.1\",\n \"@types/react\": \"^16.8.10\",\n \"@vtex/tsconfig\": \"^0.4.4\",\n \"graphql\": \"^14.6.0\",\n \"react\": \"^16.8.6\",\n \"react-dom\": \"^16.8.6\",\n \"typescript\": \"3.9.7\",\n \"vtex.admin-interface\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.admin-interface@0.9.0/public/@types/vtex.admin-interface\",\n \"vtex.gift-card-list\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.gift-card-list@1.14.0/public/@types/vtex.gift-card-list\",\n \"vtex.list-graphql\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.list-graphql@3.3.0/public/@types/vtex.list-graphql\",\n \"vtex.render-runtime\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.render-runtime@8.132.4/public/@types/vtex.render-runtime\"\n },\n \"dependencies\": {\n \"@vtex/admin-ui\": \"^0.131.2\",\n \"admin-ui\": \"^3.3.13\",\n \"faker\": \"^5.5.3\",\n \"react-apollo\": \"^3.1.5\",\n \"react-intl\": \"^5.21.0\"\n }\n}\n\n```" } ]
code_admin-list_495fe2a2
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-list/react/typings/dictionary.d.ts from the admin-list VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\ninterface DictionaryType {\n startDate: string\n endDate: string\n}\n\n```" } ]
code_admin-list_db99411e
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-list/react/typings/valuesLists.d.ts from the admin-list VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\ninterface ValuesLists {\n id: string\n listType: string\n name: string\n active: boolean\n public: boolean\n otherName: string\n ownerName: string\n ownerEmail: string\n image: string\n backgroundImage: string\n quantityPurchased: number\n valuePurchased: number\n eventDate: string\n createdIn: string\n}\n\ninterface ItemsLists {\n id: string\n list: string\n title: string\n validate: number\n bought: number\n status: boolean\n}\n\ninterface TotalizerListsUsers {\n ownerName: string\n ownerEmail: string\n lists: number\n purchase: number\n quantityAlreadyInGiftCard: number | undefined\n status: boolean\n id: string\n}\n\n```" } ]
code_admin-list_1c34d4e3
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-list/react/typings/gql.d.ts from the admin-list VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\ndeclare module '*.gql' {\n import { DocumentNode } from 'graphql'\n\n const Schema: DocumentNode\n\n export default Schema\n}\n\ndeclare module '*.graphql' {\n import { DocumentNode } from 'graphql'\n\n const schema: DocumentNode\n\n export default Schema\n}\n\n```" } ]
code_admin-list_7bcc0785
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-list/react/typings/valuesListsUser.d.ts from the admin-list VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\ninterface ValuesListsUsers {\n id: string\n ownerName: string\n ownerEmail: string\n purchase: number\n lists: number\n status: boolean\n}\n\ninterface Owner {\n ownerEmail: string\n ownerName: string\n}\n\ninterface ItemsListsUsers {\n table: string\n id: string\n owner: Owner | string\n lists: number\n bought: number\n converted: number\n status: boolean\n}\n\n```" } ]
code_admin-list_737f481f
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-list/react/typings/valuesGiftCard.d.ts from the admin-list VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\ninterface ValuesGiftCard {\n giftCardId: string\n email: string\n profileId: string\n redemptionCode: string\n quantityAlreadyInGiftCard: number\n}\n\n```" } ]
code_admin-list_0852840f
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-list/react/queries/searchListUser.gql from the admin-list VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```graphql\nquery searchListUser($filter: [String]) {\n searchListUser(filters: $filter) {\n ownerEmail\n ownerName\n lists\n purchase\n status\n }\n}\n\n```" } ]
code_admin-list_31f8f9a1
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-list/react/queries/searchGiftCards.gql from the admin-list VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```graphql\nquery searchGiftCards(\n $page: Int!\n $pageSize: Int!\n $filter: GiftCardFiltersInput\n $sorting: GiftCardSortingInput\n) {\n searchGiftCards(\n page: $page\n pageSize: $pageSize\n filters: $filter\n sorting: $sorting\n ) {\n data {\n giftCardId\n email\n profileId\n redemptionCode\n quantityAlreadyInGiftCard\n }\n }\n}\n\n```" } ]
code_admin-list_759bf26a
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-list/react/queries/searchUser.gql from the admin-list VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```graphql\nquery searchUser($page: Int!, $pageSize: Int!, $filter: UsersFiltersInput) {\n allUsers(page: $page, pageSize: $pageSize, filter: $filter) {\n data {\n email\n }\n pagination {\n page\n pageSize\n total\n }\n }\n}\n\n```" } ]