@ -1,5 +1,8 @@
|
|||||||
## [react](./REACT.md) version `changelog`
|
## [react](./REACT.md) version `changelog`
|
||||||
|
|
||||||
|
###### `v1.0.9`
|
||||||
|
- refactor: Sidebar structure change
|
||||||
|
|
||||||
###### `v1.0.8`
|
###### `v1.0.8`
|
||||||
- refactor: Dashboard radio buttons, new `onRadioBtnClick()` method
|
- refactor: Dashboard radio buttons, new `onRadioBtnClick()` method
|
||||||
- update: react to `16.2.0`
|
- update: react to `16.2.0`
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@coreui/react",
|
"name": "@coreui/react",
|
||||||
"version": "1.0.8",
|
"version": "1.0.9",
|
||||||
"description": "Open Source Bootstrap Admin Template",
|
"description": "Open Source Bootstrap Admin Template",
|
||||||
"author": "Łukasz Holeczek",
|
"author": "Łukasz Holeczek",
|
||||||
"homepage": "http://coreui.io",
|
"homepage": "http://coreui.io",
|
||||||
@ -15,10 +15,10 @@
|
|||||||
"babel-preset-react": "6.24.1",
|
"babel-preset-react": "6.24.1",
|
||||||
"copy-webpack-plugin": "4.3.1",
|
"copy-webpack-plugin": "4.3.1",
|
||||||
"css-hot-loader": "1.3.5",
|
"css-hot-loader": "1.3.5",
|
||||||
"css-loader": "0.28.8",
|
"css-loader": "0.28.9",
|
||||||
"extract-text-webpack-plugin": "3.0.2",
|
"extract-text-webpack-plugin": "3.0.2",
|
||||||
"file-loader": "1.1.6",
|
"file-loader": "1.1.6",
|
||||||
"html-loader": "0.5.4",
|
"html-loader": "0.5.5",
|
||||||
"html-webpack-plugin": "2.30.1",
|
"html-webpack-plugin": "2.30.1",
|
||||||
"node-sass": "4.7.2",
|
"node-sass": "4.7.2",
|
||||||
"rimraf": "2.6.2",
|
"rimraf": "2.6.2",
|
||||||
@ -31,7 +31,7 @@
|
|||||||
"webpack-dev-server": "2.9.7"
|
"webpack-dev-server": "2.9.7"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bootstrap": "4.0.0-beta.3",
|
"bootstrap": "4.0.0",
|
||||||
"chart.js": "2.7.1",
|
"chart.js": "2.7.1",
|
||||||
"flag-icon-css": "2.9.0",
|
"flag-icon-css": "2.9.0",
|
||||||
"font-awesome": "4.7.0",
|
"font-awesome": "4.7.0",
|
||||||
@ -51,7 +51,7 @@
|
|||||||
"clean": "rimraf ./build"
|
"clean": "rimraf ./build"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 6.12.3",
|
"node": ">= 8.9.4",
|
||||||
"npm": ">= 5.6.0"
|
"npm": ">= 5.6.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*!
|
/*!
|
||||||
* CoreUI - Open Source Bootstrap Admin Template
|
* CoreUI - Open Source Bootstrap Admin Template
|
||||||
* @version v1.0.8
|
* @version v1.0.9
|
||||||
* @link http://coreui.io
|
* @link http://coreui.io
|
||||||
* Copyright (c) 2018 creativeLabs Łukasz Holeczek
|
* Copyright (c) 2018 creativeLabs Łukasz Holeczek
|
||||||
* @license MIT
|
* @license MIT
|
||||||
|
@ -69,6 +69,22 @@ class Sidebar extends Component {
|
|||||||
return (<li key={key} className={ classes }></li>);
|
return (<li key={key} className={ classes }></li>);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// nav label with nav link
|
||||||
|
const navLabel = (item, key) => {
|
||||||
|
const classes = {
|
||||||
|
item: classNames( 'hidden-cn', item.class ),
|
||||||
|
link: classNames( 'nav-label', item.class ? item.class : ''),
|
||||||
|
icon: classNames(
|
||||||
|
!item.icon ? 'fa fa-circle' : item.icon ,
|
||||||
|
item.label.variant ? `text-${item.label.variant}` : '',
|
||||||
|
item.label.class ? item.label.class : ''
|
||||||
|
)
|
||||||
|
};
|
||||||
|
return (
|
||||||
|
navLink(item, key, classes)
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
// nav item with nav link
|
// nav item with nav link
|
||||||
const navItem = (item, key) => {
|
const navItem = (item, key) => {
|
||||||
const classes = {
|
const classes = {
|
||||||
@ -114,6 +130,7 @@ class Sidebar extends Component {
|
|||||||
const navType = (item, idx) =>
|
const navType = (item, idx) =>
|
||||||
item.title ? title(item, idx) :
|
item.title ? title(item, idx) :
|
||||||
item.divider ? divider(item, idx) :
|
item.divider ? divider(item, idx) :
|
||||||
|
item.label ? navLabel(item, idx) :
|
||||||
item.children ? navDropdown(item, idx)
|
item.children ? navDropdown(item, idx)
|
||||||
: navItem(item, idx) ;
|
: navItem(item, idx) ;
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@coreui/react",
|
"name": "@coreui/react",
|
||||||
"version": "1.0.8",
|
"version": "1.0.9",
|
||||||
"description": "Open Source Bootstrap Admin Template",
|
"description": "Open Source Bootstrap Admin Template",
|
||||||
"author": "Łukasz Holeczek",
|
"author": "Łukasz Holeczek",
|
||||||
"homepage": "http://coreui.io",
|
"homepage": "http://coreui.io",
|
||||||
@ -15,10 +15,10 @@
|
|||||||
"babel-preset-react": "6.24.1",
|
"babel-preset-react": "6.24.1",
|
||||||
"copy-webpack-plugin": "4.3.1",
|
"copy-webpack-plugin": "4.3.1",
|
||||||
"css-hot-loader": "1.3.5",
|
"css-hot-loader": "1.3.5",
|
||||||
"css-loader": "0.28.8",
|
"css-loader": "0.28.9",
|
||||||
"extract-text-webpack-plugin": "3.0.2",
|
"extract-text-webpack-plugin": "3.0.2",
|
||||||
"file-loader": "1.1.6",
|
"file-loader": "1.1.6",
|
||||||
"html-loader": "0.5.4",
|
"html-loader": "0.5.5",
|
||||||
"html-webpack-plugin": "2.30.1",
|
"html-webpack-plugin": "2.30.1",
|
||||||
"node-sass": "4.7.2",
|
"node-sass": "4.7.2",
|
||||||
"rimraf": "2.6.2",
|
"rimraf": "2.6.2",
|
||||||
@ -31,7 +31,7 @@
|
|||||||
"webpack-dev-server": "2.9.7"
|
"webpack-dev-server": "2.9.7"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bootstrap": "4.0.0-beta.3",
|
"bootstrap": "4.0.0",
|
||||||
"chart.js": "2.7.1",
|
"chart.js": "2.7.1",
|
||||||
"flag-icon-css": "2.9.0",
|
"flag-icon-css": "2.9.0",
|
||||||
"font-awesome": "4.7.0",
|
"font-awesome": "4.7.0",
|
||||||
@ -51,7 +51,7 @@
|
|||||||
"clean": "rimraf ./build"
|
"clean": "rimraf ./build"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 6.12.3",
|
"node": ">= 8.9.4",
|
||||||
"npm": ">= 5.6.0"
|
"npm": ">= 5.6.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 959 B |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 839 B |
Before Width: | Height: | Size: 787 B |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 628 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 887 B |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 773 B |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 752 B |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 624 B |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 986 B |
Before Width: | Height: | Size: 889 B |
Before Width: | Height: | Size: 820 B |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 676 B |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 721 B |
Before Width: | Height: | Size: 782 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 809 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 830 B |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1020 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 636 B |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 781 B |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 838 B |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 711 B |
Before Width: | Height: | Size: 941 B |
Before Width: | Height: | Size: 785 B |
Before Width: | Height: | Size: 806 B |
Before Width: | Height: | Size: 841 B |
Before Width: | Height: | Size: 808 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 885 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 962 B |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 784 B |
Before Width: | Height: | Size: 955 B |
Before Width: | Height: | Size: 1.7 KiB |