logo

pleroma-fe

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

mrf_transparency_panel.vue (7055B)


  1. <template>
  2. <div
  3. v-if="federationPolicy"
  4. class="mrf-transparency-panel"
  5. >
  6. <div class="panel panel-default base01-background">
  7. <div class="panel-heading timeline-heading base02-background">
  8. <div class="title">
  9. {{ $t("about.mrf.federation") }}
  10. </div>
  11. </div>
  12. <div class="panel-body">
  13. <div class="mrf-section">
  14. <h2>{{ $t("about.mrf.mrf_policies") }}</h2>
  15. <p>{{ $t("about.mrf.mrf_policies_desc") }}</p>
  16. <ul>
  17. <li
  18. v-for="policy in mrfPolicies"
  19. :key="policy"
  20. v-text="policy"
  21. />
  22. </ul>
  23. <h2 v-if="hasInstanceSpecificPolicies">
  24. {{ $t("about.mrf.simple.simple_policies") }}
  25. </h2>
  26. <div v-if="acceptInstances.length">
  27. <h4>{{ $t("about.mrf.simple.accept") }}</h4>
  28. <p>{{ $t("about.mrf.simple.accept_desc") }}</p>
  29. <table>
  30. <tr>
  31. <th>{{ $t("about.mrf.simple.instance") }}</th>
  32. <th>{{ $t("about.mrf.simple.reason") }}</th>
  33. </tr>
  34. <tr
  35. v-for="entry in acceptInstances"
  36. :key="entry.instance + '_accept'"
  37. >
  38. <td>{{ entry.instance }}</td>
  39. <td v-if="entry.reason === ''">
  40. {{ $t("about.mrf.simple.not_applicable") }}
  41. </td>
  42. <td v-else>
  43. {{ entry.reason }}
  44. </td>
  45. </tr>
  46. </table>
  47. </div>
  48. <div v-if="rejectInstances.length">
  49. <h4>{{ $t("about.mrf.simple.reject") }}</h4>
  50. <p>{{ $t("about.mrf.simple.reject_desc") }}</p>
  51. <table>
  52. <tr>
  53. <th>{{ $t("about.mrf.simple.instance") }}</th>
  54. <th>{{ $t("about.mrf.simple.reason") }}</th>
  55. </tr>
  56. <tr
  57. v-for="entry in rejectInstances"
  58. :key="entry.instance + '_reject'"
  59. >
  60. <td>{{ entry.instance }}</td>
  61. <td v-if="entry.reason === ''">
  62. {{ $t("about.mrf.simple.not_applicable") }}
  63. </td>
  64. <td v-else>
  65. {{ entry.reason }}
  66. </td>
  67. </tr>
  68. </table>
  69. </div>
  70. <div v-if="quarantineInstances.length">
  71. <h4>{{ $t("about.mrf.simple.quarantine") }}</h4>
  72. <p>{{ $t("about.mrf.simple.quarantine_desc") }}</p>
  73. <table>
  74. <tr>
  75. <th>{{ $t("about.mrf.simple.instance") }}</th>
  76. <th>{{ $t("about.mrf.simple.reason") }}</th>
  77. </tr>
  78. <tr
  79. v-for="entry in quarantineInstances"
  80. :key="entry.instance + '_quarantine'"
  81. >
  82. <td>{{ entry.instance }}</td>
  83. <td v-if="entry.reason === ''">
  84. {{ $t("about.mrf.simple.not_applicable") }}
  85. </td>
  86. <td v-else>
  87. {{ entry.reason }}
  88. </td>
  89. </tr>
  90. </table>
  91. </div>
  92. <div v-if="ftlRemovalInstances.length">
  93. <h4>{{ $t("about.mrf.simple.ftl_removal") }}</h4>
  94. <p>{{ $t("about.mrf.simple.ftl_removal_desc") }}</p>
  95. <table>
  96. <tr>
  97. <th>{{ $t("about.mrf.simple.instance") }}</th>
  98. <th>{{ $t("about.mrf.simple.reason") }}</th>
  99. </tr>
  100. <tr
  101. v-for="entry in ftlRemovalInstances"
  102. :key="entry.instance + '_ftl_removal'"
  103. >
  104. <td>{{ entry.instance }}</td>
  105. <td v-if="entry.reason === ''">
  106. {{ $t("about.mrf.simple.not_applicable") }}
  107. </td>
  108. <td v-else>
  109. {{ entry.reason }}
  110. </td>
  111. </tr>
  112. </table>
  113. </div>
  114. <div v-if="mediaNsfwInstances.length">
  115. <h4>{{ $t("about.mrf.simple.media_nsfw") }}</h4>
  116. <p>{{ $t("about.mrf.simple.media_nsfw_desc") }}</p>
  117. <table>
  118. <tr>
  119. <th>{{ $t("about.mrf.simple.instance") }}</th>
  120. <th>{{ $t("about.mrf.simple.reason") }}</th>
  121. </tr>
  122. <tr
  123. v-for="entry in mediaNsfwInstances"
  124. :key="entry.instance + '_media_nsfw'"
  125. >
  126. <td>{{ entry.instance }}</td>
  127. <td v-if="entry.reason === ''">
  128. {{ $t("about.mrf.simple.not_applicable") }}
  129. </td>
  130. <td v-else>
  131. {{ entry.reason }}
  132. </td>
  133. </tr>
  134. </table>
  135. </div>
  136. <div v-if="mediaRemovalInstances.length">
  137. <h4>{{ $t("about.mrf.simple.media_removal") }}</h4>
  138. <p>{{ $t("about.mrf.simple.media_removal_desc") }}</p>
  139. <table>
  140. <tr>
  141. <th>{{ $t("about.mrf.simple.instance") }}</th>
  142. <th>{{ $t("about.mrf.simple.reason") }}</th>
  143. </tr>
  144. <tr
  145. v-for="entry in mediaRemovalInstances"
  146. :key="entry.instance + '_media_removal'"
  147. >
  148. <td>{{ entry.instance }}</td>
  149. <td v-if="entry.reason === ''">
  150. {{ $t("about.mrf.simple.not_applicable") }}
  151. </td>
  152. <td v-else>
  153. {{ entry.reason }}
  154. </td>
  155. </tr>
  156. </table>
  157. </div>
  158. <h2 v-if="hasKeywordPolicies">
  159. {{ $t("about.mrf.keyword.keyword_policies") }}
  160. </h2>
  161. <div v-if="keywordsFtlRemoval.length">
  162. <h4>{{ $t("about.mrf.keyword.ftl_removal") }}</h4>
  163. <ul>
  164. <li
  165. v-for="keyword in keywordsFtlRemoval"
  166. :key="keyword"
  167. v-text="keyword"
  168. />
  169. </ul>
  170. </div>
  171. <div v-if="keywordsReject.length">
  172. <h4>{{ $t("about.mrf.keyword.reject") }}</h4>
  173. <ul>
  174. <li
  175. v-for="keyword in keywordsReject"
  176. :key="keyword"
  177. v-text="keyword"
  178. />
  179. </ul>
  180. </div>
  181. <div v-if="keywordsReplace.length">
  182. <h4>{{ $t("about.mrf.keyword.replace") }}</h4>
  183. <ul>
  184. <li
  185. v-for="keyword in keywordsReplace"
  186. :key="keyword"
  187. >
  188. {{ keyword.pattern }}
  189. {{ $t("about.mrf.keyword.is_replaced_by") }}
  190. {{ keyword.replacement }}
  191. </li>
  192. </ul>
  193. </div>
  194. </div>
  195. </div>
  196. </div>
  197. </div>
  198. </template>
  199. <script src="./mrf_transparency_panel.js"></script>
  200. <style lang="scss">
  201. @import "./mrf_transparency_panel";
  202. </style>