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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
89fd1626
Commit
89fd1626
authored
6 years ago
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added import for snippets:show in dispatcher
#41341
parent
7b2f9af4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+1
-4
app/assets/javascripts/pages/snippets/show/index.js
app/assets/javascripts/pages/snippets/show/index.js
+12
-0
No files found.
app/assets/javascripts/dispatcher.js
View file @
89fd1626
...
...
@@ -548,10 +548,7 @@ import Activities from './activities';
new
UserCallout
();
break
;
case
'
snippets:show
'
:
new
LineHighlighter
();
new
BlobViewer
();
initNotes
();
new
ZenMode
();
import
(
'
./pages/snippets/show
'
).
then
(
m
=>
m
.
default
()).
catch
(
fail
);
break
;
case
'
import:fogbugz:new_user_map
'
:
new
UsersSelect
();
...
...
This diff is collapsed.
Click to expand it.
app/assets/javascripts/pages/snippets/show/index.js
0 → 100644
View file @
89fd1626
/* eslint-disable no-new */
import
LineHighlighter
from
'
../../../line_highlighter
'
;
import
BlobViewer
from
'
../../../blob/viewer
'
;
import
ZenMode
from
'
../../../zen_mode
'
;
import
initNotes
from
'
../../../init_notes
'
;
export
default
()
=>
{
new
LineHighlighter
();
new
BlobViewer
();
initNotes
();
new
ZenMode
();
};
This diff is collapsed.
Click to expand it.
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