Skip to content

Commit 5a67b91

Browse files
committed
Ship v2.0.0
2 parents cd2c6a4 + fdb3310 commit 5a67b91

Some content is hidden

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

51 files changed

+2338
-17207
lines changed

.eslintignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
test/coverage/
2+
es/
3+
lib/
4+
umd/

.eslintrc

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"node": true,
5+
"es6": true
6+
},
7+
"extends": ["eslint:recommended", "plugin:react/recommended"],
8+
"parser": "babel-eslint",
9+
"parserOptions": {
10+
"sourceType": "module",
11+
"ecmaFeatures": {
12+
"jsx": true,
13+
"arrowFunctions": true,
14+
"blockBindings": true,
15+
"defaultParams": true,
16+
"destructuring": true,
17+
"forOf": true,
18+
"generators": true,
19+
"objectLiteralComputedProperties": true,
20+
"objectLiteralShorthandMethods": true,
21+
"objectLiteralShorthandProperties": true,
22+
"experimentalObjectRestSpread": true,
23+
"restParams": true,
24+
"spread": true,
25+
"templateStrings": true,
26+
"modules": true,
27+
"classes": true
28+
}
29+
},
30+
"plugins": [
31+
"react"
32+
],
33+
"root": true,
34+
"rules": {
35+
"comma-dangle": 0,
36+
"linebreak-style": 0
37+
}
38+
}

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 creativeLabs Łukasz Holeczek
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

CONTRIBUTING.md renamed to NWB.md

File renamed without changes.

README.md

+12-5
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,29 @@
11
## @coreui/react v2
22

3-
[![Travis][build-badge]][build]
43
[![npm package][npm-badge]][npm]
4+
[![npm next][npm-next]][npm]
5+
[![NPM downloads][npm-download]][npm]
6+
[![Travis][build-badge]][build]
57
[![Coveralls][coveralls-badge]][coveralls]
68

