forked from AkkomaGang/akkoma-fe
code readability
This commit is contained in:
parent
bb38a43117
commit
e67fecff0a
6 changed files with 22 additions and 22 deletions
|
@ -5,8 +5,8 @@
|
|||
</div>
|
||||
<div class="panel-body">
|
||||
<List :items="requests">
|
||||
<template slot="item" slot-scope="p">
|
||||
<FollowRequestCard :user="p.item" />
|
||||
<template slot="item" slot-scope="{item}">
|
||||
<FollowRequestCard :user="item" />
|
||||
</template>
|
||||
</List>
|
||||
</div>
|
||||
|
|
|
@ -9,12 +9,12 @@
|
|||
</div>
|
||||
</div>
|
||||
<List :items="items" :getKey="getKey">
|
||||
<template slot="item" slot-scope="p">
|
||||
<div class="selectable-list-item-inner" :class="{ 'selectable-list-item-selected-inner': isSelected(p.item) }">
|
||||
<template slot="item" slot-scope="{item}">
|
||||
<div class="selectable-list-item-inner" :class="{ 'selectable-list-item-selected-inner': isSelected(item) }">
|
||||
<div class="selectable-list-checkbox-wrapper">
|
||||
<Checkbox :checked="isSelected(p.item)" @change="checked => toggle(checked, p.item)" />
|
||||
<Checkbox :checked="isSelected(item)" @change="checked => toggle(checked, item)" />
|
||||
</div>
|
||||
<slot name="item" :item="p.item" />
|
||||
<slot name="item" :item="item" />
|
||||
</div>
|
||||
</template>
|
||||
<template slot="empty"><slot name="empty" /></template>
|
||||
|
|
|
@ -15,15 +15,15 @@
|
|||
/>
|
||||
<div :label="$t('user_card.followees')" v-if="followsTabVisible" :disabled="!user.friends_count">
|
||||
<FriendList :userId="userId">
|
||||
<template slot="item" slot-scope="p">
|
||||
<FollowCard :user="p.item" />
|
||||
<template slot="item" slot-scope="{item}">
|
||||
<FollowCard :user="item" />
|
||||
</template>
|
||||
</FriendList>
|
||||
</div>
|
||||
<div :label="$t('user_card.followers')" v-if="followersTabVisible" :disabled="!user.followers_count">
|
||||
<FollowerList :userId="userId">
|
||||
<template slot="item" slot-scope="p">
|
||||
<FollowCard :user="p.item" :noFollowsYou="isUs" />
|
||||
<template slot="item" slot-scope="{item}">
|
||||
<FollowCard :user="item" :noFollowsYou="isUs" />
|
||||
</template>
|
||||
</FollowerList>
|
||||
</div>
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
</div>
|
||||
<div v-else class="panel-body">
|
||||
<List :items="users">
|
||||
<template slot="item" slot-scope="p">
|
||||
<FollowCard :user="p.item" />
|
||||
<template slot="item" slot-scope="{item}">
|
||||
<FollowCard :user="item" />
|
||||
</template>
|
||||
</List>
|
||||
</div>
|
||||
|
|
|
@ -201,19 +201,19 @@
|
|||
</Autosuggest>
|
||||
</div>
|
||||
<BlockList :refresh="true" :getKey="identity" class="profile-edit-user-list">
|
||||
<template slot="header" slot-scope="p">
|
||||
<template slot="header" slot-scope="{selected}">
|
||||
<div class="profile-edit-bulk-actions">
|
||||
<ProgressButton class="btn btn-default" v-if="p.selected.length > 0" :click="() => blockUsers(p.selected)">
|
||||
<ProgressButton class="btn btn-default" v-if="selected.length > 0" :click="() => blockUsers(selected)">
|
||||
{{ $t('user_card.block') }}
|
||||
<template slot="progress">{{ $t('user_card.block_progress') }}</template>
|
||||
</ProgressButton>
|
||||
<ProgressButton class="btn btn-default" v-if="p.selected.length > 0" :click="() => unblockUsers(p.selected)">
|
||||
<ProgressButton class="btn btn-default" v-if="selected.length > 0" :click="() => unblockUsers(selected)">
|
||||
{{ $t('user_card.unblock') }}
|
||||
<template slot="progress">{{ $t('user_card.unblock_progress') }}</template>
|
||||
</ProgressButton>
|
||||
</div>
|
||||
</template>
|
||||
<template slot="item" slot-scope="p"><BlockCard :userId="p.item" /></template>
|
||||
<template slot="item" slot-scope="{item}"><BlockCard :userId="item" /></template>
|
||||
<template slot="empty">{{$t('settings.no_blocks')}}</template>
|
||||
</BlockList>
|
||||
</div>
|
||||
|
@ -225,19 +225,19 @@
|
|||
</Autosuggest>
|
||||
</div>
|
||||
<MuteList :refresh="true" :getKey="identity" class="profile-edit-user-list">
|
||||
<template slot="header" slot-scope="p">
|
||||
<template slot="header" slot-scope="{selected}">
|
||||
<div class="profile-edit-bulk-actions">
|
||||
<ProgressButton class="btn btn-default" v-if="p.selected.length > 0" :click="() => muteUsers(p.selected)">
|
||||
<ProgressButton class="btn btn-default" v-if="selected.length > 0" :click="() => muteUsers(selected)">
|
||||
{{ $t('user_card.mute') }}
|
||||
<template slot="progress">{{ $t('user_card.mute_progress') }}</template>
|
||||
</ProgressButton>
|
||||
<ProgressButton class="btn btn-default" v-if="p.selected.length > 0" :click="() => unmuteUsers(p.selected)">
|
||||
<ProgressButton class="btn btn-default" v-if="selected.length > 0" :click="() => unmuteUsers(selected)">
|
||||
{{ $t('user_card.unmute') }}
|
||||
<template slot="progress">{{ $t('user_card.unmute_progress') }}</template>
|
||||
</ProgressButton>
|
||||
</div>
|
||||
</template>
|
||||
<template slot="item" slot-scope="p"><MuteCard :userId="p.item" /></template>
|
||||
<template slot="item" slot-scope="{item}"><MuteCard :userId="item" /></template>
|
||||
<template slot="empty">{{$t('settings.no_mutes')}}</template>
|
||||
</MuteList>
|
||||
</div>
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
</div>
|
||||
<div class="panel-body">
|
||||
<List :items="users">
|
||||
<template slot="item" slot-scope="p">
|
||||
<FollowCard :user="p.item" />
|
||||
<template slot="item" slot-scope="{item}">
|
||||
<FollowCard :user="item" />
|
||||
</template>
|
||||
</List>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue