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
Jan 08, 2018
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
Show 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';
...
@@ -548,10 +548,7 @@ import Activities from './activities';
new
UserCallout
();
new
UserCallout
();
break
;
break
;
case
'
snippets:show
'
:
case
'
snippets:show
'
:
new
LineHighlighter
();
import
(
'
./pages/snippets/show
'
).
then
(
m
=>
m
.
default
()).
catch
(
fail
);
new
BlobViewer
();
initNotes
();
new
ZenMode
();
break
;
break
;
case
'
import:fogbugz:new_user_map
'
:
case
'
import:fogbugz:new_user_map
'
:
new
UsersSelect
();
new
UsersSelect
();
...
...
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
();
};
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