Skip to content

Commit 0712ea9

Browse files
committed
Merge branch 'dev'
2 parents a11e5df + 863efa0 commit 0712ea9

Some content is hidden

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

45 files changed

+1004
-1335
lines changed

.eslintignore

-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
node_modules/*
2-
./node_modules/**
3-
**/node_modules/**
42
/dist/**
53
.eslintrc.js
6-
/Users/lukaszholeczek/CoreUI/@coreui/icons-vue/**/*
7-
/Users/lukaszholeczek/CoreUI/@coreui/icons-vue/
8-
**/*

babel.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
presets: ['@vue/cli-plugin-babel/preset']
2+
presets: ['@vue/cli-plugin-babel/preset'],
33
}

package.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coreui/coreui-free-vue-admin-template",
3-
"version": "4.0.0",
3+
"version": "4.0.1",
44
"description": "CoreUI Free Vue Admin Template",
55
"bugs": {
66
"url": "https://github.com/coreui/coreui-free-vue-admin-template/issues"
@@ -27,7 +27,7 @@
2727
"@coreui/icons": "^2.1.0",
2828
"@coreui/icons-vue": "2.0.0",
2929
"@coreui/utils": "^1.3.1",
30-
"@coreui/vue": "^4.0.0",
30+
"@coreui/vue": "^4.0.1",
3131
"@coreui/vue-chartjs": "2.0.0",
3232
"core-js": "^3.19.0",
3333
"vue": "^3.2.19",
@@ -36,7 +36,7 @@
3636
},
3737
"devDependencies": {
3838
"@vue/cli-plugin-babel": "~4.5.14",
39-
"@vue/cli-plugin-e2e-nightwatch": "~4.5.14",
39+
"@vue/cli-plugin-e2e-cypress": "~4.5.14",
4040
"@vue/cli-plugin-eslint": "~4.5.14",
4141
"@vue/cli-plugin-router": "~4.5.14",
4242
"@vue/cli-plugin-unit-jest": "~4.5.14",
@@ -49,7 +49,6 @@
4949
"eslint": "^7.32.0",
5050
"eslint-plugin-prettier": "^4.0.0",
5151
"eslint-plugin-vue": "^7.20.0",
52-
"geckodriver": "^2.0.4",
5352
"prettier": "^2.4.1",
5453
"sass": "^1.43.3",
5554
"sass-loader": "^10.2.0",

public/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<!--
33
* CoreUI Vue.js Admin Template
4-
* @version v4.0.0
4+
* @version v4.0.1
55
* @link https://coreui.io/vue/
66
* Copyright (c) 2021 creativeLabs Łukasz Holeczek
77
* License (https://coreui.io/pro/license)

src/App.vue

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
</template>
44

55
<style lang="scss">
6-
// Import Main styles for this application
7-
@import 'styles/style';
6+
// Import Main styles for this application
7+
@import 'styles/style';
88
</style>
9-

src/assets/icons/index.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ import {
2222
cibCcStripe,
2323
cibCcPaypal,
2424
cibCcApplePay,
25-
cibCcAmex
26-
} from "@coreui/icons";
27-
import { cifUs, cifBr, cifIn, cifFr, cifEs, cifPl } from "@coreui/icons";
25+
cibCcAmex,
26+
} from '@coreui/icons'
27+
import { cifUs, cifBr, cifIn, cifFr, cifEs, cifPl } from '@coreui/icons'
2828
import {
2929
cilArrowBottom,
3030
cilArrowRight,
@@ -76,8 +76,8 @@ import {
7676
cilUser,
7777
cilUserFemale,
7878
cilUserFollow,
79-
cilXCircle
80-
} from "@coreui/icons";
79+
cilXCircle,
80+
} from '@coreui/icons'
8181

8282
export const iconsSet = Object.assign(
8383
{},
@@ -132,15 +132,15 @@ export const iconsSet = Object.assign(
132132
cilUser,
133133
cilUserFemale,
134134
cilUserFollow,
135-
cilXCircle
135+
cilXCircle,
136136
},
137137
{
138138
cifUs,
139139
cifBr,
140140
cifIn,
141141
cifFr,
142142
cifEs,
143-
cifPl
143+
cifPl,
144144
},
145145
{
146146
cibFacebook,
@@ -166,6 +166,6 @@ export const iconsSet = Object.assign(
166166
cibCcStripe,
167167
cibCcPaypal,
168168
cibCcApplePay,
169-
cibCcAmex
170-
}
171-
);
169+
cibCcAmex,
170+
},
171+
)

src/components/AppBreadcrumb.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<CBreadcrumb class="d-md-down-none me-auto mb-0">
33
<CBreadcrumbItem
44
v-for="item in breadcrumbs"
5+
:key="item"
56
:href="item.active ? '' : item.path"
67
:active="item.active"
7-
:key="item"
88
>
99
{{ item.name }}
1010
</CBreadcrumbItem>

src/components/AppHeader.vue

-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ export default {
5555
AppHeaderDropdownAccnt,
5656
},
5757
setup() {
58-
5958
return {
6059
logo,
6160
}

src/components/AppSidebar.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
>
1414
<CSidebarBrand>
1515
<CIcon
16-
customClassName="sidebar-brand-full"
16+
custom-class-name="sidebar-brand-full"
1717
:icon="logoNegative"
1818
:height="35"
1919
/>
2020
<CIcon
21-
customClassName="sidebar-brand-narrow"
21+
custom-class-name="sidebar-brand-narrow"
2222
:icon="sygnet"
2323
:height="35"
2424
/>

src/components/AppSidebarNav.js

+29-21
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,45 @@
11
import { defineComponent, h, onMounted, ref, resolveComponent } from 'vue'
22
import { RouterLink, useRoute } from 'vue-router'
33

4-
import { CBadge, CSidebarNav, CNavItem, CNavGroup, CNavTitle } from '@coreui/vue'
4+
import {
5+
CBadge,
6+
CSidebarNav,
7+
CNavItem,
8+
CNavGroup,
9+
CNavTitle,
10+
} from '@coreui/vue'
511
import nav from '@/_nav.js'
612

713
const normalizePath = (path) =>
8-
decodeURI(path)
9-
.replace(/#.*$/, '')
10-
.replace(/(index)?\.(html)$/, '')
14+
decodeURI(path)
15+
.replace(/#.*$/, '')
16+
.replace(/(index)?\.(html)$/, '')
1117

1218
const isActiveLink = (route, link) => {
13-
if (link === undefined) {
14-
return false
15-
}
19+
if (link === undefined) {
20+
return false
21+
}
1622

17-
if (route.hash === link) {
18-
return true
19-
}
23+
if (route.hash === link) {
24+
return true
25+
}
2026

21-
const currentPath = normalizePath(route.path)
22-
const targetPath = normalizePath(link)
27+
const currentPath = normalizePath(route.path)
28+
const targetPath = normalizePath(link)
2329

24-
return currentPath === targetPath
30+
return currentPath === targetPath
2531
}
2632

2733
const isActiveItem = (route, item) => {
28-
if (isActiveLink(route, item.to)) {
29-
return true
30-
}
34+
if (isActiveLink(route, item.to)) {
35+
return true
36+
}
3137

32-
if (item.items) {
33-
return item.items.some((child) => isActiveItem(route, child))
34-
}
38+
if (item.items) {
39+
return item.items.some((child) => isActiveItem(route, child))
40+
}
3541

36-
return false
42+
return false
3743
}
3844

3945
const AppSidebarNav = defineComponent({
@@ -56,7 +62,9 @@ const AppSidebarNav = defineComponent({
5662
return h(
5763
CNavGroup,
5864
{
59-
...firstRender.value && { visible: item.items.some((child) => isActiveItem(route, child))}
65+
...(firstRender.value && {
66+
visible: item.items.some((child) => isActiveItem(route, child)),
67+
}),
6068
},
6169
{
6270
togglerContent: () => [

src/components/DocsCallout.vue

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
<template>
22
<CCallout color="info" class="bg-white">
3-
{{content
3+
{{
4+
content
45
? content
56
: `A Vue ${name} component ${
67
plural ? 'have' : 'has'
78
} been created as a native Vue.js version
8-
of Bootstrap ${name}. ${name} ${plural ? 'are' : 'is'} delivered with some new features,
9-
variants, and unique design that matches CoreUI Design System requirements.`}}
9+
of Bootstrap ${name}. ${name} ${
10+
plural ? 'are' : 'is'
11+
} delivered with some new features,
12+
variants, and unique design that matches CoreUI Design System requirements.`
13+
}}
1014
<br />
1115
<br />
1216
For more information please visit our official
13-
<CLink :href="href" target="_blank">
17+
<CLink :href="url" target="_blank">
1418
documentation of CoreUI Components Library for Vue.js
1519
</CLink>
1620
.
@@ -40,10 +44,10 @@ export default {
4044
plural: Boolean,
4145
},
4246
setup(props) {
43-
const href = `https://coreui.io/vue/docs/${packageJson.config.coreui_library_short_version}/${props.href}`
47+
const url = `https://coreui.io/vue/docs/${packageJson.config.coreui_library_short_version}/${props.url}`
4448
4549
return {
46-
href,
50+
url,
4751
}
4852
},
4953
}

src/components/DocsExample.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</CNavLink>
88
</CNavItem>
99
<CNavItem>
10-
<CNavLink :href="href" target="_blank">
10+
<CNavLink :href="url" target="_blank">
1111
<CIcon icon="cil-code" class="me-2" />
1212
Code
1313
</CNavLink>
@@ -33,10 +33,10 @@ export default {
3333
},
3434
},
3535
setup(props) {
36-
const href = `https://coreui.io/vue/docs/${pkg.config.coreui_library_short_version}/${props.href}`
36+
const url = `https://coreui.io/vue/docs/${pkg.config.coreui_library_short_version}/${props.href}`
3737
3838
return {
39-
href,
39+
url,
4040
}
4141
},
4242
}

src/layouts/DefaultLayout.vue

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@
1313
</div>
1414
</template>
1515
<script>
16-
import { CContainer, CDropdown, CDropdownItem } from "@coreui/vue";
17-
import AppFooter from "@/components/AppFooter.vue";
18-
import AppHeader from "@/components/AppHeader.vue";
19-
import AppSidebar from "@/components/AppSidebar.vue";
16+
import { CContainer } from '@coreui/vue'
17+
import AppFooter from '@/components/AppFooter.vue'
18+
import AppHeader from '@/components/AppHeader.vue'
19+
import AppSidebar from '@/components/AppSidebar.vue'
2020
2121
export default {
22-
name: "DefaultLayout",
22+
name: 'DefaultLayout',
2323
components: {
2424
AppFooter,
2525
AppHeader,
2626
AppSidebar,
2727
CContainer,
2828
},
29-
};
29+
}
3030
</script>

src/router/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -274,17 +274,17 @@ const routes = [
274274
{
275275
path: '500',
276276
name: 'Page500',
277-
component: () => import('@/views/pages/Page500')
277+
component: () => import('@/views/pages/Page500'),
278278
},
279279
{
280280
path: 'login',
281281
name: 'Login',
282-
component: () => import('@/views/pages/Login')
282+
component: () => import('@/views/pages/Login'),
283283
},
284284
{
285285
path: 'register',
286286
name: 'Register',
287-
component: () => import('@/views/pages/Register')
287+
component: () => import('@/views/pages/Register'),
288288
},
289289
],
290290
},

src/store/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default createStore({
1414
},
1515
updateSidebarVisible(state, payload) {
1616
state.sidebarVisible = payload.value
17-
}
17+
},
1818
},
1919
actions: {},
2020
modules: {},

0 commit comments

Comments
 (0)