refactor: Upgrade to Fusebox 2.0

This commit is contained in:
NGPixel
2017-05-04 22:41:33 -04:00
parent 3e1c4a086c
commit 3fa941ce19
7 changed files with 149 additions and 51 deletions

View File

@@ -1,12 +1,23 @@
'use strict'
/* eslint-disable no-new */
import $ from 'jquery'
import MathJax from 'mathjax'
import * as CopyPath from '../components/copy-path.vue'
import Vue from 'vue'
module.exports = (alerts) => {
if ($('#page-type-view').length) {
let currentBasePath = ($('#page-type-view').data('entrypath') !== 'home') ? $('#page-type-view').data('entrypath') : ''
// Copy Path
new Vue({
el: '.modal-copypath',
render: h => h(CopyPath)
})
// MathJax Render
MathJax.Hub.Config({