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.

38 lines
946 B

  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. // }