25 lines
710 B
JavaScript
25 lines
710 B
JavaScript
/* eslint-disable no-proto */
|
|
import postMixin from '@theme/mixins/posts'
|
|
import localMixin from '@theme/mixins/locales'
|
|
import { addLinkToHead, addScriptToHead } from '@theme/helpers/utils'
|
|
import { registerCodeThemeCss, interceptRouterError } from '@theme/helpers/other'
|
|
import VueCompositionAPI from '@vue/composition-api'
|
|
|
|
export default ({
|
|
Vue,
|
|
siteData,
|
|
isServer,
|
|
router
|
|
}) => {
|
|
Vue.use(VueCompositionAPI)
|
|
Vue.mixin(postMixin)
|
|
Vue.mixin(localMixin)
|
|
if (!isServer) {
|
|
addLinkToHead('//at.alicdn.com/t/font_1030519_2ciwdtb4x65.css')
|
|
addScriptToHead('//kit.fontawesome.com/51b01de608.js')
|
|
registerCodeThemeCss(siteData.themeConfig.codeTheme)
|
|
}
|
|
|
|
interceptRouterError(router)
|
|
}
|