-
-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from coreui/dev-v2-rc-0
v2.0.0-rc.0
- Loading branch information
Showing
7 changed files
with
228 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,44 @@ | ||
// IE11 polyfills | ||
|
||
if (!Array.prototype.find) { | ||
Array.prototype.find = function(predicate) { | ||
if (this == null) { | ||
throw new TypeError('Array.prototype.find called on null or undefined'); | ||
} | ||
if (typeof predicate !== 'function') { | ||
throw new TypeError('predicate must be a function'); | ||
} | ||
const list = Object(this); | ||
const length = list.length >>> 0; | ||
const thisArg = arguments[1]; | ||
let value; | ||
|
||
for (let i = 0; i < length; i++) { | ||
value = list[i]; | ||
if (predicate.call(thisArg, value, i, list)) { | ||
return value; | ||
} | ||
} | ||
return undefined; | ||
}; | ||
} | ||
/* | ||
* required polyfills | ||
*/ | ||
|
||
/** IE9, IE10 and IE11 requires all of the following polyfills. **/ | ||
// import 'core-js/es6/symbol' | ||
// import 'core-js/es6/object' | ||
// import 'core-js/es6/function' | ||
// import 'core-js/es6/parse-int' | ||
// import 'core-js/es6/parse-float' | ||
// import 'core-js/es6/number' | ||
// import 'core-js/es6/math' | ||
// import 'core-js/es6/string' | ||
// import 'core-js/es6/date' | ||
import 'core-js/es6/array' | ||
// import 'core-js/es6/regexp' | ||
import 'core-js/es6/map' | ||
// import 'core-js/es6/weak-map' | ||
import 'core-js/es6/set' | ||
import 'core-js/es7/object' | ||
|
||
/** IE10 and IE11 requires the following for the Reflect API. */ | ||
// import 'core-js/es6/reflect' | ||
|
||
/** Evergreen browsers require these. **/ | ||
// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. | ||
// import 'core-js/es7/reflect' | ||
|
||
// CustomEvent() constructor functionality in IE9, IE10, IE11 | ||
(function () { | ||
|
||
if ( typeof window.CustomEvent === "function" ) return false | ||
|
||
function CustomEvent ( event, params ) { | ||
params = params || { bubbles: false, cancelable: false, detail: undefined } | ||
var evt = document.createEvent( 'CustomEvent' ) | ||
evt.initCustomEvent( event, params.bubbles, params.cancelable, params.detail ) | ||
return evt | ||
} | ||
|
||
CustomEvent.prototype = window.Event.prototype | ||
|
||
window.CustomEvent = CustomEvent | ||
})() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import Dashboard from './views/Dashboard/Dashboard.js'; | ||
import Full from './containers/Full/Full.js'; | ||
import Full from './containers/DefaultLayout/DefaultLayout.js'; | ||
|
||
// https://github.com/ReactTraining/react-router/tree/master/packages/react-router-config | ||
const routes = [ | ||
{ path: '/', exact: true, name: 'Home', component: Full }, | ||
{ path: '/dashboard', name: 'Dashboard', component: Dashboard }, | ||
]; | ||
|
||
export default routes; | ||
export default routes; |
Oops, something went wrong.