Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
drill-lancer committed Sep 28, 2023
1 parent 1766064 commit f77d54f
Show file tree
Hide file tree
Showing 24 changed files with 137 additions and 168 deletions.
6 changes: 2 additions & 4 deletions src/blocks/_pro/blog-card-excerpt/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"title": "Blog Card Excerpt",
"description": "Shows an excerpt retrieved from a URL.",
"textdomain": "vk-blocks-pro",
"ancestor": [ "vk-blocks/blog-card" ],
"ancestor": ["vk-blocks/blog-card"],
"attributes": {
"textAlign": {
"type": "string"
Expand All @@ -14,9 +14,7 @@
"type": "number"
}
},
"usesContext": [
"vk-blocks/blog-card-url"
],
"usesContext": ["vk-blocks/blog-card-url"],
"supports": {
"html": false,
"reusable": false,
Expand Down
8 changes: 3 additions & 5 deletions src/blocks/_pro/blog-card-featured-image/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"title": "Blog Card Featured Image",
"description": "Displays the featured image obtained from the URL.",
"textdomain": "vk-blocks-pro",
"ancestor": [ "vk-blocks/blog-card" ],
"ancestor": ["vk-blocks/blog-card"],
"attributes": {
"isLink": {
"type": "boolean",
Expand Down Expand Up @@ -34,11 +34,9 @@
"default": "_self"
}
},
"usesContext": [
"vk-blocks/blog-card-url"
],
"usesContext": ["vk-blocks/blog-card-url"],
"supports": {
"align": [ "left", "right", "center" ],
"align": ["left", "right", "center"],
"color": {
"__experimentalDuotone": "img",
"text": false,
Expand Down
8 changes: 3 additions & 5 deletions src/blocks/_pro/blog-card-site-logo/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"title": "Blog Card Site Logo",
"description": "Displays the site logo image obtained from the URL.",
"textdomain": "vk-blocks-pro",
"ancestor": [ "vk-blocks/blog-card" ],
"ancestor": ["vk-blocks/blog-card"],
"attributes": {
"isLink": {
"type": "boolean",
Expand All @@ -21,11 +21,9 @@
"default": "_self"
}
},
"usesContext": [
"vk-blocks/blog-card-url"
],
"usesContext": ["vk-blocks/blog-card-url"],
"supports": {
"align": [ "left", "right", "center" ],
"align": ["left", "right", "center"],
"color": {
"__experimentalDuotone": "img",
"text": false,
Expand Down
6 changes: 2 additions & 4 deletions src/blocks/_pro/blog-card-site-title/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"title": "Blog Card Site Title",
"description": "Displays the site title obtained from the URL.",
"textdomain": "vk-blocks-pro",
"ancestor": [ "vk-blocks/blog-card" ],
"ancestor": ["vk-blocks/blog-card"],
"attributes": {
"level": {
"type": "number",
Expand All @@ -28,9 +28,7 @@
"default": "_self"
}
},
"usesContext": [
"vk-blocks/blog-card-url"
],
"usesContext": ["vk-blocks/blog-card-url"],
"supports": {
"color": {
"gradients": true,
Expand Down
6 changes: 2 additions & 4 deletions src/blocks/_pro/blog-card-title/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"title": "Blog Card Title",
"description": "Displays the title obtained from the URL.",
"textdomain": "vk-blocks-pro",
"ancestor": [ "vk-blocks/blog-card" ],
"ancestor": ["vk-blocks/blog-card"],
"attributes": {
"textAlign": {
"type": "string"
Expand All @@ -28,9 +28,7 @@
"default": "_self"
}
},
"usesContext": [
"vk-blocks/blog-card-url"
],
"usesContext": ["vk-blocks/blog-card-url"],
"supports": {
"color": {
"gradients": true,
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/_pro/blog-card/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"textdomain": "vk-blocks-pro",
"supports": {
"align": [ "wide", "full" ],
"align": ["wide", "full"],
"__experimentalBorder": {
"color": true,
"radius": true,
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/_pro/breadcrumb/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
"padding": true
}
}
}
}
11 changes: 3 additions & 8 deletions src/blocks/_pro/dynamic-text/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"name": "vk-blocks/dynamic-text",
"category": "vk-blocks-cat",
"title": "Dynamic Text",
"usesContext": [
"postId"
],
"usesContext": ["postId"],
"attributes": {
"textAlign": {
"type": "string",
Expand Down Expand Up @@ -44,10 +42,7 @@
"textdomain": "vk-blocks-pro",
"supports": {
"className": true,
"align": [
"wide",
"full"
],
"align": ["wide", "full"],
"anchor": true,
"html": false,
"color": {
Expand Down Expand Up @@ -79,4 +74,4 @@
}
}
}
}
}
4 changes: 1 addition & 3 deletions src/blocks/_pro/grid-column-item/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"description": "One item in a grit column block.",
"textdomain": "vk-blocks-pro",
"category": "vk-blocks-cat-layout",
"parent": [
"vk-blocks/grid-column"
],
"parent": ["vk-blocks/grid-column"],
"attributes": {
"layout": {
"type": "string",
Expand Down
4 changes: 1 addition & 3 deletions src/blocks/_pro/gridcolcard-item-body/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"textdomain": "vk-blocks-pro",
"category": "vk-blocks-cat-layout",
"description": "Body of Grid Column Card Block Item",
"parent": [
"vk-blocks/gridcolcard-item"
],
"parent": ["vk-blocks/gridcolcard-item"],
"supports": {
"html": false
},
Expand Down
4 changes: 1 addition & 3 deletions src/blocks/_pro/gridcolcard-item-footer/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"textdomain": "vk-blocks-pro",
"category": "vk-blocks-cat-layout",
"description": "Footer button area of Grid Column Card Block Item",
"parent": [
"vk-blocks/gridcolcard-item"
],
"parent": ["vk-blocks/gridcolcard-item"],
"supports": {
"html": false
},
Expand Down
5 changes: 1 addition & 4 deletions src/blocks/_pro/gridcolcard-item-header/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"textdomain": "vk-blocks-pro",
"category": "vk-blocks-cat-layout",
"description": "Header image area of Grid Column Card Block Item",
"parent": [
"vk-blocks/gridcolcard-item"
],
"parent": ["vk-blocks/gridcolcard-item"],
"supports": {
"html": false
},
Expand All @@ -34,5 +32,4 @@
"default": "delete"
}
}

}
5 changes: 1 addition & 4 deletions src/blocks/_pro/gridcolcard-item/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"textdomain": "vk-blocks-pro",
"category": "vk-blocks-cat-layout",
"description": "It is a block of single column of Grid Column Card.",
"parent": [
"vk-blocks/gridcolcard"
],
"parent": ["vk-blocks/gridcolcard"],
"supports": {
"anchor": true,
"html": false,
Expand Down Expand Up @@ -72,5 +70,4 @@
"default": false
}
}

}
2 changes: 1 addition & 1 deletion src/blocks/_pro/icon-card-item/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"apiVersion": 2,
"name": "vk-blocks/icon-card-item",
"category": "vk-blocks-cat",
"title":"Icon Card Item",
"title": "Icon Card Item",
"attributes": {
"col_xs": {
"type": "number",
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/_pro/post-list/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,4 @@
"supports": {
"className": true
}
}
}
2 changes: 1 addition & 1 deletion src/blocks/_pro/post-new-badge/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"description": "Easily highlight your latest content or products with the 'New Badge' feature.",
"textdomain": "vk-blocks-pro",
"usesContext": [ "postId", "postType" ],
"usesContext": ["postId", "postType"],
"supports": {
"className": true,
"anchor": false,
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/_pro/select-post-list-item/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"category": "vk-blocks-cat",
"parent": ["vk-blocks/select-post-list"],
"attributes": {
"className":{
"className": {
"type": "string",
"default": ""
},
Expand Down
4 changes: 1 addition & 3 deletions src/blocks/faq2-a/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"name": "vk-blocks/faq2-a",
"category": "vk-blocks-cat",
"title": "FAQ Answer",
"parent": [
"vk-blocks/faq2"
],
"parent": ["vk-blocks/faq2"],
"description": "Answer area where you can add blocks freely.",
"textdomain": "vk-blocks-pro",
"supports": {
Expand Down
4 changes: 1 addition & 3 deletions src/blocks/faq2-q/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"name": "vk-blocks/faq2-q",
"title": "FAQ Question",
"category": "vk-blocks-cat",
"parent": [
"vk-blocks/faq2"
],
"parent": ["vk-blocks/faq2"],
"description": "Question area where you can freely add blocks.",
"textdomain": "vk-blocks-pro",
"supports": {
Expand Down
16 changes: 8 additions & 8 deletions src/blocks/pr-blocks/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@
"title": "PR Blocks (not recommended)",
"category": "vk-blocks-cat",
"attributes": {
"heading1" :{
"heading1": {
"type": "string",
"source": "html",
"selector": ".vk_prBlocks_item_title-1"
},
"heading2" :{
"heading2": {
"type": "string",
"source": "html",
"selector": ".vk_prBlocks_item_title-2"
},
"heading3" :{
"heading3": {
"type": "string",
"source": "html",
"selector": ".vk_prBlocks_item_title-3"
},
"heading4" :{
"heading4": {
"type": "string",
"source": "html",
"selector": ".vk_prBlocks_item_title-4"
Expand Down Expand Up @@ -92,16 +92,16 @@
"type": "string",
"default": "<i class=\"fas fa-file\"></i>"
},
"color1":{
"color1": {
"type": "string"
},
"color2":{
"color2": {
"type": "string"
},
"color3":{
"color3": {
"type": "string"
},
"color4":{
"color4": {
"type": "string"
},
"bgType1": {
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/slider-item/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "This is one item in the slider.",
"textdomain": "vk-blocks-pro",
"category": "vk-blocks-cat-layout",
"parent": [ "vk-blocks/slider"] ,
"parent": ["vk-blocks/slider"],
"attributes": {
"verticalAlignment": {
"type": "string",
Expand Down
Loading

0 comments on commit f77d54f

Please sign in to comment.