Skip to content

Commit e009616

Browse files
authored
Merge pull request #44 from mrholek/v1.0.8
v1.0.8
2 parents 97282bb + f9e8e14 commit e009616

File tree

327 files changed

+4253
-278
lines changed

Some content is hidden

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

327 files changed

+4253
-278
lines changed

CHANGELOG.md

+12

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2017 creativeLabs Łukasz Holeczek.
3+
Copyright (c) 2018 creativeLabs Łukasz Holeczek.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

React_Full_Project/package.json

+19-18
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coreui/react",
3-
"version": "1.0.6",
3+
"version": "1.0.8",
44
"description": "Open Source Bootstrap Admin Template",
55
"author": "Łukasz Holeczek",
66
"homepage": "http://coreui.io",
@@ -13,44 +13,45 @@
1313
"babel-plugin-transform-object-rest-spread": "6.26.0",
1414
"babel-preset-env": "1.6.1",
1515
"babel-preset-react": "6.24.1",
16-
"copy-webpack-plugin": "4.2.1",
17-
"css-hot-loader": "1.3.3",
18-
"css-loader": "0.28.7",
16+
"copy-webpack-plugin": "4.3.1",
17+
"css-hot-loader": "1.3.5",
18+
"css-loader": "0.28.8",
1919
"extract-text-webpack-plugin": "3.0.2",
20-
"file-loader": "1.1.5",
21-
"html-loader": "0.5.1",
20+
"file-loader": "1.1.6",
21+
"html-loader": "0.5.4",
2222
"html-webpack-plugin": "2.30.1",
23-
"node-sass": "4.7.1",
23+
"node-sass": "4.7.2",
2424
"rimraf": "2.6.2",
2525
"sass-loader": "6.0.6",
2626
"source-list-map": "2.0.0",
27-
"style-loader": "0.19.0",
28-
"uglify-js": "3.1.10",
27+
"style-loader": "0.19.1",
28+
"uglify-js": "3.3.7",
2929
"url-loader": "0.6.2",
30-
"webpack": "3.8.1",
31-
"webpack-dev-server": "2.9.4"
30+
"webpack": "3.10.0",
31+
"webpack-dev-server": "2.9.7"
3232
},
3333
"dependencies": {
34-
"bootstrap": "4.0.0-beta.2",
34+
"bootstrap": "4.0.0-beta.3",
3535
"chart.js": "2.7.1",
36+
"flag-icon-css": "2.9.0",
3637
"font-awesome": "4.7.0",
3738
"history": "4.7.2",
38-
"react": "16.1.1",
39-
"react-chartjs-2": "2.6.4",
40-
"react-dom": "16.1.1",
39+
"react": "16.2.0",
40+
"react-chartjs-2": "2.7.0",
41+
"react-dom": "16.2.0",
4142
"react-router-dom": "4.2.2",
4243
"react-transition-group": "2.2.1",
4344
"reactstrap": "5.0.0-alpha.4",
4445
"simple-line-icons": "2.4.1"
4546
},
4647
"scripts": {
4748
"dev": "webpack -d --progress --watch --profile --json > compilation-stats.json --env.dev",
48-
"start": "webpack-dev-server --progress --colors --inline --env.dev",
49+
"start": "webpack-dev-server --progress --color --inline --env.dev",
4950
"build": "webpack -p --progress --env.prod",
5051
"clean": "rimraf ./build"
5152
},
5253
"engines": {
53-
"node": ">= 6.4.0",
54-
"npm": ">= 5.0.0"
54+
"node": ">= 6.12.3",
55+
"npm": ">= 5.6.0"
5556
}
5657
}
-1.89 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
-1.71 KB
Binary file not shown.
-1.41 KB
Binary file not shown.
Binary file not shown.
-1.51 KB
Binary file not shown.
-1.5 KB
Binary file not shown.
-2.56 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-839 Bytes
Binary file not shown.
-787 Bytes
Binary file not shown.
-1.04 KB
Binary file not shown.
-2.56 KB
Binary file not shown.
-628 Bytes
Binary file not shown.
Binary file not shown.
-1.23 KB
Binary file not shown.
-1.23 KB
Binary file not shown.
Binary file not shown.
-1.47 KB
Binary file not shown.
-1.43 KB
Binary file not shown.
-887 Bytes
Binary file not shown.
-2.14 KB
Binary file not shown.
-773 Bytes
Binary file not shown.
-2.49 KB
Binary file not shown.
-2.3 KB
Binary file not shown.
-1.21 KB
Binary file not shown.
Binary file not shown.
-752 Bytes
Binary file not shown.
-2.49 KB
Binary file not shown.
-2.35 KB
Binary file not shown.
-624 Bytes
Binary file not shown.
Binary file not shown.
-2.57 KB
Binary file not shown.
-1.84 KB
Binary file not shown.
-2.34 KB
Binary file not shown.
-1.41 KB
Binary file not shown.
-1.1 KB
Binary file not shown.
-1.45 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-889 Bytes
Binary file not shown.
-820 Bytes
Binary file not shown.
-1.04 KB
Binary file not shown.
-676 Bytes
Binary file not shown.
Binary file not shown.
-1.81 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-721 Bytes
Binary file not shown.
Binary file not shown.
-1.29 KB
Binary file not shown.
-1.47 KB
Binary file not shown.
-1.1 KB
Binary file not shown.
Binary file not shown.
-809 Bytes
Binary file not shown.
-1.42 KB
Binary file not shown.
-1.9 KB
Binary file not shown.
Binary file not shown.
-1.59 KB
Binary file not shown.
-1020 Bytes
Binary file not shown.
Binary file not shown.
-636 Bytes
Binary file not shown.
Binary file not shown.
-2.53 KB
Binary file not shown.
-781 Bytes
Binary file not shown.
-1.61 KB
Binary file not shown.
Binary file not shown.
-838 Bytes
Binary file not shown.
-2.44 KB
Binary file not shown.
-711 Bytes
Binary file not shown.
-941 Bytes
Binary file not shown.
-785 Bytes
Binary file not shown.
-806 Bytes
Binary file not shown.
-841 Bytes
Binary file not shown.
-808 Bytes
Binary file not shown.
-1.12 KB
Binary file not shown.
-1.56 KB
Binary file not shown.
-885 Bytes
Binary file not shown.
-1.18 KB
Binary file not shown.
-2.16 KB
Binary file not shown.
Binary file not shown.
-1.57 KB
Binary file not shown.
-1.99 KB
Binary file not shown.
-1.08 KB
Binary file not shown.
Binary file not shown.
-962 Bytes
Binary file not shown.
-2.62 KB
Binary file not shown.
-784 Bytes
Binary file not shown.
-955 Bytes
Binary file not shown.
-1.71 KB
Binary file not shown.
-729 Bytes
Binary file not shown.
-1009 Bytes
Binary file not shown.
-1.12 KB
Binary file not shown.
-614 Bytes
Binary file not shown.
-1.34 KB
Binary file not shown.
-1.13 KB
Binary file not shown.
-882 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
-1.09 KB
Binary file not shown.
-861 Bytes
Binary file not shown.
-2.69 KB
Binary file not shown.
-1 KB
Binary file not shown.
-2.33 KB
Binary file not shown.
-1.48 KB
Binary file not shown.
Binary file not shown.
-1.75 KB
Binary file not shown.
-3.19 KB
Binary file not shown.
-1.72 KB
Binary file not shown.
-987 Bytes
Binary file not shown.
Binary file not shown.
-1.15 KB
Binary file not shown.
-803 Bytes
Binary file not shown.
-1.24 KB
Binary file not shown.
-2.16 KB
Binary file not shown.
-1.14 KB
Binary file not shown.
-919 Bytes
Binary file not shown.
Binary file not shown.
-744 Bytes
Binary file not shown.
-635 Bytes
Binary file not shown.
-2.28 KB
Binary file not shown.
-2.93 KB
Binary file not shown.
-742 Bytes
Binary file not shown.
-1.23 KB
Binary file not shown.
-1.54 KB
Binary file not shown.
-1.09 KB
Binary file not shown.
-924 Bytes
Binary file not shown.
-869 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-819 Bytes
Binary file not shown.
-1.52 KB
Binary file not shown.
Binary file not shown.
-1.62 KB
Binary file not shown.
-612 Bytes
Binary file not shown.
-1.39 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
-1.08 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
-1.63 KB
Binary file not shown.
-2.79 KB
Binary file not shown.
-1.19 KB
Binary file not shown.
-1.98 KB
Binary file not shown.
Binary file not shown.
-635 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-878 Bytes
Binary file not shown.
-781 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-935 Bytes
Binary file not shown.
-1.72 KB
Binary file not shown.
Binary file not shown.
-1.12 KB
Binary file not shown.
-1.41 KB
Binary file not shown.
-1.28 KB
Binary file not shown.
-1.23 KB
Binary file not shown.
-1.03 KB
Binary file not shown.
Binary file not shown.
-1.03 KB
Binary file not shown.
-1.52 KB
Binary file not shown.
Binary file not shown.
-491 Bytes
Binary file not shown.
-1.75 KB
Binary file not shown.
Binary file not shown.
-1.15 KB
Binary file not shown.
-501 Bytes
Binary file not shown.
-1.94 KB
Binary file not shown.
-900 Bytes
Binary file not shown.
-551 Bytes
Binary file not shown.
-1.05 KB
Binary file not shown.
Binary file not shown.
-1.34 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-2.38 KB
Binary file not shown.
-1.19 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
-655 Bytes
Binary file not shown.
-1.01 KB
Binary file not shown.
-1.31 KB
Binary file not shown.
-1.02 KB
Binary file not shown.
Binary file not shown.
-1.15 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-1.36 KB
Binary file not shown.
-2.09 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
-1.22 KB
Binary file not shown.
-1015 Bytes
Binary file not shown.
-2.24 KB
Binary file not shown.
-906 Bytes
Binary file not shown.
-828 Bytes
Binary file not shown.
-978 Bytes
Binary file not shown.
Binary file not shown.
-1.28 KB
Binary file not shown.
Binary file not shown.
-2.15 KB
Binary file not shown.
-674 Bytes
Binary file not shown.
Binary file not shown.
-1.06 KB
Binary file not shown.
-787 Bytes
Binary file not shown.
Binary file not shown.
-1.63 KB
Binary file not shown.
-1.54 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
-2.34 KB
Binary file not shown.
-1.08 KB
Binary file not shown.
-1.2 KB
Binary file not shown.
-737 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-1.12 KB
Binary file not shown.
-971 Bytes
Binary file not shown.
-2.01 KB
Binary file not shown.
Binary file not shown.
-1.08 KB
Binary file not shown.
-1.15 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
-2.89 KB
Binary file not shown.
Binary file not shown.
-696 Bytes
Binary file not shown.
-1.18 KB
Binary file not shown.
-1.71 KB
Binary file not shown.

