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
eb6049b7
Commit
eb6049b7
authored
Jan 11, 2018
by
Constance Okoghenun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ee-patch for refactor of help and profiles in dispatcher.js
parent
8a8f4ebc
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
9 deletions
+22
-9
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+9
-9
app/assets/javascripts/pages/help/index.js
app/assets/javascripts/pages/help/index.js
+3
-0
app/assets/javascripts/pages/profiles/index/index.js
app/assets/javascripts/pages/profiles/index/index.js
+7
-0
app/assets/javascripts/pages/profiles/personal_access_tokens/index.js
...avascripts/pages/profiles/personal_access_tokens/index.js
+3
-0
No files found.
app/assets/javascripts/dispatcher.js
View file @
eb6049b7
...
...
@@ -50,11 +50,9 @@ import GfmAutoComplete from './gfm_auto_complete';
import
ShortcutsBlob
from
'
./shortcuts_blob
'
;
import
Star
from
'
./star
'
;
import
TreeView
from
'
./tree
'
;
import
VersionCheckImage
from
'
./version_check_image
'
;
import
Wikis
from
'
./wikis
'
;
import
ZenMode
from
'
./zen_mode
'
;
import
initSettingsPanels
from
'
./settings_panels
'
;
import
initExperimentalFlags
from
'
./experimental_flags
'
;
import
PerformanceBar
from
'
./performance_bar
'
;
import
initNotes
from
'
./init_notes
'
;
import
initLegacyFilters
from
'
./init_legacy_filters
'
;
...
...
@@ -170,9 +168,6 @@ import initLDAPGroupsSelect from 'ee/ldap_groups_select'; // eslint-disable-line
const
filteredSearchEnabled
=
gl
.
FilteredSearchManager
&&
document
.
querySelector
(
'
.filtered-search
'
);
switch
(
page
)
{
case
'
profiles:preferences:show
'
:
initExperimentalFlags
();
break
;
case
'
sessions:new
'
:
import
(
'
./pages/sessions/new
'
)
.
then
(
callDefault
)
...
...
@@ -574,7 +569,9 @@ import initLDAPGroupsSelect from 'ee/ldap_groups_select'; // eslint-disable-line
shortcut_handler
=
true
;
break
;
case
'
help:index
'
:
VersionCheckImage
.
bindErrorEvent
(
$
(
'
img.js-version-status-badge
'
));
import
(
'
./pages/help
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
search:show
'
:
import
(
'
./pages/search/show
'
)
...
...
@@ -636,7 +633,9 @@ import initLDAPGroupsSelect from 'ee/ldap_groups_select'; // eslint-disable-line
.
catch
(
fail
);
break
;
case
'
profiles:personal_access_tokens:index
'
:
new
DueDateSelectors
();
import
(
'
./pages/profiles/personal_access_tokens
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:clusters:show
'
:
import
(
/* webpackChunkName: "clusters" */
'
./clusters/clusters_bundle
'
)
...
...
@@ -741,8 +740,9 @@ import initLDAPGroupsSelect from 'ee/ldap_groups_select'; // eslint-disable-line
new
UserCallout
();
break
;
case
'
profiles
'
:
new
NotificationsForm
();
notificationsDropdown
();
import
(
'
./pages/profiles/index/
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects
'
:
new
Project
();
...
...
app/assets/javascripts/pages/help/index.js
0 → 100644
View file @
eb6049b7
import
VersionCheckImage
from
'
../../version_check_image
'
;
export
default
()
=>
VersionCheckImage
.
bindErrorEvent
(
$
(
'
img.js-version-status-badge
'
));
app/assets/javascripts/pages/profiles/index/index.js
0 → 100644
View file @
eb6049b7
import
NotificationsForm
from
'
../../../notifications_form
'
;
import
notificationsDropdown
from
'
../../../notifications_dropdown
'
;
export
default
()
=>
{
new
NotificationsForm
();
// eslint-disable-line no-new
notificationsDropdown
();
};
app/assets/javascripts/pages/profiles/personal_access_tokens/index.js
0 → 100644
View file @
eb6049b7
import
DueDateSelectors
from
'
../../../due_date_select
'
;
export
default
()
=>
new
DueDateSelectors
();
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