Skip to content

Commit e170d22

Browse files
authored
Merge pull request #104 from coreui/dev-vnext
v2.0.0-beta.6
2 parents 3f52258 + 78bf04c commit e170d22

20 files changed

+325
-130
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
## [vue](./README.md) version `changelog`
22

3+
##### `v2.0.0-beta.6`
4+
- fix: typo `DafaultAside` to `DefaultAside` - thanks @DamianLion
5+
- feat(router): `Users/User Details` Breadcrumb example with `/users/:id`
6+
- refactor(router): add dynamic imports for Webpack code splitting
7+
- refactor: remove empty `<style>` sections from `vue` files
8+
- refactor(Pages): add `b-form`, `b-form-input` and `autocomplete` to Login
9+
- refactor(Pages): add `b-form`, `b-form-input` and `autocomplete` to Register
10+
- chore: update `@coreui/coreui` to `2.0.3`
11+
- chore: update `@vue/cli-plugin-babel` to `3.0.0-rc.3`
12+
- chore: update `@vue/cli-plugin-e2e-nightwatch` to `3.0.0-rc.3`
13+
- chore: update `@vue/cli-plugin-eslint` to `3.0.0-rc.3`
14+
- chore: update `@vue/cli-plugin-unit-jest` to `3.0.0-rc.3`
15+
- chore: update `@vue/cli-service` to `3.0.0-rc.3`
16+
- chore: update `@vue/test-utils` to `3.0.0-rc.3`
17+
- chore: update `babel-jest` to `23.2.0`
18+
319
##### `v2.0.0-beta.5`
420
- chore: move tooling to `vue-cli v3.0.0-rc.2`
521
- refactor: move from `static/img` to `public/img` dir