React_Full_Project/scss/_bootstrap-variables.scss

+22-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,28 @@ $theme-colors: (
5151
warning: $yellow,
5252
danger: $red,
5353
light: $gray-100,
54-
dark: $gray-800
54+
dark: $gray-800,
55+
56+
blue: $blue,
57+
indigo: $indigo,
58+
purple: $purple,
59+
pink: $pink,
60+
red: $red,
61+
orange: $orange,
62+
yellow: $yellow,
63+
green: $green,
64+
teal: $teal,
65+
cyan: $cyan,
66+
67+
gray-100: $gray-100,
68+
gray-200: $gray-200,
69+
gray-300: $gray-300,
70+
gray-400: $gray-400,
71+
gray-500: $gray-500,
72+
gray-600: $gray-600,
73+
gray-700: $gray-700,
74+
gray-800: $gray-800,
75+
gray-900: $gray-900
5576
);
5677

5778
// Options

React_Full_Project/scss/core/_buttons.scss

-9
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,6 @@ button {
22
cursor: pointer;
33
}
44

5-
.btn {
6-
.badge {
7-
position: absolute;
8-
top: 2px;
9-
right: 6px;
10-
font-size: 9px;
11-
}
12-
}
13-
145
.btn-transparent {
156
color: #fff;
167
background-color: transparent;

React_Full_Project/scss/core/_layout.scss

+3
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ app-root {
129129
}
130130
}
131131
}
132+
.sidebar-minimizer {
133+
display: none;
134+
}
132135
}
133136

