2018-03-27 19:54:05 +05:30
|
|
|
import initIssuableSidebar from '~/init_issuable_sidebar';
|
|
|
|
import Issue from '~/issue';
|
2018-12-05 23:21:45 +05:30
|
|
|
import ShortcutsIssuable from '~/behaviors/shortcuts/shortcuts_issuable';
|
2018-03-27 19:54:05 +05:30
|
|
|
import ZenMode from '~/zen_mode';
|
|
|
|
import '~/notes/index';
|
2018-11-08 19:23:39 +05:30
|
|
|
import initIssueableApp from '~/issue_show';
|
2020-03-13 15:44:24 +05:30
|
|
|
import initSentryErrorStackTraceApp from '~/sentry_error_stack_trace';
|
2019-07-07 11:18:12 +05:30
|
|
|
import initRelatedMergeRequestsApp from '~/related_merge_requests';
|
2019-12-21 20:55:43 +05:30
|
|
|
import initVueIssuableSidebarApp from '~/issuable_sidebar/sidebar_bundle';
|
2018-03-27 19:54:05 +05:30
|
|
|
|
2018-12-13 13:39:08 +05:30
|
|
|
export default function() {
|
2018-11-08 19:23:39 +05:30
|
|
|
initIssueableApp();
|
2020-03-13 15:44:24 +05:30
|
|
|
initSentryErrorStackTraceApp();
|
2019-07-07 11:18:12 +05:30
|
|
|
initRelatedMergeRequestsApp();
|
2020-05-24 23:13:21 +05:30
|
|
|
|
|
|
|
// .js-design-management is currently EE-only.
|
|
|
|
// This will be moved to CE as part of https://gitlab.com/gitlab-org/gitlab/-/issues/212566#frontend
|
|
|
|
// at which point this conditional can be removed.
|
|
|
|
if (document.querySelector('.js-design-management')) {
|
|
|
|
import(/* webpackChunkName: 'design_management' */ '~/design_management')
|
|
|
|
.then(module => module.default())
|
|
|
|
.catch(() => {});
|
|
|
|
}
|
|
|
|
|
2018-03-27 19:54:05 +05:30
|
|
|
new Issue(); // eslint-disable-line no-new
|
|
|
|
new ShortcutsIssuable(); // eslint-disable-line no-new
|
|
|
|
new ZenMode(); // eslint-disable-line no-new
|
2019-12-21 20:55:43 +05:30
|
|
|
if (gon.features && gon.features.vueIssuableSidebar) {
|
|
|
|
initVueIssuableSidebarApp();
|
|
|
|
} else {
|
|
|
|
initIssuableSidebar();
|
|
|
|
}
|
2018-03-27 19:54:05 +05:30
|
|
|
}
|