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
5d328db7
Commit
5d328db7
authored
Feb 20, 2018
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
migrate projects:snippets:* to static bundle
parent
20d428ea
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
21 deletions
+4
-21
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+0
-17
app/assets/javascripts/pages/projects/snippets/edit/index.js
app/assets/javascripts/pages/projects/snippets/edit/index.js
+1
-1
app/assets/javascripts/pages/projects/snippets/new/index.js
app/assets/javascripts/pages/projects/snippets/new/index.js
+1
-1
app/assets/javascripts/pages/projects/snippets/show/index.js
app/assets/javascripts/pages/projects/snippets/show/index.js
+2
-2
No files found.
app/assets/javascripts/dispatcher.js
View file @
5d328db7
...
@@ -58,28 +58,11 @@ var Dispatcher;
...
@@ -58,28 +58,11 @@ var Dispatcher;
.
then
(
callDefault
)
.
then
(
callDefault
)
.
catch
(
fail
);
.
catch
(
fail
);
break
;
break
;
case
'
projects:snippets:show
'
:
import
(
'
./pages/projects/snippets/show
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:snippets:new
'
:
case
'
projects:snippets:create
'
:
import
(
'
./pages/projects/snippets/new
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:services:edit
'
:
case
'
projects:services:edit
'
:
import
(
'
./pages/projects/services/edit
'
)
import
(
'
./pages/projects/services/edit
'
)
.
then
(
callDefault
)
.
then
(
callDefault
)
.
catch
(
fail
);
.
catch
(
fail
);
break
;
break
;
case
'
projects:snippets:edit
'
:
case
'
projects:snippets:update
'
:
import
(
'
./pages/projects/snippets/edit
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:releases:edit
'
:
case
'
projects:releases:edit
'
:
import
(
'
./pages/projects/releases/edit
'
)
import
(
'
./pages/projects/releases/edit
'
)
.
then
(
callDefault
)
.
then
(
callDefault
)
...
...
app/assets/javascripts/pages/projects/snippets/edit/index.js
View file @
5d328db7
import
initForm
from
'
~/pages/projects/init_form
'
;
import
initForm
from
'
~/pages/projects/init_form
'
;
export
default
initForm
(
$
(
'
.snippet-form
'
));
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
initForm
(
$
(
'
.snippet-form
'
)
));
app/assets/javascripts/pages/projects/snippets/new/index.js
View file @
5d328db7
import
initForm
from
'
~/pages/projects/init_form
'
;
import
initForm
from
'
~/pages/projects/init_form
'
;
export
default
initForm
(
$
(
'
.snippet-form
'
));
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
initForm
(
$
(
'
.snippet-form
'
)
));
app/assets/javascripts/pages/projects/snippets/show/index.js
View file @
5d328db7
...
@@ -3,9 +3,9 @@ import ZenMode from '~/zen_mode';
...
@@ -3,9 +3,9 @@ import ZenMode from '~/zen_mode';
import
LineHighlighter
from
'
../../../../line_highlighter
'
;
import
LineHighlighter
from
'
../../../../line_highlighter
'
;
import
BlobViewer
from
'
../../../../blob/viewer
'
;
import
BlobViewer
from
'
../../../../blob/viewer
'
;
export
default
function
()
{
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
new
LineHighlighter
();
// eslint-disable-line no-new
new
LineHighlighter
();
// eslint-disable-line no-new
new
BlobViewer
();
// eslint-disable-line no-new
new
BlobViewer
();
// eslint-disable-line no-new
initNotes
();
initNotes
();
new
ZenMode
();
// eslint-disable-line no-new
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