logo

pleroma-fe

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

timeline_quick_settings.vue (3175B)


  1. <template>
  2. <Popover
  3. trigger="click"
  4. class="TimelineQuickSettings"
  5. :bound-to="{ x: 'container' }"
  6. >
  7. <template v-slot:content>
  8. <div class="dropdown-menu">
  9. <div v-if="loggedIn">
  10. <button
  11. class="button-default dropdown-item"
  12. @click="replyVisibilityAll = true"
  13. >
  14. <span
  15. class="menu-checkbox -radio"
  16. :class="{ 'menu-checkbox-checked': replyVisibilityAll }"
  17. />{{ $t('settings.reply_visibility_all') }}
  18. </button>
  19. <button
  20. class="button-default dropdown-item"
  21. @click="replyVisibilityFollowing = true"
  22. >
  23. <span
  24. class="menu-checkbox -radio"
  25. :class="{ 'menu-checkbox-checked': replyVisibilityFollowing }"
  26. />{{ $t('settings.reply_visibility_following_short') }}
  27. </button>
  28. <button
  29. class="button-default dropdown-item"
  30. @click="replyVisibilitySelf = true"
  31. >
  32. <span
  33. class="menu-checkbox -radio"
  34. :class="{ 'menu-checkbox-checked': replyVisibilitySelf }"
  35. />{{ $t('settings.reply_visibility_self_short') }}
  36. </button>
  37. <div
  38. role="separator"
  39. class="dropdown-divider"
  40. />
  41. </div>
  42. <button
  43. class="button-default dropdown-item"
  44. @click="muteBotStatuses = !muteBotStatuses"
  45. >
  46. <span
  47. class="menu-checkbox"
  48. :class="{ 'menu-checkbox-checked': muteBotStatuses }"
  49. />{{ $t('settings.mute_bot_posts') }}
  50. </button>
  51. <button
  52. class="button-default dropdown-item"
  53. @click="hideMedia = !hideMedia"
  54. >
  55. <span
  56. class="menu-checkbox"
  57. :class="{ 'menu-checkbox-checked': hideMedia }"
  58. />{{ $t('settings.hide_media_previews') }}
  59. </button>
  60. <button
  61. class="button-default dropdown-item"
  62. @click="hideMutedPosts = !hideMutedPosts"
  63. >
  64. <span
  65. class="menu-checkbox"
  66. :class="{ 'menu-checkbox-checked': hideMutedPosts }"
  67. />{{ $t('settings.hide_all_muted_posts') }}
  68. </button>
  69. <button
  70. class="button-default dropdown-item dropdown-item-icon"
  71. @click="openTab('filtering')"
  72. >
  73. <FAIcon icon="font" />{{ $t('settings.word_filter') }}
  74. </button>
  75. <button
  76. class="button-default dropdown-item dropdown-item-icon"
  77. @click="openTab('general')"
  78. >
  79. <FAIcon icon="wrench" />{{ $t('settings.more_settings') }}
  80. </button>
  81. </div>
  82. </template>
  83. <template v-slot:trigger>
  84. <button class="button-unstyled">
  85. <FAIcon icon="filter" />
  86. </button>
  87. </template>
  88. </Popover>
  89. </template>
  90. <script src="./timeline_quick_settings.js"></script>
  91. <style lang="scss">
  92. .TimelineQuickSettings {
  93. > button {
  94. line-height: 100%;
  95. height: 100%;
  96. width: var(--__panel-heading-height-inner);
  97. text-align: center;
  98. svg {
  99. font-size: 1.2em;
  100. }
  101. }
  102. }
  103. </style>