forked from misterGF/CoPilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTasks.vue
More file actions
79 lines (77 loc) · 2.52 KB
/
Copy pathTasks.vue
File metadata and controls
79 lines (77 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<template>
<section class="content">
<div class="row center-block">
<h1 class="text-center">Tasks</h1>
<ul class="timeline">
<!-- timeline time label -->
<li class="time-label">
<span class="bg-green">{{today}}</span>
</li>
<!-- timeline item -->
<li v-for="line in timeline">
<!-- timeline icon -->
<i v-bind:class="'fa ' + line.icon + ' bg-' + line.color"></i>
<div class="timeline-item">
<span class="time"><i class="fa fa-clock-o"></i> {{line.time}}</span>
<h3 class="timeline-header">{{line.title}}</h3>
<div class="timeline-body" v-if="line.body" v-html="line.body">
</div>
<div class="timeline-footer" v-if="line.buttons">
<a v-for="btn in line.buttons" v-bind:class="'btn btn-' + btn.type + ' btn-xs'" >{{btn.message}}</a>
</div>
</div>
</li>
<!-- END timeline item -->
</ul>
</div>
</section>
</template>
<script>
import moment from 'moment'
export default {
name: 'Tasks',
computed: {
today: function () {
return moment().format('MMM Do YY')
},
timeline: function () {
return [{
icon: 'fa-envelope',
color: 'blue',
title: 'Write short novel',
time: moment().endOf('day').fromNow(),
body: 'Etsy doostang zoodles disqus groupon greplin oooj voxy zoodles, weebly ning heekya handango imeem plugg dopplr jibjab, movity jajah plickers sifteo edmodo ifttt zimbra. Babblely odeo kaboodle quora plaxo ideeli hulu weebly balihoo...',
buttons: [{
type: 'primary',
message: 'Read more'
}]
},
{
icon: 'fa-user',
color: 'yellow',
title: 'Sarah Young accepted your friend request',
time: moment('20150620', 'MMM Do YY').fromNow()
},
{
icon: 'fa-camera',
color: 'purple',
title: 'Watch a youTube video',
time: moment('20130620', 'YYYYMMDD').fromNow(),
body: '<div class="embed-responsive embed-responsive-16by9"><iframe width="560" height="315" src="https://www.youtube.com/embed/8aGhZQkoFbQ" frameborder="0" allowfullscreen></iframe></div>'
}]
}
},
methods: {
mounted: function () {
// debugger
// this.callGitHub()
console.log('inside of task')
}
}
}
</script>
<style>
.timeline-footer a.btn {
margin-right: 10px;
}
</style>