jest.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ module.exports = {
1717
'jest-serializer-vue'
1818
],
1919
testMatch: [
20-
'<rootDir>/(tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx))'
20+
'<rootDir>/(tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx))',
21+
'<rootDir>/tests/unit/Dashboard.spec.js'
2122
]
22-
}
23+
}

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coreui/coreui-free-vue-admin-template",
3-
"version": "2.0.0-beta.5",
3+
"version": "2.0.0-beta.6",
44
"description": "Open Source Bootstrap Admin Template",
55
"author": "Łukasz Holeczek",
66
"homepage": "http://coreui.io",
@@ -14,9 +14,9 @@
1414
"test:e2e": "vue-cli-service test:e2e"
1515
},
1616
"dependencies": {
17-
"@coreui/coreui": "^2.0.2",
17+
"@coreui/coreui": "^2.0.3",
1818
"@coreui/coreui-plugin-chartjs-custom-tooltips": "^1.2.0",
19-
"@coreui/icons": "^0.2.0",
19+
"@coreui/icons": "0.2.0",
2020
"@coreui/vue": "^2.0.0-beta.2",
2121
"bootstrap": "^4.1.1",
2222
"bootstrap-vue": "^2.0.0-rc.11",
@@ -28,19 +28,19 @@
2828
"perfect-scrollbar": "^1.4.0",
2929
"simple-line-icons": "^2.4.1",
3030
"vue": "^2.5.16",
31-
"vue-chartjs": "^3.3.1",
31+
"vue-chartjs": "^3.3.2",
3232
"vue-perfect-scrollbar": "^0.1.0",
3333
"vue-router": "^3.0.1"
3434
},
3535
"devDependencies": {
36-
"@vue/cli-plugin-babel": "^3.0.0-rc.2",
37-
"@vue/cli-plugin-e2e-nightwatch": "^3.0.0-rc.2",
38-
"@vue/cli-plugin-eslint": "^3.0.0-rc.2",
39-
"@vue/cli-plugin-unit-jest": "^3.0.0-rc.2",
40-
"@vue/cli-service": "^3.0.0-rc.2",
41-
"@vue/test-utils": "^1.0.0-beta.19",
36+
"@vue/cli-plugin-babel": "^3.0.0-rc.3",
37+
"@vue/cli-plugin-e2e-nightwatch": "^3.0.0-rc.3",
38+
"@vue/cli-plugin-eslint": "^3.0.0-rc.3",
39+
"@vue/cli-plugin-unit-jest": "^3.0.0-rc.3",
40+
"@vue/cli-service": "^3.0.0-rc.3",
41+
"@vue/test-utils": "^1.0.0-beta.20",
4242
"babel-core": "^7.0.0-bridge.0",
43-
"babel-jest": "^23.0.1",
43+
"babel-jest": "^23.2.0",
4444
"node-sass": "^4.9.0",
4545
"sass-loader": "^7.0.3",
4646
"vue-template-compiler": "^2.5.16"

src/containers/DefaultContainer.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
</b-link>
99
<SidebarToggler class="d-md-down-none" display="lg" />
1010
<b-navbar-nav class="d-md-down-none">
11-
<b-nav-item class="px-3">Dashboard</b-nav-item>
12-
<b-nav-item class="px-3">Users</b-nav-item>
11+
<b-nav-item class="px-3" to="/dashboard">Dashboard</b-nav-item>
12+
<b-nav-item class="px-3" to="/users" exact>Users</b-nav-item>
1313
<b-nav-item class="px-3">Settings</b-nav-item>
1414
</b-navbar-nav>
1515
<b-navbar-nav class="ml-auto">
@@ -37,7 +37,7 @@
3737
<SidebarMinimizer/>
3838
</AppSidebar>
3939
<main class="main">
40-
<breadcrumb :list="list"/>
40+
<Breadcrumb :list="list"/>
4141
<div class="container-fluid">
4242
<router-view></router-view>
4343
</div>
@@ -54,7 +54,7 @@
5454
</template>
5555

5656
<script>
57-
import nav from '../_nav'
57+
import nav from '@/_nav'
5858
import { Header as AppHeader, SidebarToggler, Sidebar as AppSidebar, SidebarFooter, SidebarForm, SidebarHeader, SidebarMinimizer, SidebarNav, Aside as AppAside, AsideToggler, Footer as TheFooter, Breadcrumb } from '@coreui/vue'
5959
import DefaultAside from './DefaultAside'
6060
import DefaultHeaderDropdownAccnt from './DefaultHeaderDropdownAccnt'
@@ -87,7 +87,7 @@ export default {
8787
return this.$route.name
8888
},
8989
list () {
90-
return this.$route.matched
90+
return this.$route.matched.filter((route) => route.name || route.meta.label )
9191
}
9292
}
9393
}

src/router/index.js

Lines changed: 60 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,57 +2,61 @@ import Vue from 'vue'
22
import Router from 'vue-router'
33

44
// Containers
5-
import DefaultContainer from '@/containers/DefaultContainer'
5+
const DefaultContainer = () => import('@/containers/DefaultContainer')
66

77
// Views
8-
import Dashboard from '@/views/Dashboard'
8+
const Dashboard = () => import('@/views/Dashboard')
99

10-
import Colors from '@/views/theme/Colors'
11-
import Typography from '@/views/theme/Typography'
10+
const Colors = () => import('@/views/theme/Colors')
11+
const Typography = () => import('@/views/theme/Typography')
1212

13-
import Charts from '@/views/Charts'
14-
import Widgets from '@/views/Widgets'
13+
const Charts = () => import('@/views/Charts')
14+
const Widgets = () => import('@/views/Widgets')
1515

