2020-10-24 23:57:45 +05:30
|
|
|
import initTree from 'ee_else_ce/repository';
|
2018-03-27 19:54:05 +05:30
|
|
|
import initBlob from '~/blob_edit/blob_bundle';
|
2018-12-05 23:21:45 +05:30
|
|
|
import ShortcutsNavigation from '~/behaviors/shortcuts/shortcuts_navigation';
|
2018-03-17 18:26:18 +05:30
|
|
|
import NotificationsForm from '~/notifications_form';
|
|
|
|
import UserCallout from '~/user_callout';
|
|
|
|
import BlobViewer from '~/blob/viewer/index';
|
|
|
|
import Activities from '~/activities';
|
2018-11-20 20:47:30 +05:30
|
|
|
import initReadMore from '~/read_more';
|
2019-07-31 22:56:46 +05:30
|
|
|
import leaveByUrl from '~/namespaces/leave_by_url';
|
2018-03-17 18:26:18 +05:30
|
|
|
import Star from '../../../star';
|
|
|
|
import notificationsDropdown from '../../../notifications_dropdown';
|
2020-06-23 00:09:42 +05:30
|
|
|
import { showLearnGitLabProjectPopover } from '~/onboarding_issues';
|
2021-01-29 00:20:46 +05:30
|
|
|
import initInviteMembersTrigger from '~/invite_members/init_invite_members_trigger';
|
|
|
|
import initInviteMembersModal from '~/invite_members/init_invite_members_modal';
|
2018-03-17 18:26:18 +05:30
|
|
|
|
2021-01-03 14:25:43 +05:30
|
|
|
initReadMore();
|
|
|
|
new Star(); // eslint-disable-line no-new
|
|
|
|
|
|
|
|
new NotificationsForm(); // eslint-disable-line no-new
|
|
|
|
// eslint-disable-next-line no-new
|
|
|
|
new UserCallout({
|
|
|
|
setCalloutPerProject: false,
|
|
|
|
className: 'js-autodevops-banner',
|
2018-03-17 18:26:18 +05:30
|
|
|
});
|
2021-01-03 14:25:43 +05:30
|
|
|
|
|
|
|
// Project show page loads different overview content based on user preferences
|
|
|
|
const treeSlider = document.getElementById('js-tree-list');
|
|
|
|
if (treeSlider) {
|
|
|
|
initBlob();
|
|
|
|
initTree();
|
|
|
|
}
|
|
|
|
|
|
|
|
if (document.querySelector('.blob-viewer')) {
|
|
|
|
new BlobViewer(); // eslint-disable-line no-new
|
|
|
|
}
|
|
|
|
|
|
|
|
if (document.querySelector('.project-show-activity')) {
|
|
|
|
new Activities(); // eslint-disable-line no-new
|
|
|
|
}
|
|
|
|
|
|
|
|
leaveByUrl('project');
|
|
|
|
|
|
|
|
showLearnGitLabProjectPopover();
|
|
|
|
|
|
|
|
notificationsDropdown();
|
|
|
|
new ShortcutsNavigation(); // eslint-disable-line no-new
|
2021-01-29 00:20:46 +05:30
|
|
|
|
|
|
|
initInviteMembersTrigger();
|
|
|
|
initInviteMembersModal();
|