File tree 4 files changed +33
-37
lines changed
4 files changed +33
-37
lines changed Original file line number Diff line number Diff line change 17
17
"lru-cache" : " ^4.0.1" ,
18
18
"serialize-javascript" : " ^1.3.0" ,
19
19
"serve-favicon" : " ^2.3.0" ,
20
- "vue" : " ^2.0.0-beta.7 " ,
20
+ "vue" : " ^2.0.0-beta.8 " ,
21
21
"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 " ,
23
23
"vuex" : " ^2.0.0-rc.4" ,
24
24
"vuex-router-sync" : " ^3.0.0"
25
25
},
Original file line number Diff line number Diff line change 27
27
<li >Client-side DOM re-hydration</li >
28
28
</ul >
29
29
</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 >
31
31
</ul >
32
32
<p ><a href =" https://github.com/vuejs/vue-hackernews-2.0" target =" _blank" >Source code on GitHub.</a ></p >
33
33
</div >
Original file line number Diff line number Diff line change 1
1
<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 >
20
18
</div >
21
19
</template >
22
20
Original file line number Diff line number Diff line change 1
1
<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 >
18
16
</div >
19
17
</template >
20
18
You can’t perform that action at this time.
0 commit comments