├── .deployment ├── .gitignore ├── .vscode ├── launch.json └── tasks.json ├── LICENSE ├── README.md ├── SECURITY.md ├── TaskModule.zip ├── config └── default.json ├── deploy.cmd ├── gulpfile.js ├── package-lock.json ├── package.json ├── public ├── images │ ├── color_icon.png │ ├── color_icon_transparent.png │ ├── contoso.png │ ├── favicon.ico │ └── outline_icon.png └── styles │ ├── custom.css │ └── msteams-16.css ├── src ├── MessagingExtension.ts ├── TaskModuleTab.ts ├── TeamsBot.ts ├── app.ts ├── config │ ├── custom-environment-variables.json │ └── default.json ├── constants.ts ├── dialogs │ ├── ACGenerator.ts │ ├── BotFrameworkCard.ts │ ├── CardTemplates.ts │ └── RootDialog.ts ├── manifest.json ├── storage │ ├── BotExtendedStorage.ts │ ├── MongoDbBotStorage.ts │ ├── NullBotStorage.ts │ └── index.ts ├── tabs.ts ├── utils │ ├── CardUtils.ts │ ├── DeepLinks.ts │ ├── Logger.ts │ ├── MessageUtils.ts │ └── index.ts └── views │ ├── configure.pug │ ├── customform.pug │ ├── embed.pug │ ├── first.pug │ ├── hello.pug │ ├── layout.pug │ ├── powerapp.pug │ ├── second.pug │ ├── taskmodule.pug │ └── youtube.pug ├── tsconfig.json ├── tsconfig.prod.json ├── tslint.json └── web.config /.deployment: -------------------------------------------------------------------------------- 1 | [config] 2 | command = deploy.cmd -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | 8 | # Runtime data 9 | pids 10 | *.pid 11 | *.seed 12 | *.pid.lock 13 | 14 | # Directory for instrumented libs generated by jscoverage/JSCover 15 | lib-cov 16 | 17 | # Coverage directory used by tools like istanbul 18 | coverage 19 | 20 | # nyc test coverage 21 | .nyc_output 22 | 23 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 24 | .grunt 25 | 26 | # Bower dependency directory (https://bower.io/) 27 | bower_components 28 | 29 | # node-waf configuration 30 | .lock-wscript 31 | 32 | # Compiled binary addons (https://nodejs.org/api/addons.html) 33 | build/Release 34 | 35 | # Dependency directories 36 | node_modules/ 37 | jspm_packages/ 38 | 39 | # TypeScript v1 declaration files 40 | typings/ 41 | 42 | # Optional npm cache directory 43 | .npm 44 | 45 | # Optional eslint cache 46 | .eslintcache 47 | 48 | # Optional REPL history 49 | .node_repl_history 50 | 51 | # Output of 'npm pack' 52 | *.tgz 53 | 54 | # Yarn Integrity file 55 | .yarn-integrity 56 | 57 | # dotenv environment variables file 58 | .env 59 | 60 | # Distributables 61 | build/ 62 | dist/ 63 | manifest/ 64 | public/scripts/bundle.js 65 | 66 | # next.js build output 67 | .next 68 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible Node.js debug attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | 8 | { 9 | "type": "node", 10 | "request": "attach", 11 | "name": "Attach by Process ID", 12 | "processId": "${command:PickProcess}" 13 | }, 14 | { 15 | "type": "node", 16 | "request": "launch", 17 | "name": "Launch - Teams Debug", 18 | "program": "${workspaceRoot}/src/app.ts", 19 | "cwd": "${workspaceRoot}/build/src", 20 | "preLaunchTask": "build", 21 | "sourceMaps": true, 22 | "outFiles": [ "${workspaceRoot}/build/**/*.js" ] 23 | }, 24 | { 25 | "name": "Attach to Teams", 26 | "type": "chrome", 27 | "request": "launch", 28 | "port": 9222, 29 | "runtimeExecutable": "C:/Users/billb/AppData/Local/Microsoft/Teams/Update.exe --processStart 'Teams.exe'", 30 | "cwd": "{workspaceRoot}/build/src", 31 | "webRoot": "${workspaceFolder}" 32 | }, 33 | { 34 | "type": "node", 35 | "request": "launch", 36 | "name": "Launch - Fiddler (only works when running Fiddler)", 37 | "program": "${workspaceRoot}/src/app.ts", 38 | "cwd": "${workspaceRoot}/build/src", 39 | "preLaunchTask": "build", 40 | "sourceMaps": true, 41 | "outFiles": [ "${workspaceRoot}/build/**/*.js" ] 42 | }, 43 | { 44 | "type": "node", 45 | "request": "launch", 46 | "name": "Launch (no build)", 47 | "program": "${workspaceRoot}/build/src/app.js", 48 | "cwd": "${workspaceRoot}/build/src", 49 | "sourceMaps": true, 50 | "outFiles": [ "${workspaceRoot}/build/src/**/*.js" ] 51 | } 52 | ] 53 | } 54 | -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- 1 | { 2 | // See https://go.microsoft.com/fwlink/?LinkId=733558 3 | // for the documentation about the tasks.json format 4 | "version": "2.0.0", 5 | "tasks": [ 6 | { 7 | "label": "build", 8 | "type": "shell", 9 | "command": "npm run -s build" 10 | } 11 | ] 12 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Microsoft Corporation. All rights reserved. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | --- 2 | page_type: sample 3 | products: 4 | - office-teams 5 | - office 6 | - office-365 7 | languages: 8 | - typescript 9 | - nodejs 10 | description: "A task module allows you to create modal popup experiences in your Teams application." 11 | urlFragment: teams-module-node 12 | extensions: 13 | contentType: samples 14 | createdDate: 9/17/2018 6:53:22 PM 15 | --- 16 | 17 | # Microsoft Teams task module - Node.js/TypeScript sample 18 | 19 | A task module allows you to create modal popup experiences in your Teams application. Inside the popup, you can run your own custom HTML/JavaScript code, show an `