mirror of https://github.com/requarks/wiki
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.
39 lines
946 B
39 lines
946 B
8 years ago
|
'use strict'
|
||
8 years ago
|
|
||
8 years ago
|
import MathJax from 'mathjax'
|
||
8 years ago
|
|
||
8 years ago
|
export default {
|
||
|
name: 'content-view',
|
||
|
data() {
|
||
|
return {}
|
||
|
},
|
||
|
mounted() {
|
||
8 years ago
|
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'
|
||
|
},
|
||
8 years ago
|
tex2jax: {
|
||
|
preview: 'none'
|
||
|
},
|
||
|
showMathMenu: false,
|
||
|
showProcessingMessages: false,
|
||
|
messageStyle: 'none'
|
||
8 years ago
|
})
|
||
8 years ago
|
MathJax.Hub.Configured()
|
||
8 years ago
|
}
|
||
8 years ago
|
}
|
||
8 years ago
|
|
||
|
// 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)
|
||
|
// }
|
||
|
// }
|