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.

66 lines
2.4 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-web-design.svg', alt='Editor', style='width: 80px;')
  7. .admin-header-title
  8. .headline.primary--text Editor
  9. .subheading.grey--text Configure the content editors #[v-chip(label, color='primary', small).white--text coming soon]
  10. v-spacer
  11. v-btn(outline, color='grey', @click='refresh', large)
  12. v-icon refresh
  13. v-btn(color='success', @click='save', depressed, large)
  14. v-icon(left) check
  15. span {{$t('common:actions.apply')}}
  16. v-card.mt-3
  17. v-tabs(color='grey darken-2', fixed-tabs, slider-color='white', show-arrows, dark)
  18. v-tab(key='settings'): v-icon settings
  19. v-tab(key='code') Markdown
  20. v-tab-item(key='settings', :transition='false', :reverse-transition='false')
  21. v-card.pa-3(flat, tile)
  22. .body-2.grey--text.text--darken-1 Select which editors to enable:
  23. .caption.grey--text.pb-2 Some editors require additional configuration in their dedicated tab (when selected).
  24. v-form
  25. v-checkbox.my-0(
  26. v-for='editor in editors'
  27. v-model='editor.isEnabled'
  28. :key='editor.key'
  29. :label='editor.title'
  30. color='primary'
  31. disabled
  32. hide-details
  33. )
  34. v-tab-item(key='code', :transition='false', :reverse-transition='false')
  35. v-card.wiki-form.pa-3(flat, tile)
  36. v-form
  37. v-subheader Editor Configuration
  38. .body-1.ml-3 This editor has no configuration options you can modify.
  39. </template>
  40. <script>
  41. export default {
  42. data() {
  43. return {
  44. editors: [
  45. { title: 'API Docs', key: 'api', isEnabled: false },
  46. { title: 'Code', key: 'code', isEnabled: true },
  47. { title: 'Markdown', key: 'markdown', isEnabled: true },
  48. { title: 'Tabular', key: 'tabular', isEnabled: false },
  49. { title: 'Visual Builder', key: 'visual', isEnabled: false },
  50. { title: 'WikiText', key: 'wikitext', isEnabled: false }
  51. ]
  52. }
  53. },
  54. methods: {
  55. save() {},
  56. refresh() {}
  57. }
  58. }
  59. </script>
  60. <style lang='scss'>
  61. </style>