This commit is contained in:
syuilo 2018-02-27 02:17:10 +09:00
parent d3639b2df4
commit 15c94f6b81
5 changed files with 10 additions and 4 deletions

View File

@ -1 +0,0 @@
require('./bytes');

View File

@ -0,0 +1,2 @@
require('./bytes');
require('./number');

View File

@ -0,0 +1,5 @@
import Vue from 'vue';
Vue.filter('number', (n) => {
return n.toLocaleString();
});

View File

@ -27,15 +27,15 @@
</div> </div>
<div class="status"> <div class="status">
<a> <a>
<b>{{ user.posts_count }}</b> <b>{{ user.posts_count | number }}</b>
<i>%i18n:mobile.tags.mk-user.posts%</i> <i>%i18n:mobile.tags.mk-user.posts%</i>
</a> </a>
<a :href="`${user.username}/following`"> <a :href="`${user.username}/following`">
<b>{{ user.following_count }}</b> <b>{{ user.following_count | number }}</b>
<i>%i18n:mobile.tags.mk-user.following%</i> <i>%i18n:mobile.tags.mk-user.following%</i>
</a> </a>
<a :href="`${user.username}/followers`"> <a :href="`${user.username}/followers`">
<b>{{ user.followers_count }}</b> <b>{{ user.followers_count | number }}</b>
<i>%i18n:mobile.tags.mk-user.followers%</i> <i>%i18n:mobile.tags.mk-user.followers%</i>
</a> </a>
</div> </div>