Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Update formatting in json files
Browse files Browse the repository at this point in the history
  • Loading branch information
frontdevde committed Jun 14, 2022
1 parent fdfb20d commit 28e8e7a
Show file tree
Hide file tree
Showing 6 changed files with 1,818 additions and 2,051 deletions.
4 changes: 1 addition & 3 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


{
"default": true,
"MD003": { "style": "atx" },
Expand All @@ -9,7 +7,7 @@
"MD025": false,
"MD029": false,
"MD033": false,
"MD046": {"style": "fenced"},
"MD046": { "style": "fenced" },
"no-hard-tabs": false,
"whitespace": false
}
162 changes: 78 additions & 84 deletions assets/js/blocks/handpicked-products/block.json
Original file line number Diff line number Diff line change
@@ -1,86 +1,80 @@
{
"name": "woocommerce/handpicked-products",
"title": "Hand-picked Products",
"category": "woocommerce",
"keywords": [
"Handpicked Products",
"WooCommerce"
],
"description": "Display a selection of hand-picked products in a grid.",
"supports": {
"align": [
"wide",
"full"
],
"html": false
},
"attributes": {
"align": {
"type": "string"
},
"columns": {
"type": "number",
"default": 3
},
"contentVisibility": {
"type": "object",
"default": {
"image": true,
"title": true,
"price": true,
"rating": true,
"button": true
},
"properties": {
"image": {
"type": "boolean",
"image": true
},
"title": {
"type": "boolean",
"title": true
},
"price": {
"type": "boolean",
"price": true
},
"rating": {
"type": "boolean",
"rating": true
},
"button": {
"type": "boolean",
"button": true
}
}
},
"orderby": {
"type": "string",
"enum": [
"date",
"popularity",
"price_asc",
"price_desc",
"rating",
"title",
"menu_order"
],
"default": "date"
},
"products": {
"type": "array",
"default": []
},
"alignButtons": {
"type": "boolean",
"default": false
},
"isPreview": {
"type": "boolean",
"default": false
}
},
"textdomain": "woo-gutenberg-products-block",
"apiVersion": 2,
"$schema": "https://schemas.wp.org/trunk/block.json"
"name": "woocommerce/handpicked-products",
"title": "Hand-picked Products",
"category": "woocommerce",
"keywords": [ "Handpicked Products", "WooCommerce" ],
"description": "Display a selection of hand-picked products in a grid.",
"supports": {
"align": [ "wide", "full" ],
"html": false
},
"attributes": {
"align": {
"type": "string"
},
"columns": {
"type": "number",
"default": 3
},
"contentVisibility": {
"type": "object",
"default": {
"image": true,
"title": true,
"price": true,
"rating": true,
"button": true
},
"properties": {
"image": {
"type": "boolean",
"image": true
},
"title": {
"type": "boolean",
"title": true
},
"price": {
"type": "boolean",
"price": true
},
"rating": {
"type": "boolean",
"rating": true
},
"button": {
"type": "boolean",
"button": true
}
}
},
"orderby": {
"type": "string",
"enum": [
"date",
"popularity",
"price_asc",
"price_desc",
"rating",
"title",
"menu_order"
],
"default": "date"
},
"products": {
"type": "array",
"default": []
},
"alignButtons": {
"type": "boolean",
"default": false
},
"isPreview": {
"type": "boolean",
"default": false
}
},
"textdomain": "woo-gutenberg-products-block",
"apiVersion": 2,
"$schema": "https://schemas.wp.org/trunk/block.json"
}
169 changes: 82 additions & 87 deletions assets/js/blocks/product-tag/block.json
Original file line number Diff line number Diff line change
@@ -1,89 +1,84 @@
{
"name": "woocommerce/product-tag",
"title": "Products by Tag",
"category": "woocommerce",
"keywords": [
"WooCommerce"
],
"description": "Display a grid of products with selected tags.",
"supports": {
"align": [
"wide",
"full"
],
"html": false
},
"attributes": {
"columns": {
"type": "number",
"default": 3
},
"rows": {
"type": "number",
"default": 3
},
"alignButtons": {
"type": "boolean",
"default": false
},
"contentVisibility": {
"type": "object",
"default": {
"image": true,
"title": true,
"price": true,
"rating": true,
"button": true
},
"properties": {
"image": {
"type": "boolean",
"default": true
},
"title": {
"type": "boolean",
"default": true
},
"price": {
"type": "boolean",
"default": true
},
"rating": {
"type": "boolean",
"default": true
},
"button": {
"type": "boolean",
"default": true
}
}
},
"tags": {
"type": "array",
"default": []
},
"tagOperator": {
"type": "string",
"default": "any"
},
"orderby": {
"type": "string",
"default": "date"
},
"isPreview": {
"type": "boolean",
"default": false
},
"stockStatus": {
"type": "array"
}
},
"example": {
"attributes": {
"isPreview": true
}
},
"textdomain": "woo-gutenberg-products-block",
"apiVersion": 2,
"$schema": "https://schemas.wp.org/trunk/block.json"
"name": "woocommerce/product-tag",
"title": "Products by Tag",
"category": "woocommerce",
"keywords": [ "WooCommerce" ],
"description": "Display a grid of products with selected tags.",
"supports": {
"align": [ "wide", "full" ],
"html": false
},
"attributes": {
"columns": {
"type": "number",
"default": 3
},
"rows": {
"type": "number",
"default": 3
},
"alignButtons": {
"type": "boolean",
"default": false
},
"contentVisibility": {
"type": "object",
"default": {
"image": true,
"title": true,
"price": true,
"rating": true,
"button": true
},
"properties": {
"image": {
"type": "boolean",
"default": true
},
"title": {
"type": "boolean",
"default": true
},
"price": {
"type": "boolean",
"default": true
},
"rating": {
"type": "boolean",
"default": true
},
"button": {
"type": "boolean",
"default": true
}
}
},
"tags": {
"type": "array",
"default": []
},
"tagOperator": {
"type": "string",
"default": "any"
},
"orderby": {
"type": "string",
"default": "date"
},
"isPreview": {
"type": "boolean",
"default": false
},
"stockStatus": {
"type": "array"
}
},
"example": {
"attributes": {
"isPreview": true
}
},
"textdomain": "woo-gutenberg-products-block",
"apiVersion": 2,
"$schema": "https://schemas.wp.org/trunk/block.json"
}

0 comments on commit 28e8e7a

Please sign in to comment.