| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "blockenberg/binary-text-converter", |
| 5 |
"title": "Binary & Text Converter", |
| 6 |
"category": "bkbg-calculators", |
| 7 |
"description": "Convert text to binary, hexadecimal, and octal — and back. Includes an interactive ASCII table.", |
| 8 |
"keywords": [ |
| 9 |
"binary", |
| 10 |
"hex", |
| 11 |
"hexadecimal", |
| 12 |
"octal", |
| 13 |
"ascii", |
| 14 |
"encoder", |
| 15 |
"decoder", |
| 16 |
"converter" |
| 17 |
], |
| 18 |
"textdomain": "blockenberg", |
| 19 |
"editorScript": "bkbg-binary-text-converter-editor", |
| 20 |
"style": "bkbg-binary-text-converter-style", |
| 21 |
"viewScript": "bkbg-binary-text-converter-frontend", |
| 22 |
"supports": { |
| 23 |
"html": false, |
| 24 |
"anchor": true, |
| 25 |
"className": true, |
| 26 |
"align": [ |
| 27 |
"wide", |
| 28 |
"full" |
| 29 |
] |
| 30 |
}, |
| 31 |
"attributes": { |
| 32 |
"showTitle": { |
| 33 |
"type": "boolean", |
| 34 |
"default": true |
| 35 |
}, |
| 36 |
"title": { |
| 37 |
"type": "string", |
| 38 |
"default": "Binary & Text Converter" |
| 39 |
}, |
| 40 |
"showSubtitle": { |
| 41 |
"type": "boolean", |
| 42 |
"default": true |
| 43 |
}, |
| 44 |
"subtitle": { |
| 45 |
"type": "string", |
| 46 |
"default": "Encode and decode between text, binary, hex, and octal" |
| 47 |
}, |
| 48 |
"defaultTab": { |
| 49 |
"type": "string", |
| 50 |
"default": "binary" |
| 51 |
}, |
| 52 |
"defaultMode": { |
| 53 |
"type": "string", |
| 54 |
"default": "encode" |
| 55 |
}, |
| 56 |
"showAsciiTable": { |
| 57 |
"type": "boolean", |
| 58 |
"default": true |
| 59 |
}, |
| 60 |
"groupAscii": { |
| 61 |
"type": "number", |
| 62 |
"default": 8 |
| 63 |
}, |
| 64 |
"sectionBg": { |
| 65 |
"type": "string", |
| 66 |
"default": "#f8fafc" |
| 67 |
}, |
| 68 |
"cardBg": { |
| 69 |
"type": "string", |
| 70 |
"default": "#ffffff" |
| 71 |
}, |
| 72 |
"accentColor": { |
| 73 |
"type": "string", |
| 74 |
"default": "#6c3fb5" |
| 75 |
}, |
| 76 |
"binaryColor": { |
| 77 |
"type": "string", |
| 78 |
"default": "#6c3fb5" |
| 79 |
}, |
| 80 |
"hexColor": { |
| 81 |
"type": "string", |
| 82 |
"default": "#0ea5e9" |
| 83 |
}, |
| 84 |
"octalColor": { |
| 85 |
"type": "string", |
| 86 |
"default": "#10b981" |
| 87 |
}, |
| 88 |
"asciiColor": { |
| 89 |
"type": "string", |
| 90 |
"default": "#f59e0b" |
| 91 |
}, |
| 92 |
"titleColor": { |
| 93 |
"type": "string", |
| 94 |
"default": "#111827" |
| 95 |
}, |
| 96 |
"subtitleColor": { |
| 97 |
"type": "string", |
| 98 |
"default": "#6b7280" |
| 99 |
}, |
| 100 |
"labelColor": { |
| 101 |
"type": "string", |
| 102 |
"default": "#374151" |
| 103 |
}, |
| 104 |
"inputBg": { |
| 105 |
"type": "string", |
| 106 |
"default": "#f9fafb" |
| 107 |
}, |
| 108 |
"inputBorder": { |
| 109 |
"type": "string", |
| 110 |
"default": "#d1d5db" |
| 111 |
}, |
| 112 |
"outputBg": { |
| 113 |
"type": "string", |
| 114 |
"default": "#f0f9ff" |
| 115 |
}, |
| 116 |
"outputBorder": { |
| 117 |
"type": "string", |
| 118 |
"default": "#bae6fd" |
| 119 |
}, |
| 120 |
"errorColor": { |
| 121 |
"type": "string", |
| 122 |
"default": "#ef4444" |
| 123 |
}, |
| 124 |
"cardRadius": { |
| 125 |
"type": "number", |
| 126 |
"default": 16 |
| 127 |
}, |
| 128 |
"tabRadius": { |
| 129 |
"type": "number", |
| 130 |
"default": 8 |
| 131 |
}, |
| 132 |
"inputRadius": { |
| 133 |
"type": "number", |
| 134 |
"default": 8 |
| 135 |
}, |
| 136 |
"titleSize": { |
| 137 |
"type": "number", |
| 138 |
"default": 28 |
| 139 |
}, |
| 140 |
"maxWidth": { |
| 141 |
"type": "number", |
| 142 |
"default": 700 |
| 143 |
}, |
| 144 |
"paddingTop": { |
| 145 |
"type": "number", |
| 146 |
"default": 60 |
| 147 |
}, |
| 148 |
"paddingBottom": { |
| 149 |
"type": "number", |
| 150 |
"default": 60 |
| 151 |
}, |
| 152 |
"subtitleFontSize": { |
| 153 |
"type": "number", |
| 154 |
"default": 15 |
| 155 |
}, |
| 156 |
"titleTypo": { "type": "object", "default": {} }, |
| 157 |
"subtitleTypo": { "type": "object", "default": {} } |
| 158 |
} |
| 159 |
} |
| 160 |
|