Skip to content

Commit b3e6540

Browse files
committed
refactor: delete 'c-' class prefix, update coreui styles to alpha-v13
1 parent 6969728 commit b3e6540

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1125
-1132
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"test:e2e": "vue-cli-service test:e2e"
1515
},
1616
"dependencies": {
17-
"@coreui/coreui": "next",
17+
"@coreui/coreui": "3.0.0-alpha.13",
1818
"@coreui/coreui-plugin-chartjs-custom-tooltips": "^1.3.1",
1919
"@coreui/coreui-vue-chartjs": "../coreui-vue-chartjs",
2020
"@coreui/icons": "github:coreui/coreui-icons#v1-alpha",

src/containers/DefaultHeaderDropdownAccnt.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
nav
44
no-caret
55
no-popper
6-
add-menu-classes="c-dropdown-menu-right"
6+
add-menu-classes="dropdown-menu-right"
77
>
88
<template #toggler-content>
99
<img
1010
src="img/avatars/6.jpg"
11-
class="c-img-avatar"
11+
class="img-avatar"
1212
1313
/>
1414
</template>
15-
<CDropdownHeader tag="div" class="c-text-center">
15+
<CDropdownHeader tag="div" class="text-center">
1616
<strong>Account</strong>
1717
</CDropdownHeader>
1818
<CDropdownItem>
@@ -33,7 +33,7 @@
3333
</CDropdownItem>
3434
<CDropdownHeader
3535
tag="div"
36-
class="c-text-center"
36+
class="text-center"
3737
>
3838
<strong>Settings</strong>
3939
</CDropdownHeader>

src/containers/TheFooter.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<CFooter>
33
<div>
44
<a href="https://coreui.io">CoreUI</a>
5-
<span class="c-ml-1">&copy; 2018 creativeLabs.</span>
5+
<span class="ml-1">&copy; 2018 creativeLabs.</span>
66
</div>
7-
<div class="c-ml-auto">
8-
<span class="c-mr-1">Powered by</span>
7+
<div class="ml-auto">
8+
<span class="mr-1">Powered by</span>
99
<a href="https://coreui.io">CoreUI for Vue</a>
1010
</div>
1111
</CFooter>

src/containers/TheHeader.vue

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,56 @@
11
<template>
22
<CHeader fixed>
33
<CSidebarToggler
4-
class="c-header-toggler c-d-lg-none c-mr-auto"
4+
class="c-header-toggler d-lg-none mr-auto"
55
v-c-emit-root-event:c-sidebar-toggle
66
/>
77
<CLink :class="logoClasses" to="/">
88
<img
99
v-show="sidebarIsMinimized"
10-
class="c-navbar-brand-minimized c-d-md-down-none"
10+
class="navbar-brand-minimized d-md-down-none"
1111
src="img/brand/sygnet.svg"
1212
width="30"
1313
height="30"
1414
alt="CoreUI Logo"
1515
>
1616
<img
1717
v-show="!sidebarIsMinimized"
18-
class="c-navbar-brand-full c-d-md-down-none"
18+
class="navbar-brand-full d-md-down-none"
1919
src="img/brand/logo.svg"
2020
width="89"
2121
height="25"
2222
alt="CoreUI Logo"
2323
>
2424
<img
25-
class="c-navbar-brand-full c-d-lg-none"
25+
class="navbar-brand-full d-lg-none"
2626
src="img/brand/logo.svg"
2727
width="89"
2828
height="25"
2929
alt="CoreUI Logo"
3030
>
3131
</CLink>
3232
<CSidebarToggler
33-
class="c-header-toggler c-d-md-down-none"
33+
class="c-header-toggler d-md-down-none"
3434
v-c-emit-root-event:c-sidebar-toggle
3535
/>
36-
<ul class="c-header-nav c-d-md-down-none">
37-
<CNavItem class="c-px-3" to="/dashboard">Dashboard</CNavItem>
38-
<CNavItem class="c-px-3" to="/users" exact>Users</CNavItem>
39-
<CNavItem class="c-px-3">Settings</CNavItem>
36+
<ul class="c-header-nav d-md-down-none">
37+
<CNavItem class="px-3" to="/dashboard">Dashboard</CNavItem>
38+
<CNavItem class="px-3" to="/users" exact>Users</CNavItem>
39+
<CNavItem class="px-3">Settings</CNavItem>
4040
</ul>
41-
<CNav class="c-header-nav c-ml-auto">
42-
<CNavItem class="c-d-md-down-none">
41+
<CNav class="c-header-nav ml-auto">
42+
<CNavItem class="d-md-down-none">
4343
<i class="cui-bell"></i>
4444
<CBadge pill variant="danger">5</CBadge>
4545
</CNavItem>
46-
<CNavItem class="c-d-md-down-none">
46+
<CNavItem class="d-md-down-none">
4747
<i class="cui-list"></i>
4848
</CNavItem>
4949
<CNavItem class="d-md-down-none">
5050
<i class="cui-___location-pin"></i>
5151
</CNavItem>
5252
<DefaultHeaderDropdownAccnt/>
5353
</CNav>
54-
<!-- <CSidebarToggler
55-
class="c-header-toggler c-d-md-down-none"
56-
aside
57-
/> -->
5854
</CHeader>
5955
</template>
6056

src/containers/TheSidebar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<CRenderFunction :contentToRender="nav"/>
99
<!-- <CSidebarFooter/> -->
1010
<CSidebarMinimizer
11-
class="c-d-md-down-none"
11+
class="d-md-down-none"
1212
@click.native="minimize = !minimize"
1313
/>
1414
</CSidebar>

src/router/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Vue.use(Router)
6161

6262
export default new Router({
6363
mode: 'hash', // https://router.vuejs.org/api/#mode
64-
linkActiveClass: 'c-active',
64+
linkActiveClass: 'active',
6565
scrollBehavior: () => ({ y: 0 }),
6666
routes: [
6767
{

src/views/Charts.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<template>
22
<div>
3-
<CCardGroup columns class="c-card-columns c-cols-2">
3+
<CCardGroup columns class="card-columns cols-2">
44
<CCard>
55
<CCardHeader>
66
Line Chart
7-
<div class="c-card-header-actions">
7+
<div class="card-header-actions">
88
<a
99
href="https://coreui.io/vue/docs/3.0/components/Charts"
1010
class="card-header-action"

0 commit comments

Comments
 (0)