2017-04-01 21:07:01 +00:00
|
|
|
'use strict'
|
2016-08-30 02:19:47 +00:00
|
|
|
|
2017-04-14 18:15:11 +00:00
|
|
|
import MathJax from 'mathjax'
|
2016-08-30 02:19:47 +00:00
|
|
|
|
2017-05-23 04:27:16 +00:00
|
|
|
export default {
|
|
|
|
name: 'content-view',
|
|
|
|
data() {
|
|
|
|
return {}
|
|
|
|
},
|
|
|
|
mounted() {
|
2017-04-14 18:15:11 +00:00
|
|
|
MathJax.Hub.Config({
|
|
|
|
jax: ['input/TeX', 'input/MathML', 'output/SVG'],
|
|
|
|
extensions: ['tex2jax.js', 'mml2jax.js'],
|
|
|
|
TeX: {
|
|
|
|
extensions: ['AMSmath.js', 'AMSsymbols.js', 'noErrors.js', 'noUndefined.js']
|
|
|
|
},
|
|
|
|
SVG: {
|
|
|
|
scale: 120,
|
|
|
|
font: 'STIX-Web'
|
|
|
|
},
|
2017-04-15 17:15:23 +00:00
|
|
|
tex2jax: {
|
|
|
|
preview: 'none'
|
|
|
|
},
|
|
|
|
showMathMenu: false,
|
|
|
|
showProcessingMessages: false,
|
|
|
|
messageStyle: 'none'
|
2017-04-14 18:15:11 +00:00
|
|
|
})
|
2017-04-15 17:15:23 +00:00
|
|
|
MathJax.Hub.Configured()
|
2017-04-01 21:07:01 +00:00
|
|
|
}
|
2017-02-09 01:52:37 +00:00
|
|
|
}
|
2017-05-23 04:27:16 +00:00
|
|
|
|
|
|
|
// module.exports = (alerts) => {
|
|
|
|
// if ($('#page-type-view').length) {
|
|
|
|
// let currentBasePath = ($('#page-type-view').data('entrypath') !== 'home') ? $('#page-type-view').data('entrypath') : ''
|
|
|
|
// require('../modals/create.js')(currentBasePath)
|
|
|
|
// require('../modals/move.js')(currentBasePath, alerts)
|
|
|
|
// }
|
|
|
|
// }
|