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
65fe8b08
Commit
65fe8b08
authored
Jan 10, 2018
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor for projects:s
parent
1931b7cd
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
53 additions
and
4 deletions
+53
-4
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+18
-4
app/assets/javascripts/pages/projects/snippets/create/index.js
...ssets/javascripts/pages/projects/snippets/create/index.js
+7
-0
app/assets/javascripts/pages/projects/snippets/edit/index.js
app/assets/javascripts/pages/projects/snippets/edit/index.js
+7
-0
app/assets/javascripts/pages/projects/snippets/new/index.js
app/assets/javascripts/pages/projects/snippets/new/index.js
+7
-0
app/assets/javascripts/pages/projects/snippets/show/index.js
app/assets/javascripts/pages/projects/snippets/show/index.js
+7
-0
app/assets/javascripts/pages/projects/snippets/update/index.js
...ssets/javascripts/pages/projects/snippets/update/index.js
+7
-0
No files found.
app/assets/javascripts/dispatcher.js
View file @
65fe8b08
...
...
@@ -260,15 +260,29 @@ import Activities from './activities';
.
catch
(
fail
);
break
;
case
'
projects:snippets:show
'
:
initNotes
();
new
ZenMode
();
import
(
'
./pages/projects/snippets/show
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:snippets:new
'
:
import
(
'
./pages/projects/snippets/new
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:snippets:edit
'
:
import
(
'
./pages/projects/snippets/edit
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:snippets:create
'
:
import
(
'
./pages/projects/snippets/create
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:snippets:update
'
:
new
GLForm
(
$
(
'
.snippet-form
'
),
true
);
new
ZenMode
();
import
(
'
./pages/projects/snippets/update
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
snippets:new
'
:
import
(
'
./pages/snippets/new
'
)
...
...
app/assets/javascripts/pages/projects/snippets/create/index.js
0 → 100644
View file @
65fe8b08
import
GLForm
from
'
~/gl_form
'
;
import
ZenMode
from
'
~/zen_mode
'
;
export
default
function
()
{
new
GLForm
(
$
(
'
.snippet-form
'
),
true
);
// eslint-disable-line no-new
new
ZenMode
();
// eslint-disable-line no-new
}
app/assets/javascripts/pages/projects/snippets/edit/index.js
0 → 100644
View file @
65fe8b08
import
GLForm
from
'
~/gl_form
'
;
import
ZenMode
from
'
~/zen_mode
'
;
export
default
function
()
{
new
GLForm
(
$
(
'
.snippet-form
'
),
true
);
// eslint-disable-line no-new
new
ZenMode
();
// eslint-disable-line no-new
}
app/assets/javascripts/pages/projects/snippets/new/index.js
0 → 100644
View file @
65fe8b08
import
GLForm
from
'
~/gl_form
'
;
import
ZenMode
from
'
~/zen_mode
'
;
export
default
function
()
{
new
GLForm
(
$
(
'
.snippet-form
'
),
true
);
// eslint-disable-line no-new
new
ZenMode
();
// eslint-disable-line no-new
}
app/assets/javascripts/pages/projects/snippets/show/index.js
0 → 100644
View file @
65fe8b08
import
initNotes
from
'
~/init_notes
'
;
import
ZenMode
from
'
~/zen_mode
'
;
export
default
function
()
{
initNotes
();
new
ZenMode
();
// eslint-disable-line no-new
}
app/assets/javascripts/pages/projects/snippets/update/index.js
0 → 100644
View file @
65fe8b08
import
GLForm
from
'
~/gl_form
'
;
import
ZenMode
from
'
~/zen_mode
'
;
export
default
function
()
{
new
GLForm
(
$
(
'
.snippet-form
'
),
true
);
// 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