Skip to content

Commit fa45276

Browse files
committed
tweak
1 parent cd57182 commit fa45276

File tree

4 files changed

+33
-37
lines changed

4 files changed

+33
-37
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
"lru-cache": "^4.0.1",
1818
"serialize-javascript": "^1.3.0",
1919
"serve-favicon": "^2.3.0",
20-
"vue": "^2.0.0-beta.7",
20+
"vue": "^2.0.0-beta.8",
2121
"vue-router": "^2.0.0-rc.2",
22-
"vue-server-renderer": "^2.0.0-beta.7",
22+
"vue-server-renderer": "^2.0.0-beta.8",
2323
"vuex": "^2.0.0-rc.4",
2424
"vuex-router-sync": "^3.0.0"
2525
},

src/views/AboutView.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<li>Client-side DOM re-hydration</li>
2828
</ul>
2929
</li>
30-
<li>Powerful yet easy-to-use animation system</li>
30+
<li>Powerful yet easy-to-use animation system (wait for the lists to update in realtime!)</li>
3131
</ul>
3232
<p><a href="https://github.com/vuejs/vue-hackernews-2.0" target="_blank">Source code on GitHub.</a></p>
3333
</div>

src/views/ItemView.vue

+16-18
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
<template>
2-
<div class="item-view">
3-
<template v-if="item">
4-
<div class="item-view-header">
5-
<a :href="item.url" target="_blank">
6-
<h2>{{ item.title }}</h2>
7-
</a>
8-
<span v-if="item.url">({{ item.url | host }})</span>
9-
<p>
10-
{{ item.score }} points
11-
| by <router-link :to="'/user/' + item.by">{{ item.by }}</router-link>
12-
{{ item.time | timeAgo }} ago
13-
| {{ item.descendants }} comments
14-
</p>
15-
</div>
16-
<ul class="item-view-comments">
17-
<comment v-for="id in item.kids" :id="id"></comment>
18-
</ul>
19-
</template>
2+
<div class="item-view" v-if="item">
3+
<div class="item-view-header">
4+
<a :href="item.url" target="_blank">
5+
<h2>{{ item.title }}</h2>
6+
</a>
7+
<span v-if="item.url">({{ item.url | host }})</span>
8+
<p>
9+
{{ item.score }} points
10+
| by <router-link :to="'/user/' + item.by">{{ item.by }}</router-link>
11+
{{ item.time | timeAgo }} ago
12+
| {{ item.descendants }} comments
13+
</p>
14+
</div>
15+
<ul class="item-view-comments">
16+
<comment v-for="id in item.kids" :id="id"></comment>
17+
</ul>
2018
</div>
2119
</template>
2220

src/views/UserView.vue

+14-16
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
<template>
2-
<div class="user-view">
3-
<template v-if="user">
4-
<ul>
5-
<li><span class="label">user:</span> {{ user.id }}</li>
6-
<li><span class="label">created:</span> {{ user.created | timeAgo }} ago</li>
7-
<li><span class="label">karma:</span> {{user.karma}}</li>
8-
<li>
9-
<span class="label">about:</span>
10-
<div class="about" v-html="user.about"></div>
11-
</li>
12-
</ul>
13-
<p class="links">
14-
<a :href="'https://news.ycombinator.com/submitted?id=' + user.id">submissions</a><br>
15-
<a :href="'https://news.ycombinator.com/threads?id=' + user.id">comments</a>
16-
</p>
17-
</template>
2+
<div class="user-view" v-if="user">
3+
<ul>
4+
<li><span class="label">user:</span> {{ user.id }}</li>
5+
<li><span class="label">created:</span> {{ user.created | timeAgo }} ago</li>
6+
<li><span class="label">karma:</span> {{user.karma}}</li>
7+
<li>
8+
<span class="label">about:</span>
9+
<div class="about" v-html="user.about"></div>
10+
</li>
11+
</ul>
12+
<p class="links">
13+
<a :href="'https://news.ycombinator.com/submitted?id=' + user.id">submissions</a><br>
14+
<a :href="'https://news.ycombinator.com/threads?id=' + user.id">comments</a>
15+
</p>
1816
</div>
1917
</template>
2018

0 commit comments

Comments
 (0)