diff --git a/src/web/app/desktop/views/components/activity.calendar.vue b/src/web/app/desktop/views/components/activity.calendar.vue index d9b8523152..72233e9aca 100644 --- a/src/web/app/desktop/views/components/activity.calendar.vue +++ b/src/web/app/desktop/views/components/activity.calendar.vue @@ -37,7 +37,7 @@ export default Vue.extend({ d.x = x; d.date.weekday = (new Date(d.date.year, d.date.month - 1, d.date.day)).getDay(); - d.v = d.total / (peak / 2); + d.v = peak == 0 ? 0 : d.total / (peak / 2); if (d.v > 1) d.v = 1; const ch = d.date.weekday == 0 || d.date.weekday == 6 ? 275 : 170; const cs = d.v * 100; diff --git a/src/web/app/desktop/views/components/activity.chart.vue b/src/web/app/desktop/views/components/activity.chart.vue index e64b181ba1..5057786ed4 100644 --- a/src/web/app/desktop/views/components/activity.chart.vue +++ b/src/web/app/desktop/views/components/activity.chart.vue @@ -62,10 +62,12 @@ export default Vue.extend({ methods: { render() { const peak = Math.max.apply(null, this.data.map(d => d.total)); - this.pointsPost = this.data.map((d, i) => `${(i * this.zoom) + this.pos},${(1 - (d.posts / peak)) * this.viewBoxY}`).join(' '); - this.pointsReply = this.data.map((d, i) => `${(i * this.zoom) + this.pos},${(1 - (d.replies / peak)) * this.viewBoxY}`).join(' '); - this.pointsRepost = this.data.map((d, i) => `${(i * this.zoom) + this.pos},${(1 - (d.reposts / peak)) * this.viewBoxY}`).join(' '); - this.pointsTotal = this.data.map((d, i) => `${(i * this.zoom) + this.pos},${(1 - (d.total / peak)) * this.viewBoxY}`).join(' '); + if (peak != 0) { + this.pointsPost = this.data.map((d, i) => `${(i * this.zoom) + this.pos},${(1 - (d.posts / peak)) * this.viewBoxY}`).join(' '); + this.pointsReply = this.data.map((d, i) => `${(i * this.zoom) + this.pos},${(1 - (d.replies / peak)) * this.viewBoxY}`).join(' '); + this.pointsRepost = this.data.map((d, i) => `${(i * this.zoom) + this.pos},${(1 - (d.reposts / peak)) * this.viewBoxY}`).join(' '); + this.pointsTotal = this.data.map((d, i) => `${(i * this.zoom) + this.pos},${(1 - (d.total / peak)) * this.viewBoxY}`).join(' '); + } }, onMousedown(e) { const clickX = e.clientX; diff --git a/src/web/app/desktop/views/components/friends-maker.vue b/src/web/app/desktop/views/components/friends-maker.vue index 61015b979f..ab35efc75a 100644 --- a/src/web/app/desktop/views/components/friends-maker.vue +++ b/src/web/app/desktop/views/components/friends-maker.vue @@ -3,20 +3,20 @@
気になるユーザーをフォロー:
おすすめのユーザーは見つかりませんでした。
%fa:spinner .pulse .fw%読み込んでいます
%fa:R comments%自分の投稿や、自分がフォローしているユーザーの投稿が表示されます。
-+ %fa:R comments%自分の投稿や、自分がフォローしているユーザーの投稿が表示されます。 +
+%fa:spinner .pulse .fw%%i18n:common.loading%