Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
16da8705
Commit
16da8705
authored
Oct 05, 2020
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Inits the Project Home earlier
parent
568940df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
36 deletions
+34
-36
app/assets/javascripts/pages/projects/show/index.js
app/assets/javascripts/pages/projects/show/index.js
+30
-30
app/assets/javascripts/pages/projects/tree/show/index.js
app/assets/javascripts/pages/projects/tree/show/index.js
+4
-6
No files found.
app/assets/javascripts/pages/projects/show/index.js
View file @
16da8705
...
...
@@ -11,34 +11,34 @@ import Star from '../../../star';
import
notificationsDropdown
from
'
../../../notifications_dropdown
'
;
import
{
showLearnGitLabProjectPopover
}
from
'
~/onboarding_issues
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
initReadMore
();
new
Star
();
// eslint-disable-line no-new
notificationsDropdown
();
new
ShortcutsNavigation
();
// 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
'
,
});
// 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
();
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
'
,
});
// 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
app/assets/javascripts/pages/projects/tree/show/index.js
View file @
16da8705
...
...
@@ -4,9 +4,7 @@ import initBlob from '~/blob_edit/blob_bundle';
import
ShortcutsNavigation
from
'
../../../../behaviors/shortcuts/shortcuts_navigation
'
;
import
NewCommitForm
from
'
../../../../new_commit_form
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
new
ShortcutsNavigation
();
// eslint-disable-line no-new
new
NewCommitForm
(
$
(
'
.js-create-dir-form
'
));
// eslint-disable-line no-new
initBlob
();
initTree
();
});
new
NewCommitForm
(
$
(
'
.js-create-dir-form
'
));
// eslint-disable-line no-new
initBlob
();
initTree
();
new
ShortcutsNavigation
();
// eslint-disable-line no-new
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment