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
Léo-Paul Géneau
gitlab-ce
Commits
20d428ea
Commit
20d428ea
authored
Feb 20, 2018
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
migrate snippets:show to static bundle
parent
afbb9308
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
11 deletions
+5
-11
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+0
-5
app/assets/javascripts/pages/snippets/show/index.js
app/assets/javascripts/pages/snippets/show/index.js
+5
-6
No files found.
app/assets/javascripts/dispatcher.js
View file @
20d428ea
...
@@ -294,11 +294,6 @@ var Dispatcher;
...
@@ -294,11 +294,6 @@ var Dispatcher;
.
then
(
callDefault
)
.
then
(
callDefault
)
.
catch
(
fail
);
.
catch
(
fail
);
break
;
break
;
case
'
snippets:show
'
:
import
(
'
./pages/snippets/show
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
import:fogbugz:new_user_map
'
:
case
'
import:fogbugz:new_user_map
'
:
import
(
'
./pages/import/fogbugz/new_user_map
'
)
import
(
'
./pages/import/fogbugz/new_user_map
'
)
.
then
(
callDefault
)
.
then
(
callDefault
)
...
...
app/assets/javascripts/pages/snippets/show/index.js
View file @
20d428ea
/* eslint-disable no-new */
import
LineHighlighter
from
'
../../../line_highlighter
'
;
import
LineHighlighter
from
'
../../../line_highlighter
'
;
import
BlobViewer
from
'
../../../blob/viewer
'
;
import
BlobViewer
from
'
../../../blob/viewer
'
;
import
ZenMode
from
'
../../../zen_mode
'
;
import
ZenMode
from
'
../../../zen_mode
'
;
import
initNotes
from
'
../../../init_notes
'
;
import
initNotes
from
'
../../../init_notes
'
;
export
default
()
=>
{
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
new
LineHighlighter
();
new
LineHighlighter
();
// eslint-disable-line no-new
new
BlobViewer
();
new
BlobViewer
();
// eslint-disable-line no-new
initNotes
();
initNotes
();
new
ZenMode
();
new
ZenMode
();
// 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