瀏覽代碼

ref(interfaceConfig): Order alphabetically.

master
Hristo Terezov 5 年之前
父節點
當前提交
4ac9ea258c
共有 1 個文件被更改,包括 137 次插入136 次删除
  1. 137
    136
      interface_config.js

+ 137
- 136
interface_config.js 查看文件

1
 /* eslint-disable no-unused-vars, no-var, max-len */
1
 /* eslint-disable no-unused-vars, no-var, max-len */
2
+/* eslint sort-keys: ["error", "asc", {"caseSensitive": false}] */
2
 
3
 
3
 var interfaceConfig = {
4
 var interfaceConfig = {
4
-    DEFAULT_BACKGROUND: '#474747',
5
-    DEFAULT_LOGO_URL: 'images/watermark.png',
5
+    APP_NAME: 'Jitsi Meet',
6
+    AUDIO_LEVEL_PRIMARY_COLOR: 'rgba(255,255,255,0.4)',
7
+    AUDIO_LEVEL_SECONDARY_COLOR: 'rgba(255,255,255,0.2)',
6
 
8
 
7
     /**
9
     /**
8
-     * Whether or not the blurred video background for large video should be
9
-     * displayed on browsers that can support it.
10
+     * A UX mode where the last screen share participant is automatically
11
+     * pinned. Valid values are the string "remote-only" so remote participants
12
+     * get pinned but not local, otherwise any truthy value for all participants,
13
+     * and any falsy value to disable the feature.
14
+     *
15
+     * Note: this mode is experimental and subject to breakage.
10
      */
16
      */
11
-    DISABLE_VIDEO_BACKGROUND: false,
12
-
13
-    INITIAL_TOOLBAR_TIMEOUT: 20000,
14
-    TOOLBAR_TIMEOUT: 4000,
15
-    TOOLBAR_ALWAYS_VISIBLE: false,
16
-    DEFAULT_REMOTE_DISPLAY_NAME: 'Fellow Jitster',
17
-    DEFAULT_LOCAL_DISPLAY_NAME: 'me',
18
-    SHOW_JITSI_WATERMARK: true,
19
-    JITSI_WATERMARK_LINK: 'https://jitsi.org',
20
-
21
-    // if watermark is disabled by default, it can be shown only for guests
22
-    SHOW_WATERMARK_FOR_GUESTS: true,
23
-    SHOW_BRAND_WATERMARK: false,
17
+    AUTO_PIN_LATEST_SCREEN_SHARE: 'remote-only',
24
     BRAND_WATERMARK_LINK: '',
18
     BRAND_WATERMARK_LINK: '',
25
-    SHOW_POWERED_BY: false,
26
-    SHOW_DEEP_LINKING_IMAGE: false,
27
-    GENERATE_ROOMNAMES_ON_WELCOME_PAGE: true,
28
-    DISPLAY_WELCOME_PAGE_CONTENT: true,
29
-    DISPLAY_WELCOME_PAGE_TOOLBAR_ADDITIONAL_CONTENT: false,
30
-    APP_NAME: 'Jitsi Meet',
31
-    NATIVE_APP_NAME: 'Jitsi Meet',
32
-    PROVIDER_NAME: 'Jitsi',
33
-    LANG_DETECTION: true, // Allow i18n to detect the system language
34
 
19
 
20
+    CLOSE_PAGE_GUEST_HINT: false, // A html text to be shown to guests on the close page, false disables it
35
     /**
21
     /**
36
-     * Hide the invite prompt in the header when alone in the meeting.
22
+     * Whether the connection indicator icon should hide itself based on
23
+     * connection strength. If true, the connection indicator will remain
24
+     * displayed while the participant has a weak connection and will hide
25
+     * itself after the CONNECTION_INDICATOR_HIDE_TIMEOUT when the connection is
26
+     * strong.
27
+     *
28
+     * @type {boolean}
37
      */
29
      */
38
-    HIDE_INVITE_MORE_HEADER: false,
30
+    CONNECTION_INDICATOR_AUTO_HIDE_ENABLED: true,
39
 
31
 
40
     /**
32
     /**
41
-     * The name of the toolbar buttons to display in the toolbar. If present,
42
-     * the button will display. Exceptions are "livestreaming" and "recording"
43
-     * which also require being a moderator and some values in config.js to be
44
-     * enabled. Also, the "profile" button will not display for user's with a
45
-     * jwt.
33
+     * How long the connection indicator should remain displayed before hiding.
34
+     * Used in conjunction with CONNECTION_INDICATOR_AUTOHIDE_ENABLED.
35
+     *
36
+     * @type {number}
46
      */
37
      */
47
-    TOOLBAR_BUTTONS: [
48
-        'microphone', 'camera', 'closedcaptions', 'desktop', 'fullscreen',
49
-        'fodeviceselection', 'hangup', 'profile', 'chat', 'recording',
50
-        'livestreaming', 'etherpad', 'sharedvideo', 'settings', 'raisehand',
51
-        'videoquality', 'filmstrip', 'invite', 'feedback', 'stats', 'shortcuts',
52
-        'tileview', 'videobackgroundblur', 'download', 'help', 'mute-everyone', 'security'
53
-    ],
54
-
55
-    SETTINGS_SECTIONS: [ 'devices', 'language', 'moderator', 'profile', 'calendar' ],
56
-
57
-    // Determines how the video would fit the screen. 'both' would fit the whole
58
-    // screen, 'height' would fit the original video height to the height of the
59
-    // screen, 'width' would fit the original video width to the width of the
60
-    // screen respecting ratio.
61
-    VIDEO_LAYOUT_FIT: 'both',
38
+    CONNECTION_INDICATOR_AUTO_HIDE_TIMEOUT: 5000,
62
 
39
 
63
     /**
40
     /**
64
-     * Whether to only show the filmstrip (and hide the toolbar).
41
+     * If true, hides the connection indicators completely.
42
+     *
43
+     * @type {boolean}
65
      */
44
      */
66
-    filmStripOnly: false,
45
+    CONNECTION_INDICATOR_DISABLED: false,
67
 
46
 
68
-    /**
69
-     * Whether to show thumbnails in filmstrip as a column instead of as a row.
70
-     */
71
-    VERTICAL_FILMSTRIP: true,
47
+    DEFAULT_BACKGROUND: '#474747',
48
+    DEFAULT_LOCAL_DISPLAY_NAME: 'me',
49
+    DEFAULT_LOGO_URL: 'images/watermark.png',
50
+    DEFAULT_REMOTE_DISPLAY_NAME: 'Fellow Jitster',
72
 
51
 
73
-    // A html text to be shown to guests on the close page, false disables it
74
-    CLOSE_PAGE_GUEST_HINT: false,
75
-    SHOW_PROMOTIONAL_CLOSE_PAGE: false,
76
-    FILM_STRIP_MAX_HEIGHT: 120,
52
+    DISABLE_DOMINANT_SPEAKER_INDICATOR: false,
77
 
53
 
78
-    // Enables feedback star animation.
79
-    ENABLE_FEEDBACK_ANIMATION: false,
80
     DISABLE_FOCUS_INDICATOR: false,
54
     DISABLE_FOCUS_INDICATOR: false,
81
-    DISABLE_DOMINANT_SPEAKER_INDICATOR: false,
82
 
55
 
83
     /**
56
     /**
84
-     * Whether the speech to text transcription subtitles panel is disabled.
85
-     * If {@code undefined}, defaults to {@code false}.
86
-     *
87
-     * @type {boolean}
57
+     * If true, notifications regarding joining/leaving are no longer displayed.
88
      */
58
      */
89
-    DISABLE_TRANSCRIPTION_SUBTITLES: false,
59
+    DISABLE_JOIN_LEAVE_NOTIFICATIONS: false,
60
+
61
+    /**
62
+     * If true, presence status: busy, calling, connected etc. is not displayed.
63
+     */
64
+    DISABLE_PRESENCE_STATUS: false,
90
 
65
 
91
     /**
66
     /**
92
      * Whether the ringing sound in the call/ring overlay is disabled. If
67
      * Whether the ringing sound in the call/ring overlay is disabled. If
95
      * @type {boolean}
70
      * @type {boolean}
96
      */
71
      */
97
     DISABLE_RINGING: false,
72
     DISABLE_RINGING: false,
98
-    AUDIO_LEVEL_PRIMARY_COLOR: 'rgba(255,255,255,0.4)',
99
-    AUDIO_LEVEL_SECONDARY_COLOR: 'rgba(255,255,255,0.2)',
100
-    POLICY_LOGO: null,
101
-    LOCAL_THUMBNAIL_RATIO: 16 / 9, // 16:9
102
-    REMOTE_THUMBNAIL_RATIO: 1, // 1:1
103
-    // Documentation reference for the live streaming feature.
104
-    LIVE_STREAMING_HELP_LINK: 'https://jitsi.org/live',
105
 
73
 
106
     /**
74
     /**
107
-     * Whether the mobile app Jitsi Meet is to be promoted to participants
108
-     * attempting to join a conference in a mobile Web browser. If
109
-     * {@code undefined}, defaults to {@code true}.
75
+     * Whether the speech to text transcription subtitles panel is disabled.
76
+     * If {@code undefined}, defaults to {@code false}.
110
      *
77
      *
111
      * @type {boolean}
78
      * @type {boolean}
112
      */
79
      */
113
-    MOBILE_APP_PROMO: true,
80
+    DISABLE_TRANSCRIPTION_SUBTITLES: false,
114
 
81
 
115
     /**
82
     /**
116
-     * Maximum coeficient of the ratio of the large video to the visible area
117
-     * after the large video is scaled to fit the window.
118
-     *
119
-     * @type {number}
83
+     * Whether or not the blurred video background for large video should be
84
+     * displayed on browsers that can support it.
120
      */
85
      */
121
-    MAXIMUM_ZOOMING_COEFFICIENT: 1.3,
86
+    DISABLE_VIDEO_BACKGROUND: false,
122
 
87
 
123
-    /*
124
-     * If indicated some of the error dialogs may point to the support URL for
125
-     * help.
126
-     */
127
-    SUPPORT_URL: 'https://community.jitsi.org/',
88
+    DISPLAY_WELCOME_PAGE_CONTENT: true,
89
+    DISPLAY_WELCOME_PAGE_TOOLBAR_ADDITIONAL_CONTENT: false,
128
 
90
 
129
-    /**
130
-     * Whether the connection indicator icon should hide itself based on
131
-     * connection strength. If true, the connection indicator will remain
132
-     * displayed while the participant has a weak connection and will hide
133
-     * itself after the CONNECTION_INDICATOR_HIDE_TIMEOUT when the connection is
134
-     * strong.
135
-     *
136
-     * @type {boolean}
137
-     */
138
-    CONNECTION_INDICATOR_AUTO_HIDE_ENABLED: true,
91
+    ENABLE_FEEDBACK_ANIMATION: false, // Enables feedback star animation.
92
+
93
+    FILM_STRIP_MAX_HEIGHT: 120,
139
 
94
 
140
     /**
95
     /**
141
-     * How long the connection indicator should remain displayed before hiding.
142
-     * Used in conjunction with CONNECTION_INDICATOR_AUTOHIDE_ENABLED.
143
-     *
144
-     * @type {number}
96
+     * Whether to only show the filmstrip (and hide the toolbar).
145
      */
97
      */
146
-    CONNECTION_INDICATOR_AUTO_HIDE_TIMEOUT: 5000,
98
+    filmStripOnly: false,
99
+
100
+    GENERATE_ROOMNAMES_ON_WELCOME_PAGE: true,
147
 
101
 
148
     /**
102
     /**
149
-     * If true, hides the connection indicators completely.
150
-     *
151
-     * @type {boolean}
103
+     * Hide the invite prompt in the header when alone in the meeting.
152
      */
104
      */
153
-    CONNECTION_INDICATOR_DISABLED: false,
105
+    HIDE_INVITE_MORE_HEADER: false,
106
+
107
+    INITIAL_TOOLBAR_TIMEOUT: 20000,
108
+    JITSI_WATERMARK_LINK: 'https://jitsi.org',
109
+
110
+    LANG_DETECTION: true, // Allow i18n to detect the system language
111
+    LIVE_STREAMING_HELP_LINK: 'https://jitsi.org/live', // Documentation reference for the live streaming feature.
112
+    LOCAL_THUMBNAIL_RATIO: 16 / 9, // 16:9
154
 
113
 
155
     /**
114
     /**
156
-     * If true, hides the video quality label indicating the resolution status
157
-     * of the current large video.
115
+     * Maximum coeficient of the ratio of the large video to the visible area
116
+     * after the large video is scaled to fit the window.
158
      *
117
      *
159
-     * @type {boolean}
118
+     * @type {number}
160
      */
119
      */
161
-    VIDEO_QUALITY_LABEL_DISABLED: false,
120
+    MAXIMUM_ZOOMING_COEFFICIENT: 1.3,
162
 
121
 
163
     /**
122
     /**
164
-     * If true, will display recent list
123
+     * Whether the mobile app Jitsi Meet is to be promoted to participants
124
+     * attempting to join a conference in a mobile Web browser. If
125
+     * {@code undefined}, defaults to {@code true}.
165
      *
126
      *
166
      * @type {boolean}
127
      * @type {boolean}
167
      */
128
      */
168
-    RECENT_LIST_ENABLED: true,
129
+    MOBILE_APP_PROMO: true,
130
+
131
+    NATIVE_APP_NAME: 'Jitsi Meet',
169
 
132
 
170
     // Names of browsers which should show a warning stating the current browser
133
     // Names of browsers which should show a warning stating the current browser
171
     // has a suboptimal experience. Browsers which are not listed as optimal or
134
     // has a suboptimal experience. Browsers which are not listed as optimal or
173
     // chrome, chromium, edge, electron, firefox, nwjs, opera, safari
136
     // chrome, chromium, edge, electron, firefox, nwjs, opera, safari
174
     OPTIMAL_BROWSERS: [ 'chrome', 'chromium', 'firefox', 'nwjs', 'electron', 'safari' ],
137
     OPTIMAL_BROWSERS: [ 'chrome', 'chromium', 'firefox', 'nwjs', 'electron', 'safari' ],
175
 
138
 
176
-    // Browsers, in addition to those which do not fully support WebRTC, that
177
-    // are not supported and should show the unsupported browser page.
178
-    UNSUPPORTED_BROWSERS: [],
139
+    POLICY_LOGO: null,
140
+    PROVIDER_NAME: 'Jitsi',
179
 
141
 
180
     /**
142
     /**
181
-     * A UX mode where the last screen share participant is automatically
182
-     * pinned. Valid values are the string "remote-only" so remote participants
183
-     * get pinned but not local, otherwise any truthy value for all participants,
184
-     * and any falsy value to disable the feature.
143
+     * If true, will display recent list
185
      *
144
      *
186
-     * Note: this mode is experimental and subject to breakage.
187
-     */
188
-    AUTO_PIN_LATEST_SCREEN_SHARE: 'remote-only',
189
-
190
-    /**
191
-     * If true, presence status: busy, calling, connected etc. is not displayed.
145
+     * @type {boolean}
192
      */
146
      */
193
-    DISABLE_PRESENCE_STATUS: false,
147
+    RECENT_LIST_ENABLED: true,
148
+    REMOTE_THUMBNAIL_RATIO: 1, // 1:1
194
 
149
 
195
-    /**
196
-     * If true, notifications regarding joining/leaving are no longer displayed.
197
-     */
198
-    DISABLE_JOIN_LEAVE_NOTIFICATIONS: false,
150
+    SETTINGS_SECTIONS: [ 'devices', 'language', 'moderator', 'profile', 'calendar' ],
151
+    SHOW_BRAND_WATERMARK: false,
199
 
152
 
200
     /**
153
     /**
201
     * Decides whether the chrome extension banner should be rendered on the landing page and during the meeting.
154
     * Decides whether the chrome extension banner should be rendered on the landing page and during the meeting.
204
     */
157
     */
205
     SHOW_CHROME_EXTENSION_BANNER: false,
158
     SHOW_CHROME_EXTENSION_BANNER: false,
206
 
159
 
160
+    SHOW_DEEP_LINKING_IMAGE: false,
161
+    SHOW_JITSI_WATERMARK: true,
162
+    SHOW_POWERED_BY: false,
163
+    SHOW_PROMOTIONAL_CLOSE_PAGE: false,
164
+    SHOW_WATERMARK_FOR_GUESTS: true, // if watermark is disabled by default, it can be shown only for guests
165
+
166
+    /*
167
+     * If indicated some of the error dialogs may point to the support URL for
168
+     * help.
169
+     */
170
+    SUPPORT_URL: 'https://community.jitsi.org/',
171
+
172
+    TOOLBAR_ALWAYS_VISIBLE: false,
173
+
174
+    /**
175
+     * The name of the toolbar buttons to display in the toolbar. If present,
176
+     * the button will display. Exceptions are "livestreaming" and "recording"
177
+     * which also require being a moderator and some values in config.js to be
178
+     * enabled. Also, the "profile" button will not display for user's with a
179
+     * jwt.
180
+     */
181
+    TOOLBAR_BUTTONS: [
182
+        'microphone', 'camera', 'closedcaptions', 'desktop', 'fullscreen',
183
+        'fodeviceselection', 'hangup', 'profile', 'chat', 'recording',
184
+        'livestreaming', 'etherpad', 'sharedvideo', 'settings', 'raisehand',
185
+        'videoquality', 'filmstrip', 'invite', 'feedback', 'stats', 'shortcuts',
186
+        'tileview', 'videobackgroundblur', 'download', 'help', 'mute-everyone', 'security'
187
+    ],
188
+
189
+    TOOLBAR_TIMEOUT: 4000,
190
+
191
+    // Browsers, in addition to those which do not fully support WebRTC, that
192
+    // are not supported and should show the unsupported browser page.
193
+    UNSUPPORTED_BROWSERS: [],
194
+
195
+    /**
196
+     * Whether to show thumbnails in filmstrip as a column instead of as a row.
197
+     */
198
+    VERTICAL_FILMSTRIP: true,
199
+
200
+    // Determines how the video would fit the screen. 'both' would fit the whole
201
+    // screen, 'height' would fit the original video height to the height of the
202
+    // screen, 'width' would fit the original video width to the width of the
203
+    // screen respecting ratio.
204
+    VIDEO_LAYOUT_FIT: 'both',
205
+
206
+    /**
207
+     * If true, hides the video quality label indicating the resolution status
208
+     * of the current large video.
209
+     *
210
+     * @type {boolean}
211
+     */
212
+    VIDEO_QUALITY_LABEL_DISABLED: false
213
+
207
     /**
214
     /**
208
      * When enabled, the kick participant button will not be presented for users without a JWT
215
      * When enabled, the kick participant button will not be presented for users without a JWT
209
      */
216
      */
258
      INDICATOR_FONT_SIZES
265
      INDICATOR_FONT_SIZES
259
      PHONE_NUMBER_REGEX
266
      PHONE_NUMBER_REGEX
260
     */
267
     */
261
-
262
-    // Allow all above example options to include a trailing comma and
263
-    // prevent fear when commenting out the last value.
264
-    makeJsonParserHappy: 'even if last key had a trailing comma'
265
-
266
-    // no configuration value should follow this line.
267
 };
268
 };
268
 
269
 
269
 /* eslint-enable no-unused-vars, no-var, max-len */
270
 /* eslint-enable no-unused-vars, no-var, max-len */

Loading…
取消
儲存