CommonUserAvatar.story.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!-- Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import CommonUserAvatar from './CommonUserAvatar.vue'
  4. </script>
  5. <template>
  6. <Story>
  7. <Variant title="System User">
  8. <CommonUserAvatar
  9. :entity="{
  10. id: '1',
  11. }"
  12. />
  13. </Variant>
  14. <Variant title="Without Icon">
  15. <CommonUserAvatar
  16. :entity="{
  17. id: '2',
  18. firstname: 'John',
  19. lastname: 'Doe',
  20. }"
  21. />
  22. </Variant>
  23. <Variant title="Facebook User">
  24. <CommonUserAvatar
  25. :entity="{
  26. id: '2',
  27. source: 'facebook',
  28. }"
  29. />
  30. </Variant>
  31. <Variant title="VIP">
  32. <CommonUserAvatar
  33. :entity="{
  34. id: '2',
  35. vip: true,
  36. email: 'jd@email.com',
  37. }"
  38. :personal="false"
  39. />
  40. </Variant>
  41. <Variant title="Inactive">
  42. <CommonUserAvatar
  43. :entity="{
  44. id: '2',
  45. active: false,
  46. firstname: 'John',
  47. lastname: 'Doe',
  48. }"
  49. />
  50. </Variant>
  51. <Variant title="On Vacation">
  52. <CommonUserAvatar
  53. :entity="{
  54. id: '2',
  55. outOfOffice: true,
  56. firstname: 'John',
  57. lastname: 'Doe',
  58. }"
  59. />
  60. </Variant>
  61. </Story>
  62. </template>