Skip to content

Commit a77095f

Browse files
committed
update bootstrap-vue and add custom default options for its components
1 parent 5077072 commit a77095f

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.env
12
*.swp
23
*~
34

app/package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"i18n:en": "vue-cli-service i18n:report --src './src/**/*.?(js|vue)' --locales './src/i18n/locales/en.json'"
1313
},
1414
"dependencies": {
15-
"bootstrap-vue": "^2.18.1",
15+
"bootstrap-vue": "^2.20.1",
1616
"core-js": "^3.6.5",
1717
"date-fns": "^2.16.1",
1818
"firacode": "^5.2.0",

app/src/main.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,16 @@ import store from './store'
99
Vue.config.productionTip = false
1010

1111
// Styles are imported in `src/App.vue` <style>
12-
Vue.use(BootstrapVue)
12+
Vue.use(BootstrapVue, {
13+
BSkeleton: { animation: 'none' },
14+
BAlert: { show: true },
15+
BBadge: { pill: true },
16+
BModal: {
17+
bodyBgVariant: 'warning',
18+
centered: true,
19+
bodyClass: ['font-weight-bold', 'rounded-top']
20+
}
21+
})
1322

1423
// Register global components
1524
const requireComponent = require.context('@/components/globals', true, /\.(js|vue)$/i)

0 commit comments

Comments
 (0)