134137
.sidebar-minimized {

React_Full_Project/scss/core/_nav.scss

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
.nav-tabs {
22
.nav-link {
33
color: $gray-600;
4+
&:hover {
5+
cursor: pointer;
6+
}
47
&.active {
58
color: $gray-800;
69
background: #fff;

React_Full_Project/scss/core/_sidebar.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
border-radius: $border-radius;
208208
}
209209
> .nav-dropdown-items {
210-
max-height: 1000px;
210+
max-height: 1500px;
211211
}
212212

213213
.nav-link {

React_Full_Project/scss/style.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*!
22
* CoreUI - Open Source Bootstrap Admin Template
3-
* @version v1.0.6
3+
* @version v1.0.8
44
* @link http://coreui.io
5-
* Copyright (c) 2017 creativeLabs Łukasz Holeczek
5+
* Copyright (c) 2018 creativeLabs Łukasz Holeczek
66
* @license MIT
77
*/
88

React_Full_Project/src/components/Footer/Footer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class Footer extends Component {
44
render() {
55
return (
66
<footer className="app-footer">
7-
<span><a href="http://coreui.io">CoreUI</a> &copy; 2017 creativeLabs.</span>
7+
<span><a href="http://coreui.io">CoreUI</a> &copy; 2018 creativeLabs.</span>
88
<span className="ml-auto">Powered by <a href="http://coreui.io">CoreUI</a></span>
99
</footer>
1010
)

React_Full_Project/src/components/Sidebar/Sidebar.js

+18-5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ import SidebarMinimizer from './../SidebarMinimizer';
1010

1111
class Sidebar extends Component {
1212

13+
constructor(props) {
14+
super(props);
15+
16+
this.handleClick = this.handleClick.bind(this);
17+
this.activeRoute = this.activeRoute.bind(this);
18+
this.hideMobile = this.hideMobile.bind(this);
19+
}
20+
21+
1322
handleClick(e) {
1423
e.preventDefault();
1524
e.target.parentElement.classList.toggle('open');
@@ -21,6 +30,12 @@ class Sidebar extends Component {
2130

2231
}
2332

33+
hideMobile() {
34+
if (document.body.classList.contains('sidebar-mobile-show')) {
35+
document.body.classList.toggle('sidebar-mobile-show')
36+
}
37+
}
38+
2439
// todo Sidebar nav secondLevel
2540
// secondLevelActive(routeName) {
2641
// return this.props.location.pathname.indexOf(routeName) > -1 ? "nav nav-second-level collapse in" : "nav nav-second-level collapse";
@@ -30,8 +45,6 @@ class Sidebar extends Component {
3045
render() {
3146

3247
const props = this.props;
33-
const activeRoute = this.activeRoute;
34-
const handleClick = this.handleClick;
3548

3649
// badge addon to NavItem
3750
const badge = (badge) => {
@@ -78,7 +91,7 @@ class Sidebar extends Component {
7891
<i className={classes.icon}></i>{item.name}{badge(item.badge)}
7992
</RsNavLink>
8093
:
81-
<NavLink to={url} className={classes.link} activeClassName="active">
94+
<NavLink to={url} className={classes.link} activeClassName="active" onClick={this.hideMobile}>
8295
<i className={classes.icon}></i>{item.name}{badge(item.badge)}
8396
</NavLink>
8497
}
@@ -89,8 +102,8 @@ class Sidebar extends Component {
89102
// nav dropdown
90103
const navDropdown = (item, key) => {
91104
return (
92-
<li key={key} className={activeRoute(item.url, props)}>
93-
<a className="nav-link nav-dropdown-toggle" href="#" onClick={handleClick.bind(this)}><i className={item.icon}></i>{item.name}</a>
105+
<li key={key} className={this.activeRoute(item.url, props)}>
106+
<a className="nav-link nav-dropdown-toggle" href="#" onClick={this.handleClick}><i className={item.icon}></i>{item.name}</a>
94107
<ul className="nav-dropdown-items">
95108
{navList(item.children)}
96109
</ul>

0 commit comments

Comments
 (0)