logo

pleroma-fe

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

mrf_transparency_panel.vue (7525B)


  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 -sticky">
  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. <tbody>
  31. <tr>
  32. <th>{{ $t("about.mrf.simple.instance") }}</th>
  33. <th>{{ $t("about.mrf.simple.reason") }}</th>
  34. </tr>
  35. <tr
  36. v-for="entry in acceptInstances"
  37. :key="entry.instance + '_accept'"
  38. >
  39. <td>{{ entry.instance }}</td>
  40. <td v-if="entry.reason === ''">
  41. {{ $t("about.mrf.simple.not_applicable") }}
  42. </td>
  43. <td v-else>
  44. {{ entry.reason }}
  45. </td>
  46. </tr>
  47. </tbody>
  48. </table>
  49. </div>
  50. <div v-if="rejectInstances.length">
  51. <h4>{{ $t("about.mrf.simple.reject") }}</h4>
  52. <p>{{ $t("about.mrf.simple.reject_desc") }}</p>
  53. <table>
  54. <tbody>
  55. <tr>
  56. <th>{{ $t("about.mrf.simple.instance") }}</th>
  57. <th>{{ $t("about.mrf.simple.reason") }}</th>
  58. </tr>
  59. <tr
  60. v-for="entry in rejectInstances"
  61. :key="entry.instance + '_reject'"
  62. >
  63. <td>{{ entry.instance }}</td>
  64. <td v-if="entry.reason === ''">
  65. {{ $t("about.mrf.simple.not_applicable") }}
  66. </td>
  67. <td v-else>
  68. {{ entry.reason }}
  69. </td>
  70. </tr>
  71. </tbody>
  72. </table>
  73. </div>
  74. <div v-if="quarantineInstances.length">
  75. <h4>{{ $t("about.mrf.simple.quarantine") }}</h4>
  76. <p>{{ $t("about.mrf.simple.quarantine_desc") }}</p>
  77. <table>
  78. <tbody>
  79. <tr>
  80. <th>{{ $t("about.mrf.simple.instance") }}</th>
  81. <th>{{ $t("about.mrf.simple.reason") }}</th>
  82. </tr>
  83. <tr
  84. v-for="entry in quarantineInstances"
  85. :key="entry.instance + '_quarantine'"
  86. >
  87. <td>{{ entry.instance }}</td>
  88. <td v-if="entry.reason === ''">
  89. {{ $t("about.mrf.simple.not_applicable") }}
  90. </td>
  91. <td v-else>
  92. {{ entry.reason }}
  93. </td>
  94. </tr>
  95. </tbody>
  96. </table>
  97. </div>
  98. <div v-if="ftlRemovalInstances.length">
  99. <h4>{{ $t("about.mrf.simple.ftl_removal") }}</h4>
  100. <p>{{ $t("about.mrf.simple.ftl_removal_desc") }}</p>
  101. <table>
  102. <tbody>
  103. <tr>
  104. <th>{{ $t("about.mrf.simple.instance") }}</th>
  105. <th>{{ $t("about.mrf.simple.reason") }}</th>
  106. </tr>
  107. <tr
  108. v-for="entry in ftlRemovalInstances"
  109. :key="entry.instance + '_ftl_removal'"
  110. >
  111. <td>{{ entry.instance }}</td>
  112. <td v-if="entry.reason === ''">
  113. {{ $t("about.mrf.simple.not_applicable") }}
  114. </td>
  115. <td v-else>
  116. {{ entry.reason }}
  117. </td>
  118. </tr>
  119. </tbody>
  120. </table>
  121. </div>
  122. <div v-if="mediaNsfwInstances.length">
  123. <h4>{{ $t("about.mrf.simple.media_nsfw") }}</h4>
  124. <p>{{ $t("about.mrf.simple.media_nsfw_desc") }}</p>
  125. <table>
  126. <tbody>
  127. <tr>
  128. <th>{{ $t("about.mrf.simple.instance") }}</th>
  129. <th>{{ $t("about.mrf.simple.reason") }}</th>
  130. </tr>
  131. <tr
  132. v-for="entry in mediaNsfwInstances"
  133. :key="entry.instance + '_media_nsfw'"
  134. >
  135. <td>{{ entry.instance }}</td>
  136. <td v-if="entry.reason === ''">
  137. {{ $t("about.mrf.simple.not_applicable") }}
  138. </td>
  139. <td v-else>
  140. {{ entry.reason }}
  141. </td>
  142. </tr>
  143. </tbody>
  144. </table>
  145. </div>
  146. <div v-if="mediaRemovalInstances.length">
  147. <h4>{{ $t("about.mrf.simple.media_removal") }}</h4>
  148. <p>{{ $t("about.mrf.simple.media_removal_desc") }}</p>
  149. <table>
  150. <tbody>
  151. <tr>
  152. <th>{{ $t("about.mrf.simple.instance") }}</th>
  153. <th>{{ $t("about.mrf.simple.reason") }}</th>
  154. </tr>
  155. <tr
  156. v-for="entry in mediaRemovalInstances"
  157. :key="entry.instance + '_media_removal'"
  158. >
  159. <td>{{ entry.instance }}</td>
  160. <td v-if="entry.reason === ''">
  161. {{ $t("about.mrf.simple.not_applicable") }}
  162. </td>
  163. <td v-else>
  164. {{ entry.reason }}
  165. </td>
  166. </tr>
  167. </tbody>
  168. </table>
  169. </div>
  170. <h2 v-if="hasKeywordPolicies">
  171. {{ $t("about.mrf.keyword.keyword_policies") }}
  172. </h2>
  173. <div v-if="keywordsFtlRemoval.length">
  174. <h4>{{ $t("about.mrf.keyword.ftl_removal") }}</h4>
  175. <ul>
  176. <li
  177. v-for="keyword in keywordsFtlRemoval"
  178. :key="keyword"
  179. v-text="keyword"
  180. />
  181. </ul>
  182. </div>
  183. <div v-if="keywordsReject.length">
  184. <h4>{{ $t("about.mrf.keyword.reject") }}</h4>
  185. <ul>
  186. <li
  187. v-for="keyword in keywordsReject"
  188. :key="keyword"
  189. v-text="keyword"
  190. />
  191. </ul>
  192. </div>
  193. <div v-if="keywordsReplace.length">
  194. <h4>{{ $t("about.mrf.keyword.replace") }}</h4>
  195. <ul>
  196. <li
  197. v-for="keyword in keywordsReplace"
  198. :key="keyword"
  199. >
  200. {{ keyword.pattern }}
  201. {{ $t("about.mrf.keyword.is_replaced_by") }}
  202. {{ keyword.replacement }}
  203. </li>
  204. </ul>
  205. </div>
  206. </div>
  207. </div>
  208. </div>
  209. </div>
  210. </template>
  211. <script src="./mrf_transparency_panel.js"></script>
  212. <style lang="scss">
  213. @import "./mrf_transparency_panel";
  214. </style>