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
c0dfd967
Commit
c0dfd967
authored
Jan 18, 2018
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code improvements
parent
0a25cdd7
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
14 additions
and
25 deletions
+14
-25
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+1
-0
app/assets/javascripts/pages/projects/init_form.js
app/assets/javascripts/pages/projects/init_form.js
+2
-2
app/assets/javascripts/pages/projects/releases/edit/index.js
app/assets/javascripts/pages/projects/releases/edit/index.js
+3
-0
app/assets/javascripts/pages/projects/settings/repository/show/index.js
...ascripts/pages/projects/settings/repository/show/index.js
+1
-4
app/assets/javascripts/pages/projects/show/index.js
app/assets/javascripts/pages/projects/show/index.js
+1
-1
app/assets/javascripts/pages/projects/snippets/create/index.js
...ssets/javascripts/pages/projects/snippets/create/index.js
+2
-6
app/assets/javascripts/pages/projects/snippets/edit/index.js
app/assets/javascripts/pages/projects/snippets/edit/index.js
+2
-6
app/assets/javascripts/pages/projects/snippets/update/index.js
...ssets/javascripts/pages/projects/snippets/update/index.js
+2
-6
No files found.
app/assets/javascripts/dispatcher.js
View file @
c0dfd967
...
...
@@ -346,6 +346,7 @@ import Activities from './activities';
import
(
'
./pages/projects/show
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
shortcut_handler
=
true
;
break
;
case
'
projects:edit
'
:
import
(
'
./pages/projects/edit
'
)
...
...
app/assets/javascripts/pages/projects/
releases/index
.js
→
app/assets/javascripts/pages/projects/
init_form
.js
View file @
c0dfd967
import
ZenMode
from
'
~/zen_mode
'
;
import
GLForm
from
'
~/gl_form
'
;
export
default
function
()
{
export
default
function
(
$formEl
)
{
new
ZenMode
();
// eslint-disable-line no-new
new
GLForm
(
$
(
'
.release-form
'
)
,
true
);
// eslint-disable-line no-new
new
GLForm
(
$
formEl
,
true
);
// eslint-disable-line no-new
}
app/assets/javascripts/pages/projects/releases/edit/index.js
0 → 100644
View file @
c0dfd967
import
initForm
from
'
~/pages/projects/init_form
'
;
export
default
initForm
(
$
(
'
.release-form
'
));
app/assets/javascripts/pages/projects/settings/repository/show/index.js
View file @
c0dfd967
import
initSettingsPanels
from
'
~/settings_panels
'
;
export
default
function
()
{
// Initialize expandable settings panels
initSettingsPanels
();
}
export
default
initSettingsPanels
;
app/assets/javascripts/pages/projects/show/index.js
View file @
c0dfd967
...
...
@@ -6,7 +6,7 @@ import BlobViewer from '~/blob/viewer/index';
import
Activities
from
'
~/activities
'
;
import
{
ajaxGet
}
from
'
~/lib/utils/common_utils
'
;
export
default
function
()
{
export
default
()
=>
{
new
ShortcutsNavigation
();
// eslint-disable-line no-new
new
NotificationsForm
();
// eslint-disable-line no-new
new
UserCallout
({
// eslint-disable-line no-new
...
...
app/assets/javascripts/pages/projects/snippets/create/index.js
View file @
c0dfd967
import
GLForm
from
'
~/gl_form
'
;
import
ZenMode
from
'
~/zen_mode
'
;
import
initForm
from
'
~/pages/projects/init_form
'
;
export
default
function
()
{
new
GLForm
(
$
(
'
.snippet-form
'
),
true
);
// eslint-disable-line no-new
new
ZenMode
();
// eslint-disable-line no-new
}
export
default
initForm
(
$
(
'
.snippet-form
'
));
app/assets/javascripts/pages/projects/snippets/edit/index.js
View file @
c0dfd967
import
GLForm
from
'
~/gl_form
'
;
import
ZenMode
from
'
~/zen_mode
'
;
import
initForm
from
'
~/pages/projects/init_form
'
;
export
default
function
()
{
new
GLForm
(
$
(
'
.snippet-form
'
),
true
);
// eslint-disable-line no-new
new
ZenMode
();
// eslint-disable-line no-new
}
export
default
initForm
(
$
(
'
.snippet-form
'
));
app/assets/javascripts/pages/projects/snippets/update/index.js
View file @
c0dfd967
import
GLForm
from
'
~/gl_form
'
;
import
ZenMode
from
'
~/zen_mode
'
;
import
initSnippets
from
'
~/pages/projects/snippets/init_snippets
'
;
export
default
function
()
{
new
GLForm
(
$
(
'
.snippet-form
'
),
true
);
// eslint-disable-line no-new
new
ZenMode
();
// eslint-disable-line no-new
}
export
default
initSnippets
;
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