BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
1a3f3777
Commit
1a3f3777
authored
Jan 18, 2018
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dispatcher-projects' into 'master'
Added dispatcher imports for some project routes See merge request gitlab-org/gitlab-ce!16389
parents
64379e32
c3f26b0a
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
56 additions
and
55 deletions
+56
-55
dispatcher.js
app/assets/javascripts/dispatcher.js
+11
-36
index.js
app/assets/javascripts/pages/projects/edit/index.js
+6
-0
index.js
app/assets/javascripts/pages/projects/index.js
+7
-0
index.js
app/assets/javascripts/pages/projects/new/index.js
+9
-0
project.js
app/assets/javascripts/pages/projects/project.js
+2
-2
project_feature_setting.vue
...shared/permissions/components/project_feature_setting.vue
+1
-1
project_setting_row.vue
...cts/shared/permissions/components/project_setting_row.vue
+0
-0
settings_panel.vue
...projects/shared/permissions/components/settings_panel.vue
+1
-1
constants.js
...avascripts/pages/projects/shared/permissions/constants.js
+0
-0
external.js
...javascripts/pages/projects/shared/permissions/external.js
+0
-0
index.js
...ts/javascripts/pages/projects/shared/permissions/index.js
+0
-0
project_avatar.js
...ssets/javascripts/pages/projects/shared/project_avatar.js
+0
-0
project_new.js
app/assets/javascripts/pages/projects/shared/project_new.js
+1
-1
index.js
app/assets/javascripts/pages/projects/wikis/index.js
+11
-0
wikis.js
app/assets/javascripts/pages/projects/wikis/wikis.js
+2
-2
project_new.js
app/assets/javascripts/projects/project_new.js
+0
-2
shortcuts.js
app/assets/javascripts/shortcuts.js
+2
-4
shortcuts_issuable.js
app/assets/javascripts/shortcuts_issuable.js
+2
-2
mr_widget_options.js
...javascripts/vue_merge_request_widget/mr_widget_options.js
+1
-1
new.html.haml
app/views/projects/new.html.haml
+0
-2
webpack.config.js
config/webpack.config.js
+0
-1
No files found.
app/assets/javascripts/dispatcher.js
View file @
1a3f3777
...
@@ -9,11 +9,8 @@ import notificationsDropdown from './notifications_dropdown';
...
@@ -9,11 +9,8 @@ import notificationsDropdown from './notifications_dropdown';
import
groupAvatar
from
'./group_avatar'
;
import
groupAvatar
from
'./group_avatar'
;
import
GroupLabelSubscription
from
'./group_label_subscription'
;
import
GroupLabelSubscription
from
'./group_label_subscription'
;
import
LineHighlighter
from
'./line_highlighter'
;
import
LineHighlighter
from
'./line_highlighter'
;
import
Project
from
'./project'
;
import
projectAvatar
from
'./project_avatar'
;
import
MergeRequest
from
'./merge_request'
;
import
MergeRequest
from
'./merge_request'
;
import
Compare
from
'./compare'
;
import
Compare
from
'./compare'
;
import
ProjectNew
from
'./project_new'
;
import
Labels
from
'./labels'
;
import
Labels
from
'./labels'
;
import
LabelManager
from
'./label_manager'
;
import
LabelManager
from
'./label_manager'
;
import
Sidebar
from
'./right_sidebar'
;
import
Sidebar
from
'./right_sidebar'
;
...
@@ -24,19 +21,16 @@ import SecretValues from './behaviors/secret_values';
...
@@ -24,19 +21,16 @@ import SecretValues from './behaviors/secret_values';
import
Group
from
'./group'
;
import
Group
from
'./group'
;
import
ProjectsList
from
'./projects_list'
;
import
ProjectsList
from
'./projects_list'
;
import
UserCallout
from
'./user_callout'
;
import
UserCallout
from
'./user_callout'
;
import
ShortcutsWiki
from
'./shortcuts_wiki'
;
import
BlobViewer
from
'./blob/viewer/index'
;
import
BlobViewer
from
'./blob/viewer/index'
;
import
UsersSelect
from
'./users_select'
;
import
UsersSelect
from
'./users_select'
;
import
GfmAutoComplete
from
'./gfm_auto_complete'
;
import
GfmAutoComplete
from
'./gfm_auto_complete'
;
import
Star
from
'./star'
;
import
Star
from
'./star'
;
import
TreeView
from
'./tree'
;
import
TreeView
from
'./tree'
;
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
PerformanceBar
from
'./performance_bar'
;
import
PerformanceBar
from
'./performance_bar'
;
import
initNotes
from
'./init_notes'
;
import
initNotes
from
'./init_notes'
;
import
initIssuableSidebar
from
'./init_issuable_sidebar'
;
import
initIssuableSidebar
from
'./init_issuable_sidebar'
;
import
initProjectVisibilitySelector
from
'./project_visibility'
;
import
NewGroupChild
from
'./groups/new_group_child'
;
import
NewGroupChild
from
'./groups/new_group_child'
;
import
{
ajaxGet
,
convertPermissionToBoolean
}
from
'./lib/utils/common_utils'
;
import
{
ajaxGet
,
convertPermissionToBoolean
}
from
'./lib/utils/common_utils'
;
import
GlFieldErrors
from
'./gl_field_errors'
;
import
GlFieldErrors
from
'./gl_field_errors'
;
...
@@ -311,7 +305,6 @@ import Activities from './activities';
...
@@ -311,7 +305,6 @@ import Activities from './activities';
window
.
mergeRequest
=
new
MergeRequest
({
window
.
mergeRequest
=
new
MergeRequest
({
action
:
mrShowNode
.
dataset
.
mrAction
,
action
:
mrShowNode
.
dataset
.
mrAction
,
});
});
shortcut_handler
=
new
ShortcutsIssuable
(
true
);
shortcut_handler
=
new
ShortcutsIssuable
(
true
);
break
;
break
;
case
'dashboard:activity'
:
case
'dashboard:activity'
:
...
@@ -647,57 +640,39 @@ import Activities from './activities';
...
@@ -647,57 +640,39 @@ import Activities from './activities';
.
catch
(
fail
);
.
catch
(
fail
);
break
;
break
;
case
'projects'
:
case
'projects'
:
new
Project
();
import
(
'./pages/projects'
)
projectAvatar
();
.
then
(
callDefault
)
.
catch
(
fail
);
shortcut_handler
=
true
;
switch
(
path
[
1
])
{
switch
(
path
[
1
])
{
case
'compare'
:
case
'compare'
:
import
(
'./pages/projects/compare'
)
import
(
'./pages/projects/compare'
)
.
then
(
callDefault
)
.
then
(
callDefault
)
.
catch
(
fail
);
.
catch
(
fail
);
break
;
break
;
case
'edit'
:
case
'create'
:
shortcut_handler
=
new
ShortcutsNavigation
();
case
'new'
:
new
ProjectNew
();
import
(
'./pages/projects/new'
)
import
(
/* webpackChunkName: 'project_permissions' */
'./projects/permissions'
)
.
then
(
callDefault
)
.
then
(
callDefault
)
.
catch
(
fail
);
.
catch
(
fail
);
break
;
break
;
case
'new'
:
new
ProjectNew
();
initProjectVisibilitySelector
();
break
;
case
'show'
:
case
'show'
:
new
Star
();
new
Star
();
new
ProjectNew
();
notificationsDropdown
();
notificationsDropdown
();
break
;
break
;
case
'wikis'
:
case
'wikis'
:
new
Wikis
();
import
(
'./pages/projects/wikis'
)
shortcut_handler
=
new
ShortcutsWiki
();
.
then
(
callDefault
)
new
ZenMode
(
);
.
catch
(
fail
);
new
GLForm
(
$
(
'.wiki-form'
),
true
)
;
shortcut_handler
=
true
;
break
;
break
;
case
'snippets'
:
case
'snippets'
:
shortcut_handler
=
new
ShortcutsNavigation
();
if
(
path
[
2
]
===
'show'
)
{
if
(
path
[
2
]
===
'show'
)
{
new
ZenMode
();
new
ZenMode
();
new
LineHighlighter
();
new
LineHighlighter
();
new
BlobViewer
();
new
BlobViewer
();
}
}
break
;
break
;
case
'labels'
:
case
'graphs'
:
case
'compare'
:
case
'pipelines'
:
case
'forks'
:
case
'milestones'
:
case
'project_members'
:
case
'deploy_keys'
:
case
'builds'
:
case
'hooks'
:
case
'services'
:
case
'protected_branches'
:
shortcut_handler
=
new
ShortcutsNavigation
();
}
}
break
;
break
;
}
}
...
...
app/assets/javascripts/pages/projects/edit/index.js
View file @
1a3f3777
import
initSettingsPanels
from
'~/settings_panels'
;
import
initSettingsPanels
from
'~/settings_panels'
;
import
setupProjectEdit
from
'~/project_edit'
;
import
setupProjectEdit
from
'~/project_edit'
;
import
ProjectNew
from
'../shared/project_new'
;
import
projectAvatar
from
'../shared/project_avatar'
;
import
initProjectPermissionsSettings
from
'../shared/permissions'
;
export
default
()
=>
{
export
default
()
=>
{
new
ProjectNew
();
// eslint-disable-line no-new
setupProjectEdit
();
setupProjectEdit
();
// Initialize expandable settings panels
// Initialize expandable settings panels
initSettingsPanels
();
initSettingsPanels
();
projectAvatar
();
initProjectPermissionsSettings
();
};
};
app/assets/javascripts/pages/projects/index.js
0 → 100644
View file @
1a3f3777
import
Project
from
'./project'
;
import
ShortcutsNavigation
from
'../../shortcuts_navigation'
;
export
default
()
=>
{
new
Project
();
// eslint-disable-line no-new
new
ShortcutsNavigation
();
// eslint-disable-line no-new
};
app/assets/javascripts/pages/projects/new/index.js
0 → 100644
View file @
1a3f3777
import
ProjectNew
from
'../shared/project_new'
;
import
initProjectVisibilitySelector
from
'../../../project_visibility'
;
import
initProjectNew
from
'../../../projects/project_new'
;
export
default
()
=>
{
new
ProjectNew
();
// eslint-disable-line no-new
initProjectVisibilitySelector
();
initProjectNew
.
bindEvents
();
};
app/assets/javascripts/project.js
→
app/assets/javascripts/p
ages/projects/p
roject.js
View file @
1a3f3777
/* eslint-disable func-names, space-before-function-paren, no-var, consistent-return, no-new, prefer-arrow-callback, no-return-assign, one-var, one-var-declaration-per-line, object-shorthand, no-else-return, newline-per-chained-call, no-shadow, vars-on-top, prefer-template, max-len */
/* eslint-disable func-names, space-before-function-paren, no-var, consistent-return, no-new, prefer-arrow-callback, no-return-assign, one-var, one-var-declaration-per-line, object-shorthand, no-else-return, newline-per-chained-call, no-shadow, vars-on-top, prefer-template, max-len */
import
Cookies
from
'js-cookie'
;
import
Cookies
from
'js-cookie'
;
import
{
visitUrl
}
from
'./lib/utils/url_utility'
;
import
{
visitUrl
}
from
'.
./..
/lib/utils/url_utility'
;
import
projectSelect
from
'./project_select'
;
import
projectSelect
from
'.
./..
/project_select'
;
export
default
class
Project
{
export
default
class
Project
{
constructor
()
{
constructor
()
{
...
...
app/assets/javascripts/p
rojects
/permissions/components/project_feature_setting.vue
→
app/assets/javascripts/p
ages/projects/shared
/permissions/components/project_feature_setting.vue
View file @
1a3f3777
<
script
>
<
script
>
import
projectFeatureToggle
from
'../../../vue_shared/components/toggle_button.vue'
;
import
projectFeatureToggle
from
'../../../
../../
vue_shared/components/toggle_button.vue'
;
export
default
{
export
default
{
components
:
{
components
:
{
...
...
app/assets/javascripts/p
rojects
/permissions/components/project_setting_row.vue
→
app/assets/javascripts/p
ages/projects/shared
/permissions/components/project_setting_row.vue
View file @
1a3f3777
File moved
app/assets/javascripts/p
rojects
/permissions/components/settings_panel.vue
→
app/assets/javascripts/p
ages/projects/shared
/permissions/components/settings_panel.vue
View file @
1a3f3777
<
script
>
<
script
>
import
projectFeatureSetting
from
'./project_feature_setting.vue'
;
import
projectFeatureSetting
from
'./project_feature_setting.vue'
;
import
projectFeatureToggle
from
'../../../vue_shared/components/toggle_button.vue'
;
import
projectFeatureToggle
from
'../../../
../../
vue_shared/components/toggle_button.vue'
;
import
projectSettingRow
from
'./project_setting_row.vue'
;
import
projectSettingRow
from
'./project_setting_row.vue'
;
import
{
visibilityOptions
,
visibilityLevelDescriptions
}
from
'../constants'
;
import
{
visibilityOptions
,
visibilityLevelDescriptions
}
from
'../constants'
;
import
{
toggleHiddenClassBySelector
}
from
'../external'
;
import
{
toggleHiddenClassBySelector
}
from
'../external'
;
...
...
app/assets/javascripts/p
rojects
/permissions/constants.js
→
app/assets/javascripts/p
ages/projects/shared
/permissions/constants.js
View file @
1a3f3777
File moved
app/assets/javascripts/p
rojects
/permissions/external.js
→
app/assets/javascripts/p
ages/projects/shared
/permissions/external.js
View file @
1a3f3777
File moved
app/assets/javascripts/p
rojects
/permissions/index.js
→
app/assets/javascripts/p
ages/projects/shared
/permissions/index.js
View file @
1a3f3777
File moved
app/assets/javascripts/project_avatar.js
→
app/assets/javascripts/p
ages/projects/shared/p
roject_avatar.js
View file @
1a3f3777
File moved
app/assets/javascripts/project_new.js
→
app/assets/javascripts/p
ages/projects/shared/p
roject_new.js
View file @
1a3f3777
/* eslint-disable func-names, no-var, no-underscore-dangle, prefer-template, prefer-arrow-callback*/
/* eslint-disable func-names, no-var, no-underscore-dangle, prefer-template, prefer-arrow-callback*/
import
VisibilitySelect
from
'./visibility_select'
;
import
VisibilitySelect
from
'.
./../..
/visibility_select'
;
function
highlightChanges
(
$elm
)
{
function
highlightChanges
(
$elm
)
{
$elm
.
addClass
(
'highlight-changes'
);
$elm
.
addClass
(
'highlight-changes'
);
...
...
app/assets/javascripts/pages/projects/wikis/index.js
0 → 100644
View file @
1a3f3777
import
Wikis
from
'./wikis'
;
import
ShortcutsWiki
from
'../../../shortcuts_wiki'
;
import
ZenMode
from
'../../../zen_mode'
;
import
GLForm
from
'../../../gl_form'
;
export
default
()
=>
{
new
Wikis
();
// eslint-disable-line no-new
new
ShortcutsWiki
();
// eslint-disable-line no-new
new
ZenMode
();
// eslint-disable-line no-new
new
GLForm
(
$
(
'.wiki-form'
),
true
);
// eslint-disable-line no-new
};
app/assets/javascripts/wikis.js
→
app/assets/javascripts/
pages/projects/wikis/
wikis.js
View file @
1a3f3777
import
bp
from
'./breakpoints'
;
import
bp
from
'.
./../..
/breakpoints'
;
import
{
slugify
}
from
'./lib/utils/text_utility'
;
import
{
slugify
}
from
'.
./../..
/lib/utils/text_utility'
;
export
default
class
Wikis
{
export
default
class
Wikis
{
constructor
()
{
constructor
()
{
...
...
app/assets/javascripts/projects/project_new.js
View file @
1a3f3777
...
@@ -100,8 +100,6 @@ const bindEvents = () => {
...
@@ -100,8 +100,6 @@ const bindEvents = () => {
$projectImportUrl
.
keyup
(()
=>
deriveProjectPathFromUrl
(
$projectImportUrl
));
$projectImportUrl
.
keyup
(()
=>
deriveProjectPathFromUrl
(
$projectImportUrl
));
};
};
document
.
addEventListener
(
'DOMContentLoaded'
,
bindEvents
);
export
default
{
export
default
{
bindEvents
,
bindEvents
,
deriveProjectPathFromUrl
,
deriveProjectPathFromUrl
,
...
...
app/assets/javascripts/shortcuts.js
View file @
1a3f3777
...
@@ -13,12 +13,10 @@ Mousetrap.stopCallback = (e, element, combo) => {
...
@@ -13,12 +13,10 @@ Mousetrap.stopCallback = (e, element, combo) => {
};
};
export
default
class
Shortcuts
{
export
default
class
Shortcuts
{
constructor
(
skipResetBindings
)
{
constructor
()
{
this
.
onToggleHelp
=
this
.
onToggleHelp
.
bind
(
this
);
this
.
onToggleHelp
=
this
.
onToggleHelp
.
bind
(
this
);
this
.
enabledHelp
=
[];
this
.
enabledHelp
=
[];
if
(
!
skipResetBindings
)
{
Mousetrap
.
reset
();
}
Mousetrap
.
bind
(
'?'
,
this
.
onToggleHelp
);
Mousetrap
.
bind
(
'?'
,
this
.
onToggleHelp
);
Mousetrap
.
bind
(
's'
,
Shortcuts
.
focusSearch
);
Mousetrap
.
bind
(
's'
,
Shortcuts
.
focusSearch
);
Mousetrap
.
bind
(
'f'
,
this
.
focusFilter
.
bind
(
this
));
Mousetrap
.
bind
(
'f'
,
this
.
focusFilter
.
bind
(
this
));
...
...
app/assets/javascripts/shortcuts_issuable.js
View file @
1a3f3777
import
Mousetrap
from
'mousetrap'
;
import
Mousetrap
from
'mousetrap'
;
import
_
from
'underscore'
;
import
_
from
'underscore'
;
import
Sidebar
from
'./right_sidebar'
;
import
Sidebar
from
'./right_sidebar'
;
import
Shortcuts
Navigation
from
'./shortcuts_navigation
'
;
import
Shortcuts
from
'./shortcuts
'
;
import
{
CopyAsGFM
}
from
'./behaviors/copy_as_gfm'
;
import
{
CopyAsGFM
}
from
'./behaviors/copy_as_gfm'
;
export
default
class
ShortcutsIssuable
extends
Shortcuts
Navigation
{
export
default
class
ShortcutsIssuable
extends
Shortcuts
{
constructor
(
isMergeRequest
)
{
constructor
(
isMergeRequest
)
{
super
();
super
();
...
...
app/assets/javascripts/vue_merge_request_widget/mr_widget_options.js
View file @
1a3f3777
import
Project
from
'~/project'
;
import
Project
from
'~/p
ages/projects/p
roject'
;
import
SmartInterval
from
'~/smart_interval'
;
import
SmartInterval
from
'~/smart_interval'
;
import
Flash
from
'../flash'
;
import
Flash
from
'../flash'
;
import
{
import
{
...
...
app/views/projects/new.html.haml
View file @
1a3f3777
...
@@ -4,8 +4,6 @@
...
@@ -4,8 +4,6 @@
-
page_title
'New Project'
-
page_title
'New Project'
-
header_title
"Projects"
,
dashboard_projects_path
-
header_title
"Projects"
,
dashboard_projects_path
-
visibility_level
=
params
.
dig
(
:project
,
:visibility_level
)
||
default_project_visibility
-
visibility_level
=
params
.
dig
(
:project
,
:visibility_level
)
||
default_project_visibility
-
content_for
:page_specific_javascripts
do
=
webpack_bundle_tag
'project_new'
.project-edit-container
.project-edit-container
.project-edit-errors
.project-edit-errors
...
...
config/webpack.config.js
View file @
1a3f3777
...
@@ -66,7 +66,6 @@ var config = {
...
@@ -66,7 +66,6 @@ var config = {
pipelines_times
:
'./pipelines/pipelines_times.js'
,
pipelines_times
:
'./pipelines/pipelines_times.js'
,
profile
:
'./profile/profile_bundle.js'
,
profile
:
'./profile/profile_bundle.js'
,
project_import_gl
:
'./projects/project_import_gitlab_project.js'
,
project_import_gl
:
'./projects/project_import_gitlab_project.js'
,
project_new
:
'./projects/project_new.js'
,
prometheus_metrics
:
'./prometheus_metrics'
,
prometheus_metrics
:
'./prometheus_metrics'
,
protected_branches
:
'./protected_branches'
,
protected_branches
:
'./protected_branches'
,
protected_tags
:
'./protected_tags'
,
protected_tags
:
'./protected_tags'
,
...
...
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