-
Notifications
You must be signed in to change notification settings - Fork 12
tests/message-extensions
& other improvements
#213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
978d6ae
select item
kavins14 68fe617
add missing "invoke" card action type
kavins14 8777bf8
settings page
kavins14 b6916a5
settings page fixes
kavins14 82fbf58
remove index
kavins14 90c0d13
resolve me docs feedback
kavins14 6a6628f
Merge branch 'main' into kavin/me-docs-improvment
singhk97 1b9e432
Merge branch 'main' into kavin/me-docs-improvment
kavins14 625bda7
Merge branch 'main' into kavin/me-docs-improvment
singhk97 c9abce6
lint fix
kavins14 a720210
Merge branch 'main' into kavin/me-docs-improvment
singhk97 4b92366
Merge branch 'main' into kavin/me-docs-improvment
singhk97 e5dc9b8
Merge branch 'main' into kavin/me-docs-improvment
lilyydu 6097a9a
Merge branch 'main' into kavin/me-docs-improvment
aacebo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,56 @@ | ||
<!-- :snippet-start: message-ext-settings-page --> | ||
<html> | ||
<body> | ||
<form> | ||
<fieldset> | ||
<legend>What programming language do you prefer?</legend> | ||
<input type="radio" name="selectedOption" value="typescript" />Typescript<br /> | ||
<input type="radio" name="selectedOption" value="csharp" />C#<br /> | ||
</fieldset> | ||
|
||
<br /> | ||
<input type="button" onclick="onSubmit()" value="Save" /> <br /> | ||
</form> | ||
|
||
<script src="https://res.cdn.office.net/teams-js/2.34.0/js/MicrosoftTeams.min.js" integrity="sha384-brW9AazbKR2dYw2DucGgWCCcmrm2oBFV4HQidyuyZRI/TnAkmOOnTARSTdps3Hwt" crossorigin="anonymous"></script> | ||
|
||
<script type="text/javascript"> | ||
document.addEventListener("DOMContentLoaded", function () { | ||
// Get the selected option from the URL | ||
var urlParams = new URLSearchParams(window.location.search); | ||
var selectedOption = urlParams.get("selectedOption"); | ||
if (selectedOption) { | ||
var checkboxes = document.getElementsByName("selectedOption"); | ||
for (var i = 0; i < checkboxes.length; i++) { | ||
var thisCheckbox = checkboxes[i]; | ||
if (selectedOption.includes(thisCheckbox.value)) { | ||
checkboxes[i].checked = true; | ||
} | ||
} | ||
} | ||
}); | ||
</script> | ||
|
||
<script type="text/javascript"> | ||
// initialize the Teams JS SDK | ||
microsoftTeams.app.initialize(); | ||
|
||
// Run when the user clicks the submit button | ||
function onSubmit() { | ||
var newSettings = ""; | ||
|
||
var checkboxes = document.getElementsByName("selectedOption"); | ||
|
||
for (var i = 0; i < checkboxes.length; i++) { | ||
if (checkboxes[i].checked) { | ||
newSettings = checkboxes[i].value; | ||
} | ||
} | ||
|
||
// Closes the settings page and returns the selected option to the bot | ||
microsoftTeams.authentication.notifySuccess(newSettings); | ||
} | ||
</script> | ||
</body> | ||
</html> | ||
<!-- :snippet-end: message-ext-settings-page --> |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.