上一篇文章我们深入来分析了 tab app 的代码,这篇文章我们研究一下 manifest。
Teams 的 manifest 实际上是一个很复杂的 json,里面的配置非常多,之前的文章陆陆续续的讲过一些配置,我们在这篇文章里来看看关于 tabs 的一些配置,我简化了一下 manifest 文件如下:
- {
- ........
- "configurableTabs": [
- {
- "configurationUrl": "https://localhost:53000/index.html#/config",
- "canUpdateConfiguration": true,
- "scopes": [
- "team",
- "groupchat"
- ]
- }
- ],
- "staticTabs": [
- {
- "entityId": "index",
- "name": "Personal Tab",
- "contentUrl": "https://localhost:53000/index.html#/tab",
- "websiteUrl": "https://localhost:53000/index.html#/tab",
- "scopes": [
- "personal"
- ]
- }
- ],
- "validDomains": [