logo

pleroma-fe

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

user_list_popover.js (791B)


  1. import { defineAsyncComponent } from 'vue'
  2. import RichContent from 'src/components/rich_content/rich_content.jsx'
  3. import UnicodeDomainIndicator from '../unicode_domain_indicator/unicode_domain_indicator.vue'
  4. import { library } from '@fortawesome/fontawesome-svg-core'
  5. import { faCircleNotch } from '@fortawesome/free-solid-svg-icons'
  6. library.add(
  7. faCircleNotch
  8. )
  9. const UserListPopover = {
  10. name: 'UserListPopover',
  11. props: [
  12. 'users'
  13. ],
  14. components: {
  15. RichContent,
  16. UnicodeDomainIndicator,
  17. Popover: defineAsyncComponent(() => import('../popover/popover.vue')),
  18. UserAvatar: defineAsyncComponent(() => import('../user_avatar/user_avatar.vue'))
  19. },
  20. computed: {
  21. usersCapped () {
  22. return this.users.slice(0, 16)
  23. }
  24. }
  25. }
  26. export default UserListPopover