|
@@ -10,7 +10,7 @@ import {
|
|
import memoize from 'lodash/memoize';
|
|
import memoize from 'lodash/memoize';
|
|
|
|
|
|
import LazyLoad from 'sentry/components/lazyLoad';
|
|
import LazyLoad from 'sentry/components/lazyLoad';
|
|
-import {EXPERIMENTAL_SPA, usingCustomerDomain} from 'sentry/constants';
|
|
|
|
|
|
+import {EXPERIMENTAL_SPA, USING_CUSTOMER_DOMAIN} from 'sentry/constants';
|
|
import {t} from 'sentry/locale';
|
|
import {t} from 'sentry/locale';
|
|
import HookStore from 'sentry/stores/hookStore';
|
|
import HookStore from 'sentry/stores/hookStore';
|
|
import {HookName} from 'sentry/types/hooks';
|
|
import {HookName} from 'sentry/types/hooks';
|
|
@@ -201,7 +201,7 @@ function buildRoutes() {
|
|
path="/organizations/:orgId/share/issue/:shareId/"
|
|
path="/organizations/:orgId/share/issue/:shareId/"
|
|
component={make(() => import('sentry/views/sharedGroupDetails'))}
|
|
component={make(() => import('sentry/views/sharedGroupDetails'))}
|
|
/>
|
|
/>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/unsubscribe/project/:id/"
|
|
path="/unsubscribe/project/:id/"
|
|
component={make(() => import('sentry/views/unsubscribe/project'))}
|
|
component={make(() => import('sentry/views/unsubscribe/project'))}
|
|
@@ -211,7 +211,7 @@ function buildRoutes() {
|
|
path="/unsubscribe/:orgId/project/:id/"
|
|
path="/unsubscribe/:orgId/project/:id/"
|
|
component={make(() => import('sentry/views/unsubscribe/project'))}
|
|
component={make(() => import('sentry/views/unsubscribe/project'))}
|
|
/>
|
|
/>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/unsubscribe/issue/:id/"
|
|
path="/unsubscribe/issue/:id/"
|
|
component={make(() => import('sentry/views/unsubscribe/issue'))}
|
|
component={make(() => import('sentry/views/unsubscribe/issue'))}
|
|
@@ -225,7 +225,7 @@ function buildRoutes() {
|
|
path="/organizations/new/"
|
|
path="/organizations/new/"
|
|
component={make(() => import('sentry/views/organizationCreate'))}
|
|
component={make(() => import('sentry/views/organizationCreate'))}
|
|
/>
|
|
/>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/data-export/:dataExportId"
|
|
path="/data-export/:dataExportId"
|
|
component={withDomainRequired(
|
|
component={withDomainRequired(
|
|
@@ -241,7 +241,7 @@ function buildRoutes() {
|
|
)}
|
|
)}
|
|
key="org-data-export"
|
|
key="org-data-export"
|
|
/>
|
|
/>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/disabled-member/"
|
|
path="/disabled-member/"
|
|
component={withDomainRequired(
|
|
component={withDomainRequired(
|
|
@@ -255,7 +255,7 @@ function buildRoutes() {
|
|
component={withDomainRedirect(make(() => import('sentry/views/disabledMember')))}
|
|
component={withDomainRedirect(make(() => import('sentry/views/disabledMember')))}
|
|
key="org-disabled-member"
|
|
key="org-disabled-member"
|
|
/>
|
|
/>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/restore/"
|
|
path="/restore/"
|
|
component={make(() => import('sentry/views/organizationRestore'))}
|
|
component={make(() => import('sentry/views/organizationRestore'))}
|
|
@@ -265,7 +265,7 @@ function buildRoutes() {
|
|
path="/organizations/:orgId/restore/"
|
|
path="/organizations/:orgId/restore/"
|
|
component={make(() => import('sentry/views/organizationRestore'))}
|
|
component={make(() => import('sentry/views/organizationRestore'))}
|
|
/>
|
|
/>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/join-request/"
|
|
path="/join-request/"
|
|
component={withDomainRequired(
|
|
component={withDomainRequired(
|
|
@@ -289,7 +289,7 @@ function buildRoutes() {
|
|
<IndexRedirect to="get-started/" />
|
|
<IndexRedirect to="get-started/" />
|
|
<Route path=":step/" component={make(() => import('sentry/views/relocation'))} />
|
|
<Route path=":step/" component={make(() => import('sentry/views/relocation'))} />
|
|
</Route>
|
|
</Route>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/onboarding/"
|
|
path="/onboarding/"
|
|
component={errorHandler(withDomainRequired(OrganizationLayout))}
|
|
component={errorHandler(withDomainRequired(OrganizationLayout))}
|
|
@@ -310,7 +310,7 @@ function buildRoutes() {
|
|
<IndexRedirect to="welcome/" />
|
|
<IndexRedirect to="welcome/" />
|
|
<Route path=":step/" component={make(() => import('sentry/views/onboarding'))} />
|
|
<Route path=":step/" component={make(() => import('sentry/views/onboarding'))} />
|
|
</Route>
|
|
</Route>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/stories/"
|
|
path="/stories/"
|
|
component={make(() => import('sentry/views/stories/index'))}
|
|
component={make(() => import('sentry/views/stories/index'))}
|
|
@@ -718,7 +718,7 @@ function buildRoutes() {
|
|
)}
|
|
)}
|
|
>
|
|
>
|
|
{hook('routes:organization')}
|
|
{hook('routes:organization')}
|
|
- {!usingCustomerDomain && (
|
|
|
|
|
|
+ {!USING_CUSTOMER_DOMAIN && (
|
|
<IndexRoute
|
|
<IndexRoute
|
|
name={t('General')}
|
|
name={t('General')}
|
|
component={make(
|
|
component={make(
|
|
@@ -726,7 +726,7 @@ function buildRoutes() {
|
|
)}
|
|
)}
|
|
/>
|
|
/>
|
|
)}
|
|
)}
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/settings/organization/"
|
|
path="/settings/organization/"
|
|
name={t('General')}
|
|
name={t('General')}
|
|
@@ -1050,7 +1050,7 @@ function buildRoutes() {
|
|
<IndexRoute component={make(() => import('sentry/views/settings/settingsIndex'))} />
|
|
<IndexRoute component={make(() => import('sentry/views/settings/settingsIndex'))} />
|
|
{accountSettingsRoutes}
|
|
{accountSettingsRoutes}
|
|
<Fragment>
|
|
<Fragment>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
name={t('Organization')}
|
|
name={t('Organization')}
|
|
component={withDomainRequired(NoOp)}
|
|
component={withDomainRequired(NoOp)}
|
|
@@ -1099,7 +1099,7 @@ function buildRoutes() {
|
|
);
|
|
);
|
|
const projectsRoutes = (
|
|
const projectsRoutes = (
|
|
<Fragment>
|
|
<Fragment>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/projects/"
|
|
path="/projects/"
|
|
component={make(() => import('sentry/views/projects/'))}
|
|
component={make(() => import('sentry/views/projects/'))}
|
|
@@ -1137,7 +1137,7 @@ function buildRoutes() {
|
|
const dashboardRoutes = (
|
|
const dashboardRoutes = (
|
|
<Fragment>
|
|
<Fragment>
|
|
<Fragment>
|
|
<Fragment>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/dashboards/"
|
|
path="/dashboards/"
|
|
component={withDomainRequired(make(() => import('sentry/views/dashboards')))}
|
|
component={withDomainRequired(make(() => import('sentry/views/dashboards')))}
|
|
@@ -1157,7 +1157,7 @@ function buildRoutes() {
|
|
</Route>
|
|
</Route>
|
|
</Fragment>
|
|
</Fragment>
|
|
<Fragment>
|
|
<Fragment>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/dashboards/new/"
|
|
path="/dashboards/new/"
|
|
component={withDomainRequired(
|
|
component={withDomainRequired(
|
|
@@ -1193,7 +1193,7 @@ function buildRoutes() {
|
|
</Route>
|
|
</Route>
|
|
</Fragment>
|
|
</Fragment>
|
|
<Fragment>
|
|
<Fragment>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/dashboards/new/:templateId"
|
|
path="/dashboards/new/:templateId"
|
|
component={withDomainRequired(
|
|
component={withDomainRequired(
|
|
@@ -1224,11 +1224,11 @@ function buildRoutes() {
|
|
from="/organizations/:orgId/dashboards/:dashboardId/"
|
|
from="/organizations/:orgId/dashboards/:dashboardId/"
|
|
to="/organizations/:orgId/dashboard/:dashboardId/"
|
|
to="/organizations/:orgId/dashboard/:dashboardId/"
|
|
/>
|
|
/>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Redirect from="/dashboards/:dashboardId/" to="/dashboard/:dashboardId/" />
|
|
<Redirect from="/dashboards/:dashboardId/" to="/dashboard/:dashboardId/" />
|
|
)}
|
|
)}
|
|
<Fragment>
|
|
<Fragment>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/dashboard/:dashboardId/"
|
|
path="/dashboard/:dashboardId/"
|
|
component={withDomainRequired(
|
|
component={withDomainRequired(
|
|
@@ -1359,7 +1359,7 @@ function buildRoutes() {
|
|
};
|
|
};
|
|
const alertRoutes = (
|
|
const alertRoutes = (
|
|
<Fragment>
|
|
<Fragment>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/alerts/"
|
|
path="/alerts/"
|
|
component={withDomainRequired(make(() => import('sentry/views/alerts')))}
|
|
component={withDomainRequired(make(() => import('sentry/views/alerts')))}
|
|
@@ -1414,7 +1414,7 @@ function buildRoutes() {
|
|
};
|
|
};
|
|
const cronsRoutes = (
|
|
const cronsRoutes = (
|
|
<Fragment>
|
|
<Fragment>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/crons/"
|
|
path="/crons/"
|
|
component={withDomainRequired(make(() => import('sentry/views/monitors')))}
|
|
component={withDomainRequired(make(() => import('sentry/views/monitors')))}
|
|
@@ -1450,7 +1450,7 @@ function buildRoutes() {
|
|
);
|
|
);
|
|
const replayRoutes = (
|
|
const replayRoutes = (
|
|
<Fragment>
|
|
<Fragment>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/replays/"
|
|
path="/replays/"
|
|
component={withDomainRequired(make(() => import('sentry/views/replays/index')))}
|
|
component={withDomainRequired(make(() => import('sentry/views/replays/index')))}
|
|
@@ -1510,7 +1510,7 @@ function buildRoutes() {
|
|
};
|
|
};
|
|
const releasesRoutes = (
|
|
const releasesRoutes = (
|
|
<Fragment>
|
|
<Fragment>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/releases/"
|
|
path="/releases/"
|
|
component={withDomainRequired(NoOp)}
|
|
component={withDomainRequired(NoOp)}
|
|
@@ -1530,7 +1530,7 @@ function buildRoutes() {
|
|
);
|
|
);
|
|
const releaseThresholdRoutes = (
|
|
const releaseThresholdRoutes = (
|
|
<Fragment>
|
|
<Fragment>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/release-thresholds/"
|
|
path="/release-thresholds/"
|
|
component={withDomainRequired(NoOp)}
|
|
component={withDomainRequired(NoOp)}
|
|
@@ -1555,7 +1555,7 @@ function buildRoutes() {
|
|
|
|
|
|
const activityRoutes = (
|
|
const activityRoutes = (
|
|
<Fragment>
|
|
<Fragment>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/activity/"
|
|
path="/activity/"
|
|
component={withDomainRequired(
|
|
component={withDomainRequired(
|
|
@@ -1606,7 +1606,7 @@ function buildRoutes() {
|
|
};
|
|
};
|
|
const statsRoutes = (
|
|
const statsRoutes = (
|
|
<Fragment>
|
|
<Fragment>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/stats/"
|
|
path="/stats/"
|
|
component={withDomainRequired(NoOp)}
|
|
component={withDomainRequired(NoOp)}
|
|
@@ -1652,7 +1652,7 @@ function buildRoutes() {
|
|
);
|
|
);
|
|
const discoverRoutes = (
|
|
const discoverRoutes = (
|
|
<Fragment>
|
|
<Fragment>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/discover/"
|
|
path="/discover/"
|
|
component={withDomainRequired(make(() => import('sentry/views/discover')))}
|
|
component={withDomainRequired(make(() => import('sentry/views/discover')))}
|
|
@@ -1849,7 +1849,7 @@ function buildRoutes() {
|
|
);
|
|
);
|
|
const performanceRoutes = (
|
|
const performanceRoutes = (
|
|
<Fragment>
|
|
<Fragment>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/performance/"
|
|
path="/performance/"
|
|
component={withDomainRequired(make(() => import('sentry/views/performance')))}
|
|
component={withDomainRequired(make(() => import('sentry/views/performance')))}
|
|
@@ -1916,7 +1916,7 @@ function buildRoutes() {
|
|
);
|
|
);
|
|
const starfishRoutes = (
|
|
const starfishRoutes = (
|
|
<Fragment>
|
|
<Fragment>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/starfish/"
|
|
path="/starfish/"
|
|
component={withDomainRequired(make(() => import('sentry/views/starfish')))}
|
|
component={withDomainRequired(make(() => import('sentry/views/starfish')))}
|
|
@@ -1937,7 +1937,7 @@ function buildRoutes() {
|
|
|
|
|
|
const userFeedbackRoutes = (
|
|
const userFeedbackRoutes = (
|
|
<Fragment>
|
|
<Fragment>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/user-feedback/"
|
|
path="/user-feedback/"
|
|
component={withDomainRequired(make(() => import('sentry/views/userFeedback')))}
|
|
component={withDomainRequired(make(() => import('sentry/views/userFeedback')))}
|
|
@@ -1961,7 +1961,7 @@ function buildRoutes() {
|
|
);
|
|
);
|
|
const feedbackv2Routes = (
|
|
const feedbackv2Routes = (
|
|
<Fragment>
|
|
<Fragment>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/feedback/"
|
|
path="/feedback/"
|
|
component={withDomainRequired(
|
|
component={withDomainRequired(
|
|
@@ -1984,7 +1984,7 @@ function buildRoutes() {
|
|
|
|
|
|
const issueListRoutes = (
|
|
const issueListRoutes = (
|
|
<Fragment>
|
|
<Fragment>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/issues/(searches/:searchId/)"
|
|
path="/issues/(searches/:searchId/)"
|
|
component={withDomainRequired(errorHandler(IssueListContainer))}
|
|
component={withDomainRequired(errorHandler(IssueListContainer))}
|
|
@@ -2079,7 +2079,7 @@ function buildRoutes() {
|
|
>
|
|
>
|
|
{issueDetailsChildRoutes({forCustomerDomain: false})}
|
|
{issueDetailsChildRoutes({forCustomerDomain: false})}
|
|
</Route>
|
|
</Route>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/issues/:groupId/"
|
|
path="/issues/:groupId/"
|
|
component={withDomainRequired(
|
|
component={withDomainRequired(
|
|
@@ -2212,7 +2212,7 @@ function buildRoutes() {
|
|
|
|
|
|
const gettingStartedRoutes = (
|
|
const gettingStartedRoutes = (
|
|
<Fragment>
|
|
<Fragment>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Fragment>
|
|
<Fragment>
|
|
<Redirect
|
|
<Redirect
|
|
from="/getting-started/:projectId/"
|
|
from="/getting-started/:projectId/"
|
|
@@ -2259,7 +2259,7 @@ function buildRoutes() {
|
|
);
|
|
);
|
|
const profilingRoutes = (
|
|
const profilingRoutes = (
|
|
<Fragment>
|
|
<Fragment>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/profiling/"
|
|
path="/profiling/"
|
|
component={withDomainRequired(make(() => import('sentry/views/profiling')))}
|
|
component={withDomainRequired(make(() => import('sentry/views/profiling')))}
|
|
@@ -2286,7 +2286,7 @@ function buildRoutes() {
|
|
|
|
|
|
const ddmRoutes = (
|
|
const ddmRoutes = (
|
|
<Fragment>
|
|
<Fragment>
|
|
- {usingCustomerDomain && (
|
|
|
|
|
|
+ {USING_CUSTOMER_DOMAIN && (
|
|
<Route
|
|
<Route
|
|
path="/ddm/"
|
|
path="/ddm/"
|
|
component={withDomainRequired(make(() => import('sentry/views/ddm')))}
|
|
component={withDomainRequired(make(() => import('sentry/views/ddm')))}
|