logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git

basic_user_card.js (667B)


  1. import UserPopover from '../user_popover/user_popover.vue'
  2. import UserAvatar from '../user_avatar/user_avatar.vue'
  3. import UserLink from '../user_link/user_link.vue'
  4. import RichContent from 'src/components/rich_content/rich_content.jsx'
  5. import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator'
  6. const BasicUserCard = {
  7. props: [
  8. 'user'
  9. ],
  10. components: {
  11. UserPopover,
  12. UserAvatar,
  13. RichContent,
  14. UserLink
  15. },
  16. methods: {
  17. userProfileLink (user) {
  18. return generateProfileLink(user.id, user.screen_name, this.$store.state.instance.restrictedNicknames)
  19. }
  20. }
  21. }
  22. export default BasicUserCard