forked from mattermost/mattermost-plugin-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.json
94 lines (94 loc) · 3.89 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
{
"id": "com.mattermost.demo-plugin",
"name": "Demo Plugin",
"description": "This plugin demonstrates the capabilities of a Mattermost plugin.",
"version": "0.0.6",
"min_server_version": "5.12.0",
"server": {
"executables": {
"linux-amd64": "server/dist/plugin-linux-amd64",
"darwin-amd64": "server/dist/plugin-darwin-amd64",
"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",
"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",
"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.",
"default": "CFgcq9Hr9OKSevvqH_SH-mPlgVklmpUm"
}, {
"key": "SecretMessage",
"display_name": "Secret Message",
"type": "longtext",
"help_text": "The message posted by the demo plugin when the secret phrase is detected.",
"default": "Yay! The random secret string was posted!\n\nGo to the settings page for this plugin in the system console to generate a new random secret."
}, {
"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.",
"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"
}]
}
}