You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

205 lines
9.7 KiB

  1. <template lang='pug'>
  2. v-container(fluid, grid-list-lg)
  3. v-layout(row, wrap)
  4. v-flex(xs12)
  5. .admin-header
  6. img(src='/svg/icon-maintenance.svg', alt='Utilities', style='width: 80px;')
  7. .admin-header-title
  8. .headline.primary--text Utilities
  9. .subheading.grey--text Maintenance and troubleshooting tools
  10. v-card.mt-3
  11. v-tabs(color='grey darken-2', fixed-tabs, slider-color='white', show-arrows, dark)
  12. v-tab(key='tools') Tools
  13. v-tab(key='cache') Cache
  14. v-tab(key='telemetry') Telemetry
  15. v-tab(key='support') Support
  16. v-tab-item(key='tools', :transition='false', :reverse-transition='false')
  17. v-container.pa-2(fluid, grid-list-sm, :class='$vuetify.dark ? "" : "grey lighten-5"')
  18. v-layout(row, wrap)
  19. v-flex(xs12, sm6)
  20. v-card
  21. v-toolbar(:color='$vuetify.dark ? "" : "grey darken-3"', dark, dense, flat)
  22. v-toolbar-title
  23. .subheading Authentication
  24. v-spacer
  25. v-chip(label, color='white', small).grey--text.text--darken-2 coming soon
  26. v-subheader Flush User Sessions
  27. v-card-text.pt-0.pl-4
  28. .body-1 This will cause all users to be logged out. You will need to log back in after the operation.
  29. v-btn(depressed).ml-0
  30. v-icon(left, color='grey') build
  31. span Proceed
  32. v-divider.my-0
  33. v-subheader Reset Guest User
  34. v-card-text.pt-0.pl-4
  35. .body-1 This will reset the guest user to its default parameters and permissions.
  36. v-btn(depressed).ml-0
  37. v-icon(left, color='grey') build
  38. span Proceed
  39. v-card.mt-3
  40. v-toolbar(:color='$vuetify.dark ? "" : "grey darken-3"', dark, dense, flat)
  41. v-toolbar-title
  42. .subheading Modules
  43. v-spacer
  44. v-chip(label, color='white', small).grey--text.text--darken-2 coming soon
  45. v-subheader Rescan Modules
  46. v-card-text.pt-0.pl-4
  47. .body-1 Look for new modules on disk. Existing configurations will be merged.
  48. v-select.mt-3(
  49. v-model='rescanModuleType'
  50. :items='moduleTypes'
  51. label='Modules Type'
  52. outline
  53. background-color='grey lighten-1'
  54. hide-details
  55. dense
  56. )
  57. v-btn.ml-0(color='primary', depressed, dark)
  58. v-icon(left) chevron_right
  59. span Rescan
  60. v-flex(xs12, sm6)
  61. v-card
  62. v-toolbar(:color='$vuetify.dark ? "" : "grey darken-3"', dark, dense, flat)
  63. v-toolbar-title
  64. .subheading Maintenance Mode
  65. v-spacer
  66. v-chip(label, color='white', small).grey--text.text--darken-2 coming soon
  67. v-card-text
  68. .body-1 Maintenance mode restrict access to the site to administrators only, regarless of current permissions.
  69. v-btn.mt-3.ml-0(color='orange darken-2', depressed, dark)
  70. icon-home-alert.mr-2(fillColor='#FFFFFF')
  71. | Turn On Maintenance Mode
  72. v-card.mt-3
  73. v-toolbar(:color='$vuetify.dark ? "" : "grey darken-3"', dark, dense, flat)
  74. v-toolbar-title
  75. .subheading Graph Endpoint
  76. v-spacer
  77. v-chip(label, color='white', small).grey--text.text--darken-2 coming soon
  78. v-card-text
  79. .body-1 The Graph API Endpoint from which remote resources like locales, themes and plugins are fetched.
  80. .caption.red--text Do not change unless you know what you're doing!
  81. v-text-field.my-2(outline, hide-details, background-color='grey lighten-1', label='Graph Endpoint', value='https://graph.requarks.io')
  82. v-btn.ml-0(color='primary', depressed, dark)
  83. v-icon(left) chevron_right
  84. span Save
  85. v-tab-item(key='cache', :transition='false', :reverse-transition='false')
  86. v-card
  87. v-card-text Coming soon
  88. v-tab-item(key='telemetry', :transition='false', :reverse-transition='false')
  89. v-card
  90. v-form
  91. v-card-text
  92. v-subheader What is telemetry?
  93. .body-1.pl-3 Telemetry allows the developers of Wiki.js to improve the software by collecting basic anonymized data about its usage and the host info. #[br] This is entirely optional and #[strong absolutely no] private data (such as content or personal data) is collected.
  94. .body-1.pt-3.pl-3 For maximum privacy, a random client ID is generated every time Wiki.js is started. This ID is used to group requests together while keeping complete anonymity.
  95. v-divider.my-3
  96. v-subheader What is collected?
  97. .body-1.pl-3 When telemetry is enabled, only the following data is transmitted:
  98. v-list(dense)
  99. v-list-tile
  100. v-list-tile-avatar: v-icon info_outline
  101. v-list-tile-content: v-list-tile-title.caption Version of Wiki.js installed
  102. v-list-tile
  103. v-list-tile-avatar: v-icon info_outline
  104. v-list-tile-content: v-list-tile-title.caption Basic OS information (version, CPU cores, RAM available)
  105. v-list-tile
  106. v-list-tile-avatar: v-icon info_outline
  107. v-list-tile-content: v-list-tile-title.caption Crash debug data
  108. v-list-tile
  109. v-list-tile-avatar: v-icon info_outline
  110. v-list-tile-content: v-list-tile-title.caption Setup analytics (step reached)
  111. .body-2.pl-3
  112. v-divider.my-3
  113. v-subheader Settings
  114. .pl-3
  115. v-switch.mt-0(
  116. v-model='telemetry',
  117. label='Enable Telemetry',
  118. :value='true',
  119. color='primary',
  120. hint='Allow Wiki.js to transmit telemetry data.',
  121. persistent-hint
  122. )
  123. .subheading.mt-3.grey--text.text--darken-1 Client ID
  124. .body-1 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  125. v-card-chin
  126. v-btn(color='primary', @click='updateTelemetry')
  127. v-icon(left) chevron_right
  128. | Save Changes
  129. v-spacer
  130. v-btn(outline, color='grey', @click='resetClientId')
  131. v-icon(left) autorenew
  132. span Reset Client ID
  133. v-tab-item(key='support', :transition='false', :reverse-transition='false')
  134. v-card.pa-3
  135. v-subheader Report a bug
  136. .body-1.pl-3 Bugs can be reported using GitHub issues on the project repository page.
  137. v-btn.ml-3.mt-3(depressed, dark, color='grey darken-2', href='https://github.com/Requarks/wiki/issues', target='_blank')
  138. icon-github-circle.mr-3(fillColor='#FFFFFF')
  139. span Submit an issue
  140. v-divider.my-3
  141. v-subheader Suggest a New Feature / Enhancement
  142. .body-1.pl-3 Have an idea for a new feature or something that could be improved?
  143. v-btn.ml-3.mt-3(depressed, dark, color='indigo', href='https://requests.requarks.io/wiki', target='_blank')
  144. v-icon(left) lightbulb_outline
  145. span Submit an idea
  146. v-divider.my-3
  147. v-subheader Questions / Comments
  148. .body-1.pl-3 Join our gitter channel. We are very active and friendly!
  149. v-btn.ml-3.mt-3(depressed, dark, color='pink', href='https://gitter.im/Requarks/wiki', target='_blank')
  150. v-icon(left) chat
  151. span Launch Gitter
  152. </template>
  153. <script>
  154. import IconGithubCircle from 'mdi/GithubCircle'
  155. import IconHomeAlert from 'mdi/HomeAlert'
  156. export default {
  157. components: {
  158. IconGithubCircle,
  159. IconHomeAlert
  160. },
  161. data() {
  162. return {
  163. tab: '0',
  164. moduleTypes: [
  165. { text: 'Authentication', value: 'authentication' },
  166. { text: 'Editor', value: 'editor' },
  167. { text: 'Logging', value: 'logging' },
  168. { text: 'Rendering', value: 'renderer' },
  169. { text: 'Search Engine', value: 'search' },
  170. { text: 'Storage', value: 'storage' }
  171. ],
  172. rescanModuleType: 'authentication',
  173. telemetry: true
  174. }
  175. },
  176. methods: {
  177. updateTelemetry() {
  178. this.$store.commit('showNotification', {
  179. style: 'indigo',
  180. message: `Coming soon...`,
  181. icon: 'directions_boat'
  182. })
  183. },
  184. resetClientId() {
  185. this.$store.commit('showNotification', {
  186. style: 'indigo',
  187. message: `Coming soon...`,
  188. icon: 'directions_boat'
  189. })
  190. }
  191. }
  192. }
  193. </script>
  194. <style lang='scss'>
  195. </style>