Skip to content
This repository was archived by the owner on Dec 24, 2021. It is now read-only.

Commit e670826

Browse files
committed
fix: template fixes, updates and refactors
1 parent 4f43f96 commit e670826

19 files changed

+106
-79
lines changed

src/containers/TheFooter.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<template>
22
<CFooter>
33
<div>
4-
<a href="https://coreui.io">CoreUI</a>
4+
<a href="https://coreui.io" target="_blank">CoreUI</a>
55
<span class="ml-1">&copy; 2019 creativeLabs.</span>
66
</div>
77
<div class="ml-auto">
88
<span class="mr-1">Powered by</span>
9-
<a href="https://coreui.io">CoreUI for Vue</a>
9+
<a href="https://coreui.io/vue" target="_blank">CoreUI for Vue</a>
1010
</div>
1111
</CFooter>
1212
</template>

src/containers/TheHeader.vue

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,21 @@
22
<CHeader fixed with-subheader light>
33
<CToggler
44
in-header
5-
class="c-header-toggler ml-3 d-lg-none"
5+
class="ml-3 d-lg-none"
66
v-c-emit-root-event:toggle-sidebar-mobile
77
/>
88
<CToggler
99
in-header
10-
class="c-header-toggler ml-3 d-md-down-none"
10+
class="ml-3 d-md-down-none"
1111
v-c-emit-root-event:toggle-sidebar
1212
/>
13-
<img
14-
class="c-header-brand mx-auto d-lg-none"
15-
src="img/brand/coreui-base.svg"
16-
width="97"
17-
height="46"
13+
<CHeaderBrand
14+
class="mx-auto d-lg-none"
15+
src="img/brand/coreui-base.svg"
16+
width="97"
17+
height="46"
1818
alt="CoreUI Logo"
19+
:wrappedInLink="{ href: 'https://coreui.io', target: '_blank'}"
1920
/>
2021
<CHeaderNav class="d-md-down-none mr-auto">
2122
<CHeaderNavItem class="px-3" to="/dashboard">Dashboard</CHeaderNavItem>
@@ -34,9 +35,9 @@
3435
</CHeaderNavItem>
3536
<TheHeaderDropdownAccnt/>
3637
</CHeaderNav>
37-
<div class="c-subheader px-3">
38+
<CSubheader class="px-3">
3839
<CBreadcrumbRouter class="border-0"/>
39-
</div>
40+
</CSubheader>
4041
</CHeader>
4142
</template>
4243

src/containers/TheHeaderDropdownAccnt.vue

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,16 @@
55
class="c-header-nav-items"
66
placement="bottom-end"
77
add-menu-classes="pt-0"
8-
:show.sync="show"
98
>
109
<template #toggler>
11-
<CLink class="c-header-nav-link" @click="show = !show">
10+
<CHeaderNavItem only-link>
1211
<div class="c-avatar">
1312
<img
1413
src="img/avatars/6.jpg"
1514
class="c-avatar-img "
1615
/>
1716
</div>
18-
</CLink>
17+
</CHeaderNavItem>
1918
</template>
2019
<CDropdownHeader tag="div" class="text-center" color="light">
2120
<strong>Account</strong>
@@ -72,8 +71,7 @@ export default {
7271
name: 'TheHeaderDropdownAccnt',
7372
data () {
7473
return {
75-
itemsCount: 42,
76-
show: false
74+
itemsCount: 42
7775
}
7876
}
7977
}

src/containers/TheSidebar.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
:show.sync="show"
66
>
77
<CSidebarBrand
8-
fullSrc="img/brand/coreui-base-white.svg"
9-
minimizedSrc="img/brand/coreui-signet-white.svg"
8+
:imgFull="{ width: 118, height: 46, alt: 'Logo', src: 'img/brand/coreui-base-white.svg'}"
9+
:imgMinimized="{ width: 118, height: 46, alt: 'Logo', src: 'img/brand/coreui-signet-white.svg'}"
1010
:wrappedInLink="{ href: 'https://coreui.io/', target: '_blank'}"
1111
/>
1212
<!-- <CSidebarHeader/> -->

