Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Commit 8a63ef5

Browse files
committed
feat(avatar): add component avatar
1 parent 4d3a0d5 commit 8a63ef5

31 files changed

+274
-155
lines changed

docs/layouts/docs.vue

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414

1515
<b-col cols="12" md="9" xl="8" class="pb-md-3 pl-md-5 bd-content">
1616
<b-button-group class="my-2 float-right">
17-
<b-btn size="sm" variant="success" :to="exampleURL" v-if="exampleURL">
18-
Example
19-
</b-btn>
2017
<b-btn size="sm" variant="light" :href="issueURL" target="_blank">
2118
Report an issue
2219
</b-btn>
@@ -44,13 +41,6 @@ const mSearch = () =>
4441
export default {
4542
components: { mSidebar, mNav, mSearch, mToc },
4643
computed: {
47-
exampleURL() {
48-
const name = this.$route.name
49-
const slug = this.$route.params.slug
50-
if (name === 'docs-components-slug') {
51-
return `/docs/example/${slug}`
52-
}
53-
},
5444
editPageURL() {
5545
const base = 'https://github.com/ycs77/bootstrap-vue-arsenic/tree/develop'
5646
let path = '/'

docs/layouts/none.vue

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/nuxt.config.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,6 @@ module.exports = {
126126
return (
127127
[]
128128
.concat(scan('src', 'components'))
129-
.concat(
130-
scan('src', 'components')
131-
.map(path => path.replace('components', 'example'))
132-
)
133129
// .concat(scan('src', 'directives', ['modal', 'toggle']))
134130
// .concat(scan('docs/markdown', 'reference'))
135131
.concat(scan('docs/markdown', 'misc'))

docs/pages/docs/components/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default {
22
fetch({ redirect }) {
3-
redirect('/docs/components/menu')
3+
redirect('/docs/components/avatar')
44
}
55
}

docs/pages/docs/example/_slug.vue

Lines changed: 0 additions & 57 deletions
This file was deleted.

docs/pages/docs/example/index.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/static/user.svg

Lines changed: 1 addition & 0 deletions
Loading

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@
5858
],
5959
"dependencies": {
6060
"bootstrap": "^4.3.1",
61-
"bootstrap-vue": "^2.0.0-rc.13"
61+
"bootstrap-vue": "^2.0.0-rc.13",
62+
"vue-functional-data-merge": "^2.0.7"
6263
},
6364
"devDependencies": {
6465
"@babel/cli": "^7.2.3",

scripts/rollup.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ const dist = path.resolve(base, 'dist')
1515
// since they are expected to be provided later.
1616
// We want to include some of them in the build, so we exclude it here.
1717
const externalExcludes = [
18-
// 'popper.js', 'vue-functional-data-merge'
18+
// 'popper.js',
19+
'vue-functional-data-merge'
1920
]
2021

2122
// The base rollup configuration

src/_variables.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Variables
2+
//
3+
// Variables should follow the `$component-state-property-size` formula for
4+
// consistent naming. Ex: $nav-link-disabled-color and $modal-content-box-shadow-xs.
5+
6+
// Avatar
7+
8+
$avatar-size: 2.5rem !default;

0 commit comments

Comments
 (0)