2016-04-15 20:20:35 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2016-11-29 11:49:33 +00:00
|
|
|
<title>Vue.js github commits example</title>
|
2016-04-15 20:20:35 +00:00
|
|
|
<style>
|
|
|
|
#demo {
|
|
|
|
font-family: 'Helvetica', Arial, sans-serif;
|
|
|
|
}
|
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
color: #f66;
|
|
|
|
}
|
|
|
|
li {
|
|
|
|
line-height: 1.5em;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
|
|
|
.author, .date {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
</style>
|
2016-10-14 13:27:54 +00:00
|
|
|
<!-- Delete ".min" for console warnings in development -->
|
2022-05-20 10:21:53 +00:00
|
|
|
<script src="../../../dist/vue.min.js"></script>
|
2016-04-15 20:20:35 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="demo">
|
|
|
|
<h1>Latest Vue.js Commits</h1>
|
|
|
|
<template v-for="branch in branches">
|
|
|
|
<input type="radio"
|
|
|
|
:id="branch"
|
|
|
|
:value="branch"
|
|
|
|
name="branch"
|
|
|
|
v-model="currentBranch">
|
2016-04-29 23:40:53 +00:00
|
|
|
<label :for="branch">{{ branch }}</label>
|
2016-04-15 20:20:35 +00:00
|
|
|
</template>
|
2016-04-29 23:40:53 +00:00
|
|
|
<p>vuejs/vue@{{ currentBranch }}</p>
|
2016-04-15 20:20:35 +00:00
|
|
|
<ul>
|
|
|
|
<li v-for="record in commits">
|
2016-04-29 23:40:53 +00:00
|
|
|
<a :href="record.html_url" target="_blank" class="commit">{{ record.sha.slice(0, 7) }}</a>
|
|
|
|
- <span class="message">{{ record.commit.message | truncate }}</span><br>
|
|
|
|
by <span class="author"><a :href="record.author.html_url" target="_blank">{{ record.commit.author.name }}</a></span>
|
|
|
|
at <span class="date">{{ record.commit.author.date | formatDate }}</span>
|
2016-04-15 20:20:35 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<script src="app.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|