Skip to content

Commit 447c7d9

Browse files
committed
refactor: update shared components
1 parent d9fc9e5 commit 447c7d9

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

src/components/AppFooter.vue

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
<CFooter>
33
<div>
44
<a href="https://coreui.io" target="_blank">CoreUI</a>
5-
<span class="ml-1">&copy; {{new Date().getFullYear()}} creativeLabs.</span>
5+
<span class="ms-1"
6+
>&copy; {{ new Date().getFullYear() }} creativeLabs.</span
7+
>
68
</div>
7-
<div class="mfs-auto">
9+
<div class="ms-auto">
810
<span class="me-1" target="_blank">Powered by</span>
911
<a href="https://coreui.io/vue">CoreUI for Vue</a>
1012
</div>
@@ -13,6 +15,6 @@
1315

1416
<script>
1517
export default {
16-
name: "AppFooter",
17-
};
18+
name: 'AppFooter',
19+
}
1820
</script>

src/components/DocsCallout.vue

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<template>
22
<CCallout color="info" class="bg-white">
3-
A Vue {{name}} component {{plural ? 'have' : 'has'}} been created as a native
4-
Vue.js version of Bootstrap {{name}}. {{name}} {{plural ? 'are' : 'is'}}
3+
A Vue {{ name }} component {{ plural ? 'have' : 'has' }} been created as a
4+
native Vue.js version of Bootstrap {{ name }}. {{ name }}
5+
{{ plural ? 'are' : 'is' }}
56
delivered with some new features, variants, and unique design that matches
67
CoreUI Design System requirements.
78
<br />
@@ -29,7 +30,7 @@ export default {
2930
default: undefined,
3031
required: false,
3132
},
32-
plural: Boolean
33+
plural: Boolean,
3334
},
3435
setup(props) {
3536
const href = `https://coreui.io/vue/docs/${packageJson.config.coreui_library_short_version}/${props.href}`

src/components/DocsExample.vue

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
</template>
2323

2424
<script>
25-
import packageJson from "../../package.json";
25+
import pkg from '../../package.json'
2626
export default {
27-
name: "DocsExample",
27+
name: 'DocsExample',
2828
props: {
2929
href: {
3030
type: String,
@@ -33,11 +33,11 @@ export default {
3333
},
3434
},
3535
setup(props) {
36-
const href = `https://coreui.io/vue/docs/${packageJson.config.coreui_library_short_version}/${props.href}`;
36+
const href = `https://coreui.io/vue/docs/${pkg.config.coreui_library_short_version}/${props.href}`
3737
3838
return {
3939
href,
40-
};
40+
}
4141
},
42-
};
42+
}
4343
</script>

0 commit comments

Comments
 (0)