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
Jérome Perrin
gitlab-ce
Commits
21d968bf
Commit
21d968bf
authored
Jan 10, 2018
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add rest of refactor of dispatcher for project:s*
parent
65fe8b08
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
23 deletions
+51
-23
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+10
-23
app/assets/javascripts/pages/projects/settings/ci_cd/show/index.js
...s/javascripts/pages/projects/settings/ci_cd/show/index.js
+12
-0
app/assets/javascripts/pages/projects/settings/repository/show/index.js
...ascripts/pages/projects/settings/repository/show/index.js
+6
-0
app/assets/javascripts/pages/projects/show/index.js
app/assets/javascripts/pages/projects/show/index.js
+23
-0
No files found.
app/assets/javascripts/dispatcher.js
View file @
21d968bf
...
...
@@ -351,19 +351,9 @@ import Activities from './activities';
shortcut_handler
=
true
;
break
;
case
'
projects:show
'
:
shortcut_handler
=
new
ShortcutsNavigation
();
new
NotificationsForm
();
new
UserCallout
({
setCalloutPerProject
:
true
,
className
:
'
js-autodevops-banner
'
,
});
if
(
$
(
'
#tree-slider
'
).
length
)
new
TreeView
();
if
(
$
(
'
.blob-viewer
'
).
length
)
new
BlobViewer
();
if
(
$
(
'
.project-show-activity
'
).
length
)
new
Activities
();
$
(
'
#tree-slider
'
).
waitForImages
(
function
()
{
ajaxGet
(
document
.
querySelector
(
'
.js-tree-content
'
).
dataset
.
logsPath
);
});
import
(
'
./pages/projects/show
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:edit
'
:
import
(
'
./pages/projects/edit
'
)
...
...
@@ -522,18 +512,15 @@ import Activities from './activities';
.
catch
(
fail
);
break
;
case
'
projects:settings:repository:show
'
:
// Initialize expandable settings panels
initSettingsPanels
();
import
(
'
./pages/projects/settings/repository/show
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:settings:ci_cd:show
'
:
// Initialize expandable settings panels
initSettingsPanels
();
const
runnerToken
=
document
.
querySelector
(
'
.js-secret-runner-token
'
);
if
(
runnerToken
)
{
const
runnerTokenSecretValue
=
new
SecretValues
(
runnerToken
);
runnerTokenSecretValue
.
init
();
}
import
(
'
./pages/projects/settings/ci_cd/show
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
groups:settings:ci_cd:show
'
:
const
secretVariableTable
=
document
.
querySelector
(
'
.js-secret-variable-table
'
);
if
(
secretVariableTable
)
{
...
...
app/assets/javascripts/pages/projects/settings/ci_cd/show/index.js
0 → 100644
View file @
21d968bf
import
initSettingsPanels
from
'
~/settings_panels
'
;
import
SecretValues
from
'
~/behaviors/secret_values
'
;
export
default
function
()
{
// Initialize expandable settings panels
initSettingsPanels
();
const
runnerToken
=
document
.
querySelector
(
'
.js-secret-runner-token
'
);
if
(
runnerToken
)
{
const
runnerTokenSecretValue
=
new
SecretValues
(
runnerToken
);
runnerTokenSecretValue
.
init
();
}
}
app/assets/javascripts/pages/projects/settings/repository/show/index.js
0 → 100644
View file @
21d968bf
import
initSettingsPanels
from
'
~/settings_panels
'
;
export
default
function
()
{
// Initialize expandable settings panels
initSettingsPanels
();
}
app/assets/javascripts/pages/projects/show/index.js
0 → 100644
View file @
21d968bf
import
ShortcutsNavigation
from
'
~/shortcuts_navigation
'
;
import
NotificationsForm
from
'
~/notifications_form
'
;
import
UserCallout
from
'
~/user_callout
'
;
import
TreeView
from
'
~/tree
'
;
import
BlobViewer
from
'
~/blob/viewer/index
'
;
import
Activities
from
'
~/activities
'
;
import
{
ajaxGet
}
from
'
~/lib/utils/common_utils
'
;
export
default
function
()
{
new
ShortcutsNavigation
();
// eslint-disable-line no-new
new
NotificationsForm
();
// eslint-disable-line no-new
new
UserCallout
({
// eslint-disable-line no-new
setCalloutPerProject
:
true
,
className
:
'
js-autodevops-banner
'
,
});
if
(
$
(
'
#tree-slider
'
).
length
)
new
TreeView
();
// eslint-disable-line no-new
if
(
$
(
'
.blob-viewer
'
).
length
)
new
BlobViewer
();
// eslint-disable-line no-new
if
(
$
(
'
.project-show-activity
'
).
length
)
new
Activities
();
// eslint-disable-line no-new
$
(
'
#tree-slider
'
).
waitForImages
(()
=>
{
ajaxGet
(
document
.
querySelector
(
'
.js-tree-content
'
).
dataset
.
logsPath
);
});
}
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