2017-04-12 08:27:57 -04:00
|
|
|
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
|
2016-06-22 10:30:01 -04:00
|
|
|
// 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';
|
2016-06-29 14:16:17 -04:00
|
|
|
import PolicySettings from 'components/admin_console/policy_settings.jsx';
|
2016-06-22 10:30:01 -04:00
|
|
|
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';
|
2016-07-29 14:58:37 -04:00
|
|
|
import OAuthSettings from 'components/admin_console/oauth_settings.jsx';
|
2016-06-22 10:30:01 -04:00
|
|
|
import LdapSettings from 'components/admin_console/ldap_settings.jsx';
|
2016-07-05 15:49:00 -04:00
|
|
|
import SamlSettings from 'components/admin_console/saml_settings.jsx';
|
2016-08-04 09:25:37 -08:00
|
|
|
import ClusterSettings from 'components/admin_console/cluster_settings.jsx';
|
2016-11-22 11:05:54 -08:00
|
|
|
import MetricsSettings from 'components/admin_console/metrics_settings.jsx';
|
2016-06-22 10:30:01 -04:00
|
|
|
import SignupSettings from 'components/admin_console/signup_settings.jsx';
|
2016-07-06 18:54:54 -04:00
|
|
|
import PasswordSettings from 'components/admin_console/password_settings.jsx';
|
2016-12-12 08:16:10 -05:00
|
|
|
import MfaSettings from 'components/admin_console/mfa_settings.jsx';
|
2016-06-22 10:30:01 -04:00
|
|
|
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';
|
2016-08-03 12:19:27 -05:00
|
|
|
import CustomIntegrationsSettings from 'components/admin_console/custom_integrations_settings.jsx';
|
2016-06-22 10:30:01 -04:00
|
|
|
import ExternalServiceSettings from 'components/admin_console/external_service_settings.jsx';
|
2016-09-15 09:35:44 -03:00
|
|
|
import WebrtcSettings from 'components/admin_console/webrtc_settings.jsx';
|
2016-06-22 10:30:01 -04:00
|
|
|
import DatabaseSettings from 'components/admin_console/database_settings.jsx';
|
|
|
|
|
import StorageSettings from 'components/admin_console/storage_settings.jsx';
|
|
|
|
|
import ImageSettings from 'components/admin_console/image_settings.jsx';
|
|
|
|
|
import CustomBrandSettings from 'components/admin_console/custom_brand_settings.jsx';
|
|
|
|
|
import CustomEmojiSettings from 'components/admin_console/custom_emoji_settings.jsx';
|
2017-03-06 21:13:12 -05:00
|
|
|
import LinkPreviewsSettings from 'components/admin_console/link_previews_settings.jsx';
|
2016-06-22 10:30:01 -04:00
|
|
|
import LegalAndSupportSettings from 'components/admin_console/legal_and_support_settings.jsx';
|
2016-07-22 10:53:57 -04:00
|
|
|
import NativeAppLinkSettings from 'components/admin_console/native_app_link_settings.jsx';
|
2016-06-22 10:30:01 -04:00
|
|
|
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';
|
2017-04-26 15:49:15 -04:00
|
|
|
import SystemUsers from 'components/admin_console/system_users';
|
|
|
|
|
import TeamAnalytics from 'components/analytics/team_analytics';
|
2016-06-22 10:30:01 -04:00
|
|
|
import LicenseSettings from 'components/admin_console/license_settings.jsx';
|
2017-06-14 08:56:56 -04:00
|
|
|
import Audits from 'components/admin_console/audits';
|
|
|
|
|
import Logs from 'components/admin_console/server_logs';
|
2016-06-22 10:30:01 -04:00
|
|
|
|
|
|
|
|
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}
|
|
|
|
|
/>
|
2016-06-29 14:16:17 -04:00
|
|
|
<Route
|
|
|
|
|
path='policy'
|
|
|
|
|
component={PolicySettings}
|
|
|
|
|
/>
|
2016-06-22 10:30:01 -04:00
|
|
|
<Route
|
|
|
|
|
path='compliance'
|
|
|
|
|
component={ComplianceSettings}
|
|
|
|
|
/>
|
|
|
|
|
<Route
|
|
|
|
|
path='logging'
|
|
|
|
|
component={LogSettings}
|
|
|
|
|
/>
|
|
|
|
|
</Route>
|
|
|
|
|
<Route path='authentication'>
|
2017-04-03 21:16:57 +09:00
|
|
|
<IndexRedirect to='authentication_email'/>
|
2016-06-22 10:30:01 -04:00
|
|
|
<Route
|
2017-04-03 21:16:57 +09:00
|
|
|
path='authentication_email'
|
2016-06-22 10:30:01 -04:00
|
|
|
component={EmailAuthenticationSettings}
|
|
|
|
|
/>
|
|
|
|
|
<Route
|
|
|
|
|
path='gitlab'
|
|
|
|
|
component={GitLabSettings}
|
|
|
|
|
/>
|
2016-07-29 14:58:37 -04:00
|
|
|
<Route
|
|
|
|
|
path='oauth'
|
|
|
|
|
component={OAuthSettings}
|
|
|
|
|
/>
|
2016-06-22 10:30:01 -04:00
|
|
|
<Route
|
|
|
|
|
path='ldap'
|
|
|
|
|
component={LdapSettings}
|
|
|
|
|
/>
|
2016-07-05 15:49:00 -04:00
|
|
|
<Route
|
|
|
|
|
path='saml'
|
|
|
|
|
component={SamlSettings}
|
|
|
|
|
/>
|
2016-12-12 08:16:10 -05:00
|
|
|
<Route
|
|
|
|
|
path='mfa'
|
|
|
|
|
component={MfaSettings}
|
|
|
|
|
/>
|
2016-06-22 10:30:01 -04:00
|
|
|
</Route>
|
|
|
|
|
<Route path='security'>
|
|
|
|
|
<IndexRedirect to='sign_up'/>
|
|
|
|
|
<Route
|
|
|
|
|
path='sign_up'
|
|
|
|
|
component={SignupSettings}
|
|
|
|
|
/>
|
|
|
|
|
<Route
|
2016-07-06 18:54:54 -04:00
|
|
|
path='password'
|
|
|
|
|
component={PasswordSettings}
|
2016-06-22 10:30:01 -04:00
|
|
|
/>
|
|
|
|
|
<Route
|
|
|
|
|
path='public_links'
|
|
|
|
|
component={PublicLinkSettings}
|
|
|
|
|
/>
|
|
|
|
|
<Route
|
|
|
|
|
path='sessions'
|
|
|
|
|
component={SessionSettings}
|
|
|
|
|
/>
|
|
|
|
|
<Route
|
|
|
|
|
path='connections'
|
|
|
|
|
component={ConnectionSettings}
|
|
|
|
|
/>
|
|
|
|
|
</Route>
|
|
|
|
|
<Route path='notifications'>
|
2017-04-03 21:16:57 +09:00
|
|
|
<IndexRedirect to='notifications_email'/>
|
2016-06-22 10:30:01 -04:00
|
|
|
<Route
|
2017-04-03 21:16:57 +09:00
|
|
|
path='notifications_email'
|
2016-06-22 10:30:01 -04:00
|
|
|
component={EmailSettings}
|
|
|
|
|
/>
|
|
|
|
|
<Route
|
|
|
|
|
path='push'
|
|
|
|
|
component={PushSettings}
|
|
|
|
|
/>
|
|
|
|
|
</Route>
|
|
|
|
|
<Route path='integrations'>
|
2016-08-03 12:19:27 -05:00
|
|
|
<IndexRedirect to='custom'/>
|
2016-06-22 10:30:01 -04:00
|
|
|
<Route
|
2016-08-03 12:19:27 -05:00
|
|
|
path='custom'
|
|
|
|
|
component={CustomIntegrationsSettings}
|
2016-06-22 10:30:01 -04:00
|
|
|
/>
|
|
|
|
|
<Route
|
|
|
|
|
path='external'
|
|
|
|
|
component={ExternalServiceSettings}
|
|
|
|
|
/>
|
2016-09-15 09:35:44 -03:00
|
|
|
<Route
|
|
|
|
|
path='webrtc'
|
|
|
|
|
component={WebrtcSettings}
|
|
|
|
|
/>
|
2016-06-22 10:30:01 -04:00
|
|
|
</Route>
|
|
|
|
|
<Route path='files'>
|
|
|
|
|
<IndexRedirect to='storage'/>
|
|
|
|
|
<Route
|
|
|
|
|
path='storage'
|
|
|
|
|
component={StorageSettings}
|
|
|
|
|
/>
|
|
|
|
|
<Route
|
|
|
|
|
path='images'
|
|
|
|
|
component={ImageSettings}
|
|
|
|
|
/>
|
|
|
|
|
</Route>
|
|
|
|
|
<Route path='customization'>
|
|
|
|
|
<IndexRedirect to='custom_brand'/>
|
|
|
|
|
<Route
|
|
|
|
|
path='custom_brand'
|
|
|
|
|
component={CustomBrandSettings}
|
|
|
|
|
/>
|
|
|
|
|
<Route
|
|
|
|
|
path='custom_emoji'
|
|
|
|
|
component={CustomEmojiSettings}
|
|
|
|
|
/>
|
2017-03-06 21:13:12 -05:00
|
|
|
<Route
|
|
|
|
|
path='link_previews'
|
|
|
|
|
component={LinkPreviewsSettings}
|
|
|
|
|
/>
|
2016-06-22 10:30:01 -04:00
|
|
|
<Route
|
|
|
|
|
path='legal_and_support'
|
|
|
|
|
component={LegalAndSupportSettings}
|
|
|
|
|
/>
|
2016-07-22 10:53:57 -04:00
|
|
|
<Route
|
|
|
|
|
path='native_app_links'
|
|
|
|
|
component={NativeAppLinkSettings}
|
|
|
|
|
/>
|
2016-06-22 10:30:01 -04:00
|
|
|
</Route>
|
|
|
|
|
<Route path='advanced'>
|
|
|
|
|
<IndexRedirect to='rate'/>
|
|
|
|
|
<Route
|
|
|
|
|
path='rate'
|
|
|
|
|
component={RateSettings}
|
|
|
|
|
/>
|
|
|
|
|
<Route
|
|
|
|
|
path='database'
|
|
|
|
|
component={DatabaseSettings}
|
|
|
|
|
/>
|
|
|
|
|
<Route
|
|
|
|
|
path='developer'
|
|
|
|
|
component={DeveloperSettings}
|
|
|
|
|
/>
|
2016-08-04 09:25:37 -08:00
|
|
|
<Route
|
|
|
|
|
path='cluster'
|
|
|
|
|
component={ClusterSettings}
|
|
|
|
|
/>
|
2016-11-22 11:05:54 -08:00
|
|
|
<Route
|
|
|
|
|
path='metrics'
|
|
|
|
|
component={MetricsSettings}
|
|
|
|
|
/>
|
2016-06-22 10:30:01 -04:00
|
|
|
</Route>
|
2017-03-30 12:46:47 -04:00
|
|
|
<Route
|
|
|
|
|
path='users'
|
|
|
|
|
component={SystemUsers}
|
|
|
|
|
/>
|
|
|
|
|
<Route
|
|
|
|
|
path='team_analytics'
|
|
|
|
|
component={TeamAnalytics}
|
|
|
|
|
/>
|
2016-06-22 10:30:01 -04:00
|
|
|
<Route path='team'>
|
|
|
|
|
<Redirect
|
|
|
|
|
from=':team'
|
2017-03-30 12:46:47 -04:00
|
|
|
to='../users'
|
2016-06-22 10:30:01 -04:00
|
|
|
/>
|
2017-03-30 12:46:47 -04:00
|
|
|
<Redirect
|
|
|
|
|
from=':team/users'
|
|
|
|
|
to='../users'
|
2016-06-22 10:30:01 -04:00
|
|
|
/>
|
2017-03-30 12:46:47 -04:00
|
|
|
<Redirect
|
|
|
|
|
from=':team/analytics'
|
|
|
|
|
to='../team_analytics'
|
2016-06-22 10:30:01 -04:00
|
|
|
/>
|
|
|
|
|
<Redirect
|
|
|
|
|
from='*'
|
|
|
|
|
to='/error'
|
|
|
|
|
query={RouteUtils.notFoundParams}
|
|
|
|
|
/>
|
|
|
|
|
</Route>
|
|
|
|
|
<Route
|
|
|
|
|
path='license'
|
|
|
|
|
component={LicenseSettings}
|
|
|
|
|
/>
|
|
|
|
|
<Route
|
|
|
|
|
path='audits'
|
|
|
|
|
component={Audits}
|
|
|
|
|
/>
|
|
|
|
|
<Route
|
|
|
|
|
path='logs'
|
|
|
|
|
component={Logs}
|
|
|
|
|
/>
|
|
|
|
|
</Route>
|
|
|
|
|
);
|