| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/github-card", |
| 5 |
"title": "GitHub Card", |
| 6 |
"category": "bkbg-dev", |
| 7 |
"description": "Display a GitHub user profile or repository card with live stats fetched from the GitHub API.", |
| 8 |
"keywords": [ |
| 9 |
"github", |
| 10 |
"card", |
| 11 |
"repository", |
| 12 |
"profile", |
| 13 |
"developer", |
| 14 |
"stats", |
| 15 |
"api" |
| 16 |
], |
| 17 |
"textdomain": "blockenberg", |
| 18 |
"editorScript": "bkbg-github-card-editor", |
| 19 |
"style": "bkbg-github-card-style", |
| 20 |
"viewScript": "bkbg-github-card-frontend", |
| 21 |
"supports": { |
| 22 |
"html": false, |
| 23 |
"anchor": true, |
| 24 |
"className": true, |
| 25 |
"align": [ |
| 26 |
"wide", |
| 27 |
"full" |
| 28 |
] |
| 29 |
}, |
| 30 |
"attributes": { |
| 31 |
"mode": { |
| 32 |
"type": "string", |
| 33 |
"default": "repo" |
| 34 |
}, |
| 35 |
"username": { |
| 36 |
"type": "string", |
| 37 |
"default": "" |
| 38 |
}, |
| 39 |
"repoName": { |
| 40 |
"type": "string", |
| 41 |
"default": "" |
| 42 |
}, |
| 43 |
"showAvatar": { |
| 44 |
"type": "boolean", |
| 45 |
"default": true |
| 46 |
}, |
| 47 |
"showBio": { |
| 48 |
"type": "boolean", |
| 49 |
"default": true |
| 50 |
}, |
| 51 |
"showStats": { |
| 52 |
"type": "boolean", |
| 53 |
"default": true |
| 54 |
}, |
| 55 |
"showLanguage": { |
| 56 |
"type": "boolean", |
| 57 |
"default": true |
| 58 |
}, |
| 59 |
"showTopics": { |
| 60 |
"type": "boolean", |
| 61 |
"default": true |
| 62 |
}, |
| 63 |
"showLastUpdate": { |
| 64 |
"type": "boolean", |
| 65 |
"default": true |
| 66 |
}, |
| 67 |
"openInNewTab": { |
| 68 |
"type": "boolean", |
| 69 |
"default": true |
| 70 |
}, |
| 71 |
"cacheMinutes": { |
| 72 |
"type": "number", |
| 73 |
"default": 60 |
| 74 |
}, |
| 75 |
"cardRadius": { |
| 76 |
"type": "number", |
| 77 |
"default": 16 |
| 78 |
}, |
| 79 |
"padding": { |
| 80 |
"type": "number", |
| 81 |
"default": 24 |
| 82 |
}, |
| 83 |
"avatarSize": { |
| 84 |
"type": "number", |
| 85 |
"default": 64 |
| 86 |
}, |
| 87 |
"align2": { |
| 88 |
"type": "string", |
| 89 |
"default": "center" |
| 90 |
}, |
| 91 |
"maxWidth": { |
| 92 |
"type": "number", |
| 93 |
"default": 480 |
| 94 |
}, |
| 95 |
"cardBg": { |
| 96 |
"type": "string", |
| 97 |
"default": "#0d1117" |
| 98 |
}, |
| 99 |
"headingColor": { |
| 100 |
"type": "string", |
| 101 |
"default": "#e6edf3" |
| 102 |
}, |
| 103 |
"descColor": { |
| 104 |
"type": "string", |
| 105 |
"default": "#8b949e" |
| 106 |
}, |
| 107 |
"metaColor": { |
| 108 |
"type": "string", |
| 109 |
"default": "#8b949e" |
| 110 |
}, |
| 111 |
"statBg": { |
| 112 |
"type": "string", |
| 113 |
"default": "#161b22" |
| 114 |
}, |
| 115 |
"linkColor": { |
| 116 |
"type": "string", |
| 117 |
"default": "#58a6ff" |
| 118 |
}, |
| 119 |
"borderColor": { |
| 120 |
"type": "string", |
| 121 |
"default": "#30363d" |
| 122 |
}, |
| 123 |
"sectionBg": { |
| 124 |
"type": "string", |
| 125 |
"default": "" |
| 126 |
}, |
| 127 |
"headingFontSize": { |
| 128 |
"type": "number", |
| 129 |
"default": 16 |
| 130 |
}, |
| 131 |
"bodyFontSize": { |
| 132 |
"type": "number", |
| 133 |
"default": 14 |
| 134 |
}, |
| 135 |
"metaFontSize": { |
| 136 |
"type": "number", |
| 137 |
"default": 11 |
| 138 |
}, |
| 139 |
"typoHeading": { |
| 140 |
"type": "object", |
| 141 |
"default": {} |
| 142 |
}, |
| 143 |
"typoBody": { |
| 144 |
"type": "object", |
| 145 |
"default": {} |
| 146 |
}, |
| 147 |
"typoMeta": { |
| 148 |
"type": "object", |
| 149 |
"default": {} |
| 150 |
} |
| 151 |
} |
| 152 |
} |
| 153 |
|