update bootstrap-vue and add custom default options for its components

This commit is contained in:
Axolotle 2020-12-16 12:10:05 +01:00
parent 5077072747
commit a77095f7a4
4 changed files with 15 additions and 5 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
.env
*.swp
*~

6
app/package-lock.json generated
View file

@ -2634,9 +2634,9 @@
"integrity": "sha512-o9ppKQioXGqhw8Z7mah6KdTYpNQY//tipnkxppWhPbiSWdD+1raYsnhwEZjkTHYbGee4cVQ0Rx65EhOY/HNLcQ=="
},
"bootstrap-vue": {
"version": "2.18.1",
"resolved": "https://registry.npmjs.org/bootstrap-vue/-/bootstrap-vue-2.18.1.tgz",
"integrity": "sha512-oYKAhEnNuCxtF4gxsdLzijhQpFk7UYPvzhwZvUbnPbZ1eWu2dsc3+fRkY9PMowt5OJRtuVb7ov3lpsI2fraYsA==",
"version": "2.20.1",
"resolved": "https://registry.npmjs.org/bootstrap-vue/-/bootstrap-vue-2.20.1.tgz",
"integrity": "sha512-s+w83q0T2mo/RbFwTM8gExbLJMEOYpdTUqmyFaHv2Ir+TFprMvTWpeAzeNuawJ130W1gePZ3LW3cNp1t/tZbOw==",
"requires": {
"@nuxt/opencollective": "^0.3.2",
"bootstrap": ">=4.5.3 <5.0.0",

View file

@ -12,7 +12,7 @@
"i18n:en": "vue-cli-service i18n:report --src './src/**/*.?(js|vue)' --locales './src/i18n/locales/en.json'"
},
"dependencies": {
"bootstrap-vue": "^2.18.1",
"bootstrap-vue": "^2.20.1",
"core-js": "^3.6.5",
"date-fns": "^2.16.1",
"firacode": "^5.2.0",

View file

@ -9,7 +9,16 @@ import store from './store'
Vue.config.productionTip = false
// Styles are imported in `src/App.vue` <style>
Vue.use(BootstrapVue)
Vue.use(BootstrapVue, {
BSkeleton: { animation: 'none' },
BAlert: { show: true },
BBadge: { pill: true },
BModal: {
bodyBgVariant: 'warning',
centered: true,
bodyClass: ['font-weight-bold', 'rounded-top']
}
})
// Register global components
const requireComponent = require.context('@/components/globals', true, /\.(js|vue)$/i)