Commit a85dd572 authored by Denys Mishunov's avatar Denys Mishunov

Merge branch 'tz-fast-project-home-init' into 'master'

Inits the Project Home earlier

See merge request gitlab-org/gitlab!44278
parents 1972de01 16da8705
...@@ -11,34 +11,34 @@ import Star from '../../../star'; ...@@ -11,34 +11,34 @@ import Star from '../../../star';
import notificationsDropdown from '../../../notifications_dropdown'; import notificationsDropdown from '../../../notifications_dropdown';
import { showLearnGitLabProjectPopover } from '~/onboarding_issues'; import { showLearnGitLabProjectPopover } from '~/onboarding_issues';
document.addEventListener('DOMContentLoaded', () => { initReadMore();
initReadMore(); new Star(); // eslint-disable-line no-new
new Star(); // eslint-disable-line no-new
notificationsDropdown(); new NotificationsForm(); // eslint-disable-line no-new
new ShortcutsNavigation(); // eslint-disable-line no-new // eslint-disable-next-line no-new
new NotificationsForm(); // eslint-disable-line no-new new UserCallout({
// eslint-disable-next-line no-new setCalloutPerProject: false,
new UserCallout({ className: 'js-autodevops-banner',
setCalloutPerProject: false,
className: 'js-autodevops-banner',
});
// 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();
}); });
// 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
...@@ -4,9 +4,7 @@ import initBlob from '~/blob_edit/blob_bundle'; ...@@ -4,9 +4,7 @@ import initBlob from '~/blob_edit/blob_bundle';
import ShortcutsNavigation from '../../../../behaviors/shortcuts/shortcuts_navigation'; import ShortcutsNavigation from '../../../../behaviors/shortcuts/shortcuts_navigation';
import NewCommitForm from '../../../../new_commit_form'; import NewCommitForm from '../../../../new_commit_form';
document.addEventListener('DOMContentLoaded', () => { new NewCommitForm($('.js-create-dir-form')); // eslint-disable-line no-new
new ShortcutsNavigation(); // eslint-disable-line no-new initBlob();
new NewCommitForm($('.js-create-dir-form')); // eslint-disable-line no-new initTree();
initBlob(); new ShortcutsNavigation(); // eslint-disable-line no-new
initTree();
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment