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
9a2a47c9
Commit
9a2a47c9
authored
Jan 15, 2018
by
Simon Knox
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ee into ee-dispatcher-projects-efi
parents
56e57355
c8bd4405
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
61 additions
and
14 deletions
+61
-14
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+29
-14
app/assets/javascripts/pages/projects/branches/new/index.js
app/assets/javascripts/pages/projects/branches/new/index.js
+3
-0
app/assets/javascripts/pages/projects/merge_requests/index/index.js
.../javascripts/pages/projects/merge_requests/index/index.js
+16
-0
app/assets/javascripts/pages/snippets/edit/index.js
app/assets/javascripts/pages/snippets/edit/index.js
+3
-0
app/assets/javascripts/pages/snippets/form.js
app/assets/javascripts/pages/snippets/form.js
+7
-0
app/assets/javascripts/pages/snippets/new/index.js
app/assets/javascripts/pages/snippets/new/index.js
+3
-0
No files found.
app/assets/javascripts/dispatcher.js
View file @
9a2a47c9
/* eslint-disable func-names, space-before-function-paren, no-var, prefer-arrow-callback, wrap-iife, no-shadow, consistent-return, one-var, one-var-declaration-per-line, camelcase, default-case, no-new, quotes, no-duplicate-case, no-case-declarations, no-fallthrough, max-len */
import
{
s__
}
from
'
./locale
'
;
import
projectSelect
from
'
./project_select
'
;
import
IssuableIndex
from
'
./issuable_index
'
;
import
Milestone
from
'
./milestone
'
;
import
IssuableForm
from
'
./issuable_form
'
;
import
LabelsSelect
from
'
./labels_select
'
;
import
MilestoneSelect
from
'
./milestone_select
'
;
import
NewBranchForm
from
'
./new_branch_form
'
;
import
NotificationsForm
from
'
./notifications_form
'
;
import
notificationsDropdown
from
'
./notifications_dropdown
'
;
import
groupAvatar
from
'
./group_avatar
'
;
...
...
@@ -139,14 +137,10 @@ import initLDAPGroupsSelect from 'ee/ldap_groups_select'; // eslint-disable-line
shortcut_handler
=
true
;
break
;
case
'
projects:merge_requests:index
'
:
if
(
filteredSearchEnabled
)
{
const
filteredSearchManager
=
new
gl
.
FilteredSearchManager
(
'
merge_requests
'
);
filteredSearchManager
.
setup
();
}
new
IssuableIndex
(
'
merge_request_
'
);
shortcut_handler
=
new
ShortcutsNavigation
();
new
UsersSelect
();
import
(
'
./pages/projects/merge_requests/index
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
shortcut_handler
=
true
;
break
;
case
'
projects:issues:index
'
:
import
(
'
./pages/projects/issues/index
'
)
...
...
@@ -238,8 +232,14 @@ import initLDAPGroupsSelect from 'ee/ldap_groups_select'; // eslint-disable-line
initChangesDropdown
(
document
.
querySelector
(
'
.navbar-gitlab
'
).
offsetHeight
-
paddingTop
);
break
;
case
'
projects:branches:new
'
:
import
(
'
./pages/projects/branches/new
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:branches:create
'
:
new
NewBranchForm
(
$
(
'
.js-create-branch-form
'
),
JSON
.
parse
(
document
.
getElementById
(
'
availableRefs
'
).
innerHTML
));
import
(
'
./pages/projects/branches/new
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:branches:index
'
:
import
(
'
./pages/projects/branches/index
'
)
...
...
@@ -303,11 +303,24 @@ import initLDAPGroupsSelect from 'ee/ldap_groups_select'; // eslint-disable-line
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
();
...
...
@@ -592,7 +605,9 @@ import initLDAPGroupsSelect from 'ee/ldap_groups_select'; // eslint-disable-line
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/projects/branches/new/index.js
0 → 100644
View file @
9a2a47c9
import
NewBranchForm
from
'
~/new_branch_form
'
;
export
default
()
=>
new
NewBranchForm
(
$
(
'
.js-create-branch-form
'
),
JSON
.
parse
(
document
.
getElementById
(
'
availableRefs
'
).
innerHTML
));
app/assets/javascripts/pages/projects/merge_requests/index/index.js
0 → 100644
View file @
9a2a47c9
import
IssuableIndex
from
'
~/issuable_index
'
;
import
ShortcutsNavigation
from
'
~/shortcuts_navigation
'
;
import
UsersSelect
from
'
~/users_select
'
;
export
default
()
=>
{
const
filteredSearchEnabled
=
gl
.
FilteredSearchManager
&&
document
.
querySelector
(
'
.filtered-search
'
);
if
(
filteredSearchEnabled
)
{
const
filteredSearchManager
=
new
gl
.
FilteredSearchManager
(
'
merge_requests
'
);
filteredSearchManager
.
setup
();
}
new
IssuableIndex
(
'
merge_request_
'
);
// eslint-disable-line no-new
new
ShortcutsNavigation
();
// eslint-disable-line no-new
new
UsersSelect
();
// eslint-disable-line no-new
};
app/assets/javascripts/pages/snippets/edit/index.js
0 → 100644
View file @
9a2a47c9
import
form
from
'
../form
'
;
export
default
form
;
app/assets/javascripts/pages/snippets/form.js
0 → 100644
View file @
9a2a47c9
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 @
9a2a47c9
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