feat: Bootstrap Vue components changed to Coreui-Vue components

This commit is contained in:
woothu
2019-02-18 17:27:13 +01:00
parent 6433e8ac1e
commit 2057ba6b5c
47 changed files with 7751 additions and 8387 deletions
+37 -41
View File
@@ -1,14 +1,14 @@
<template>
<b-tabs>
<b-tab>
<CTabs>
<CTab active>
<template slot="title">
<i class='icon-list'></i>
<i class="icon-list"></i>
</template>
<b-list-group class="list-group-accent">
<b-list-group-item class="list-group-item-accent-secondary bg-light text-center font-weight-bold text-muted text-uppercase small">
<CListGroup class="list-group-accent">
<CListGroupItem class="list-group-item-accent-secondary bg-light text-center font-weight-bold text-muted text-uppercase small">
Today
</b-list-group-item>
<b-list-group-item href="#" class="list-group-item-accent-warning list-group-item-divider">
</CListGroupItem>
<CListGroupItem href="#" class="list-group-item-accent-warning list-group-item-divider">
<div class="avatar float-right">
<img class="img-avatar" src="img/avatars/7.jpg" alt="admin@bootstrapmaster.com">
</div>
@@ -21,8 +21,8 @@
<small class="text-muted">
<i class="icon-location-pin"></i>&nbsp;&nbsp;Palo Alto, CA
</small>
</b-list-group-item>
<b-list-group-item href="#" class="list-group-item-accent-info">
</CListGroupItem>
<CListGroupItem href="#" class="list-group-item-accent-info">
<div class="avatar float-right">
<img class="img-avatar" src="img/avatars/4.jpg" alt="admin@bootstrapmaster.com">
</div>
@@ -30,12 +30,12 @@
</div>
<small class="text-muted mr-3"><i class="icon-calendar"></i>&nbsp;&nbsp;4 - 5pm</small>
<small class="text-muted"><i class="icon-social-skype"></i>&nbsp;&nbsp;On-line</small>
</b-list-group-item>
</CListGroupItem>
<hr class="transparent mx-3 my-0">
<b-list-group-item class="list-group-item-accent-secondary bg-light text-center font-weight-bold text-muted text-uppercase small">
<CListGroupItem class="list-group-item-accent-secondary bg-light text-center font-weight-bold text-muted text-uppercase small">
Tomorrow
</b-list-group-item>
<b-list-group-item href="#" class="list-group-item-accent-danger list-group-item-divider">
</CListGroupItem>
<CListGroupItem href="#" class="list-group-item-accent-danger list-group-item-divider">
<div>New UI Project - <strong>deadline</strong>
</div>
<small class="text-muted mr-3"><i class="icon-calendar"></i>&nbsp;&nbsp;10 - 11pm</small>
@@ -57,13 +57,13 @@
<img class="img-avatar" src="img/avatars/6.jpg" alt="admin@bootstrapmaster.com">
</div>
</div>
</b-list-group-item>
<b-list-group-item href="#" class="list-group-item-accent-success list-group-item-divider">
</CListGroupItem>
<CListGroupItem href="#" class="list-group-item-accent-success list-group-item-divider">
<div><strong>#10 Startups.Garden</strong> Meetup</div>
<small class="text-muted mr-3"><i class="icon-calendar"></i>&nbsp; 1 - 3pm</small>
<small class="text-muted"><i class="icon-location-pin"></i>&nbsp; Palo Alto, CA</small>
</b-list-group-item>
<b-list-group-item href="#" class="list-group-item-accent-primary list-group-item-divider">
</CListGroupItem>
<CListGroupItem href="#" class="list-group-item-accent-primary list-group-item-divider">
<div><strong>Team meeting</strong></div>
<small class="text-muted mr-3"><i class="icon-calendar"></i>&nbsp; 4 - 6pm</small>
<small class="text-muted"><i class="icon-home"></i>&nbsp; creativeLabs HQ</small>
@@ -90,10 +90,10 @@
<img src="img/avatars/8.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
</div>
</div>
</b-list-group-item>
</b-list-group>
</b-tab>
<b-tab>
</CListGroupItem>
</CListGroup>
</CTab>
<CTab>
<template slot="title">
<i class='icon-speech'></i>
</template>
@@ -117,7 +117,7 @@
<div class="py-3 pb-5 mr-3 float-left">
<div class="avatar">
<img src="img/avatars/7.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
<c-badge variant="danger" class="avatar-status"></c-badge>
<CBadge variant="danger" class="avatar-status"></CBadge>
</div>
</div>
<div>
@@ -132,7 +132,7 @@
<div class="py-3 pb-5 mr-3 float-left">
<div class="avatar">
<img src="img/avatars/7.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
<c-badge variant="info" class="avatar-status"></c-badge>
<CBadge variant="info" class="avatar-status"></CBadge>
</div>
</div>
<div>
@@ -147,7 +147,7 @@
<div class="py-3 pb-5 mr-3 float-left">
<div class="avatar">
<img src="img/avatars/7.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
<c-badge variant="warning" class="avatar-status"></c-badge>
<CBadge variant="warning" class="avatar-status"></CBadge>
</div>
</div>
<div>
@@ -162,7 +162,7 @@
<div class="py-3 pb-5 mr-3 float-left">
<div class="avatar">
<img src="img/avatars/7.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
<c-badge variant="dark" class="avatar-status"></c-badge>
<CBadge variant="dark" class="avatar-status"></CBadge>
</div>
</div>
<div>
@@ -173,8 +173,8 @@
<small class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt...</small>
</div>
</div>
</b-tab>
<b-tab>
</CTab>
<CTab>
<template slot="title">
<i class='icon-settings'></i>
</template>
@@ -183,7 +183,7 @@
<div class="aside-options">
<div class="clearfix mt-4">
<small><b>Option 1</b></small>
<c-switch color="success" label variant="pill" size="sm" class="float-right" checked />
<CSwitch variant="success" label shape="pill" size="sm" class="float-right" checked />
</div>
<div>
<small class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</small>
@@ -192,7 +192,7 @@
<div class="aside-options">
<div class="clearfix mt-3">
<small><b>Option 2</b></small>
<c-switch color="success" label variant="pill" size="sm" class="float-right" />
<CSwitch variant="success" label shape="pill" size="sm" class="float-right" />
</div>
<div>
<small class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</small>
@@ -201,7 +201,7 @@
<div class="aside-options">
<div class="clearfix mt-3">
<small><b>Option 3</b></small>
<c-switch color="success" label variant="pill" size="sm" class="float-right" disabled defaultChecked/>
<CSwitch variant="success" label shape="pill" size="sm" class="float-right" disabled defaultChecked/>
</div>
<div>
<small class="text-muted">Disabled option.</small>
@@ -210,7 +210,7 @@
<div class="aside-options">
<div class="clearfix mt-3">
<small><b>Option 4</b></small>
<c-switch color="success" label variant="pill" size="sm" class="float-right" checked />
<CSwitch variant="success" label shape="pill" size="sm" class="float-right" checked />
</div>
</div>
<hr>
@@ -218,34 +218,30 @@
<div class="text-uppercase mb-1 mt-4">
<small><b>CPU Usage</b></small>
</div>
<b-progress height={} class="progress-xs" variant="info" :value="25"></b-progress>
<CProgress class="progress-xs" variant="info" :value="25"></CProgress>
<small class="text-muted">348 Processes. 1/4 Cores.</small>
<div class="text-uppercase mb-1 mt-2">
<small><b>Memory Usage</b></small>
</div>
<b-progress height={} class="progress-xs" variant="warning" :value="70"></b-progress>
<CProgress class="progress-xs" variant="warning" :value="70"></CProgress>
<small class="text-muted">11444GB/16384MB</small>
<div class="text-uppercase mb-1 mt-2">
<small><b>SSD 1 Usage</b></small>
</div>
<b-progress height={} class="progress-xs" variant="danger" :value="95"></b-progress>
<CProgress class="progress-xs" variant="danger" :value="95"></CProgress>
<small class="text-muted">243GB/256GB</small>
<div class="text-uppercase mb-1 mt-2">
<small><b>SSD 2 Usage</b></small>
</div>
<b-progress height={} class="progress-xs" variant="success" :value="10"></b-progress>
<CProgress class="progress-xs" variant="success" :value="10"></CProgress>
<small class="text-muted">25GB/256GB</small>
</div>
</b-tab>
</b-tabs>
</CTab>
</CTabs>
</template>
<script>
import { Switch as cSwitch } from '@coreui/vue'
export default {
name: 'DefaultAside',
components: {
cSwitch
}
}
</script>
+32 -44
View File
@@ -1,53 +1,53 @@
<template>
<div class="app">
<AppHeader fixed>
<SidebarToggler class="d-lg-none" display="md" mobile />
<b-link class="navbar-brand" to="#">
<CHeader fixed>
<CSidebarToggler class="d-lg-none" display="md" mobile />
<CLink class="navbar-brand" to="#">
<img class="navbar-brand-full" src="img/brand/logo.svg" width="89" height="25" alt="CoreUI Logo">
<img class="navbar-brand-minimized" src="img/brand/sygnet.svg" width="30" height="30" alt="CoreUI Logo">
</b-link>
<SidebarToggler class="d-md-down-none" display="lg" />
<b-navbar-nav class="d-md-down-none">
<b-nav-item class="px-3" to="/dashboard">Dashboard</b-nav-item>
<b-nav-item class="px-3" to="/users" exact>Users</b-nav-item>
<b-nav-item class="px-3">Settings</b-nav-item>
</b-navbar-nav>
<b-navbar-nav class="ml-auto">
<b-nav-item class="d-md-down-none">
</CLink>
<CSidebarToggler class="d-md-down-none" display="lg" />
<CNavbarNav class="d-md-down-none">
<CNavItem class="px-3" to="/dashboard">Dashboard</CNavItem>
<CNavItem class="px-3" to="/users" exact>Users</CNavItem>
<CNavItem class="px-3">Settings</CNavItem>
</CNavbarNav>
<CNavbarNav class="ml-auto">
<CNavItem class="d-md-down-none">
<i class="icon-bell"></i>
<b-badge pill variant="danger">5</b-badge>
</b-nav-item>
<b-nav-item class="d-md-down-none">
<CBadge pill variant="danger">5</CBadge>
</CNavItem>
<CNavItem class="d-md-down-none">
<i class="icon-list"></i>
</b-nav-item>
<b-nav-item class="d-md-down-none">
</CNavItem>
<CNavItem class="d-md-down-none">
<i class="icon-location-pin"></i>
</b-nav-item>
</CNavItem>
<DefaultHeaderDropdownAccnt/>
</b-navbar-nav>
<AsideToggler class="d-none d-lg-block" />
</CNavbarNav>
<CAsideToggler class="d-none d-lg-block" />
<!--<AsideToggler class="d-lg-none" mobile />-->
</AppHeader>
</CHeader>
<div class="app-body">
<AppSidebar fixed>
<SidebarHeader/>
<SidebarForm/>
<SidebarNav :navItems="computedNav"></SidebarNav>
<SidebarFooter/>
<SidebarMinimizer/>
</AppSidebar>
<CSidebar fixed>
<CSidebarHeader/>
<CSidebarForm/>
<CSidebarNav :navItems="computedNav"></CSidebarNav>
<CSidebarFooter/>
<CSidebarMinimizer/>
</CSidebar>
<main class="main">
<CBreadcrumbRouter/>
<div class="container-fluid">
<router-view></router-view>
</div>
</main>
<AppAside fixed>
<CAside fixed>
<!--aside-->
<DefaultAside/>
</AppAside>
</CAside>
</div>
<TheFooter>
<CFooter>
<!--footer-->
<div>
<a href="https://coreui.io">CoreUI</a>
@@ -57,32 +57,20 @@
<span class="mr-1">Powered by</span>
<a href="https://coreui.io">CoreUI for Vue</a>
</div>
</TheFooter>
</CFooter>
</div>
</template>
<script>
import nav from '@/_nav'
import { Header as AppHeader, SidebarToggler, Sidebar as AppSidebar, SidebarFooter,SidebarNav, SidebarForm, SidebarHeader, SidebarMinimizer, Aside as AppAside, AsideToggler, Footer as TheFooter } from '@coreui/vue'
import DefaultAside from './DefaultAside'
import DefaultHeaderDropdownAccnt from './DefaultHeaderDropdownAccnt'
export default {
name: 'full',
components: {
AsideToggler,
AppHeader,
AppSidebar,
AppAside,
TheFooter,
DefaultAside,
DefaultHeaderDropdownAccnt,
SidebarForm,
SidebarFooter,
SidebarToggler,
SidebarHeader,
SidebarNav,
SidebarMinimizer
},
data () {
return {
+35 -43
View File
@@ -1,58 +1,50 @@
<template>
<CDropdown right class="nav-item" toggleClasses="nav-link" menuClasses="hehe">
<img slot="button"
src="img/avatars/6.jpg"
class="img-avatar"
alt="admin@bootstrapmaster.com"
<CDropdown right
nav
no-caret
no-popper
addMenuClasses="dropdown-menu-right"
>
<img slot="buttonContent"
src="img/avatars/6.jpg"
class="img-avatar"
alt="admin@bootstrapmaster.com"
/>
<c-dropdown-header tag="div" class="text-center"><strong>Account</strong></c-dropdown-header>
<c-dropdown-item><i class="fa fa-bell-o" /> Updates
<c-badge variant="info" additionalClasses="hehe">{{ itemsCount }}</c-badge>
</c-dropdown-item>
<c-dropdown-item><i class="fa fa-envelope-o" /> Messages
<c-badge variant="success">{{ itemsCount }}</c-badge>
</c-dropdown-item>
<c-dropdown-item><i class="fa fa-tasks" /> Tasks
<c-badge variant="danger">{{ itemsCount }}</c-badge>
</c-dropdown-item>
<c-dropdown-item><i class="fa fa-comments" /> Comments
<c-badge variant="warning">{{ itemsCount }}</c-badge>
</c-dropdown-item>
<c-dropdown-header
<CDropdownHeader tag="div" class="text-center"><strong>Account</strong></CDropdownHeader>
<CDropdownItem><i class="fa fa-bell-o" /> Updates
<CBadge variant="info" additionalClasses="hehe">{{ itemsCount }}</CBadge>
</CDropdownItem>
<CDropdownItem><i class="fa fa-envelope-o" /> Messages
<CBadge variant="success">{{ itemsCount }}</CBadge>
</CDropdownItem>
<CDropdownItem><i class="fa fa-tasks" /> Tasks
<CBadge variant="danger">{{ itemsCount }}</CBadge>
</CDropdownItem>
<CDropdownItem><i class="fa fa-comments" /> Comments
<CBadge variant="warning">{{ itemsCount }}</CBadge>
</CDropdownItem>
<CDropdownHeader
tag="div"
class="text-center">
<strong>Settings</strong>
</c-dropdown-header>
<c-dropdown-item><i class="fa fa-user" /> Profile</c-dropdown-item>
<c-dropdown-item><i class="fa fa-wrench" /> Settings</c-dropdown-item>
<c-dropdown-item><i class="fa fa-usd" /> Payments
<c-badge variant="secondary">{{ itemsCount }}</c-badge>
</c-dropdown-item>
<c-dropdown-item><i class="fa fa-file" /> Projects
<c-badge variant="primary">{{ itemsCount }}</c-badge>
</c-dropdown-item>
</CDropdownHeader>
<CDropdownItem><i class="fa fa-user" /> Profile</CDropdownItem>
<CDropdownItem><i class="fa fa-wrench" /> Settings</CDropdownItem>
<CDropdownItem><i class="fa fa-usd" /> Payments
<CBadge variant="secondary">{{ itemsCount }}</CBadge>
</CDropdownItem>
<CDropdownItem><i class="fa fa-file" /> Projects
<CBadge variant="primary">{{ itemsCount }}</CBadge>
</CDropdownItem>
<CDropdownDivider/>
<c-dropdown-item><i class="fa fa-shield" /> Lock Account</c-dropdown-item>
<c-dropdown-item><i class="fa fa-lock" /> Logout</c-dropdown-item>
<CDropdownItem><i class="fa fa-shield" /> Lock Account</CDropdownItem>
<CDropdownItem><i class="fa fa-lock" /> Logout</CDropdownItem>
</CDropdown>
</template>
<script>
// import CDropdown from './CDropdown'
// import CDropdownHeader from './CDropdownHeader'
// import CDropdownDivider from './CDropdownDivider'
// import CDropdownItem from './CDropdownItem'
export default {
name: 'DefaultHeaderDropdownAccnt',
// components: {
// CDropdown,
// CDropdownHeader,
// CDropdownDivider,
// CDropdownItem
// },
data: () => {
return { itemsCount: 42 }
},