mirror of
https://github.com/anatolykopyl/vue-highlights.git
synced 2026-03-26 12:55:35 +00:00
first commit
This commit is contained in:
29
docs-src/main.js
Normal file
29
docs-src/main.js
Normal file
@@ -0,0 +1,29 @@
|
||||
import Vue from 'vue'
|
||||
import VueRouter from 'vue-router'
|
||||
import VueHighlights, { autoLink, autoHighlight } from '../src'
|
||||
import App from './App.vue'
|
||||
import Home from './Home.vue'
|
||||
import Docs from './Docs.vue'
|
||||
|
||||
import './styles/main.styl'
|
||||
|
||||
Vue.use(VueRouter)
|
||||
|
||||
const router = new VueRouter({
|
||||
routes: [
|
||||
{ path: '/', name: 'home', component: Home },
|
||||
{ path: '/docs', name: 'docs', component: Docs },
|
||||
{ path: '*', component: Home }
|
||||
]
|
||||
})
|
||||
|
||||
Vue.component(VueHighlights.name, VueHighlights)
|
||||
Vue.prototype.$autoLink = autoLink
|
||||
Vue.prototype.$autoHighlight = autoHighlight
|
||||
|
||||
Vue.config.productionTip = false
|
||||
|
||||
new Vue({
|
||||
router,
|
||||
render: h => h(App)
|
||||
}).$mount('#app')
|
||||
Reference in New Issue
Block a user