add icons and splitpanes plugin

This commit is contained in:
Jonathan Baecker 2020-04-08 17:23:58 +02:00
parent d3459f44b0
commit e1ca81ed90
2 changed files with 23 additions and 3 deletions

View File

@ -36,12 +36,15 @@ export default {
** Global CSS ** Global CSS
*/ */
css: [ css: [
'@/assets/css/bootstrap.min.css' '@/assets/css/bootstrap.min.css',
'@/assets/css/globals.css'
], ],
/* /*
** Plugins to load before mounting the App ** Plugins to load before mounting the App
*/ */
plugins: [], plugins: [
{ src: '~plugins/splitpanes.js', ssr: false }
],
/* /*
** Nuxt.js dev-modules ** Nuxt.js dev-modules
*/ */
@ -55,11 +58,12 @@ export default {
modules: [ modules: [
// Doc: https://bootstrap-vue.js.org // Doc: https://bootstrap-vue.js.org
'bootstrap-vue/nuxt', 'bootstrap-vue/nuxt',
// Doc: https://axios.nuxtjs.org/usage
'@nuxtjs/axios', '@nuxtjs/axios',
'@nuxtjs/style-resources',
// Doc: https://github.com/nuxt-community/dotenv-module // Doc: https://github.com/nuxt-community/dotenv-module
'@nuxtjs/dotenv' '@nuxtjs/dotenv'
], ],
/* /*
** Axios module configuration ** Axios module configuration
** See https://axios.nuxtjs.org/options ** See https://axios.nuxtjs.org/options
@ -68,9 +72,19 @@ export default {
baseURL: process.env.API_URL baseURL: process.env.API_URL
}, },
/*
styleResources: {
scss: [
'@/assets/css/_variables.scss',
]
},
*/
bootstrapVue: { bootstrapVue: {
bootstrapCSS: false, bootstrapCSS: false,
icons: true
}, },
/* /*
** Build configuration ** Build configuration
*/ */

View File

@ -0,0 +1,6 @@
import Vue from 'vue'
import { Splitpanes, Pane } from 'splitpanes'
import 'splitpanes/dist/splitpanes.css'
Vue.component('splitpanes', Splitpanes)
Vue.component('pane', Pane)