64 lines
1.4 KiB
JSON
64 lines
1.4 KiB
JSON
{
|
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
|
"apiVersion": 3,
|
|
"name": "mtg-tools/mtg-tools",
|
|
"version": "1.0.0",
|
|
"title": "Deck",
|
|
"category": "widgets",
|
|
"icon": "list-view",
|
|
"description": "A plugin for displaying Magic: The Gathering cards on WordPress",
|
|
"example": {},
|
|
"supports": {
|
|
"html": false,
|
|
"anchor": true,
|
|
"align": true,
|
|
"multiple": true
|
|
},
|
|
"attributes": {
|
|
"cards": {
|
|
"type": "array",
|
|
"default": [
|
|
{
|
|
"name": "",
|
|
"set": "",
|
|
"number": "",
|
|
"quantity": 1,
|
|
"commander": false,
|
|
"foil": false,
|
|
"sideboard": false
|
|
}
|
|
],
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"set": {
|
|
"type": "string"
|
|
},
|
|
"number": {
|
|
"type": "string"
|
|
},
|
|
"quantity": {
|
|
"type": "number"
|
|
},
|
|
"commander": {
|
|
"type": "boolean"
|
|
},
|
|
"foil": {
|
|
"type": "boolean"
|
|
},
|
|
"sideboard": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"textdomain": "mtg-tools",
|
|
"editorScript": "file:./index.js",
|
|
"editorStyle": "file:./index.css",
|
|
"style": "file:./style-index.css",
|
|
"viewScript": "file:./view.js"
|
|
} |