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>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<List :items="requests">
|
<List :items="requests">
|
||||||
<template slot="item" slot-scope="p">
|
<template slot="item" slot-scope="{item}">
|
||||||
<FollowRequestCard :user="p.item" />
|
<FollowRequestCard :user="item" />
|
||||||
</template>
|
</template>
|
||||||
</List>
|
</List>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -9,12 +9,12 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<List :items="items" :getKey="getKey">
|
<List :items="items" :getKey="getKey">
|
||||||
<template slot="item" slot-scope="p">
|
<template slot="item" slot-scope="{item}">
|
||||||
<div class="selectable-list-item-inner" :class="{ 'selectable-list-item-selected-inner': isSelected(p.item) }">
|
<div class="selectable-list-item-inner" :class="{ 'selectable-list-item-selected-inner': isSelected(item) }">
|
||||||
<div class="selectable-list-checkbox-wrapper">
|
<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>
|
</div>
|
||||||
<slot name="item" :item="p.item" />
|
<slot name="item" :item="item" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template slot="empty"><slot name="empty" /></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">
|
<div :label="$t('user_card.followees')" v-if="followsTabVisible" :disabled="!user.friends_count">
|
||||||
<FriendList :userId="userId">
|
<FriendList :userId="userId">
|
||||||
<template slot="item" slot-scope="p">
|
<template slot="item" slot-scope="{item}">
|
||||||
<FollowCard :user="p.item" />
|
<FollowCard :user="item" />
|
||||||
</template>
|
</template>
|
||||||
</FriendList>
|
</FriendList>
|
||||||
</div>
|
</div>
|
||||||
<div :label="$t('user_card.followers')" v-if="followersTabVisible" :disabled="!user.followers_count">
|
<div :label="$t('user_card.followers')" v-if="followersTabVisible" :disabled="!user.followers_count">
|
||||||
<FollowerList :userId="userId">
|
<FollowerList :userId="userId">
|
||||||
<template slot="item" slot-scope="p">
|
<template slot="item" slot-scope="{item}">
|
||||||
<FollowCard :user="p.item" :noFollowsYou="isUs" />
|
<FollowCard :user="item" :noFollowsYou="isUs" />
|
||||||
</template>
|
</template>
|
||||||
</FollowerList>
|
</FollowerList>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="panel-body">
|
<div v-else class="panel-body">
|
||||||
<List :items="users">
|
<List :items="users">
|
||||||
<template slot="item" slot-scope="p">
|
<template slot="item" slot-scope="{item}">
|
||||||
<FollowCard :user="p.item" />
|
<FollowCard :user="item" />
|
||||||
</template>
|
</template>
|
||||||
</List>
|
</List>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -201,19 +201,19 @@
|
||||||
</Autosuggest>
|
</Autosuggest>
|
||||||
</div>
|
</div>
|
||||||
<BlockList :refresh="true" :getKey="identity" class="profile-edit-user-list">
|
<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">
|
<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') }}
|
{{ $t('user_card.block') }}
|
||||||
<template slot="progress">{{ $t('user_card.block_progress') }}</template>
|
<template slot="progress">{{ $t('user_card.block_progress') }}</template>
|
||||||
</ProgressButton>
|
</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') }}
|
{{ $t('user_card.unblock') }}
|
||||||
<template slot="progress">{{ $t('user_card.unblock_progress') }}</template>
|
<template slot="progress">{{ $t('user_card.unblock_progress') }}</template>
|
||||||
</ProgressButton>
|
</ProgressButton>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</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>
|
<template slot="empty">{{$t('settings.no_blocks')}}</template>
|
||||||
</BlockList>
|
</BlockList>
|
||||||
</div>
|
</div>
|
||||||
|
@ -225,19 +225,19 @@
|
||||||
</Autosuggest>
|
</Autosuggest>
|
||||||
</div>
|
</div>
|
||||||
<MuteList :refresh="true" :getKey="identity" class="profile-edit-user-list">
|
<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">
|
<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') }}
|
{{ $t('user_card.mute') }}
|
||||||
<template slot="progress">{{ $t('user_card.mute_progress') }}</template>
|
<template slot="progress">{{ $t('user_card.mute_progress') }}</template>
|
||||||
</ProgressButton>
|
</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') }}
|
{{ $t('user_card.unmute') }}
|
||||||
<template slot="progress">{{ $t('user_card.unmute_progress') }}</template>
|
<template slot="progress">{{ $t('user_card.unmute_progress') }}</template>
|
||||||
</ProgressButton>
|
</ProgressButton>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</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>
|
<template slot="empty">{{$t('settings.no_mutes')}}</template>
|
||||||
</MuteList>
|
</MuteList>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<List :items="users">
|
<List :items="users">
|
||||||
<template slot="item" slot-scope="p">
|
<template slot="item" slot-scope="{item}">
|
||||||
<FollowCard :user="p.item" />
|
<FollowCard :user="item" />
|
||||||
</template>
|
</template>
|
||||||
</List>
|
</List>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue