-
Notifications
You must be signed in to change notification settings - Fork 773
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1425 from OfficeDev/v-hrajandira/UpdateBotFormatt…
…ingCardsSample Added Fluent Icon, Media Elements, and Star Ratings in Adaptive Cards (Csharp, Nodejs)
- Loading branch information
Showing
53 changed files
with
566 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-66.1 KB
samples/bot-formatting-cards/csharp/BotFormattingCards/Images/12.CodeBlocks.png
Binary file not shown.
Binary file removed
BIN
-79.2 KB
...rmatting-cards/csharp/BotFormattingCards/Images/12.Code_Block_Adaptive_Card.png
Binary file not shown.
Binary file removed
BIN
-65.7 KB
samples/bot-formatting-cards/csharp/BotFormattingCards/Images/13.Layout.png
Binary file not shown.
Binary file removed
BIN
-82.4 KB
samples/bot-formatting-cards/csharp/BotFormattingCards/Images/13.Layout_Card.png
Binary file not shown.
Binary file removed
BIN
-49.4 KB
samples/bot-formatting-cards/csharp/BotFormattingCards/Images/14.Border.png
Binary file not shown.
Binary file removed
BIN
-136 KB
samples/bot-formatting-cards/csharp/BotFormattingCards/Images/14.LayoutMobile.png
Binary file not shown.
Binary file removed
BIN
-60.8 KB
...les/bot-formatting-cards/csharp/BotFormattingCards/Images/15.RoundedCorners.png
Binary file not shown.
Binary file added
BIN
+53.4 KB
...formatting-cards/csharp/BotFormattingCards/Images/16.FluentIconAdaptiveCard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+239 KB
...-formatting-cards/csharp/BotFormattingCards/Images/17.FluentIconsSelectCard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-136 KB
samples/bot-formatting-cards/csharp/BotFormattingCards/Images/17.LayoutMobile.png
Binary file not shown.
Binary file added
BIN
+55.5 KB
...matting-cards/csharp/BotFormattingCards/Images/18.MediaElementsAdaptiveCard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+67.9 KB
...matting-cards/csharp/BotFormattingCards/Images/19.MediaElementsAdaptiveCard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+65.3 KB
...atting-cards/csharp/BotFormattingCards/Images/20.MediaElementsAdaptiveCard1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+89.8 KB
...atting-cards/csharp/BotFormattingCards/Images/21.MediaElementsAdaptiveCard2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+57.2 KB
.../bot-formatting-cards/csharp/BotFormattingCards/Images/22.SelectStarRatings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+53.1 KB
...rmatting-cards/csharp/BotFormattingCards/Images/23.StarRatingsAdaptiveCards.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+53.9 KB
...ards/csharp/BotFormattingCards/Images/24.StarRatingsAdaptiveCardsValidation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+55.8 KB
...ot-formatting-cards/csharp/BotFormattingCards/Images/25.StarRatingsFeedback.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+102 KB
...rmatting-cards/csharp/BotFormattingCards/Images/26.StarRatingsAdaptiveCards.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+97.2 KB
...ot-formatting-cards/csharp/BotFormattingCards/Images/27.StarRatingsFeedback.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-551 KB
...ting-cards/csharp/BotFormattingCards/Images/Bot_Formatting_Cards_nodejs_gif.gif
Binary file not shown.
Binary file modified
BIN
+364 KB
(170%)
.../bot-formatting-cards/csharp/BotFormattingCards/Images/bot_formatting_cards.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions
43
samples/bot-formatting-cards/csharp/BotFormattingCards/Resources/adaptiveCardFluentIcon.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"type": "AdaptiveCard", | ||
"speak": "3 minute energy flow with kayo video", | ||
"$schema": "https://adaptivecards.io/schemas/adaptive-card.json", | ||
"version": "1.5", | ||
"body": [ | ||
{ | ||
"type": "Image", | ||
"url": "https://raw.githubusercontent.com/OfficeDev/Microsoft-Teams-Card-Samples/main/samples/author-highlight-video/assets/video_image.png", | ||
"altText": "3 Minute Energy Flow with Kayo Video" | ||
}, | ||
{ | ||
"type": "TextBlock", | ||
"text": "3 Minute Energy Flow with Kayo", | ||
"wrap": true, | ||
"size": "Large", | ||
"weight": "Bolder" | ||
}, | ||
{ | ||
"type": "ColumnSet", | ||
"columns": [ | ||
{ | ||
"type": "Column", | ||
"width": "stretch", | ||
"items": [ | ||
{ | ||
"type": "Icon", | ||
"name": "Calendar", | ||
"size": "Medium", | ||
"style": "Filled", | ||
"color": "Accent", | ||
"selectAction": { | ||
"type": "Action.OpenUrl" | ||
} | ||
} | ||
], | ||
"spacing": "Small", | ||
"verticalContentAlignment": "Center" | ||
} | ||
] | ||
} | ||
] | ||
} |
53 changes: 53 additions & 0 deletions
53
...s/bot-formatting-cards/csharp/BotFormattingCards/Resources/adaptiveCardMediaElements.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json", | ||
"type": "AdaptiveCard", | ||
"version": "1.6", | ||
"fallbackText": "This card requires CaptionSource to be viewed. Ask your platform to update to Adaptive Cards v1.6 for this and more!", | ||
"body": [ | ||
{ | ||
"type": "TextBlock", | ||
"text": "YouTube video", | ||
"wrap": true | ||
}, | ||
{ | ||
"type": "Media", | ||
"poster": "https://adaptivecards.io/content/poster-video.png", | ||
"sources": [ | ||
{ | ||
"mimeType": "video/mp4", | ||
"url": "https://www.youtube.com/watch?v=S7xTBa93TX8" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "TextBlock", | ||
"text": "Vimeo video", | ||
"wrap": true | ||
}, | ||
{ | ||
"type": "Media", | ||
"poster": "https://adaptivecards.io/content/poster-video.png", | ||
"sources": [ | ||
{ | ||
"mimeType": "video/mp4", | ||
"url": "https://vimeo.com/508683403" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "TextBlock", | ||
"text": "Dailymotion video", | ||
"wrap": true | ||
}, | ||
{ | ||
"type": "Media", | ||
"poster": "https://adaptivecards.io/content/poster-video.png", | ||
"sources": [ | ||
{ | ||
"mimeType": "video/mp4", | ||
"url": "https://www.dailymotion.com/video/x8wi5ho" | ||
} | ||
] | ||
} | ||
] | ||
} |
62 changes: 62 additions & 0 deletions
62
...les/bot-formatting-cards/csharp/BotFormattingCards/Resources/adaptiveCardStarRatings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"type": "AdaptiveCard", | ||
"$schema": "https://adaptivecards.io/schemas/adaptive-card.json", | ||
"version": "1.5", | ||
"body": [ | ||
{ | ||
"type": "TextBlock", | ||
"size": "Large", | ||
"text": "Rating input" | ||
}, | ||
{ | ||
"type": "Input.Rating", | ||
"id": "rating1", | ||
"label": "Pick a rating", | ||
"size": "medium", | ||
"isRequired": true, | ||
"errorMessage": "Please pick a rating" | ||
}, | ||
{ | ||
"type": "Input.Rating", | ||
"id": "rating2", | ||
"label": "Pick a rating", | ||
"allowHalfSteps": true, | ||
"size": "large", | ||
"isRequired": true, | ||
"errorMessage": "Please pick a rating", | ||
"color": "marigold", | ||
"value": 3 | ||
}, | ||
{ | ||
"type": "TextBlock", | ||
"size": "large", | ||
"text": "Read-only ratings", | ||
"separator": true, | ||
"spacing": "extraLarge" | ||
}, | ||
{ | ||
"type": "Rating", | ||
"value": 3.2, | ||
"size": "medium" | ||
}, | ||
{ | ||
"type": "Rating", | ||
"max": 20, | ||
"value": 3.2, | ||
"color": "marigold" | ||
}, | ||
{ | ||
"type": "Rating", | ||
"style": "compact", | ||
"value": 3.2, | ||
"color": "marigold", | ||
"count": 150 | ||
} | ||
], | ||
"actions": [ | ||
{ | ||
"type": "Action.Submit", | ||
"title": "Submit" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file added
BIN
+51.1 KB
samples/bot-formatting-cards/nodejs/Images/19.FluentIconsSelectCard.png
Oops, something went wrong.
Binary file added
BIN
+237 KB
samples/bot-formatting-cards/nodejs/Images/20.FluentIconAdaptiveCard.png
Oops, something went wrong.
Binary file added
BIN
+63.5 KB
samples/bot-formatting-cards/nodejs/Images/21.MediaElementsAdaptiveCard.png
Oops, something went wrong.
Binary file added
BIN
+60.1 KB
samples/bot-formatting-cards/nodejs/Images/22.MediaElementsAdaptiveCard.png
Oops, something went wrong.
Binary file added
BIN
+63.8 KB
samples/bot-formatting-cards/nodejs/Images/23.MediaElementsAdaptiveCard1.png
Oops, something went wrong.
Binary file added
BIN
+104 KB
samples/bot-formatting-cards/nodejs/Images/24.MediaElementsAdaptiveCard2.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+52.4 KB
samples/bot-formatting-cards/nodejs/Images/26.StarRatingsAdaptiveCards.png
Oops, something went wrong.
Binary file added
BIN
+53.5 KB
...es/bot-formatting-cards/nodejs/Images/27.StarRatingsAdaptiveCardsValidation.png
Oops, something went wrong.
Binary file added
BIN
+64.8 KB
samples/bot-formatting-cards/nodejs/Images/28.StarRatingsFeedback.png
Oops, something went wrong.
Binary file added
BIN
+97.8 KB
samples/bot-formatting-cards/nodejs/Images/29.StarRatingsAdaptiveCards.png
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
+273 KB
(140%)
samples/bot-formatting-cards/nodejs/Images/Bot_Formatting_Cards_nodejs_gif.gif
Oops, something went wrong.
Oops, something went wrong.