-
Notifications
You must be signed in to change notification settings - Fork 103
/
plugin.json
148 lines (148 loc) · 6.11 KB
/
plugin.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{
"id": "com.mattermost.demo-plugin",
"name": "Demo Plugin",
"description": "This plugin demonstrates the capabilities of a Mattermost plugin.",
"homepage_url": "https://github.com/mattermost/mattermost-plugin-demo",
"support_url": "https://github.com/mattermost/mattermost-plugin-demo/issues",
"icon_path": "assets/icon.svg",
"version": "0.10.0",
"min_server_version": "7.9.0",
"server": {
"executables": {
"linux-amd64": "server/dist/plugin-linux-amd64",
"linux-arm64": "server/dist/plugin-linux-arm64",
"darwin-amd64": "server/dist/plugin-darwin-amd64",
"darwin-arm64": "server/dist/plugin-darwin-arm64",
"windows-amd64": "server/dist/plugin-windows-amd64.exe"
}
},
"webapp": {
"bundle_path": "webapp/dist/main.js"
},
"settings_schema": {
"header": "Header: Configure your demo plugin settings below.",
"footer": "Footer: The code for this demo plugin can be found [here](https://github.com/mattermost/mattermost-plugin-demo).",
"settings": [
{
"key": "ChannelName",
"display_name": "Channel Name:",
"type": "text",
"help_text": "The channel to use as part of the demo plugin, created for each team automatically if it does not exist.",
"placeholder": "demo_plugin",
"default": "demo_plugin"
},
{
"key": "Username",
"display_name": "Username:",
"type": "text",
"help_text": "The user to use as part of the demo plugin, created automatically if it does not exist.",
"placeholder": "demo_plugin",
"default": "demo_plugin"
},
{
"key": "LastName",
"display_name": "Demo User Last Name:",
"type": "radio",
"help_text": "Select the last name for the demo user.",
"placeholder": "",
"default": "Plugin User",
"options": [
{
"display_name": "Plugin User",
"value": "Plugin User"
},
{
"display_name": "Demoson III",
"value": "Demoson III"
},
{
"display_name": "McDemo",
"value": "McDemo"
}
]
},
{
"key": "TextStyle",
"display_name": "Text Style:",
"type": "dropdown",
"help_text": "Change the text style of the messages posted by this plugin.",
"placeholder": "",
"default": "",
"options": [
{
"display_name": "none",
"value": ""
},
{
"display_name": "italics",
"value": "_"
},
{
"display_name": "bold",
"value": "**"
}
]
},
{
"key": "RandomSecret",
"display_name": "Random Secret:",
"type": "generated",
"help_text": "Generate a random string that the demo plugin will watch for. If the secret string is mentioned in any channel then the demo plugin will publish a special message.",
"regenerate_help_text": "Generate a new secret string.",
"placeholder": "",
"default": "CFgcq9Hr9OKSevvqH_SH-mPlgVklmpUm"
},
{
"key": "SecretMessage",
"display_name": "Secret Message:",
"type": "custom",
"help_text": "The message posted by the demo plugin when the secret phrase is detected.",
"placeholder": "",
"default": "Yay! The random secret string was posted! Go to the settings page for this plugin in the System Console to generate a new random secret."
},
{
"key": "CustomSetting",
"display_name": "",
"type": "custom",
"help_text": "",
"placeholder": "",
"default": null
},
{
"key": "EnableMentionUser",
"display_name": "Enable Mention User:",
"type": "bool",
"help_text": "Enable or disable the demo plugin to tag a username on every message sent. The username value is set below.",
"placeholder": "",
"default": false
},
{
"key": "MentionUser",
"display_name": "Mention User:",
"type": "username",
"help_text": "Configure the username to be mentioned by the demo plugin. Must be enabled in the setting above.",
"placeholder": "demo_plugin",
"default": "demo_plugin"
},
{
"key": "secretNumber",
"display_name": "Secret Number:",
"type": "number",
"help_text": "A secret number that the demo plugin will watch for. If the secret number is mentioned in any channel then the demo plugin will publish a special message.",
"placeholder": "Some secret number",
"default": 123
},
{
"key": "integrationRequestDelay",
"display_name": "Integration Request delay",
"type": "number",
"help_text": "A deplay in seconds that is applied to Slash Command responses, Post Actions responses and Interactive Dialog responses. It's useful for testing.",
"placeholder": "A delay in seconds",
"default": 0
}
]
},
"props": {
"support_packet": "Demo plugin support packet"
}
}