1616
// Views - Components
17-
import Cards from '@/views/base/Cards'
18-
import Forms from '@/views/base/Forms'
19-
import Switches from '@/views/base/Switches'
20-
import Tables from '@/views/base/Tables'
21-
import Tabs from '@/views/base/Tabs'
22-
import Breadcrumbs from '@/views/base/Breadcrumbs'
23-
import Carousels from '@/views/base/Carousels'
24-
import Collapses from '@/views/base/Collapses'
25-
import Jumbotrons from '@/views/base/Jumbotrons'
26-
import ListGroups from '@/views/base/ListGroups'
27-
import Navs from '@/views/base/Navs'
28-
import Navbars from '@/views/base/Navbars'
29-
import Paginations from '@/views/base/Paginations'
30-
import Popovers from '@/views/base/Popovers'
31-
import ProgressBars from '@/views/base/ProgressBars'
32-
import Tooltips from '@/views/base/Tooltips'
17+
const Cards = () => import('@/views/base/Cards')
18+
const Forms = () => import('@/views/base/Forms')
19+
const Switches = () => import('@/views/base/Switches')
20+
const Tables = () => import('@/views/base/Tables')
21+
const Tabs = () => import('@/views/base/Tabs')
22+
const Breadcrumbs = () => import('@/views/base/Breadcrumbs')
23+
const Carousels = () => import('@/views/base/Carousels')
24+
const Collapses = () => import('@/views/base/Collapses')
25+
const Jumbotrons = () => import('@/views/base/Jumbotrons')
26+
const ListGroups = () => import('@/views/base/ListGroups')
27+
const Navs = () => import('@/views/base/Navs')
28+
const Navbars = () => import('@/views/base/Navbars')
29+
const Paginations = () => import('@/views/base/Paginations')
30+
const Popovers = () => import('@/views/base/Popovers')
31+
const ProgressBars = () => import('@/views/base/ProgressBars')
32+
const Tooltips = () => import('@/views/base/Tooltips')
3333

3434
// Views - Buttons
35-
import StandardButtons from '@/views/buttons/StandardButtons'
36-
import ButtonGroups from '@/views/buttons/ButtonGroups'
37-
import Dropdowns from '@/views/buttons/Dropdowns'
38-
import BrandButtons from '@/views/buttons/BrandButtons'
35+
const StandardButtons = () => import('@/views/buttons/StandardButtons')
36+
const ButtonGroups = () => import('@/views/buttons/ButtonGroups')
37+
const Dropdowns = () => import('@/views/buttons/Dropdowns')
38+
const BrandButtons = () => import('@/views/buttons/BrandButtons')
3939

4040
// Views - Icons
41-
import Flags from '@/views/icons/Flags'
42-
import FontAwesome from '@/views/icons/FontAwesome'
43-
import SimpleLineIcons from '@/views/icons/SimpleLineIcons'
44-
import CoreUIIcons from '@/views/icons/CoreUIIcons'
41+
const Flags = () => import('@/views/icons/Flags')
42+
const FontAwesome = () => import('@/views/icons/FontAwesome')
43+
const SimpleLineIcons = () => import('@/views/icons/SimpleLineIcons')
44+
const CoreUIIcons = () => import('@/views/icons/CoreUIIcons')
4545

4646
// Views - Notifications
47-
import Alerts from '@/views/notifications/Alerts'
48-
import Badges from '@/views/notifications/Badges'
49-
import Modals from '@/views/notifications/Modals'
47+
const Alerts = () => import('@/views/notifications/Alerts')
48+
const Badges = () => import('@/views/notifications/Badges')
49+
const Modals = () => import('@/views/notifications/Modals')
5050

5151
// Views - Pages
52-
import Page404 from '@/views/pages/Page404'
53-
import Page500 from '@/views/pages/Page500'
54-
import Login from '@/views/pages/Login'
55-
import Register from '@/views/pages/Register'
52+
const Page404 = () => import('@/views/pages/Page404')
53+
const Page500 = () => import('@/views/pages/Page500')
54+
const Login = () => import('@/views/pages/Login')
55+
const Register = () => import('@/views/pages/Register')
56+
57+
// Users
58+
const Users = () => import('@/views/users/Users')
59+
const User = () => import('@/views/users/User')
5660

5761
Vue.use(Router)
5862

