(fix) Update card.json with UX (#355)

* Update card.json
This commit is contained in:
TP Honey 2022-01-19 16:06:21 +00:00 committed by GitHub
parent dc9bf3bc79
commit 96ee8a4ebf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 116 additions and 107 deletions

View File

@ -1,118 +1,127 @@
{ {
"type": "AdaptiveCard", "type": "AdaptiveCard",
"body": [ "body": [
{
"type": "ColumnSet",
"columns": [
{ {
"type": "Column", "type": "ColumnSet",
"items": [ "columns": [
{ {
"type": "Image", "type": "Column",
"url": "https://d36jcksde1wxzq.cloudfront.net/be7833db9bddb4494d2a7c3dd659199a.png", "items": [
"size": "Medium" {
} "type": "Image",
], "url": "https://d36jcksde1wxzq.cloudfront.net/be7833db9bddb4494d2a7c3dd659199a.png",
"width": "auto" "size": "small"
}
],
"width": "auto"
},
{
"type": "Column",
"items": [
{
"type": "TextBlock",
"text": "Plugin: Drone Docker",
"wrap": true,
"size": "Small",
"weight": "Bolder",
"isSubtle": false,
"spacing": "Small"
},
{
"type": "TextBlock",
"text": "DIGEST: ${RepoDigests[0]}",
"wrap": true,
"size": "Small",
"weight": "Lighter",
"isSubtle": true,
"spacing": "Small"
}
],
"width": "stretch"
}
],
"style": "default"
}, },
{ {
"type": "Column", "type": "ColumnSet",
"items": [ "columns": [
{
"type": "TextBlock",
"text": "${RepoTags[0]}",
"size": "Medium"
},
{
"type": "TextBlock",
"text": "DIGEST: ${RepoDigests[0]}",
"wrap": true,
"size": "Small",
"weight": "Lighter",
"isSubtle": true,
"spacing": "Small"
},
{
"type": "ColumnSet",
"columns": [
{ {
"type": "Column", "type": "Column",
"items": [ "items": [
{ {
"type": "TextBlock", "type": "TextBlock",
"weight": "Lighter", "weight": "Lighter",
"text": "OS/ARCH", "text": "OS/ARCH",
"wrap": true, "wrap": true,
"size": "Small", "size": "Small",
"isSubtle": true, "isSubtle": true,
"spacing": "Medium" "spacing": "Medium"
}, },
{ {
"type": "TextBlock", "type": "TextBlock",
"text": "${OS}/${Architecture}", "text": "${OS}/${Architecture}",
"wrap": true, "wrap": true,
"size": "Small", "size": "Small",
"spacing": "Small" "spacing": "Small",
} "weight": "Bolder"
], }
"separator": true, ],
"width": "auto" "separator": true,
"width": "auto"
}, },
{ {
"type": "Column", "type": "Column",
"items": [ "items": [
{ {
"type": "TextBlock", "type": "TextBlock",
"weight": "Lighter", "weight": "Lighter",
"text": "SIZE", "text": "SIZE",
"wrap": true, "wrap": true,
"size": "Small", "size": "Small",
"isSubtle": true "isSubtle": true
}, },
{ {
"type": "TextBlock", "type": "TextBlock",
"spacing": "Small", "spacing": "Small",
"text": "${SizeString}", "text": "${SizeString}",
"wrap": true, "wrap": true,
"size": "Small" "size": "Small",
} "weight": "Bolder"
], }
"width": "auto", ],
"separator": true, "width": "auto",
"spacing": "Medium" "separator": true,
"spacing": "Medium"
}, },
{ {
"type": "Column", "type": "Column",
"items": [ "items": [
{ {
"type": "TextBlock", "type": "TextBlock",
"weight": "Lighter", "weight": "Lighter",
"text": "LAST PUSHED", "text": "LAST PUSHED",
"wrap": true, "wrap": true,
"size": "Small", "size": "Small",
"isSubtle": true "isSubtle": true
}, },
{ {
"type": "TextBlock", "type": "TextBlock",
"spacing": "Small", "spacing": "Small",
"text": "{{DATE(${Time})}} - {{TIME(${Time})}}", "text": "{{DATE(${Time})}} - {{TIME(${Time})}}",
"wrap": true, "wrap": true,
"size": "Small" "size": "Small",
} "weight": "Bolder"
], }
"width": "auto", ],
"separator": true, "width": "auto",
"spacing": "Medium" "separator": true,
"spacing": "Medium"
} }
], ],
"style": "default" "style": "default",
} "separator": true
],
"width": "stretch"
} }
] ],
} "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
], "version": "1.5"
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json", }
"version": "1.0"
}