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.
41 lines
947 B
41 lines
947 B
import 'babel-polyfill'
|
|
import '../components/style.js'
|
|
import './index.less'
|
|
import 'highlight.js/styles/solarized-light.css'
|
|
import Vue from 'vue'
|
|
import VueRouter from 'vue-router'
|
|
import VueClipboard from 'vue-clipboard2'
|
|
import routes from './routes'
|
|
import Md from './components/md'
|
|
import Api from './components/api'
|
|
import './components'
|
|
import demoBox from './components/demoBox'
|
|
import demoContainer from './components/demoContainer'
|
|
|
|
const mountedCallback = {
|
|
install: (Vue, options) => {
|
|
Vue.directive('mountedCallback', {
|
|
inserted: function (el, binding, vnode) {
|
|
binding.value(vnode)
|
|
},
|
|
})
|
|
},
|
|
}
|
|
|
|
Vue.use(mountedCallback)
|
|
Vue.use(VueClipboard)
|
|
Vue.use(VueRouter)
|
|
Vue.component(Md.name, Md)
|
|
Vue.component(Api.name, Api)
|
|
Vue.component('demo-box', demoBox)
|
|
Vue.component('demo-container', demoContainer)
|
|
|
|
const router = new VueRouter({
|
|
mode: 'history',
|
|
routes,
|
|
})
|
|
new Vue({
|
|
el: '#app',
|
|
router,
|
|
})
|