id
stringlengths 12
53
| messages
listlengths 3
3
|
|---|---|
code_sku-list_467e0c80
|
[
{
"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 sku-list/react/components/ItemQuantity/ItemQuantity.tsx from the sku-list VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport React from 'react'\nimport { useSkuDispatch } from '../SkuContext'\nimport { useProductDispatch } from 'vtex.product-context/ProductDispatchContext'\nimport BaseProductQuantity from './components/BaseItemQuantity'\nimport { Item } from '../../typings'\n\nconst ItemQuantity: StorefrontFunctionComponent<Props> = ({\n selectedItem,\n warningQuantityThreshold,\n selectedQuantity,\n inputType,\n showLabel,\n}) => {\n const skuDispatch = useSkuDispatch()\n const productDispatch = useProductDispatch()\n return (\n <BaseProductQuantity\n warningQuantityThreshold={warningQuantityThreshold}\n selectedItem={selectedItem}\n selectedQuantity={selectedQuantity}\n skuDispatch={skuDispatch}\n productDispatch={productDispatch}\n inputType={inputType}\n showLabel={showLabel}\n />\n )\n}\n\ninterface Props {\n warningQuantityThreshold: number\n selectedItem: Item\n selectedQuantity: number\n inputType: 'stepper' | 'number'\n showLabel: boolean\n}\n\nItemQuantity.schema = {\n title: 'admin/editor.sku-list.item-quantity.title',\n description: 'admin/editor.sku-list.item-quantity.description',\n type: 'object',\n properties: {\n inputType: {\n type: 'string',\n title: 'admin/editor.sku-list.item-quantity.inputType.title',\n enum: ['stepper', 'number'],\n enumNames: [\n 'admin/editor.sku-list.item-quantity.inputType.stepper',\n 'admin/editor.sku-list.item-quantity.inputType.number',\n ],\n widget: {\n 'ui:options': {\n inline: false,\n },\n 'ui:widget': 'radio',\n },\n default: 'stepper',\n isLayout: false,\n },\n showLabel: {\n type: 'boolean',\n title: 'admin/editor.sku-list.item-quantity.showLabel.title',\n default: true,\n isLayout: false,\n },\n },\n}\n\nexport default ItemQuantity\n\n```"
}
] |
code_sku-list_f4ff87c0
|
[
{
"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 sku-list/react/components/BuyButton/modules/compareObjects.ts from the sku-list VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nexport function compareObjects(obj1: any, obj2: any) {\n //Loop through properties in object 1\n for (const p in obj1) {\n //Check property exists on both objects\n if (obj1.hasOwnProperty(p) !== obj2.hasOwnProperty(p)) return false\n\n switch (typeof obj1[p]) {\n //Deep compare objects\n case 'object':\n if (!compareObjects(obj1[p], obj2[p])) return false\n break\n //Compare function code\n case 'function':\n if (\n typeof obj2[p] == 'undefined' ||\n (p != 'compare' && obj1[p].toString() != obj2[p].toString())\n )\n return false\n break\n //Compare values\n default:\n if (obj1[p] != obj2[p]) return false\n }\n }\n\n //Check object 2 for any extra properties\n for (const p in obj2) {\n if (typeof obj1[p] == 'undefined') return false\n }\n return true\n}\n\n```"
}
] |
code_sku-list_b665449b
|
[
{
"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 sku-list/react/components/BuyButton/modules/catalogItemToCart.ts from the sku-list VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport { path } from 'ramda'\n\nimport {\n transformAssemblyOptions,\n sumAssembliesPrice,\n ParsedAssemblyOptionsMeta,\n Option,\n} from './assemblyOptions'\nimport { AssemblyOptionItem, Item, Maybe, Product } from '../../../typings'\n\ninterface MapCatalogItemToCartArgs {\n product: Maybe<Product>\n selectedItem: Maybe<Item>\n quantity: number\n selectedSeller: any\n assemblyOptions?: {\n items: Record<string, AssemblyOptionItem[]>\n inputValues: Record<string, Record<string, string>>\n areGroupsValid: Record<string, boolean>\n }\n}\n\nexport interface MapCatalogItemToCartReturn {\n index: 0\n quantity: number\n detailUrl: string\n name: string\n brand: string\n category: string\n productRefId: string\n seller: any\n price: number\n listPrice: number\n variant: string\n skuId: string\n imageUrl: string | undefined\n sellingPriceWithAssemblies: number\n options: Option[]\n assemblyOptions: ParsedAssemblyOptionsMeta\n}\n\nexport function mapCatalogItemToCart({\n product,\n selectedItem,\n quantity,\n selectedSeller,\n assemblyOptions,\n}: MapCatalogItemToCartArgs): MapCatalogItemToCartReturn[] {\n return (\n product &&\n selectedItem &&\n selectedSeller &&\n selectedSeller.commertialOffer && [\n {\n index: 0,\n quantity: quantity,\n detailUrl: `/${product.linkText}/p`,\n name: product.productName,\n brand: product.brand,\n category:\n product.categories && product.categories.length > 0\n ? product.categories[0]\n : '',\n productRefId: product.productReference,\n seller: selectedSeller.sellerId,\n price: selectedSeller.commertialOffer.Price,\n listPrice: selectedSeller.commertialOffer.ListPrice,\n variant: selectedItem.name,\n skuId: selectedItem.itemId,\n imageUrl: path(['images', '0', 'imageUrl'], selectedItem),\n ...transformAssemblyOptions(\n path(['items'], assemblyOptions),\n path(['inputValues'], assemblyOptions),\n selectedSeller.commertialOffer.Price,\n quantity\n ),\n sellingPriceWithAssemblies:\n selectedSeller.commertialOffer.Price +\n sumAssembliesPrice(path(['items'], assemblyOptions) || {}),\n },\n ]\n )\n}\n\n```"
}
] |
code_sku-list_253f4e08
|
[
{
"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 sku-list/react/components/BuyButton/modules/assemblyOptions.ts from the sku-list VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport { AssemblyOptionItem } from '../../../typings'\n\ntype GroupId = string\ntype GroupTypes = 'SINGLE' | 'TOGGLE' | 'MULTIPLE'\n\nexport function sumAssembliesPrice(\n assemblyOptions: Record<GroupId, AssemblyOptionItem[]>\n) {\n const cleanAssemblies = assemblyOptions || {}\n const assembliesGroupItems = Object.values(cleanAssemblies)\n return assembliesGroupItems.reduce<number>(\n (sum: number, groupItems: AssemblyOptionItem[]) => {\n const groupPrice = groupItems.reduce<number>((groupSum, item) => {\n const childrenPrice: number = item.children\n ? sumAssembliesPrice(item.children)\n : 0\n const itemCost = item.price * item.quantity\n return groupSum + itemCost + childrenPrice * item.quantity\n }, 0)\n return groupPrice + sum\n },\n 0\n )\n}\n\ntype InputValue = Record<string, string | boolean>\n\nexport interface AssemblyOptions {\n items: Record<GroupId, AssemblyOptionItem[]>\n inputValues: Record<GroupId, InputValue>\n areGroupsValid: Record<string, boolean>\n}\n\nexport type Option = ItemOption\n\nexport interface ItemOption {\n assemblyId: string\n id?: string\n quantity?: number\n seller?: string\n options?: Option[]\n inputValues?: InputValue\n}\n\ninterface AddedItem {\n id: string\n name: string\n quantity: number\n sellingPrice: number\n sellingPriceWithAssemblies: number\n assemblyOptions?: ParsedAssemblyOptionsMeta\n}\n\ninterface CartAddedOption {\n normalizedQuantity: number\n extraQuantity: number\n choiceType: GroupTypes\n item: AddedItem\n}\n\ninterface CartRemovedOption {\n name: string\n initialQuantity: number\n removedQuantity: number\n}\n\nexport interface ParsedAssemblyOptionsMeta {\n added: CartAddedOption[]\n removed: CartRemovedOption[]\n parentPrice: number\n}\n\ninterface ParsedAssemblyOptions {\n options: Option[]\n assemblyOptions: ParsedAssemblyOptionsMeta\n}\n\nexport function transformAssemblyOptions(\n assemblyOptionsItems: Record<GroupId, AssemblyOptionItem[]> = {},\n inputValues: Record<GroupId, InputValue> = {},\n parentPrice: number,\n parentQuantity: number\n): ParsedAssemblyOptions {\n // contains options sent as arguments to graphql mutation\n const options: Option[] = []\n\n // array with added assemblies data to show in minicart optimistic preview\n const added: CartAddedOption[] = []\n\n // array with removed assemblies data to show in minicart optimistic preview\n const removed: CartRemovedOption[] = []\n\n const assemblyItemsKeys: GroupId[] = Object.keys(assemblyOptionsItems)\n\n for (const groupId of assemblyItemsKeys) {\n const items = assemblyOptionsItems[groupId]\n for (const item of items) {\n const childrenAddedData = item.children\n ? transformAssemblyOptions(\n item.children,\n {},\n item.price,\n item.quantity * parentQuantity\n )\n : null\n\n const {\n options: childrenOptions,\n assemblyOptions: childrenAssemblyOptions,\n } = childrenAddedData || {\n options: undefined,\n assemblyOptions: undefined,\n }\n\n const { quantity, initialQuantity } = item\n\n if (quantity >= initialQuantity && quantity > 0) {\n added.push({\n normalizedQuantity: quantity,\n extraQuantity: quantity - initialQuantity,\n choiceType: item.choiceType,\n item: {\n name: item.name,\n sellingPrice: item.price,\n quantity,\n sellingPriceWithAssemblies:\n item.price + sumAssembliesPrice(item.children || {}),\n id: item.id,\n ...(childrenAssemblyOptions\n ? { assemblyOptions: childrenAssemblyOptions }\n : {}),\n },\n })\n }\n\n if (quantity < initialQuantity && item.choiceType === 'TOGGLE') {\n removed.push({\n name: item.name,\n initialQuantity,\n removedQuantity: initialQuantity - quantity,\n })\n }\n\n const addedChildrenCount = childrenAddedData\n ? childrenAddedData.options.length\n : 0\n\n if (quantity !== initialQuantity || addedChildrenCount > 0) {\n options.push({\n assemblyId: groupId,\n id: item.id,\n quantity: quantity * parentQuantity,\n seller: item.seller,\n ...(childrenOptions && childrenOptions.length > 0\n ? { options: childrenOptions }\n : {}),\n })\n }\n }\n }\n\n const assemblyInputValuesKeys: GroupId[] = Object.keys(inputValues)\n\n for (const groupId of assemblyInputValuesKeys) {\n const inputValuesObject = inputValues[groupId] || {}\n if (Object.keys(inputValuesObject).length > 0) {\n options.push({\n assemblyId: groupId,\n inputValues: inputValues[groupId],\n })\n }\n }\n\n return {\n options,\n assemblyOptions: {\n added,\n removed,\n parentPrice,\n },\n }\n}\n\n```"
}
] |
code_sku-list_74d7cd72
|
[
{
"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 sku-list/react/components/ItemQuantity/components/BaseItemQuantity.tsx from the sku-list VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport React, { useCallback } from 'react'\nimport { Input, NumericStepper } from 'vtex.styleguide'\nimport { FormattedMessage } from 'react-intl'\nimport { pathOr } from 'ramda'\nimport { useCssHandles } from 'vtex.css-handles'\nimport { Item } from '../../../typings'\n\nconst CSS_HANDLES = [\n 'quantitySelectorContainer',\n 'quantitySelectorTitle',\n 'quantitySelectorStepper',\n 'availableQuantityContainer',\n] as const\n\nconst BaseItemQuantity: StorefrontFunctionComponent<Props> = ({\n warningQuantityThreshold = 0,\n selectedQuantity,\n selectedItem,\n productDispatch,\n skuDispatch,\n inputType,\n showLabel,\n}) => {\n const handles = useCssHandles(CSS_HANDLES)\n const onChange = useCallback(\n e => {\n const quantity = inputType == 'stepper' ? e.value : e.target.value\n productDispatch({ type: 'SET_QUANTITY', args: { quantity: quantity } })\n skuDispatch({ type: 'SET_QUANTITY', args: { quantity: quantity } })\n },\n [inputType, productDispatch, skuDispatch]\n )\n\n const availableQuantity = pathOr(\n 0,\n ['sellers', 0, 'commertialOffer', 'AvailableQuantity'],\n selectedItem\n )\n\n const showAvailable = availableQuantity <= warningQuantityThreshold\n\n if (availableQuantity < 1) return null\n\n return (\n <div\n className={`${handles.quantitySelectorContainer} flex flex-column mb4`}>\n {showLabel && (\n <div\n className={`${handles.quantitySelectorTitle} mb3 t-body c-on-base fw7 pr3`}>\n <FormattedMessage id=\"store/product-quantity.quantity\" />\n </div>\n )}\n <div className={handles.quantitySelectorStepper}>\n {inputType == 'number' ? (\n <Input\n type=\"number\"\n value={selectedQuantity}\n min={1}\n max={availableQuantity ? availableQuantity : undefined}\n onChange={onChange}\n />\n ) : (\n <NumericStepper\n size=\"small\"\n value={selectedQuantity}\n minValue={1}\n maxValue={availableQuantity ? availableQuantity : undefined}\n onChange={onChange}\n />\n )}\n </div>\n {showAvailable && (\n <div\n className={`${handles.availableQuantityContainer} mv4 c-muted-2 t-small`}>\n <FormattedMessage\n id=\"store/product-quantity.quantity-available\"\n values={{ availableQuantity }}\n />\n </div>\n )}\n </div>\n )\n}\n\ninterface Props {\n warningQuantityThreshold: number\n selectedQuantity: number\n selectedItem: Item\n skuDispatch: any\n productDispatch: any\n inputType: 'stepper' | 'number'\n showLabel?: boolean\n}\n\nBaseItemQuantity.defaultProps = {\n warningQuantityThreshold: 0,\n inputType: 'stepper',\n showLabel: true,\n}\n\nexport default BaseItemQuantity\n\n```"
}
] |
code_react-app-template_304b6c87
|
[
{
"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 react-app-template/messages/pt.json from the react-app-template VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/test\": \"teste\",\n \"store/test\": \"teste\"\n}\n```"
}
] |
code_react-app-template_967e0b1e
|
[
{
"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 react-app-template/messages/en.json from the react-app-template VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/test\": \"test\",\n \"store/test\": \"test\"\n}\n\n```"
}
] |
code_react-app-template_9b57e79a
|
[
{
"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 react-app-template/messages/es.json from the react-app-template VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/test\": \"teste\",\n \"store/test\": \"teste\"\n}\n```"
}
] |
code_react-app-template_e859f31f
|
[
{
"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 react-app-template/docs/README.md from the react-app-template VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```markdown\n📢 Use this project, [contribute](https://github.com/{OrganizationName}/{AppName}) to it or open issues to help evolve it using [Store Discussion](https://github.com/vtex-apps/store-discussion).\n\n# APP NAME\n\n<!-- DOCS-IGNORE:start -->\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n[](#contributors-)\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n<!-- DOCS-IGNORE:end -->\n\nUnder the app's name, you should explain the topic, giving a **brief description** of its **functionality** in a store when installed.\n\nNext, **add media** (either an image of a GIF) with the rendered components, so that users can better understand how the app works in practice. \n\n\n\n## Configuration \n\nIn this section, you first must **add the primary instructions** that will allow users to use the app's blocks in their store, such as:\n\n1. Adding the app as a theme dependency in the `manifest.json` file;\n2. Declaring the app's main block in a given theme template or inside another block from the theme.\n\nRemember to add a table with all blocks exported by the app and their descriptions. You can verify an example of it on the [Search Result documentation](https://vtex.io/docs/components/all/vtex.search-result@3.56.1/). \n\nNext, add the **props table** containing your block's props. \n\nIf the app exports more than one block, create several tables - one for each block. For example:\n\n### `block-1` props\n\n| Prop name | Type | Description | Default value |\n| ------------ | --------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | \n| `XXXXX` | `XXXXXX` | XXXXXXXX | `XXXXXX` |\n\n\n### `block-2` props\n\n| Prop name | Type | Description | Default value |\n| ------------ | --------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | \n| `XXXXX` | `XXXXXX` | XXXXXXXX | `XXXXXX` |\n\nProp types are: \n\n- `string` \n- `enum` \n- `number` \n- `boolean` \n- `object` \n- `array` \n\nWhen documenting a prop whose type is `object` or `array` another prop table will be needed. You can create it following the example below:\n\n- `propName` object:\n\n| Prop name | Type | Description | Default value |\n| ------------ | --------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | \n| `XXXXX` | `XXXXXX` | XXXXXXXX | `XXXXXX` |\n\n\nRemember to also use this Configuration section to **showcase any necessary disclaimer** related to the app and its blocks, such as the different behavior it may display during its configuration. \n\n## Modus Operandi *(not mandatory)*\n\nThere are scenarios in which an app can behave differently in a store, according to how it was added to the catalog, for example. It's crucial to go through these **behavioral changes** in this section, allowing users to fully understand the **practical application** of the app in their store.\n\nIf you feel compelled to give further details about the app, such as it's **relationship with the VTEX admin**, don't hesitate to use this section. \n\n## Customization\n\nThe first thing that should be present in this section is the sentence below, showing users the recipe pertaining to CSS customization in apps:\n\n`In order to apply CSS customizations in this and other blocks, follow the instructions given in the recipe on [Using CSS Handles for store customization](https://vtex.io/docs/recipes/style/using-css-handles-for-store-customization).`\n\nThereafter, you should add a single column table with the available CSS handles for the app, like the one below. Note that the Handles must be ordered alphabetically.\n\n| CSS Handles |\n| ----------- | \n| `XXXXX` | \n| `XXXXX` | \n| `XXXXX` | \n| `XXXXX` | \n| `XXXXX` |\n\n\nIf there are none, add the following sentence instead:\n\n`No CSS Handles are available yet for the app customization.`\n\n<!-- DOCS-IGNORE:start -->\n\n## Contributors ✨\n\nThanks goes to these wonderful people:\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<!-- markdownlint-enable -->\n<!-- prettier-ignore-end -->\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind are welcome!\n\n<!-- DOCS-IGNORE:end -->\n\n---- \n\nCheck out some documentation models that are already live: \n- [Breadcrumb](https://github.com/vtex-apps/breadcrumb)\n- [Image](https://vtex.io/docs/components/general/vtex.store-components/image)\n- [Condition Layout](https://vtex.io/docs/components/all/vtex.condition-layout@1.1.6/)\n- [Add To Cart Button](https://vtex.io/docs/components/content-blocks/vtex.add-to-cart-button@0.9.0/)\n- [Store Form](https://vtex.io/docs/components/all/vtex.store-form@0.3.4/)\n\n```"
}
] |
code_react-app-template_abeaa3b7
|
[
{
"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 react-app-template/react/Greeting.test.tsx from the react-app-template VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport React from 'react'\nimport { render } from '@vtex/test-tools/react'\n\nimport Greeting from './Greeting'\n\ntest('greets Fred', () => {\n const { queryByText } = render(<Greeting name=\"Fred\" />)\n\n expect(queryByText('Hey, Fred')).toBeInTheDocument()\n})\n\n```"
}
] |
code_react-app-template_98d65580
|
[
{
"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 react-app-template/react/package.json from the react-app-template VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"CHANGE_ME\",\n \"version\": \"0.0.0\",\n \"scripts\": {\n \"test\": \"vtex-test-tools test\"\n },\n \"dependencies\": {\n \"apollo-client\": \"^2.6.8\",\n \"react\": \"^16.12.0\",\n \"react-apollo\": \"^3.1.3\",\n \"react-dom\": \"^16.12.0\",\n \"react-intl\": \"^3.12.0\"\n },\n \"devDependencies\": {\n \"@apollo/react-testing\": \"^3.1.3\",\n \"@types/node\": \"^13.9.8\",\n \"@types/react\": \"^16.9.31\",\n \"@vtex/test-tools\": \"^3.3.2\",\n \"@vtex/tsconfig\": \"^0.4.4\",\n \"apollo-cache-inmemory\": \"^1.6.5\",\n \"graphql\": \"^14.6.0\",\n \"typescript\": \"3.9.7\"\n },\n \"resolutions\": {\n \"@types/jest\": \"26.0.15\"\n }\n}\n\n```"
}
] |
code_react-app-template_c304f37b
|
[
{
"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 react-app-template/react/Greeting.tsx from the react-app-template VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport React from 'react'\n\ntype Props = {\n name: string\n}\n\nfunction Greeting({ name }: Props) {\n return <div>Hey, {name}</div>\n}\n\nexport default Greeting\n\n```"
}
] |
code_react-app-template_5072ce9d
|
[
{
"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 react-app-template/react/typings/gql.d.ts from the react-app-template 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_react-app-template_ae2940cb
|
[
{
"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 react-app-template/react/typings/css.d.ts from the react-app-template VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\ndeclare module '*.css' {\n type Styles = {\n [selector: string]: string\n }\n\n const styles: Styles\n\n export default styles\n}\n\n```"
}
] |
code_format-currency_71eaae1b
|
[
{
"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 format-currency/docs/README.md from the format-currency VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```markdown\n# Format Currency\n\n> Format currency based on sales policy config.\n\n## Usage\n\nAdd `\"vtex.format-currency\": \"0.x\"` to your dependencies.\n\n### API\n\n#### `FormattedCurrency`\n\n```jsx\nimport React from 'react'\nimport { FormattedCurrency } from 'vtex.format-currency'\n\nfunction Foo() {\n return <FormattedCurrency value={10} />\n}\n// <span class=\"vtex-format-currency-0-x-currencyContainer\">\n// <span class=\"vtex-format-currency-0-x-currencyCode\">$</span>\n// <span class=\"vtex-format-currency-0-x-currencyInteger\">10<span>\n// <span class=\"vtex-format-currency-0-x-currencyDecimal\">.</span>\n// <span class=\"vtex-format-currency-0-x-currencyFraction\">00</span>\n// </span>\n\nexport default Foo\n```\n\n:info: Do not change the symbol or hide the decimals and fraction using CSS! You can configure the currency, currency symbol and currency decimal places in the Trade Policy settings.\n\n\n\n:warning: Since IE11 does not support the browser API `formatToParts`, in this browser it will fallback to render:\n\n```html\n<span class=\"vtex-format-currency-0-x-currencyContainer\">$ 10.00</span>\n```\n\n#### `formatCurrency`\n\n```jsx\nimport React from 'react'\nimport { useIntl } from 'react-intl'\nimport { formatCurrency } from 'vtex.format-currency'\nimport { useRuntime } from 'vtex.render-runtime'\n\nfunction Foo({ intl }) {\n const { culture } = useRuntime()\n const intl = useIntl()\n\n const value = formatCurrency({ intl, culture, value: 10 })\n\n return <span>{value}</span>\n}\n// <span>\n// $ 10.00\n// </span>\n\nexport default Foo\n```\n\n```"
}
] |
code_format-currency_7dea9d5b
|
[
{
"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 format-currency/react/package.json from the format-currency VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"scripts\": {\n \"test\": \"vtex-test-tools test\",\n \"lint\": \"tsc --noEmit && eslint --ext ts,tsx .\"\n },\n \"dependencies\": {\n \"classnames\": \"^2.2.6\",\n \"ramda\": \"^0.26.1\",\n \"react\": \"^16.8.3\",\n \"react-dom\": \"^16.8.3\",\n \"react-intl\": \"^3.12.0\"\n },\n \"devDependencies\": {\n \"@apollo/react-testing\": \"^3.1.3\",\n \"@types/jest\": \"^25.1.4\",\n \"@types/node\": \"^13.9.8\",\n \"@types/ramda\": \"^0.26.5\",\n \"@types/react\": \"^16.8.10\",\n \"@vtex/test-tools\": \"^3.3.2\",\n \"@vtex/tsconfig\": \"^0.4.4\",\n \"typescript\": \"3.9.7\",\n \"vtex.css-handles\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.css-handles@1.0.0/public/@types/vtex.css-handles\",\n \"vtex.render-runtime\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.render-runtime@8.126.4/public/@types/vtex.render-runtime\"\n },\n \"version\": \"0.4.1\"\n}\n\n```"
}
] |
code_format-currency_41356694
|
[
{
"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 format-currency/react/formatCurrency.ts from the format-currency VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport { IntlShape, FormatNumberOptions } from 'react-intl'\n\ninterface FormatCurrencyParams {\n intl: IntlShape\n value: number\n culture: {\n currency: string\n customCurrencyDecimalDigits?: number | null\n customCurrencySymbol?: string | null\n }\n}\n\nexport default function formatCurrency({\n intl,\n culture,\n value,\n}: FormatCurrencyParams) {\n const formatOptions: FormatNumberOptions = {\n style: 'currency',\n currency: culture.currency,\n }\n\n if (culture.customCurrencyDecimalDigits != null) {\n formatOptions.minimumFractionDigits = culture.customCurrencyDecimalDigits\n }\n\n /**\n * The default Romanian currency format is wrong\n * https://stackoverflow.com/questions/57526989/return-correct-currency-for-intl-numberformat-romanian-lei\n */\n if (culture.currency === 'RON' && intl.locale.indexOf('ro') === 0) {\n formatOptions.currencyDisplay = 'name'\n\n return intl.formatNumber(value, formatOptions).replace(' românești', '')\n }\n\n return intl.formatNumber(value, formatOptions)\n}\n\n```"
}
] |
code_format-currency_a43aaa4d
|
[
{
"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 format-currency/react/FormattedCurrency.tsx from the format-currency VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport React from 'react'\nimport { useRuntime } from 'vtex.render-runtime'\nimport { FormatNumberOptions, useIntl } from 'react-intl'\nimport { useCssHandles } from 'vtex.css-handles'\nimport type { CssHandlesTypes } from 'vtex.css-handles'\n\nimport formatCurrency from './formatCurrency'\n\nconst formatter = new Intl.NumberFormat('en-US', {\n style: 'currency',\n currency: 'USD',\n})\n\n// TypeScript thinks that all browsers have formatToParts\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nconst hasFormatToParts = !!formatter.formatToParts\n\nconst CSS_HANDLES = [\n 'currencyContainer',\n 'currencyCode',\n 'currencyLiteral',\n 'currencyInteger',\n 'currencyGroup',\n 'currencyDecimal',\n 'currencyFraction',\n 'currencyInfinity',\n 'currencyMinusSign',\n 'currencyNan',\n 'currencyPlusSign',\n 'currencyPercentSign',\n] as const\n\nconst handlesMap: Record<Intl.NumberFormatPartTypes, string> = {\n currency: 'currencyCode',\n literal: 'currencyLiteral',\n integer: 'currencyInteger',\n group: 'currencyGroup',\n decimal: 'currencyDecimal',\n fraction: 'currencyFraction',\n infinity: 'currencyInfinity',\n minusSign: 'currencyMinusSign',\n nan: 'currencyNan',\n plusSign: 'currencyPlusSign',\n percentSign: 'currencyPercentSign',\n}\n\ninterface Props {\n value: number\n classes?: CssHandlesTypes.CustomClasses<typeof CSS_HANDLES>\n}\n\nfunction FormattedCurrency({ value, classes }: Props) {\n const { culture, getSettings } = useRuntime()\n const settings = getSettings('vtex.store')\n const intl = useIntl()\n const { handles } = useCssHandles(CSS_HANDLES, { classes })\n\n // In case it's IE11\n if (!hasFormatToParts) {\n const number = formatCurrency({ intl, culture, value })\n\n return <span className={handles.currencyContainer}>{number}</span>\n }\n\n const formatOptions: FormatNumberOptions = {\n style: 'currency',\n currency: culture.currency,\n }\n\n if (culture.customCurrencyDecimalDigits != null) {\n formatOptions.minimumFractionDigits = culture.customCurrencyDecimalDigits\n }\n\n /**\n * The default Romanian currency format is wrong\n * https://stackoverflow.com/questions/57526989/return-correct-currency-for-intl-numberformat-romanian-lei\n */\n const isRomanian =\n culture.currency === 'RON' && intl.locale.indexOf('ro') === 0\n\n if (isRomanian) {\n formatOptions.currencyDisplay = 'name'\n }\n\n const result = intl\n .formatNumberToParts(value, formatOptions)\n .map((part, index) => {\n const handleName = handlesMap[part.type]\n // I spent 20 min here, but could not type this properly\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n const handle = handles[handleName]\n\n if (isRomanian && part.type === 'currency') {\n return (\n <span key={index} className={handle}>\n lei\n </span>\n )\n }\n\n if (\n part.type === 'currency' &&\n culture?.customCurrencySymbol &&\n settings?.enableCustomCurrencySymbol\n ) {\n return (\n <span key={index} className={handle}>\n {culture.customCurrencySymbol}\n </span>\n )\n }\n\n return (\n <span key={index} className={handle}>\n {part.value}\n </span>\n )\n })\n\n return <span className={handles.currencyContainer}>{result}</span>\n}\n\nexport default FormattedCurrency\n\n```"
}
] |
code_format-currency_360baf8d
|
[
{
"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 format-currency/react/typings/vtex.render-runtime.d.ts from the format-currency VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\ndeclare module 'vtex.render-runtime' {\n interface RuntimeContext {\n culture: {\n currency: string\n customCurrencyDecimalDigits?: number | null\n customCurrencySymbol?: string | null\n }\n }\n\n export const useRuntime = () => RuntimeContext\n export const canUseDOM: boolean\n}\n\n```"
}
] |
code_format-currency_d08902ed
|
[
{
"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 format-currency/react/typings/graphql.d.ts from the format-currency 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_format-currency_ebce8c41
|
[
{
"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 format-currency/react/typings/vtex.styleguide.d.ts from the format-currency 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\n```"
}
] |
code_format-currency_42c303d6
|
[
{
"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 format-currency/react/__tests__/FormattedCurrency.test.tsx from the format-currency VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport React from 'react'\nimport { render } from '@vtex/test-tools/react'\nimport { useRuntime, RuntimeContext } from 'vtex.render-runtime'\n\nimport FormattedCurrency from '../FormattedCurrency'\n\nconst mockedUseRuntime = useRuntime as jest.Mock<RuntimeContext>\n\ntest('Use currencyCode as default format', () => {\n mockedUseRuntime.mockImplementation(() => ({\n culture: {\n currency: 'USD',\n customCurrencyDecimalDigits: null,\n customCurrencySymbol: null,\n },\n }))\n\n const { rerender, container } = render(<FormattedCurrency value={10} />)\n\n let currency = container.querySelector('.currencyCode')\n let integer = container.querySelector('.currencyInteger')\n let decimal = container.querySelector('.currencyDecimal')\n let fraction = container.querySelector('.currencyFraction')\n\n expect(currency?.innerHTML).toBe('$')\n expect(integer?.innerHTML).toBe('10')\n expect(decimal?.innerHTML).toBe('.')\n expect(fraction?.innerHTML).toBe('00')\n\n mockedUseRuntime.mockImplementation(() => ({\n culture: {\n currency: 'BRL',\n customCurrencyDecimalDigits: null,\n customCurrencySymbol: null,\n },\n }))\n\n rerender(<FormattedCurrency value={10} />)\n\n currency = container.querySelector('.currencyCode')\n integer = container.querySelector('.currencyInteger')\n decimal = container.querySelector('.currencyDecimal')\n fraction = container.querySelector('.currencyFraction')\n\n expect(currency?.innerHTML).toBe('R$')\n expect(integer?.innerHTML).toBe('10')\n expect(decimal?.innerHTML).toBe('.')\n expect(fraction?.innerHTML).toBe('00')\n})\n\ntest('should use custom decimal digits', () => {\n mockedUseRuntime.mockImplementation(() => ({\n culture: {\n currency: 'BRL',\n customCurrencyDecimalDigits: 0,\n customCurrencySymbol: null,\n },\n }))\n\n const { container } = render(<FormattedCurrency value={10} />)\n\n const currency = container.querySelector('.currencyCode')\n const integer = container.querySelector('.currencyInteger')\n const decimal = container.querySelector('.currencyDecimal')\n const fraction = container.querySelector('.currencyFraction')\n\n expect(currency).toBeTruthy()\n expect(integer).toBeTruthy()\n expect(decimal).toBeFalsy()\n expect(fraction).toBeFalsy()\n})\n\n```"
}
] |
code_hotjar_e99e548b
|
[
{
"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 hotjar/docs/README.md from the hotjar VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```markdown\n# Hotjar\n\nOpen the VTEX APP Store and install the app on your store.\n\nor\n\nRun the following command:\n\n```sh\nvtex install vtex.hotjar@0.x\n```\n\nNext, open the app settings on your admin and fill the form with Site ID.\n\n### Setup in Cart and Checkout page\n\nOpen your admin in the Checkout section in the `checkout6-custom.js`:\n\nhttps://ACCOUNT.myvtex.com/admin/portal/#/sites/default/code/files/checkout6-custom.js\n\nAdd the following snippet in the file and replace `\"YOURSITEID\"` with your Site ID:\n\n```js\n// Hotjar\n(function(h,o,t,j,a,r){\n var siteId = 'YOURSITEID';\n h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};\n h._hjSettings={hjid:siteId,hjsv:6};\n a=o.getElementsByTagName('head')[0];\n r=o.createElement('script');r.async=1;\n r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;\n a.appendChild(r);\n})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');\n```\n\nClick Save.\n\n```"
}
] |
code_hotjar_5533959e
|
[
{
"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 hotjar/public/metadata/messages/es-AR.json from the hotjar VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"Hotjar\",\n \"headline\": \"Con un clic, comience a monitorear el comportamiento de sus clientes con la herramienta de análisis de datos Hotjar.\",\n \"overview\": \"Hotjar es una herramienta poderosa que revela el comportamiento en línea de sus usuarios. Con las herramientas de análisis, Hotjar proporciona una descripción general de cómo mejorar la experiencia del usuario y las tasas de rendimiento/conversión del sitio.\",\n \"features\": [\n \"Comprenda lo que los usuarios quieren, se preocupan y hacen en su sitio al representar visualmente sus clics, toques y comportamiento de desplazamiento, que son los indicadores más fuertes de la motivación y el deseo de los visitantes;\",\n \"Elimine las conjeturas con Grabaciones del comportamiento real de los visitantes en su sitio. Al ver los clics, los toques y los movimientos del mouse de sus visitantes, puede identificar los problemas de usabilidad sobre la marcha y los problemas que encuentran;\",\n \"Encuentre las mayores oportunidades para mejorar y probar identificando en qué página y en qué paso la mayoría de los visitantes abandonan su sitio;\",\n \"Mejore las tasas de finalización de formularios en línea descubriendo qué campos tardan demasiado en llenarse, cuáles se dejan en blanco y por qué sus visitantes abandonan su formulario y página.\"\n ],\n \"additionalInformation\": \"Para usar el servicio debe tener una cuenta activa de Hotjar. Algunas funciones solo están disponibles para planes específicos.\",\n \"websiteURL\": \"https://vtex.com/\",\n \"support\": {\n \"url\": \"https://support.vtex.com/hc/requests\"\n }\n}\n```"
}
] |
code_hotjar_e33bbad7
|
[
{
"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 hotjar/public/metadata/messages/pt-BR.json from the hotjar VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"Hotjar\",\n \"headline\": \"Com um clique, comece a monitorar o comportamento de seus clientes com a ferramenta de análise de dados Hotjar.\",\n \"overview\": \"Hotjar é uma ferramenta poderosa que revela o comportamento online de seus usuários. Com as ferramentas de análise, o Hotjar fornece uma visão geral de como melhorar a experiência do usuário do site e as taxas de desempenho/conversão.\",\n \"features\": [\n \"Entenda o que os usuários querem, se preocupam e fazem no seu site, representando visualmente seus cliques, toques e comportamento de rolagem que são os indicadores mais fortes de motivação e desejo dos visitantes;\",\n \"Elimine suposições com gravações sobre o comportamento real dos visitantes em seu site. Ao ver os cliques, toques e movimentos do mouse do seu visitante, você pode identificar problemas de usabilidade em tempo real e problemas que eles encontram;\",\n \"Encontre as maiores oportunidades de aprimoramento e teste, identificando em qual página e em qual etapa a maioria dos visitantes está saindo do site;\",\n \"Melhore as taxas de preenchimento de formulários on-line descobrindo quais campos demoram muito para serem preenchidos, quais são deixados em branco e por que seus visitantes abandonam seu formulário e página.\"\n ],\n \"additionalInformation\": \"Para utilizar o serviço é preciso ter uma conta ativa do Hotjar. Algumas funcionalidades só estão disponíveis para planos específicos.\",\n \"websiteURL\": \"https://vtex.com/\",\n \"support\": {\n \"url\": \"https://support.vtex.com/hc/requests\"\n }\n}\n```"
}
] |
code_hotjar_2d6bf460
|
[
{
"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 hotjar/public/metadata/messages/en-US.json from the hotjar VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"Hotjar\",\n \"headline\": \"With one click, start monitoring your customers' behavior with the Hotjar data analysis tool.\",\n \"overview\": \"Hotjar is a powerful tool that reveals the online behavior of your users. With the analytics tools, Hotjar gives you the ‘big picture’ of how to improve your site's user experience and performance/conversion rates.\",\n \"features\": [\n \"Understand what users want, care about and do on your site by visually representing their clicks, taps and scrolling behavior – which are the strongest indicators of visitor motivation and desire;\",\n \"Eliminate guesswork with Recordings of real visitor behavior on your site. By seeing your visitor’s clicks, taps and mouse movements you can identify usability issues on the fly and issues they encounter;\",\n \"Find the biggest opportunities for improvement and testing by identifying on which page and at which step most visitors are leaving your site;\",\n \"Improve online form completion rates by discovering which fields take too long to fill, which are left blank, and why your visitors abandon your form and page.\"\n ],\n \"additionalInformation\": \"To use the service you must have an active Hotjar account. Some features are only available for specific plans.\",\n \"websiteURL\": \"https://vtex.com/\",\n \"support\": {\n \"url\": \"https://support.vtex.com/hc/requests\"\n }\n}\n```"
}
] |
code_store-footer_7f47f84f
|
[
{
"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 store-footer/messages/it-IT.json from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store/social-networks\": \"Social network\",\n \"store/section-links\": \"Link\",\n \"store/more-information-links\": \"Ulteriori informazioni\",\n \"store/payment-form\": \"Metodi di pagamento\",\n \"admin/editor.footer.title\": \"Footer\",\n \"admin/editor.footer.description\": \"Un footer (piè di pagina) che appare nella parte inferiore del tuo negozio\",\n \"admin/editor.footer.logoUrl.title\": \"URL del logo\",\n \"admin/editor.footer.numberOfSocialNetworks.title\": \"Numero di link ai social network\",\n \"admin/editor.footer.numberOfSectionLinks.title\": \"Numero di link di sezioni\",\n \"admin/editor.footer.numberOfMoreInformationLinks.title\": \"Numero di link per \\\"Ulteriori informazioni\\\"\",\n \"admin/editor.footer.numberOfBadges.title\": \"Numero di badge da visualizzare\",\n \"admin/editor.footer.numberOfPaymentForms.title\": \"Numero di metodi di pagamento disponibili\",\n \"admin/editor.footer.showPaymentMethodsInColor.title\": \"Mostra le icone dei metodi di pagamento a colori\",\n \"admin/editor.footer.showSocialNetworksInColor.title\": \"Mostra le icone dei social network a colori\",\n \"admin/editor.footer.showVtexLogoInColor.title\": \"Mostra il logo VTEX a colori\",\n \"admin/editor.footer.linksSections\": \"Sezioni di link\",\n \"admin/editor.footer.linksSections.linksSection\": \"Sezione di link\",\n \"admin/editor.footer.linksSections.linksSection.title\": \"Titolo della sezione di link\",\n \"admin/editor.footer.linksSections.linksSection.links\": \"Link della sezione di link\",\n \"admin/editor.footer.linksSections.linksSection.links.link\": \"Link\",\n \"admin/editor.footer.linksSections.linksSection.links.link.title\": \"Titolo del link\",\n \"admin/editor.footer.linksSections.linksSection.links.link.url\": \"URL del link\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target\": \"Target del link\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.self\": \"Scheda del browser corrente\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.blank\": \"Nuova scheda del browser\",\n \"admin/editor.footer.moreInformationLink\": \"Link per \\\"Ulteriori informazioni\\\"\",\n \"admin/editor.footer.moreInformationLink.title\": \"Link per \\\"Ulteriori informazioni\\\"\",\n \"admin/editor.footer.badge\": \"Badge\",\n \"admin/editor.footer.badge.title\": \"Badge\",\n \"admin/editor.footer.badge.image.title\": \"URL dell'immagine del badge\",\n \"admin/editor.footer.socialNetworks\": \"Social network\",\n \"admin/editor.footer.socialNetworks.title\": \"Social network\",\n \"admin/editor.footer.socialNetworks.url.title\": \"URL del social network\",\n \"admin/editor.footer.socialNetworks.socialNetwork.title\": \"Social network\",\n \"admin/editor.footer.paymentForms\": \"Metodi di pagamento\",\n \"admin/editor.footer.paymentForms.paymentForm\": \"Metodo di pagamento\",\n \"admin/editor.footer.paymentForms.paymentForm.title\": \"Titolo del metodo di pagamento\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes\": \"Tipi di pagamento\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes.paymentType\": \"Tipo di pagamento\",\n \"admin/editor.footer.acceptedPaymentMethods.title\": \"Metodi di pagamento accettati\",\n \"admin/editor.footer.acceptedPaymentMethods.description\": \"Metodi di pagamento accettati dal negozio\",\n \"admin/editor.footer.paymentMethodIcon.title\": \"Metodo di pagamento\",\n \"admin/editor.footer.paymentMethodIcon.description\": \"Icona del metodo di pagamento\",\n \"admin/editor.footer.paymentMethodIcon.method\": \"Nome del metodo di pagamento\",\n \"admin/editor.footer.storeInformations\": \"Informazioni del negozio\",\n \"admin/editor.footer.storeInformations.storeInformation\": \"Informazioni sul negozio\"\n}\n\n```"
}
] |
code_store-footer_36ebd80c
|
[
{
"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 store-footer/messages/th-TH.json from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store/social-networks\": \"เครือข่ายทางสังคม\",\n \"store/section-links\": \"ลิงก์\",\n \"store/more-information-links\": \"ข้อมูลเพิ่มเติม\",\n \"store/payment-form\": \"วิธีการชำระเงิน\",\n \"admin/editor.footer.title\": \"ส่วนท้ายของหน้า\",\n \"admin/editor.footer.description\": \"ส่วนท้ายของหน้าที่ปรากฏที่ด้านล่างของร้านค้าของคุณ\",\n \"admin/editor.footer.logoUrl.title\": \"URL โลโก้\",\n \"admin/editor.footer.numberOfSocialNetworks.title\": \"จำนวนลิงก์ไปยังเครือข่ายทางสังคม\",\n \"admin/editor.footer.numberOfSectionLinks.title\": \"จำนวนลิงก์ไปยังส่วนต่าง ๆ\",\n \"admin/editor.footer.numberOfMoreInformationLinks.title\": \"จำนวนลิงก์ไปยังข้อมูลเพิ่มเติม\",\n \"admin/editor.footer.numberOfBadges.title\": \"จำนวนป้ายที่จะแสดง\",\n \"admin/editor.footer.numberOfPaymentForms.title\": \"จำนวนวิธีการชำระเงินที่มี\",\n \"admin/editor.footer.showPaymentMethodsInColor.title\": \"แสดงไอคอนวิธีการชำระเงินเป็นสี\",\n \"admin/editor.footer.showSocialNetworksInColor.title\": \"แสดงไอคอนเครือข่ายทางสังคมเป็นสี\",\n \"admin/editor.footer.showVtexLogoInColor.title\": \"แสดงโลโก้ VTEX เป็นสี\",\n \"admin/editor.footer.linksSections\": \"ส่วนลิงก์\",\n \"admin/editor.footer.linksSections.linksSection\": \"ส่วนลิงก์\",\n \"admin/editor.footer.linksSections.linksSection.title\": \"ชื่อเรื่องส่วนลิงก์\",\n \"admin/editor.footer.linksSections.linksSection.links\": \"ลิงก์ที่เชื่อมโยงไปยังส่วนลิงก์\",\n \"admin/editor.footer.linksSections.linksSection.links.link\": \"ลิงก์\",\n \"admin/editor.footer.linksSections.linksSection.links.link.title\": \"ชื่อเรื่องลิงก์\",\n \"admin/editor.footer.linksSections.linksSection.links.link.url\": \"URL ลิงก์\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target\": \"เป้าหมายที่ต้องการเชื่อมโยง\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.self\": \"แท็บเบราว์เซอร์ปัจจุบัน\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.blank\": \"แท็บเบราว์เซอร์ใหม่\",\n \"admin/editor.footer.moreInformationLink\": \"ลิงก์ไปยังข้อมูลเพิ่มเติม\",\n \"admin/editor.footer.moreInformationLink.title\": \"ลิงก์ไปยังข้อมูลเพิ่มเติม\",\n \"admin/editor.footer.badge\": \"ป้าย\",\n \"admin/editor.footer.badge.title\": \"ป้าย\",\n \"admin/editor.footer.badge.image.title\": \"URL รูปภาพป้าย\",\n \"admin/editor.footer.socialNetworks\": \"เครือข่ายทางสังคม\",\n \"admin/editor.footer.socialNetworks.title\": \"เครือข่ายทางสังคม\",\n \"admin/editor.footer.socialNetworks.url.title\": \"URL เครือข่ายทางสังคม\",\n \"admin/editor.footer.socialNetworks.socialNetwork.title\": \"เครือข่ายทางสังคม\",\n \"admin/editor.footer.paymentForms\": \"วิธีการชำระเงิน\",\n \"admin/editor.footer.paymentForms.paymentForm\": \"แบบฟอร์มการชำระเงิน\",\n \"admin/editor.footer.paymentForms.paymentForm.title\": \"ชื่อเรื่องแบบฟอร์มการชำระเงิน\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes\": \"ประเภทการชำระเงิน\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes.paymentType\": \"ประเภทการชำระเงิน\",\n \"admin/editor.footer.acceptedPaymentMethods.title\": \"วิธีการชำระเงินที่รับ\",\n \"admin/editor.footer.acceptedPaymentMethods.description\": \"วิธีการชำระเงินที่ร้านค้ารับ\",\n \"admin/editor.footer.paymentMethodIcon.title\": \"วิธีการชำระเงิน\",\n \"admin/editor.footer.paymentMethodIcon.description\": \"ไอคอนวิธีการชำระเงิน\",\n \"admin/editor.footer.paymentMethodIcon.method\": \"ชื่อวิธีการชำระเงิน\",\n \"admin/editor.footer.storeInformations\": \"ข้อมูลร้านค้า\",\n \"admin/editor.footer.storeInformations.storeInformation\": \"ข้อมูลร้านค้า\"\n}\n\n```"
}
] |
code_store-footer_965f9c41
|
[
{
"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 store-footer/messages/ko-KR.json from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store/social-networks\": \"소셜 네트워크\",\n \"store/section-links\": \"링크\",\n \"store/more-information-links\": \"추가 정보\",\n \"store/payment-form\": \"결제 방법\",\n \"admin/editor.footer.title\": \"푸터\",\n \"admin/editor.footer.description\": \"스토어 하단에 나타나는 푸터\",\n \"admin/editor.footer.logoUrl.title\": \"로고 URL\",\n \"admin/editor.footer.numberOfSocialNetworks.title\": \"소셜 네트워크 링크 수\",\n \"admin/editor.footer.numberOfSectionLinks.title\": \"섹션 링크 수\",\n \"admin/editor.footer.numberOfMoreInformationLinks.title\": \"추가 정보 링크 수\",\n \"admin/editor.footer.numberOfBadges.title\": \"표시할 배지 수\",\n \"admin/editor.footer.numberOfPaymentForms.title\": \"사용 가능한 결제 방법 수\",\n \"admin/editor.footer.showPaymentMethodsInColor.title\": \"결제 방법 아이콘 색상 표시\",\n \"admin/editor.footer.showSocialNetworksInColor.title\": \"소셜 네트워크 아이콘 색상 표시\",\n \"admin/editor.footer.showVtexLogoInColor.title\": \"VTEX 로고 색상 표시\",\n \"admin/editor.footer.linksSections\": \"링크 섹션\",\n \"admin/editor.footer.linksSections.linksSection\": \"링크 섹션\",\n \"admin/editor.footer.linksSections.linksSection.title\": \"링크 섹션 제목\",\n \"admin/editor.footer.linksSections.linksSection.links\": \"링크 섹션 링크\",\n \"admin/editor.footer.linksSections.linksSection.links.link\": \"링크\",\n \"admin/editor.footer.linksSections.linksSection.links.link.title\": \"링크 제목\",\n \"admin/editor.footer.linksSections.linksSection.links.link.url\": \"링크 URL\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target\": \"링크 대상\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.self\": \"현재 브라우저 탭\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.blank\": \"새 브라우저 탭\",\n \"admin/editor.footer.moreInformationLink\": \"추가 정보 링크\",\n \"admin/editor.footer.moreInformationLink.title\": \"추가 정보 링크\",\n \"admin/editor.footer.badge\": \"배지\",\n \"admin/editor.footer.badge.title\": \"배지\",\n \"admin/editor.footer.badge.image.title\": \"배지 이미지 URL\",\n \"admin/editor.footer.socialNetworks\": \"소셜 네트워크\",\n \"admin/editor.footer.socialNetworks.title\": \"소셜 네트워크\",\n \"admin/editor.footer.socialNetworks.url.title\": \"소셜 네트워크 URL\",\n \"admin/editor.footer.socialNetworks.socialNetwork.title\": \"소셜 네트워크\",\n \"admin/editor.footer.paymentForms\": \"결제 방법\",\n \"admin/editor.footer.paymentForms.paymentForm\": \"결제 양식\",\n \"admin/editor.footer.paymentForms.paymentForm.title\": \"결제 양식 제목\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes\": \"결제 유형\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes.paymentType\": \"결제 유형\",\n \"admin/editor.footer.acceptedPaymentMethods.title\": \"승인된 결제 방법\",\n \"admin/editor.footer.acceptedPaymentMethods.description\": \"스토어에서 승인한 지불 방법\",\n \"admin/editor.footer.paymentMethodIcon.title\": \"결제 방법\",\n \"admin/editor.footer.paymentMethodIcon.description\": \"결제 방법 아이콘\",\n \"admin/editor.footer.paymentMethodIcon.method\": \"결제 방법 이름\",\n \"admin/editor.footer.storeInformations\": \"스토어 정보\",\n \"admin/editor.footer.storeInformations.storeInformation\": \"스토어 정보\"\n}\n\n```"
}
] |
code_store-footer_bd2a6713
|
[
{
"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 store-footer/messages/nn-NO.json from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store/social-networks\": \"Sosiale nettverk\",\n \"store/section-links\": \"Lenker\",\n \"store/more-information-links\": \"Mer informasjon\",\n \"store/payment-form\": \"Betalingsmåter\",\n \"admin/editor.footer.title\": \"Bunntekst\",\n \"admin/editor.footer.description\": \"En bunntekst som vises nederst i butikken\",\n \"admin/editor.footer.logoUrl.title\": \"Logo-URL\",\n \"admin/editor.footer.numberOfSocialNetworks.title\": \"Antall lenker til sosiale nettverk\",\n \"admin/editor.footer.numberOfSectionLinks.title\": \"Antall lenker til avsnitt\",\n \"admin/editor.footer.numberOfMoreInformationLinks.title\": \"Antall lenker til mer informasjon\",\n \"admin/editor.footer.numberOfBadges.title\": \"Antall merker som skal vises\",\n \"admin/editor.footer.numberOfPaymentForms.title\": \"Antall tilgjengelige betalingsmåter\",\n \"admin/editor.footer.showPaymentMethodsInColor.title\": \"Vis ikoner for betalingsmåter i farge\",\n \"admin/editor.footer.showSocialNetworksInColor.title\": \"Vis ikoner for sosiale nettverk i farge\",\n \"admin/editor.footer.showVtexLogoInColor.title\": \"Vis VTEX-logo i farge\",\n \"admin/editor.footer.linksSections\": \"Avsnitt for lenker\",\n \"admin/editor.footer.linksSections.linksSection\": \"Lenkedel\",\n \"admin/editor.footer.linksSections.linksSection.title\": \"Tittel på lenkedel\",\n \"admin/editor.footer.linksSections.linksSection.links\": \"Lenke til lenkedel\",\n \"admin/editor.footer.linksSections.linksSection.links.link\": \"Lenke\",\n \"admin/editor.footer.linksSections.linksSection.links.link.title\": \"Lenketittel\",\n \"admin/editor.footer.linksSections.linksSection.links.link.url\": \"Lenke-URL\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target\": \"Lenkemål\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.self\": \"Gjeldende nettleserfane\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.blank\": \"Ny nettleserfane\",\n \"admin/editor.footer.moreInformationLink\": \"Lenker til mer informasjon\",\n \"admin/editor.footer.moreInformationLink.title\": \"Lenke til mer informasjon\",\n \"admin/editor.footer.badge\": \"Merker\",\n \"admin/editor.footer.badge.title\": \"Merke\",\n \"admin/editor.footer.badge.image.title\": \"URL til merkebilde\",\n \"admin/editor.footer.socialNetworks\": \"Sosiale nettverk\",\n \"admin/editor.footer.socialNetworks.title\": \"Sosialt nettverk\",\n \"admin/editor.footer.socialNetworks.url.title\": \"URL til sosialt nettverk\",\n \"admin/editor.footer.socialNetworks.socialNetwork.title\": \"Sosialt nettverk\",\n \"admin/editor.footer.paymentForms\": \"Betalingsmåter\",\n \"admin/editor.footer.paymentForms.paymentForm\": \"Betalingsskjema\",\n \"admin/editor.footer.paymentForms.paymentForm.title\": \"Tittel på betalingsskjema\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes\": \"Betalingstyper\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes.paymentType\": \"Betalingstype\",\n \"admin/editor.footer.acceptedPaymentMethods.title\": \"Aksepterte betalingsmåter\",\n \"admin/editor.footer.acceptedPaymentMethods.description\": \"Betalingsmåter som aksepteres av butikken\",\n \"admin/editor.footer.paymentMethodIcon.title\": \"Betalingsmåte\",\n \"admin/editor.footer.paymentMethodIcon.description\": \"Ikon for betalingsmåte\",\n \"admin/editor.footer.paymentMethodIcon.method\": \"Navn på betalingsmåte\",\n \"admin/editor.footer.storeInformations\": \"Butikkinformasjon\",\n \"admin/editor.footer.storeInformations.storeInformation\": \"Butikkinformasjon\"\n}\n\n```"
}
] |
code_store-footer_ef8f51a1
|
[
{
"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 store-footer/messages/ja-JP.json from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store/social-networks\": \"ソーシャルネットワーク\",\n \"store/section-links\": \"リンク\",\n \"store/more-information-links\": \"詳細情報\",\n \"store/payment-form\": \"支払い方法\",\n \"admin/editor.footer.title\": \"フッター\",\n \"admin/editor.footer.description\": \"ストアの最下部に表示されるフッター\",\n \"admin/editor.footer.logoUrl.title\": \"ロゴ URL\",\n \"admin/editor.footer.numberOfSocialNetworks.title\": \"ソーシャルネットワークリンクの数\",\n \"admin/editor.footer.numberOfSectionLinks.title\": \"セクションリンクの数\",\n \"admin/editor.footer.numberOfMoreInformationLinks.title\": \"詳細情報リンクの数\",\n \"admin/editor.footer.numberOfBadges.title\": \"表示されるバッジの数\",\n \"admin/editor.footer.numberOfPaymentForms.title\": \"利用できる支払方法の数\",\n \"admin/editor.footer.showPaymentMethodsInColor.title\": \"支払い方法アイコンをカラーで表示する\",\n \"admin/editor.footer.showSocialNetworksInColor.title\": \"ソーシャルネットワークアイコンをカラーで表示する\",\n \"admin/editor.footer.showVtexLogoInColor.title\": \"VTEX ロゴをカラーで表示する\",\n \"admin/editor.footer.linksSections\": \"セクションをリンクする\",\n \"admin/editor.footer.linksSections.linksSection\": \"セクションをリンクする\",\n \"admin/editor.footer.linksSections.linksSection.title\": \"セクションタイトルをリンクする\",\n \"admin/editor.footer.linksSections.linksSection.links\": \"セクションリンクをリンクする\",\n \"admin/editor.footer.linksSections.linksSection.links.link\": \"リンク\",\n \"admin/editor.footer.linksSections.linksSection.links.link.title\": \"タイトルをリンクする\",\n \"admin/editor.footer.linksSections.linksSection.links.link.url\": \"URL をリンクする\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target\": \"ターゲットをリンクする\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.self\": \"現在のブラウザタブ\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.blank\": \"新しいブラウザタブ\",\n \"admin/editor.footer.moreInformationLink\": \"詳細情報リンク\",\n \"admin/editor.footer.moreInformationLink.title\": \"詳細情報リンク\",\n \"admin/editor.footer.badge\": \"バッジ\",\n \"admin/editor.footer.badge.title\": \"バッジ\",\n \"admin/editor.footer.badge.image.title\": \"バッジ画像 URL\",\n \"admin/editor.footer.socialNetworks\": \"ソーシャルネットワーク\",\n \"admin/editor.footer.socialNetworks.title\": \"ソーシャルネットワーク\",\n \"admin/editor.footer.socialNetworks.url.title\": \"ソーシャルネットワーク URL\",\n \"admin/editor.footer.socialNetworks.socialNetwork.title\": \"ソーシャルネットワーク\",\n \"admin/editor.footer.paymentForms\": \"支払い方法\",\n \"admin/editor.footer.paymentForms.paymentForm\": \"支払いフォーム\",\n \"admin/editor.footer.paymentForms.paymentForm.title\": \"支払いフォームタイトル\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes\": \"支払いタイプ\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes.paymentType\": \"支払いタイプ\",\n \"admin/editor.footer.acceptedPaymentMethods.title\": \"受け入れられた支払い方法\",\n \"admin/editor.footer.acceptedPaymentMethods.description\": \"ストアが受け入れた支払い方法\",\n \"admin/editor.footer.paymentMethodIcon.title\": \"支払い方法\",\n \"admin/editor.footer.paymentMethodIcon.description\": \"支払い方法アイコン\",\n \"admin/editor.footer.paymentMethodIcon.method\": \"支払い方法名\",\n \"admin/editor.footer.storeInformations\": \"ストア情報\",\n \"admin/editor.footer.storeInformations.storeInformation\": \"ストア情報\"\n}\n\n```"
}
] |
code_store-footer_bcb083b6
|
[
{
"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 store-footer/messages/bg-BG.json from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store/social-networks\": \"Социални мрежи\",\n \"store/section-links\": \"Линкове\",\n \"store/more-information-links\": \"Повече информация\",\n \"store/payment-form\": \"Формуляри за плащане\",\n \"admin/editor.footer.title\": \"Долен колонтитул\",\n \"admin/editor.footer.description\": \"Долен колонтитул, който се появява в долната част на магазина ви\",\n \"admin/editor.footer.logoUrl.title\": \"URL адрес на логото\",\n \"admin/editor.footer.numberOfSocialNetworks.title\": \"Брой линкове към социални мрежи\",\n \"admin/editor.footer.numberOfSectionLinks.title\": \"Брой линкове към раздели\",\n \"admin/editor.footer.numberOfMoreInformationLinks.title\": \"Брой линкове за повече информация\",\n \"admin/editor.footer.numberOfBadges.title\": \"Брой значки, които да се показват\",\n \"admin/editor.footer.numberOfPaymentForms.title\": \"Брой налични начини за плащане\",\n \"admin/editor.footer.showPaymentMethodsInColor.title\": \"Показване на цветна икона за начините на плащане\",\n \"admin/editor.footer.showSocialNetworksInColor.title\": \"Показване на цветни икони за социалните мрежи\",\n \"admin/editor.footer.showVtexLogoInColor.title\": \"Показване на цветно лого на VTEX\",\n \"admin/editor.footer.linksSections\": \"Раздели с линкове\",\n \"admin/editor.footer.linksSections.linksSection\": \"Раздел с линк\",\n \"admin/editor.footer.linksSections.linksSection.title\": \"Заглавие на раздел с линк\",\n \"admin/editor.footer.linksSections.linksSection.links\": \"Линкове за раздел с линк\",\n \"admin/editor.footer.linksSections.linksSection.links.link\": \"Линк\",\n \"admin/editor.footer.linksSections.linksSection.links.link.title\": \"Заглавие на линк\",\n \"admin/editor.footer.linksSections.linksSection.links.link.url\": \"URL адрес на линк\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target\": \"Цел на линка\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.self\": \"Текущ раздел в браузъра\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.blank\": \"Нов раздел в браузъра\",\n \"admin/editor.footer.moreInformationLink\": \"Линкове с повече информация\",\n \"admin/editor.footer.moreInformationLink.title\": \"Линк с повече информация\",\n \"admin/editor.footer.badge\": \"Значки\",\n \"admin/editor.footer.badge.title\": \"Значка\",\n \"admin/editor.footer.badge.image.title\": \"URL адрес на изображение на значка\",\n \"admin/editor.footer.socialNetworks\": \"Социални мрежи\",\n \"admin/editor.footer.socialNetworks.title\": \"Социална мрежа\",\n \"admin/editor.footer.socialNetworks.url.title\": \"URL адрес на социална мрежа\",\n \"admin/editor.footer.socialNetworks.socialNetwork.title\": \"Социална мрежа\",\n \"admin/editor.footer.paymentForms\": \"Формуляри за плащане\",\n \"admin/editor.footer.paymentForms.paymentForm\": \"Формуляр за плащане\",\n \"admin/editor.footer.paymentForms.paymentForm.title\": \"Заглавие на формуляр за плащане\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes\": \"Типове плащане\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes.paymentType\": \"Тип плащане\",\n \"admin/editor.footer.acceptedPaymentMethods.title\": \"Възможни начини на плащане\",\n \"admin/editor.footer.acceptedPaymentMethods.description\": \"Начини за плащане, които магазинът приема\",\n \"admin/editor.footer.paymentMethodIcon.title\": \"Начин на плащане\",\n \"admin/editor.footer.paymentMethodIcon.description\": \"Икона за начин на плащане\",\n \"admin/editor.footer.paymentMethodIcon.method\": \"Име на начин на плащане\",\n \"admin/editor.footer.storeInformations\": \"Данни за магазина\",\n \"admin/editor.footer.storeInformations.storeInformation\": \"Информация за магазина\"\n}\n\n```"
}
] |
code_store-footer_4e9c462f
|
[
{
"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 store-footer/messages/id-ID.json from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store/social-networks\": \"Jejaring Sosial\",\n \"store/section-links\": \"Tautan\",\n \"store/more-information-links\": \"Informasi Selengkapnya\",\n \"store/payment-form\": \"Metode Pembayaran\",\n \"admin/editor.footer.title\": \"Footer\",\n \"admin/editor.footer.description\": \"Footer yang muncul di bagian bawah toko Anda\",\n \"admin/editor.footer.logoUrl.title\": \"URL Logo\",\n \"admin/editor.footer.numberOfSocialNetworks.title\": \"Jumlah tautan jejaring sosial\",\n \"admin/editor.footer.numberOfSectionLinks.title\": \"Jumlah tautan bagian\",\n \"admin/editor.footer.numberOfMoreInformationLinks.title\": \"Jumlah tautan informasi selengkapnya\",\n \"admin/editor.footer.numberOfBadges.title\": \"Jumlah badge yang akan ditampilkan\",\n \"admin/editor.footer.numberOfPaymentForms.title\": \"Jumlah metode pembayaran yang tersedia\",\n \"admin/editor.footer.showPaymentMethodsInColor.title\": \"Tampilkan ikon metode pembayaran dalam warna\",\n \"admin/editor.footer.showSocialNetworksInColor.title\": \"Tampilkan ikon jejaring sosial dalam warna\",\n \"admin/editor.footer.showVtexLogoInColor.title\": \"Tampilkan logo VTEX dalam warna\",\n \"admin/editor.footer.linksSections\": \"Bagian Tautan\",\n \"admin/editor.footer.linksSections.linksSection\": \"Bagian Tautan\",\n \"admin/editor.footer.linksSections.linksSection.title\": \"Judul Bagian Tautan\",\n \"admin/editor.footer.linksSections.linksSection.links\": \"Tautan Bagian Tautan\",\n \"admin/editor.footer.linksSections.linksSection.links.link\": \"Tautan\",\n \"admin/editor.footer.linksSections.linksSection.links.link.title\": \"Judul Tautan\",\n \"admin/editor.footer.linksSections.linksSection.links.link.url\": \"URL Tautan\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target\": \"Target Tautan\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.self\": \"Tab browser saat ini\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.blank\": \"Tab browser baru\",\n \"admin/editor.footer.moreInformationLink\": \"Tautan Informasi Selengkapnya\",\n \"admin/editor.footer.moreInformationLink.title\": \"Tautan Informasi Selengkapnya\",\n \"admin/editor.footer.badge\": \"Badge\",\n \"admin/editor.footer.badge.title\": \"Badge\",\n \"admin/editor.footer.badge.image.title\": \"URL gambar badge\",\n \"admin/editor.footer.socialNetworks\": \"Jejaring Sosial\",\n \"admin/editor.footer.socialNetworks.title\": \"Jejaring Sosial\",\n \"admin/editor.footer.socialNetworks.url.title\": \"URL Jejaring Sosial\",\n \"admin/editor.footer.socialNetworks.socialNetwork.title\": \"Jejaring Sosial\",\n \"admin/editor.footer.paymentForms\": \"Metode Pembayaran\",\n \"admin/editor.footer.paymentForms.paymentForm\": \"Formulir Pembayaran\",\n \"admin/editor.footer.paymentForms.paymentForm.title\": \"Judul Formulir Pembayaran\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes\": \"Jenis Pembayaran\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes.paymentType\": \"Jenis Pembayaran\",\n \"admin/editor.footer.acceptedPaymentMethods.title\": \"Metode Pembayaran yang Diterima\",\n \"admin/editor.footer.acceptedPaymentMethods.description\": \"Metode pembayaran yang diterima toko\",\n \"admin/editor.footer.paymentMethodIcon.title\": \"Metode Pembayaran\",\n \"admin/editor.footer.paymentMethodIcon.description\": \"Ikon metode pembayaran\",\n \"admin/editor.footer.paymentMethodIcon.method\": \"Nama metode pembayaran\",\n \"admin/editor.footer.storeInformations\": \"Informasi Toko\",\n \"admin/editor.footer.storeInformations.storeInformation\": \"Informasi Toko\"\n}\n\n```"
}
] |
code_store-footer_8f03b500
|
[
{
"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 store-footer/messages/pt.json from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store/social-networks\": \"Redes sociais\",\n \"store/section-links\": \"Links\",\n \"store/more-information-links\": \"Mais informações\",\n \"store/payment-form\": \"Meios de pagamento\",\n \"admin/editor.footer.title\": \"Rodapé\",\n \"admin/editor.footer.description\": \"Um rodapé que aparece na parte inferior da sua loja\",\n \"admin/editor.footer.logoUrl.title\": \"URL do logotipo\",\n \"admin/editor.footer.numberOfSocialNetworks.title\": \"Número de links de redes sociais\",\n \"admin/editor.footer.numberOfSectionLinks.title\": \"Número de links de seções\",\n \"admin/editor.footer.numberOfMoreInformationLinks.title\": \"Número de links para mais informações\",\n \"admin/editor.footer.numberOfBadges.title\": \"Número de selos a serem exibidos\",\n \"admin/editor.footer.numberOfPaymentForms.title\": \"Número de meios de pagamento disponíveis\",\n \"admin/editor.footer.showPaymentMethodsInColor.title\": \"Mostrar os ícones dos meios de pagamento coloridos\",\n \"admin/editor.footer.showSocialNetworksInColor.title\": \"Mostrar os ícones das redes sociais coloridos\",\n \"admin/editor.footer.showVtexLogoInColor.title\": \"Mostrar o logotipo da VTEX colorido\",\n \"admin/editor.footer.linksSections\": \"Seções de links\",\n \"admin/editor.footer.linksSections.linksSection\": \"Seção de links\",\n \"admin/editor.footer.linksSections.linksSection.title\": \"Título da seção de links\",\n \"admin/editor.footer.linksSections.linksSection.links\": \"Links da seção de links\",\n \"admin/editor.footer.linksSections.linksSection.links.link\": \"Link\",\n \"admin/editor.footer.linksSections.linksSection.links.link.title\": \"Título do link\",\n \"admin/editor.footer.linksSections.linksSection.links.link.url\": \"URL do link\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target\": \"Destino do link\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.self\": \"Janela atual do navegador\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.blank\": \"Nova janela do navegador\",\n \"admin/editor.footer.moreInformationLink\": \"Links adicionais\",\n \"admin/editor.footer.moreInformationLink.title\": \"Link adicional\",\n \"admin/editor.footer.badge\": \"Selos\",\n \"admin/editor.footer.badge.title\": \"Selo\",\n \"admin/editor.footer.badge.image.title\": \"URL da imagem do selo\",\n \"admin/editor.footer.socialNetworks\": \"Redes sociais\",\n \"admin/editor.footer.socialNetworks.title\": \"Rede social\",\n \"admin/editor.footer.socialNetworks.url.title\": \"URL da rede social\",\n \"admin/editor.footer.socialNetworks.socialNetwork.title\": \"Rede social\",\n \"admin/editor.footer.paymentForms\": \"Meios de pagamento\",\n \"admin/editor.footer.paymentForms.paymentForm\": \"Meio de pagamento\",\n \"admin/editor.footer.paymentForms.paymentForm.title\": \"Título do meio de pagamento\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes\": \"Tipos de pagamento\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes.paymentType\": \"Tipo de pagamento\",\n \"admin/editor.footer.acceptedPaymentMethods.title\": \"Meios de pagamento aceitos\",\n \"admin/editor.footer.acceptedPaymentMethods.description\": \"Meios de pagamento aceitos pela loja\",\n \"admin/editor.footer.paymentMethodIcon.title\": \"Meio de pagamento\",\n \"admin/editor.footer.paymentMethodIcon.description\": \"Ícone do meio de pagamento\",\n \"admin/editor.footer.paymentMethodIcon.method\": \"Nome do meio de pagamento\",\n \"admin/editor.footer.storeInformations\": \"Informações da loja\",\n \"admin/editor.footer.storeInformations.storeInformation\": \"Informações da loja\"\n}\n\n```"
}
] |
code_store-footer_9b44000d
|
[
{
"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 store-footer/messages/ar-SA.json from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store/social-networks\": \"مواقع التواصل الإجتماعي\",\n \"store/section-links\": \"الروابط\",\n \"store/more-information-links\": \"مزيد من المعلومات\",\n \"store/payment-form\": \"طرق الدفع\",\n \"admin/editor.footer.title\": \"تذييل الصفحة\",\n \"admin/editor.footer.description\": \"تذييل يظهر في الجزء السفلي من متجرك\",\n \"admin/editor.footer.logoUrl.title\": \"عنوان الشعار\",\n \"admin/editor.footer.numberOfSocialNetworks.title\": \"عدد روابط الشبكات الاجتماعية\",\n \"admin/editor.footer.numberOfSectionLinks.title\": \"عدد روابط القسم\",\n \"admin/editor.footer.numberOfMoreInformationLinks.title\": \"عدد روابط المعلومات الإضافية\",\n \"admin/editor.footer.numberOfBadges.title\": \"عدد الشارات التي سيتم عرضها\",\n \"admin/editor.footer.numberOfPaymentForms.title\": \"عدد طرق الدفع المتاحة\",\n \"admin/editor.footer.showPaymentMethodsInColor.title\": \"إظهار أيقونات طرق الدفع باللون\",\n \"admin/editor.footer.showSocialNetworksInColor.title\": \"إظهار أيقونات الشبكات الاجتماعية باللون\",\n \"admin/editor.footer.showVtexLogoInColor.title\": \"إظهار شعار VTEX باللون\",\n \"admin/editor.footer.linksSections\": \"روابط الأقسام\",\n \"admin/editor.footer.linksSections.linksSection\": \"رابط القسم\",\n \"admin/editor.footer.linksSections.linksSection.title\": \"عنوان قسم الرابط\",\n \"admin/editor.footer.linksSections.linksSection.links\": \"روابط قسم الرابط\",\n \"admin/editor.footer.linksSections.linksSection.links.link\": \"الرابط\",\n \"admin/editor.footer.linksSections.linksSection.links.link.title\": \"عنوان الرابط\",\n \"admin/editor.footer.linksSections.linksSection.links.link.url\": \"عنوان الرابط\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target\": \"هدف الرابط\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.self\": \"تبويب المتصفح الحالي\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.blank\": \"تبويب متصفح جديد\",\n \"admin/editor.footer.moreInformationLink\": \"روابط المزيد من المعلومات\",\n \"admin/editor.footer.moreInformationLink.title\": \"رابط المزيد من المعلومات\",\n \"admin/editor.footer.badge\": \"شارات\",\n \"admin/editor.footer.badge.title\": \"شارة\",\n \"admin/editor.footer.badge.image.title\": \"رابط صورة الشارة\",\n \"admin/editor.footer.socialNetworks\": \"الشبكات الاجتماعية\",\n \"admin/editor.footer.socialNetworks.title\": \"الشبكة الاجتماعية\",\n \"admin/editor.footer.socialNetworks.url.title\": \"رابط الشبكة الاجتماعية\",\n \"admin/editor.footer.socialNetworks.socialNetwork.title\": \"الشبكة الاجتماعية\",\n \"admin/editor.footer.paymentForms\": \"طرق الدفع\",\n \"admin/editor.footer.paymentForms.paymentForm\": \"استمارة الدفع\",\n \"admin/editor.footer.paymentForms.paymentForm.title\": \"عنوان استمارة الدفع\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes\": \"أنواع الدفع\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes.paymentType\": \"نوع الدفع\",\n \"admin/editor.footer.acceptedPaymentMethods.title\": \"طرق الدفع المقبولة\",\n \"admin/editor.footer.acceptedPaymentMethods.description\": \"طرق الدفع المقبولة من المتجر\",\n \"admin/editor.footer.paymentMethodIcon.title\": \"طريقة الدفع\",\n \"admin/editor.footer.paymentMethodIcon.description\": \"أيقونة طريقة الدفع\",\n \"admin/editor.footer.paymentMethodIcon.method\": \"اسم طريقة الدفع\",\n \"admin/editor.footer.storeInformations\": \"معلومات المتجر\",\n \"admin/editor.footer.storeInformations.storeInformation\": \"معلومات المتجر\"\n}\n\n```"
}
] |
code_store-footer_4558f324
|
[
{
"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 store-footer/messages/en.json from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store/social-networks\": \"Social Media\",\n \"store/section-links\": \"Links\",\n \"store/more-information-links\": \"More information\",\n \"store/payment-form\": \"Payment Methods\",\n \"admin/editor.footer.title\": \"Footer\",\n \"admin/editor.footer.description\": \"A footer that appears at the bottom of your store\",\n \"admin/editor.footer.logoUrl.title\": \"Logo URL\",\n \"admin/editor.footer.numberOfSocialNetworks.title\": \"Number of social media links\",\n \"admin/editor.footer.numberOfSectionLinks.title\": \"Number of section links\",\n \"admin/editor.footer.numberOfMoreInformationLinks.title\": \"Number of more-information links\",\n \"admin/editor.footer.numberOfBadges.title\": \"Number of badges to be displayed\",\n \"admin/editor.footer.numberOfPaymentForms.title\": \"Number of payment methods available\",\n \"admin/editor.footer.showPaymentMethodsInColor.title\": \"Show payment method icons in color\",\n \"admin/editor.footer.showSocialNetworksInColor.title\": \"Show social media icons in color\",\n \"admin/editor.footer.showVtexLogoInColor.title\": \"Show VTEX logo in color\",\n \"admin/editor.footer.linksSections\": \"Link Sections\",\n \"admin/editor.footer.linksSections.linksSection\": \"Link section\",\n \"admin/editor.footer.linksSections.linksSection.title\": \"Link section title\",\n \"admin/editor.footer.linksSections.linksSection.links\": \"Link Section Links\",\n \"admin/editor.footer.linksSections.linksSection.links.link\": \"Link\",\n \"admin/editor.footer.linksSections.linksSection.links.link.title\": \"Link title\",\n \"admin/editor.footer.linksSections.linksSection.links.link.url\": \"Link URL\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target\": \"Link target\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.self\": \"Current Browser Tab\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.blank\": \"New Browser Tab\",\n \"admin/editor.footer.moreInformationLink\": \"More Information Links\",\n \"admin/editor.footer.moreInformationLink.title\": \"More information link\",\n \"admin/editor.footer.badge\": \"Badges\",\n \"admin/editor.footer.badge.title\": \"Badge\",\n \"admin/editor.footer.badge.image.title\": \"Badge image URL\",\n \"admin/editor.footer.socialNetworks\": \"Social Media\",\n \"admin/editor.footer.socialNetworks.title\": \"Social Media\",\n \"admin/editor.footer.socialNetworks.url.title\": \"Social media URL\",\n \"admin/editor.footer.socialNetworks.socialNetwork.title\": \"Social media\",\n \"admin/editor.footer.paymentForms\": \"Payment Methods\",\n \"admin/editor.footer.paymentForms.paymentForm\": \"Payment method\",\n \"admin/editor.footer.paymentForms.paymentForm.title\": \"Payment method title\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes\": \"Payment Types\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes.paymentType\": \"Payment type\",\n \"admin/editor.footer.acceptedPaymentMethods.title\": \"Accepted Payment Methods\",\n \"admin/editor.footer.acceptedPaymentMethods.description\": \"Payment methods accepted by the store\",\n \"admin/editor.footer.paymentMethodIcon.title\": \"Payment Method\",\n \"admin/editor.footer.paymentMethodIcon.description\": \"Payment method icon\",\n \"admin/editor.footer.paymentMethodIcon.method\": \"Payment method name\",\n \"admin/editor.footer.storeInformations\": \"Store Information\",\n \"admin/editor.footer.storeInformations.storeInformation\": \"Store information\"\n}\n\n```"
}
] |
code_store-footer_e4d4bdea
|
[
{
"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 store-footer/messages/no-NO.json from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store/social-networks\": \"Sosiale nettverk\",\n \"store/section-links\": \"Lenker\",\n \"store/more-information-links\": \"Mer informasjon\",\n \"store/payment-form\": \"Betalingsmåter\",\n \"admin/editor.footer.title\": \"Bunntekst\",\n \"admin/editor.footer.description\": \"En bunntekst som vises nederst i butikken\",\n \"admin/editor.footer.logoUrl.title\": \"Logo-URL\",\n \"admin/editor.footer.numberOfSocialNetworks.title\": \"Antall lenker til sosiale nettverk\",\n \"admin/editor.footer.numberOfSectionLinks.title\": \"Antall lenker til avsnitt\",\n \"admin/editor.footer.numberOfMoreInformationLinks.title\": \"Antall lenker til mer informasjon\",\n \"admin/editor.footer.numberOfBadges.title\": \"Antall merker som skal vises\",\n \"admin/editor.footer.numberOfPaymentForms.title\": \"Antall tilgjengelige betalingsmåter\",\n \"admin/editor.footer.showPaymentMethodsInColor.title\": \"Vis ikoner for betalingsmåter i farge\",\n \"admin/editor.footer.showSocialNetworksInColor.title\": \"Vis ikoner for sosiale nettverk i farge\",\n \"admin/editor.footer.showVtexLogoInColor.title\": \"Vis VTEX-logo i farge\",\n \"admin/editor.footer.linksSections\": \"Avsnitt for lenker\",\n \"admin/editor.footer.linksSections.linksSection\": \"Lenkedel\",\n \"admin/editor.footer.linksSections.linksSection.title\": \"Tittel på lenkedel\",\n \"admin/editor.footer.linksSections.linksSection.links\": \"Lenke til lenkedel\",\n \"admin/editor.footer.linksSections.linksSection.links.link\": \"Lenke\",\n \"admin/editor.footer.linksSections.linksSection.links.link.title\": \"Lenketittel\",\n \"admin/editor.footer.linksSections.linksSection.links.link.url\": \"Lenke-URL\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target\": \"Lenkemål\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.self\": \"Gjeldende nettleserfane\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.blank\": \"Ny nettleserfane\",\n \"admin/editor.footer.moreInformationLink\": \"Lenker til mer informasjon\",\n \"admin/editor.footer.moreInformationLink.title\": \"Lenke til mer informasjon\",\n \"admin/editor.footer.badge\": \"Merker\",\n \"admin/editor.footer.badge.title\": \"Merke\",\n \"admin/editor.footer.badge.image.title\": \"URL til merkebilde\",\n \"admin/editor.footer.socialNetworks\": \"Sosiale nettverk\",\n \"admin/editor.footer.socialNetworks.title\": \"Sosialt nettverk\",\n \"admin/editor.footer.socialNetworks.url.title\": \"URL til sosialt nettverk\",\n \"admin/editor.footer.socialNetworks.socialNetwork.title\": \"Sosialt nettverk\",\n \"admin/editor.footer.paymentForms\": \"Betalingsmåter\",\n \"admin/editor.footer.paymentForms.paymentForm\": \"Betalingsskjema\",\n \"admin/editor.footer.paymentForms.paymentForm.title\": \"Tittel på betalingsskjema\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes\": \"Betalingstyper\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes.paymentType\": \"Betalingstype\",\n \"admin/editor.footer.acceptedPaymentMethods.title\": \"Aksepterte betalingsmåter\",\n \"admin/editor.footer.acceptedPaymentMethods.description\": \"Betalingsmåter som aksepteres av butikken\",\n \"admin/editor.footer.paymentMethodIcon.title\": \"Betalingsmåte\",\n \"admin/editor.footer.paymentMethodIcon.description\": \"Ikon for betalingsmåte\",\n \"admin/editor.footer.paymentMethodIcon.method\": \"Navn på betalingsmåte\",\n \"admin/editor.footer.storeInformations\": \"Butikkinformasjon\",\n \"admin/editor.footer.storeInformations.storeInformation\": \"Butikkinformasjon\"\n}\n\n```"
}
] |
code_store-footer_33909711
|
[
{
"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 store-footer/messages/ro-RO.json from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store/social-networks\": \"Rețele sociale\",\n \"store/section-links\": \"Link-uri\",\n \"store/more-information-links\": \"Mai multe informații\",\n \"store/payment-form\": \"Metode de plată\",\n \"admin/editor.footer.title\": \"Footer\",\n \"admin/editor.footer.description\": \"Un footer care apare în partea de jos a paginii magazinului tău\",\n \"admin/editor.footer.logoUrl.title\": \"URL logo\",\n \"admin/editor.footer.numberOfSocialNetworks.title\": \"Numărul de link-uri către rețelele sociale\",\n \"admin/editor.footer.numberOfSectionLinks.title\": \"Numărul de link-uri de secțiune\",\n \"admin/editor.footer.numberOfMoreInformationLinks.title\": \"Numărul de link-uri pentru mai multe informații\",\n \"admin/editor.footer.numberOfBadges.title\": \"Numărul de badge-uri care trebuie afișate\",\n \"admin/editor.footer.numberOfPaymentForms.title\": \"Numărul de metode de plată disponibile\",\n \"admin/editor.footer.showPaymentMethodsInColor.title\": \"Arată iconițele metodelor de plată în culoare\",\n \"admin/editor.footer.showSocialNetworksInColor.title\": \"Arată iconițele rețelelor sociale în culoare\",\n \"admin/editor.footer.showVtexLogoInColor.title\": \"Arată logo-ul VTEX în culoare\",\n \"admin/editor.footer.linksSections\": \"Secțiuni de link-uri\",\n \"admin/editor.footer.linksSections.linksSection\": \"Secțiune de link\",\n \"admin/editor.footer.linksSections.linksSection.title\": \"Titlu secțiune de link\",\n \"admin/editor.footer.linksSections.linksSection.links\": \"Link-uri pentru secțiunea de link\",\n \"admin/editor.footer.linksSections.linksSection.links.link\": \"Link\",\n \"admin/editor.footer.linksSections.linksSection.links.link.title\": \"Titlu link\",\n \"admin/editor.footer.linksSections.linksSection.links.link.url\": \"URL link\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target\": \"Obiectivul link-ului\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.self\": \"Fila actuală al browser-ului\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.blank\": \"O nouă filă a browser-ului\",\n \"admin/editor.footer.moreInformationLink\": \"Link-uri pentru mai multe informații\",\n \"admin/editor.footer.moreInformationLink.title\": \"Link pentru mai multe informații\",\n \"admin/editor.footer.badge\": \"Ecuson\",\n \"admin/editor.footer.badge.title\": \"Badge\",\n \"admin/editor.footer.badge.image.title\": \"URL imagine badge\",\n \"admin/editor.footer.socialNetworks\": \"Rețele sociale\",\n \"admin/editor.footer.socialNetworks.title\": \"Rețea socială\",\n \"admin/editor.footer.socialNetworks.url.title\": \"URL Rețea Socială\",\n \"admin/editor.footer.socialNetworks.socialNetwork.title\": \"Rețea socială\",\n \"admin/editor.footer.paymentForms\": \"Metode de plată\",\n \"admin/editor.footer.paymentForms.paymentForm\": \"Metodă de plată\",\n \"admin/editor.footer.paymentForms.paymentForm.title\": \"Titlul metodă de plată\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes\": \"Tipuri de plată\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes.paymentType\": \"Tipul plăți\",\n \"admin/editor.footer.acceptedPaymentMethods.title\": \"Metode de plată acceptate\",\n \"admin/editor.footer.acceptedPaymentMethods.description\": \"Metode de plată acceptate de magazin\",\n \"admin/editor.footer.paymentMethodIcon.title\": \"Metode de plată\",\n \"admin/editor.footer.paymentMethodIcon.description\": \"Iconiță metodă de plată\",\n \"admin/editor.footer.paymentMethodIcon.method\": \"Denumire metodă de plată\",\n \"admin/editor.footer.storeInformations\": \"Informații magazin\",\n \"admin/editor.footer.storeInformations.storeInformation\": \"Informații magazin\"\n}\n\n```"
}
] |
code_store-footer_e2d159f6
|
[
{
"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 store-footer/messages/context.json from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store/social-networks\": \"social-networks\",\n \"store/section-links\": \"store/section-links\",\n \"store/more-information-links\": \"store/more-information-links\",\n \"store/payment-form\": \"store/payment-form\",\n \"admin/editor.footer.title\": \"admin/editor.footer.title\",\n \"admin/editor.footer.description\": \"admin/editor.footer.description\",\n \"admin/editor.footer.logoUrl.title\": \"admin/editor.footer.logoUrl.title\",\n \"admin/editor.footer.numberOfSocialNetworks.title\": \"admin/editor.footer.numberOfSocialNetworks.title\",\n \"admin/editor.footer.numberOfSectionLinks.title\": \"admin/editor.footer.numberOfSectionLinks.title\",\n \"admin/editor.footer.numberOfMoreInformationLinks.title\": \"admin/editor.footer.numberOfMoreInformationLinks.title\",\n \"admin/editor.footer.numberOfBadges.title\": \"admin/editor.footer.numberOfBadges.title\",\n \"admin/editor.footer.numberOfPaymentForms.title\": \"admin/editor.footer.numberOfPaymentForms.title\",\n \"admin/editor.footer.showPaymentMethodsInColor.title\": \"admin/editor.footer.showPaymentMethodsInColor.title\",\n \"admin/editor.footer.showSocialNetworksInColor.title\": \"admin/editor.footer.showSocialNetworksInColor.title\",\n \"admin/editor.footer.showVtexLogoInColor.title\": \"admin/editor.footer.showVtexLogoInColor.title\",\n \"admin/editor.footer.linksSections\": \"admin/editor.footer.linksSections\",\n \"admin/editor.footer.linksSections.linksSection\": \"admin/editor.footer.linksSections.linksSection\",\n \"admin/editor.footer.linksSections.linksSection.title\": \"admin/editor.footer.linksSections.linksSection.title\",\n \"admin/editor.footer.linksSections.linksSection.links\": \"admin/editor.footer.linksSections.linksSection.links\",\n \"admin/editor.footer.linksSections.linksSection.links.link\": \"admin/editor.footer.linksSections.linksSection.links.link\",\n \"admin/editor.footer.linksSections.linksSection.links.link.title\": \"admin/editor.footer.linksSections.linksSection.links.link.title\",\n \"admin/editor.footer.linksSections.linksSection.links.link.url\": \"admin/editor.footer.linksSections.linksSection.links.link.url\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target\": \"admin/editor.footer.linksSections.linksSection.links.link.target\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.self\": \"admin/editor.footer.linksSections.linksSection.links.link.target.self\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.blank\": \"admin/editor.footer.linksSections.linksSection.links.link.target.blank\",\n \"admin/editor.footer.moreInformationLink\": \"admin/editor.footer.moreInformationLink\",\n \"admin/editor.footer.moreInformationLink.title\": \"admin/editor.footer.moreInformationLink.title\",\n \"admin/editor.footer.badge\": \"admin/editor.footer.badge\",\n \"admin/editor.footer.badge.title\": \"admin/editor.footer.badge.title\",\n \"admin/editor.footer.badge.image.title\": \"admin/editor.footer.badge.image.title\",\n \"admin/editor.footer.socialNetworks\": \"admin/editor.footer.socialNetworks\",\n \"admin/editor.footer.socialNetworks.title\": \"admin/editor.footer.socialNetworks.title\",\n \"admin/editor.footer.socialNetworks.url.title\": \"admin/editor.footer.socialNetworks.url.title\",\n \"admin/editor.footer.socialNetworks.socialNetwork.title\": \"admin/editor.footer.socialNetworks.socialNetwork.title\",\n \"admin/editor.footer.paymentForms\": \"admin/editor.footer.paymentForms\",\n \"admin/editor.footer.paymentForms.paymentForm\": \"admin/editor.footer.paymentForms.paymentForm\",\n \"admin/editor.footer.paymentForms.paymentForm.title\": \"admin/editor.footer.paymentForms.paymentForm.title\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes\": \"admin/editor.footer.paymentForms.paymentForm.paymentTypes\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes.paymentType\": \"admin/editor.footer.paymentForm.paymentForm.paymentTypes.paymentType\",\n \"admin/editor.footer.acceptedPaymentMethods.title\": \"Accepted Payment Methods\",\n \"admin/editor.footer.acceptedPaymentMethods.description\": \"Payment methods accepted by the store\",\n \"admin/editor.footer.paymentMethodIcon.title\": \"Payment Method\",\n \"admin/editor.footer.paymentMethodIcon.description\": \"Payment method icon\",\n \"admin/editor.footer.paymentMethodIcon.method\": \"Payment method name\",\n \"admin/editor.footer.storeInformations\": \"admin/editor.footer.storeInformations\",\n \"admin/editor.footer.storeInformations.storeInformation\": \"admin/editor.footer.storeInformations.storeInformation\"\n}\n\n```"
}
] |
code_store-footer_8e68c848
|
[
{
"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 store-footer/messages/de-DE.json from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store/social-networks\": \"Soziale Netzwerke\",\n \"store/section-links\": \"Links\",\n \"store/more-information-links\": \"Weitere Informationen\",\n \"store/payment-form\": \"Zahlungsmethoden\",\n \"admin/editor.footer.title\": \"Footer\",\n \"admin/editor.footer.description\": \"Ein Footer, der im unteren Bereich Ihres Shops erscheint\",\n \"admin/editor.footer.logoUrl.title\": \"Logo URL\",\n \"admin/editor.footer.numberOfSocialNetworks.title\": \"Anzahl der Verknüpfungen mit sozialen Netzwerken\",\n \"admin/editor.footer.numberOfSectionLinks.title\": \"Anzahl der Sektionen-Links\",\n \"admin/editor.footer.numberOfMoreInformationLinks.title\": \"Anzahl weiterer Informationslinks\",\n \"admin/editor.footer.numberOfBadges.title\": \"Anzahl der anzuzeigenden Abzeichen\",\n \"admin/editor.footer.numberOfPaymentForms.title\": \"Anzahl verfügbarer Zahlungsmethoden\",\n \"admin/editor.footer.showPaymentMethodsInColor.title\": \"Zahlungsmethoden Symbole in Farbe anzeigen\",\n \"admin/editor.footer.showSocialNetworksInColor.title\": \"Soziale Netzwerke Symbole in Farbe anzeigen\",\n \"admin/editor.footer.showVtexLogoInColor.title\": \"VTEX-Logo in Farbe anzeigen\",\n \"admin/editor.footer.linksSections\": \"Sektionen-Links\",\n \"admin/editor.footer.linksSections.linksSection\": \"Sektionen-Link\",\n \"admin/editor.footer.linksSections.linksSection.title\": \"Sektion-Link Titel\",\n \"admin/editor.footer.linksSections.linksSection.links\": \"Sektion-Link Link\",\n \"admin/editor.footer.linksSections.linksSection.links.link\": \"Koppeling\",\n \"admin/editor.footer.linksSections.linksSection.links.link.title\": \"Link-Titel\",\n \"admin/editor.footer.linksSections.linksSection.links.link.url\": \"Link-URL\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target\": \"Link-Ziel\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.self\": \"Aktueller Browser-Tab\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.blank\": \"Neuer Browser-Tab\",\n \"admin/editor.footer.moreInformationLink\": \"Weitere Informationslinks\",\n \"admin/editor.footer.moreInformationLink.title\": \"Mehr Informationslink\",\n \"admin/editor.footer.badge\": \"Abzeichen\",\n \"admin/editor.footer.badge.title\": \"Abzeichen\",\n \"admin/editor.footer.badge.image.title\": \"Abzeichen-Bild-URL\",\n \"admin/editor.footer.socialNetworks\": \"Soziale Netzwerke\",\n \"admin/editor.footer.socialNetworks.title\": \"Soziales Netzwerk\",\n \"admin/editor.footer.socialNetworks.url.title\": \"Soziales Netzwerk URL\",\n \"admin/editor.footer.socialNetworks.socialNetwork.title\": \"Soziales Netzwerk\",\n \"admin/editor.footer.paymentForms\": \"Zahlungsmethoden\",\n \"admin/editor.footer.paymentForms.paymentForm\": \"Zahlungs-Formular\",\n \"admin/editor.footer.paymentForms.paymentForm.title\": \"Zahlungsformular Titel\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes\": \"Zahlungsarten\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes.paymentType\": \"Zahlungstyp\",\n \"admin/editor.footer.acceptedPaymentMethods.title\": \"Akzeptierte Zahlungsmethoden\",\n \"admin/editor.footer.acceptedPaymentMethods.description\": \"Vom Geschäft akzeptierte Zahlungsmethoden\",\n \"admin/editor.footer.paymentMethodIcon.title\": \"Zahlungsmethode\",\n \"admin/editor.footer.paymentMethodIcon.description\": \"Bezahlungsmethoden-Symbol\",\n \"admin/editor.footer.paymentMethodIcon.method\": \"Name der Zahlungsmethode\",\n \"admin/editor.footer.storeInformations\": \"Shop-Informationen\",\n \"admin/editor.footer.storeInformations.storeInformation\": \"Shop-Informationen\"\n}\n\n```"
}
] |
code_store-footer_e2671016
|
[
{
"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 store-footer/messages/fr-FR.json from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store/social-networks\": \"Réseaux sociaux\",\n \"store/section-links\": \"Liens\",\n \"store/more-information-links\": \"En savoir plus\",\n \"store/payment-form\": \"Méthodes de paiement\",\n \"admin/editor.footer.title\": \"Pied de page\",\n \"admin/editor.footer.description\": \"Un pied de page qui apparaît en bas de votre magasin\",\n \"admin/editor.footer.logoUrl.title\": \"URL du logo\",\n \"admin/editor.footer.numberOfSocialNetworks.title\": \"Nombre de liens de réseaux sociaux\",\n \"admin/editor.footer.numberOfSectionLinks.title\": \"Nombre de liens de la section\",\n \"admin/editor.footer.numberOfMoreInformationLinks.title\": \"Nombre de liens d’informations supplémentaires\",\n \"admin/editor.footer.numberOfBadges.title\": \"Nombre de badges à afficher\",\n \"admin/editor.footer.numberOfPaymentForms.title\": \"Nombre de modes de paiement disponibles\",\n \"admin/editor.footer.showPaymentMethodsInColor.title\": \"Afficher en couleur les icônes des modes de paiement\",\n \"admin/editor.footer.showSocialNetworksInColor.title\": \"Afficher en couleur les icônes des réseaux sociaux\",\n \"admin/editor.footer.showVtexLogoInColor.title\": \"Afficher en couleur le logo VTEX\",\n \"admin/editor.footer.linksSections\": \"Sections des liens\",\n \"admin/editor.footer.linksSections.linksSection\": \"Section du lien\",\n \"admin/editor.footer.linksSections.linksSection.title\": \"Titre de la section du lien\",\n \"admin/editor.footer.linksSections.linksSection.links\": \"Titres de la section du lien\",\n \"admin/editor.footer.linksSections.linksSection.links.link\": \"Lien\",\n \"admin/editor.footer.linksSections.linksSection.links.link.title\": \"Titre du lien\",\n \"admin/editor.footer.linksSections.linksSection.links.link.url\": \"URL du lien\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target\": \"Cible du lien\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.self\": \"Onglet du navigateur actuel\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.blank\": \"Nouvel onglet de navigateur\",\n \"admin/editor.footer.moreInformationLink\": \"Liens pour en savoir plus\",\n \"admin/editor.footer.moreInformationLink.title\": \"Lien pour en savoir plus\",\n \"admin/editor.footer.badge\": \"Badges\",\n \"admin/editor.footer.badge.title\": \"Badge\",\n \"admin/editor.footer.badge.image.title\": \"URL de l’image du badge\",\n \"admin/editor.footer.socialNetworks\": \"Réseaux sociaux\",\n \"admin/editor.footer.socialNetworks.title\": \"Réseau social\",\n \"admin/editor.footer.socialNetworks.url.title\": \"URL du réseau social\",\n \"admin/editor.footer.socialNetworks.socialNetwork.title\": \"Réseaux sociaux\",\n \"admin/editor.footer.paymentForms\": \"Méthodes de paiement\",\n \"admin/editor.footer.paymentForms.paymentForm\": \"Moyen de paiement\",\n \"admin/editor.footer.paymentForms.paymentForm.title\": \"Titre du moyen de paiement\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes\": \"Types de paiement\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes.paymentType\": \"Type de paiement\",\n \"admin/editor.footer.acceptedPaymentMethods.title\": \"Modes de paiement acceptés\",\n \"admin/editor.footer.acceptedPaymentMethods.description\": \"Modes de paiement acceptés par le magasin\",\n \"admin/editor.footer.paymentMethodIcon.title\": \"Méthode de paiement\",\n \"admin/editor.footer.paymentMethodIcon.description\": \"Icône du mode de paiement\",\n \"admin/editor.footer.paymentMethodIcon.method\": \"Nom du mode de paiement\",\n \"admin/editor.footer.storeInformations\": \"Informations sur le magasin\",\n \"admin/editor.footer.storeInformations.storeInformation\": \"Information sur le magasin\"\n}\n\n```"
}
] |
code_store-footer_d4663e2f
|
[
{
"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 store-footer/messages/nl-NL.json from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store/social-networks\": \"Sociale netwerken\",\n \"store/section-links\": \"Links\",\n \"store/more-information-links\": \"Meer informatie\",\n \"store/payment-form\": \"Betaalmethodes\",\n \"admin/editor.footer.title\": \"Voettekst\",\n \"admin/editor.footer.description\": \"Een voettekst die onderaan uw winkel verschijnt\",\n \"admin/editor.footer.logoUrl.title\": \"Logo URL\",\n \"admin/editor.footer.numberOfSocialNetworks.title\": \"Aantal links naar sociale netwerken\",\n \"admin/editor.footer.numberOfSectionLinks.title\": \"Aantal sectielinks\",\n \"admin/editor.footer.numberOfMoreInformationLinks.title\": \"Aantal links voor meer informatie\",\n \"admin/editor.footer.numberOfBadges.title\": \"Aantal te tonen badges\",\n \"admin/editor.footer.numberOfPaymentForms.title\": \"Aantal beschikbare betaalmethoden\",\n \"admin/editor.footer.showPaymentMethodsInColor.title\": \"Pictogrammen voor betalingsmethoden in kleur weergeven\",\n \"admin/editor.footer.showSocialNetworksInColor.title\": \"Pictogrammen voor sociale netwerken in kleur weergeven\",\n \"admin/editor.footer.showVtexLogoInColor.title\": \"Toon VTEX-logo in kleur\",\n \"admin/editor.footer.linksSections\": \"Links secties\",\n \"admin/editor.footer.linksSections.linksSection\": \"Linksectie\",\n \"admin/editor.footer.linksSections.linksSection.title\": \"Link sectietitel\",\n \"admin/editor.footer.linksSections.linksSection.links\": \"Link sectielinks\",\n \"admin/editor.footer.linksSections.linksSection.links.link\": \"Link\",\n \"admin/editor.footer.linksSections.linksSection.links.link.title\": \"Link titel\",\n \"admin/editor.footer.linksSections.linksSection.links.link.url\": \"Link url\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target\": \"Link doel\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.self\": \"Huidige browsertab\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.blank\": \"Nieuwe browsertab\",\n \"admin/editor.footer.moreInformationLink\": \"Meer informatie links\",\n \"admin/editor.footer.moreInformationLink.title\": \"Meer informatie link\",\n \"admin/editor.footer.badge\": \"Badges\",\n \"admin/editor.footer.badge.title\": \"Badge\",\n \"admin/editor.footer.badge.image.title\": \"Badge-afbeelding URL\",\n \"admin/editor.footer.socialNetworks\": \"Sociale netwerken\",\n \"admin/editor.footer.socialNetworks.title\": \"Sociaal netwerk\",\n \"admin/editor.footer.socialNetworks.url.title\": \"Sociaal netwerk url\",\n \"admin/editor.footer.socialNetworks.socialNetwork.title\": \"Sociaal netwerk\",\n \"admin/editor.footer.paymentForms\": \"Betaalmethodes\",\n \"admin/editor.footer.paymentForms.paymentForm\": \"Betalingsformulier\",\n \"admin/editor.footer.paymentForms.paymentForm.title\": \"Titel betalingsformulier\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes\": \"Betalingstype\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes.paymentType\": \"Betalingstype\",\n \"admin/editor.footer.acceptedPaymentMethods.title\": \"Geaccepteerde betaalmethoden\",\n \"admin/editor.footer.acceptedPaymentMethods.description\": \"Betaalmethoden geaccepteerd door de winkel\",\n \"admin/editor.footer.paymentMethodIcon.title\": \"Betaalmethoden\",\n \"admin/editor.footer.paymentMethodIcon.description\": \"Pictogram betaalmethode\",\n \"admin/editor.footer.paymentMethodIcon.method\": \"Naam betalingsmethode\",\n \"admin/editor.footer.storeInformations\": \"Winkelinformatie\",\n \"admin/editor.footer.storeInformations.storeInformation\": \"Winkelinformatie\"\n}\n\n```"
}
] |
code_store-footer_4e584f03
|
[
{
"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 store-footer/messages/es.json from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store/social-networks\": \"Redes sociales\",\n \"store/section-links\": \"Enlaces\",\n \"store/more-information-links\": \"Más información\",\n \"store/payment-form\": \"Medios de pago\",\n \"admin/editor.footer.title\": \"Pie de página\",\n \"admin/editor.footer.description\": \"Un pie de página que aparece en la parte inferior de tu tienda\",\n \"admin/editor.footer.logoUrl.title\": \"URL del logotipo\",\n \"admin/editor.footer.numberOfSocialNetworks.title\": \"Número de enlaces de redes sociales\",\n \"admin/editor.footer.numberOfSectionLinks.title\": \"Número de enlaces de secciones\",\n \"admin/editor.footer.numberOfMoreInformationLinks.title\": \"Número de enlaces para más información\",\n \"admin/editor.footer.numberOfBadges.title\": \"Número de insignias a mostrar\",\n \"admin/editor.footer.numberOfPaymentForms.title\": \"Número de medios de pago disponibles\",\n \"admin/editor.footer.showPaymentMethodsInColor.title\": \"Mostrar los íconos de los medios de pago a color\",\n \"admin/editor.footer.showSocialNetworksInColor.title\": \"Mostrar los íconos de las redes sociales a color\",\n \"admin/editor.footer.showVtexLogoInColor.title\": \"Mostrar el logotipo de VTEX a color\",\n \"admin/editor.footer.linksSections\": \"Secciones de enlaces\",\n \"admin/editor.footer.linksSections.linksSection\": \"Sección de enlaces\",\n \"admin/editor.footer.linksSections.linksSection.title\": \"Título de la sección de enlaces\",\n \"admin/editor.footer.linksSections.linksSection.links\": \"Enlaces de la sección de enlaces\",\n \"admin/editor.footer.linksSections.linksSection.links.link\": \"Enlace\",\n \"admin/editor.footer.linksSections.linksSection.links.link.title\": \"Título del enlace\",\n \"admin/editor.footer.linksSections.linksSection.links.link.url\": \"URL del enlace\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target\": \"Destino del enlace\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.self\": \"Pestaña actual del navegador\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.blank\": \"Nueva pestaña del navegador\",\n \"admin/editor.footer.moreInformationLink\": \"Enlaces para más información\",\n \"admin/editor.footer.moreInformationLink.title\": \"Enlace para más información\",\n \"admin/editor.footer.badge\": \"Insignias\",\n \"admin/editor.footer.badge.title\": \"Insignia\",\n \"admin/editor.footer.badge.image.title\": \"URL de la imagen de la insignia\",\n \"admin/editor.footer.socialNetworks\": \"Redes sociales\",\n \"admin/editor.footer.socialNetworks.title\": \"Red social\",\n \"admin/editor.footer.socialNetworks.url.title\": \"URL de la red social\",\n \"admin/editor.footer.socialNetworks.socialNetwork.title\": \"Red social\",\n \"admin/editor.footer.paymentForms\": \"Medios de pago\",\n \"admin/editor.footer.paymentForms.paymentForm\": \"Medio de pago\",\n \"admin/editor.footer.paymentForms.paymentForm.title\": \"Título del medio de pago\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes\": \"Tipos de pago\",\n \"admin/editor.footer.paymentForms.paymentForm.paymentTypes.paymentType\": \"Tipo de pago\",\n \"admin/editor.footer.acceptedPaymentMethods.title\": \"Medios de pago aceptados\",\n \"admin/editor.footer.acceptedPaymentMethods.description\": \"Medios de pago aceptados por la tienda\",\n \"admin/editor.footer.paymentMethodIcon.title\": \"Medio de pago\",\n \"admin/editor.footer.paymentMethodIcon.description\": \"Nombre del medio de pago\",\n \"admin/editor.footer.paymentMethodIcon.method\": \"Nombre del medio de pago\",\n \"admin/editor.footer.storeInformations\": \"Información de la tienda\",\n \"admin/editor.footer.storeInformations.storeInformation\": \"Información de la tienda\"\n}\n\n```"
}
] |
code_store-footer_4fb5af63
|
[
{
"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 store-footer/docs/README.md from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```markdown\n📢 Don't fork this project. Use, [contribute](https://github.com/vtex-apps/awesome-io#contributing), or open issues through [Store Discussion](https://github.com/vtex-apps/store-discussion).\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n[](#contributors-)\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n\n# Footer\n\nFooter is a store component that shows information about the store such as address, social networks and payment methods. Furthermore, it is possible to add hyperlinks for privacy policy, FAQ, benefits and attendance. This app is used by store theme.\n\n\n\n## Configuration\n\n1. Import the `vtex.store-footer`'s app to your theme's dependencies in the `manifest.json`, for example:\n\n```json\n dependencies: {\n \"vtex.store-footer: 2.x\"\n }\n```\n\n2. Define the `footer` block. For example:\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-desktop\"\n ]\n },\n \"footer-layout.mobile\": {\n \"children\": [\n \"flex-layout.row#footer-mobile\"\n ]\n },\n \"flex-layout.row#footer-desktop\": {\n \"children\": [\n \"social-networks\",\n \"accepted-payment-methods\",\n \"powered-by\"\n ]\n },\n \"flex-layout.row#footer-mobile\": {\n \"children\": [\n \"social-networks\",\n \"accepted-payment-methods\",\n \"powered-by\"\n ]\n },\n \"social-networks\": {\n \"props\": {\n \"socialNetworks\": [\n { \"url\": \"https://facebook.com/foo\", \"name\": \"Facebook\" },\n { \"url\": \"https://twitter.com/foo\", \"name\": \"Twitter\" }\n ]\n }\n },\n \"accepted-payment-methods\": {\n \"props\": {\n \"paymentMethods\": [\"mastercard\", \"visa\", \"diners club\"]\n }\n }\n}\n```\n\n`social-networks`:\n\n| Prop name | Type | Description |\n| --------- | ------------- | -------------- |\n| `title` | `string` | Text to show above of list of links |\n| `socialNetworks` | `Array(SocialNetwork)` | Array of social networks |\n| `showInColor` | `boolean` | Whether the icons are colored or not |\n\nSocialNetwork\n\n| Prop name | Type | Description |\n| --------- | ------------- | -------------- |\n| `url` | `string` | Link to the social network profile |\n| `name` | `enum` | Possible values: `facebook`, `twitter`, `linkedin`, `youtube`, `pinterest` |\n\n`accepted-payment-methods`:\n\n| Prop name | Type | Description |\n| --------- | ------------- | -------------- |\n| `paymentMethods` | `Array` | Possible values: `mastercard`, `visa`, `diners club` |\n| `showInColor` | `boolean` | Whether the icons are colored or not |\n\n`powered-by`:\n\n| Prop name | Type | Description |\n| --------- | ------------- | -------------- |\n| `showInColor` | `boolean` | Whether the icons are colored or not |\n\n\n## Customization\n\nIn order to apply CSS customizations in this and other blocks, follow the instructions given in the recipe on [Using CSS Handles for store customization](https://vtex.io/docs/recipes/style/using-css-handles-for-store-customization). \n\n`footer-layout`:\n\n| CSS Handles |\n| --- |\n| `footerLayout` |\n| `footerLayoutSpacer` |\n\n`social-networks`:\n\n| CSS Handles |\n| --- |\n| `socialNetworksTitle` |\n| `socialNetworksContainer` |\n| `socialNetworkWrapper` |\n| `socialNetworkLink` |\n| `socialNetworkImage` |\n\n`accepted-payment-methods`:\n\n| CSS Handles |\n| --- |\n| `acceptedPaymentMethodContainer` |\n| `paymentMethodIcon` |\n| `paymentMethodIconImage` |\n\n`powered-by`:\n\n| CSS Handles |\n| --- |\n| `poweredBy` |\n| `poweredByImage` |\n| `poweredByLink` |\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<!-- markdownlint-enable -->\n<!-- prettier-ignore-end -->\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n```"
}
] |
code_store-footer_05c86056
|
[
{
"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 store-footer/react/SocialNetworks.tsx from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport SocialNetworks from './components/SocialNetworks'\n\nexport default SocialNetworks\n\n```"
}
] |
code_store-footer_8602ccfd
|
[
{
"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 store-footer/react/Spacer.tsx from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport React from 'react'\nimport { useCssHandles } from 'vtex.css-handles'\n\nconst CSS_HANDLES = ['footerSpacer'] as const\n\n/**\n * @deprecated Use a simple inline element instead\n */\nfunction Spacer() {\n const { handles } = useCssHandles(CSS_HANDLES)\n\n return <div className={`${handles.footerSpacer} flex flex-grow-1`} />\n}\n\nexport default Spacer\n\n```"
}
] |
code_store-footer_5934c5a6
|
[
{
"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 store-footer/react/AcceptedPaymentMethods.tsx from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport AcceptedPaymentMethod from './components/AcceptedPaymentMethods'\n\nexport default AcceptedPaymentMethod\n\n```"
}
] |
code_store-footer_56d99f85
|
[
{
"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 store-footer/react/PoweredBy.tsx from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport React from 'react'\nimport { useCssHandles } from 'vtex.css-handles'\nimport type { RenderContext } from 'vtex.render-runtime'\nimport { useRuntime } from 'vtex.render-runtime'\n\nimport { PLATFORM_GOCOMMERCE } from './modules/platformCode'\nimport gocommerce from './images/gocommerce.svg'\nimport gocommerceBw from './images/gocommerce-bw.svg'\nimport vtex from './images/vtex.svg'\nimport vtexBw from './images/vtex-bw.svg'\n\nconst CSS_HANDLES = ['poweredBy', 'poweredByImage', 'poweredByLink'] as const\n\nconst POWERED_BY_ICONS = {\n gocommerce,\n 'gocommerce-bw': gocommerceBw,\n vtex,\n 'vtex-bw': vtexBw,\n}\n\ninterface Props {\n /**\n * Define if logo should be displayed in color\n * @default false\n * */\n showInColor?: boolean\n}\n\nfunction isValidIcon(key: string): key is keyof typeof POWERED_BY_ICONS {\n return key in POWERED_BY_ICONS\n}\n\nconst getImagePathFromProps = (platform: string, showInColor: boolean) =>\n `${platform}${showInColor ? '' : '-bw'}`\n\n/**\n * \"Powered By VTEX/GoCommerce\" image component, used in Footer\n */\nfunction PoweredBy({ showInColor = false }: Props) {\n const { handles } = useCssHandles(CSS_HANDLES)\n const { platform } = useRuntime() as RenderContext.RenderContext\n\n const imagePath = getImagePathFromProps(platform, showInColor)\n\n if (!isValidIcon(imagePath)) {\n return null\n }\n\n const imageSrc = POWERED_BY_ICONS[imagePath]\n\n if (platform === PLATFORM_GOCOMMERCE) {\n return (\n <a\n href=\"https://www.gocommerce.com/?utm_source=store_footer\"\n className={handles.poweredByLink}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n <div className={`${handles.poweredBy} flex items-center w4`}>\n <img\n className={`${handles.poweredByImage} w-100`}\n src={imageSrc}\n alt=\"GoCommerce\"\n />\n </div>\n </a>\n )\n }\n\n return (\n <div className={`${handles.poweredBy} flex items-center h3 w3`}>\n <img\n className={`${handles.poweredByImage} w-100`}\n src={imageSrc}\n alt=\"VTEX\"\n />\n </div>\n )\n}\n\nPoweredBy.displayName = 'PoweredBy'\n\nexport default PoweredBy\n\n```"
}
] |
code_store-footer_0ebd5bab
|
[
{
"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 store-footer/react/Footer.tsx from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport React, { Suspense } from 'react'\nimport { ExtensionPoint, useChildBlock, NoSSR } from 'vtex.render-runtime'\nimport { useDevice } from 'vtex.device-detector'\n\nconst LegacyFooter = React.lazy(() => import('./legacy/Footer'))\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst Footer = (props: any) => {\n const hasFooterDesktop = !!useChildBlock({\n id: 'footer-layout.desktop',\n })\n\n const hasFooterMobile = !!useChildBlock({\n id: 'footer-layout.mobile',\n })\n\n const { isMobile } = useDevice()\n\n const hasFooterLayout = hasFooterDesktop || hasFooterMobile\n\n if (!hasFooterLayout) {\n return (\n <NoSSR>\n <Suspense fallback={<div />}>\n <LegacyFooter {...props} />\n </Suspense>\n </NoSSR>\n )\n }\n\n // SSR fallback\n return isMobile ? (\n <ExtensionPoint id=\"footer-layout.mobile\" />\n ) : (\n <ExtensionPoint id=\"footer-layout.desktop\" />\n )\n}\n\nFooter.schema = {\n title: 'admin/editor.footer.title',\n description: 'admin/editor.footer.description',\n type: 'object',\n properties: {\n showPaymentFormsInColor: {\n type: 'boolean',\n title: 'admin/editor.footer.showPaymentMethodsInColor.title',\n default: false,\n isLayout: true,\n },\n showSocialNetworksInColor: {\n type: 'boolean',\n title: 'admin/editor.footer.showSocialNetworksInColor.title',\n default: false,\n isLayout: true,\n },\n showVtexLogoInColor: {\n type: 'boolean',\n title: 'admin/editor.footer.showVtexLogoInColor.title',\n default: false,\n isLayout: true,\n },\n },\n}\n\nexport default Footer\n\n```"
}
] |
code_store-footer_7d91aca9
|
[
{
"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 store-footer/react/FooterLayout.tsx from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\nimport { useCssHandles } from 'vtex.css-handles'\n\nconst CSS_HANDLES = ['footerLayout', 'footerLayoutSpacer'] as const\n\n// eslint-disable-next-line @typescript-eslint/ban-types\nfunction FooterLayout({ children }: PropsWithChildren<{}>) {\n const { handles } = useCssHandles(CSS_HANDLES)\n\n return (\n <>\n <div className={`${handles.footerLayoutSpacer} flex flex-grow-1`} />\n <div className={handles.footerLayout}>{children}</div>\n </>\n )\n}\n\nexport default FooterLayout\n\n```"
}
] |
code_store-footer_e07bc675
|
[
{
"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 store-footer/react/package.json from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"scripts\": {\n \"test\": \"vtex-test-tools test\",\n \"lint\": \"tsc --noEmit && eslint --ext ts,tsx .\",\n \"test:coverage\": \"vtex-test-tools test --collectCoverage\",\n \"gen:coveralls\": \"yarn test:coverage && cat ./coverage/lcov.info | coveralls\"\n },\n \"dependencies\": {\n \"@vtex/css-handles\": \"^1.0.0\",\n \"classnames\": \"^2.2.6\",\n \"react\": \"^16.8.3\",\n \"react-collapse\": \"^4.0.3\",\n \"react-intl\": \"3.9.1\",\n \"react-motion\": \"^0.5.2\"\n },\n \"devDependencies\": {\n \"@apollo/react-testing\": \"^4.0.0\",\n \"@types/classnames\": \"^2.2.7\",\n \"@types/graphql\": \"^14.2.0\",\n \"@types/jest\": \"^24.0.11\",\n \"@types/node\": \"^11.13.0\",\n \"@types/react\": \"^16.8.10\",\n \"@vtex/test-tools\": \"^3.3.2\",\n \"apollo-client\": \"^2.5.1\",\n \"coveralls\": \"^3.0.3\",\n \"react-dom\": \"^16.8.3\",\n \"typescript\": \"3.9.7\",\n \"vtex.css-handles\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.css-handles@1.0.0/public/@types/vtex.css-handles\",\n \"vtex.device-detector\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.device-detector@0.2.5/public/@types/vtex.device-detector\",\n \"vtex.flex-layout\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.flex-layout@0.15.2/public/@types/vtex.flex-layout\",\n \"vtex.menu\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.menu@2.27.0/public/@types/vtex.menu\",\n \"vtex.native-types\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.native-types@0.7.4/public/@types/vtex.native-types\",\n \"vtex.render-runtime\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.render-runtime@8.126.4/public/@types/vtex.render-runtime\",\n \"vtex.rich-text\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.rich-text@0.11.2/public/@types/vtex.rich-text\",\n \"vtex.shop-review-interfaces\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.shop-review-interfaces@0.3.0/public/@types/vtex.shop-review-interfaces\",\n \"vtex.store-components\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-components@3.136.2/public/@types/vtex.store-components\",\n \"vtex.store-icons\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-icons@0.18.0/public/@types/vtex.store-icons\"\n },\n \"version\": \"2.27.0\"\n}\n\n```"
}
] |
code_store-footer_fb7208d5
|
[
{
"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 store-footer/react/Row.tsx from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\nimport classNames from 'classnames'\nimport { useCssHandles } from 'vtex.css-handles'\nimport { Container } from 'vtex.store-components'\n\ninterface Props {\n /** Define if the row should take the full width of its container */\n fullWidth?: boolean\n /** Define if background and text colors should be inverted */\n inverted?: boolean\n blockClass?: string\n}\n\nconst CSS_HANDLES = ['rowContainer', 'row', 'rowContentContainer'] as const\n\nfunction Row({ children, fullWidth, inverted }: PropsWithChildren<Props>) {\n const { handles } = useCssHandles(CSS_HANDLES)\n\n const content = (\n <div className={`${handles.rowContainer} w-100 flex items-center`}>\n {children}\n </div>\n )\n\n return (\n <div\n className={classNames(\n handles.row,\n 'w-100',\n inverted ? 'bg-base--inverted c-on-base--inverted' : 'bg-base c-on-base'\n )}\n >\n {fullWidth ? (\n content\n ) : (\n <Container className={`${handles.rowContentContainer} w-100 flex`}>\n {content}\n </Container>\n )}\n </div>\n )\n}\n\nRow.schema = {\n title: 'admin/editor.row.title',\n type: 'object',\n properties: {\n blockClass: {\n title: 'admin/editor.blockClass.title',\n description: 'admin/editor.blockClass.description',\n type: 'string',\n isLayout: true,\n },\n inverted: {\n title: 'admin/editor.inverted.title',\n description: 'admin/editor.inverted.description',\n type: 'boolean',\n default: true,\n isLayout: true,\n },\n fullWidth: {\n title: 'admin/editor.fullWidth.title',\n description: 'admin/editor.fullWidth.description',\n type: 'boolean',\n default: false,\n isLayout: true,\n },\n },\n}\n\nexport default Row\n\n```"
}
] |
code_store-footer_8dd5f9a4
|
[
{
"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 store-footer/store/contentSchemas.json from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"definitions\": {\n \"Footer\": {\n \"properties\": {\n \"logo\": {\n \"title\": \"admin/editor.footer.logoUrl.title\",\n \"$ref\": \"app:vtex.native-types#/definitions/url\"\n },\n \"socialNetworks\": {\n \"title\": \"admin/editor.footer.socialNetworks\",\n \"type\": \"array\",\n \"minItems\": 1,\n \"maxItems\": 4,\n \"items\": {\n \"title\": \"admin/editor.footer.socialNetworks.title\",\n \"type\": \"object\",\n \"properties\": {\n \"url\": {\n \"title\": \"admin/editor.footer.socialNetworks.url.title\",\n \"$ref\": \"app:vtex.native-types#/definitions/url\"\n },\n \"socialNetwork\": {\n \"title\": \"admin/editor.footer.socialNetworks.title\",\n \"default\": \"Facebook\",\n \"enum\": [\"Facebook\", \"Twitter\", \"Instagram\", \"Youtube\"]\n }\n }\n }\n },\n \"sectionLinks\": {\n \"title\": \"admin/editor.footer.linksSections\",\n \"type\": \"array\",\n \"minItems\": 0,\n \"maxItems\": 5,\n \"items\": {\n \"title\": \"admin/editor.footer.linksSections.linksSection\",\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"title\": \"admin/editor.footer.linksSections.linksSection.title\",\n \"$ref\": \"app:vtex.native-types#/definitions/text\"\n },\n \"links\": {\n \"title\": \"admin/editor.footer.linksSections.linksSection.links\",\n \"type\": \"array\",\n \"minItems\": 1,\n \"maxItems\": 10,\n \"items\": {\n \"title\": \"admin/editor.footer.linksSections.linksSection.links.link\",\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"title\": \"admin/editor.footer.linksSections.linksSection.links.link.title\",\n \"$ref\": \"app:vtex.native-types#/definitions/text\"\n },\n \"url\": {\n \"title\": \"admin/editor.footer.linksSections.linksSection.links.link.url\",\n \"$ref\": \"app:vtex.native-types#/definitions/url\"\n },\n \"target\": {\n \"title\": \"admin/editor.footer.linksSections.linksSection.links.link.target\",\n \"type\": \"string\",\n \"default\": \"_self\",\n \"enum\": [\"_self\", \"_blank\"],\n \"enumNames\": [\n \"admin/editor.footer.linksSections.linksSection.links.link.target.self\",\n \"admin/editor.footer.linksSections.linksSection.links.link.target.blank\"\n ]\n }\n }\n }\n }\n }\n }\n },\n \"badges\": {\n \"title\": \"admin/editor.footer.badge\",\n \"type\": \"array\",\n \"items\": {\n \"title\": \"admin/editor.footer.badge.title\",\n \"type\": \"object\",\n \"properties\": {\n \"image\": {\n \"title\": \"admin/editor.footer.badge.image.title\",\n \"$ref\": \"app:vtex.native-types#/definitions/text\"\n }\n }\n }\n },\n \"paymentForms\": {\n \"title\": \"admin/editor.footer.paymentForms\",\n \"type\": \"array\",\n \"minItems\": 1,\n \"maxItems\": 5,\n \"items\": {\n \"title\": \"admin/editor.footer.paymentForms.paymentForm\",\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"title\": \"admin/editor.footer.paymentForms.paymentForm.title\",\n \"$ref\": \"app:vtex.native-types#/definitions/text\"\n },\n \"paymentTypes\": {\n \"title\": \"admin/editor.footer.paymentForms.paymentForm.paymentTypes\",\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"title\": \"admin/editor.footer.paymentForms.paymentForm.paymentTypes.paymentType\",\n \"type\": \"string\",\n \"default\": \"MasterCard\",\n \"enum\": [\"MasterCard\", \"Visa\", \"Diners Club\"]\n }\n }\n }\n }\n },\n \"storeInformations\": {\n \"title\": \"admin/editor.footer.storeInformations\",\n \"type\": \"array\",\n \"minItems\": 0,\n \"maxItems\": 2,\n \"items\": {\n \"title\": \"admin/editor.footer.storeInformations.storeInformation\",\n \"type\": \"object\",\n \"properties\": {\n \"storeInformation\": {\n \"title\": \"admin/editor.footer.storeInformations.storeInformation\",\n \"$ref\": \"app:vtex.native-types#/definitions/text\",\n \"widget\": {\n \"ui:widget\": \"textarea\"\n }\n }\n }\n }\n }\n }\n },\n \"AcceptedPaymentMethods\": {\n \"properties\": {\n \"paymentMethods\": {\n \"title\": \"admin/editor.footer.acceptedPaymentMethods.title\",\n \"type\": \"array\",\n \"minItems\": 1,\n \"maxItems\": 5,\n \"items\": {\n \"title\": \"admin/editor.footer.paymentMethodIcon.method\",\n \"type\": \"string\",\n \"default\": \"MasterCard\",\n \"enum\": [\"MasterCard\", \"Visa\", \"Diners Club\"]\n }\n }\n }\n },\n \"SocialNetworks\": {\n \"properties\": {\n \"socialNetworks\": {\n \"title\": \"admin/editor.footer.socialNetworks\",\n \"type\": \"array\",\n \"minItems\": 1,\n \"maxItems\": 6,\n \"items\": {\n \"title\": \"admin/editor.footer.socialNetworks.title\",\n \"type\": \"object\",\n \"properties\": {\n \"url\": {\n \"title\": \"admin/editor.footer.socialNetworks.url.title\",\n \"$ref\": \"app:vtex.native-types#/definitions/url\"\n },\n \"name\": {\n \"title\": \"admin/editor.footer.socialNetworks.title\",\n \"type\": \"string\",\n \"enum\": [\n \"Facebook\",\n \"Twitter\",\n \"Instagram\",\n \"YouTube\",\n \"LinkedIn\",\n \"Pinterest\"\n ]\n }\n }\n }\n }\n }\n }\n }\n}\n\n```"
}
] |
code_store-footer_54f4b11b
|
[
{
"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 store-footer/store/blocks.json from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"footer\": {\n \"blocks\": [\"footer-layout.mobile\", \"footer-layout.desktop\"]\n },\n \"footer-layout.mobile\": {\n \"children\": [\"flex-layout.row#powered-by\"]\n },\n \"footer-layout.desktop\": {\n \"children\": [\"flex-layout.row#powered-by\"]\n },\n\n \"flex-layout.row#powered-by\": {\n \"children\": [\"flex-layout.col#powered-by\"],\n \"props\": {\n \"paddingTop\": 4,\n \"paddingBottom\": 4\n }\n },\n \"flex-layout.col#powered-by\": {\n \"children\": [\"powered-by\"],\n \"props\": {\n \"horizontalAlign\": \"center\"\n }\n }\n}\n\n```"
}
] |
code_store-footer_3a2e72a6
|
[
{
"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 store-footer/store/interfaces.json from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"footer\": {\n \"allowed\": [\n \"footer-layout.mobile\",\n \"footer-layout.desktop\"\n ],\n \"component\": \"Footer\",\n \"content\": {\n \"$ref\": \"app:vtex.store-footer#/definitions/Footer\"\n },\n \"hydration\": \"on-view\"\n },\n \"footer-layout\": {\n \"component\": \"FooterLayout\",\n \"composition\": \"children\",\n \"allowed\": [\n \"footer-row\",\n \"footer-spacer\",\n \"social-networks\",\n \"accepted-payment-methods\",\n \"logo\",\n \"newsletter\",\n \"menu\",\n \"unstable--menu\",\n \"powered-by\",\n \"rich-text\",\n \"image\",\n \"flex-layout\",\n \"shop-review-badge\"\n ]\n },\n \"footer-layout.mobile\": {\n \"device\": \"mobile\"\n },\n \"footer-layout.desktop\": {\n \"device\": \"desktop\"\n },\n \"social-networks\": {\n \"component\": \"SocialNetworks\",\n \"content\": {\n \"$ref\": \"#/definitions/SocialNetworks\"\n }\n },\n \"accepted-payment-methods\": {\n \"component\": \"AcceptedPaymentMethods\",\n \"content\": {\n \"$ref\": \"#/definitions/AcceptedPaymentMethods\"\n }\n },\n \"powered-by\": {\n \"component\": \"PoweredBy\"\n },\n \"footer-row\": {\n \"component\": \"Row\",\n \"composition\": \"children\",\n \"allowed\": \"*\"\n },\n \"footer-spacer\": {\n \"component\": \"Spacer\"\n }\n}\n\n```"
}
] |
code_store-footer_a5423db3
|
[
{
"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 store-footer/react/typings/svg.d.ts from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\ndeclare module '*.svg' {\n const svg: any\n export default svg\n}\n\n```"
}
] |
code_store-footer_b776bc1e
|
[
{
"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 store-footer/react/typings/css.d.ts from the store-footer 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_store-footer_2965383e
|
[
{
"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 store-footer/react/typings/graphql.d.ts from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\ndeclare module '*.graphql' {\n import type { DocumentNode } from 'graphql'\n\n const value: DocumentNode\n export default value\n}\n\n```"
}
] |
code_store-footer_8e983b4c
|
[
{
"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 store-footer/react/legacy/Footer.test.js from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```javascript\nimport React from 'react'\nimport { render } from '@vtex/test-tools/react'\n\nimport Footer from './Footer'\n\ndescribe('<Footer /> component', () => {\n const renderComponent = customProps => {\n const props = {\n socialNetworks: [\n {\n url: 'https://www.facebook.com/',\n socialNetwork: 'Facebook',\n },\n ],\n sectionLinks: [\n {\n title: 'Section title',\n links: [{ url: 'mockedUrl', title: 'Some title' }],\n },\n ],\n badges: [{ image: 'imageURL' }],\n paymentForms: [\n {\n title: 'Title payment',\n paymentTypes: ['MasterCard', 'Visa', 'Diners Club'],\n },\n ],\n showPaymentFormsInColor: true,\n showSocialNetworksInColor: true,\n showVtexLogoInColor: true,\n logo: 'logoUrl',\n ...customProps,\n }\n\n return render(<Footer {...props} />)\n }\n\n it('should be rendered', () => {\n const { asFragment } = renderComponent()\n expect(asFragment()).toBeDefined()\n })\n\n it('should match the snapshot', () => {\n const { asFragment } = renderComponent()\n expect(asFragment()).toMatchSnapshot()\n })\n\n it('should contain the section links', () => {\n const sectionLinks = [\n {\n title: 'We have one section title',\n links: [\n { url: 'someUrl', title: 'someTitle' },\n { url: 'anotherUrl', title: 'anotherTitle' },\n ],\n },\n {\n title: 'We have two section titles',\n links: [{ url: 'yetAnotherUrl', title: 'yetAnotherUrl' }],\n },\n ]\n\n const { getAllByText } = renderComponent({ sectionLinks })\n\n sectionLinks.forEach(({ title, links }) => {\n expect(getAllByText(title)).toBeTruthy()\n\n links.forEach(({ title }) => {\n expect(getAllByText(title)).toBeTruthy()\n })\n })\n })\n\n it('should contain the payment forms', () => {\n const paymentForms = [\n {\n title: 'Credit',\n paymentTypes: ['MasterCard', 'Visa', 'Diners Club'],\n },\n {\n title: 'Debit',\n paymentTypes: ['MasterCard', 'Visa'],\n },\n ]\n\n const { getByText } = renderComponent({ paymentForms })\n\n paymentForms.forEach(({ title }) => {\n expect(getByText(title)).toBeTruthy()\n })\n })\n})\n\n```"
}
] |
code_store-footer_874345ef
|
[
{
"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 store-footer/react/legacy/FooterVtexLogo.js from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```javascript\nimport React from 'react'\nimport PropTypes from 'prop-types'\nimport classNames from 'classnames'\nimport { withRuntimeContext } from 'vtex.render-runtime'\n\nimport { PLATFORM_GOCOMMERCE } from '../modules/platformCode'\nimport withImage from './withImage'\nimport footer from './footer.css'\n\n/**\n * \"Powered By Vtex\" image's component, used in Footer\n */\nconst FooterVtexLogo = ({ runtime, logoUrl, imageSrc }) => {\n if (!imageSrc) {\n return null\n }\n\n const isPlatformGCResult = runtime.platform === PLATFORM_GOCOMMERCE\n const vtexLogoItemClasses = classNames(footer.vtexLogoItem, {\n w4: isPlatformGCResult,\n 'h3 w3': !isPlatformGCResult,\n })\n\n return (\n <div\n className={`${footer.badgeList} flex flex-row justify-center pv4-s pa0-ns items-center ml-auto-m`}\n >\n {logoUrl && (\n <span className={`${footer.badge} pa2-s pa1-ns`}>\n <img\n className={`${footer.logoImage} h3`}\n alt={runtime.platform}\n src={logoUrl}\n />\n </span>\n )}\n <span className={`${footer.badge} pa2-s pa1-ns nt7-ns`}>\n <img\n className={vtexLogoItemClasses}\n alt={runtime.platform}\n src={imageSrc}\n />\n </span>\n </div>\n )\n}\n\nFooterVtexLogo.displayName = 'FooterVtexLogo'\n\nFooterVtexLogo.propTypes = {\n /** Get the account name to find the correct platfom */\n runtime: PropTypes.shape({\n account: PropTypes.string.isRequired,\n platform: PropTypes.string.isRequired,\n }).isRequired,\n /** If true, the original logo (with color) is used. If not, the grayscale's one */\n showInColor: PropTypes.bool,\n /** The source for an external customizable logo to show above \"Powered By Vtex\" */\n logoUrl: PropTypes.string,\n imageSrc: PropTypes.string,\n}\n\nconst getImagePathFromProps = ({ runtime, showInColor }) =>\n `${runtime.platform}${showInColor ? '' : '-bw'}.svg`\n\nexport default withRuntimeContext(\n withImage(getImagePathFromProps)(FooterVtexLogo)\n)\n\n```"
}
] |
code_store-footer_50ab7b22
|
[
{
"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 store-footer/react/legacy/FooterPaymentFormMatrix.js from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```javascript\nimport PropTypes from 'prop-types'\nimport React, { Component } from 'react'\n\nimport FooterPaymentFormList from './FooterPaymentFormList'\n\nimport footer from './footer.css'\n\nexport default class FooterPaymentFormMatrix extends Component {\n static propTypes = {\n /** Payment forms array */\n paymentForms: PropTypes.arrayOf(\n PropTypes.shape({\n /** Payment form title */\n title: PropTypes.string,\n /** Payment types */\n paymentTypes: PropTypes.arrayOf(PropTypes.string.isRequired),\n })\n ),\n /** Determines if the icons are colorful */\n showPaymentFormsInColor: PropTypes.bool,\n }\n\n render() {\n const { paymentForms, ...otherProps } = this.props\n\n return (\n paymentForms && (\n <div className={`${footer.paymentMatrix} flex flex-wrap`}>\n {paymentForms.map((paymentFormsItem, index) => (\n <div\n key={`payment-container-${index}`}\n className={footer.paymentMatrixItem}\n >\n <FooterPaymentFormList\n horizontal\n titleId={paymentFormsItem.title}\n list={paymentFormsItem.paymentTypes.map(paymentType => ({\n paymentType,\n }))}\n {...otherProps}\n />\n </div>\n ))}\n </div>\n )\n )\n }\n}\n\n```"
}
] |
code_store-footer_84717e57
|
[
{
"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 store-footer/react/legacy/FooterLinkList.js from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```javascript\nimport PropTypes from 'prop-types'\nimport React from 'react'\nimport { injectIntl } from 'react-intl'\nimport { IOMessage, formatIOMessage } from 'vtex.native-types'\n\nimport footerList from './footerList'\nimport footer from './footer.css'\n\nconst FooterLinkItem = ({ url, title, target, intl }) =>\n title ? (\n <a\n className={`${\n footer.listLink\n } dib no-underline underline-hover mb0 mt2 w-100 t-small truncate c-muted-1 pointer`}\n href={formatIOMessage({ id: url, intl })}\n target={target ? target : '_self'}\n >\n <IOMessage id={title} />\n </a>\n ) : null\n\nFooterLinkItem.displayName = 'FooterLinkItem'\n\nFooterLinkItem.propTypes = {\n url: PropTypes.string,\n title: PropTypes.string,\n target: PropTypes.oneOf(['_self', '_blank']),\n intl: PropTypes.object,\n}\n\nconst FooterLinkItemWithIntl = injectIntl(FooterLinkItem)\n\nexport { FooterLinkItemWithIntl as FooterLinkItem }\n\nexport default footerList(FooterLinkItemWithIntl)\n\n```"
}
] |
code_store-footer_229fc96e
|
[
{
"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 store-footer/react/legacy/FooterPaymentFormList.js from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```javascript\nimport React from 'react'\nimport PropTypes from 'prop-types'\n\nimport footerList from './footerList'\nimport withImage from './withImage'\nimport footer from './footer.css'\n\n/**\n * Shows an image for the payments forms accepted\n */\nconst FooterPaymentFormItem = ({ imageSrc }) => {\n if (!imageSrc) {\n return null\n }\n\n return (\n <img\n className={`${footer.paymentFormItem} pr0 w2 h2`}\n src={imageSrc}\n alt=\"\"\n />\n )\n}\n\nFooterPaymentFormItem.displayName = 'FooterPaymentFormItem'\n\nFooterPaymentFormItem.propTypes = {\n imageSrc: PropTypes.string.isRequired,\n}\n\nconst getImagePathFromProps = ({ paymentType, showInColor }) =>\n `${paymentType.toLowerCase()}${showInColor ? '' : '-bw'}.svg`\n\nexport default footerList(\n withImage(getImagePathFromProps)(FooterPaymentFormItem)\n)\n\n```"
}
] |
code_store-footer_18e615a6
|
[
{
"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 store-footer/react/legacy/withImage.js from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```javascript\nimport React, { Component } from 'react'\n\nfunction getDisplayName(Component) {\n return Component.displayName || Component.name || 'Component'\n}\n\n/**\n * HOC used for lazily load an image in the 'images' folder right above\n * this component.\n *\n * Used for loading the logos for the Footer\n *\n * @param {Function} getImageFilename\n */\nexport default getImageFilename => {\n return WrappedComponent => {\n class WithImage extends Component {\n static displayName = `WithImage(${getDisplayName(WrappedComponent)})`\n static getSchema = WrappedComponent.getSchema\n static schema = WrappedComponent.schema\n\n state = {}\n\n _isMounted = false\n\n componentDidMount() {\n const imageName = getImageFilename(this.props)\n this._isMounted = true\n this.lazyImport(imageName)\n }\n\n componentWillUnmount() {\n this._isMounted = false\n }\n\n componentDidUpdate() {\n const imageName = getImageFilename(this.props)\n if (imageName !== this.state.imageName) {\n this.lazyImport(imageName)\n }\n }\n\n lazyImport = imageName => {\n return import(`../images/${imageName}`).then(imageSrc => {\n if (this._isMounted) {\n this.setState({ imageSrc: imageSrc.default, imageName })\n }\n })\n }\n\n render() {\n return (\n <WrappedComponent {...this.props} imageSrc={this.state.imageSrc} />\n )\n }\n }\n\n return WithImage\n }\n}\n\n```"
}
] |
code_store-footer_630953c6
|
[
{
"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 store-footer/react/legacy/propTypes.js from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```javascript\nimport PropTypes from 'prop-types'\n\nexport const objectLikeLinkArray = PropTypes.arrayOf(\n PropTypes.shape({\n url: PropTypes.string,\n title: PropTypes.string,\n target: PropTypes.oneOf(['_self', '_blank']),\n })\n)\n\nexport const objectLikeBadgeArray = PropTypes.arrayOf(\n PropTypes.shape({\n image: PropTypes.string,\n })\n)\n\n```"
}
] |
code_store-footer_9dda15f8
|
[
{
"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 store-footer/react/legacy/FooterLinksMatrix.js from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```javascript\nimport PropTypes from 'prop-types'\nimport React, { Component, Fragment } from 'react'\n\nimport Accordion from './Accordion'\nimport FooterLinkList, { FooterLinkItem } from './FooterLinkList'\nimport { objectLikeLinkArray } from './propTypes'\nimport footer from './footer.css'\n\nexport default class FooterLinksMatrix extends Component {\n static propTypes = {\n /** Links to be shown */\n links: PropTypes.arrayOf(\n PropTypes.shape({\n /** Link section title */\n title: PropTypes.string,\n /** Link section links */\n links: objectLikeLinkArray,\n })\n ),\n }\n\n render() {\n const { links } = this.props\n\n if (!links) {\n return null\n }\n\n return (\n <div className={`${footer.matrixContainer} flex flex-wrap`}>\n {links.map((linkItem, index) => (\n <Fragment key={`links-container-${index}`}>\n <div className={`${footer.matrixItem} flex flex-auto dn-s flex-ns`}>\n <FooterLinkList titleId={linkItem.title} list={linkItem.links} />\n </div>\n <div\n className={`${\n footer.matrixItemSmall\n } bb b--muted-2 dn-ns db-s w-100 ph2 pv3`}\n >\n <Accordion title={linkItem.title}>\n {linkItem.links.map(link => (\n <div\n key={`${link.title}-${index}`}\n className={`${footer.accordionItem} pt1`}\n >\n <FooterLinkItem {...link} />\n </div>\n ))}\n </Accordion>\n </div>\n </Fragment>\n ))}\n </div>\n )\n }\n}\n\n```"
}
] |
code_store-footer_5fc7888e
|
[
{
"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 store-footer/react/legacy/withImage.d.ts from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport { FC, ComponentType } from 'react'\n\nexport default (mapper: (props: any) => void) => (\n component: ComponentType<any>\n) => FC\n\n```"
}
] |
code_store-footer_62d17351
|
[
{
"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 store-footer/react/legacy/FooterSocialNetworkList.js from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```javascript\nimport PropTypes from 'prop-types'\nimport React from 'react'\n\nimport footerList from './footerList'\nimport withImage from './withImage'\nimport footer from './footer.css'\n\n/**\n * Shows an image for an specific social network\n */\nconst FooterSocialNetworkItem = ({ imageSrc, url }) => {\n if (!imageSrc) {\n return null\n }\n\n return (\n <a\n href={url}\n target=\"_blank\"\n rel=\"noreferrer noopener\"\n className={`${footer.socialNetworkList} c-muted-1`}\n >\n <img\n className={`${footer.socialNetworkItem} w2 h2`}\n src={imageSrc}\n alt=\"\"\n />\n </a>\n )\n}\n\nFooterSocialNetworkItem.displayName = 'FooterSocialNetworkItem'\n\nFooterSocialNetworkItem.propTypes = {\n /** Social network icon source */\n imageSrc: PropTypes.string,\n /** For which link should the user be redirected if the image is clicked */\n url: PropTypes.string,\n /** If true, the original logo (with color) is used. If not, the grayscale's one */\n showInColor: PropTypes.bool.isRequired,\n /** Indicates from which social network should the image be displayed */\n socialNetwork: PropTypes.oneOf([\n 'Facebook',\n 'Twitter',\n 'Instagram',\n 'Youtube',\n ]),\n}\nconst getImagePathFromProps = ({ socialNetwork, showInColor }) =>\n `${socialNetwork.toLowerCase()}${showInColor ? '' : '-bw'}.svg`\n\nexport default footerList(\n withImage(getImagePathFromProps)(FooterSocialNetworkItem)\n)\n\n```"
}
] |
code_store-footer_afb61f18
|
[
{
"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 store-footer/react/legacy/FooterBadgeList.js from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```javascript\nimport React from 'react'\nimport PropTypes from 'prop-types'\n\nimport footerList from './footerList'\n\nconst FooterBadgeItem = ({ image }) => {\n return (image && <img src={image} />) || null\n}\n\nFooterBadgeItem.displayName = 'FooterBadgeItem'\n\nFooterBadgeItem.propTypes = {\n image: PropTypes.string,\n}\n\nexport default footerList(FooterBadgeItem)\n\n\n```"
}
] |
code_store-footer_5687635b
|
[
{
"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 store-footer/react/legacy/footer.css from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```css\n.footer {\n --vpadding: 1.25rem;\n --vpadding-limits: 1.5rem;\n --icon-filling: #727273;\n --tilte-min-height: 0.875rem;\n}\n\n.listTitle {\n min-height: var(--tilte-min-height);\n}\n\n.accordionIcon path {\n fill: var(--icon-filling);\n}\n\n/* Mobile */\n@media screen and (min-width: 10em) {\n .container {\n flex-direction: column;\n }\n}\n\n@media screen and (min-width: 40em) {\n .container {\n flex-flow: row wrap;\n }\n}\n\n@media screen and (min-width: 64em) {\n .container {\n padding-top: var(--vpadding);\n padding-bottom: var(--vpadding);\n }\n\n .container:first-of-type {\n padding-top: var(--vpadding-limits);\n }\n\n .container:last-of-type {\n padding-bottom: var(--vpadding-limits);\n }\n}\n\n.accordion {}\n\n.accordionTitle {}\n\n.listLink {}\n\n.matrixContainer {}\n\n.matrixItem {}\n\n.matrixItemSmall {}\n\n.accordionItem {}\n\n.listContainer {}\n\n.listContainerRightAligned {}\n\n.listContainerHorizontal {}\n\n.list {}\n\n.listHorizontal {}\n\n.listItem {}\n\n.listItemHorizontal {}\n\n.paymentFormItem {}\n\n.paymentMatrix {}\n\n.paymentMatrixItem {}\n\n.socialNetworkItem {}\n\n.vtexLogoItem {}\n\n.badgeList {}\n\n.badge {}\n\n.logoImage {}\n\n.textInformation {}\n\n.links {}\n\n.socialNetworkContainer {}\n\n.textContainer {}\n\n.socialNetworkList {}\n\n.navigation {}\n\n.payment {}\n\n```"
}
] |
code_store-footer_a3a73ece
|
[
{
"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 store-footer/react/legacy/Footer.js from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```javascript\nimport PropTypes from 'prop-types'\nimport React, { Component } from 'react'\nimport classNames from 'classnames'\nimport { Container } from 'vtex.store-components'\nimport { IOMessage } from 'vtex.native-types'\n\nimport FooterBadgeList from './FooterBadgeList'\nimport FooterLinksMatrix from './FooterLinksMatrix'\nimport FooterPaymentFormMatrix from './FooterPaymentFormMatrix'\nimport FooterVtexLogo from './FooterVtexLogo'\nimport FooterSocialNetworkList from './FooterSocialNetworkList'\nimport { objectLikeBadgeArray, objectLikeLinkArray } from './propTypes'\n\nimport footer from './footer.css'\n\n/**\n * Footer component that appears in the bottom of every page.\n * Can be configured by the pages editor.\n */\nexport default class Footer extends Component {\n static displayName = 'Footer'\n\n static propTypes = {\n /** Social Networks */\n socialNetworks: objectLikeLinkArray,\n /** Links Sections */\n sectionLinks: PropTypes.arrayOf(\n PropTypes.shape({\n /** Link section title */\n title: PropTypes.string,\n /** Link section links */\n links: objectLikeLinkArray,\n })\n ),\n /** Badges */\n badges: objectLikeBadgeArray,\n /** Payment Forms */\n paymentForms: PropTypes.arrayOf(\n PropTypes.shape({\n /** Payment Form title */\n title: PropTypes.string,\n /** Payment Types */\n paymentTypes: PropTypes.arrayOf(PropTypes.string),\n })\n ),\n /** Determines if the icons are colorful */\n showPaymentFormsInColor: PropTypes.bool,\n /** Determines if the icons are colorful */\n showSocialNetworksInColor: PropTypes.bool,\n /** Determines if VTEX logo are colorful */\n showVtexLogoInColor: PropTypes.bool,\n /** Logo URL */\n logo: PropTypes.string,\n /** Store Informations */\n storeInformations: PropTypes.arrayOf(PropTypes.objectOf(PropTypes.string)),\n }\n\n static defaultProps = {\n showPaymentFormsInColor: false,\n showSocialNetworksInColor: false,\n showVtexLogoInColor: false,\n socialNetworks: [\n {\n socialNetwork: 'Facebook',\n url: '#',\n },\n ],\n sectionLinks: [],\n badges: [],\n paymentForms: [\n {\n title: 'admin/editor.footer.paymentForms.paymentForm',\n paymentTypes: ['MasterCard'],\n },\n ],\n storeInformations: [],\n }\n\n getInformationCssClasses = (listLength, index) => {\n let paddingClass\n const defaultClasses = `${footer.textInformation} w-100 w-50-ns t-mini ma0`\n // Only apply vertical paddings if there is more than 1 element\n if (listLength > 1) {\n if (index === 0) {\n paddingClass = 'pt4-s pb4-s pr4-ns'\n } else if (index + 1 === listLength) {\n paddingClass = 'pt4-s pb4-ns pl4-ns'\n } else {\n paddingClass = 'pv4-s'\n }\n }\n return classNames(defaultClasses, paddingClass)\n }\n\n render() {\n const {\n showPaymentFormsInColor,\n showSocialNetworksInColor,\n showVtexLogoInColor,\n logo,\n sectionLinks,\n socialNetworks,\n paymentForms,\n badges,\n storeInformations,\n } = this.props\n\n return (\n <footer className={`${footer.footer} bt bw1 b--muted-4 mt4 pv5`}>\n <Container className=\"justify-center flex\">\n <div className=\"w-100 mw9\">\n <nav\n className={`${footer.container} ${\n footer.navigation\n } pt5-s flex justify-between bg-base c-muted-1`}>\n <div className={`${footer.links} t-small w-100-s w-80-ns pb5-s`}>\n <FooterLinksMatrix links={sectionLinks} />\n </div>\n <div className={`${footer.socialNetworkContainer} pv5-s pa1-ns`}>\n <FooterSocialNetworkList\n titleId=\"store/social-networks\"\n list={socialNetworks}\n horizontal\n alignRight\n titleCapitals\n showInColor={showSocialNetworksInColor}\n />\n </div>\n </nav>\n <div\n className={`${footer.container} ${\n footer.payment\n } pv5-s flex justify-between bg-base c-muted-1`}>\n <FooterPaymentFormMatrix\n paymentForms={paymentForms}\n horizontal\n showInColor={showPaymentFormsInColor}\n />\n </div>\n <div\n className={`${footer.container} ${\n footer.informationContainer\n } pt5-s flex justify-between bg-base c-muted-1`}>\n <div\n className={`${\n footer.textContainer\n } w-100-s pb5-s w-80-ns flex flex-wrap`}>\n {storeInformations &&\n storeInformations.map(({ storeInformation }, index) => (\n <p\n key={`information-${index}`}\n className={this.getInformationCssClasses(\n storeInformations.length,\n index\n )}>\n <IOMessage id={storeInformation} />\n </p>\n ))}\n </div>\n <FooterVtexLogo\n logoUrl={logo}\n showInColor={showVtexLogoInColor}\n />\n <FooterBadgeList list={badges} />\n </div>\n </div>\n </Container>\n </footer>\n )\n }\n}\n\n```"
}
] |
code_store-footer_7192a73a
|
[
{
"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 store-footer/react/legacy/footerList.js from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```javascript\nimport classNames from 'classnames'\nimport PropTypes from 'prop-types'\nimport React, { Component } from 'react'\nimport { injectIntl } from 'react-intl'\n\nimport footer from './footer.css'\n\nconst getDisplayName = Component => {\n return Component.displayName || Component.name || 'Component'\n}\n\nexport default WrappedComponent => {\n class FooterList extends Component {\n static displayName = `FooterList(${getDisplayName(WrappedComponent)})`\n\n static propTypes = {\n titleId: PropTypes.string,\n list: PropTypes.array,\n intl: PropTypes.object,\n alignRight: PropTypes.bool,\n horizontal: PropTypes.bool,\n titleCapitals: PropTypes.bool,\n }\n\n static defaultProps = {\n alignRight: false,\n horizontal: false,\n }\n\n formatMessage(id) {\n return (\n (this.props.intl.messages[id] &&\n this.props.intl.formatMessage({ id })) ||\n id\n )\n }\n\n render() {\n const {\n list,\n titleId,\n alignRight,\n horizontal,\n titleCapitals,\n ...otherProps\n } = this.props\n\n if (!list || list.length === 0) return null\n\n const titleClasses = classNames(`${footer.listTitle} t-small ma0 db`, {\n ttu: !titleCapitals,\n })\n\n const listContainerClasses = classNames(\n `${footer.listContainer} pl0 w-100 mt0-ns`,\n {\n [`${footer.listContainerRightAligned} ml-auto-m`]: alignRight,\n [`${footer.listContainerHorizontal} w-auto-m`]: horizontal,\n }\n )\n\n const listClasses = classNames(\n `${footer.list} list flex flex-column flex-wrap pa0 mb0 mt3`,\n {\n [`${footer.listHorizontal} flex-row flex-wrap`]: horizontal,\n }\n )\n\n const listItemClasses = classNames(`${footer.listItem} mr0 mr3`, {\n [`${footer.listItemHorizontal}`]: horizontal,\n })\n\n return (\n <div className={listContainerClasses}>\n {titleId && (\n <span className={titleClasses}>{this.formatMessage(titleId)}</span>\n )}\n <ul className={listClasses}>\n {list.map((item, index) => (\n <li key={index} className={listItemClasses}>\n <WrappedComponent {...otherProps} {...item} />\n </li>\n ))}\n </ul>\n </div>\n )\n }\n }\n\n return injectIntl(FooterList)\n}\n\n```"
}
] |
code_store-footer_37399abd
|
[
{
"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 store-footer/react/legacy/Accordion.js from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```javascript\nimport PropTypes from 'prop-types'\nimport React, { Component } from 'react'\nimport { Collapse } from 'react-collapse'\nimport { injectIntl } from 'react-intl'\n\nimport { IconCaret } from 'vtex.store-icons'\n\nimport footer from './footer.css'\n\nclass Accordion extends Component {\n static propTypes = {\n /** Title shown in Accordion */\n title: PropTypes.string,\n /** Accordion children. Components shown inside Collapse */\n children: PropTypes.node.isRequired,\n /** Internationalization */\n intl: PropTypes.object,\n }\n\n state = {\n open: false,\n }\n\n handleClick = () => {\n this.setState(({ open }) => ({ open: !open }))\n }\n\n translate = id => {\n return this.props.intl.messages[id]\n ? this.props.intl.formatMessage({ id })\n : id\n }\n\n render() {\n const { children, title } = this.props\n const { open } = this.state\n\n return (\n <div className={`${footer.accordion} pv2`}>\n <div\n role=\"button\"\n tabIndex={0}\n className=\"pointer\"\n onKeyDown={e => {\n if (e.key === 'Enter') {\n this.handleClick()\n }\n }}\n onClick={this.handleClick}\n >\n <div>\n {title && (\n <span className={`${footer.accordionTitle} dib ma0 ttu`}>\n {this.translate(title)}\n </span>\n )}\n <span className={`${footer.accordionIcon} fr`}>\n {open ? (\n <IconCaret orientation=\"down\" />\n ) : (\n <IconCaret orientation=\"right\" />\n )}\n </span>\n </div>\n </div>\n\n <div style={{ overflowY: 'auto' }}>\n <Collapse isOpened={open}>{children}</Collapse>\n </div>\n </div>\n )\n }\n}\n\nexport default injectIntl(Accordion)\n\n```"
}
] |
code_store-footer_a4d9c3c3
|
[
{
"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 store-footer/react/__tests__/PoweredBy.test.tsx from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport React from 'react'\nimport { render, screen } from '@vtex/test-tools/react'\n\nimport PoweredBy from '../PoweredBy'\n\ndescribe('PoweredBy', () => {\n it('should get the platform from runtime', async () => {\n render(<PoweredBy />)\n\n const element = await screen.findByAltText('VTEX')\n\n const src = element.getAttribute('src')\n\n expect(src).toBe('vtex-bw.svg')\n })\n})\n\n```"
}
] |
code_store-footer_35ecfec8
|
[
{
"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 store-footer/react/components/SocialNetworks/index.tsx from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\nimport { IOMessage } from 'vtex.native-types'\nimport type { CssHandlesTypes } from 'vtex.css-handles'\nimport { useCssHandles } from 'vtex.css-handles'\n\nimport SocialNetwork, {\n CSS_HANDLES as SocialNetworkHandles,\n} from './SocialNetwork'\nimport { SocialNetworkHandlesProvider } from './HandlesContext'\n\nexport const CSS_HANDLES = [\n 'socialNetworksTitle',\n 'socialNetworksContainer',\n 'socialNetworkWrapper',\n ...SocialNetworkHandles,\n] as const\n\ninterface SocialNetworkData {\n url: string\n name: string\n}\n\ninterface Props {\n /** Section title */\n title?: string\n /** List of social networks to display */\n socialNetworks: SocialNetworkData[]\n /** Define if social network icons will be coloured */\n showInColor: boolean\n classes?: CssHandlesTypes.CustomClasses<typeof CSS_HANDLES>\n}\n\nfunction SocialNetworks({\n title,\n showInColor,\n socialNetworks = [],\n classes,\n}: PropsWithChildren<Props>) {\n const { handles, withModifiers } = useCssHandles(CSS_HANDLES, {\n classes,\n })\n\n return (\n <SocialNetworkHandlesProvider\n handles={handles}\n withModifiers={withModifiers}\n >\n <div className={handles.socialNetworkWrapper}>\n {title && (\n <div className={`${handles.socialNetworksTitle} mb4`}>\n <IOMessage id={title} />\n </div>\n )}\n <div className={`${handles.socialNetworksContainer} nh2 flex`}>\n {socialNetworks.map((socialNetworkData) => (\n <SocialNetwork\n key={socialNetworkData.name + socialNetworkData.url}\n showInColor={showInColor}\n url={socialNetworkData.url}\n name={socialNetworkData.name}\n />\n ))}\n </div>\n </div>\n </SocialNetworkHandlesProvider>\n )\n}\n\nSocialNetworks.schema = {\n title: 'admin/editor.footer.socialNetworks.title',\n description: 'admin/editor.footer.socialNetworks.description',\n type: 'object',\n properties: {\n showInColor: {\n default: false,\n isLayout: true,\n title: 'admin/editor.footer.showSocialNetworksInColor.title',\n type: 'boolean',\n },\n },\n}\n\nexport default SocialNetworks\n\n```"
}
] |
code_store-footer_bb1b47cb
|
[
{
"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 store-footer/react/components/SocialNetworks/SocialNetwork.tsx from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport React from 'react'\nimport { useIntl } from 'react-intl'\nimport { formatIOMessage } from 'vtex.native-types'\n\nimport facebook from '../../images/facebook.svg'\nimport facebookBw from '../../images/facebook-bw.svg'\nimport instagram from '../../images/instagram.svg'\nimport instagramBw from '../../images/instagram-bw.svg'\nimport linkedin from '../../images/linkedin.svg'\nimport linkedinBw from '../../images/linkedin-bw.svg'\nimport pinterest from '../../images/pinterest.svg'\nimport pinterestBw from '../../images/pinterest-bw.svg'\nimport twitter from '../../images/twitter.svg'\nimport twitterBw from '../../images/twitter-bw.svg'\nimport youtube from '../../images/youtube.svg'\nimport youtubeBw from '../../images/youtube-bw.svg'\nimport { useSocialNetworkHandles } from './HandlesContext'\n\nexport const CSS_HANDLES = ['socialNetworkLink', 'socialNetworkImage'] as const\n\nconst SOCIAL_NETWORK_ICONS = {\n facebook,\n 'facebook-bw': facebookBw,\n instagram,\n 'instagram-bw': instagramBw,\n linkedin,\n 'linkedin-bw': linkedinBw,\n pinterest,\n 'pinterest-bw': pinterestBw,\n twitter,\n 'twitter-bw': twitterBw,\n youtube,\n 'youtube-bw': youtubeBw,\n}\n\nconst getImagePathFromProps = ({\n name,\n showInColor,\n}: Pick<Props, 'name' | 'showInColor'>) =>\n `${name.toLowerCase()}${showInColor ? '' : '-bw'}`\n\nfunction isValidIcon(key: string): key is keyof typeof SOCIAL_NETWORK_ICONS {\n return key in SOCIAL_NETWORK_ICONS\n}\n\ninterface Props {\n showInColor: boolean\n url: string\n name: string\n}\n\n/**\n * Shows an image for an specific social network\n */\nfunction SocialNetwork({ name, showInColor, url }: Props) {\n const intl = useIntl()\n const { handles, withModifiers } = useSocialNetworkHandles()\n\n const normalizedName = String(name).toLowerCase()\n const imagePath = getImagePathFromProps({ name: normalizedName, showInColor })\n\n if (!isValidIcon(imagePath)) {\n return null\n }\n\n const imageSrc = SOCIAL_NETWORK_ICONS[imagePath]\n\n return (\n <a\n href={formatIOMessage({ id: url, intl })}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className={`${handles.socialNetworkLink} ${withModifiers(\n 'socialNetworkLink',\n normalizedName\n )} c-muted-1 w2 h2 mh2 flex items-center`}\n >\n <img\n className={`${handles.socialNetworkImage} ${withModifiers(\n 'socialNetworkImage',\n normalizedName\n )}`}\n src={imageSrc}\n alt={formatIOMessage({ id: name, intl })}\n title={formatIOMessage({ id: name, intl })}\n />\n </a>\n )\n}\n\nSocialNetwork.displayName = 'SocialNetwork'\n\nexport default SocialNetwork\n\n```"
}
] |
code_store-footer_692c52b5
|
[
{
"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 store-footer/react/components/SocialNetworks/HandlesContext.tsx from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { createCssHandlesContext } from 'vtex.css-handles'\n\nimport { CSS_HANDLES } from './index'\n\nconst { CssHandlesProvider, useContextCssHandles } = createCssHandlesContext(\n CSS_HANDLES\n)\n\nexport {\n CssHandlesProvider as SocialNetworkHandlesProvider,\n useContextCssHandles as useSocialNetworkHandles,\n}\n\n```"
}
] |
code_store-footer_a27612be
|
[
{
"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 store-footer/react/components/AcceptedPaymentMethods/index.tsx from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport React from 'react'\nimport type { CssHandlesTypes } from 'vtex.css-handles'\nimport { useCssHandles } from 'vtex.css-handles'\n\nimport { PaymentMethodsHandlesProvider } from './HandlesContext'\nimport type { PaymentMethod } from './PaymentMethodIcon'\nimport PaymentMethodIcon, {\n CSS_HANDLES as PaymentMethodIconHandles,\n} from './PaymentMethodIcon'\n\nexport const CSS_HANDLES = [\n 'acceptedPaymentMethodContainer',\n ...PaymentMethodIconHandles,\n] as const\n\ninterface Props {\n /** list of accepeted payment methods */\n paymentMethods: PaymentMethod[]\n /** Define if payment method icons will be coloured */\n showInColor: boolean\n classes?: CssHandlesTypes.CustomClasses<typeof CSS_HANDLES>\n}\n\nfunction AcceptedPaymentMethods({\n paymentMethods = [],\n showInColor = false,\n classes,\n}: Props) {\n const { handles, withModifiers } = useCssHandles(CSS_HANDLES, {\n classes,\n })\n\n return (\n <PaymentMethodsHandlesProvider\n handles={handles}\n withModifiers={withModifiers}\n >\n <div className={`${handles.acceptedPaymentMethodContainer} nh2 flex`}>\n {paymentMethods.map((paymentMethod) => (\n <PaymentMethodIcon\n key={paymentMethod}\n paymentMethod={paymentMethod}\n showInColor={showInColor}\n />\n ))}\n </div>\n </PaymentMethodsHandlesProvider>\n )\n}\n\nAcceptedPaymentMethods.schema = {\n title: 'admin/editor.footer.acceptedPaymentMethods.title',\n description: 'admin/editor.footer.acceptedPaymentMethods.description',\n type: 'object',\n properties: {\n showInColor: {\n default: false,\n isLayout: true,\n title: 'admin/editor.footer.showPaymentMethodsInColor.title',\n type: 'boolean',\n },\n },\n}\n\nexport default AcceptedPaymentMethods\n\n```"
}
] |
code_store-footer_c4c990f8
|
[
{
"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 store-footer/react/components/AcceptedPaymentMethods/PaymentMethodIcon.tsx from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport React from 'react'\nimport { useIntl } from 'react-intl'\nimport { formatIOMessage } from 'vtex.native-types'\n\nimport dinersClub from '../../images/diners club.svg'\nimport dinersClubBw from '../../images/diners club-bw.svg'\nimport mastercard from '../../images/mastercard.svg'\nimport mastercardBw from '../../images/mastercard-bw.svg'\nimport visa from '../../images/visa.svg'\nimport visaBw from '../../images/visa-bw.svg'\nimport { usePaymentMethodsHandles } from './HandlesContext'\n\nexport const CSS_HANDLES = [\n 'paymentMethodIcon',\n 'paymentMethodIconImage',\n] as const\n\nconst PAYMENT_METHOD_ICONS = {\n 'diners club': dinersClub,\n 'diners club-bw': dinersClubBw,\n mastercard,\n 'mastercard-bw': mastercardBw,\n visa,\n 'visa-bw': visaBw,\n}\n\nexport type PaymentMethod = 'diners club' | 'mastercard' | 'visa'\n\nfunction isValidIcon(key: string): key is keyof typeof PAYMENT_METHOD_ICONS {\n return key in PAYMENT_METHOD_ICONS\n}\n\ninterface Props {\n imageSrc?: string\n /** If true, the original logo (with color) is used. If not, the grayscale's one */\n showInColor?: boolean\n /** Indicates which one of the payments method should the component show its image */\n paymentMethod: PaymentMethod\n}\n\nconst getImagePathFromProps = ({\n paymentMethod,\n showInColor,\n}: Pick<Props, 'paymentMethod' | 'showInColor'>) =>\n `${paymentMethod.toLowerCase()}${showInColor ? '' : '-bw'}`\n\n/**\n * Shows an image for the payments forms accepted\n */\nfunction PaymentMethodIcon({ paymentMethod, showInColor }: Props) {\n const intl = useIntl()\n\n const { handles } = usePaymentMethodsHandles()\n const imagePath = getImagePathFromProps({ paymentMethod, showInColor })\n\n if (!isValidIcon(imagePath)) {\n return null\n }\n\n const imageSrc = PAYMENT_METHOD_ICONS[imagePath]\n\n return (\n <div className={`${handles.paymentMethodIcon} w2 h2 mh2 flex items-center`}>\n <img\n className={`${handles.paymentMethodIconImage} w-100`}\n src={imageSrc}\n alt={formatIOMessage({ id: paymentMethod, intl })}\n title={formatIOMessage({ id: paymentMethod, intl })}\n />\n </div>\n )\n}\n\nexport default PaymentMethodIcon\n\n```"
}
] |
code_store-footer_986cf887
|
[
{
"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 store-footer/react/components/AcceptedPaymentMethods/HandlesContext.tsx from the store-footer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { createCssHandlesContext } from 'vtex.css-handles'\n\nimport { CSS_HANDLES } from './index'\n\nconst { CssHandlesProvider, useContextCssHandles } = createCssHandlesContext(\n CSS_HANDLES\n)\n\nexport {\n CssHandlesProvider as PaymentMethodsHandlesProvider,\n useContextCssHandles as usePaymentMethodsHandles,\n}\n\n```"
}
] |
code_store-maintenance_7e0baadf
|
[
{
"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 store-maintenance/checkout-ui-custom/checkout6-custom.js from the store-maintenance VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```javascript\n(function() {\n if (location.pathname !== '/maintenance') {\n location.href = '/maintenance'\n }\n })()\n```"
}
] |
code_store-maintenance_0ad4f08a
|
[
{
"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 store-maintenance/checkout-ui-custom/checkout-confirmation-custom.js from the store-maintenance VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```javascript\n// WARNING: THE USAGE OF CUSTOM SCRIPTS IS NOT SUPPORTED. VTEX IS NOT LIABLE FOR ANY DAMAGES THIS MAY CAUSE.\n// THIS MAY BREAK YOUR STORE AND STOP SALES. IN CASE OF ERRORS, PLEASE DELETE THE CONTENT OF THIS SCRIPT.\n\n```"
}
] |
code_store-maintenance_88a2aedc
|
[
{
"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 store-maintenance/checkout-ui-custom/checkout5-custom.js from the store-maintenance VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```javascript\n// WARNING: THE USAGE OF CUSTOM SCRIPTS IS NOT SUPPORTED. VTEX IS NOT LIABLE FOR ANY DAMAGES THIS MAY CAUSE. THIS MAY BREAK YOUR STORE AND STOP SALES. IN CASE OF ERRORS, PLEASE DELETE THE CONTENT OF THIS SCRIPT.\n(function() {\n if (location.pathname !== '/maintenance') {\n location.href = '/maintenance'\n }\n })()\n```"
}
] |
code_store-maintenance_d60aa01b
|
[
{
"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 store-maintenance/docs/README.md from the store-maintenance VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```markdown\n## 🚨 Disclaimer - Template Application\n>:warning: **This project is not maintained by VTEX, and this app is provided as a working example on how this feature can be implemented. Improvements and fixes will be on the implementation team side.**\n>\n>All template applications provided are developed by the VTEX community, you can use them freely.\n\n \n# VTEX Store Maintenance\n## Description\n\nVTEX Store Maintenance is a small app that puts your side into a maintenance mode when installed.\nAs soon as it is active, any route will redirect to /maintenance\nUninstall to put the store back live.\n\n:loudspeaker: **Disclaimer:** Don't fork this project; use, contribute, or open issue with your feature request.\n\n## Table of Contents\n\n- [Usage](#usage)\n- [CSS Handles](#css-handles)\n\n\n## Usage\n\nJust install the app in order to put your page into a maintenance mode.\n\n```bash\n vtex install vtex.store-maintenance\n```\nThe app then will redirect any user browsing the page to /maintenance.\nIf you have no content at /maintenance, this app will make sure to render at least a minimal message.\nIt's up to you to design the /maintenance page the way you like to have it.\n\nWe do offer a theme that takes care of the basics. You can clone it from [here](https://github.com/vtex-apps/store-maintenance-theme) and install it alongside your native store theme. This is not mandatory to do, but offers a basic layout that you can start working on.\n\n```"
}
] |
code_store-maintenance_49ecbb9d
|
[
{
"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 store-maintenance/node/service.json from the store-maintenance VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"memory\": 768,\n \"cpu\": 50,\n \"ttl\": 10,\n \"timeout\": 20,\n \"minReplicas\": 4,\n \"maxReplicas\": 50,\n \"workers\": 1,\n \"routes\": {\n \"proxy\": {\n \"path\": \"/path*\",\n \"public\": true,\n \"smartcache\": true\n }\n }\n}\n\n```"
}
] |
code_store-maintenance_7c5c0cc8
|
[
{
"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 store-maintenance/node/package.json from the store-maintenance VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"dependencies\": {\n \"co-body\": \"^6.0.0\",\n \"ramda\": \"^0.25.0\"\n },\n \"devDependencies\": {\n \"@types/co-body\": \"^0.0.3\",\n \"@types/jest\": \"^24.0.18\",\n \"@types/node\": \"^12.0.0\",\n \"@types/ramda\": \"types/npm-ramda#dist\",\n \"@vtex/api\": \"6.45.6\",\n \"@vtex/test-tools\": \"^1.0.0\",\n \"@vtex/tsconfig\": \"^0.5.6\",\n \"typescript\": \"3.9.7\"\n },\n \"scripts\": {\n \"lint\": \"tsc --noEmit --pretty\"\n },\n \"version\": \"1.0.0\"\n}\n\n```"
}
] |
code_store-maintenance_12095f75
|
[
{
"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 store-maintenance/node/index.ts from the store-maintenance VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport { Service } from '@vtex/api'\nimport { method } from '@vtex/api'\n\nimport { proxy } from './middlewares/proxy'\n\n// Export a service that defines route handlers and client options.\nexport default new Service({\n routes: {\n proxy: method({\n GET: [proxy],\n })\n },\n})\n\n```"
}
] |
code_store-maintenance_f2e27166
|
[
{
"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 store-maintenance/node/middlewares/proxy.ts from the store-maintenance VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nexport async function proxy(ctx: any, next: () => Promise<any>) {\n let isMaintenance = ctx.originalUrl === '/maintenance'\n\n console.log('## ctx.originalUrl', ctx.originalUrl)\n console.log('## isMaintenance', isMaintenance)\n\n if (!isMaintenance) {\n ctx.status = 302\n ctx.redirect('/maintenance')\n }\n else {\n ctx.body = 'The site is under maintenance'\n }\n await next()\n}\n\n```"
}
] |
code_google-search-console_62816928
|
[
{
"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 google-search-console/docs/README.md from the google-search-console VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```markdown\n# Search Console\n\nVTEX Search Console first-party app\n\n## How to install\n\nOpen the VTEX App Store and install this app on your store.\n\nNow, open the app settings on your admin and fill in your Search Console's Content.\n\n```"
}
] |
code_google-search-console_e6352da2
|
[
{
"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 google-search-console/public/metadata/messages/es-AR.json from the google-search-console VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"Google Search Console\",\n \"headline\": \"Conecte su tienda VTEX al servicio de optimización de indexación de Google.\",\n \"overview\": \"Search Console es un servicio gratuito de Google para verificar el estado de indexación de su tienda en los motores de búsqueda y optimizar la visibilidad de su ecommerce.\\\\n\\\\n Esta aplicación implementa la configuración de Google Search Console en su tienda usando el admin de VTEX. Usted deberá ingresar su ID de Search Console en la página de configuración de la aplicación.\",\n \"features\": [\n \"Configura Google Search Console con el admin de VTEX\"\n ],\n \"additionalInformation\": \"La gestión de la optimización de la indexación se realiza directamente a través de la plataforma Google Search Console (https://search.google.com/search-console/) después de instalar y configurar la aplicación.\",\n \"websiteURL\": \"https://vtex.com/\",\n \"support\": {\n \"url\": \"https://support.vtex.com/hc/requests\"\n }\n }\n```"
}
] |
code_google-search-console_5a7fabcf
|
[
{
"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 google-search-console/public/metadata/messages/pt-BR.json from the google-search-console VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"Google Search Console\",\n \"headline\": \"Conecte a sua loja VTEX ao serviço de otimização de indexação do Google.\",\n \"overview\": \"O Search Console é um serviço gratuito do Google para verificar o status de indexação da sua loja nos mecanismos de busca e otimizar a visibilidade do seu ecommerce.\\\\n\\\\n Este app implementa a configuração do Google Search Console na sua loja utilizando o admin da VTEX. Você precisará inserir o ID do Search Console na página de configuração do aplicativo.\",\n \"features\": [\n \"Configure o Google Search Console pelo admin da VTEX\"\n ],\n \"additionalInformation\": \"A gestão da otimização de indexação é feita diretamente pela platafoma do Google Search Console (https://search.google.com/search-console/) após a instalação e configuração do app.\",\n \"websiteURL\": \"https://vtex.com/\",\n \"support\": {\n \"url\": \"https://support.vtex.com/hc/requests\"\n }\n }\n```"
}
] |
code_google-search-console_6fc1f5ec
|
[
{
"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 google-search-console/public/metadata/messages/en-US.json from the google-search-console VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"Google Search Console\",\n \"headline\": \"Connect your VTEX store to Google's indexing optimization service.\",\n \"overview\": \"Search Console is a free service from Google to check your store's indexing status on search engines and optimize the visibility of your ecommerce.\\\\n\\\\n This app implements the Google Search Console configuration in your store using the admin of VTEX. You’ll need to enter your Search Console ID on the app’s configuration page.\",\n \"features\": [\n \"Configure Google Search Console using the VTEX admin\"\n ],\n \"additionalInformation\": \"The management of indexing optimization is done directly through the Google Search Console platform (https://search.google.com/search-console/) after installing and configuring the app.\",\n \"websiteURL\": \"https://vtex.com/\",\n \"support\": {\n \"url\": \"https://support.vtex.com/hc/requests\"\n }\n }\n```"
}
] |
code_country-flags_3952b90c
|
[
{
"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 country-flags/docs/README.md from the country-flags VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```markdown\n# VTEX Country Flags\n\nA React component that renders country flags as SVG icons.\n\n## API\n\n### CountryFlag\n\nThis component receives the country code and renders that respective country's flag.\n\n#### Props\n\n| Prop name | Type | Description |\n| --- | --- | --- |\n| `iso3` | `string` | The country code in ISO-3 format (e.g. `BRA`). Default: `undefined` |\n| `iso2` | `string` | The country code in ISO-2 format (e.g. `BR`). Default: `undefined` |\n\n> Notice that you only need to pass either `iso3` or `iso2` prop, not both.\n\nExample usage:\n\n```tsx\nimport { CountryFlag } from 'vtex.country-flags'\n\nconst Component = () => {\n return (\n // renders Brazil flag\n <CountryFlag iso3=\"BRA\" />\n )\n}\n```\n\n```"
}
] |
code_country-flags_b40bc3d2
|
[
{
"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 country-flags/react/CountryFlag.tsx from the country-flags VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport React from 'react'\nimport getCountryISO3 from 'country-iso-2-to-3'\n\nimport DefaultFlag from './icons/default'\nimport { loadFlag, CountryCode } from './flagMap'\n\ntype Props = { iso2: string } | { iso3: string }\n\nconst CountryFlag: React.FC<Props> = props => {\n const countryCode = ('iso2' in props\n ? getCountryISO3(props.iso2)\n : props.iso3) as CountryCode\n\n const flag = loadFlag(countryCode) ?? <DefaultFlag />\n\n return flag\n}\n\nexport default CountryFlag\n\n```"
}
] |
code_country-flags_5f7dfc59
|
[
{
"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 country-flags/react/flagMap.tsx from the country-flags VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport React, { Suspense } from 'react'\n\n/**\n * Mapping of country's ISO-3 code to the flag component\n */\nconst flagMap = {\n AFG: React.lazy(() => import('./icons/AFG')),\n AGO: React.lazy(() => import('./icons/AGO')),\n ALB: React.lazy(() => import('./icons/ALB')),\n AND: React.lazy(() => import('./icons/AND')),\n ARE: React.lazy(() => import('./icons/ARE')),\n ARG: React.lazy(() => import('./icons/ARG')),\n ARM: React.lazy(() => import('./icons/ARM')),\n ATG: React.lazy(() => import('./icons/ATG')),\n AUS: React.lazy(() => import('./icons/AUS')),\n AUT: React.lazy(() => import('./icons/AUT')),\n AZE: React.lazy(() => import('./icons/AZE')),\n BDI: React.lazy(() => import('./icons/BDI')),\n BEL: React.lazy(() => import('./icons/BEL')),\n BEN: React.lazy(() => import('./icons/BEN')),\n BFA: React.lazy(() => import('./icons/BFA')),\n BGD: React.lazy(() => import('./icons/BGD')),\n BGR: React.lazy(() => import('./icons/BGR')),\n BHR: React.lazy(() => import('./icons/BHR')),\n BHS: React.lazy(() => import('./icons/BHS')),\n BIH: React.lazy(() => import('./icons/BIH')),\n BLR: React.lazy(() => import('./icons/BLR')),\n BLZ: React.lazy(() => import('./icons/BLZ')),\n BOL: React.lazy(() => import('./icons/BOL')),\n BRA: React.lazy(() => import('./icons/BRA')),\n BRB: React.lazy(() => import('./icons/BRB')),\n BRN: React.lazy(() => import('./icons/BRN')),\n BUR: React.lazy(() => import('./icons/BUR')),\n BWA: React.lazy(() => import('./icons/BWA')),\n CAF: React.lazy(() => import('./icons/CAF')),\n CAN: React.lazy(() => import('./icons/CAN')),\n CHE: React.lazy(() => import('./icons/CHE')),\n CHL: React.lazy(() => import('./icons/CHL')),\n CHN: React.lazy(() => import('./icons/CHN')),\n CIV: React.lazy(() => import('./icons/CIV')),\n CMR: React.lazy(() => import('./icons/CMR')),\n COD: React.lazy(() => import('./icons/COD')),\n COG: React.lazy(() => import('./icons/COG')),\n COL: React.lazy(() => import('./icons/COL')),\n COM: React.lazy(() => import('./icons/COM')),\n CPV: React.lazy(() => import('./icons/CPV')),\n CRI: React.lazy(() => import('./icons/CRI')),\n CUB: React.lazy(() => import('./icons/CUB')),\n CYP: React.lazy(() => import('./icons/CYP')),\n CZE: React.lazy(() => import('./icons/CZE')),\n DEU: React.lazy(() => import('./icons/DEU')),\n DJI: React.lazy(() => import('./icons/DJI')),\n DMA: React.lazy(() => import('./icons/DMA')),\n DNK: React.lazy(() => import('./icons/DNK')),\n DOM: React.lazy(() => import('./icons/DOM')),\n DZA: React.lazy(() => import('./icons/DZA')),\n ECU: React.lazy(() => import('./icons/ECU')),\n EGY: React.lazy(() => import('./icons/EGY')),\n ENG: React.lazy(() => import('./icons/ENG')),\n ERI: React.lazy(() => import('./icons/ERI')),\n ESP: React.lazy(() => import('./icons/ESP')),\n EST: React.lazy(() => import('./icons/EST')),\n ETH: React.lazy(() => import('./icons/ETH')),\n EUE: React.lazy(() => import('./icons/EUE')),\n FIN: React.lazy(() => import('./icons/FIN')),\n FJI: React.lazy(() => import('./icons/FJI')),\n FLK: React.lazy(() => import('./icons/FLK')),\n FRA: React.lazy(() => import('./icons/FRA')),\n FRO: React.lazy(() => import('./icons/FRO')),\n FSM: React.lazy(() => import('./icons/FSM')),\n GAB: React.lazy(() => import('./icons/GAB')),\n GBR: React.lazy(() => import('./icons/GBR')),\n GEO: React.lazy(() => import('./icons/GEO')),\n GGY: React.lazy(() => import('./icons/GGY')),\n GHA: React.lazy(() => import('./icons/GHA')),\n GIB: React.lazy(() => import('./icons/GIB')),\n GIN: React.lazy(() => import('./icons/GIN')),\n GMB: React.lazy(() => import('./icons/GMB')),\n GNB: React.lazy(() => import('./icons/GNB')),\n GNQ: React.lazy(() => import('./icons/GNQ')),\n GRC: React.lazy(() => import('./icons/GRC')),\n GRD: React.lazy(() => import('./icons/GRD')),\n GTM: React.lazy(() => import('./icons/GTM')),\n GUF: React.lazy(() => import('./icons/GUF')),\n GUY: React.lazy(() => import('./icons/GUY')),\n HND: React.lazy(() => import('./icons/HND')),\n HRV: React.lazy(() => import('./icons/HRV')),\n HTI: React.lazy(() => import('./icons/HTI')),\n HUN: React.lazy(() => import('./icons/HUN')),\n IDN: React.lazy(() => import('./icons/IDN')),\n IMN: React.lazy(() => import('./icons/IMN')),\n IND: React.lazy(() => import('./icons/IND')),\n IRL: React.lazy(() => import('./icons/IRL')),\n IRN: React.lazy(() => import('./icons/IRN')),\n IRQ: React.lazy(() => import('./icons/IRQ')),\n ISL: React.lazy(() => import('./icons/ISL')),\n ISR: React.lazy(() => import('./icons/ISR')),\n ITA: React.lazy(() => import('./icons/ITA')),\n JAM: React.lazy(() => import('./icons/JAM')),\n JEY: React.lazy(() => import('./icons/JEY')),\n JOR: React.lazy(() => import('./icons/JOR')),\n JPN: React.lazy(() => import('./icons/JPN')),\n KAZ: React.lazy(() => import('./icons/KAZ')),\n KEN: React.lazy(() => import('./icons/KEN')),\n KGZ: React.lazy(() => import('./icons/KGZ')),\n KHM: React.lazy(() => import('./icons/KHM')),\n KIR: React.lazy(() => import('./icons/KIR')),\n KNA: React.lazy(() => import('./icons/KNA')),\n KOR: React.lazy(() => import('./icons/KOR')),\n KWT: React.lazy(() => import('./icons/KWT')),\n LAO: React.lazy(() => import('./icons/LAO')),\n LBN: React.lazy(() => import('./icons/LBN')),\n LBR: React.lazy(() => import('./icons/LBR')),\n LBY: React.lazy(() => import('./icons/LBY')),\n LCA: React.lazy(() => import('./icons/LCA')),\n LIE: React.lazy(() => import('./icons/LIE')),\n LKA: React.lazy(() => import('./icons/LKA')),\n LSO: React.lazy(() => import('./icons/LSO')),\n LTU: React.lazy(() => import('./icons/LTU')),\n LUX: React.lazy(() => import('./icons/LUX')),\n LVA: React.lazy(() => import('./icons/LVA')),\n MAR: React.lazy(() => import('./icons/MAR')),\n MCO: React.lazy(() => import('./icons/MCO')),\n MDA: React.lazy(() => import('./icons/MDA')),\n MDG: React.lazy(() => import('./icons/MDG')),\n MDV: React.lazy(() => import('./icons/MDV')),\n MEX: React.lazy(() => import('./icons/MEX')),\n MHL: React.lazy(() => import('./icons/MHL')),\n MKD: React.lazy(() => import('./icons/MKD')),\n MLI: React.lazy(() => import('./icons/MLI')),\n MLT: React.lazy(() => import('./icons/MLT')),\n MNE: React.lazy(() => import('./icons/MNE')),\n MNG: React.lazy(() => import('./icons/MNG')),\n MOZ: React.lazy(() => import('./icons/MOZ')),\n MRT: React.lazy(() => import('./icons/MRT')),\n MUS: React.lazy(() => import('./icons/MUS')),\n MWI: React.lazy(() => import('./icons/MWI')),\n MYS: React.lazy(() => import('./icons/MYS')),\n NAM: React.lazy(() => import('./icons/NAM')),\n NER: React.lazy(() => import('./icons/NER')),\n NGA: React.lazy(() => import('./icons/NGA')),\n NIC: React.lazy(() => import('./icons/NIC')),\n NLD: React.lazy(() => import('./icons/NLD')),\n NOR: React.lazy(() => import('./icons/NOR')),\n NPL: React.lazy(() => import('./icons/NPL')),\n NRU: React.lazy(() => import('./icons/NRU')),\n NZL: React.lazy(() => import('./icons/NZL')),\n OMN: React.lazy(() => import('./icons/OMN')),\n PAK: React.lazy(() => import('./icons/PAK')),\n PAN: React.lazy(() => import('./icons/PAN')),\n PER: React.lazy(() => import('./icons/PER')),\n PHL: React.lazy(() => import('./icons/PHL')),\n PLW: React.lazy(() => import('./icons/PLW')),\n PNG: React.lazy(() => import('./icons/PNG')),\n POL: React.lazy(() => import('./icons/POL')),\n PRI: React.lazy(() => import('./icons/PRI')),\n PRK: React.lazy(() => import('./icons/PRK')),\n PRT: React.lazy(() => import('./icons/PRT')),\n PRY: React.lazy(() => import('./icons/PRY')),\n PSE: React.lazy(() => import('./icons/PSE')),\n QAT: React.lazy(() => import('./icons/QAT')),\n ROU: React.lazy(() => import('./icons/ROU')),\n RUS: React.lazy(() => import('./icons/RUS')),\n RWA: React.lazy(() => import('./icons/RWA')),\n SAU: React.lazy(() => import('./icons/SAU')),\n SDN: React.lazy(() => import('./icons/SDN')),\n SEN: React.lazy(() => import('./icons/SEN')),\n SGP: React.lazy(() => import('./icons/SGP')),\n SGS: React.lazy(() => import('./icons/SGS')),\n SLB: React.lazy(() => import('./icons/SLB')),\n SLE: React.lazy(() => import('./icons/SLE')),\n SLV: React.lazy(() => import('./icons/SLV')),\n SMR: React.lazy(() => import('./icons/SMR')),\n SOM: React.lazy(() => import('./icons/SOM')),\n SRB: React.lazy(() => import('./icons/SRB')),\n SSD: React.lazy(() => import('./icons/SSD')),\n STP: React.lazy(() => import('./icons/STP')),\n SUR: React.lazy(() => import('./icons/SUR')),\n SVK: React.lazy(() => import('./icons/SVK')),\n SVN: React.lazy(() => import('./icons/SVN')),\n SWE: React.lazy(() => import('./icons/SWE')),\n SWZ: React.lazy(() => import('./icons/SWZ')),\n SYC: React.lazy(() => import('./icons/SYC')),\n SYR: React.lazy(() => import('./icons/SYR')),\n TCD: React.lazy(() => import('./icons/TCD')),\n TGO: React.lazy(() => import('./icons/TGO')),\n THA: React.lazy(() => import('./icons/THA')),\n TJK: React.lazy(() => import('./icons/TJK')),\n TKM: React.lazy(() => import('./icons/TKM')),\n TLS: React.lazy(() => import('./icons/TLS')),\n TON: React.lazy(() => import('./icons/TON')),\n TTO: React.lazy(() => import('./icons/TTO')),\n TUN: React.lazy(() => import('./icons/TUN')),\n TUR: React.lazy(() => import('./icons/TUR')),\n TUV: React.lazy(() => import('./icons/TUV')),\n TWN: React.lazy(() => import('./icons/TWN')),\n TZA: React.lazy(() => import('./icons/TZA')),\n UGA: React.lazy(() => import('./icons/UGA')),\n UKR: React.lazy(() => import('./icons/UKR')),\n URY: React.lazy(() => import('./icons/URY')),\n USA: React.lazy(() => import('./icons/USA')),\n UZB: React.lazy(() => import('./icons/UZB')),\n VCT: React.lazy(() => import('./icons/VCT')),\n VEN: React.lazy(() => import('./icons/VEN')),\n VGB: React.lazy(() => import('./icons/VGB')),\n VIR: React.lazy(() => import('./icons/VIR')),\n VNM: React.lazy(() => import('./icons/VNM')),\n VUT: React.lazy(() => import('./icons/VUT')),\n WSM: React.lazy(() => import('./icons/WSM')),\n XKX: React.lazy(() => import('./icons/XKX')),\n YEM: React.lazy(() => import('./icons/YEM')),\n ZAF: React.lazy(() => import('./icons/ZAF')),\n ZMB: React.lazy(() => import('./icons/ZMB')),\n ZWE: React.lazy(() => import('./icons/ZWE')),\n}\n\nexport type CountryCode = keyof typeof flagMap\n\nexport function loadFlag(countryCode?: CountryCode): React.ReactElement | null {\n if (!countryCode || !flagMap[countryCode]) {\n return null\n }\n\n const Flag = flagMap[countryCode]\n\n if (!Flag) {\n return null\n }\n\n if (typeof window === 'undefined') {\n return <div style={{ height: 24, width: 24 }} />\n }\n\n return (\n <Suspense fallback={<div style={{ height: 24, width: 24 }} />}>\n <Flag />\n </Suspense>\n )\n}\n\n```"
}
] |
code_country-flags_1e7dc234
|
[
{
"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 country-flags/react/package.json from the country-flags VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"vtex.country-flags\",\n \"version\": \"0.1.1\",\n \"private\": true,\n \"license\": \"UNLICENSED\",\n \"dependencies\": {\n \"country-iso-2-to-3\": \"^1.1.0\",\n \"react\": \"^16.13.1\"\n },\n \"devDependencies\": {\n \"@types/node\": \"^14.0.4\",\n \"@types/react\": \"^16.9.35\",\n \"vtex.render-runtime\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.render-runtime@8.102.1/public/@types/vtex.render-runtime\"\n }\n}\n\n```"
}
] |
code_country-flags_78e128d7
|
[
{
"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 country-flags/react/typings/country-iso-2-to-3.d.ts from the country-flags VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\ndeclare module 'country-iso-2-to-3' {\n const getCountryISO3: (countryCode: string) => string | undefined\n\n export default getCountryISO3\n}\n\n```"
}
] |
code_country-flags_637b5bf9
|
[
{
"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 country-flags/react/icons/SOM.tsx from the country-flags VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport React from 'react'\n\nconst SOM: React.FC = () => (\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M24 20C24 20.5525 23.5525 21 23 21H1C0.4475 21 0 20.5525 0 20V4C0 3.4475 0.4475 3 1 3H23C23.5525 3 24 3.4475 24 4V20Z\"\n fill=\"#4E80BB\"\n />\n <path\n d=\"M16.1805 10.5205H13.235L12 7.84149L10.7635 10.5205H7.81897L9.97047 12.747L9.17547 15.9735L12 14.3695L14.824 15.9735L14.029 12.747L16.1805 10.5205Z\"\n fill=\"white\"\n />\n </svg>\n)\n\nexport default SOM\n\n```"
}
] |
code_country-flags_891864a5
|
[
{
"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 country-flags/react/icons/SLV.tsx from the country-flags VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport React from 'react'\n\nconst SLV: React.FC = () => (\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M24 9H0V4C0 3.4475 0.4475 3 1 3H23C23.5525 3 24 3.4475 24 4V9Z\"\n fill=\"#1147A7\"\n />\n <path d=\"M24 9H0V15H24V9Z\" fill=\"#E6E6E6\" />\n <path\n d=\"M24 20C24 20.5525 23.5525 21 23 21H1C0.4475 21 0 20.5525 0 20V15H24V20Z\"\n fill=\"#1147A7\"\n />\n <path\n d=\"M12 10C10.8955 10 10 10.8955 10 12C10 13.1045 10.8955 14 12 14C13.1045 14 14 13.1045 14 12C14 10.8955 13.1045 10 12 10ZM12 13C11.4475 13 11 12.5525 11 12C11 11.4475 11.4475 11 12 11C12.5525 11 13 11.4475 13 12C13 12.5525 12.5525 13 12 13Z\"\n fill=\"#304639\"\n />\n </svg>\n)\n\nexport default SLV\n\n```"
}
] |
code_country-flags_afdc3f98
|
[
{
"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 country-flags/react/icons/SMR.tsx from the country-flags VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport React from 'react'\n\nconst SMR: React.FC = () => (\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M24 12H0V4C0 3.4475 0.4475 3 1 3H23C23.5525 3 24 3.4475 24 4V12Z\"\n fill=\"#E6E6E6\"\n />\n <path\n d=\"M24 20C24 20.5525 23.5525 21 23 21H1C0.4475 21 0 20.5525 0 20V12H24V20Z\"\n fill=\"#0082D0\"\n />\n <path\n d=\"M14 10H13V9H14V8H10V9H11V10H10C9.4475 10 9 10.448 9 11V14L12 16L15 14V11C15 10.448 14.5525 10 14 10Z\"\n fill=\"#F5E303\"\n />\n <path d=\"M8 10H7V14H8V10Z\" fill=\"#006600\" />\n <path d=\"M17 10H16V14H17V10Z\" fill=\"#006600\" />\n </svg>\n)\n\nexport default SMR\n\n```"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.