Experimental port to Firebase hosting
This commit is contained in:
67
public/react-router-dom@4.3.1/BrowserRouter.js
Normal file
67
public/react-router-dom@4.3.1/BrowserRouter.js
Normal file
@ -0,0 +1,67 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
var _warning = require("warning");
|
||||
|
||||
var _warning2 = _interopRequireDefault(_warning);
|
||||
|
||||
var _react = require("react");
|
||||
|
||||
var _react2 = _interopRequireDefault(_react);
|
||||
|
||||
var _propTypes = require("prop-types");
|
||||
|
||||
var _propTypes2 = _interopRequireDefault(_propTypes);
|
||||
|
||||
var _history = require("history");
|
||||
|
||||
var _Router = require("./Router");
|
||||
|
||||
var _Router2 = _interopRequireDefault(_Router);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||||
|
||||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||||
|
||||
/**
|
||||
* The public API for a <Router> that uses HTML5 history.
|
||||
*/
|
||||
var BrowserRouter = function (_React$Component) {
|
||||
_inherits(BrowserRouter, _React$Component);
|
||||
|
||||
function BrowserRouter() {
|
||||
var _temp, _this, _ret;
|
||||
|
||||
_classCallCheck(this, BrowserRouter);
|
||||
|
||||
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
||||
args[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.history = (0, _history.createBrowserHistory)(_this.props), _temp), _possibleConstructorReturn(_this, _ret);
|
||||
}
|
||||
|
||||
BrowserRouter.prototype.componentWillMount = function componentWillMount() {
|
||||
(0, _warning2.default)(!this.props.history, "<BrowserRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { BrowserRouter as Router }`.");
|
||||
};
|
||||
|
||||
BrowserRouter.prototype.render = function render() {
|
||||
return _react2.default.createElement(_Router2.default, { history: this.history, children: this.props.children });
|
||||
};
|
||||
|
||||
return BrowserRouter;
|
||||
}(_react2.default.Component);
|
||||
|
||||
BrowserRouter.propTypes = {
|
||||
basename: _propTypes2.default.string,
|
||||
forceRefresh: _propTypes2.default.bool,
|
||||
getUserConfirmation: _propTypes2.default.func,
|
||||
keyLength: _propTypes2.default.number,
|
||||
children: _propTypes2.default.node
|
||||
};
|
||||
exports.default = BrowserRouter;
|
||||
66
public/react-router-dom@4.3.1/HashRouter.js
Normal file
66
public/react-router-dom@4.3.1/HashRouter.js
Normal file
@ -0,0 +1,66 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
var _warning = require("warning");
|
||||
|
||||
var _warning2 = _interopRequireDefault(_warning);
|
||||
|
||||
var _react = require("react");
|
||||
|
||||
var _react2 = _interopRequireDefault(_react);
|
||||
|
||||
var _propTypes = require("prop-types");
|
||||
|
||||
var _propTypes2 = _interopRequireDefault(_propTypes);
|
||||
|
||||
var _history = require("history");
|
||||
|
||||
var _Router = require("./Router");
|
||||
|
||||
var _Router2 = _interopRequireDefault(_Router);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||||
|
||||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||||
|
||||
/**
|
||||
* The public API for a <Router> that uses window.location.hash.
|
||||
*/
|
||||
var HashRouter = function (_React$Component) {
|
||||
_inherits(HashRouter, _React$Component);
|
||||
|
||||
function HashRouter() {
|
||||
var _temp, _this, _ret;
|
||||
|
||||
_classCallCheck(this, HashRouter);
|
||||
|
||||
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
||||
args[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.history = (0, _history.createHashHistory)(_this.props), _temp), _possibleConstructorReturn(_this, _ret);
|
||||
}
|
||||
|
||||
HashRouter.prototype.componentWillMount = function componentWillMount() {
|
||||
(0, _warning2.default)(!this.props.history, "<HashRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { HashRouter as Router }`.");
|
||||
};
|
||||
|
||||
HashRouter.prototype.render = function render() {
|
||||
return _react2.default.createElement(_Router2.default, { history: this.history, children: this.props.children });
|
||||
};
|
||||
|
||||
return HashRouter;
|
||||
}(_react2.default.Component);
|
||||
|
||||
HashRouter.propTypes = {
|
||||
basename: _propTypes2.default.string,
|
||||
getUserConfirmation: _propTypes2.default.func,
|
||||
hashType: _propTypes2.default.oneOf(["hashbang", "noslash", "slash"]),
|
||||
children: _propTypes2.default.node
|
||||
};
|
||||
exports.default = HashRouter;
|
||||
117
public/react-router-dom@4.3.1/Link.js
Normal file
117
public/react-router-dom@4.3.1/Link.js
Normal file
@ -0,0 +1,117 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
||||
|
||||
var _react = require("react");
|
||||
|
||||
var _react2 = _interopRequireDefault(_react);
|
||||
|
||||
var _propTypes = require("prop-types");
|
||||
|
||||
var _propTypes2 = _interopRequireDefault(_propTypes);
|
||||
|
||||
var _invariant = require("invariant");
|
||||
|
||||
var _invariant2 = _interopRequireDefault(_invariant);
|
||||
|
||||
var _history = require("history");
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||||
|
||||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||||
|
||||
var isModifiedEvent = function isModifiedEvent(event) {
|
||||
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
|
||||
};
|
||||
|
||||
/**
|
||||
* The public API for rendering a history-aware <a>.
|
||||
*/
|
||||
|
||||
var Link = function (_React$Component) {
|
||||
_inherits(Link, _React$Component);
|
||||
|
||||
function Link() {
|
||||
var _temp, _this, _ret;
|
||||
|
||||
_classCallCheck(this, Link);
|
||||
|
||||
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
||||
args[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.handleClick = function (event) {
|
||||
if (_this.props.onClick) _this.props.onClick(event);
|
||||
|
||||
if (!event.defaultPrevented && // onClick prevented default
|
||||
event.button === 0 && // ignore everything but left clicks
|
||||
!_this.props.target && // let browser handle "target=_blank" etc.
|
||||
!isModifiedEvent(event) // ignore clicks with modifier keys
|
||||
) {
|
||||
event.preventDefault();
|
||||
|
||||
var history = _this.context.router.history;
|
||||
var _this$props = _this.props,
|
||||
replace = _this$props.replace,
|
||||
to = _this$props.to;
|
||||
|
||||
|
||||
if (replace) {
|
||||
history.replace(to);
|
||||
} else {
|
||||
history.push(to);
|
||||
}
|
||||
}
|
||||
}, _temp), _possibleConstructorReturn(_this, _ret);
|
||||
}
|
||||
|
||||
Link.prototype.render = function render() {
|
||||
var _props = this.props,
|
||||
replace = _props.replace,
|
||||
to = _props.to,
|
||||
innerRef = _props.innerRef,
|
||||
props = _objectWithoutProperties(_props, ["replace", "to", "innerRef"]); // eslint-disable-line no-unused-vars
|
||||
|
||||
(0, _invariant2.default)(this.context.router, "You should not use <Link> outside a <Router>");
|
||||
|
||||
(0, _invariant2.default)(to !== undefined, 'You must specify the "to" property');
|
||||
|
||||
var history = this.context.router.history;
|
||||
|
||||
var location = typeof to === "string" ? (0, _history.createLocation)(to, null, null, history.location) : to;
|
||||
|
||||
var href = history.createHref(location);
|
||||
return _react2.default.createElement("a", _extends({}, props, { onClick: this.handleClick, href: href, ref: innerRef }));
|
||||
};
|
||||
|
||||
return Link;
|
||||
}(_react2.default.Component);
|
||||
|
||||
Link.propTypes = {
|
||||
onClick: _propTypes2.default.func,
|
||||
target: _propTypes2.default.string,
|
||||
replace: _propTypes2.default.bool,
|
||||
to: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.object]).isRequired,
|
||||
innerRef: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.func])
|
||||
};
|
||||
Link.defaultProps = {
|
||||
replace: false
|
||||
};
|
||||
Link.contextTypes = {
|
||||
router: _propTypes2.default.shape({
|
||||
history: _propTypes2.default.shape({
|
||||
push: _propTypes2.default.func.isRequired,
|
||||
replace: _propTypes2.default.func.isRequired,
|
||||
createHref: _propTypes2.default.func.isRequired
|
||||
}).isRequired
|
||||
}).isRequired
|
||||
};
|
||||
exports.default = Link;
|
||||
11
public/react-router-dom@4.3.1/MemoryRouter.js
Normal file
11
public/react-router-dom@4.3.1/MemoryRouter.js
Normal file
@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
var _MemoryRouter = require("react-router/MemoryRouter");
|
||||
|
||||
var _MemoryRouter2 = _interopRequireDefault(_MemoryRouter);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
exports.default = _MemoryRouter2.default; // Written in this round about way for babel-transform-imports
|
||||
91
public/react-router-dom@4.3.1/NavLink.js
Normal file
91
public/react-router-dom@4.3.1/NavLink.js
Normal file
@ -0,0 +1,91 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
||||
|
||||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
||||
|
||||
var _react = require("react");
|
||||
|
||||
var _react2 = _interopRequireDefault(_react);
|
||||
|
||||
var _propTypes = require("prop-types");
|
||||
|
||||
var _propTypes2 = _interopRequireDefault(_propTypes);
|
||||
|
||||
var _Route = require("./Route");
|
||||
|
||||
var _Route2 = _interopRequireDefault(_Route);
|
||||
|
||||
var _Link = require("./Link");
|
||||
|
||||
var _Link2 = _interopRequireDefault(_Link);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
||||
|
||||
/**
|
||||
* A <Link> wrapper that knows if it's "active" or not.
|
||||
*/
|
||||
var NavLink = function NavLink(_ref) {
|
||||
var to = _ref.to,
|
||||
exact = _ref.exact,
|
||||
strict = _ref.strict,
|
||||
location = _ref.location,
|
||||
activeClassName = _ref.activeClassName,
|
||||
className = _ref.className,
|
||||
activeStyle = _ref.activeStyle,
|
||||
style = _ref.style,
|
||||
getIsActive = _ref.isActive,
|
||||
ariaCurrent = _ref["aria-current"],
|
||||
rest = _objectWithoutProperties(_ref, ["to", "exact", "strict", "location", "activeClassName", "className", "activeStyle", "style", "isActive", "aria-current"]);
|
||||
|
||||
var path = (typeof to === "undefined" ? "undefined" : _typeof(to)) === "object" ? to.pathname : to;
|
||||
|
||||
// Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202
|
||||
var escapedPath = path && path.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
|
||||
|
||||
return _react2.default.createElement(_Route2.default, {
|
||||
path: escapedPath,
|
||||
exact: exact,
|
||||
strict: strict,
|
||||
location: location,
|
||||
children: function children(_ref2) {
|
||||
var location = _ref2.location,
|
||||
match = _ref2.match;
|
||||
|
||||
var isActive = !!(getIsActive ? getIsActive(match, location) : match);
|
||||
|
||||
return _react2.default.createElement(_Link2.default, _extends({
|
||||
to: to,
|
||||
className: isActive ? [className, activeClassName].filter(function (i) {
|
||||
return i;
|
||||
}).join(" ") : className,
|
||||
style: isActive ? _extends({}, style, activeStyle) : style,
|
||||
"aria-current": isActive && ariaCurrent || null
|
||||
}, rest));
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
NavLink.propTypes = {
|
||||
to: _Link2.default.propTypes.to,
|
||||
exact: _propTypes2.default.bool,
|
||||
strict: _propTypes2.default.bool,
|
||||
location: _propTypes2.default.object,
|
||||
activeClassName: _propTypes2.default.string,
|
||||
className: _propTypes2.default.string,
|
||||
activeStyle: _propTypes2.default.object,
|
||||
style: _propTypes2.default.object,
|
||||
isActive: _propTypes2.default.func,
|
||||
"aria-current": _propTypes2.default.oneOf(["page", "step", "location", "date", "time", "true"])
|
||||
};
|
||||
|
||||
NavLink.defaultProps = {
|
||||
activeClassName: "active",
|
||||
"aria-current": "page"
|
||||
};
|
||||
|
||||
exports.default = NavLink;
|
||||
11
public/react-router-dom@4.3.1/Prompt.js
Normal file
11
public/react-router-dom@4.3.1/Prompt.js
Normal file
@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
var _Prompt = require("react-router/Prompt");
|
||||
|
||||
var _Prompt2 = _interopRequireDefault(_Prompt);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
exports.default = _Prompt2.default; // Written in this round about way for babel-transform-imports
|
||||
37
public/react-router-dom@4.3.1/README.md
Normal file
37
public/react-router-dom@4.3.1/README.md
Normal file
@ -0,0 +1,37 @@
|
||||
# react-router-dom
|
||||
|
||||
DOM bindings for [React Router](https://reacttraining.com/react-router).
|
||||
|
||||
## Installation
|
||||
|
||||
Using [npm](https://www.npmjs.com/):
|
||||
|
||||
$ npm install --save react-router-dom
|
||||
|
||||
Then with a module bundler like [webpack](https://webpack.github.io/), use as you would anything else:
|
||||
|
||||
```js
|
||||
// using ES6 modules
|
||||
import { BrowserRouter, Route, Link } from 'react-router-dom'
|
||||
|
||||
// using CommonJS modules
|
||||
const BrowserRouter = require('react-router-dom').BrowserRouter
|
||||
const Route = require('react-router-dom').Route
|
||||
const Link = require('react-router-dom').Link
|
||||
```
|
||||
|
||||
The UMD build is also available on [unpkg](https://unpkg.com):
|
||||
|
||||
```html
|
||||
<script src="https://unpkg.com/react-router-dom/umd/react-router-dom.min.js"></script>
|
||||
```
|
||||
|
||||
You can find the library on `window.ReactRouterDOM`.
|
||||
|
||||
## Issues
|
||||
|
||||
If you find a bug, please file an issue on [our issue tracker on GitHub](https://github.com/ReactTraining/react-router/issues).
|
||||
|
||||
## Credits
|
||||
|
||||
React Router is built and maintained by [React Training](https://reacttraining.com).
|
||||
11
public/react-router-dom@4.3.1/Redirect.js
Normal file
11
public/react-router-dom@4.3.1/Redirect.js
Normal file
@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
var _Redirect = require("react-router/Redirect");
|
||||
|
||||
var _Redirect2 = _interopRequireDefault(_Redirect);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
exports.default = _Redirect2.default; // Written in this round about way for babel-transform-imports
|
||||
11
public/react-router-dom@4.3.1/Route.js
Normal file
11
public/react-router-dom@4.3.1/Route.js
Normal file
@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
var _Route = require("react-router/Route");
|
||||
|
||||
var _Route2 = _interopRequireDefault(_Route);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
exports.default = _Route2.default; // Written in this round about way for babel-transform-imports
|
||||
11
public/react-router-dom@4.3.1/Router.js
Normal file
11
public/react-router-dom@4.3.1/Router.js
Normal file
@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
var _Router = require("react-router/Router");
|
||||
|
||||
var _Router2 = _interopRequireDefault(_Router);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
exports.default = _Router2.default; // Written in this round about way for babel-transform-imports
|
||||
11
public/react-router-dom@4.3.1/StaticRouter.js
Normal file
11
public/react-router-dom@4.3.1/StaticRouter.js
Normal file
@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
var _StaticRouter = require("react-router/StaticRouter");
|
||||
|
||||
var _StaticRouter2 = _interopRequireDefault(_StaticRouter);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
exports.default = _StaticRouter2.default; // Written in this round about way for babel-transform-imports
|
||||
11
public/react-router-dom@4.3.1/Switch.js
Normal file
11
public/react-router-dom@4.3.1/Switch.js
Normal file
@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
var _Switch = require("react-router/Switch");
|
||||
|
||||
var _Switch2 = _interopRequireDefault(_Switch);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
exports.default = _Switch2.default; // Written in this round about way for babel-transform-imports
|
||||
52
public/react-router-dom@4.3.1/es/BrowserRouter.js
Normal file
52
public/react-router-dom@4.3.1/es/BrowserRouter.js
Normal file
@ -0,0 +1,52 @@
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||||
|
||||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||||
|
||||
import warning from "warning";
|
||||
import React from "react";
|
||||
import PropTypes from "prop-types";
|
||||
import { createBrowserHistory as createHistory } from "history";
|
||||
import Router from "./Router";
|
||||
|
||||
/**
|
||||
* The public API for a <Router> that uses HTML5 history.
|
||||
*/
|
||||
|
||||
var BrowserRouter = function (_React$Component) {
|
||||
_inherits(BrowserRouter, _React$Component);
|
||||
|
||||
function BrowserRouter() {
|
||||
var _temp, _this, _ret;
|
||||
|
||||
_classCallCheck(this, BrowserRouter);
|
||||
|
||||
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
||||
args[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.history = createHistory(_this.props), _temp), _possibleConstructorReturn(_this, _ret);
|
||||
}
|
||||
|
||||
BrowserRouter.prototype.componentWillMount = function componentWillMount() {
|
||||
warning(!this.props.history, "<BrowserRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { BrowserRouter as Router }`.");
|
||||
};
|
||||
|
||||
BrowserRouter.prototype.render = function render() {
|
||||
return React.createElement(Router, { history: this.history, children: this.props.children });
|
||||
};
|
||||
|
||||
return BrowserRouter;
|
||||
}(React.Component);
|
||||
|
||||
BrowserRouter.propTypes = {
|
||||
basename: PropTypes.string,
|
||||
forceRefresh: PropTypes.bool,
|
||||
getUserConfirmation: PropTypes.func,
|
||||
keyLength: PropTypes.number,
|
||||
children: PropTypes.node
|
||||
};
|
||||
|
||||
|
||||
export default BrowserRouter;
|
||||
51
public/react-router-dom@4.3.1/es/HashRouter.js
Normal file
51
public/react-router-dom@4.3.1/es/HashRouter.js
Normal file
@ -0,0 +1,51 @@
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||||
|
||||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||||
|
||||
import warning from "warning";
|
||||
import React from "react";
|
||||
import PropTypes from "prop-types";
|
||||
import { createHashHistory as createHistory } from "history";
|
||||
import Router from "./Router";
|
||||
|
||||
/**
|
||||
* The public API for a <Router> that uses window.location.hash.
|
||||
*/
|
||||
|
||||
var HashRouter = function (_React$Component) {
|
||||
_inherits(HashRouter, _React$Component);
|
||||
|
||||
function HashRouter() {
|
||||
var _temp, _this, _ret;
|
||||
|
||||
_classCallCheck(this, HashRouter);
|
||||
|
||||
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
||||
args[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.history = createHistory(_this.props), _temp), _possibleConstructorReturn(_this, _ret);
|
||||
}
|
||||
|
||||
HashRouter.prototype.componentWillMount = function componentWillMount() {
|
||||
warning(!this.props.history, "<HashRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { HashRouter as Router }`.");
|
||||
};
|
||||
|
||||
HashRouter.prototype.render = function render() {
|
||||
return React.createElement(Router, { history: this.history, children: this.props.children });
|
||||
};
|
||||
|
||||
return HashRouter;
|
||||
}(React.Component);
|
||||
|
||||
HashRouter.propTypes = {
|
||||
basename: PropTypes.string,
|
||||
getUserConfirmation: PropTypes.func,
|
||||
hashType: PropTypes.oneOf(["hashbang", "noslash", "slash"]),
|
||||
children: PropTypes.node
|
||||
};
|
||||
|
||||
|
||||
export default HashRouter;
|
||||
104
public/react-router-dom@4.3.1/es/Link.js
Normal file
104
public/react-router-dom@4.3.1/es/Link.js
Normal file
@ -0,0 +1,104 @@
|
||||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
||||
|
||||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||||
|
||||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||||
|
||||
import React from "react";
|
||||
import PropTypes from "prop-types";
|
||||
import invariant from "invariant";
|
||||
import { createLocation } from "history";
|
||||
|
||||
var isModifiedEvent = function isModifiedEvent(event) {
|
||||
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
|
||||
};
|
||||
|
||||
/**
|
||||
* The public API for rendering a history-aware <a>.
|
||||
*/
|
||||
|
||||
var Link = function (_React$Component) {
|
||||
_inherits(Link, _React$Component);
|
||||
|
||||
function Link() {
|
||||
var _temp, _this, _ret;
|
||||
|
||||
_classCallCheck(this, Link);
|
||||
|
||||
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
||||
args[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.handleClick = function (event) {
|
||||
if (_this.props.onClick) _this.props.onClick(event);
|
||||
|
||||
if (!event.defaultPrevented && // onClick prevented default
|
||||
event.button === 0 && // ignore everything but left clicks
|
||||
!_this.props.target && // let browser handle "target=_blank" etc.
|
||||
!isModifiedEvent(event) // ignore clicks with modifier keys
|
||||
) {
|
||||
event.preventDefault();
|
||||
|
||||
var history = _this.context.router.history;
|
||||
var _this$props = _this.props,
|
||||
replace = _this$props.replace,
|
||||
to = _this$props.to;
|
||||
|
||||
|
||||
if (replace) {
|
||||
history.replace(to);
|
||||
} else {
|
||||
history.push(to);
|
||||
}
|
||||
}
|
||||
}, _temp), _possibleConstructorReturn(_this, _ret);
|
||||
}
|
||||
|
||||
Link.prototype.render = function render() {
|
||||
var _props = this.props,
|
||||
replace = _props.replace,
|
||||
to = _props.to,
|
||||
innerRef = _props.innerRef,
|
||||
props = _objectWithoutProperties(_props, ["replace", "to", "innerRef"]); // eslint-disable-line no-unused-vars
|
||||
|
||||
invariant(this.context.router, "You should not use <Link> outside a <Router>");
|
||||
|
||||
invariant(to !== undefined, 'You must specify the "to" property');
|
||||
|
||||
var history = this.context.router.history;
|
||||
|
||||
var location = typeof to === "string" ? createLocation(to, null, null, history.location) : to;
|
||||
|
||||
var href = history.createHref(location);
|
||||
return React.createElement("a", _extends({}, props, { onClick: this.handleClick, href: href, ref: innerRef }));
|
||||
};
|
||||
|
||||
return Link;
|
||||
}(React.Component);
|
||||
|
||||
Link.propTypes = {
|
||||
onClick: PropTypes.func,
|
||||
target: PropTypes.string,
|
||||
replace: PropTypes.bool,
|
||||
to: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,
|
||||
innerRef: PropTypes.oneOfType([PropTypes.string, PropTypes.func])
|
||||
};
|
||||
Link.defaultProps = {
|
||||
replace: false
|
||||
};
|
||||
Link.contextTypes = {
|
||||
router: PropTypes.shape({
|
||||
history: PropTypes.shape({
|
||||
push: PropTypes.func.isRequired,
|
||||
replace: PropTypes.func.isRequired,
|
||||
createHref: PropTypes.func.isRequired
|
||||
}).isRequired
|
||||
}).isRequired
|
||||
};
|
||||
|
||||
|
||||
export default Link;
|
||||
4
public/react-router-dom@4.3.1/es/MemoryRouter.js
Normal file
4
public/react-router-dom@4.3.1/es/MemoryRouter.js
Normal file
@ -0,0 +1,4 @@
|
||||
// Written in this round about way for babel-transform-imports
|
||||
import MemoryRouter from "react-router/es/MemoryRouter";
|
||||
|
||||
export default MemoryRouter;
|
||||
74
public/react-router-dom@4.3.1/es/NavLink.js
Normal file
74
public/react-router-dom@4.3.1/es/NavLink.js
Normal file
@ -0,0 +1,74 @@
|
||||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
||||
|
||||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
||||
|
||||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
||||
|
||||
import React from "react";
|
||||
import PropTypes from "prop-types";
|
||||
import Route from "./Route";
|
||||
import Link from "./Link";
|
||||
|
||||
/**
|
||||
* A <Link> wrapper that knows if it's "active" or not.
|
||||
*/
|
||||
var NavLink = function NavLink(_ref) {
|
||||
var to = _ref.to,
|
||||
exact = _ref.exact,
|
||||
strict = _ref.strict,
|
||||
location = _ref.location,
|
||||
activeClassName = _ref.activeClassName,
|
||||
className = _ref.className,
|
||||
activeStyle = _ref.activeStyle,
|
||||
style = _ref.style,
|
||||
getIsActive = _ref.isActive,
|
||||
ariaCurrent = _ref["aria-current"],
|
||||
rest = _objectWithoutProperties(_ref, ["to", "exact", "strict", "location", "activeClassName", "className", "activeStyle", "style", "isActive", "aria-current"]);
|
||||
|
||||
var path = (typeof to === "undefined" ? "undefined" : _typeof(to)) === "object" ? to.pathname : to;
|
||||
|
||||
// Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202
|
||||
var escapedPath = path && path.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
|
||||
|
||||
return React.createElement(Route, {
|
||||
path: escapedPath,
|
||||
exact: exact,
|
||||
strict: strict,
|
||||
location: location,
|
||||
children: function children(_ref2) {
|
||||
var location = _ref2.location,
|
||||
match = _ref2.match;
|
||||
|
||||
var isActive = !!(getIsActive ? getIsActive(match, location) : match);
|
||||
|
||||
return React.createElement(Link, _extends({
|
||||
to: to,
|
||||
className: isActive ? [className, activeClassName].filter(function (i) {
|
||||
return i;
|
||||
}).join(" ") : className,
|
||||
style: isActive ? _extends({}, style, activeStyle) : style,
|
||||
"aria-current": isActive && ariaCurrent || null
|
||||
}, rest));
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
NavLink.propTypes = {
|
||||
to: Link.propTypes.to,
|
||||
exact: PropTypes.bool,
|
||||
strict: PropTypes.bool,
|
||||
location: PropTypes.object,
|
||||
activeClassName: PropTypes.string,
|
||||
className: PropTypes.string,
|
||||
activeStyle: PropTypes.object,
|
||||
style: PropTypes.object,
|
||||
isActive: PropTypes.func,
|
||||
"aria-current": PropTypes.oneOf(["page", "step", "location", "date", "time", "true"])
|
||||
};
|
||||
|
||||
NavLink.defaultProps = {
|
||||
activeClassName: "active",
|
||||
"aria-current": "page"
|
||||
};
|
||||
|
||||
export default NavLink;
|
||||
4
public/react-router-dom@4.3.1/es/Prompt.js
Normal file
4
public/react-router-dom@4.3.1/es/Prompt.js
Normal file
@ -0,0 +1,4 @@
|
||||
// Written in this round about way for babel-transform-imports
|
||||
import Prompt from "react-router/es/Prompt";
|
||||
|
||||
export default Prompt;
|
||||
4
public/react-router-dom@4.3.1/es/Redirect.js
Normal file
4
public/react-router-dom@4.3.1/es/Redirect.js
Normal file
@ -0,0 +1,4 @@
|
||||
// Written in this round about way for babel-transform-imports
|
||||
import Redirect from "react-router/es/Redirect";
|
||||
|
||||
export default Redirect;
|
||||
4
public/react-router-dom@4.3.1/es/Route.js
Normal file
4
public/react-router-dom@4.3.1/es/Route.js
Normal file
@ -0,0 +1,4 @@
|
||||
// Written in this round about way for babel-transform-imports
|
||||
import Route from "react-router/es/Route";
|
||||
|
||||
export default Route;
|
||||
4
public/react-router-dom@4.3.1/es/Router.js
Normal file
4
public/react-router-dom@4.3.1/es/Router.js
Normal file
@ -0,0 +1,4 @@
|
||||
// Written in this round about way for babel-transform-imports
|
||||
import Router from "react-router/es/Router";
|
||||
|
||||
export default Router;
|
||||
4
public/react-router-dom@4.3.1/es/RouterContext.js
Normal file
4
public/react-router-dom@4.3.1/es/RouterContext.js
Normal file
@ -0,0 +1,4 @@
|
||||
// Written in this round about way for babel-transform-imports
|
||||
import RouterContext from "react-router/es/RouterContext";
|
||||
|
||||
export default RouterContext;
|
||||
4
public/react-router-dom@4.3.1/es/StaticRouter.js
Normal file
4
public/react-router-dom@4.3.1/es/StaticRouter.js
Normal file
@ -0,0 +1,4 @@
|
||||
// Written in this round about way for babel-transform-imports
|
||||
import StaticRouter from "react-router/es/StaticRouter";
|
||||
|
||||
export default StaticRouter;
|
||||
4
public/react-router-dom@4.3.1/es/Switch.js
Normal file
4
public/react-router-dom@4.3.1/es/Switch.js
Normal file
@ -0,0 +1,4 @@
|
||||
// Written in this round about way for babel-transform-imports
|
||||
import Switch from "react-router/es/Switch";
|
||||
|
||||
export default Switch;
|
||||
4
public/react-router-dom@4.3.1/es/generatePath.js
Normal file
4
public/react-router-dom@4.3.1/es/generatePath.js
Normal file
@ -0,0 +1,4 @@
|
||||
// Written in this round about way for babel-transform-imports
|
||||
import generatePath from "react-router/es/generatePath";
|
||||
|
||||
export default generatePath;
|
||||
28
public/react-router-dom@4.3.1/es/index.js
Normal file
28
public/react-router-dom@4.3.1/es/index.js
Normal file
@ -0,0 +1,28 @@
|
||||
import _BrowserRouter from "./BrowserRouter";
|
||||
export { _BrowserRouter as BrowserRouter };
|
||||
import _HashRouter from "./HashRouter";
|
||||
export { _HashRouter as HashRouter };
|
||||
import _Link from "./Link";
|
||||
export { _Link as Link };
|
||||
import _MemoryRouter from "./MemoryRouter";
|
||||
export { _MemoryRouter as MemoryRouter };
|
||||
import _NavLink from "./NavLink";
|
||||
export { _NavLink as NavLink };
|
||||
import _Prompt from "./Prompt";
|
||||
export { _Prompt as Prompt };
|
||||
import _Redirect from "./Redirect";
|
||||
export { _Redirect as Redirect };
|
||||
import _Route from "./Route";
|
||||
export { _Route as Route };
|
||||
import _Router from "./Router";
|
||||
export { _Router as Router };
|
||||
import _StaticRouter from "./StaticRouter";
|
||||
export { _StaticRouter as StaticRouter };
|
||||
import _Switch from "./Switch";
|
||||
export { _Switch as Switch };
|
||||
import _generatePath from "./generatePath";
|
||||
export { _generatePath as generatePath };
|
||||
import _matchPath from "./matchPath";
|
||||
export { _matchPath as matchPath };
|
||||
import _withRouter from "./withRouter";
|
||||
export { _withRouter as withRouter };
|
||||
4
public/react-router-dom@4.3.1/es/matchPath.js
Normal file
4
public/react-router-dom@4.3.1/es/matchPath.js
Normal file
@ -0,0 +1,4 @@
|
||||
// Written in this round about way for babel-transform-imports
|
||||
import matchPath from "react-router/es/matchPath";
|
||||
|
||||
export default matchPath;
|
||||
4
public/react-router-dom@4.3.1/es/withRouter.js
Normal file
4
public/react-router-dom@4.3.1/es/withRouter.js
Normal file
@ -0,0 +1,4 @@
|
||||
// Written in this round about way for babel-transform-imports
|
||||
import withRouter from "react-router/es/withRouter";
|
||||
|
||||
export default withRouter;
|
||||
11
public/react-router-dom@4.3.1/generatePath.js
Normal file
11
public/react-router-dom@4.3.1/generatePath.js
Normal file
@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
var _generatePath = require("react-router/generatePath");
|
||||
|
||||
var _generatePath2 = _interopRequireDefault(_generatePath);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
exports.default = _generatePath2.default; // Written in this round about way for babel-transform-imports
|
||||
77
public/react-router-dom@4.3.1/index.js
Normal file
77
public/react-router-dom@4.3.1/index.js
Normal file
@ -0,0 +1,77 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.withRouter = exports.matchPath = exports.generatePath = exports.Switch = exports.StaticRouter = exports.Router = exports.Route = exports.Redirect = exports.Prompt = exports.NavLink = exports.MemoryRouter = exports.Link = exports.HashRouter = exports.BrowserRouter = undefined;
|
||||
|
||||
var _BrowserRouter2 = require("./BrowserRouter");
|
||||
|
||||
var _BrowserRouter3 = _interopRequireDefault(_BrowserRouter2);
|
||||
|
||||
var _HashRouter2 = require("./HashRouter");
|
||||
|
||||
var _HashRouter3 = _interopRequireDefault(_HashRouter2);
|
||||
|
||||
var _Link2 = require("./Link");
|
||||
|
||||
var _Link3 = _interopRequireDefault(_Link2);
|
||||
|
||||
var _MemoryRouter2 = require("./MemoryRouter");
|
||||
|
||||
var _MemoryRouter3 = _interopRequireDefault(_MemoryRouter2);
|
||||
|
||||
var _NavLink2 = require("./NavLink");
|
||||
|
||||
var _NavLink3 = _interopRequireDefault(_NavLink2);
|
||||
|
||||
var _Prompt2 = require("./Prompt");
|
||||
|
||||
var _Prompt3 = _interopRequireDefault(_Prompt2);
|
||||
|
||||
var _Redirect2 = require("./Redirect");
|
||||
|
||||
var _Redirect3 = _interopRequireDefault(_Redirect2);
|
||||
|
||||
var _Route2 = require("./Route");
|
||||
|
||||
var _Route3 = _interopRequireDefault(_Route2);
|
||||
|
||||
var _Router2 = require("./Router");
|
||||
|
||||
var _Router3 = _interopRequireDefault(_Router2);
|
||||
|
||||
var _StaticRouter2 = require("./StaticRouter");
|
||||
|
||||
var _StaticRouter3 = _interopRequireDefault(_StaticRouter2);
|
||||
|
||||
var _Switch2 = require("./Switch");
|
||||
|
||||
var _Switch3 = _interopRequireDefault(_Switch2);
|
||||
|
||||
var _generatePath2 = require("./generatePath");
|
||||
|
||||
var _generatePath3 = _interopRequireDefault(_generatePath2);
|
||||
|
||||
var _matchPath2 = require("./matchPath");
|
||||
|
||||
var _matchPath3 = _interopRequireDefault(_matchPath2);
|
||||
|
||||
var _withRouter2 = require("./withRouter");
|
||||
|
||||
var _withRouter3 = _interopRequireDefault(_withRouter2);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
exports.BrowserRouter = _BrowserRouter3.default;
|
||||
exports.HashRouter = _HashRouter3.default;
|
||||
exports.Link = _Link3.default;
|
||||
exports.MemoryRouter = _MemoryRouter3.default;
|
||||
exports.NavLink = _NavLink3.default;
|
||||
exports.Prompt = _Prompt3.default;
|
||||
exports.Redirect = _Redirect3.default;
|
||||
exports.Route = _Route3.default;
|
||||
exports.Router = _Router3.default;
|
||||
exports.StaticRouter = _StaticRouter3.default;
|
||||
exports.Switch = _Switch3.default;
|
||||
exports.generatePath = _generatePath3.default;
|
||||
exports.matchPath = _matchPath3.default;
|
||||
exports.withRouter = _withRouter3.default;
|
||||
11
public/react-router-dom@4.3.1/matchPath.js
Normal file
11
public/react-router-dom@4.3.1/matchPath.js
Normal file
@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
var _matchPath = require("react-router/matchPath");
|
||||
|
||||
var _matchPath2 = _interopRequireDefault(_matchPath);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
exports.default = _matchPath2.default; // Written in this round about way for babel-transform-imports
|
||||
131
public/react-router-dom@4.3.1/package.json
Normal file
131
public/react-router-dom@4.3.1/package.json
Normal file
@ -0,0 +1,131 @@
|
||||
{
|
||||
"_from": "react-router-dom",
|
||||
"_id": "react-router-dom@4.3.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-c/MlywfxDdCp7EnB7YfPMOfMD3tOtIjrQlj/CKfNMBxdmpJP8xcz5P/UAFn3JbnQCNUxsHyVVqllF9LhgVyFCA==",
|
||||
"_location": "/react-router-dom",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "tag",
|
||||
"registry": true,
|
||||
"raw": "react-router-dom",
|
||||
"name": "react-router-dom",
|
||||
"escapedName": "react-router-dom",
|
||||
"rawSpec": "",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "latest"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"#USER",
|
||||
"/"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-4.3.1.tgz",
|
||||
"_shasum": "4c2619fc24c4fa87c9fd18f4fb4a43fe63fbd5c6",
|
||||
"_spec": "react-router-dom",
|
||||
"_where": "/Users/michael/Projects/unpkg.com",
|
||||
"authors": [
|
||||
"Michael Jackson",
|
||||
"Ryan Florence"
|
||||
],
|
||||
"browserify": {
|
||||
"transform": [
|
||||
"loose-envify"
|
||||
]
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/ReactTraining/react-router/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"history": "^4.7.2",
|
||||
"invariant": "^2.2.4",
|
||||
"loose-envify": "^1.3.1",
|
||||
"prop-types": "^15.6.1",
|
||||
"react-router": "^4.3.1",
|
||||
"warning": "^4.0.1"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "DOM bindings for React Router",
|
||||
"devDependencies": {
|
||||
"babel-cli": "^6.26.0",
|
||||
"babel-eslint": "^8.2.3",
|
||||
"babel-jest": "^23.0.1",
|
||||
"babel-plugin-dev-expression": "^0.2.1",
|
||||
"babel-plugin-external-helpers": "^6.22.0",
|
||||
"babel-plugin-transform-imports": "^1.5.0",
|
||||
"babel-plugin-transform-react-remove-prop-types": "^0.4.13",
|
||||
"babel-preset-es2015": "^6.14.0",
|
||||
"babel-preset-react": "^6.5.0",
|
||||
"babel-preset-stage-1": "^6.5.0",
|
||||
"eslint": "^4.19.1",
|
||||
"eslint-plugin-import": "^2.12.0",
|
||||
"eslint-plugin-react": "^7.9.1",
|
||||
"gzip-size": "^4.1.0",
|
||||
"jest": "^23.1.0",
|
||||
"pretty-bytes": "^5.0.0",
|
||||
"raf": "^3.4.0",
|
||||
"react": "^16.4.0",
|
||||
"react-addons-test-utils": "^15.6.2",
|
||||
"react-dom": "^16.4.0",
|
||||
"rollup": "^0.60.0",
|
||||
"rollup-plugin-babel": "^3.0.4",
|
||||
"rollup-plugin-commonjs": "^9.1.3",
|
||||
"rollup-plugin-node-resolve": "^3.3.0",
|
||||
"rollup-plugin-replace": "^2.0.0",
|
||||
"rollup-plugin-uglify": "^3.0.0"
|
||||
},
|
||||
"files": [
|
||||
"BrowserRouter.js",
|
||||
"HashRouter.js",
|
||||
"Link.js",
|
||||
"MemoryRouter.js",
|
||||
"NavLink.js",
|
||||
"Prompt.js",
|
||||
"Redirect.js",
|
||||
"Route.js",
|
||||
"Router.js",
|
||||
"StaticRouter.js",
|
||||
"Switch.js",
|
||||
"es",
|
||||
"index.js",
|
||||
"generatePath.js",
|
||||
"matchPath.js",
|
||||
"withRouter.js",
|
||||
"umd"
|
||||
],
|
||||
"homepage": "https://github.com/ReactTraining/react-router#readme",
|
||||
"jest": {
|
||||
"setupFiles": [
|
||||
"raf/polyfill"
|
||||
]
|
||||
},
|
||||
"keywords": [
|
||||
"react",
|
||||
"router",
|
||||
"route",
|
||||
"routing",
|
||||
"history",
|
||||
"link"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"module": "es/index.js",
|
||||
"name": "react-router-dom",
|
||||
"peerDependencies": {
|
||||
"react": ">=15"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/ReactTraining/react-router.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "node ./tools/build.js",
|
||||
"clean": "git clean -fdX .",
|
||||
"lint": "eslint modules",
|
||||
"prepublishOnly": "node ./tools/build.js",
|
||||
"test": "jest",
|
||||
"watch": "babel ./modules -d . --ignore __tests__ --watch"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"version": "4.3.1"
|
||||
}
|
||||
3788
public/react-router-dom@4.3.1/umd/react-router-dom.js
vendored
Normal file
3788
public/react-router-dom@4.3.1/umd/react-router-dom.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
public/react-router-dom@4.3.1/umd/react-router-dom.min.js
vendored
Normal file
1
public/react-router-dom@4.3.1/umd/react-router-dom.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
11
public/react-router-dom@4.3.1/withRouter.js
Normal file
11
public/react-router-dom@4.3.1/withRouter.js
Normal file
@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
var _withRouter = require("react-router/withRouter");
|
||||
|
||||
var _withRouter2 = _interopRequireDefault(_withRouter);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
exports.default = _withRouter2.default; // Written in this round about way for babel-transform-imports
|
||||
Reference in New Issue
Block a user