Exploreページに新規ユーザー一覧を追加 (#4295)

This commit is contained in:
syuilo 2019-02-17 17:53:51 +09:00 committed by GitHub
parent 80b3c2e4e3
commit 852c434dc5
3 changed files with 16 additions and 2 deletions

View file

@ -1,6 +1,10 @@
ChangeLog
=========
unreleased
----------
* Exploreページに新規ユーザー一覧を追加
10.86.2
----------
* 別タブでルートより下を開いたときにはデッキにしないように

View file

@ -224,6 +224,7 @@ common/views/pages/explore.vue:
verified-users: "公式アカウント"
popular-users: "人気のユーザー"
recently-updated-users: "最近投稿したユーザー"
recently-registered-users: "新規ユーザー"
common/views/components/games/reversi/reversi.vue:
matching:

View file

@ -9,13 +9,16 @@
<mk-user-list :make-promise="recentlyUpdatedUsers">
<span><fa :icon="faCommentAlt"/> {{ $t('recently-updated-users') }}</span>
</mk-user-list>
<mk-user-list :make-promise="recentlyRegisteredUsers">
<span><fa :icon="faPlus"/> {{ $t('recently-registered-users') }}</span>
</mk-user-list>
</div>
</template>
<script lang="ts">
import Vue from 'vue';
import i18n from '../../../i18n';
import { faChartLine } from '@fortawesome/free-solid-svg-icons';
import { faChartLine, faPlus } from '@fortawesome/free-solid-svg-icons';
import { faBookmark, faCommentAlt } from '@fortawesome/free-regular-svg-icons';
export default Vue.extend({
@ -40,7 +43,13 @@ export default Vue.extend({
sort: '+updatedAt',
limit: 10
}),
faBookmark, faChartLine, faCommentAlt
recentlyRegisteredUsers: () => this.$root.api('users', {
origin: 'local',
state: 'alive',
sort: '+createdAt',
limit: 10
}),
faBookmark, faChartLine, faCommentAlt, faPlus
};
},
});