2020-02-10 17:08:15 +01:00
|
|
|
import Vuetify from 'vuetify/lib'
|
2020-02-07 16:08:14 +01:00
|
|
|
import 'vuetify/dist/vuetify.min.css'
|
2020-02-09 23:43:59 +01:00
|
|
|
import '~/external/fontawesome/css/fontawesome-all.css'
|
2020-02-07 16:08:14 +01:00
|
|
|
import DefaultLayout from '~/layouts/Default.vue'
|
2020-02-08 16:59:15 +01:00
|
|
|
import SEO from '~/components/SEO.vue'
|
2020-04-03 01:07:53 +02:00
|
|
|
import DownloadButton from '~/components/DownloadButton.vue'
|
2018-05-22 18:41:37 +02:00
|
|
|
|
2020-02-10 15:59:13 +01:00
|
|
|
export default function (Vue, { appOptions, head }) {
|
2020-02-07 16:08:14 +01:00
|
|
|
// First inject custom CSS needed
|
|
|
|
head.link.push({
|
|
|
|
rel: 'stylesheet',
|
2020-02-10 15:59:13 +01:00
|
|
|
href: 'https://fonts.googleapis.com/css?family=Roboto:300,400,500&display=swap'
|
2020-02-07 16:08:14 +01:00
|
|
|
})
|
2018-05-22 18:41:37 +02:00
|
|
|
|
2020-02-07 16:08:14 +01:00
|
|
|
// Remove the generator tag
|
|
|
|
const gIndex = head.meta.findIndex(e => e.name === 'generator')
|
|
|
|
if (gIndex !== -1) head.meta.splice(gIndex, 1)
|
|
|
|
|
2020-02-08 16:59:15 +01:00
|
|
|
// Remove the description tag as we generate a custom one in SEO
|
|
|
|
const dIndex = head.meta.findIndex(e => e.name === 'description')
|
|
|
|
if (dIndex !== -1) head.meta.splice(dIndex, 1)
|
|
|
|
|
2020-02-08 18:34:58 +01:00
|
|
|
// For Google Search Console
|
|
|
|
head.meta.push({
|
|
|
|
name: "google-site-verification",
|
|
|
|
content: "6-jOQTZMaaKrCTbkRoghe5Pd1kbYhyGpOTAgUhoT9HA"
|
|
|
|
})
|
|
|
|
|
2020-02-07 16:08:14 +01:00
|
|
|
const opts = {
|
|
|
|
theme: {
|
2020-02-10 15:59:13 +01:00
|
|
|
themes: {
|
|
|
|
light: {
|
2020-06-15 21:49:01 +02:00
|
|
|
ryu_blue: '#02C5E5',
|
|
|
|
ryu_orange: '#FF5F55',
|
2020-02-10 15:59:13 +01:00
|
|
|
},
|
|
|
|
dark: {
|
2020-06-15 21:49:01 +02:00
|
|
|
ryu_blue: '#02C5E5',
|
|
|
|
ryu_orange: '#FF5F55',
|
2020-02-10 15:59:13 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
icons: {
|
|
|
|
iconfont: 'fa',
|
|
|
|
},
|
2020-02-07 16:08:14 +01:00
|
|
|
} //opts includes, vuetify themes, icons, etc.
|
|
|
|
|
2020-02-10 15:59:13 +01:00
|
|
|
Vue.use(Vuetify)
|
|
|
|
|
|
|
|
appOptions.vuetify = new Vuetify(opts);
|
2020-02-07 16:08:14 +01:00
|
|
|
|
|
|
|
// Disable production tip
|
2020-02-10 15:59:13 +01:00
|
|
|
//Vue.config.productionTip = false;
|
2020-02-07 16:08:14 +01:00
|
|
|
|
|
|
|
// Set default layout as a global component
|
|
|
|
Vue.component('Layout', DefaultLayout)
|
2020-02-08 16:59:15 +01:00
|
|
|
|
|
|
|
// Set the SEO component
|
|
|
|
Vue.component('SEO', SEO)
|
2020-04-03 01:07:53 +02:00
|
|
|
|
|
|
|
// Generic Components
|
|
|
|
Vue.component('DownloadButton', DownloadButton)
|
2020-02-07 16:08:14 +01:00
|
|
|
}
|