logo

pleroma-fe

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

mention_link.vue (1817B)


  1. <template>
  2. <span
  3. class="MentionLink"
  4. >
  5. <!-- eslint-disable vue/no-v-html -->
  6. <a
  7. v-if="!user"
  8. :href="url"
  9. class="original"
  10. target="_blank"
  11. v-html="content"
  12. /><!-- eslint-enable vue/no-v-html -->
  13. <UserPopover
  14. v-else
  15. :user-id="user.id"
  16. :disabled="!shouldShowTooltip"
  17. >
  18. <span
  19. v-if="user"
  20. class="new"
  21. :style="style"
  22. :class="classnames"
  23. >
  24. <a
  25. class="short"
  26. :class="{ '-with-tooltip': shouldShowTooltip }"
  27. :href="url"
  28. @click.prevent="onClick"
  29. >
  30. <!-- eslint-disable vue/no-v-html -->
  31. <UserAvatar
  32. v-if="shouldShowAvatar"
  33. class="mention-avatar"
  34. :user="user"
  35. /><span
  36. class="shortName"
  37. >@<span
  38. class="userName"
  39. v-html="userName"
  40. /><span
  41. v-if="shouldShowFullUserName"
  42. class="serverName"
  43. :class="{ '-faded': shouldFadeDomain }"
  44. v-html="'@' + serverName"
  45. /><UnicodeDomainIndicator
  46. v-if="shouldShowFullUserName"
  47. :user="user"
  48. />
  49. </span>
  50. <span
  51. v-if="isYou && shouldShowYous"
  52. :class="{ '-you': shouldBoldenYou }"
  53. > {{ ' ' + $t('status.you') }}</span>
  54. <!-- eslint-enable vue/no-v-html -->
  55. </a><span
  56. ref="full"
  57. class="full"
  58. >
  59. <!-- eslint-disable vue/no-v-html -->
  60. @<span v-html="userName" /><span v-html="'@' + serverName" />
  61. <!-- eslint-enable vue/no-v-html -->
  62. </span>
  63. </span>
  64. </UserPopover>
  65. </span>
  66. </template>
  67. <script src="./mention_link.js" />
  68. <style lang="scss" src="./mention_link.scss" />