src/views/base/Breadcrumbs.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default {
3232
return {
3333
items: [
3434
{
35-
text: '<b>Admin</b>',
35+
text: 'Admin',
3636
href: '#'
3737
},
3838
{

src/views/base/Collapses.vue

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,20 @@
1717
</div>
1818
</CCardHeader>
1919
<CCardBody>
20-
<CButton id="collapse1" color="primary">
20+
<CButton @click="collapse = !collapse" color="primary">
2121
Toggle Collapse
2222
</CButton>
23-
<CCollapse toggler="collapse1" class="mt-2">
23+
<CCollapse :show="collapse" class="mt-2">
2424
<CCard body-wrapper>
2525
<p class="card-text">Collapse contents Here</p>
26-
<CButton id="collapse2" size="sm" color="secondary">
26+
<CButton
27+
@click="innerCollapse = !innerCollapse"
28+
size="sm"
29+
color="secondary"
30+
>
2731
Toggle Inner Collapse
2832
</CButton>
29-
<CCollapse toggler="collapse2" class="mt-2">
33+
<CCollapse :show="innerCollapse" class="mt-2">
3034
<CCard body-wrapper>Hello!</CCard>
3135
</CCollapse>
3236
</CCard>
@@ -42,7 +46,8 @@ export default {
4246
name: 'Collapses',
4347
data () {
4448
return {
45-
showCollapse: true,
49+
collapse: false,
50+
innerCollapse: false,
4651
text: `
4752
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry
4853
richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor

src/views/base/Forms.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,10 @@
149149
horizontal
150150
disabled
151151
/>
152-
<CInput
152+
<CTextarea
153153
label="Textarea"
154154
placeholder="Content..."
155155
horizontal
156-
textarea="true"
157156
rows="9"
158157
/>
159158
<CSelect

src/views/base/Jumbotrons.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
</div>
1919
</CCardHeader>
2020
<CCardBody>
21-
<CJumbotron header="Bootstrap 4" lead="Bootstrap 4 Components for Vue.js 2">
21+
<CJumbotron>
22+
<h1 class="display-3">Bootstrap 4</h1>
23+
<p class="lead">Bootstrap 4 Components for Vue.js 2</p>
2224
<p>For more information visit website</p>
2325
<CButton color="primary" href="#">More Info</CButton>
2426
</CJumbotron>
@@ -33,7 +35,8 @@
3335
</CCardHeader>
3436
<CCardBody>
3537
<CJumbotron header="Bootstrap 4" lead="">
36-
<p slot="lead" class="lead">
38+
<h1 class="display-3">Bootstrap 4</h1>
39+
<p class="lead">
3740
This is a simple hero unit, a simple jumbotron-style component for
3841
calling extra attention to featured content or information.
3942
</p>
@@ -61,9 +64,9 @@
6164
color="info"
6265
text-color="white"
6366
border-color="dark"
64-
header="Bootstrap 4"
6567
>
66-
<p slot="lead" class="lead">
68+
<h1 class="display-3">Bootstrap 4</h1>
69+
<p class="lead">
6770
This is a simple hero unit, a simple jumbotron-style component for
6871
calling extra attention to featured content or information.
6972
</p>

src/views/base/Navbars.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
<CNavbarBrand>CoreuiVue</CNavbarBrand>
9292
<CCollapse :show="navbarText" navbar>
9393
<CNavbarNav>
94-
<span class="navbar-text">Navbar text</span>
94+
<CNavbarText>Navbar text</CNavbarText>
9595
</CNavbarNav>
9696
</CCollapse>
9797
</CNavbar>

src/views/notifications/Alerts.vue

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
<CAlert
101101
color="secondary"
102102
closeButton
103-
:show.sync="dismissibleAlerts[0]"
103+
:show.sync="alert1"
104104
>
105105
Dismissible Alert!
106106
</CAlert>
@@ -109,25 +109,24 @@
109109
color="secondary"
110110
closeButton
111111
fade
112-
:show.sync="dismissibleAlerts[1]"
112+
:show.sync="alert2"
113113
>
114114
Dismissible Alert with fade effect!
115115
</CAlert>
116116

117117
<CAlert
118118
color="secondary"
119-
:show.sync="dismissibleAlerts[2]"
120-
v-slot="{dismiss}"
119+
:show.sync="alert3"
121120
class="alert-dismissible"
122121
>
123122
Dismissible Alert with custom button!
124123
<CButton
125124
class="position-absolute"
126125
color="secondary"
127126
style="right:10px;top: 50%;transform: translateY(-50%);"
128-
@click="dismiss"
127+
@click="alert3 = false"
129128
>
130-
<i>Close</i>
129+
Close
131130
</CButton>
132131
</CAlert>
133132
<CButton
@@ -186,7 +185,9 @@ export default {
186185
return {
187186
dismissSecs: 10,
188187
dismissCountDown: 10,
189-
dismissibleAlerts: [true, true, true],
188+
alert1: true,
189+
alert2: true,
190+
alert3: true
190191
}
191192
},
192193
methods: {
@@ -197,7 +198,7 @@ export default {
197198
this.dismissCountDown = this.dismissSecs
198199
},
199200
showDismissibleAlerts () {
200-
this.dismissibleAlerts = this.dismissibleAlerts.map(el => el = true)
201+
['alert1', 'alert2', 'alert3'].forEach(alert => this[alert] = true)
201202
}
202203
}
203204
}

0 commit comments

Comments
 (0)