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
Tatuya Kamada
gitlab-ce
Commits
795ce9dc
Commit
795ce9dc
authored
Nov 15, 2016
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrap components with a single element for Vue 2 compatibility
parent
76421f66
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
55 deletions
+59
-55
app/assets/javascripts/cycle_analytics/components/item_commit_component.js.es6
...s/cycle_analytics/components/item_commit_component.js.es6
+27
-25
app/assets/javascripts/cycle_analytics/components/item_issue_component.js.es6
...ts/cycle_analytics/components/item_issue_component.js.es6
+32
-30
No files found.
app/assets/javascripts/cycle_analytics/components/item_commit_component.js.es6
View file @
795ce9dc
...
@@ -18,32 +18,34 @@
...
@@ -18,32 +18,34 @@
commit: Object,
commit: Object,
},
},
template: `
template: `
<div class="item-details item-conmmit-component">
<div>
<h5 class="item-title">
<div class="item-details item-conmmit-component">
<a href="commit.url">{{ commit.title }}</a>
<h5 class="item-title">
</h5>
<a href="commit.url">{{ commit.title }}</a>
<span>
</h5>
First
<span>
<span class="commit-icon">
First
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 40 40">
<span class="commit-icon">
<path fill="#8F8F8F" fill-rule="evenodd" d="M28.7769836,18 C27.8675252,13.9920226 24.2831748,11 20,11 C15.7168252,11 12.1324748,13.9920226 11.2230164,18 L4.0085302,18 C2.90195036,18 2,18.8954305 2,20 C2,21.1122704 2.8992496,22 4.0085302,22 L11.2230164,22 C12.1324748,26.0079774 15.7168252,29 20,29 C24.2831748,29 27.8675252,26.0079774 28.7769836,22 L35.9914698,22 C37.0980496,22 38,21.1045695 38,20 C38,18.8877296 37.1007504,18 35.9914698,18 L28.7769836,18 L28.7769836,18 Z M20,25 C22.7614237,25 25,22.7614237 25,20 C25,17.2385763 22.7614237,15 20,15 C17.2385763,15 15,17.2385763 15,20 C15,22.7614237 17.2385763,25 20,25 L20,25 Z"/>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 40 40">
</svg>
<path fill="#8F8F8F" fill-rule="evenodd" d="M28.7769836,18 C27.8675252,13.9920226 24.2831748,11 20,11 C15.7168252,11 12.1324748,13.9920226 11.2230164,18 L4.0085302,18 C2.90195036,18 2,18.8954305 2,20 C2,21.1122704 2.8992496,22 4.0085302,22 L11.2230164,22 C12.1324748,26.0079774 15.7168252,29 20,29 C24.2831748,29 27.8675252,26.0079774 28.7769836,22 L35.9914698,22 C37.0980496,22 38,21.1045695 38,20 C38,18.8877296 37.1007504,18 35.9914698,18 L28.7769836,18 L28.7769836,18 Z M20,25 C22.7614237,25 25,22.7614237 25,20 C25,17.2385763 22.7614237,15 20,15 C17.2385763,15 15,17.2385763 15,20 C15,22.7614237 17.2385763,25 20,25 L20,25 Z"/>
</svg>
</span>
<a href="#" class="commit-hash-link monospace">{{ commit.hash }}</a>
pushed by
<a href="commit.profile" class="commit-author-link">{{ commit.author }}</a>
</span>
</span>
<a href="#" class="commit-hash-link monospace">{{ commit.hash }}</a>
</div>
pushed by
<div class="item-time">
<a href="commit.profile" class="commit-author-link">{{ commit.author }}</a>
<span class="hours" v-if="commit.totalTime.hours">
</span>
{{ commit.totalTime.hours }}
</div>
<abbr title="Hours">hr</abbr>
<div class="item-time">
</span>
<span class="hours" v-if="commit.totalTime.hours">
<span class="minutes" v-if="commit.totalTime.minutes">
{{ commit.totalTime.hours }}
{{ commit.totalTime.minutes }}
<abbr title="Hours">hr</abbr>
<abbr title="Minutes">mins</abbr>
</span>
</span>
<span class="minutes" v-if="commit.totalTime.minutes">
</div>
{{ commit.totalTime.minutes }}
<div>
<abbr title="Minutes">mins</abbr>
</span>
</div>
`,
`,
});
});
}(window.gl || (window.gl = {})));
}(window.gl || (window.gl = {})));
app/assets/javascripts/cycle_analytics/components/item_issue_component.js.es6
View file @
795ce9dc
...
@@ -20,38 +20,40 @@
...
@@ -20,38 +20,40 @@
issue: Object,
issue: Object,
},
},
template: `
template: `
<div class="item-details">
<div>
<img class="avatar" src="https://secure.gravatar.com/avatar/3731e7dd4f2b4fa8ae184c0a7519dd58?s=64&d=identicon">
<div class="item-details">
<h5 class="item-title">
<img class="avatar" src="https://secure.gravatar.com/avatar/3731e7dd4f2b4fa8ae184c0a7519dd58?s=64&d=identicon">
<a href="issue.url">
<h5 class="item-title">
{{ issue.title }}
<a href="issue.url">
{{ issue.title }}
</a>
</h5>
<a href="issue.url" class="issue-link">
#{{issue.id}}
</a>
</a>
</h5>
<span>
<a href="issue.url" class="issue-link">
Opened
#{{issue.id}}
<a href="issue.url" class="issue-date">
</a>
{{ issue.datetime }}
<span>
</a>
Opened
</span>
<a href="issue.url" class="issue-date">
<span>
{{ issue.datetime }}
by
<a href="issue.profile" class="issue-author-link">
{{ issue.author }}
</a>
</a>
</span>
</span>
<span>
</div>
by
<div class="item-time">
<a href="issue.profile" class="issue-author-link">
<span class="hours" v-if="issue.totalTime.hours">
{{ issue.author }}
{{ issue.totalTime.hours }}
</a>
<abbr title="Hours">hr</abbr>
</span>
</span>
</div>
<span class="minutes" v-if="issue.totalTime.minutes">
<div class="item-time">
{{ issue.totalTime.minutes }}
<span class="hours" v-if="issue.totalTime.hours">
<abbr title="Minutes">mins</abbr>
{{ issue.totalTime.hours }}
</span>
<abbr title="Hours">hr</abbr>
</div>
</span>
<span class="minutes" v-if="issue.totalTime.minutes">
{{ issue.totalTime.minutes }}
<abbr title="Minutes">mins</abbr>
</span>
</div>
</div>
`,
`,
});
});
...
...
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