admin-utilities.vue 7.9 KB

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