Commit Graph

396 Commits

Author SHA1 Message Date
xidedix
969bc8593a refactor: add ie polyfills 2019-06-17 20:53:21 +02:00
xidedix
25c8f9f84e Ship: v2.5.0 2019-05-16 17:58:39 +02:00
xidedix
349393e60b refactor: update to react router v5
###### dependencies update
- update: `@coreui/react` to `~2.5.0`
- update: `react-router-config` to `^5.0.0`
- update: `react-router-dom` to `^5.0.0`

__BREAKING CHANGES__
- drop 'Breadcrumb' in favour of `Breadcrumb2`
- drop 'SidebarNav' in favour of `SidebarNav2`
- __Breadcrumb2__: **mandatory** prop `router` see > [Breadcrumb](./src/Breadcrumb.md)
- __SidebarNav2__: **mandatory** prop `router`  see > [SidebarNav](./src/SidebarNav.md)

React Router v5 uses the new React Context API, which is incompatible with version used in 4.3.
That's a breaking change. With raw upgrade to v5, you can encounter an error message: `You should not render a <Route> outside a <Router>` or `You should not use <Link> outside a <Router>` etc... It means that Route, Link etc, can't find the correct context object because `Breadcrumb` and `SidebarNav` components have their own context object.

It's important to use the same instance of the `react-router-dom v5` library with template and coreui components. `@coreui/react` version `2.5.0` moves react-router-dom form dependencies to peerDependecies and takes the same library/module from the template/app instead. We have to pass router module object as a prop to `<AppSidebarNav>` and `<AppBreadcrumb>`

#####_migration guide v2.1 -> v2.5_ 💥
1. update `dependencies` in `package.json`
   - [ ] `@coreui/react` to `~2.5.0`
   - [ ] `react-router-dom` to `^5.0.0`
   - [ ] `react-router-config` to `^5.0.0`

2. modify `DefaultLayout.js`
   - [ ] import react-router-dom module as an object
     ```
     import * as router from 'react-router-dom';
     ```
   - [ ] import new versions of components `AppBreadcrumb2` and `AppSidebarNav2` (alias is optional, just keep consistency with markup)
     ```jsx
     import {
       ...
       AppBreadcrumb2 as AppBreadcrumb,
       AppSidebarNav2 as AppSidebarNav
       ...
     } from '@coreui/react';
     ```
   - [ ] inject `router` object as a prop to `<AppSidebarNav>` and `<AppBreadcrumb>`
     ```html
     <AppSidebarNav navConfig={navigation} {...this.props} router={router}/>
     ```

     ```html
     <AppBreadcrumb appRoutes={routes} router={router}/>
     ```

