logo

pleroma-fe

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

instance_tab.vue (7553B)


  1. <template>
  2. <div :label="$t('admin_dash.tabs.instance')">
  3. <div class="setting-item">
  4. <h2>{{ $t('admin_dash.instance.instance') }}</h2>
  5. <ul class="setting-list">
  6. <li>
  7. <StringSetting path=":pleroma.:instance.:name" />
  8. </li>
  9. <!-- See https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3963 -->
  10. <li v-if="adminDraft[':pleroma'][':instance'][':favicon'] !== undefined">
  11. <AttachmentSetting
  12. compact
  13. path=":pleroma.:instance.:favicon"
  14. />
  15. </li>
  16. <li>
  17. <StringSetting path=":pleroma.:instance.:email" />
  18. </li>
  19. <li>
  20. <StringSetting path=":pleroma.:instance.:description" />
  21. </li>
  22. <li>
  23. <StringSetting path=":pleroma.:instance.:short_description" />
  24. </li>
  25. <li>
  26. <AttachmentSetting
  27. compact
  28. path=":pleroma.:instance.:instance_thumbnail"
  29. />
  30. </li>
  31. <li>
  32. <AttachmentSetting path=":pleroma.:instance.:background_image" />
  33. </li>
  34. </ul>
  35. </div>
  36. <div class="setting-item">
  37. <h2>{{ $t('admin_dash.instance.registrations') }}</h2>
  38. <ul class="setting-list">
  39. <li>
  40. <BooleanSetting path=":pleroma.:instance.:registrations_open" />
  41. <ul class="setting-list suboptions">
  42. <li>
  43. <BooleanSetting
  44. path=":pleroma.:instance.:invites_enabled"
  45. parent-path=":pleroma.:instance.:registrations_open"
  46. parent-invert
  47. />
  48. </li>
  49. </ul>
  50. </li>
  51. <li>
  52. <BooleanSetting path=":pleroma.:instance.:birthday_required" />
  53. <ul class="setting-list suboptions">
  54. <li>
  55. <IntegerSetting
  56. path=":pleroma.:instance.:birthday_min_age"
  57. parent-path=":pleroma.:instance.:birthday_required"
  58. />
  59. </li>
  60. </ul>
  61. </li>
  62. <li>
  63. <BooleanSetting path=":pleroma.:instance.:account_activation_required" />
  64. </li>
  65. <li>
  66. <BooleanSetting path=":pleroma.:instance.:account_approval_required" />
  67. </li>
  68. <li>
  69. <h3>{{ $t('admin_dash.instance.captcha_header') }}</h3>
  70. <ul class="setting-list">
  71. <li>
  72. <BooleanSetting :path="[':pleroma', 'Pleroma.Captcha', ':enabled']" />
  73. <ul class="setting-list suboptions">
  74. <li>
  75. <ChoiceSetting
  76. :path="[':pleroma', 'Pleroma.Captcha', ':method']"
  77. :parent-path="[':pleroma', 'Pleroma.Captcha', ':enabled']"
  78. :option-label-map="{
  79. 'Pleroma.Captcha.Native': $t('admin_dash.captcha.native'),
  80. 'Pleroma.Captcha.Kocaptcha': $t('admin_dash.captcha.kocaptcha')
  81. }"
  82. />
  83. <IntegerSetting
  84. :path="[':pleroma', 'Pleroma.Captcha', ':seconds_valid']"
  85. :parent-path="[':pleroma', 'Pleroma.Captcha', ':enabled']"
  86. />
  87. </li>
  88. <li
  89. v-if="adminDraft[':pleroma']['Pleroma.Captcha'][':enabled'] && adminDraft[':pleroma']['Pleroma.Captcha'][':method'] === 'Pleroma.Captcha.Kocaptcha'"
  90. >
  91. <h4>{{ $t('admin_dash.instance.kocaptcha') }}</h4>
  92. <ul class="setting-list">
  93. <li>
  94. <StringSetting :path="[':pleroma', 'Pleroma.Captcha.Kocaptcha', ':endpoint']" />
  95. </li>
  96. </ul>
  97. </li>
  98. </ul>
  99. </li>
  100. </ul>
  101. </li>
  102. </ul>
  103. </div>
  104. <div class="setting-item">
  105. <h2>{{ $t('admin_dash.instance.access') }}</h2>
  106. <ul class="setting-list">
  107. <li>
  108. <BooleanSetting
  109. override-backend-description
  110. override-backend-description-label
  111. path=":pleroma.:instance.:public"
  112. />
  113. </li>
  114. <li>
  115. <ChoiceSetting
  116. override-backend-description
  117. override-backend-description-label
  118. path=":pleroma.:instance.:limit_to_local_content"
  119. />
  120. </li>
  121. <li v-if="expertLevel">
  122. <h3>{{ $t('admin_dash.instance.restrict.header') }}</h3>
  123. <p>
  124. {{ $t('admin_dash.instance.restrict.description') }}
  125. </p>
  126. <ul class="setting-list">
  127. <li>
  128. <h4>{{ $t('admin_dash.instance.restrict.timelines') }}</h4>
  129. <ul class="setting-list">
  130. <li>
  131. <BooleanSetting
  132. path=":pleroma.:restrict_unauthenticated.:timelines.:local"
  133. indeterminate-state=":if_instance_is_private"
  134. swap-description-and-label
  135. hide-description
  136. />
  137. </li>
  138. <li>
  139. <BooleanSetting
  140. path=":pleroma.:restrict_unauthenticated.:timelines.:federated"
  141. indeterminate-state=":if_instance_is_private"
  142. swap-description-and-label
  143. hide-description
  144. />
  145. </li>
  146. <li>
  147. <GroupSetting path=":pleroma.:restrict_unauthenticated.:timelines" />
  148. </li>
  149. </ul>
  150. </li>
  151. <li>
  152. <h4>{{ $t('admin_dash.instance.restrict.profiles') }}</h4>
  153. <ul class="setting-list">
  154. <li>
  155. <BooleanSetting
  156. path=":pleroma.:restrict_unauthenticated.:profiles.:local"
  157. indeterminate-state=":if_instance_is_private"
  158. swap-description-and-label
  159. hide-description
  160. />
  161. </li>
  162. <li>
  163. <BooleanSetting
  164. path=":pleroma.:restrict_unauthenticated.:profiles.:remote"
  165. indeterminate-state=":if_instance_is_private"
  166. swap-description-and-label
  167. hide-description
  168. />
  169. </li>
  170. <li>
  171. <GroupSetting path=":pleroma.:restrict_unauthenticated.:profiles" />
  172. </li>
  173. </ul>
  174. </li>
  175. <li>
  176. <h4>{{ $t('admin_dash.instance.restrict.activities') }}</h4>
  177. <ul class="setting-list">
  178. <li>
  179. <BooleanSetting
  180. path=":pleroma.:restrict_unauthenticated.:activities.:local"
  181. indeterminate-state=":if_instance_is_private"
  182. swap-description-and-label
  183. hide-description
  184. />
  185. </li>
  186. <li>
  187. <BooleanSetting
  188. path=":pleroma.:restrict_unauthenticated.:activities.:remote"
  189. indeterminate-state=":if_instance_is_private"
  190. swap-description-and-label
  191. hide-description
  192. />
  193. </li>
  194. <li>
  195. <GroupSetting path=":pleroma.:restrict_unauthenticated.:activities" />
  196. </li>
  197. </ul>
  198. </li>
  199. </ul>
  200. </li>
  201. </ul>
  202. </div>
  203. </div>
  204. </template>
  205. <script src="./instance_tab.js"></script>