admin-editor.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template lang='pug'>
  2. v-card(tile, :color='$vuetify.dark ? "grey darken-4" : "grey lighten-5"')
  3. .pa-3.pt-4
  4. .admin-header-icon: v-icon(size='80', color='grey lighten-2') transform
  5. .headline.primary--text Editor
  6. .subheading.grey--text Configure the content editor
  7. v-tabs(:color='$vuetify.dark ? "primary" : "grey lighten-4"', fixed-tabs, :slider-color='$vuetify.dark ? "white" : "primary"', show-arrows)
  8. v-tab(key='settings'): v-icon settings
  9. v-tab(key='code') Markdown
  10. v-tab-item(key='settings', :transition='false', :reverse-transition='false')
  11. v-card.pa-3(flat, tile)
  12. .body-2.grey--text.text--darken-1 Select which editors to enable:
  13. .caption.grey--text.pb-2 Some editors require additional configuration in their dedicated tab (when selected).
  14. v-form
  15. v-radio-group(v-model='selectedEditor')
  16. v-radio(v-for='(editor, n) in editors', :key='n', :label='editor.text', :value='editor.value', color='primary')
  17. v-tab-item(key='code', :transition='false', :reverse-transition='false')
  18. v-card.pa-3(flat, tile)
  19. v-form
  20. v-subheader Editor Configuration
  21. .body-1.ml-3 This editor has no configuration options you can modify.
  22. v-card-chin
  23. v-btn(color='primary', @click='save')
  24. v-icon(left) chevron_right
  25. span Apply Configuration
  26. v-spacer
  27. v-btn(icon, @click='refresh')
  28. v-icon.grey--text refresh
  29. </template>
  30. <script>
  31. export default {
  32. data() {
  33. return {
  34. editors: [
  35. { text: 'Markdown (default)', value: 'code' }
  36. ],
  37. selectedEditor: 'code'
  38. }
  39. },
  40. methods: {
  41. save() {},
  42. refresh() {}
  43. }
  44. }
  45. </script>
  46. <style lang='scss'>
  47. </style>