logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 1f5f612163bd1c359212c2e6832806f0dd606977
parent 509ec995743d21b6a5b81634d026460b082f3506
Author: Henry Jameson <me@hjkos.com>
Date:   Sun, 25 Apr 2021 12:46:13 +0300

remove Vue.component, just export an object. Seems to be working

Diffstat:

Msrc/components/chat_title/chat_title.js5++---
Msrc/hocs/with_load_more/with_load_more.js5++---
2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/components/chat_title/chat_title.js b/src/components/chat_title/chat_title.js @@ -1,8 +1,7 @@ -import Vue from 'vue' import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator' import UserAvatar from '../user_avatar/user_avatar.vue' -export default Vue.component('chat-title', { +export default { name: 'ChatTitle', components: { UserAvatar @@ -23,4 +22,4 @@ export default Vue.component('chat-title', { return generateProfileLink(user.id, user.screen_name) } } -}) +} diff --git a/src/hocs/with_load_more/with_load_more.js b/src/hocs/with_load_more/with_load_more.js @@ -1,4 +1,3 @@ -import Vue from 'vue' import isEmpty from 'lodash/isEmpty' import { getComponentProps } from '../../services/component_utils/component_utils' import './with_load_more.scss' @@ -23,7 +22,7 @@ const withLoadMore = ({ const originalProps = Object.keys(getComponentProps(WrappedComponent)) const props = originalProps.filter(v => v !== childPropName).concat(additionalPropNames) - return Vue.component('withLoadMore', { + return { props, data () { return { @@ -106,7 +105,7 @@ const withLoadMore = ({ </div> ) } - }) + } } export default withLoadMore