BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
b3d85110
Commit
b3d85110
authored
Jan 15, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'snippets-dispatcher-refactor' into 'master'
Refactor dispatcher for snippets:* See merge request gitlab-org/gitlab-ce!16390
parents
55e2bafc
11e059d7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
3 deletions
+31
-3
dispatcher.js
app/assets/javascripts/dispatcher.js
+18
-3
index.js
app/assets/javascripts/pages/snippets/edit/index.js
+3
-0
form.js
app/assets/javascripts/pages/snippets/form.js
+7
-0
index.js
app/assets/javascripts/pages/snippets/new/index.js
+3
-0
No files found.
app/assets/javascripts/dispatcher.js
View file @
b3d85110
...
...
@@ -282,11 +282,24 @@ import { fetchCommitMergeRequests } from './commit_merge_requests';
new
ZenMode
();
break
;
case
'snippets:new'
:
import
(
'./pages/snippets/new'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'snippets:edit'
:
import
(
'./pages/snippets/edit'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'snippets:create'
:
import
(
'./pages/snippets/new'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'snippets:update'
:
new
GLForm
(
$
(
'.snippet-form'
),
false
);
new
ZenMode
();
import
(
'./pages/snippets/edit'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'projects:releases:edit'
:
new
ZenMode
();
...
...
@@ -548,7 +561,9 @@ import { fetchCommitMergeRequests } from './commit_merge_requests';
import
(
'./pages/admin/conversational_development_index/show'
).
then
(
m
=>
m
.
default
()).
catch
(
fail
);
break
;
case
'snippets:show'
:
import
(
'./pages/snippets/show'
).
then
(
m
=>
m
.
default
()).
catch
(
fail
);
import
(
'./pages/snippets/show'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'import:fogbugz:new_user_map'
:
import
(
'./pages/import/fogbugz/new_user_map'
).
then
(
m
=>
m
.
default
()).
catch
(
fail
);
...
...
app/assets/javascripts/pages/snippets/edit/index.js
0 → 100644
View file @
b3d85110
import
form
from
'../form'
;
export
default
form
;
app/assets/javascripts/pages/snippets/form.js
0 → 100644
View file @
b3d85110
import
GLForm
from
'~/gl_form'
;
import
ZenMode
from
'~/zen_mode'
;
export
default
()
=>
{
new
GLForm
(
$
(
'.snippet-form'
),
false
);
// eslint-disable-line no-new
new
ZenMode
();
// eslint-disable-line no-new
};
app/assets/javascripts/pages/snippets/new/index.js
0 → 100644
View file @
b3d85110
import
form
from
'../form'
;
export
default
form
;
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