-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathplugin.json
330 lines (330 loc) · 10.3 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
{
"id": "com.github.moussetc.mattermost.plugin.giphy",
"name": "GIF commands",
"description": "Add GIF slash commands from Giphy or Tenor",
"version": "3.0.0",
"min_server_version": "6.5.0",
"homepage_url": "https://github.com/moussetc/mattermost-plugin-giphy/",
"support_url": "https://github.com/moussetc/mattermost-plugin-giphy/issues",
"release_notes_url": "https://github.com/moussetc/mattermost-plugin-giphy/releases/v3.0.0",
"icon_path": "assets/icon.svg",
"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"
},
"executable": "server/dist/plugin-freebsd-amd64.exe"
},
"settings_schema": {
"settings": [
{
"key": "DisplayMode",
"type": "radio",
"display_name": "Display the GIF as:",
"default": "embedded",
"options": [
{
"display_name": "Embedded image (the GIF cannot be collapsed)",
"value": "embedded"
},
{
"display_name": "Collapsible image preview (the full URL is displayed, requires link previews to be enabled)",
"value": "full_url"
}
],
"help_text": "It is not yet possible to collapse an embedded image in Mattermost: use the Full URL option if preferred and keep an eye on [this issue](https://mattermost.atlassian.net/browse/MM-12290).\n\n To enable link previews, go to **System Console > Site Configuration > Posts > Enable Link Previews**."
},
{
"key": "Provider",
"type": "radio",
"display_name": "GIF Provider:",
"default": "giphy",
"options": [
{
"display_name": "GIPHY",
"value": "giphy"
},
{
"display_name": "Tenor",
"value": "tenor"
}
]
},
{
"key": "APIKey",
"type": "text",
"display_name": "GIPHY or Tenor API Key:",
"help_text": "Configure your own API key. To get your own API key, follow [these instructions for Giphy](https://developers.giphy.com/docs/api#quick-start-guide) or [these for Tenor](https://developers.google.com/tenor/guides/quickstart#setup)."
},
{
"key": "Rating",
"type": "dropdown",
"display_name": "Content Rating:",
"help_text": "Choose a MPAA-style rating",
"options": [
{
"display_name": "No rating (no content filtering)",
"value": "none"
},
{
"display_name": "G",
"value": "g"
},
{
"display_name": "PG",
"value": "pg"
},
{
"display_name": "PG-13",
"value": "pg-13"
},
{
"display_name": "R",
"value": "r"
}
]
},
{
"key": "Rendition",
"type": "dropdown",
"display_name": "GIPHY display style:",
"help_text": "Select the style to display GIFs from GIPHY (more info [here](https://developers.giphy.com/docs/optional-settings/#rendition-guide)).",
"default": "fixed_height_small",
"options": [
{
"display_name": "Height set to 200px. Good for mobile use.",
"value": "fixed_height"
},
{
"display_name": "Static preview image for fixed_height.",
"value": "fixed_height_still"
},
{
"display_name": "Height set to 100px. Good for mobile keyboards.",
"value": "fixed_height_small"
},
{
"display_name": "Static preview image for fixed_height_small.",
"value": "fixed_height_small_still"
},
{
"display_name": "Width set to 200px. Good for mobile use.",
"value": "fixed_width"
},
{
"display_name": "Static preview image for fixed_width.",
"value": "fixed_width_still"
},
{
"display_name": "Width set to 100px. Good for mobile keyboards.",
"value": "fixed_width_small"
},
{
"display_name": "Static preview image for fixed_width_small.",
"value": "fixed_width_small_still"
},
{
"display_name": "File size under 2mb.",
"value": "downsized"
},
{
"display_name": "File size under 8mb.",
"value": "downsized_large"
},
{
"display_name": "Static preview image for downsized.",
"value": "downsized_still"
},
{
"display_name": "Original file size and file dimensions. Good for desktop use.",
"value": "original"
},
{
"display_name": "Preview image for original.",
"value": "original_still"
},
{
"display_name": "Duration set to loop for 15 seconds. Only recommended for this exact use case.",
"value": "looping"
}
]
},
{
"key": "RenditionTenor",
"type": "dropdown",
"display_name": "Tenor display style:",
"help_text": "Select the style to display GIFs from Tenor (more info [here](https://developers.google.com/tenor/guides/response-objects-and-errors#content-formats)).",
"default": "mediumgif",
"options": [
{
"display_name": "Original: High quality GIF format, largest file size available. Use this size for GIF shares on desktop.",
"value": "gif"
},
{
"display_name": "Medium: Small reduction in size of the original format.",
"value": "mediumgif"
},
{
"display_name": "Tiny: Reduced size of the original format, up to 220px wide. Good for mobile.",
"value": "tinygif"
}
]
},
{
"key": "Language",
"type": "dropdown",
"display_name": "Language:",
"help_text": "Select the language used to search GIFs (more info [here](https://developers.giphy.com/docs/optional-settings/#language-support)).",
"default": "en",
"options": [
{
"display_name": "English",
"value": "en"
},
{
"display_name": "Español",
"value": "es"
},
{
"display_name": "Français",
"value": "fr"
},
{
"display_name": "Português",
"value": "pt"
},
{
"display_name": "Bahasa Indonesia",
"value": "id"
},
{
"display_name": "العربية",
"value": "ar"
},
{
"display_name": "Türkçe",
"value": "tr"
},
{
"display_name": "ไทย",
"value": "th"
},
{
"display_name": "Tiếng Việt",
"value": "vi"
},
{
"display_name": "Deutsch",
"value": "de"
},
{
"display_name": "Italiano",
"value": "it"
},
{
"display_name": "日本語 (にほんご)",
"value": "ja"
},
{
"display_name": "Chinese Simplified",
"value": "zh-CN"
},
{
"display_name": "Chinese Traditional",
"value": "zh-TW"
},
{
"display_name": "русский",
"value": "ru"
},
{
"display_name": "한국어",
"value": "ko"
},
{
"display_name": "Polszczyzna",
"value": "pl"
},
{
"display_name": "Nederlands",
"value": "nl"
},
{
"display_name": "Română",
"value": "ro"
},
{
"display_name": "magyar",
"value": "hu"
},
{
"display_name": "Svenska",
"value": "sv"
},
{
"display_name": "čeština",
"value": "cs"
},
{
"display_name": "हिन्दी, हिंदी",
"value": "hi"
},
{
"display_name": "বাংলা",
"value": "bn"
},
{
"display_name": "dansk",
"value": "da"
},
{
"display_name": "فارسی",
"value": "fa"
},
{
"display_name": "Filipino",
"value": "tl"
},
{
"display_name": "suomi",
"value": "fi"
},
{
"display_name": "עברית",
"value": "he"
},
{
"display_name": "بهاس ملايو",
"value": "ms"
},
{
"display_name": "Norsk",
"value": "no"
},
{
"display_name": "Українська",
"value": "uk"
}
]
},
{
"key": "RandomSearch",
"type": "bool",
"display_name": "Random:",
"help_text": "If deactivated, the same search will return the same sequence of GIFs. Note: only pseudo-randomization is available for Tenor",
"default": true
},
{
"key": "DisablePostingWithoutPreview",
"type": "bool",
"display_name": "Force GIF preview before posting (force /gifs):",
"help_text": "If deactivated, both /gif (no preview before posting) and /gifs (preview) will be available. This option is activated by default to prevent the accidental posting of inappropriate GIFs from a provider that does not allow content rating.",
"default": true
}
],
"footer": "Powered by GIPHY and Tenor.\n\n * To report an issue, make a suggestion or a contribution, or fork your own version of the plugin, [check the repository](https://github.com/moussetc/mattermost-plugin-giphy).\n"
}
}