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
Jérome Perrin
gitlab-ce
Commits
80eb68e0
Commit
80eb68e0
authored
Jan 11, 2018
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor dispatcher for snippets:*
parent
ec94d906
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
3 deletions
+44
-3
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+16
-3
app/assets/javascripts/pages/snippets/create/index.js
app/assets/javascripts/pages/snippets/create/index.js
+7
-0
app/assets/javascripts/pages/snippets/edit/index.js
app/assets/javascripts/pages/snippets/edit/index.js
+7
-0
app/assets/javascripts/pages/snippets/new/index.js
app/assets/javascripts/pages/snippets/new/index.js
+7
-0
app/assets/javascripts/pages/snippets/update/index.js
app/assets/javascripts/pages/snippets/update/index.js
+7
-0
No files found.
app/assets/javascripts/dispatcher.js
View file @
80eb68e0
...
...
@@ -307,11 +307,24 @@ import Activities from './activities';
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/create
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
snippets:update
'
:
new
GLForm
(
$
(
'
.snippet-form
'
),
false
);
new
ZenMode
();
import
(
'
./pages/snippets/update
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:releases:edit
'
:
new
ZenMode
();
...
...
@@ -562,7 +575,7 @@ import Activities from './activities';
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/create/index.js
0 → 100644
View file @
80eb68e0
import
GLForm
from
'
~/gl_form
'
;
import
ZenMode
from
'
~/zen_mode
'
;
export
default
function
()
{
new
GLForm
(
$
(
'
.snippet-form
'
),
false
);
// eslint-disable-line no-new
new
ZenMode
();
// eslint-disable-line no-new
}
app/assets/javascripts/pages/snippets/edit/index.js
0 → 100644
View file @
80eb68e0
import
GLForm
from
'
~/gl_form
'
;
import
ZenMode
from
'
~/zen_mode
'
;
export
default
function
()
{
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 @
80eb68e0
import
GLForm
from
'
~/gl_form
'
;
import
ZenMode
from
'
~/zen_mode
'
;
export
default
function
()
{
new
GLForm
(
$
(
'
.snippet-form
'
),
false
);
// eslint-disable-line no-new
new
ZenMode
();
// eslint-disable-line no-new
}
app/assets/javascripts/pages/snippets/update/index.js
0 → 100644
View file @
80eb68e0
import
GLForm
from
'
~/gl_form
'
;
import
ZenMode
from
'
~/zen_mode
'
;
export
default
function
()
{
new
GLForm
(
$
(
'
.snippet-form
'
),
false
);
// 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