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
5d58766f
Commit
5d58766f
authored
Jan 09, 2018
by
Constance Okoghenun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactored profile:* and help:* imports in dispatcher
parent
8de1bb9e
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
6 deletions
+27
-6
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+11
-6
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
app/assets/javascripts/pages/profiles/preferences/index.js
app/assets/javascripts/pages/profiles/preferences/index.js
+3
-0
No files found.
app/assets/javascripts/dispatcher.js
View file @
5d58766f
...
@@ -59,11 +59,9 @@ import Star from './star';
...
@@ -59,11 +59,9 @@ import Star from './star';
import
TreeView
from
'
./tree
'
;
import
TreeView
from
'
./tree
'
;
import
UsagePing
from
'
./usage_ping
'
;
import
UsagePing
from
'
./usage_ping
'
;
import
UsernameValidator
from
'
./username_validator
'
;
import
UsernameValidator
from
'
./username_validator
'
;
import
VersionCheckImage
from
'
./version_check_image
'
;
import
Wikis
from
'
./wikis
'
;
import
Wikis
from
'
./wikis
'
;
import
ZenMode
from
'
./zen_mode
'
;
import
ZenMode
from
'
./zen_mode
'
;
import
initSettingsPanels
from
'
./settings_panels
'
;
import
initSettingsPanels
from
'
./settings_panels
'
;
import
initExperimentalFlags
from
'
./experimental_flags
'
;
import
OAuthRememberMe
from
'
./oauth_remember_me
'
;
import
OAuthRememberMe
from
'
./oauth_remember_me
'
;
import
PerformanceBar
from
'
./performance_bar
'
;
import
PerformanceBar
from
'
./performance_bar
'
;
import
initBroadcastMessagesForm
from
'
./broadcast_message
'
;
import
initBroadcastMessagesForm
from
'
./broadcast_message
'
;
...
@@ -159,7 +157,9 @@ import Activities from './activities';
...
@@ -159,7 +157,9 @@ import Activities from './activities';
switch
(
page
)
{
switch
(
page
)
{
case
'
profiles:preferences:show
'
:
case
'
profiles:preferences:show
'
:
initExperimentalFlags
();
import
(
'
./pages/profiles/preferences
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
break
;
case
'
sessions:new
'
:
case
'
sessions:new
'
:
new
UsernameValidator
();
new
UsernameValidator
();
...
@@ -512,7 +512,7 @@ import Activities from './activities';
...
@@ -512,7 +512,7 @@ import Activities from './activities';
new
BlobViewer
();
new
BlobViewer
();
break
;
break
;
case
'
help:index
'
:
case
'
help:index
'
:
VersionCheckImage
.
bindErrorEvent
(
$
(
'
img.js-version-status-badge
'
)
);
import
(
'
./pages/help
'
).
then
(
module
=>
module
.
default
()).
catch
(
fail
);
break
;
break
;
case
'
search:show
'
:
case
'
search:show
'
:
new
Search
();
new
Search
();
...
@@ -557,6 +557,10 @@ import Activities from './activities';
...
@@ -557,6 +557,10 @@ import Activities from './activities';
new
UsersSelect
();
new
UsersSelect
();
break
;
break
;
case
'
profiles:personal_access_tokens:index
'
:
case
'
profiles:personal_access_tokens:index
'
:
import
(
'
./pages/profiles/personal_access_tokens
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
admin:impersonation_tokens:index
'
:
case
'
admin:impersonation_tokens:index
'
:
new
DueDateSelectors
();
new
DueDateSelectors
();
break
;
break
;
...
@@ -623,8 +627,9 @@ import Activities from './activities';
...
@@ -623,8 +627,9 @@ import Activities from './activities';
new
UserCallout
();
new
UserCallout
();
break
;
break
;
case
'
profiles
'
:
case
'
profiles
'
:
new
NotificationsForm
();
import
(
'
./pages/profiles/index/
'
)
notificationsDropdown
();
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
break
;
case
'
projects
'
:
case
'
projects
'
:
new
Project
();
new
Project
();
...
...
app/assets/javascripts/pages/help/index.js
0 → 100644
View file @
5d58766f
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 @
5d58766f
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 @
5d58766f
import
DueDateSelectors
from
'
../../../due_date_select
'
;
export
default
()
=>
new
DueDateSelectors
();
app/assets/javascripts/pages/profiles/preferences/index.js
0 → 100644
View file @
5d58766f
import
initExperimentalFlags
from
'
../../../experimental_flags
'
;
export
default
()
=>
initExperimentalFlags
();
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