diff --git a/CHANGELOG.md b/CHANGELOG.md index cb2594d27..2cbd87467 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,35 @@ ## [CoreUI](https://coreui.io/) for [react](./REACT.md) changelog +##### `v2.1.0` +- feat(SidebarNav): navLink `attributes` - optional JS object with valid JS API naming: + - valid attributes: `rel`, `target`, `hidden`, `disabled`, etc... + - starting with `@coreui/coreui`, `@coreui/react` version `2.1.0` and up + - closes #106 + - item example(`./src/_nav.js`): + ```js + { + name: 'Disabled', + url: '/disabled', + icon: 'icon-ban', + attributes: { disabled: true }, + }, + { + name: 'Try CoreUI PRO', + url: 'https://coreui.io/pro/react/', + icon: 'cui-layers icons', + variant: 'danger', + attributes: { target: '_blank', rel: "noopener" }, + }, + ``` +- fix(Cards): `card-header-actions` added to `CardHeader` for `rtl` support +- feat(Dashboard): new `Suspense` example with Widget03 +- chore: update `@coreui/coreui` to `2.1.0` +- chore: update `@coreui/react` to `2.1.0` +- chore: update `node-sass` to `4.10.0` +- chore: update `react` to `16.6.1` +- chore: update `react-dom` to `16.6.1` +- chore: update `react-test-renderer` to `16.6.1` + ##### `v2.0.14` - chore: update `@coreui/coreui` to `2.0.25` - chore: update `chart.js` to `2.7.3` @@ -11,7 +41,6 @@ - chore: update `react-test-renderer` to `16.6.0` - chore: update `react-scripts` to `2.1.1` - ##### `v2.0.13` - refactor: migration to [Create React App 2.0](https://reactjs.org/blog/2018/10/01/create-react-app-v2.html) cleanup - cleanup `package.json` scripts diff --git a/package.json b/package.json index 7d7c25a56..fec002e0c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@coreui/coreui-free-react-admin-template", - "version": "2.0.14", + "version": "2.1.0", "description": "CoreUI React Open Source Bootstrap 4 Admin Template", "author": "Ɓukasz Holeczek", "homepage": "https://coreui.io", diff --git a/src/views/Dashboard/Dashboard.js b/src/views/Dashboard/Dashboard.js index 84929ac7f..fdf08495b 100644 --- a/src/views/Dashboard/Dashboard.js +++ b/src/views/Dashboard/Dashboard.js @@ -1,4 +1,4 @@ -import React, { Component } from 'react'; +import React, { Component, lazy, Suspense } from 'react'; import { Bar, Line } from 'react-chartjs-2'; import { Badge, @@ -20,10 +20,13 @@ import { Row, Table, } from 'reactstrap'; -import Widget03 from '../../views/Widgets/Widget03' import { CustomTooltips } from '@coreui/coreui-plugin-chartjs-custom-tooltips'; import { getStyle, hexToRgba } from '@coreui/coreui/dist/js/coreui-utilities' +// import Widget03 from '../../views/Widgets/Widget03' +const Widget03 = lazy(() => import('../../views/Widgets/Widget03')); +const Loading = () =>
Loading...
+ const brandPrimary = getStyle('--primary') const brandSuccess = getStyle('--success') const brandInfo = getStyle('--info') @@ -637,53 +640,33 @@ class Dashboard extends Component { - ({ variant: 'facebook', friends: '89k', feeds: '459' })} > -
- -
-
+ + ({ variant: 'facebook', friends: '89k', feeds: '459' })} > +
+ +
+
+
-
-
- + + ({ variant: 'twitter', followers: '973k', tweets: '1.792' })} >
-
-
-
-
973k
-
followers
-
-
-
1.792
-
tweets
-
-
-
+ + -
-
- + + ({ variant: 'linkedin', contacts: '500+', feeds: '292' })} >
-
-
-
-
500+
-
contacts
-
-
-
292
-
feeds
-
-
-
+ +