This commit is contained in:
syuilo 2018-02-27 02:17:10 +09:00
parent 98eb2ded3e
commit cc7110b4c3
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>