Improve follow-requests page
This commit is contained in:
parent
37c80e8ef5
commit
2a04f2ca4d
|
@ -401,6 +401,7 @@ createAccount: "アカウントを作成"
|
||||||
existingAcount: "既存のアカウント"
|
existingAcount: "既存のアカウント"
|
||||||
regenerate: "再生成"
|
regenerate: "再生成"
|
||||||
fontSize: "フォントサイズ"
|
fontSize: "フォントサイズ"
|
||||||
|
noFollowRequests: "フォロー申請はありません"
|
||||||
|
|
||||||
_ago:
|
_ago:
|
||||||
unknown: "謎"
|
unknown: "謎"
|
||||||
|
|
|
@ -58,13 +58,13 @@
|
||||||
<fa :icon="faComments" fixed-width/><span class="text">{{ $t('messaging') }}</span>
|
<fa :icon="faComments" fixed-width/><span class="text">{{ $t('messaging') }}</span>
|
||||||
<i v-if="$store.state.i.hasUnreadMessagingMessage"><fa :icon="faCircle"/></i>
|
<i v-if="$store.state.i.hasUnreadMessagingMessage"><fa :icon="faCircle"/></i>
|
||||||
</router-link>
|
</router-link>
|
||||||
|
<router-link class="item" active-class="active" to="/my/drive" v-if="$store.getters.isSignedIn">
|
||||||
|
<fa :icon="faCloud" fixed-width/><span class="text">{{ $t('drive') }}</span>
|
||||||
|
</router-link>
|
||||||
<router-link class="item" active-class="active" to="/my/follow-requests" v-if="$store.getters.isSignedIn && $store.state.i.isLocked">
|
<router-link class="item" active-class="active" to="/my/follow-requests" v-if="$store.getters.isSignedIn && $store.state.i.isLocked">
|
||||||
<fa :icon="faUserClock" fixed-width/><span class="text">{{ $t('followRequests') }}</span>
|
<fa :icon="faUserClock" fixed-width/><span class="text">{{ $t('followRequests') }}</span>
|
||||||
<i v-if="$store.state.i.pendingReceivedFollowRequestsCount"><fa :icon="faCircle"/></i>
|
<i v-if="$store.state.i.pendingReceivedFollowRequestsCount"><fa :icon="faCircle"/></i>
|
||||||
</router-link>
|
</router-link>
|
||||||
<router-link class="item" active-class="active" to="/my/drive" v-if="$store.getters.isSignedIn">
|
|
||||||
<fa :icon="faCloud" fixed-width/><span class="text">{{ $t('drive') }}</span>
|
|
||||||
</router-link>
|
|
||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
<router-link class="item" active-class="active" to="/featured">
|
<router-link class="item" active-class="active" to="/featured">
|
||||||
<fa :icon="faFireAlt" fixed-width/><span class="text">{{ $t('featured') }}</span>
|
<fa :icon="faFireAlt" fixed-width/><span class="text">{{ $t('featured') }}</span>
|
||||||
|
|
|
@ -1,6 +1,17 @@
|
||||||
<template>
|
<template>
|
||||||
<mk-pagination :pagination="pagination" #default="{items}" class="mk-follow-requests" ref="list">
|
<div>
|
||||||
<div class="user _panel" v-for="(req, i) in items" :key="req.id">
|
<portal to="icon"><fa :icon="faUserClock"/></portal>
|
||||||
|
<portal to="title">{{ $t('followRequests') }}</portal>
|
||||||
|
|
||||||
|
<mk-pagination :pagination="pagination" class="mk-follow-requests" ref="list">
|
||||||
|
<template #empty>
|
||||||
|
<div class="tkdrhpxr">
|
||||||
|
<img src="https://xn--931a.moe/assets/info.png" alt="" class="_ghost"/>
|
||||||
|
<div>{{ $t('noFollowRequests') }}</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<template #default="{items}">
|
||||||
|
<div class="user _panel" v-for="req in items" :key="req.id">
|
||||||
<mk-avatar class="avatar" :user="req.follower"/>
|
<mk-avatar class="avatar" :user="req.follower"/>
|
||||||
<div class="body">
|
<div class="body">
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
@ -16,12 +27,14 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</template>
|
||||||
</mk-pagination>
|
</mk-pagination>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import { faCheck, faTimes } from '@fortawesome/free-solid-svg-icons';
|
import { faUserClock, faCheck, faTimes } from '@fortawesome/free-solid-svg-icons';
|
||||||
import MkPagination from '../components/ui/pagination.vue';
|
import MkPagination from '../components/ui/pagination.vue';
|
||||||
|
|
||||||
export default Vue.extend({
|
export default Vue.extend({
|
||||||
|
@ -41,7 +54,7 @@ export default Vue.extend({
|
||||||
endpoint: 'following/requests/list',
|
endpoint: 'following/requests/list',
|
||||||
limit: 10,
|
limit: 10,
|
||||||
},
|
},
|
||||||
faCheck, faTimes
|
faCheck, faTimes, faUserClock
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -62,6 +75,18 @@ export default Vue.extend({
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.mk-follow-requests {
|
.mk-follow-requests {
|
||||||
|
.tkdrhpxr {
|
||||||
|
padding: 32px;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
> img {
|
||||||
|
vertical-align: bottom;
|
||||||
|
height: 128px;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
border-radius: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
> .user {
|
> .user {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
|
|
Loading…
Reference in New Issue