7-
_@coreui/react v2_ :construction:
8-
- work in progress :warning:
9-
- bootstrapped with [nwb](https://github.com/insin/nwb) toolkit
10-
119
[build-badge]: https://img.shields.io/travis/user/repo/master.png?style=flat-square
1210
[build]: https://travis-ci.org/user/repo
1311

1412
[npm-badge]: https://img.shields.io/npm/v/@coreui/react.png?style=flat-square
13+
[npm-next]: https://img.shields.io/npm/v/@coreui/react/next.png?style=flat-square
1514
[npm]: https://www.npmjs.com/package/@coreui/react
15+
[npm-download]: https://img.shields.io/npm/dm/@coreui/react.svg?style=flat-square
1616

1717
[coveralls-badge]: https://img.shields.io/coveralls/user/repo/master.png?style=flat-square
1818
[coveralls]: https://coveralls.io/github/user/repo
1919

20+
[circleci-badge]: https://circleci.com/gh/coreui/react/tree/master.svg?style=shield
21+
[circleci]: https://circleci.com/gh/coreui/react/tree/master.svg?style=shield
22+
23+
_@coreui/react v2_ :construction:
24+
- work in progress :warning:
25+
- bootstrapped with [nwb](https://github.com/insin/nwb) toolkit
26+
2027
#### `npm run` scripts
2128

2229
`package.json` is configured with `"scripts"` we can use with `npm run` while developing the project.

demo/src/App.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import './scss/style.css'
1313
// import '../node_modules/@coreui/styles/scss/_dropdown-menu-right.scss';
1414

1515
// Containers
16-
import Full from './containers/Full/Full.js';
16+
import Full from './containers/DefaultLayout/DefaultLayout.js';
1717

1818
// import { renderRoutes } from 'react-router-config';
1919

demo/src/containers/Full/Full.js renamed to demo/src/containers/DefaultLayout/DefaultLayout.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { Component } from 'react';
22
import { Redirect, Route, Switch } from 'react-router-dom';
3-
import { Container, Nav, NavItem, NavLink, Badge, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap';
3+
import { Container, Nav, NavItem, NavLink, Badge, DropdownToggle, DropdownMenu } from 'reactstrap';
44

55
import {
66
AppAside,
@@ -27,7 +27,7 @@ import logo from '../../assets/img/brand/logo.svg'
2727
import sygnet from '../../assets/img/brand/sygnet.svg'
2828
import avatar from '../../assets/img/avatars/6.jpg'
2929

30-
class Full extends Component {
30+
class DefaultLayout extends Component {
3131
render() {
3232
return (
3333
<div className="app">
@@ -88,12 +88,13 @@ class Full extends Component {
8888
Aside
8989
</AppAside>
9090
</div>
91-
<AppFooter fixed>
91+
<AppFooter>
9292
<span><a href="https://coreui.io">CoreUI</a> &copy; 2018 creativeLabs.</span>
93-
<span className="ml-auto">Powered by <a href="https://coreui.io/react">CoreUI for React</a></span> </AppFooter>
93+
<span className="ml-auto">Powered by <a href="https://coreui.io/react">CoreUI for React</a></span>
94+
</AppFooter>
9495
</div>
9596
);
9697
}
9798
}
9899

99-
export default Full;
100+
export default DefaultLayout;

demo/src/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
import './polyfill'
12
import React from 'react';
2-
import ReactDOM, { render } from 'react-dom';
3+
import ReactDOM from 'react-dom';
34
import App from './App';
45
// import registerServiceWorker from './registerServiceWorker';
56

demo/src/polyfill.js

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
* required polyfills
3+
*/
4+
5+
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
6+
// import 'core-js/es6/symbol'
7+
// import 'core-js/es6/object'
8+
// import 'core-js/es6/function'
9+
// import 'core-js/es6/parse-int'
10+
// import 'core-js/es6/parse-float'
11+
// import 'core-js/es6/number'
12+
// import 'core-js/es6/math'
13+
// import 'core-js/es6/string'
14+
// import 'core-js/es6/date'
15+
import 'core-js/es6/array'
16+
// import 'core-js/es6/regexp'
17+
import 'core-js/es6/map'
18+
// import 'core-js/es6/weak-map'
19+
import 'core-js/es6/set'
20+
import 'core-js/es7/object'
21+
22+
/** IE10 and IE11 requires the following for the Reflect API. */
23+
// import 'core-js/es6/reflect'
24+
25+
/** Evergreen browsers require these. **/
26+
// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
27+
// import 'core-js/es7/reflect'
28+
29+
// CustomEvent() constructor functionality in IE9, IE10, IE11
30+
(function () {
31+
32+
if ( typeof window.CustomEvent === "function" ) return false
33+
34+
function CustomEvent ( event, params ) {
35+
params = params || { bubbles: false, cancelable: false, detail: undefined }
36+
var evt = document.createEvent( 'CustomEvent' )
37+
evt.initCustomEvent( event, params.bubbles, params.cancelable, params.detail )
38+
return evt
39+
}
40+
41+
CustomEvent.prototype = window.Event.prototype
42+
43+
window.CustomEvent = CustomEvent
44+
})()

demo/src/routes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import Dashboard from './views/Dashboard/Dashboard.js';
2-
import Full from './containers/Full/Full.js';
2+
import Full from './containers/DefaultLayout/DefaultLayout.js';
33

44
// https://github.com/ReactTraining/react-router/tree/master/packages/react-router-config
55
const routes = [
66
{ path: '/', exact: true, name: 'Home', component: Full },
77
{ path: '/dashboard', name: 'Dashboard', component: Dashboard },
88
];
99

10-
export default routes;
10+
export default routes;

demo/src/scss/_custom.scss

-1
This file was deleted.

demo/src/scss/_variables.scss

-1
This file was deleted.

0 commit comments

Comments
 (0)