@@ -102,6 +106,25 @@ export default new Router({
102106
name: 'Widgets',
103107
component: Widgets
104108
},
109+
{
110+
path: 'users',
111+
meta: { label: 'Users'},
112+
component: {
113+
render (c) { return c('router-view') }
114+
},
115+
children: [
116+
{
117+
path: '',
118+
component: Users,
119+
},
120+
{
121+
path: ':id',
122+
meta: { label: 'User Details'},
123+
name: 'User',
124+
component: User,
125+
},
126+
]
127+
},
105128
{
106129
path: 'base',
107130
redirect: '/base/cards',

src/views/base/Jumbotrons.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,3 @@ export default {
8989
}
9090
</script>
9191

92-
<style scoped>
93-
94-
</style>

src/views/base/ListGroups.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,3 @@ export default {
250250
}
251251
</script>
252252

253-
<style scoped>
254-
255-
</style>

src/views/base/Navbars.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,3 @@ export default {
162162
}
163163
</script>
164164

165-
<style scoped>
166-
167-
</style>

src/views/base/Navs.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,3 @@ export default {
125125
}
126126
</script>
127127

128-
<style scoped>
129-
130-
</style>

src/views/base/Paginations.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,3 @@ export default {
9797
}
9898
</script>
9999

100-
<style scoped>
101-
102-
</style>

src/views/base/ProgressBars.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,3 @@ export default {
201201
}
202202
</script>
203203

204-
<style scoped>
205-
206-
</style>

src/views/base/Tooltips.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,3 @@ export default {
143143
}
144144
</script>
145145

146-
<style scoped>
147-
148-
</style>

src/views/pages/Login.vue

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,26 @@
66
<b-card-group>
77
<b-card no-body class="p-4">
88
<b-card-body>
9-
<h1>Login</h1>
10-
<p class="text-muted">Sign In to your account</p>
11-
<b-input-group class="mb-3">
12-
<b-input-group-prepend><b-input-group-text><i class="icon-user"></i></b-input-group-text></b-input-group-prepend>
13-
<input type="text" class="form-control" placeholder="Username">
14-
</b-input-group>
15-
<b-input-group class="mb-4">
16-
<b-input-group-prepend><b-input-group-text><i class="icon-lock"></i></b-input-group-text></b-input-group-prepend>
17-
<input type="password" class="form-control" placeholder="Password">
18-
</b-input-group>
19-
<b-row>
20-
<b-col cols="6">
21-
<b-button variant="primary" class="px-4">Login</b-button>
22-
</b-col>
23-
<b-col cols="6" class="text-right">
24-
<b-button variant="link" class="px-0">Forgot password?</b-button>
25-
</b-col>
26-
</b-row>
9+
<b-form>
10+
<h1>Login</h1>
11+
<p class="text-muted">Sign In to your account</p>
12+
<b-input-group class="mb-3">
13+
<b-input-group-prepend><b-input-group-text><i class="icon-user"></i></b-input-group-text></b-input-group-prepend>
14+
<b-form-input type="text" class="form-control" placeholder="Username" autocomplete="username email" />
15+
</b-input-group>
16+
<b-input-group class="mb-4">
17+
<b-input-group-prepend><b-input-group-text><i class="icon-lock"></i></b-input-group-text></b-input-group-prepend>
18+
<b-form-input type="password" class="form-control" placeholder="Password" autocomplete="current-password" />
19+
</b-input-group>
20+
<b-row>
21+
<b-col cols="6">
22+
<b-button variant="primary" class="px-4">Login</b-button>
23+
</b-col>
24+
<b-col cols="6" class="text-right">
25+
<b-button variant="link" class="px-0">Forgot password?</b-button>
26+
</b-col>
27+
</b-row>
28+
</b-form>
2729
</b-card-body>
2830
</b-card>
2931
<b-card no-body class="text-white bg-primary py-5 d-md-down-none" style="width:44%">

0 commit comments

Comments
 (0)