content-view.component.js 946 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. 'use strict'
  2. import MathJax from 'mathjax'
  3. export default {
  4. name: 'content-view',
  5. data() {
  6. return {}
  7. },
  8. mounted() {
  9. MathJax.Hub.Config({
  10. jax: ['input/TeX', 'input/MathML', 'output/SVG'],
  11. extensions: ['tex2jax.js', 'mml2jax.js'],
  12. TeX: {
  13. extensions: ['AMSmath.js', 'AMSsymbols.js', 'noErrors.js', 'noUndefined.js']
  14. },
  15. SVG: {
  16. scale: 120,
  17. font: 'STIX-Web'
  18. },
  19. tex2jax: {
  20. preview: 'none'
  21. },
  22. showMathMenu: false,
  23. showProcessingMessages: false,
  24. messageStyle: 'none'
  25. })
  26. MathJax.Hub.Configured()
  27. }
  28. }
  29. // module.exports = (alerts) => {
  30. // if ($('#page-type-view').length) {
  31. // let currentBasePath = ($('#page-type-view').data('entrypath') !== 'home') ? $('#page-type-view').data('entrypath') : ''
  32. // require('../modals/create.js')(currentBasePath)
  33. // require('../modals/move.js')(currentBasePath, alerts)
  34. // }
  35. // }