admin-dev-flags.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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-console.svg', alt='Developer Tools', style='width: 80px;')
  7. .admin-header-title
  8. .headline.primary--text Developer Tools
  9. .subheading.grey--text Flags
  10. v-spacer
  11. v-btn(color='success', depressed, @click='save', large)
  12. v-icon(left) check
  13. span {{$t('common:actions.apply')}}
  14. v-card.mt-3.white.grey--text.text--darken-3
  15. v-alert(color='red', value='true', icon='warning')
  16. span Do NOT enable these flags unless you know what you're doing!
  17. .caption Doing so may result in data loss or broken installation!
  18. v-card-text
  19. v-switch.mt-3(
  20. color='red'
  21. hint='Log all queries made to the database to console.'
  22. persistent-hint
  23. label='SQL Query Logging'
  24. v-model='flags.sqllog'
  25. )
  26. //- v-divider.mt-3
  27. //- v-switch.mt-3(
  28. //- color='primary'
  29. //- hint='Log all queries made to the database to console.'
  30. //- persistent-hint
  31. //- label='SQL Query Log'
  32. //- v-model='flags.sqllog'
  33. //- )
  34. </template>
  35. <script>
  36. import _ from 'lodash'
  37. export default {
  38. data() {
  39. return {
  40. flags: {
  41. sqllog: false
  42. }
  43. }
  44. },
  45. methods: {
  46. save() {
  47. }
  48. }
  49. }
  50. </script>
  51. <style lang='scss'>
  52. </style>