-
Notifications
You must be signed in to change notification settings - Fork 11
/
settings.yml
158 lines (158 loc) · 4.15 KB
/
settings.yml
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
api_provider:
default: "giphy"
type: "enum"
description:
en: "Which GIF provider should we use?"
choices:
- giphy
- tenor
giphy_api_key:
type: string
default: ""
description:
en: "GIPHY: API key"
giphy_file_format:
type: enum
default: webp
description:
en: "GIPHY: Image format to use. WEBP has smaller files that load quicker while GIF provides compatibility with old browsers."
choices:
- webp
- gif
giphy_content_rating:
type: enum
default: r
description:
en: >
GIPHY: Content rating for search results. Find more info at
<a target="_blank" rel="noreferrer noopener" href="https://developers.giphy.com/docs/optional-settings#rating">
https://developers.giphy.com/docs/optional-settings#rating
</a>.
choices:
- g
- pg
- pg-13
- r
giphy_locale:
type: enum
default: en
description:
en: "GIPHY: Language to use on the search. Used to cater search to regional content. Set to your default forum locale."
choices:
- ar
- bn
- cs
- da
- de
- en
- es
- fa
- fi
- fr
- hi
- hu
- id
- it
- iw
- ja
- ko
- ms
- nl
- no
- pl
- pt
- ro
- ru
- sv
- th
- tl
- tr
- uk
- vi
- zh-CN
- zh-TW
limit_infinite_search_results:
type: bool
default: false
description:
en: "Limit the number of GIF results returned as the user scrolls infinitely to prevent API Rate Limiting."
max_results_limit:
type: integer
min: 24
default: 240
description:
en: 'Tenor & GIPHY: When "limit infinite search results" is enabled, we will search until we get this number of maximum GIF results. Each API call retrieves 24 results, <i>e.g. 240 Max Limit: 240 / 24 = 10 API Calls</i>.'
tenor_api_key:
type: string
default: ""
description:
en: >
Tenor: V2 API Key. Instructions to get one can be found in
<a target="_blank" rel="noreferrer noopener" href='https://meta.discourse.org/t/discourse-gifs-component/158738'>
Discourse Meta - Discourse Gifs
</a>.
<br/><br/>
<b>Attention: Legacy Tenor V1 API users - please generate a new V2 API Key</b>
tenor_client_key:
type: string
default: "discourse"
description:
en: "Tenor: (optional) client-specified string that represents the integration"
tenor_file_detail:
type: enum
default: gif
description:
en: >
Tenor: Image format to use
<ul>
<li>gif = High-quality GIF format</li>
<li>mediumgif = same height/width with small size reduction</li>
<li>tinygif = up to 220px wide</li>
<li>nanogif = up to 90 pixels tall</li>
<ul>
choices:
- gif
- mediumgif
- tinygif
- nanogif
tenor_content_filter:
type: "enum"
default: high
description:
en: >
Tenor: Content safety level for Tenor results. Find more info in
<a target="_blank" rel="noreferrer noopener" href="https://developers.google.com/tenor/guides/content-filtering">
Tenor API Guides
</a>.
choices:
- high
- medium
- low
- "off"
tenor_country:
type: string
default: "US"
description:
en: >
Tenor: Two-Letter Country of Origin for the request. Find your country code in
<a target="_blank" rel="noreferrer noopener" href="https://en.wikipedia.org/wiki/ISO_3166-1#Current_codes">
Wikipedia - ISO_3166-1
</a>.
tenor_locale:
type: string
default: "en_US"
description:
en: >
Tenor: Language to use on the search. Country code (optional) can be provided to differentiate between dialects.<br/><br/>
Format must be in "xx_YY" where "xx" is the <b>required</b>
<a target="_blank" rel="noreferrer noopener" href="https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes">
language code
</a>
and "_YY" is the <b>optional</b>
<a target="_blank" rel="noreferrer noopener" href="https://en.wikipedia.org/wiki/ISO_3166-1#Current_codes">
country code
</a>.
Find info on Tenor localization in
<a target="_blank" rel="noreferrer noopener" href="https://developers.google.com/tenor/guides/localization">
Tenor API Guides
</a>.