lighten usercard and statically load post status from to avoid jumps
This commit is contained in:
parent
aa5757d603
commit
fc177b5200
5 changed files with 25 additions and 26 deletions
|
|
@ -5,23 +5,20 @@ import {
|
|||
merge,
|
||||
} from 'lodash'
|
||||
import { mapState } from 'pinia'
|
||||
import { defineAsyncComponent } from 'vue'
|
||||
|
||||
import AccountActions from 'src/components/account_actions/account_actions.vue'
|
||||
import Checkbox from 'src/components/checkbox/checkbox.vue'
|
||||
import ColorInput from 'src/components/color_input/color_input.vue'
|
||||
import DialogModal from 'src/components/dialog_modal/dialog_modal.vue'
|
||||
import EmojiInput from 'src/components/emoji_input/emoji_input.vue'
|
||||
import suggestor from 'src/components/emoji_input/suggestor.js'
|
||||
import ImageCropper from 'src/components/image_cropper/image_cropper.vue'
|
||||
import RichContent from 'src/components/rich_content/rich_content.jsx'
|
||||
import UserTimedFilterModal from 'src/components/user_timed_filter_modal/user_timed_filter_modal.vue'
|
||||
import AccountActions from '../account_actions/account_actions.vue'
|
||||
import FollowButton from '../follow_button/follow_button.vue'
|
||||
import ModerationTools from '../moderation_tools/moderation_tools.vue'
|
||||
import ProgressButton from '../progress_button/progress_button.vue'
|
||||
import RemoteFollow from '../remote_follow/remote_follow.vue'
|
||||
import Select from '../select/select.vue'
|
||||
import UserAvatar from '../user_avatar/user_avatar.vue'
|
||||
import UserLink from '../user_link/user_link.vue'
|
||||
import ColorInput from 'src/components/color_input/color_input.vue'
|
||||
import UserNote from '../user_note/user_note.vue'
|
||||
|
||||
import { useEmojiStore } from 'src/stores/emoji.js'
|
||||
|
|
@ -124,11 +121,15 @@ export default {
|
|||
},
|
||||
},
|
||||
components: {
|
||||
DialogModal,
|
||||
DialogModal: defineAsyncComponent(
|
||||
() => import( 'src/components/dialog_modal/dialog_modal.vue'),
|
||||
),
|
||||
UserAvatar,
|
||||
Checkbox,
|
||||
RemoteFollow,
|
||||
ModerationTools,
|
||||
ModerationTools: defineAsyncComponent(
|
||||
() => import( 'src/components/moderation_tools/moderation_tools.vue'),
|
||||
),
|
||||
AccountActions,
|
||||
ProgressButton,
|
||||
FollowButton,
|
||||
|
|
@ -136,10 +137,14 @@ export default {
|
|||
RichContent,
|
||||
UserLink,
|
||||
UserNote,
|
||||
UserTimedFilterModal,
|
||||
UserTimedFilterModal: defineAsyncComponent(
|
||||
() => import( 'src/components/user_timed_filter_modal/user_timed_filter_modal.vue'),
|
||||
),
|
||||
ColorInput,
|
||||
EmojiInput,
|
||||
ImageCropper,
|
||||
ImageCropper: defineAsyncComponent(
|
||||
() => import( 'src/components/image_cropper/image_cropper.vue'),
|
||||
),
|
||||
},
|
||||
data() {
|
||||
const user = this.$store.getters.findUser(this.userId)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue