Skip to content

Instantly share code, notes, and snippets.

@fabiangarga
Created November 6, 2020 01:10
Show Gist options
  • Save fabiangarga/73a2d0aa63832ec99f59352faa6ad0bf to your computer and use it in GitHub Desktop.
Save fabiangarga/73a2d0aa63832ec99f59352faa6ad0bf to your computer and use it in GitHub Desktop.
{
"catalog": {
"client_name": "XYZ",
"level": 1,
"contentful_space": "",
"contentful_token": "",
"currency_char": "$",
"currency_code": "USD"
},
"components": {
"hero_carousel_1": {
"type": "hero_carousel",
"display": true,
"time_per_slide": 500,
"show_dot_nav": false,
"contentful_entry_id": "",
"is_infinite": true,
"auto_play": true,
"autoplay_speed": 4000
},
"hero_carousel_animated": {
"type": "hero_carousel",
"display": true,
"time_per_slide": 500,
"show_dot_nav": false,
"animated": true,
"contentful_entry_id": "1fbQ4p3abtuUtxPmVXqEGw"
},
"banner_1": {
"type": "banner",
"class:": "warning",
"display": true,
"contentful_entry_id": "5w4NfWygeYSBmNdT2gy1CT"
},
"banner_search": {
"type": "banner",
"class:": "default",
"display": true,
"content": "<p><strong>Free delivery:</strong> on all orders over $4000 through May 30! Exclusions may apply. Learn More!!!</p>"
},
"banner_footer": {
"type": "banner",
"display": false,
"brands_to_show": 5,
"show_dot_nav": false,
"content": "I am a Banner, but within the equipment list"
},
"collapsable": {
"type": "collapsable"
},
"not_supported": {
"type": "not_supported"
},
"searchbox": {
"type": "searchbox",
"display": true,
"in": ["title", "category"]
},
"filter_make_model": {
"type": "filter_multi_select",
"data_group": "equipment",
"key_make": "make",
"key_model": "model",
"is_collapsable": true,
"is_open": true,
"collapsable_wrapper": "collapsable",
"colapsable_title": "Make & Model",
"collapsable_subtitle": "Select below:"
},
"filter_category": {
"type": "filter_single_select",
"placeholder": "Category",
"data_group": "category",
"key": "category",
"is_collapsable": true,
"is_open": true,
"collapsable_wrapper": "collapsable",
"colapsable_title": "Category",
"collapsable_subtitle": "Select below:"
},
"filter_quick": {
"type": "filter_list",
"data_group": "equipment",
"keys": [
"is_featured",
"is_popular",
"is_just_listed",
"is_low_hours",
"has_photos",
"has_warranty"
],
"is_collapsable": true,
"collapsable_wrapper": "collapsable",
"colapsable_title": "Quick Filters",
"collapsable_subtitle": "Select Addictional Filters"
},
"filter_price": {
"type": "filter_price_range",
"data_group": "equipment",
"is_collapsable": true,
"is_open": true,
"is_financing_available": true,
"key": "price",
"key_max": "price_max",
"key_min": "price_min",
"key_financing": "is_financing_available",
"key_financing_price": "lowest_monthly_payment",
"key_financing_price_max": "lowest_monthly_payment_max",
"key_financing_price_min": "lowest_monthly_payment_min",
"collapsable_wrapper": "collapsable",
"colapsable_title": "Price Range",
"collapsable_subtitle": "Select Range Below"
},
"filter_model_year": {
"type": "filter_list",
"data_group": "equipment",
"key": "year",
"display": true,
"is_collapsable": true,
"is_open": true,
"collapsable_wrapper": "collapsable",
"colapsable_title": "Model Year",
"items_to_show": 5
},
"filter_location": {
"type": "blank",
"data_group": "equipment",
"is_collapsable": true,
"collapsable_wrapper": "collapsable",
"colapsable_title": "Location",
"collapsable_subtitle": "Select Range Below"
},
"filter_state": {
"type": "filter_list",
"data_group": "equipment",
"key": "state",
"is_collapsable": true,
"is_open": true,
"collapsable_wrapper": "collapsable",
"colapsable_title": "State",
"items_to_show": 3
},
"filter_chips": {
"type": "filter_chips",
"data_group": "equipment",
"is_clearable": true
},
"ui_separator": {
"type": "separator"
},
"equipment_list": {
"type": "assets_list",
"display": true,
"data_group": "equipment",
"display_options": [
{ "value": "search-result-grid", "icon": "th-large" },
{ "value": "search-result-list", "icon":"align-left" }
],
"default_image": "https://yt3.ggpht.com/a/AATXAJxvTTgeZLrdQGFXIo-HfrYjFZXnIuZGRy106QjC=s900-c-k-c0x00ffffff-no-rj",
"show_price": true,
"show_title": true,
"show_location": true,
"show_equipment_number": true,
"show_equipment_serial": true,
"show_description": false,
"show_image": true,
"show_results_count": true,
"show_monthly_payment": true,
"show_pagination": true,
"show_sorting": true,
"show_likeable": true,
"pagination": {
"sizesAvailable": [30, 60, 90, 120],
"pagesAvailable": 2
},
"results_count_label": "Results",
"link": "detail"
},
"category_list": {
"type": "assets_list",
"display": true,
"data_group": "category",
"display_options": [
{ "value": "search-result-grid", "icon": "th-large" }
],
"default_image": "https://used.sunstateequip.com/Content/images/Sunstate/no-photo.png",
"show_price": false,
"show_title": true,
"show_location": false,
"show_equipment_number": false,
"show_equipment_serial": false,
"show_description": false,
"show_image": true,
"show_results_count": false,
"show_sorting": false,
"show_pagination": false,
"results_count_label": "Results",
"show_monthly_payment": false,
"is_likeable": false,
"link": "category"
}
},
"filter": {
"data_groups": {
"category": {
"endpoint": "category",
"filtersEndpoint": "filters/category"
},
"equipment": {
"endpoint": "equipment",
"filtersEndpoint": "filters/equipments"
}
},
"types": {
"equipment_type": "string",
"year": "number",
"is_featured": "boolean",
"is_popular": "boolean",
"is_just_listed": "boolean",
"is_low_hours":"boolean",
"has_photos": "boolean",
"has_warranty": "boolean",
"is_financing_available": "boolean"
},
"keys": {
"price_max": "price",
"price_min": "price",
"lowest_monthly_payment_max": "lowest_monthly_payment",
"lowest_monthly_payment_min": "lowest_monthly_payment"
},
"operators": {
"default": "==",
"price_max": "<=",
"price_min": ">=",
"year": "in",
"lowest_monthly_payment_max": "<=",
"lowest_monthly_payment_min": ">=",
"state": "in"
},
"labels": {
"is_featured": "Featured Machines",
"is_popular": "Popular",
"is_just_listed": "Just Listed",
"is_low_hours": "Low Hours",
"has_photos": "Machines with Photos",
"has_warranty": "Warranty Available",
"is_financing_available": "Is financing"
},
"label_values": {
"price_max": "Max price: {{value}}",
"price_min": "Min price: {{value}}",
"year": "year of: {{value}}",
"lowest_monthly_payment_max": "Max month: {{value}}",
"lowest_monthly_payment_min": "Min month: {{value}}"
},
"pagination": {
"sort": true,
"page": true,
"limit": true
},
"include": {
},
"exclude": {
"display_type": true
}
},
"structures": {
"home": {
"header": [
"banner_1",
"hero_carousel_1"
],
"content": [
"category_list",
"equipment_list"
]
},
"search": {
"header": [
"searchbox",
"banner_search"
],
"sidebar_header": [
"filter_chips"
],
"sidebar_content": [
"filter_category",
"filter_make_model",
"filter_quick",
"ui_separator",
"filter_price",
"ui_separator",
"filter_model_year",
"ui_separator",
"filter_location",
"ui_separator",
"filter_state"
],
"sidebar_footer": [],
"results_header": [
"list_view",
"grid_view"
],
"results_content": [
"category_list",
"equipment_list"
],
"results_footer": []
}
},
"localization": {
"default": "en",
"available": [
"en",
"es",
"ja"
],
"translations": {
"en-US": {},
"es": {
"header": {
"home": "Inicio",
"some_module": "Algun Modulo",
"search": "Busqueda",
"equipments": "Equipos"
}
},
"ja": {
"header": {
"home": "ホーム",
"some_module": "いくつかのモジュール",
"search": "探す",
"equipments": "設備"
}
}
}
},
"custom": {
"css": ""
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment