-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
43 lines (41 loc) · 1.94 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<title>Github Events</title>
</head>
<body>
<div id="timeline-app">
<el-menu class="el-menu-demo" mode="horizontal" background-color="#ffffff">
<el-input placeholder="Please enter github username" v-model="input" @input="usernameHandler"></el-input>
</el-menu>
<br />
<div class="block">
<el-timeline v-loading="fullscreenLoading">
<el-timeline-item v-for="timeline in timeline_data" :timestamp="timeline.type" placement="top"
color="#0bbd87">
<el-card>
<h4 v-for="mssg in timeline.payload['commits']">{{ mssg.message }}</h4>
<h4><a :href="timeline.repo.url" target="_blank" class="commit">{{ timeline.repo.url }}</a></h4>
<template>
<div class="demo-type">
<el-avatar :size="80" @error="errorHandler">
<img v-bind:src="timeline.actor.avatar_url" />
</el-avatar>
</div>
</template>
<p>{{ timeline.actor.display_login }} committed at <span class="date">{{ timeline.created_at | | formatDate }}</span></p>
</el-card>
</el-timeline-item>
</el-timeline>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script src="https://unpkg.com/[email protected]/dist/axios.min.js"></script>
<script src="js/app.js"></script>
</body>
</html>