| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/file-tree", |
| 5 |
"version": "1.0.0", |
| 6 |
"title": "File Tree", |
| 7 |
"category": "bkbg-dev", |
| 8 |
"icon": "media-default", |
| 9 |
"description": "Display a visual file and folder tree structure — ideal for documentation, project overviews, and tutorials.", |
| 10 |
"keywords": [ |
| 11 |
"file", |
| 12 |
"tree", |
| 13 |
"folder", |
| 14 |
"directory", |
| 15 |
"code", |
| 16 |
"structure", |
| 17 |
"docs" |
| 18 |
], |
| 19 |
"textdomain": "blockenberg", |
| 20 |
"editorScript": "bkbg-file-tree-editor", |
| 21 |
"editorStyle": "bkbg-file-tree-style", |
| 22 |
"style": "bkbg-file-tree-style", |
| 23 |
"viewScript": "bkbg-file-tree-frontend", |
| 24 |
"supports": { |
| 25 |
"html": false, |
| 26 |
"anchor": true, |
| 27 |
"className": true, |
| 28 |
"align": [ |
| 29 |
"wide", |
| 30 |
"full" |
| 31 |
] |
| 32 |
}, |
| 33 |
"attributes": { |
| 34 |
"treeTitle": { |
| 35 |
"type": "string", |
| 36 |
"default": "Project Structure" |
| 37 |
}, |
| 38 |
"showTitle": { |
| 39 |
"type": "boolean", |
| 40 |
"default": true |
| 41 |
}, |
| 42 |
"showIcons": { |
| 43 |
"type": "boolean", |
| 44 |
"default": true |
| 45 |
}, |
| 46 |
"showLines": { |
| 47 |
"type": "boolean", |
| 48 |
"default": true |
| 49 |
}, |
| 50 |
"showExtensionColors": { |
| 51 |
"type": "boolean", |
| 52 |
"default": true |
| 53 |
}, |
| 54 |
"fontSize": { |
| 55 |
"type": "number", |
| 56 |
"default": 14 |
| 57 |
}, |
| 58 |
"titleFontSize": { |
| 59 |
"type": "number", |
| 60 |
"default": 18 |
| 61 |
}, |
| 62 |
"lineHeight": { |
| 63 |
"type": "number", |
| 64 |
"default": 180 |
| 65 |
}, |
| 66 |
"borderRadius": { |
| 67 |
"type": "number", |
| 68 |
"default": 10 |
| 69 |
}, |
| 70 |
"typoTitle": { |
| 71 |
"type": "object", |
| 72 |
"default": {} |
| 73 |
}, |
| 74 |
"typoItem": { |
| 75 |
"type": "object", |
| 76 |
"default": {} |
| 77 |
}, |
| 78 |
"files": { |
| 79 |
"type": "array", |
| 80 |
"default": [ |
| 81 |
{ |
| 82 |
"name": "my-project", |
| 83 |
"type": "folder", |
| 84 |
"indent": 0, |
| 85 |
"isOpen": true |
| 86 |
}, |
| 87 |
{ |
| 88 |
"name": "src", |
| 89 |
"type": "folder", |
| 90 |
"indent": 1, |
| 91 |
"isOpen": true |
| 92 |
}, |
| 93 |
{ |
| 94 |
"name": "components", |
| 95 |
"type": "folder", |
| 96 |
"indent": 2, |
| 97 |
"isOpen": true |
| 98 |
}, |
| 99 |
{ |
| 100 |
"name": "Button.tsx", |
| 101 |
"type": "file", |
| 102 |
"indent": 3, |
| 103 |
"isOpen": false |
| 104 |
}, |
| 105 |
{ |
| 106 |
"name": "Modal.tsx", |
| 107 |
"type": "file", |
| 108 |
"indent": 3, |
| 109 |
"isOpen": false |
| 110 |
}, |
| 111 |
{ |
| 112 |
"name": "index.ts", |
| 113 |
"type": "file", |
| 114 |
"indent": 2, |
| 115 |
"isOpen": false |
| 116 |
}, |
| 117 |
{ |
| 118 |
"name": "App.tsx", |
| 119 |
"type": "file", |
| 120 |
"indent": 2, |
| 121 |
"isOpen": false |
| 122 |
}, |
| 123 |
{ |
| 124 |
"name": "styles", |
| 125 |
"type": "folder", |
| 126 |
"indent": 1, |
| 127 |
"isOpen": true |
| 128 |
}, |
| 129 |
{ |
| 130 |
"name": "globals.css", |
| 131 |
"type": "file", |
| 132 |
"indent": 2, |
| 133 |
"isOpen": false |
| 134 |
}, |
| 135 |
{ |
| 136 |
"name": "variables.css", |
| 137 |
"type": "file", |
| 138 |
"indent": 2, |
| 139 |
"isOpen": false |
| 140 |
}, |
| 141 |
{ |
| 142 |
"name": "public", |
| 143 |
"type": "folder", |
| 144 |
"indent": 1, |
| 145 |
"isOpen": true |
| 146 |
}, |
| 147 |
{ |
| 148 |
"name": "favicon.ico", |
| 149 |
"type": "file", |
| 150 |
"indent": 2, |
| 151 |
"isOpen": false |
| 152 |
}, |
| 153 |
{ |
| 154 |
"name": "logo.svg", |
| 155 |
"type": "file", |
| 156 |
"indent": 2, |
| 157 |
"isOpen": false |
| 158 |
}, |
| 159 |
{ |
| 160 |
"name": "package.json", |
| 161 |
"type": "file", |
| 162 |
"indent": 1, |
| 163 |
"isOpen": false |
| 164 |
}, |
| 165 |
{ |
| 166 |
"name": "tsconfig.json", |
| 167 |
"type": "file", |
| 168 |
"indent": 1, |
| 169 |
"isOpen": false |
| 170 |
}, |
| 171 |
{ |
| 172 |
"name": "README.md", |
| 173 |
"type": "file", |
| 174 |
"indent": 1, |
| 175 |
"isOpen": false |
| 176 |
} |
| 177 |
] |
| 178 |
}, |
| 179 |
"bgColor": { |
| 180 |
"type": "string", |
| 181 |
"default": "#0f172a" |
| 182 |
}, |
| 183 |
"borderColor": { |
| 184 |
"type": "string", |
| 185 |
"default": "#1e293b" |
| 186 |
}, |
| 187 |
"titleColor": { |
| 188 |
"type": "string", |
| 189 |
"default": "#f8fafc" |
| 190 |
}, |
| 191 |
"folderColor": { |
| 192 |
"type": "string", |
| 193 |
"default": "#60a5fa" |
| 194 |
}, |
| 195 |
"folderIconColor": { |
| 196 |
"type": "string", |
| 197 |
"default": "#fbbf24" |
| 198 |
}, |
| 199 |
"fileColor": { |
| 200 |
"type": "string", |
| 201 |
"default": "#cbd5e1" |
| 202 |
}, |
| 203 |
"lineColor": { |
| 204 |
"type": "string", |
| 205 |
"default": "#334155" |
| 206 |
}, |
| 207 |
"headerBg": { |
| 208 |
"type": "string", |
| 209 |
"default": "#1e293b" |
| 210 |
}, |
| 211 |
"dotRed": { |
| 212 |
"type": "string", |
| 213 |
"default": "#ef4444" |
| 214 |
}, |
| 215 |
"dotYellow": { |
| 216 |
"type": "string", |
| 217 |
"default": "#f59e0b" |
| 218 |
}, |
| 219 |
"dotGreen": { |
| 220 |
"type": "string", |
| 221 |
"default": "#22c55e" |
| 222 |
}, |
| 223 |
"jsColor": { |
| 224 |
"type": "string", |
| 225 |
"default": "#f59e0b" |
| 226 |
}, |
| 227 |
"tsColor": { |
| 228 |
"type": "string", |
| 229 |
"default": "#3b82f6" |
| 230 |
}, |
| 231 |
"cssColor": { |
| 232 |
"type": "string", |
| 233 |
"default": "#a78bfa" |
| 234 |
}, |
| 235 |
"htmlColor": { |
| 236 |
"type": "string", |
| 237 |
"default": "#f97316" |
| 238 |
}, |
| 239 |
"jsonColor": { |
| 240 |
"type": "string", |
| 241 |
"default": "#6ee7b7" |
| 242 |
}, |
| 243 |
"mdColor": { |
| 244 |
"type": "string", |
| 245 |
"default": "#94a3b8" |
| 246 |
}, |
| 247 |
"pyColor": { |
| 248 |
"type": "string", |
| 249 |
"default": "#4ade80" |
| 250 |
}, |
| 251 |
"imgColor": { |
| 252 |
"type": "string", |
| 253 |
"default": "#fb7185" |
| 254 |
} |
| 255 |
} |
| 256 |
} |
| 257 |
|