-
Notifications
You must be signed in to change notification settings - Fork 10
/
enhanceApp.js
62 lines (51 loc) · 2.71 KB
/
enhanceApp.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import Vuetify from 'vuetify'
import './styles/vuetify.css' // tweaked original css
import '@mdi/font/scss/materialdesignicons.scss'
import { library } from '@fortawesome/fontawesome-svg-core'
import { fab } from '@fortawesome/free-brands-svg-icons'
import { fas } from '@fortawesome/free-solid-svg-icons'
import { far } from '@fortawesome/free-regular-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
library.add(fab, fas, far)
import VueScrollactive from 'vue-scrollactive'
import TitleModifier from './mixins/TitleModifier'
import { Pagination, SimplePagination } from '@vuepress/plugin-blog/lib/client/components'
import VuetifyPagination from './components/Pagination'
import DefaultBeforeSidebar from './components/extensions/BeforeSidebar'
import DefaultAfterSidebar from './components/extensions/AfterSidebar'
import DefaultBeforeSticky from './components/extensions/BeforeSticky'
import DefaultAfterSticky from './components/extensions/AfterSticky'
import DefaultBeforePageList from './components/extensions/BeforePageList'
import DefaultBeforePagination from './components/extensions/BeforePagination'
import DefaultAfterPageList from './components/extensions/AfterPageList'
import DefaultBeforePage from './components/extensions/BeforePage'
import DefaultBeforePageSection from './components/extensions/BeforePageSection'
import DefaultAfterPage from './components/extensions/AfterPage'
import DefaultAfterFooter from './components/extensions/AfterFooter'
// @see https://vuepress.vuejs.org/theme/writing-a-theme.html#app-level-enhancements
export default ({
Vue, // the version of Vue being used in the VuePress app
options, // the options for the root Vue instance
router, // the router instance for the app
siteData // site metadata
}) => {
Vue.use(Vuetify)
options.vuetify = new Vuetify()
Vue.use(VueScrollactive)
Vue.mixin(TitleModifier)
Vue.component('Pagination', Pagination)
Vue.component('SimplePagination', SimplePagination)
Vue.component('VuetifyPagination', VuetifyPagination)
Vue.component('faIcon', FontAwesomeIcon)
Vue.component('DefaultBeforeSidebar', DefaultBeforeSidebar)
Vue.component('DefaultAfterSidebar', DefaultAfterSidebar)
Vue.component('DefaultBeforeSticky', DefaultBeforeSticky)
Vue.component('DefaultAfterSticky', DefaultAfterSticky)
Vue.component('DefaultBeforePageList', DefaultBeforePageList)
Vue.component('DefaultBeforePagination', DefaultBeforePagination)
Vue.component('DefaultAfterPageList', DefaultAfterPageList)
Vue.component('DefaultBeforePage', DefaultBeforePage)
Vue.component('DefaultBeforePageSection', DefaultBeforePageSection)
Vue.component('DefaultAfterPage', DefaultAfterPage)
Vue.component('DefaultAfterFooter', DefaultAfterFooter)
}