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
Boxiang Sun
gitlab-ce
Commits
dd17a484
Commit
dd17a484
authored
May 29, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added correct help path to empty state
parent
782c31a4
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
4 deletions
+18
-4
app/assets/javascripts/ide/components/pipelines/list.vue
app/assets/javascripts/ide/components/pipelines/list.vue
+2
-2
app/assets/javascripts/ide/index.js
app/assets/javascripts/ide/index.js
+8
-1
app/assets/javascripts/ide/stores/actions.js
app/assets/javascripts/ide/stores/actions.js
+2
-0
app/assets/javascripts/ide/stores/mutation_types.js
app/assets/javascripts/ide/stores/mutation_types.js
+1
-0
app/assets/javascripts/ide/stores/mutations.js
app/assets/javascripts/ide/stores/mutations.js
+3
-0
app/views/ide/index.html.haml
app/views/ide/index.html.haml
+2
-1
No files found.
app/assets/javascripts/ide/components/pipelines/list.vue
View file @
dd17a484
...
...
@@ -20,7 +20,7 @@ export default {
EmptyState
,
},
computed
:
{
...
mapState
([
'
pipelinesEmptyStateSvgPath
'
]),
...
mapState
([
'
pipelinesEmptyStateSvgPath
'
,
'
links
'
]),
...
mapGetters
([
'
currentProject
'
]),
...
mapGetters
(
'
pipelines
'
,
[
'
jobsCount
'
,
'
failedJobsCount
'
,
'
failedStages
'
,
'
pipelineFailed
'
]),
...
mapState
(
'
pipelines
'
,
[
'
isLoadingPipeline
'
,
'
latestPipeline
'
,
'
stages
'
,
'
isLoadingJobs
'
]),
...
...
@@ -79,7 +79,7 @@ export default {
</header>
<empty-state
v-if=
"latestPipeline === false"
help-page-path=
"a
"
:help-page-path=
"links.ciHelpPagePath
"
:empty-state-svg-path=
"pipelinesEmptyStateSvgPath"
:can-set-ci=
"true"
/>
...
...
app/assets/javascripts/ide/index.js
View file @
dd17a484
import
Vue
from
'
vue
'
;
import
{
mapActions
}
from
'
vuex
'
;
import
Translate
from
'
~/vue_shared/translate
'
;
import
ide
from
'
./components/ide.vue
'
;
import
store
from
'
./stores
'
;
...
...
@@ -17,12 +18,18 @@ export function initIde(el) {
ide
,
},
created
()
{
this
.
$store
.
dispatch
(
'
setEmptyStateSvgs
'
,
{
this
.
setEmptyStateSvgs
(
{
emptyStateSvgPath
:
el
.
dataset
.
emptyStateSvgPath
,
noChangesStateSvgPath
:
el
.
dataset
.
noChangesStateSvgPath
,
committedStateSvgPath
:
el
.
dataset
.
committedStateSvgPath
,
pipelinesEmptyStateSvgPath
:
el
.
dataset
.
pipelinesEmptyStateSvgPath
,
});
this
.
setLinks
({
ciHelpPagePath
:
el
.
dataset
.
ciHelpPagePath
,
});
},
methods
:
{
...
mapActions
([
'
setEmptyStateSvgs
'
,
'
setLinks
'
]),
},
render
(
createElement
)
{
return
createElement
(
'
ide
'
);
...
...
app/assets/javascripts/ide/stores/actions.js
View file @
dd17a484
...
...
@@ -173,6 +173,8 @@ export const setRightPane = ({ commit }, view) => {
commit
(
types
.
SET_RIGHT_PANE
,
view
);
};
export
const
setLinks
=
({
commit
},
links
)
=>
commit
(
types
.
SET_LINKS
,
links
);
export
*
from
'
./actions/tree
'
;
export
*
from
'
./actions/file
'
;
export
*
from
'
./actions/project
'
;
...
...
app/assets/javascripts/ide/stores/mutation_types.js
View file @
dd17a484
...
...
@@ -6,6 +6,7 @@ export const SET_LEFT_PANEL_COLLAPSED = 'SET_LEFT_PANEL_COLLAPSED';
export
const
SET_RIGHT_PANEL_COLLAPSED
=
'
SET_RIGHT_PANEL_COLLAPSED
'
;
export
const
SET_RESIZING_STATUS
=
'
SET_RESIZING_STATUS
'
;
export
const
SET_EMPTY_STATE_SVGS
=
'
SET_EMPTY_STATE_SVGS
'
;
export
const
SET_LINKS
=
'
SET_LINKS
'
;
// Project Mutation Types
export
const
SET_PROJECT
=
'
SET_PROJECT
'
;
...
...
app/assets/javascripts/ide/stores/mutations.js
View file @
dd17a484
...
...
@@ -154,6 +154,9 @@ export default {
rightPane
:
state
.
rightPane
===
view
?
null
:
view
,
});
},
[
types
.
SET_LINKS
](
state
,
links
)
{
Object
.
assign
(
state
,
{
links
});
},
...
projectMutations
,
...
mergeRequestMutation
,
...
fileMutations
,
...
...
app/views/ide/index.html.haml
View file @
dd17a484
...
...
@@ -4,7 +4,8 @@
#ide
.ide-loading
{
data:
{
"empty-state-svg-path"
=>
image_path
(
'illustrations/multi_file_editor_empty.svg'
),
"no-changes-state-svg-path"
=>
image_path
(
'illustrations/multi-editor_no_changes_empty.svg'
),
"committed-state-svg-path"
=>
image_path
(
'illustrations/multi-editor_all_changes_committed_empty.svg'
),
"pipelines-empty-state-svg-path"
:
image_path
(
'illustrations/pipelines_empty.svg'
)
}
}
"pipelines-empty-state-svg-path"
:
image_path
(
'illustrations/pipelines_empty.svg'
),
"ci-help-page-path"
=>
help_page_path
(
'ci/quick_start/README'
),
}
}
.text-center
=
icon
(
'spinner spin 2x'
)
%h2
.clgray
=
_
(
'Loading the GitLab IDE...'
)
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