Ryujinx-Website/src/main.js

63 lines
1.6 KiB
JavaScript
Raw Normal View History

2020-02-10 17:08:15 +01:00
import Vuetify from 'vuetify/lib'
import 'vuetify/dist/vuetify.min.css'
import '~/external/fontawesome/css/fontawesome-all.css'
import DefaultLayout from '~/layouts/Default.vue'
2020-02-08 16:59:15 +01:00
import SEO from '~/components/SEO.vue'
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 }) {
// 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'
})
2018-05-22 18:41:37 +02: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)
// For Google Search Console
head.meta.push({
name: "google-site-verification",
content: "6-jOQTZMaaKrCTbkRoghe5Pd1kbYhyGpOTAgUhoT9HA"
})
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',
},
} //opts includes, vuetify themes, icons, etc.
2020-02-10 15:59:13 +01:00
Vue.use(Vuetify)
appOptions.vuetify = new Vuetify(opts);
// Disable production tip
2020-02-10 15:59:13 +01:00
//Vue.config.productionTip = false;
// 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)
// Generic Components
Vue.component('DownloadButton', DownloadButton)
}