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
b2c26112
Commit
b2c26112
authored
Nov 01, 2016
by
Regis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more breaking out
parent
13f11b47
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
68 additions
and
54 deletions
+68
-54
app/assets/javascripts/vue_pipelines_index/index.js.es6
app/assets/javascripts/vue_pipelines_index/index.js.es6
+2
-1
app/assets/javascripts/vue_pipelines_index/pipeline_actions.vue.js.es6
...vascripts/vue_pipelines_index/pipeline_actions.vue.js.es6
+62
-0
app/assets/javascripts/vue_pipelines_index/pipelines.vue.js.es6
...sets/javascripts/vue_pipelines_index/pipelines.vue.js.es6
+3
-52
app/assets/javascripts/vue_pipelines_index/store.js.es6
app/assets/javascripts/vue_pipelines_index/store.js.es6
+1
-1
No files found.
app/assets/javascripts/vue_pipelines_index/index.js.es6
View file @
b2c26112
...
...
@@ -7,6 +7,7 @@
//= require ./running_icon.vue.js.es6
//= require ./running.vue.js.es6
//= require ./stages.vue.js.es6
//= require ./pipeline_actions.vue.js.es6
//= require ./pipelines.vue.js.es6
(() => {
...
...
@@ -15,7 +16,7 @@
Vue.use(VueResource);
// Vue.config.silent = true;
return
new Vue({
window.vm =
new Vue({
el: '#vue-pipelines-index',
data: {
scope: project.dataset.projectId,
...
...
app/assets/javascripts/vue_pipelines_index/pipeline_actions.vue.js.es6
0 → 100644
View file @
b2c26112
/* global Vue, gl */
/* eslint-disable no-param-reassign */
((gl) => {
gl.VuePipelineActions = Vue.extend({
// props: ['builds'],
template: `
<div class="controls pull-right">
<div class="btn-group inline">
<div class="btn-group">
<a class="dropdown-toggle btn btn-default" data-toggle="dropdown" type="button">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 11" class="icon-play">
<path fill-rule="evenodd" d="m9.283 6.47l-7.564 4.254c-.949.534-1.719.266-1.719-.576v-9.292c0-.852.756-1.117 1.719-.576l7.564 4.254c.949.534.963 1.392 0 1.934"></path>
</svg>
<i class="fa fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-menu-align-right">
<li>
<!--
Need builds ID for Play
-->
<a rel="nofollow" data-method="post" href="./builds/449/play"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 11" class="icon-play">
<path fill-rule="evenodd" d="m9.283 6.47l-7.564 4.254c-.949.534-1.719.266-1.719-.576v-9.292c0-.852.756-1.117 1.719-.576l7.564 4.254c.949.534.963 1.392 0 1.934"></path>
</svg>
<span>Production</span>
</a></li>
</ul>
</div>
<div class="btn-group">
<a class="dropdown-toggle btn btn-default build-artifacts" data-toggle="dropdown" type="button">
<i class="fa fa-download"></i>
<i class="fa fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-menu-align-right">
<li>
<!--
Need builds ID for OSX and LINUX
-->
<a rel="nofollow" href="./builds/437/artifacts/download"><i class="fa fa-download"></i>
<span>Download 'build:osx' artifacts</span>
</a></li>
<li>
<a rel="nofollow" href="./builds/436/artifacts/download"><i class="fa fa-download"></i>
<span>Download 'build:linux' artifacts</span>
</a></li>
</ul>
</div>
</div>
<div class="cancel-retry-btns inline">
<a
class="btn has-tooltip"
title="Retry"
rel="nofollow"
data-method="post"
href="pipelines/retry">
<i class="fa fa-repeat"></i>
</a>
</div>
</div>
`,
});
})(window.gl || (window.gl = {}));
app/assets/javascripts/vue_pipelines_index/pipelines.vue.js.es6
View file @
b2c26112
...
...
@@ -6,6 +6,7 @@
components: {
'vue-running-pipeline': gl.VueRunningPipeline,
'vue-stages': gl.VueStages,
'vue-pipeline-actions': gl.VuePipelineActions,
},
data() {
return {
...
...
@@ -124,58 +125,8 @@
</td>
<td></td>
<td class="pipeline-actions hidden-xs">
<div class="controls pull-right">
<div class="btn-group inline">
<div class="btn-group">
<a class="dropdown-toggle btn btn-default" data-toggle="dropdown" type="button">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 11" class="icon-play">
<path fill-rule="evenodd" d="m9.283 6.47l-7.564 4.254c-.949.534-1.719.266-1.719-.576v-9.292c0-.852.756-1.117 1.719-.576l7.564 4.254c.949.534.963 1.392 0 1.934"></path>
</svg>
<i class="fa fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-menu-align-right">
<li>
<!--
Need builds ID
-->
<a rel="nofollow" data-method="post" href="./builds/449/play"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 11" class="icon-play">
<path fill-rule="evenodd" d="m9.283 6.47l-7.564 4.254c-.949.534-1.719.266-1.719-.576v-9.292c0-.852.756-1.117 1.719-.576l7.564 4.254c.949.534.963 1.392 0 1.934"></path>
</svg>
<span>Production</span>
</a></li>
</ul>
</div>
<div class="btn-group">
<a class="dropdown-toggle btn btn-default build-artifacts" data-toggle="dropdown" type="button">
<i class="fa fa-download"></i>
<i class="fa fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-menu-align-right">
<li>
<!--
Need builds ID for OSX and LINUX
-->
<a rel="nofollow" href="./builds/437/artifacts/download"><i class="fa fa-download"></i>
<span>Download 'build:osx' artifacts</span>
</a></li>
<li>
<a rel="nofollow" href="./builds/436/artifacts/download"><i class="fa fa-download"></i>
<span>Download 'build:linux' artifacts</span>
</a></li>
</ul>
</div>
</div>
<div class="cancel-retry-btns inline">
<a
class="btn has-tooltip"
title="Retry"
rel="nofollow"
data-method="post"
href="pipelines/retry">
<i class="fa fa-repeat"></i>
</a>
</div>
</div>
<!-- will need to pass builds info and have v-if's for icons -->
<vue-pipeline-actions></vue-pipeline-actions>
</td>
</tr>
</tbody>
...
...
app/assets/javascripts/vue_pipelines_index/store.js.es6
View file @
b2c26112
...
...
@@ -20,7 +20,7 @@
// eventually clearInterval(this.intervalId)
this.intervalId = setInterval(() => {
goFetch();
},
60
000);
},
3
000);
}
};
})(window.gl || (window.gl = {}));
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