summaryrefslogtreecommitdiffstats
path: root/webapp/routes/route_admin_console.jsx
blob: 15081a1d9bb1dfdc5698b0093a04d64b568e23e7 (plain)
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
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.

import * as RouteUtils from 'routes/route_utils.jsx';
import {Route, Redirect, IndexRedirect} from 'react-router/es6';
import React from 'react';

import SystemAnalytics from 'components/analytics/system_analytics.jsx';
import ConfigurationSettings from 'components/admin_console/configuration_settings.jsx';
import LocalizationSettings from 'components/admin_console/localization_settings.jsx';
import UsersAndTeamsSettings from 'components/admin_console/users_and_teams_settings.jsx';
import PrivacySettings from 'components/admin_console/privacy_settings.jsx';
import PolicySettings from 'components/admin_console/policy_settings.jsx';
import LogSettings from 'components/admin_console/log_settings.jsx';
import EmailAuthenticationSettings from 'components/admin_console/email_authentication_settings.jsx';
import GitLabSettings from 'components/admin_console/gitlab_settings.jsx';
import OAuthSettings from 'components/admin_console/oauth_settings.jsx';
import LdapSettings from 'components/admin_console/ldap_settings.jsx';
import SamlSettings from 'components/admin_console/saml_settings.jsx';
import ClusterSettings from 'components/admin_console/cluster_settings.jsx';
import MetricsSettings from 'components/admin_console/metrics_settings.jsx';
import SignupSettings from 'components/admin_console/signup_settings.jsx';
import PasswordSettings from 'components/admin_console/password_settings.jsx';
import MfaSettings from 'components/admin_console/mfa_settings.jsx';
import PublicLinkSettings from 'components/admin_console/public_link_settings.jsx';
import SessionSettings from 'components/admin_console/session_settings.jsx';
import ConnectionSettings from 'components/admin_console/connection_settings.jsx';
import EmailSettings from 'components/admin_console/email_settings.jsx';
import PushSettings from 'components/admin_console/push_settings.jsx';
import CustomIntegrationsSettings from 'components/admin_console/custom_integrations_settings.jsx';
import ExternalServiceSettings from 'components/admin_console/external_service_settings.jsx';
import WebrtcSettings from 'components/admin_console/webrtc_settings.jsx';
import DatabaseSettings from 'components/admin_console/database_settings.jsx';
import StorageSettings from 'components/admin_console/storage_settings.jsx';
import CustomBrandSettings from 'components/admin_console/custom_brand_settings.jsx';
import CustomEmojiSettings from 'components/admin_console/custom_emoji_settings.jsx';
import LinkPreviewsSettings from 'components/admin_console/link_previews_settings.jsx';
import LegalAndSupportSettings from 'components/admin_console/legal_and_support_settings.jsx';
import NativeAppLinkSettings from 'components/admin_console/native_app_link_settings.jsx';
import ComplianceSettings from 'components/admin_console/compliance_settings.jsx';
import RateSettings from 'components/admin_console/rate_settings.jsx';
import DeveloperSettings from 'components/admin_console/developer_settings.jsx';
import SystemUsers from 'components/admin_console/system_users';
import TeamAnalytics from 'components/analytics/team_analytics';
import LicenseSettings from 'components/admin_console/license_settings.jsx';
import Audits from 'components/admin_console/audits';
import Logs from 'components/admin_console/server_logs';
import ElasticsearchSettings from 'components/admin_console/elasticsearch_settings.jsx';
import JIRASettings from 'plugins/jira/components/settings.jsx';

export default (
    <Route>
        <Route
            path='system_analytics'
            component={SystemAnalytics}
        />
        <Route path='general'>
            <IndexRedirect to='configuration'/>
            <Route
                path='configuration'
                component={ConfigurationSettings}
            />
            <Route
                path='localization'
                component={LocalizationSettings}
            />
            <Route
                path='users_and_teams'
                component={UsersAndTeamsSettings}
            />
            <Route
                path='privacy'
                component={PrivacySettings}
            />
            <Route
                path='policy'
                component={PolicySettings}
            />
            <Route
                path='compliance'
                component={ComplianceSettings}
            />
            <Route
                path='logging'
                component={LogSettings}
            />
        </Route>
        <Route path='authentication'>
            <IndexRedirect to='authentication_email'/>
            <Route
                path='authentication_email'
                component={EmailAuthenticationSettings}
            />
            <Route
                path='gitlab'
                component={GitLabSettings}
            />
            <Route
                path='oauth'
                component={OAuthSettings}
            />
            <Route
                path='ldap'
                component={LdapSettings}
            />
            <Route
                path='saml'
                component={SamlSettings}
            />
            <Route
                path='mfa'
                component={MfaSettings}
            />
        </Route>
        <Route path='security'>
            <IndexRedirect to='sign_up'/>
            <Route
                path='sign_up'
                component={SignupSettings}
            />
            <Route
                path='password'
                component={PasswordSettings}
            />
            <Route
                path='public_links'
                component={PublicLinkSettings}
            />
            <Route
                path='sessions'
                component={SessionSettings}
            />
            <Route
                path='connections'
                component={ConnectionSettings}
            />
        </Route>
        <Route path='notifications'>
            <IndexRedirect to='notifications_email'/>
            <Route
                path='notifications_email'
                component={EmailSettings}
            />
            <Route
                path='push'
                component={PushSettings}
            />
        </Route>
        <Route path='integrations'>
            <IndexRedirect to='custom'/>
            <Route
                path='custom'
                component={CustomIntegrationsSettings}
            />
            <Route
                path='external'
                component={ExternalServiceSettings}
            />
            <Route
                path='webrtc'
                component={WebrtcSettings}
            />
            <Route
                path='jira'
                component={JIRASettings}
            />
        </Route>
        <Route path='files'>
            <IndexRedirect to='storage'/>
            <Route
                path='storage'
                component={StorageSettings}
            />
        </Route>
        <Route path='customization'>
            <IndexRedirect to='custom_brand'/>
            <Route
                path='custom_brand'
                component={CustomBrandSettings}
            />
            <Route
                path='emoji'
                component={CustomEmojiSettings}
            />
            <Route
                path='link_previews'
                component={LinkPreviewsSettings}
            />
            <Route
                path='legal_and_support'
                component={LegalAndSupportSettings}
            />
            <Route
                path='native_app_links'
                component={NativeAppLinkSettings}
            />
        </Route>
        <Route path='advanced'>
            <IndexRedirect to='rate'/>
            <Route
                path='rate'
                component={RateSettings}
            />
            <Route
                path='database'
                component={DatabaseSettings}
            />
            <Route
                path='elasticsearch'
                component={ElasticsearchSettings}
            />
            <Route
                path='developer'
                component={DeveloperSettings}
            />
            <Route
                path='cluster'
                component={ClusterSettings}
            />
            <Route
                path='metrics'
                component={MetricsSettings}
            />
        </Route>
        <Route
            path='users'
            component={SystemUsers}
        />
        <Route
            path='team_analytics'
            component={TeamAnalytics}
        />
        <Route path='team'>
            <Redirect
                from=':team'
                to='../users'
            />
            <Redirect
                from=':team/users'
                to='../users'
            />
            <Redirect
                from=':team/analytics'
                to='../team_analytics'
            />
            <Redirect
                from='*'
                to='/error'
                query={RouteUtils.notFoundParams}
            />
        </Route>
        <Route
            path='license'
            component={LicenseSettings}
        />
        <Route
            path='audits'
            component={Audits}
        />
        <Route
            path='logs'
            component={Logs}
        />
    </Route>
);