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
d8ce9f30
Commit
d8ce9f30
authored
Feb 25, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Load svgs in cycle analytics
parent
92d80b68
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
11 additions
and
21 deletions
+11
-21
stage_plan_component.js.es6
...ts/cycle_analytics/components/stage_plan_component.js.es6
+2
-1
stage_staging_component.js.es6
...cycle_analytics/components/stage_staging_component.js.es6
+2
-1
stage_test_component.js.es6
...ts/cycle_analytics/components/stage_test_component.js.es6
+4
-2
cycle_analytics_bundle.js.es6
...javascripts/cycle_analytics/cycle_analytics_bundle.js.es6
+0
-3
icon_branch.js.es6
...assets/javascripts/cycle_analytics/svg/icon_branch.js.es6
+0
-7
icon_branch.svg
app/assets/javascripts/cycle_analytics/svg/icon_branch.svg
+1
-0
icon_build_status.svg
...ets/javascripts/cycle_analytics/svg/icon_build_status.svg
+1
-0
icon_commit.js.es6
...assets/javascripts/cycle_analytics/svg/icon_commit.js.es6
+0
-7
icon_commit.svg
app/assets/javascripts/cycle_analytics/svg/icon_commit.svg
+1
-0
No files found.
app/assets/javascripts/cycle_analytics/components/stage_plan_component.js.es6
View file @
d8ce9f30
/* eslint-disable no-param-reassign */
/* eslint-disable no-param-reassign */
/* global Vue */
/* global Vue */
import iconCommit from '../svg/icon_commit.svg';
((global) => {
((global) => {
global.cycleAnalytics = global.cycleAnalytics || {};
global.cycleAnalytics = global.cycleAnalytics || {};
...
@@ -31,7 +32,7 @@
...
@@ -31,7 +32,7 @@
</h5>
</h5>
<span>
<span>
First
First
<span class="commit-icon">${
global.cycleAnalytics.svgs.
iconCommit}</span>
<span class="commit-icon">${iconCommit}</span>
<a :href="commit.commitUrl" class="commit-hash-link monospace">{{ commit.shortSha }}</a>
<a :href="commit.commitUrl" class="commit-hash-link monospace">{{ commit.shortSha }}</a>
pushed by
pushed by
<a :href="commit.author.webUrl" class="commit-author-link">
<a :href="commit.author.webUrl" class="commit-author-link">
...
...
app/assets/javascripts/cycle_analytics/components/stage_staging_component.js.es6
View file @
d8ce9f30
/* eslint-disable no-param-reassign */
/* eslint-disable no-param-reassign */
/* global Vue */
/* global Vue */
import iconBranch from '../svg/icon_branch.svg';
((global) => {
((global) => {
global.cycleAnalytics = global.cycleAnalytics || {};
global.cycleAnalytics = global.cycleAnalytics || {};
...
@@ -22,7 +23,7 @@
...
@@ -22,7 +23,7 @@
<a :href="build.url" class="pipeline-id">#{{ build.id }}</a>
<a :href="build.url" class="pipeline-id">#{{ build.id }}</a>
<i class="fa fa-code-fork"></i>
<i class="fa fa-code-fork"></i>
<a :href="build.branch.url" class="branch-name monospace">{{ build.branch.name }}</a>
<a :href="build.branch.url" class="branch-name monospace">{{ build.branch.name }}</a>
<span class="icon-branch">${
global.cycleAnalytics.svgs.
iconBranch}</span>
<span class="icon-branch">${iconBranch}</span>
<a :href="build.commitUrl" class="short-sha monospace">{{ build.shortSha }}</a>
<a :href="build.commitUrl" class="short-sha monospace">{{ build.shortSha }}</a>
</h5>
</h5>
<span>
<span>
...
...
app/assets/javascripts/cycle_analytics/components/stage_test_component.js.es6
View file @
d8ce9f30
/* eslint-disable no-param-reassign */
/* eslint-disable no-param-reassign */
/* global Vue */
/* global Vue */
import iconBuildStatus from '../svg/icon_build_status.svg';
import iconBranch from '../svg/icon_branch.svg';
((global) => {
((global) => {
global.cycleAnalytics = global.cycleAnalytics || {};
global.cycleAnalytics = global.cycleAnalytics || {};
...
@@ -18,13 +20,13 @@
...
@@ -18,13 +20,13 @@
<li v-for="build in items" class="stage-event-item item-build-component">
<li v-for="build in items" class="stage-event-item item-build-component">
<div class="item-details">
<div class="item-details">
<h5 class="item-title">
<h5 class="item-title">
<span class="icon-build-status">${
global.cycleAnalytics.svgs.
iconBuildStatus}</span>
<span class="icon-build-status">${iconBuildStatus}</span>
<a :href="build.url" class="item-build-name">{{ build.name }}</a>
<a :href="build.url" class="item-build-name">{{ build.name }}</a>
·
·
<a :href="build.url" class="pipeline-id">#{{ build.id }}</a>
<a :href="build.url" class="pipeline-id">#{{ build.id }}</a>
<i class="fa fa-code-fork"></i>
<i class="fa fa-code-fork"></i>
<a :href="build.branch.url" class="branch-name monospace">{{ build.branch.name }}</a>
<a :href="build.branch.url" class="branch-name monospace">{{ build.branch.name }}</a>
<span class="icon-branch">${
global.cycleAnalytics.svgs.
iconBranch}</span>
<span class="icon-branch">${iconBranch}</span>
<a :href="build.commitUrl" class="short-sha monospace">{{ build.shortSha }}</a>
<a :href="build.commitUrl" class="short-sha monospace">{{ build.shortSha }}</a>
</h5>
</h5>
<span>
<span>
...
...
app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js.es6
View file @
d8ce9f30
...
@@ -4,9 +4,6 @@
...
@@ -4,9 +4,6 @@
window.Vue = require('vue');
window.Vue = require('vue');
window.Cookies = require('js-cookie');
window.Cookies = require('js-cookie');
require('./svg/icon_branch');
require('./svg/icon_build_status');
require('./svg/icon_commit');
require('./components/stage_code_component');
require('./components/stage_code_component');
require('./components/stage_issue_component');
require('./components/stage_issue_component');
require('./components/stage_plan_component');
require('./components/stage_plan_component');
...
...
app/assets/javascripts/cycle_analytics/svg/icon_branch.js.es6
deleted
100644 → 0
View file @
92d80b68
/* eslint-disable no-param-reassign */
((global) => {
global.cycleAnalytics = global.cycleAnalytics || {};
global.cycleAnalytics.svgs = global.cycleAnalytics.svgs || {};
global.cycleAnalytics.svgs.iconBranch = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14"><path fill="#8C8C8C" fill-rule="evenodd" d="M9.678 6.722C9.353 5.167 8.053 4 6.5 4S3.647 5.167 3.322 6.722h-2.6c-.397 0-.722.35-.722.778 0 .428.325.778.722.778h2.6C3.647 9.833 4.947 11 6.5 11s2.853-1.167 3.178-2.722h2.6c.397 0 .722-.35.722-.778 0-.428-.325-.778-.722-.778h-2.6zM4.694 7.5c0-1.09.795-1.944 1.806-1.944 1.01 0 1.806.855 1.806 1.944 0 1.09-.795 1.944-1.806 1.944-1.01 0-1.806-.855-1.806-1.944z"/></svg>';
})(window.gl || (window.gl = {}));
app/assets/javascripts/cycle_analytics/svg/icon_branch.svg
0 → 100644
View file @
d8ce9f30
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"14"
height=
"14"
><path
fill=
"#8C8C8C"
fill-rule=
"evenodd"
d=
"M9.678 6.722C9.353 5.167 8.053 4 6.5 4S3.647 5.167 3.322 6.722h-2.6c-.397 0-.722.35-.722.778 0 .428.325.778.722.778h2.6C3.647 9.833 4.947 11 6.5 11s2.853-1.167 3.178-2.722h2.6c.397 0 .722-.35.722-.778 0-.428-.325-.778-.722-.778h-2.6zM4.694 7.5c0-1.09.795-1.944 1.806-1.944 1.01 0 1.806.855 1.806 1.944 0 1.09-.795 1.944-1.806 1.944-1.01 0-1.806-.855-1.806-1.944z"
/></svg>
app/assets/javascripts/cycle_analytics/svg/icon_build_status.svg
0 → 100644
View file @
d8ce9f30
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"14"
height=
"14"
><g
fill=
"#31AF64"
fill-rule=
"evenodd"
><path
d=
"M12.5 7c0-3.038-2.462-5.5-5.5-5.5S1.5 3.962 1.5 7s2.462 5.5 5.5 5.5 5.5-2.462 5.5-5.5zM0 7c0-3.866 3.134-7 7-7s7 3.134 7 7-3.134 7-7 7-7-3.134-7-7z"
/><path
d=
"M6.28 7.697L5.045 6.464c-.117-.117-.305-.117-.42-.002l-.614.614c-.11.113-.11.303.007.42l1.91 1.91c.19.19.51.197.703.004l.264-.265L9.997 6.04c.108-.107.107-.293-.01-.408l-.612-.614c-.114-.113-.298-.12-.41-.01L6.28 7.7z"
/></g></svg>
app/assets/javascripts/cycle_analytics/svg/icon_commit.js.es6
deleted
100644 → 0
View file @
92d80b68
/* eslint-disable no-param-reassign */
((global) => {
global.cycleAnalytics = global.cycleAnalytics || {};
global.cycleAnalytics.svgs = global.cycleAnalytics.svgs || {};
global.cycleAnalytics.svgs.iconCommit = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><path fill="#8F8F8F" fill-rule="evenodd" d="M28.777 18c-.91-4.008-4.494-7-8.777-7-4.283 0-7.868 2.992-8.777 7H4.01C2.9 18 2 18.895 2 20c0 1.112.9 2 2.01 2h7.213c.91 4.008 4.494 7 8.777 7 4.283 0 7.868-2.992 8.777-7h7.214C37.1 22 38 21.105 38 20c0-1.112-.9-2-2.01-2h-7.213zM20 25c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z"/></svg>';
})(window.gl || (window.gl = {}));
app/assets/javascripts/cycle_analytics/svg/icon_commit.svg
0 → 100644
View file @
d8ce9f30
<svg
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 40 40"
><path
fill=
"#8F8F8F"
fill-rule=
"evenodd"
d=
"M28.777 18c-.91-4.008-4.494-7-8.777-7-4.283 0-7.868 2.992-8.777 7H4.01C2.9 18 2 18.895 2 20c0 1.112.9 2 2.01 2h7.213c.91 4.008 4.494 7 8.777 7 4.283 0 7.868-2.992 8.777-7h7.214C37.1 22 38 21.105 38 20c0-1.112-.9-2-2.01-2h-7.213zM20 25c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z"
/></svg>
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