---
2019-05-16 17:51:38 +02:00
xidedix
3490bba27b fix(Popovers): add trigger=legacy 2019-05-14 19:17:21 +02:00
xidedix
24666f6681 refactor(Forms): move to InputGroupButtonDropdown where applicable 2019-03-25 15:36:01 +01:00
xidedix
7ad00e6a33 refactor(DefaultHeader): move to ReactRouter NavLink 2019-03-25 15:32:33 +01:00
xidedix
988b240566 fix(routes): add Home to routes - breadcrumb issue 2019-03-25 14:29:54 +01:00
xidedix
ded4437ae1 refactor(App): change to render in Route 2019-03-25 14:27:54 +01:00
xidedix
68c2cce40d fix: remove redundant react-loadable 2019-03-25 13:39:38 +01:00
sergeyt
691d0cd9b5 remove redundant react-loadable 2019-03-24 18:41:07 +07:00
sergeyt
987c047427 fix circular dependency 2019-03-24 18:31:42 +07:00
xidedix
4af6e9b25e refactor(DefaultHeader): Dashboard router link 2019-02-21 18:06:39 +01:00
xidedix
2a9a23dff5 fix(Collapse): add mb-0 to accordion cards 2019-01-08 16:09:25 +01:00
xidedix
fa7d429667 fix(ButtonGroups): misplaced dropdownOpen 2019-01-08 16:08:57 +01:00
xidedix
310fa608b1 test: add coverage 2018-11-26 19:54:54 +01:00
xidedix
52a68868cd refactor(Tabs): cleanup, test coverage 2018-11-26 18:28:27 +01:00
xidedix
7632881468 test: more coverage 2018-11-23 18:37:44 +01:00
xidedix
eb18566331 fix(scss): floating footer ie11 issue 2018-11-21 17:12:08 +01:00
xidedix
c3249976cb refactor(Dashboard): tweak lazy and Suspense for Widget03 2018-11-20 23:08:14 +01:00
xidedix
05d0d7f1e8 refactor(Login): add router link to Register button 2018-11-20 23:06:49 +01:00
xidedix
39104998aa refactor(Register): add margins to social-media buttons 2018-11-20 23:06:20 +01:00
xidedix
77f87cff88 refactor(DefaultHeader): add react-router Link to /users
- refactor(Users): add react-router Link to `/users`
2018-11-19 18:13:05 +01:00
xidedix
f0bcbabab5 refactor(DefaultLayout) code splitting with React.lazy
- remove `react-loadable`
- `Suspense` with routes, Aside, Footer, Header
-  add `onLogout` for DefaultHeader
2018-11-19 18:10:35 +01:00
xidedix
2e8c6c16e0 refactor(App.js) code splitting with react-loadable 2018-11-19 18:00:09 +01:00
xidedix
df3b3e220a chore: disable eslint warning for href="#" attribute 2018-11-19 17:57:34 +01:00
xidedix
4e5d6932cb ship: v2.1.0 2018-11-07 18:08:14 +01:00
xidedix
7b358c438d feat(SidebarNav): navLink attributes - optional JS object with valid JS API naming
- starting with `@coreui/coreui`, `@coreui/react` `v2.1.0` and up
- valid attributes: `rel`, `target`, `hidden`, `disabled`, etc...
2018-11-07 17:00:26 +01:00
xidedix
6c3acb334a fix(Cards): card-header-actions add to CardHeader for rtl support 2018-11-07 16:57:30 +01:00
xidedix
0728cda1a4 chore: remove unused vendors/charts.js/ directory 2018-10-09 17:57:11 +02:00
xidedix
5bc9ccc387 refactor: import from node_modules/ with ~ prefix 2018-10-09 17:56:26 +02:00
xidedix
abeea785f9 refactor: move App.js import styles to App.scss 2018-10-09 17:55:22 +02:00
xidedix
1424b6c3f0 fix(DefaultAside): ListGroup with tag="div" works better with rtl 2018-10-05 17:26:37 +02:00
xidedix
8e2132e580 fix(DefaultLayout): AppAside remove deprecated hidden prop 2018-10-05 17:26:05 +02:00
xidedix
f400c0a2c4 chore: move to Create React App 2.0 2018-10-02 16:31:00 +02:00
xidedix
e6a32aea1a chore: dependencies update 2018-10-01 20:12:41 +02:00
xidedix
fda5fbcef0 chore: dependencies update 2018-08-31 17:47:42 +02:00
xidedix
3b7c4c7d83 chore(ship): v2.0.8 2018-07-30 16:14:37 +02:00
xidedix
bad280163c chore(Switch): add missing Pro badges 2018-07-30 16:13:35 +02:00
xidedix
9cc60d087e fix(User): add missing unique key prop 2018-07-30 16:11:06 +02:00
xidedix
0ab11ea1e1 fix(Register): add missing form and autoComplete 2018-07-30 16:10:51 +02:00
xidedix
9f9eb65a1a fix(Login): add missing form and autoComplete 2018-07-30 16:10:37 +02:00
Łukasz Holeczek
26be744027 update: coreui to 2.0.4 2018-07-13 17:37:49 +02:00
xidedix
05c18d0cac feat(router): Users/User Breadcrumb example with /users/:id 2018-06-21 20:09:30 +02:00
xidedix
0a6aec7196 chore: dependencies update 2018-06-08 17:32:04 +02:00
xidedix
9e9d218fcb refactor(Cards): toggleFade 2018-05-23 18:37:40 +02:00
xidedix
68b19fbe94 refactor(Forms): toggleFade 2018-05-23 18:36:17 +02:00
xidedix
eeaccc4c51 feat(Forms): FormFeedback valid 2018-05-23 18:20:23 +02:00
xidedix
96d21c95e3 refactor: CoreUI Icons v0.2.0 2018-05-23 12:43:43 +02:00
xidedix
6c9ead5e77 fix(routes): mismatched SimpleLineIcons dynamic import 2018-05-23 12:41:44 +02:00
xidedix
227552f1d1 refactor: disable ServiceWorker by default 2018-05-23 12:40:12 +02:00
xidedix
2efca30472 fix: update component names in package.json 2018-05-11 17:15:39 +02:00
xidedix
49e86ad555 chore: switches view rearrange 2018-05-10 13:16:10 +02:00
xidedix
d1d388781c refactor: code splitting via dynamic import 2018-05-10 13:11:40 +02:00
xidedix
97f6ab6014 feat: new CoreUI Icons set 2018-05-09 17:30:41 +02:00
xidedix
0a030ec322 chore: dependencies update 2018-05-08 19:21:17 +02:00
xidedix
22774fdb15 refactor(switches): cleanup 2018-05-08 16:48:12 +02:00
xidedix
245263a1ad fix(styles): ie temp fix align-items-center 2018-05-08 16:22:46 +02:00
xidedix
0c88adc9c8 refactor(widgets): add missing line charts to Widget03 2018-05-08 16:21:49 +02:00
xidedix
59d43f7ef2 refactor(modals view): button margins 2018-05-08 16:20:41 +02:00
xidedix
5eb8a4abe5 refactor: buttons view 2018-05-08 16:19:40 +02:00
xidedix
3869f17741 fix: ie pages align-items-center issue temp fix 2018-05-02 17:30:15 +02:00
xidedix
ff1194aeec chore: update reactstrap to v6.0.1 2018-05-02 17:28:59 +02:00
xidedix
45ead1eab2 chore: cleanup 2018-05-01 19:59:12 +02:00
xidedix
15fc553c2b refactor: import logo and sygnet 2018-05-01 19:58:54 +02:00
xidedix
eee1f0a47e chore: update Bootstrap to 4.1.1 2018-05-01 17:43:57 +02:00
xidedix
20770f5e02 refactor: polyfills for IE11 based on core-js 2018-05-01 17:42:20 +02:00
xidedix
1010c5b09f refactor: add some autocomplete attributes to forms input 2018-05-01 17:40:26 +02:00
xidedix
cc70b1c351 refactor: rename Full container to DefaultLayout 2018-05-01 17:38:56 +02:00
xidedix
ae6ebc7e4d Merge branch 'master' into dev-2.0.0-beta.3 2018-04-30 19:44:55 +02:00
xidedix
6fe77dbbf2 chore: dependencies update 2018-04-30 19:41:44 +02:00
Łukasz Holeczek
f2fd4a4439 Merge branch 'master' of https://github.com/coreui/coreui-free-react-admin-template 2018-04-29 11:14:48 +02:00
Łukasz Holeczek
b7cb78f21f fix: ie card charts issue 2018-04-29 11:14:41 +02:00
xidedix
c9762919d9 refactor: IE polyfills and import utilities from @coreui/coreui 2018-04-27 20:58:38 +02:00
xidedix
3218b647c3 chore: fix css build scripts 2018-04-24 16:24:13 +02:00
xidedix
4518f54db9 fix: temp hotfix ButtonDropdown up 2018-04-24 14:54:41 +02:00
xidedix
0e28db82e0 feat: chart.js custom tooltips plugin 2018-04-24 12:55:21 +02:00
xidedix
db92bfb594 feat(charts): CustomTooltips 2018-04-20 16:15:53 +02:00
xidedix
7faaa9fb93 chore: ship v2.0.0-beta.1 2018-04-19 18:49:10 +02:00
xidedix
a7aabf07b9 refactor(Switches): cleanup imports Input, Label 2018-04-19 18:48:39 +02:00
xidedix
c1bd2169aa refactor(Switches): move to AppSwitch component 2018-04-19 18:42:09 +02:00
xidedix
fbad174a3c refactor: fixed typo 2018-04-19 18:40:46 +02:00
xidedix
5a63629161 chore: cleanup 2018-04-17 14:39:44 +02:00
xidedix
3ec289c73d chore: dependencies 2018-04-16 20:03:09 +02:00
xidedix
1892c401aa refactor: v2.0.0-alpha.3
- refactor(Colors): view layout, minor temp tweaks
- refactor(FullAside): - ListGroup (deprecate callout)
- refactor(Full*): containers minor fixes
- refactor(Dropdowns): minor fixes
- refactor(Forms): `card-header-actions`
- feat(Forms): `<Input type="date">`
- feat(Forms): `FormFeedback`
- feat(Collapses): Accordion, Custom Accordion
- feat(ListGroup): with TabPanes
- refactor(PaginationItem): `tag="button"`
- refactor(BrandButtons): spacing
- refactor:(Buttons): view layout
2018-04-12 22:01:31 +02:00
xidedix
71b1911de7 refactor: minor fixes 2018-04-11 18:36:19 +02:00
xidedix
b1ba7d8cd4 refactor(FullAside): ListGroup (deprecate callout) 2018-04-11 18:34:16 +02:00
xidedix
f7cd0549f4 refactor: styles from @coreui/coreui 2018-04-11 18:32:16 +02:00
xidedix
eeb7a56641 refactor: Colors 2018-04-11 18:31:25 +02:00
xidedix
c46cb8400e v2.0.0-alpha.2
- refactor: FullHeader `<AppHeaderDropdown direction="down">` (required prop `direction`)
- refactor: ButtonDropdowns `<Dropdown direction="up">` (deprecate 'dropup')
- refactor: Dashboard legend badge pill
- refactor: SocialButtons to BrandButtons `btn-brand`
- refactor: Buttons spacing `mr-1`
- update: reactstrap to `5.0.0`
- update: react, react-dom to `16.3.1`
- update: node-sass-chokidar to `1.1.0`
- update: prop-types to `15.5.8`
- update: react-scripts to `1.1.4`
2018-04-09 13:36:51 +02:00
xidedix
a287b306be fix: temporary add dependency to git @coreui/react 2018-03-16 15:31:04 +01:00
xidedix
09a02cc657 fix: Dashboard charts swap 2018-03-14 18:31:50 +01:00
xidedix
9fda46390c fix: add className='card-header-action' 2018-03-14 16:13:05 +01:00
xidedix
d66b150158 test: add simple smoke test 2018-03-14 14:35:20 +01:00
xidedix
77f8096978 refactor: Dashboard.js, README.md 2018-03-14 14:29:17 +01:00
xidedix
28669bed46 CoreUI-React initial commit v2.0.0-alpha.1 2018-03-13 17:36:17 +01:00
Łukasz Holeczek
d1c1987014 refactor: new project structure 2018-03-05 15:34:43 +01:00