From 68b25bf491f161575c6d15d8d739e3ce8abdb621 Mon Sep 17 00:00:00 2001 From: Senad Uka Date: Sun, 26 Jul 2015 19:10:16 +0200 Subject: [PATCH] added migrations for instant delivery --- ...09_add_instant_delivery_price_to_places.rb | 5 + ...stant_delivery_to_delivery_destinations.rb | 5 + front-api/db/schema.rb | 14 +- node_modules/ga-react-router/README.md | 23 + node_modules/ga-react-router/package.json | 50 + node_modules/ga-react-router/src/ga.js | 31 + node_modules/ga-react-router/src/index.js | 12 + node_modules/react-router/README.md | 140 + node_modules/react-router/lib/Cancellation.js | 9 + node_modules/react-router/lib/History.js | 30 + node_modules/react-router/lib/Match.js | 75 + node_modules/react-router/lib/Navigation.js | 70 + node_modules/react-router/lib/PathUtils.js | 153 + node_modules/react-router/lib/PropTypes.js | 31 + node_modules/react-router/lib/Redirect.js | 12 + node_modules/react-router/lib/Route.js | 200 + .../react-router/lib/ScrollHistory.js | 75 + node_modules/react-router/lib/State.js | 74 + node_modules/react-router/lib/TestUtils.js | 171 + node_modules/react-router/lib/Transition.js | 75 + .../lib/actions/LocationActions.js | 25 + .../lib/behaviors/ImitateBrowserBehavior.js | 29 + .../lib/behaviors/ScrollToTopBehavior.js | 15 + .../lib/components/ActiveHandler.js | 108 + .../lib/components/ContextWrapper.js | 38 + .../lib/components/DefaultRoute.js | 47 + .../react-router/lib/components/Link.js | 135 + .../lib/components/NotFoundRoute.js | 48 + .../react-router/lib/components/Redirect.js | 43 + .../react-router/lib/components/Route.js | 91 + .../lib/components/RouteHandler.js | 108 + node_modules/react-router/lib/createRouter.js | 514 + .../lib/createRoutesFromReactChildren.js | 81 + .../lib/getWindowScrollPosition.js | 18 + node_modules/react-router/lib/index.js | 31 + .../react-router/lib/isReactChildren.js | 13 + .../lib/locations/HashLocation.js | 111 + .../lib/locations/HistoryLocation.js | 86 + .../lib/locations/RefreshLocation.js | 31 + .../lib/locations/StaticLocation.js | 49 + .../lib/locations/TestLocation.js | 94 + node_modules/react-router/lib/runRouter.js | 50 + .../react-router/lib/supportsHistory.js | 16 + .../node_modules/object-assign/index.js | 26 + .../node_modules/object-assign/license | 21 + .../node_modules/object-assign/package.json | 68 + .../node_modules/object-assign/readme.md | 51 + .../node_modules/qs/.jshintignore | 1 + .../react-router/node_modules/qs/.jshintrc | 10 + .../react-router/node_modules/qs/.npmignore | 18 + .../react-router/node_modules/qs/.travis.yml | 6 + .../react-router/node_modules/qs/CHANGELOG.md | 68 + .../node_modules/qs/CONTRIBUTING.md | 1 + .../react-router/node_modules/qs/LICENSE | 28 + .../react-router/node_modules/qs/Makefile | 8 + .../react-router/node_modules/qs/README.md | 233 + .../react-router/node_modules/qs/index.js | 1 + .../react-router/node_modules/qs/lib/index.js | 15 + .../react-router/node_modules/qs/lib/parse.js | 161 + .../node_modules/qs/lib/stringify.js | 97 + .../react-router/node_modules/qs/lib/utils.js | 132 + .../react-router/node_modules/qs/package.json | 58 + .../node_modules/qs/test/parse.js | 413 + .../node_modules/qs/test/stringify.js | 209 + node_modules/react-router/package.json | 65 + node_modules/react-router/umd/ReactRouter.js | 3386 +++ .../react-router/umd/ReactRouter.min.js | 6 + node_modules/react/README.md | 20 + node_modules/react/addons.js | 1 + node_modules/react/dist/JSXTransformer.js | 15919 +++++++++++ node_modules/react/dist/react-with-addons.js | 21642 +++++++++++++++ .../react/dist/react-with-addons.min.js | 18 + node_modules/react/dist/react.js | 19602 +++++++++++++ node_modules/react/dist/react.min.js | 16 + node_modules/react/lib/AutoFocusMixin.js | 25 + .../react/lib/BeforeInputEventPlugin.js | 493 + node_modules/react/lib/CSSCore.js | 108 + node_modules/react/lib/CSSProperty.js | 123 + .../react/lib/CSSPropertyOperations.js | 178 + node_modules/react/lib/CallbackQueue.js | 96 + node_modules/react/lib/ChangeEventPlugin.js | 380 + .../react/lib/ClientReactRootIndex.js | 23 + .../react/lib/DOMChildrenOperations.js | 134 + node_modules/react/lib/DOMProperty.js | 295 + .../react/lib/DOMPropertyOperations.js | 188 + node_modules/react/lib/Danger.js | 183 + .../react/lib/DefaultEventPluginOrder.js | 37 + .../react/lib/EnterLeaveEventPlugin.js | 138 + node_modules/react/lib/EventConstants.js | 70 + node_modules/react/lib/EventListener.js | 86 + node_modules/react/lib/EventPluginHub.js | 274 + node_modules/react/lib/EventPluginRegistry.js | 276 + node_modules/react/lib/EventPluginUtils.js | 217 + node_modules/react/lib/EventPropagators.js | 138 + .../react/lib/ExecutionEnvironment.js | 42 + .../react/lib/FallbackCompositionState.js | 89 + .../react/lib/HTMLDOMPropertyConfig.js | 209 + node_modules/react/lib/LinkedStateMixin.js | 39 + node_modules/react/lib/LinkedValueUtils.js | 152 + node_modules/react/lib/LocalEventTrapMixin.js | 53 + .../react/lib/MobileSafariClickEventPlugin.js | 56 + node_modules/react/lib/Object.assign.js | 47 + node_modules/react/lib/PooledClass.js | 112 + node_modules/react/lib/React.js | 148 + .../react/lib/ReactBrowserComponentMixin.js | 29 + .../react/lib/ReactBrowserEventEmitter.js | 351 + .../react/lib/ReactCSSTransitionGroup.js | 68 + .../react/lib/ReactCSSTransitionGroupChild.js | 144 + .../react/lib/ReactChildReconciler.js | 125 + node_modules/react/lib/ReactChildren.js | 149 + node_modules/react/lib/ReactClass.js | 942 + node_modules/react/lib/ReactComponent.js | 150 + .../lib/ReactComponentBrowserEnvironment.js | 45 + .../react/lib/ReactComponentEnvironment.js | 57 + .../lib/ReactComponentWithPureRenderMixin.js | 47 + .../react/lib/ReactCompositeComponent.js | 909 + node_modules/react/lib/ReactContext.js | 74 + node_modules/react/lib/ReactCurrentOwner.js | 32 + node_modules/react/lib/ReactDOM.js | 175 + node_modules/react/lib/ReactDOMButton.js | 62 + node_modules/react/lib/ReactDOMComponent.js | 506 + node_modules/react/lib/ReactDOMForm.js | 47 + .../react/lib/ReactDOMIDOperations.js | 164 + node_modules/react/lib/ReactDOMIframe.js | 43 + node_modules/react/lib/ReactDOMImg.js | 44 + node_modules/react/lib/ReactDOMInput.js | 173 + node_modules/react/lib/ReactDOMOption.js | 48 + node_modules/react/lib/ReactDOMSelect.js | 176 + node_modules/react/lib/ReactDOMSelection.js | 211 + .../react/lib/ReactDOMTextComponent.js | 115 + node_modules/react/lib/ReactDOMTextarea.js | 136 + .../react/lib/ReactDefaultBatchingStrategy.js | 71 + .../react/lib/ReactDefaultInjection.js | 155 + node_modules/react/lib/ReactDefaultPerf.js | 264 + .../react/lib/ReactDefaultPerfAnalysis.js | 204 + node_modules/react/lib/ReactElement.js | 304 + .../react/lib/ReactElementValidator.js | 461 + node_modules/react/lib/ReactEmptyComponent.js | 91 + node_modules/react/lib/ReactErrorUtils.js | 30 + .../react/lib/ReactEventEmitterMixin.js | 48 + node_modules/react/lib/ReactEventListener.js | 181 + node_modules/react/lib/ReactFragment.js | 181 + node_modules/react/lib/ReactInjection.js | 40 + node_modules/react/lib/ReactInputSelection.js | 133 + .../react/lib/ReactInstanceHandles.js | 332 + node_modules/react/lib/ReactInstanceMap.js | 47 + node_modules/react/lib/ReactLifeCycle.js | 35 + node_modules/react/lib/ReactLink.js | 71 + node_modules/react/lib/ReactMarkupChecksum.js | 46 + node_modules/react/lib/ReactMount.js | 887 + node_modules/react/lib/ReactMultiChild.js | 428 + .../react/lib/ReactMultiChildUpdateTypes.js | 31 + .../react/lib/ReactNativeComponent.js | 103 + node_modules/react/lib/ReactOwner.js | 108 + node_modules/react/lib/ReactPerf.js | 100 + node_modules/react/lib/ReactPropTransferer.js | 108 + .../react/lib/ReactPropTypeLocationNames.js | 24 + .../react/lib/ReactPropTypeLocations.js | 22 + node_modules/react/lib/ReactPropTypes.js | 347 + .../react/lib/ReactPutListenerQueue.js | 54 + .../react/lib/ReactReconcileTransaction.js | 174 + node_modules/react/lib/ReactReconciler.js | 120 + node_modules/react/lib/ReactRef.js | 69 + node_modules/react/lib/ReactRootIndex.js | 29 + .../react/lib/ReactServerRendering.js | 78 + .../lib/ReactServerRenderingTransaction.js | 111 + node_modules/react/lib/ReactStateSetters.js | 104 + node_modules/react/lib/ReactTestUtils.js | 512 + .../react/lib/ReactTransitionChildMapping.js | 103 + .../react/lib/ReactTransitionEvents.js | 109 + .../react/lib/ReactTransitionGroup.js | 228 + node_modules/react/lib/ReactUpdateQueue.js | 295 + node_modules/react/lib/ReactUpdates.js | 278 + node_modules/react/lib/ReactWithAddons.js | 52 + .../react/lib/SVGDOMPropertyConfig.js | 92 + node_modules/react/lib/SelectEventPlugin.js | 193 + .../react/lib/ServerReactRootIndex.js | 29 + node_modules/react/lib/SimpleEventPlugin.js | 424 + .../react/lib/SyntheticClipboardEvent.js | 43 + .../react/lib/SyntheticCompositionEvent.js | 43 + node_modules/react/lib/SyntheticDragEvent.js | 37 + node_modules/react/lib/SyntheticEvent.js | 164 + node_modules/react/lib/SyntheticFocusEvent.js | 37 + node_modules/react/lib/SyntheticInputEvent.js | 44 + .../react/lib/SyntheticKeyboardEvent.js | 85 + node_modules/react/lib/SyntheticMouseEvent.js | 79 + node_modules/react/lib/SyntheticTouchEvent.js | 46 + node_modules/react/lib/SyntheticUIEvent.js | 60 + node_modules/react/lib/SyntheticWheelEvent.js | 59 + node_modules/react/lib/Transaction.js | 237 + node_modules/react/lib/ViewportMetrics.js | 27 + node_modules/react/lib/accumulateInto.js | 62 + node_modules/react/lib/adler32.js | 32 + node_modules/react/lib/camelize.js | 30 + node_modules/react/lib/camelizeStyleName.js | 40 + node_modules/react/lib/cloneWithProps.js | 55 + node_modules/react/lib/containsNode.js | 42 + .../react/lib/createArrayFromMixed.js | 84 + .../react/lib/createFullPageComponent.js | 58 + .../react/lib/createNodesFromMarkup.js | 86 + node_modules/react/lib/cx.js | 52 + node_modules/react/lib/dangerousStyleValue.js | 56 + node_modules/react/lib/emptyFunction.js | 32 + node_modules/react/lib/emptyObject.js | 20 + .../react/lib/escapeTextContentForBrowser.js | 38 + node_modules/react/lib/findDOMNode.js | 69 + node_modules/react/lib/flattenChildren.js | 54 + node_modules/react/lib/focusNode.js | 27 + node_modules/react/lib/forEachAccumulated.js | 29 + node_modules/react/lib/getActiveElement.js | 27 + node_modules/react/lib/getEventCharCode.js | 50 + node_modules/react/lib/getEventKey.js | 103 + .../react/lib/getEventModifierState.js | 45 + node_modules/react/lib/getEventTarget.js | 29 + node_modules/react/lib/getIteratorFn.js | 42 + node_modules/react/lib/getMarkupWrap.js | 115 + .../react/lib/getNodeForCharacterOffset.js | 73 + .../lib/getReactRootElementInContainer.js | 33 + .../react/lib/getTextContentAccessor.js | 35 + .../react/lib/getUnboundedScrollPosition.js | 38 + node_modules/react/lib/hyphenate.js | 31 + node_modules/react/lib/hyphenateStyleName.js | 39 + .../react/lib/instantiateReactComponent.js | 134 + node_modules/react/lib/invariant.js | 53 + node_modules/react/lib/isEventSupported.js | 63 + node_modules/react/lib/isNode.js | 25 + node_modules/react/lib/isTextInputElement.js | 41 + node_modules/react/lib/isTextNode.js | 23 + node_modules/react/lib/joinClasses.js | 39 + node_modules/react/lib/keyMirror.js | 51 + node_modules/react/lib/keyOf.js | 34 + node_modules/react/lib/mapObject.js | 51 + node_modules/react/lib/memoizeStringOnly.js | 31 + node_modules/react/lib/onlyChild.js | 36 + node_modules/react/lib/performance.js | 26 + node_modules/react/lib/performanceNow.js | 26 + .../lib/quoteAttributeValueForBrowser.js | 26 + node_modules/react/lib/setInnerHTML.js | 87 + node_modules/react/lib/setTextContent.js | 40 + node_modules/react/lib/shallowEqual.js | 42 + .../react/lib/shouldUpdateReactComponent.js | 100 + node_modules/react/lib/toArray.js | 68 + node_modules/react/lib/traverseAllChildren.js | 249 + node_modules/react/lib/update.js | 167 + node_modules/react/lib/warning.js | 59 + node_modules/react/node_modules/.bin/envify | 1 + .../react/node_modules/envify/.npmignore | 2 + .../react/node_modules/envify/README.md | 145 + .../react/node_modules/envify/bin/envify | 17 + .../react/node_modules/envify/custom.js | 38 + .../react/node_modules/envify/index.js | 1 + .../envify/node_modules/jstransform/.jshintrc | 28 + .../node_modules/jstransform/.npmignore | 4 + .../node_modules/jstransform/.travis.yml | 8 + .../envify/node_modules/jstransform/LICENSE | 201 + .../envify/node_modules/jstransform/README.md | 98 + .../jstransform/jestEnvironment.js | 1 + .../jstransform/jestPreprocessor.js | 13 + .../jstransform/node_modules/.bin/esparse | 1 + .../jstransform/node_modules/.bin/esvalidate | 1 + .../node_modules/base62/.travis.yml | 4 + .../jstransform/node_modules/base62/LICENSE | 20 + .../jstransform/node_modules/base62/Readme.md | 30 + .../jstransform/node_modules/base62/base62.js | 27 + .../node_modules/base62/package.json | 52 + .../node_modules/base62/test/test.js | 14 + .../node_modules/esprima-fb/README.md | 32 + .../node_modules/esprima-fb/bin/esparse.js | 117 + .../node_modules/esprima-fb/bin/esvalidate.js | 199 + .../node_modules/esprima-fb/esprima.js | 7704 +++++ .../node_modules/esprima-fb/package.json | 94 + .../node_modules/esprima-fb/test/compat.js | 244 + .../node_modules/esprima-fb/test/reflect.js | 421 + .../node_modules/esprima-fb/test/run.js | 66 + .../node_modules/esprima-fb/test/runner.js | 515 + .../node_modules/esprima-fb/test/test.js | 23151 ++++++++++++++++ .../node_modules/source-map/.npmignore | 2 + .../node_modules/source-map/.travis.yml | 4 + .../node_modules/source-map/CHANGELOG.md | 112 + .../node_modules/source-map/LICENSE | 28 + .../source-map/Makefile.dryice.js | 166 + .../node_modules/source-map/README.md | 434 + .../source-map/build/assert-shim.js | 56 + .../source-map/build/mini-require.js | 152 + .../source-map/build/prefix-source-map.jsm | 20 + .../source-map/build/prefix-utils.jsm | 18 + .../source-map/build/suffix-browser.js | 8 + .../source-map/build/suffix-source-map.jsm | 6 + .../source-map/build/suffix-utils.jsm | 21 + .../source-map/build/test-prefix.js | 8 + .../source-map/build/test-suffix.js | 3 + .../node_modules/source-map/lib/source-map.js | 8 + .../source-map/lib/source-map/array-set.js | 97 + .../source-map/lib/source-map/base64-vlq.js | 144 + .../source-map/lib/source-map/base64.js | 42 + .../lib/source-map/binary-search.js | 81 + .../lib/source-map/source-map-consumer.js | 477 + .../lib/source-map/source-map-generator.js | 380 + .../source-map/lib/source-map/source-node.js | 371 + .../source-map/lib/source-map/util.js | 205 + .../source-map/node_modules/amdefine/LICENSE | 58 + .../node_modules/amdefine/README.md | 171 + .../node_modules/amdefine/amdefine.js | 301 + .../node_modules/amdefine/intercept.js | 36 + .../node_modules/amdefine/package.json | 46 + .../node_modules/source-map/package.json | 130 + .../node_modules/source-map/test/run-tests.js | 71 + .../source-map/test/source-map/test-api.js | 26 + .../test/source-map/test-array-set.js | 104 + .../test/source-map/test-base64-vlq.js | 24 + .../source-map/test/source-map/test-base64.js | 35 + .../test/source-map/test-binary-search.js | 54 + .../test/source-map/test-dog-fooding.js | 72 + .../source-map/test-source-map-consumer.js | 451 + .../source-map/test-source-map-generator.js | 417 + .../test/source-map/test-source-node.js | 365 + .../source-map/test/source-map/util.js | 161 + .../node_modules/jstransform/package.json | 90 + .../jstransform/polyfill/Object.es6.js | 52 + .../src/__tests__/jstransform-test.js | 481 + .../src/__tests__/jstransform-utils-test.js | 66 + .../node_modules/jstransform/src/docblock.js | 86 + .../jstransform/src/jstransform.js | 299 + .../node_modules/jstransform/src/utils.js | 708 + .../es6-arrow-function-visitors-test.js | 239 + .../es6-call-spread-visitors-test.js | 96 + .../__tests__/es6-class-visitors-test.js | 1515 + .../es6-destructuring-visitors-test.js | 279 + .../es6-es7-object-integration-test.js | 62 + ...es6-object-concise-method-visitors-test.js | 133 + ...es6-object-short-notation-visitors-test.js | 119 + .../__tests__/es6-rest-param-visitors-test.js | 328 + .../__tests__/es6-template-visitors-test.js | 208 + .../es7-rest-property-helpers-test.js | 97 + .../es7-spread-property-visitors-test.js | 160 + .../gen/generate-type-syntax-test.js | 52 + .../__tests__/gen/type-syntax-test.rec.js | 846 + .../visitors/__tests__/reserved-words-test.js | 74 + .../__tests__/type-alias-syntax-test.js | 83 + .../__tests__/type-class-syntax-test.js | 298 + .../__tests__/type-function-syntax-test.js | 298 + .../__tests__/type-interface-syntax-test.js | 72 + .../type-object-method-syntax-test.js | 186 + .../__tests__/type-pattern-syntax-test.js | 91 + .../visitors/__tests__/type-syntax-test.js | 194 + .../type-variable-declaration-syntax-test.js | 208 + .../visitors/es6-arrow-function-visitors.js | 158 + .../visitors/es6-call-spread-visitors.js | 107 + .../visitors/es6-class-visitors.js | 588 + .../visitors/es6-destructuring-visitors.js | 280 + .../es6-object-concise-method-visitors.js | 69 + .../es6-object-short-notation-visitors.js | 53 + .../visitors/es6-rest-param-visitors.js | 106 + .../visitors/es6-template-visitors.js | 156 + .../visitors/es7-rest-property-helpers.js | 80 + .../visitors/es7-spread-property-visitors.js | 108 + .../visitors/reserved-words-helper.js | 74 + .../visitors/reserved-words-visitors.js | 68 + .../jstransform/visitors/type-syntax.js | 172 + .../envify/node_modules/through/.travis.yml | 5 + .../node_modules/through/LICENSE.APACHE2 | 15 + .../envify/node_modules/through/LICENSE.MIT | 24 + .../envify/node_modules/through/index.js | 108 + .../envify/node_modules/through/package.json | 65 + .../node_modules/through/readme.markdown | 64 + .../envify/node_modules/through/test/async.js | 28 + .../node_modules/through/test/auto-destroy.js | 30 + .../node_modules/through/test/buffering.js | 71 + .../envify/node_modules/through/test/end.js | 45 + .../envify/node_modules/through/test/index.js | 133 + .../react/node_modules/envify/package.json | 69 + .../react/node_modules/envify/visitors.js | 49 + node_modules/react/package.json | 71 + node_modules/react/react.js | 1 + 374 files changed, 135456 insertions(+), 6 deletions(-) create mode 100644 front-api/db/migrate/20150726160209_add_instant_delivery_price_to_places.rb create mode 100644 front-api/db/migrate/20150726161256_add_instant_delivery_to_delivery_destinations.rb create mode 100644 node_modules/ga-react-router/README.md create mode 100644 node_modules/ga-react-router/package.json create mode 100644 node_modules/ga-react-router/src/ga.js create mode 100644 node_modules/ga-react-router/src/index.js create mode 100644 node_modules/react-router/README.md create mode 100644 node_modules/react-router/lib/Cancellation.js create mode 100644 node_modules/react-router/lib/History.js create mode 100644 node_modules/react-router/lib/Match.js create mode 100644 node_modules/react-router/lib/Navigation.js create mode 100644 node_modules/react-router/lib/PathUtils.js create mode 100644 node_modules/react-router/lib/PropTypes.js create mode 100644 node_modules/react-router/lib/Redirect.js create mode 100644 node_modules/react-router/lib/Route.js create mode 100644 node_modules/react-router/lib/ScrollHistory.js create mode 100644 node_modules/react-router/lib/State.js create mode 100644 node_modules/react-router/lib/TestUtils.js create mode 100644 node_modules/react-router/lib/Transition.js create mode 100644 node_modules/react-router/lib/actions/LocationActions.js create mode 100644 node_modules/react-router/lib/behaviors/ImitateBrowserBehavior.js create mode 100644 node_modules/react-router/lib/behaviors/ScrollToTopBehavior.js create mode 100644 node_modules/react-router/lib/components/ActiveHandler.js create mode 100644 node_modules/react-router/lib/components/ContextWrapper.js create mode 100644 node_modules/react-router/lib/components/DefaultRoute.js create mode 100644 node_modules/react-router/lib/components/Link.js create mode 100644 node_modules/react-router/lib/components/NotFoundRoute.js create mode 100644 node_modules/react-router/lib/components/Redirect.js create mode 100644 node_modules/react-router/lib/components/Route.js create mode 100644 node_modules/react-router/lib/components/RouteHandler.js create mode 100644 node_modules/react-router/lib/createRouter.js create mode 100644 node_modules/react-router/lib/createRoutesFromReactChildren.js create mode 100644 node_modules/react-router/lib/getWindowScrollPosition.js create mode 100644 node_modules/react-router/lib/index.js create mode 100644 node_modules/react-router/lib/isReactChildren.js create mode 100644 node_modules/react-router/lib/locations/HashLocation.js create mode 100644 node_modules/react-router/lib/locations/HistoryLocation.js create mode 100644 node_modules/react-router/lib/locations/RefreshLocation.js create mode 100644 node_modules/react-router/lib/locations/StaticLocation.js create mode 100644 node_modules/react-router/lib/locations/TestLocation.js create mode 100644 node_modules/react-router/lib/runRouter.js create mode 100644 node_modules/react-router/lib/supportsHistory.js create mode 100644 node_modules/react-router/node_modules/object-assign/index.js create mode 100644 node_modules/react-router/node_modules/object-assign/license create mode 100644 node_modules/react-router/node_modules/object-assign/package.json create mode 100644 node_modules/react-router/node_modules/object-assign/readme.md create mode 100644 node_modules/react-router/node_modules/qs/.jshintignore create mode 100644 node_modules/react-router/node_modules/qs/.jshintrc create mode 100644 node_modules/react-router/node_modules/qs/.npmignore create mode 100644 node_modules/react-router/node_modules/qs/.travis.yml create mode 100644 node_modules/react-router/node_modules/qs/CHANGELOG.md create mode 100644 node_modules/react-router/node_modules/qs/CONTRIBUTING.md create mode 100755 node_modules/react-router/node_modules/qs/LICENSE create mode 100644 node_modules/react-router/node_modules/qs/Makefile create mode 100755 node_modules/react-router/node_modules/qs/README.md create mode 100644 node_modules/react-router/node_modules/qs/index.js create mode 100755 node_modules/react-router/node_modules/qs/lib/index.js create mode 100755 node_modules/react-router/node_modules/qs/lib/parse.js create mode 100755 node_modules/react-router/node_modules/qs/lib/stringify.js create mode 100755 node_modules/react-router/node_modules/qs/lib/utils.js create mode 100644 node_modules/react-router/node_modules/qs/package.json create mode 100755 node_modules/react-router/node_modules/qs/test/parse.js create mode 100755 node_modules/react-router/node_modules/qs/test/stringify.js create mode 100644 node_modules/react-router/package.json create mode 100644 node_modules/react-router/umd/ReactRouter.js create mode 100644 node_modules/react-router/umd/ReactRouter.min.js create mode 100644 node_modules/react/README.md create mode 100644 node_modules/react/addons.js create mode 100644 node_modules/react/dist/JSXTransformer.js create mode 100644 node_modules/react/dist/react-with-addons.js create mode 100644 node_modules/react/dist/react-with-addons.min.js create mode 100644 node_modules/react/dist/react.js create mode 100644 node_modules/react/dist/react.min.js create mode 100644 node_modules/react/lib/AutoFocusMixin.js create mode 100644 node_modules/react/lib/BeforeInputEventPlugin.js create mode 100644 node_modules/react/lib/CSSCore.js create mode 100644 node_modules/react/lib/CSSProperty.js create mode 100644 node_modules/react/lib/CSSPropertyOperations.js create mode 100644 node_modules/react/lib/CallbackQueue.js create mode 100644 node_modules/react/lib/ChangeEventPlugin.js create mode 100644 node_modules/react/lib/ClientReactRootIndex.js create mode 100644 node_modules/react/lib/DOMChildrenOperations.js create mode 100644 node_modules/react/lib/DOMProperty.js create mode 100644 node_modules/react/lib/DOMPropertyOperations.js create mode 100644 node_modules/react/lib/Danger.js create mode 100644 node_modules/react/lib/DefaultEventPluginOrder.js create mode 100644 node_modules/react/lib/EnterLeaveEventPlugin.js create mode 100644 node_modules/react/lib/EventConstants.js create mode 100644 node_modules/react/lib/EventListener.js create mode 100644 node_modules/react/lib/EventPluginHub.js create mode 100644 node_modules/react/lib/EventPluginRegistry.js create mode 100644 node_modules/react/lib/EventPluginUtils.js create mode 100644 node_modules/react/lib/EventPropagators.js create mode 100644 node_modules/react/lib/ExecutionEnvironment.js create mode 100644 node_modules/react/lib/FallbackCompositionState.js create mode 100644 node_modules/react/lib/HTMLDOMPropertyConfig.js create mode 100644 node_modules/react/lib/LinkedStateMixin.js create mode 100644 node_modules/react/lib/LinkedValueUtils.js create mode 100644 node_modules/react/lib/LocalEventTrapMixin.js create mode 100644 node_modules/react/lib/MobileSafariClickEventPlugin.js create mode 100644 node_modules/react/lib/Object.assign.js create mode 100644 node_modules/react/lib/PooledClass.js create mode 100644 node_modules/react/lib/React.js create mode 100644 node_modules/react/lib/ReactBrowserComponentMixin.js create mode 100644 node_modules/react/lib/ReactBrowserEventEmitter.js create mode 100644 node_modules/react/lib/ReactCSSTransitionGroup.js create mode 100644 node_modules/react/lib/ReactCSSTransitionGroupChild.js create mode 100644 node_modules/react/lib/ReactChildReconciler.js create mode 100644 node_modules/react/lib/ReactChildren.js create mode 100644 node_modules/react/lib/ReactClass.js create mode 100644 node_modules/react/lib/ReactComponent.js create mode 100644 node_modules/react/lib/ReactComponentBrowserEnvironment.js create mode 100644 node_modules/react/lib/ReactComponentEnvironment.js create mode 100644 node_modules/react/lib/ReactComponentWithPureRenderMixin.js create mode 100644 node_modules/react/lib/ReactCompositeComponent.js create mode 100644 node_modules/react/lib/ReactContext.js create mode 100644 node_modules/react/lib/ReactCurrentOwner.js create mode 100644 node_modules/react/lib/ReactDOM.js create mode 100644 node_modules/react/lib/ReactDOMButton.js create mode 100644 node_modules/react/lib/ReactDOMComponent.js create mode 100644 node_modules/react/lib/ReactDOMForm.js create mode 100644 node_modules/react/lib/ReactDOMIDOperations.js create mode 100644 node_modules/react/lib/ReactDOMIframe.js create mode 100644 node_modules/react/lib/ReactDOMImg.js create mode 100644 node_modules/react/lib/ReactDOMInput.js create mode 100644 node_modules/react/lib/ReactDOMOption.js create mode 100644 node_modules/react/lib/ReactDOMSelect.js create mode 100644 node_modules/react/lib/ReactDOMSelection.js create mode 100644 node_modules/react/lib/ReactDOMTextComponent.js create mode 100644 node_modules/react/lib/ReactDOMTextarea.js create mode 100644 node_modules/react/lib/ReactDefaultBatchingStrategy.js create mode 100644 node_modules/react/lib/ReactDefaultInjection.js create mode 100644 node_modules/react/lib/ReactDefaultPerf.js create mode 100644 node_modules/react/lib/ReactDefaultPerfAnalysis.js create mode 100644 node_modules/react/lib/ReactElement.js create mode 100644 node_modules/react/lib/ReactElementValidator.js create mode 100644 node_modules/react/lib/ReactEmptyComponent.js create mode 100644 node_modules/react/lib/ReactErrorUtils.js create mode 100644 node_modules/react/lib/ReactEventEmitterMixin.js create mode 100644 node_modules/react/lib/ReactEventListener.js create mode 100644 node_modules/react/lib/ReactFragment.js create mode 100644 node_modules/react/lib/ReactInjection.js create mode 100644 node_modules/react/lib/ReactInputSelection.js create mode 100644 node_modules/react/lib/ReactInstanceHandles.js create mode 100644 node_modules/react/lib/ReactInstanceMap.js create mode 100644 node_modules/react/lib/ReactLifeCycle.js create mode 100644 node_modules/react/lib/ReactLink.js create mode 100644 node_modules/react/lib/ReactMarkupChecksum.js create mode 100644 node_modules/react/lib/ReactMount.js create mode 100644 node_modules/react/lib/ReactMultiChild.js create mode 100644 node_modules/react/lib/ReactMultiChildUpdateTypes.js create mode 100644 node_modules/react/lib/ReactNativeComponent.js create mode 100644 node_modules/react/lib/ReactOwner.js create mode 100644 node_modules/react/lib/ReactPerf.js create mode 100644 node_modules/react/lib/ReactPropTransferer.js create mode 100644 node_modules/react/lib/ReactPropTypeLocationNames.js create mode 100644 node_modules/react/lib/ReactPropTypeLocations.js create mode 100644 node_modules/react/lib/ReactPropTypes.js create mode 100644 node_modules/react/lib/ReactPutListenerQueue.js create mode 100644 node_modules/react/lib/ReactReconcileTransaction.js create mode 100644 node_modules/react/lib/ReactReconciler.js create mode 100644 node_modules/react/lib/ReactRef.js create mode 100644 node_modules/react/lib/ReactRootIndex.js create mode 100644 node_modules/react/lib/ReactServerRendering.js create mode 100644 node_modules/react/lib/ReactServerRenderingTransaction.js create mode 100644 node_modules/react/lib/ReactStateSetters.js create mode 100644 node_modules/react/lib/ReactTestUtils.js create mode 100644 node_modules/react/lib/ReactTransitionChildMapping.js create mode 100644 node_modules/react/lib/ReactTransitionEvents.js create mode 100644 node_modules/react/lib/ReactTransitionGroup.js create mode 100644 node_modules/react/lib/ReactUpdateQueue.js create mode 100644 node_modules/react/lib/ReactUpdates.js create mode 100644 node_modules/react/lib/ReactWithAddons.js create mode 100644 node_modules/react/lib/SVGDOMPropertyConfig.js create mode 100644 node_modules/react/lib/SelectEventPlugin.js create mode 100644 node_modules/react/lib/ServerReactRootIndex.js create mode 100644 node_modules/react/lib/SimpleEventPlugin.js create mode 100644 node_modules/react/lib/SyntheticClipboardEvent.js create mode 100644 node_modules/react/lib/SyntheticCompositionEvent.js create mode 100644 node_modules/react/lib/SyntheticDragEvent.js create mode 100644 node_modules/react/lib/SyntheticEvent.js create mode 100644 node_modules/react/lib/SyntheticFocusEvent.js create mode 100644 node_modules/react/lib/SyntheticInputEvent.js create mode 100644 node_modules/react/lib/SyntheticKeyboardEvent.js create mode 100644 node_modules/react/lib/SyntheticMouseEvent.js create mode 100644 node_modules/react/lib/SyntheticTouchEvent.js create mode 100644 node_modules/react/lib/SyntheticUIEvent.js create mode 100644 node_modules/react/lib/SyntheticWheelEvent.js create mode 100644 node_modules/react/lib/Transaction.js create mode 100644 node_modules/react/lib/ViewportMetrics.js create mode 100644 node_modules/react/lib/accumulateInto.js create mode 100644 node_modules/react/lib/adler32.js create mode 100644 node_modules/react/lib/camelize.js create mode 100644 node_modules/react/lib/camelizeStyleName.js create mode 100644 node_modules/react/lib/cloneWithProps.js create mode 100644 node_modules/react/lib/containsNode.js create mode 100644 node_modules/react/lib/createArrayFromMixed.js create mode 100644 node_modules/react/lib/createFullPageComponent.js create mode 100644 node_modules/react/lib/createNodesFromMarkup.js create mode 100644 node_modules/react/lib/cx.js create mode 100644 node_modules/react/lib/dangerousStyleValue.js create mode 100644 node_modules/react/lib/emptyFunction.js create mode 100644 node_modules/react/lib/emptyObject.js create mode 100644 node_modules/react/lib/escapeTextContentForBrowser.js create mode 100644 node_modules/react/lib/findDOMNode.js create mode 100644 node_modules/react/lib/flattenChildren.js create mode 100644 node_modules/react/lib/focusNode.js create mode 100644 node_modules/react/lib/forEachAccumulated.js create mode 100644 node_modules/react/lib/getActiveElement.js create mode 100644 node_modules/react/lib/getEventCharCode.js create mode 100644 node_modules/react/lib/getEventKey.js create mode 100644 node_modules/react/lib/getEventModifierState.js create mode 100644 node_modules/react/lib/getEventTarget.js create mode 100644 node_modules/react/lib/getIteratorFn.js create mode 100644 node_modules/react/lib/getMarkupWrap.js create mode 100644 node_modules/react/lib/getNodeForCharacterOffset.js create mode 100644 node_modules/react/lib/getReactRootElementInContainer.js create mode 100644 node_modules/react/lib/getTextContentAccessor.js create mode 100644 node_modules/react/lib/getUnboundedScrollPosition.js create mode 100644 node_modules/react/lib/hyphenate.js create mode 100644 node_modules/react/lib/hyphenateStyleName.js create mode 100644 node_modules/react/lib/instantiateReactComponent.js create mode 100644 node_modules/react/lib/invariant.js create mode 100644 node_modules/react/lib/isEventSupported.js create mode 100644 node_modules/react/lib/isNode.js create mode 100644 node_modules/react/lib/isTextInputElement.js create mode 100644 node_modules/react/lib/isTextNode.js create mode 100644 node_modules/react/lib/joinClasses.js create mode 100644 node_modules/react/lib/keyMirror.js create mode 100644 node_modules/react/lib/keyOf.js create mode 100644 node_modules/react/lib/mapObject.js create mode 100644 node_modules/react/lib/memoizeStringOnly.js create mode 100644 node_modules/react/lib/onlyChild.js create mode 100644 node_modules/react/lib/performance.js create mode 100644 node_modules/react/lib/performanceNow.js create mode 100644 node_modules/react/lib/quoteAttributeValueForBrowser.js create mode 100644 node_modules/react/lib/setInnerHTML.js create mode 100644 node_modules/react/lib/setTextContent.js create mode 100644 node_modules/react/lib/shallowEqual.js create mode 100644 node_modules/react/lib/shouldUpdateReactComponent.js create mode 100644 node_modules/react/lib/toArray.js create mode 100644 node_modules/react/lib/traverseAllChildren.js create mode 100644 node_modules/react/lib/update.js create mode 100644 node_modules/react/lib/warning.js create mode 120000 node_modules/react/node_modules/.bin/envify create mode 100644 node_modules/react/node_modules/envify/.npmignore create mode 100644 node_modules/react/node_modules/envify/README.md create mode 100755 node_modules/react/node_modules/envify/bin/envify create mode 100644 node_modules/react/node_modules/envify/custom.js create mode 100644 node_modules/react/node_modules/envify/index.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/.jshintrc create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/.npmignore create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/.travis.yml create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/LICENSE create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/README.md create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/jestEnvironment.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/jestPreprocessor.js create mode 120000 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/.bin/esparse create mode 120000 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/.bin/esvalidate create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/base62/.travis.yml create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/base62/LICENSE create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/base62/Readme.md create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/base62/base62.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/base62/package.json create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/base62/test/test.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/esprima-fb/README.md create mode 100755 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/esprima-fb/bin/esparse.js create mode 100755 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/esprima-fb/bin/esvalidate.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/esprima-fb/esprima.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/esprima-fb/package.json create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/esprima-fb/test/compat.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/esprima-fb/test/reflect.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/esprima-fb/test/run.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/esprima-fb/test/runner.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/esprima-fb/test/test.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/.npmignore create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/.travis.yml create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/CHANGELOG.md create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/LICENSE create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/Makefile.dryice.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/README.md create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/build/assert-shim.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/build/mini-require.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/build/prefix-source-map.jsm create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/build/prefix-utils.jsm create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/build/suffix-browser.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/build/suffix-source-map.jsm create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/build/suffix-utils.jsm create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/build/test-prefix.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/build/test-suffix.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/lib/source-map.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/lib/source-map/array-set.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/lib/source-map/base64-vlq.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/lib/source-map/base64.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/lib/source-map/binary-search.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/lib/source-map/source-map-consumer.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/lib/source-map/source-map-generator.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/lib/source-map/source-node.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/lib/source-map/util.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/node_modules/amdefine/LICENSE create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/node_modules/amdefine/README.md create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/node_modules/amdefine/amdefine.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/node_modules/amdefine/intercept.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/node_modules/amdefine/package.json create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/package.json create mode 100755 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/test/run-tests.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/test/source-map/test-api.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/test/source-map/test-array-set.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/test/source-map/test-base64-vlq.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/test/source-map/test-base64.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/test/source-map/test-binary-search.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/test/source-map/test-dog-fooding.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/test/source-map/test-source-map-consumer.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/test/source-map/test-source-map-generator.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/test/source-map/test-source-node.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/source-map/test/source-map/util.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/package.json create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/polyfill/Object.es6.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/src/__tests__/jstransform-test.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/src/__tests__/jstransform-utils-test.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/src/docblock.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/src/jstransform.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/src/utils.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/__tests__/es6-arrow-function-visitors-test.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/__tests__/es6-call-spread-visitors-test.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/__tests__/es6-class-visitors-test.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/__tests__/es6-destructuring-visitors-test.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/__tests__/es6-es7-object-integration-test.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/__tests__/es6-object-concise-method-visitors-test.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/__tests__/es6-object-short-notation-visitors-test.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/__tests__/es6-rest-param-visitors-test.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/__tests__/es6-template-visitors-test.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/__tests__/es7-rest-property-helpers-test.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/__tests__/es7-spread-property-visitors-test.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/__tests__/gen/generate-type-syntax-test.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/__tests__/gen/type-syntax-test.rec.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/__tests__/reserved-words-test.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/__tests__/type-alias-syntax-test.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/__tests__/type-class-syntax-test.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/__tests__/type-function-syntax-test.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/__tests__/type-interface-syntax-test.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/__tests__/type-object-method-syntax-test.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/__tests__/type-pattern-syntax-test.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/__tests__/type-syntax-test.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/__tests__/type-variable-declaration-syntax-test.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/es6-arrow-function-visitors.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/es6-call-spread-visitors.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/es6-class-visitors.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/es6-destructuring-visitors.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/es6-object-concise-method-visitors.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/es6-object-short-notation-visitors.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/es6-rest-param-visitors.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/es6-template-visitors.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/es7-rest-property-helpers.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/es7-spread-property-visitors.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/reserved-words-helper.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/reserved-words-visitors.js create mode 100644 node_modules/react/node_modules/envify/node_modules/jstransform/visitors/type-syntax.js create mode 100644 node_modules/react/node_modules/envify/node_modules/through/.travis.yml create mode 100644 node_modules/react/node_modules/envify/node_modules/through/LICENSE.APACHE2 create mode 100644 node_modules/react/node_modules/envify/node_modules/through/LICENSE.MIT create mode 100644 node_modules/react/node_modules/envify/node_modules/through/index.js create mode 100644 node_modules/react/node_modules/envify/node_modules/through/package.json create mode 100644 node_modules/react/node_modules/envify/node_modules/through/readme.markdown create mode 100644 node_modules/react/node_modules/envify/node_modules/through/test/async.js create mode 100644 node_modules/react/node_modules/envify/node_modules/through/test/auto-destroy.js create mode 100644 node_modules/react/node_modules/envify/node_modules/through/test/buffering.js create mode 100644 node_modules/react/node_modules/envify/node_modules/through/test/end.js create mode 100644 node_modules/react/node_modules/envify/node_modules/through/test/index.js create mode 100644 node_modules/react/node_modules/envify/package.json create mode 100644 node_modules/react/node_modules/envify/visitors.js create mode 100644 node_modules/react/package.json create mode 100644 node_modules/react/react.js diff --git a/front-api/db/migrate/20150726160209_add_instant_delivery_price_to_places.rb b/front-api/db/migrate/20150726160209_add_instant_delivery_price_to_places.rb new file mode 100644 index 0000000..86baa99 --- /dev/null +++ b/front-api/db/migrate/20150726160209_add_instant_delivery_price_to_places.rb @@ -0,0 +1,5 @@ +class AddInstantDeliveryPriceToPlaces < ActiveRecord::Migration + def change + add_column :places, :instant_delivery_price, :decimal , precision: 5, scale: 2 + end +end diff --git a/front-api/db/migrate/20150726161256_add_instant_delivery_to_delivery_destinations.rb b/front-api/db/migrate/20150726161256_add_instant_delivery_to_delivery_destinations.rb new file mode 100644 index 0000000..3483b2d --- /dev/null +++ b/front-api/db/migrate/20150726161256_add_instant_delivery_to_delivery_destinations.rb @@ -0,0 +1,5 @@ +class AddInstantDeliveryToDeliveryDestinations < ActiveRecord::Migration + def change + add_column :delivery_destinations, :instant_delivery, :boolean, default: false + end +end diff --git a/front-api/db/schema.rb b/front-api/db/schema.rb index 9118b32..564e0b1 100644 --- a/front-api/db/schema.rb +++ b/front-api/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20150614050336) do +ActiveRecord::Schema.define(version: 20150726161256) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -62,10 +62,11 @@ ActiveRecord::Schema.define(version: 20150614050336) do t.boolean "phone_verified" t.string "phone_verification_code" t.string "email_verification_code" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.integer "user_id" t.string "anonymous_id_string" + t.boolean "instant_delivery", default: false end create_table "delivery_time_estimations", force: :cascade do |t| @@ -130,8 +131,8 @@ ActiveRecord::Schema.define(version: 20150614050336) do t.datetime "updated_at", null: false t.string "tags" t.json "traits" - t.decimal "weight", precision: 5, scale: 3 t.integer "supplier_id" + t.decimal "weight", precision: 5, scale: 3 t.integer "delivery_time_estimation_id" t.integer "brand_id" end @@ -191,8 +192,9 @@ ActiveRecord::Schema.define(version: 20150614050336) do t.string "postal_code" t.decimal "delivery_price" t.string "name" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.decimal "instant_delivery_price", precision: 5, scale: 2 end create_table "sections", force: :cascade do |t| diff --git a/node_modules/ga-react-router/README.md b/node_modules/ga-react-router/README.md new file mode 100644 index 0000000..041ef81 --- /dev/null +++ b/node_modules/ga-react-router/README.md @@ -0,0 +1,23 @@ +# Google analytics for react-router + +## How to use + +1. `npm install ga-react-router` +2. In your `webpack.config.js` add `new webpack.DefinePlugin({GA_TRACKING_CODE: JSON.stringify('XXXXXXXX')})` +3. Use analytics in your `Router.run` code. + +## Example + +```js +'use strict'; +var React = require('react'); +var Router = require('react-router'); +var analytics = require('ga-react-router'); + +var routes = require('./routes'); + +Router.run(routes, Router.HistoryLocation, function(Handler, state) { + React.render(, document.getElementById('content')); + analytics(state); +}); +``` diff --git a/node_modules/ga-react-router/package.json b/node_modules/ga-react-router/package.json new file mode 100644 index 0000000..3687066 --- /dev/null +++ b/node_modules/ga-react-router/package.json @@ -0,0 +1,50 @@ +{ + "name": "ga-react-router", + "version": "1.3.0", + "description": "Google analytics component for react-router", + "main": "src/index.js", + "peerDependencies": { + "react-router": "0.11.x - 0.13.x" + }, + "author": { + "name": "Thomas Coopman @tcoopman" + }, + "repository": { + "type": "git", + "url": "git+ssh://git@github.com/tcoopman/ga-react-router.git" + }, + "licenses": [ + { + "type": "MIT", + "url": "http://www.opensource.org/licenses/mit-license.php" + } + ], + "gitHead": "bd1a0c6d97aef76c38690de4278dec63da13fe9c", + "bugs": { + "url": "https://github.com/tcoopman/ga-react-router/issues" + }, + "homepage": "https://github.com/tcoopman/ga-react-router#readme", + "_id": "ga-react-router@1.3.0", + "scripts": {}, + "_shasum": "28f51f27d5b0339db55499adf82265033cedc939", + "_from": "ga-react-router@*", + "_npmVersion": "2.8.3", + "_nodeVersion": "1.8.1", + "_npmUser": { + "name": "tcoopman", + "email": "thomas.coopman@gmail.com" + }, + "maintainers": [ + { + "name": "tcoopman", + "email": "thomas.coopman@gmail.com" + } + ], + "dist": { + "shasum": "28f51f27d5b0339db55499adf82265033cedc939", + "tarball": "http://registry.npmjs.org/ga-react-router/-/ga-react-router-1.3.0.tgz" + }, + "directories": {}, + "_resolved": "https://registry.npmjs.org/ga-react-router/-/ga-react-router-1.3.0.tgz", + "readme": "ERROR: No README data found!" +} diff --git a/node_modules/ga-react-router/src/ga.js b/node_modules/ga-react-router/src/ga.js new file mode 100644 index 0000000..1d02120 --- /dev/null +++ b/node_modules/ga-react-router/src/ga.js @@ -0,0 +1,31 @@ +'use strict'; +if(typeof window !== 'undefined' && typeof GA_TRACKING_CODE !== 'undefined') { + (function(window, document, script, url, r, tag, firstScriptTag) { + window['GoogleAnalyticsObject']=r; + window[r] = window[r] || function() { + (window[r].q = window[r].q || []).push(arguments) + }; + window[r].l = 1*new Date(); + tag = document.createElement(script), + firstScriptTag = document.getElementsByTagName(script)[0]; + tag.async = 1; + tag.src = url; + firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); + })( + window, + document, + 'script', + '//www.google-analytics.com/analytics.js', + 'ga' + ); + + var ga = window.ga; + + ga('create', GA_TRACKING_CODE, 'auto'); + + module.exports = function() { + return window.ga.apply(window.ga, arguments); + }; +} else { + module.exports = function() {console.log(arguments)}; +} diff --git a/node_modules/ga-react-router/src/index.js b/node_modules/ga-react-router/src/index.js new file mode 100644 index 0000000..08c2da4 --- /dev/null +++ b/node_modules/ga-react-router/src/index.js @@ -0,0 +1,12 @@ +'use strict'; +var ga = require('./ga'); + + +function analytics(state) { + ga('send', 'pageview', { + 'page': state.path + }); +} + + +module.exports = analytics; diff --git a/node_modules/react-router/README.md b/node_modules/react-router/README.md new file mode 100644 index 0000000..985c291 --- /dev/null +++ b/node_modules/react-router/README.md @@ -0,0 +1,140 @@ +[![npm package](https://img.shields.io/npm/v/react-router.svg?style=flat-square)](https://www.npmjs.org/package/react-router) +[![build status](https://img.shields.io/travis/rackt/react-router/master.svg?style=flat-square)](https://travis-ci.org/rackt/react-router) +[![dependency status](https://img.shields.io/david/rackt/react-router.svg?style=flat-square)](https://david-dm.org/rackt/react-router) +[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/rackt/react-router?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) + +React Router +============ + +A complete routing library for React. + +Docs +---- + +- [Guide: Overview](/docs/guides/overview.md) +- [API](/docs/api/) + +Important Notes +--------------- + +### SemVer + +Before our `1.0` release, breaking API changes will cause a bump to +`0.x`. For example, `0.4.1` and `0.4.8` will have the same API, but +`0.5.0` will have breaking changes. + +Please refer to the [upgrade guide](/UPGRADE_GUIDE.md) and +[changelog](/CHANGELOG.md) when upgrading. + +Installation +------------ + +```sh +npm install react-router +# or +bower install react-router +``` + +This library is written with CommonJS modules. If you are using +browserify, webpack, or similar, you can consume it like anything else +installed from npm. + +There is also a global build available on bower, find the library on +`window.ReactRouter`. + +The library is also available on the popular CDN [cdnjs](https://cdnjs.com/libraries/react-router). + +Features +-------- + +- Nested views mapped to nested routes +- Modular construction of route hierarchy +- Sync and async transition hooks +- Transition abort / redirect / retry +- Dynamic segments +- Query parameters +- Links with automatic `.active` class when their route is active +- Multiple root routes +- Hash or HTML5 history (with fallback) URLs +- Declarative Redirect routes +- Declarative NotFound routes +- Browser scroll behavior with transitions + +Check out the `examples` directory to see how simple previously complex UI +and workflows are to create. + +What's it look like? +-------------------- + +```js +var routes = ( + + + + + + + + + + + +); + +Router.run(routes, function (Handler) { + React.render(, document.body); +}); + +// Or, if you'd like to use the HTML5 history API for cleaner URLs: + +Router.run(routes, Router.HistoryLocation, function (Handler) { + React.render(, document.body); +}); +``` + +See more in the [overview guide](/docs/guides/overview.md). + +Benefits of this Approach +------------------------- + +1. **Incredible screen-creation productivity** - There is only one + use-case when a user visits a route: render something. Every user + interface has layers (or nesting) whether it's a simple navbar or + multiple levels of master-detail. Coupling nested routes to these + nested views gets rid of a ton of work for the developer to wire all + of it together when the user switches routes. Adding new screens + could not get faster. + +2. **Immediate understanding of application structure** - When routes + are declared in one place, developers can easily construct a mental + image of the application. It's essentially a sitemap. There's not a + better way to get so much information about your app this quickly. + +3. **Code tractability** - When a developer gets a ticket to fix a bug + at as specific url they simply 1) look at the route config, then 2) + go find the handler for that route. Every entry point into your + application is represented by these routes. + +4. **URLs are your first thought, not an after-thought** - With React + Router, you don't get UI on the page without configuring a url first. + Fortunately, it's wildly productive this way, too. + +Related Modules +--------------- + +- [rnr-constrained-route](https://github.com/bjyoungblood/rnr-constrained-route) - validate paths + and parameters on route handlers. +- [react-router-bootstrap](https://github.com/mtscout6/react-router-bootstrap) - Integration with [react-bootstrap](https://github.com/react-bootstrap/react-bootstrap) components. +- [react-router-proxy-loader](https://github.com/odysseyscience/react-router-proxy-loader) - A Webpack loader to dynamically load react-router components on-demand + +Contributing +------------ + +Please see [CONTRIBUTING](CONTRIBUTING.md) + +Thanks, Ember +------------- + +This library is highly inspired by the Ember.js routing API. In general, +it's a translation of the Ember router api to React. Huge thanks to the +Ember team for solving the hardest part already. diff --git a/node_modules/react-router/lib/Cancellation.js b/node_modules/react-router/lib/Cancellation.js new file mode 100644 index 0000000..bcce202 --- /dev/null +++ b/node_modules/react-router/lib/Cancellation.js @@ -0,0 +1,9 @@ +/** + * Represents a cancellation caused by navigating away + * before the previous transition has fully resolved. + */ +"use strict"; + +function Cancellation() {} + +module.exports = Cancellation; \ No newline at end of file diff --git a/node_modules/react-router/lib/History.js b/node_modules/react-router/lib/History.js new file mode 100644 index 0000000..f6194ad --- /dev/null +++ b/node_modules/react-router/lib/History.js @@ -0,0 +1,30 @@ +'use strict'; + +var invariant = require('react/lib/invariant'); +var canUseDOM = require('react/lib/ExecutionEnvironment').canUseDOM; + +var History = { + + /** + * The current number of entries in the history. + * + * Note: This property is read-only. + */ + length: 1, + + /** + * Sends the browser back one entry in the history. + */ + back: function back() { + invariant(canUseDOM, 'Cannot use History.back without a DOM'); + + // Do this first so that History.length will + // be accurate in location change listeners. + History.length -= 1; + + window.history.back(); + } + +}; + +module.exports = History; \ No newline at end of file diff --git a/node_modules/react-router/lib/Match.js b/node_modules/react-router/lib/Match.js new file mode 100644 index 0000000..ec5f8bc --- /dev/null +++ b/node_modules/react-router/lib/Match.js @@ -0,0 +1,75 @@ +'use strict'; + +var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }; + +var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); + +/* jshint -W084 */ +var PathUtils = require('./PathUtils'); + +function deepSearch(route, pathname, query) { + // Check the subtree first to find the most deeply-nested match. + var childRoutes = route.childRoutes; + if (childRoutes) { + var match, childRoute; + for (var i = 0, len = childRoutes.length; i < len; ++i) { + childRoute = childRoutes[i]; + + if (childRoute.isDefault || childRoute.isNotFound) continue; // Check these in order later. + + if (match = deepSearch(childRoute, pathname, query)) { + // A route in the subtree matched! Add this route and we're done. + match.routes.unshift(route); + return match; + } + } + } + + // No child routes matched; try the default route. + var defaultRoute = route.defaultRoute; + if (defaultRoute && (params = PathUtils.extractParams(defaultRoute.path, pathname))) { + return new Match(pathname, params, query, [route, defaultRoute]); + } // Does the "not found" route match? + var notFoundRoute = route.notFoundRoute; + if (notFoundRoute && (params = PathUtils.extractParams(notFoundRoute.path, pathname))) { + return new Match(pathname, params, query, [route, notFoundRoute]); + } // Last attempt: check this route. + var params = PathUtils.extractParams(route.path, pathname); + if (params) { + return new Match(pathname, params, query, [route]); + }return null; +} + +var Match = (function () { + function Match(pathname, params, query, routes) { + _classCallCheck(this, Match); + + this.pathname = pathname; + this.params = params; + this.query = query; + this.routes = routes; + } + + _createClass(Match, null, [{ + key: 'findMatch', + + /** + * Attempts to match depth-first a route in the given route's + * subtree against the given path and returns the match if it + * succeeds, null if no match can be made. + */ + value: function findMatch(routes, path) { + var pathname = PathUtils.withoutQuery(path); + var query = PathUtils.extractQuery(path); + var match = null; + + for (var i = 0, len = routes.length; match == null && i < len; ++i) match = deepSearch(routes[i], pathname, query); + + return match; + } + }]); + + return Match; +})(); + +module.exports = Match; \ No newline at end of file diff --git a/node_modules/react-router/lib/Navigation.js b/node_modules/react-router/lib/Navigation.js new file mode 100644 index 0000000..023720c --- /dev/null +++ b/node_modules/react-router/lib/Navigation.js @@ -0,0 +1,70 @@ +'use strict'; + +var PropTypes = require('./PropTypes'); + +/** + * A mixin for components that modify the URL. + * + * Example: + * + * var MyLink = React.createClass({ + * mixins: [ Router.Navigation ], + * handleClick(event) { + * event.preventDefault(); + * this.transitionTo('aRoute', { the: 'params' }, { the: 'query' }); + * }, + * render() { + * return ( + * Click me! + * ); + * } + * }); + */ +var Navigation = { + + contextTypes: { + router: PropTypes.router.isRequired + }, + + /** + * Returns an absolute URL path created from the given route + * name, URL parameters, and query values. + */ + makePath: function makePath(to, params, query) { + return this.context.router.makePath(to, params, query); + }, + + /** + * Returns a string that may safely be used as the href of a + * link to the route with the given name. + */ + makeHref: function makeHref(to, params, query) { + return this.context.router.makeHref(to, params, query); + }, + + /** + * Transitions to the URL specified in the arguments by pushing + * a new URL onto the history stack. + */ + transitionTo: function transitionTo(to, params, query) { + this.context.router.transitionTo(to, params, query); + }, + + /** + * Transitions to the URL specified in the arguments by replacing + * the current URL in the history stack. + */ + replaceWith: function replaceWith(to, params, query) { + this.context.router.replaceWith(to, params, query); + }, + + /** + * Transitions to the previous URL. + */ + goBack: function goBack() { + return this.context.router.goBack(); + } + +}; + +module.exports = Navigation; \ No newline at end of file diff --git a/node_modules/react-router/lib/PathUtils.js b/node_modules/react-router/lib/PathUtils.js new file mode 100644 index 0000000..c39d210 --- /dev/null +++ b/node_modules/react-router/lib/PathUtils.js @@ -0,0 +1,153 @@ +'use strict'; + +var invariant = require('react/lib/invariant'); +var assign = require('object-assign'); +var qs = require('qs'); + +var paramCompileMatcher = /:([a-zA-Z_$][a-zA-Z0-9_$]*)|[*.()\[\]\\+|{}^$]/g; +var paramInjectMatcher = /:([a-zA-Z_$][a-zA-Z0-9_$?]*[?]?)|[*]/g; +var paramInjectTrailingSlashMatcher = /\/\/\?|\/\?\/|\/\?/g; +var queryMatcher = /\?(.*)$/; + +var _compiledPatterns = {}; + +function compilePattern(pattern) { + if (!(pattern in _compiledPatterns)) { + var paramNames = []; + var source = pattern.replace(paramCompileMatcher, function (match, paramName) { + if (paramName) { + paramNames.push(paramName); + return '([^/?#]+)'; + } else if (match === '*') { + paramNames.push('splat'); + return '(.*?)'; + } else { + return '\\' + match; + } + }); + + _compiledPatterns[pattern] = { + matcher: new RegExp('^' + source + '$', 'i'), + paramNames: paramNames + }; + } + + return _compiledPatterns[pattern]; +} + +var PathUtils = { + + /** + * Returns true if the given path is absolute. + */ + isAbsolute: function isAbsolute(path) { + return path.charAt(0) === '/'; + }, + + /** + * Joins two URL paths together. + */ + join: function join(a, b) { + return a.replace(/\/*$/, '/') + b; + }, + + /** + * Returns an array of the names of all parameters in the given pattern. + */ + extractParamNames: function extractParamNames(pattern) { + return compilePattern(pattern).paramNames; + }, + + /** + * Extracts the portions of the given URL path that match the given pattern + * and returns an object of param name => value pairs. Returns null if the + * pattern does not match the given path. + */ + extractParams: function extractParams(pattern, path) { + var _compilePattern = compilePattern(pattern); + + var matcher = _compilePattern.matcher; + var paramNames = _compilePattern.paramNames; + + var match = path.match(matcher); + + if (!match) { + return null; + }var params = {}; + + paramNames.forEach(function (paramName, index) { + params[paramName] = match[index + 1]; + }); + + return params; + }, + + /** + * Returns a version of the given route path with params interpolated. Throws + * if there is a dynamic segment of the route path for which there is no param. + */ + injectParams: function injectParams(pattern, params) { + params = params || {}; + + var splatIndex = 0; + + return pattern.replace(paramInjectMatcher, function (match, paramName) { + paramName = paramName || 'splat'; + + // If param is optional don't check for existence + if (paramName.slice(-1) === '?') { + paramName = paramName.slice(0, -1); + + if (params[paramName] == null) return ''; + } else { + invariant(params[paramName] != null, 'Missing "%s" parameter for path "%s"', paramName, pattern); + } + + var segment; + if (paramName === 'splat' && Array.isArray(params[paramName])) { + segment = params[paramName][splatIndex++]; + + invariant(segment != null, 'Missing splat # %s for path "%s"', splatIndex, pattern); + } else { + segment = params[paramName]; + } + + return segment; + }).replace(paramInjectTrailingSlashMatcher, '/'); + }, + + /** + * Returns an object that is the result of parsing any query string contained + * in the given path, null if the path contains no query string. + */ + extractQuery: function extractQuery(path) { + var match = path.match(queryMatcher); + return match && qs.parse(match[1]); + }, + + /** + * Returns a version of the given path without the query string. + */ + withoutQuery: function withoutQuery(path) { + return path.replace(queryMatcher, ''); + }, + + /** + * Returns a version of the given path with the parameters in the given + * query merged into the query string. + */ + withQuery: function withQuery(path, query) { + var existingQuery = PathUtils.extractQuery(path); + + if (existingQuery) query = query ? assign(existingQuery, query) : existingQuery; + + var queryString = qs.stringify(query, { arrayFormat: 'brackets' }); + + if (queryString) { + return PathUtils.withoutQuery(path) + '?' + queryString; + }return PathUtils.withoutQuery(path); + } + +}; + +module.exports = PathUtils; \ No newline at end of file diff --git a/node_modules/react-router/lib/PropTypes.js b/node_modules/react-router/lib/PropTypes.js new file mode 100644 index 0000000..fdee9be --- /dev/null +++ b/node_modules/react-router/lib/PropTypes.js @@ -0,0 +1,31 @@ +'use strict'; + +var assign = require('react/lib/Object.assign'); +var ReactPropTypes = require('react').PropTypes; +var Route = require('./Route'); + +var PropTypes = assign({}, ReactPropTypes, { + + /** + * Indicates that a prop should be falsy. + */ + falsy: function falsy(props, propName, componentName) { + if (props[propName]) { + return new Error('<' + componentName + '> should not have a "' + propName + '" prop'); + } + }, + + /** + * Indicates that a prop should be a Route object. + */ + route: ReactPropTypes.instanceOf(Route), + + /** + * Indicates that a prop should be a Router object. + */ + //router: ReactPropTypes.instanceOf(Router) // TODO + router: ReactPropTypes.func + +}); + +module.exports = PropTypes; \ No newline at end of file diff --git a/node_modules/react-router/lib/Redirect.js b/node_modules/react-router/lib/Redirect.js new file mode 100644 index 0000000..7cbf688 --- /dev/null +++ b/node_modules/react-router/lib/Redirect.js @@ -0,0 +1,12 @@ +/** + * Encapsulates a redirect to the given route. + */ +"use strict"; + +function Redirect(to, params, query) { + this.to = to; + this.params = params; + this.query = query; +} + +module.exports = Redirect; \ No newline at end of file diff --git a/node_modules/react-router/lib/Route.js b/node_modules/react-router/lib/Route.js new file mode 100644 index 0000000..b2d4ac1 --- /dev/null +++ b/node_modules/react-router/lib/Route.js @@ -0,0 +1,200 @@ +'use strict'; + +var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }; + +var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); + +var assign = require('react/lib/Object.assign'); +var invariant = require('react/lib/invariant'); +var warning = require('react/lib/warning'); +var PathUtils = require('./PathUtils'); + +var _currentRoute; + +var Route = (function () { + function Route(name, path, ignoreScrollBehavior, isDefault, isNotFound, onEnter, onLeave, handler) { + _classCallCheck(this, Route); + + this.name = name; + this.path = path; + this.paramNames = PathUtils.extractParamNames(this.path); + this.ignoreScrollBehavior = !!ignoreScrollBehavior; + this.isDefault = !!isDefault; + this.isNotFound = !!isNotFound; + this.onEnter = onEnter; + this.onLeave = onLeave; + this.handler = handler; + } + + _createClass(Route, [{ + key: 'appendChild', + + /** + * Appends the given route to this route's child routes. + */ + value: function appendChild(route) { + invariant(route instanceof Route, 'route.appendChild must use a valid Route'); + + if (!this.childRoutes) this.childRoutes = []; + + this.childRoutes.push(route); + } + }, { + key: 'toString', + value: function toString() { + var string = ''; + + return string; + } + }], [{ + key: 'createRoute', + + /** + * Creates and returns a new route. Options may be a URL pathname string + * with placeholders for named params or an object with any of the following + * properties: + * + * - name The name of the route. This is used to lookup a + * route relative to its parent route and should be + * unique among all child routes of the same parent + * - path A URL pathname string with optional placeholders + * that specify the names of params to extract from + * the URL when the path matches. Defaults to `/${name}` + * when there is a name given, or the path of the parent + * route, or / + * - ignoreScrollBehavior True to make this route (and all descendants) ignore + * the scroll behavior of the router + * - isDefault True to make this route the default route among all + * its siblings + * - isNotFound True to make this route the "not found" route among + * all its siblings + * - onEnter A transition hook that will be called when the + * router is going to enter this route + * - onLeave A transition hook that will be called when the + * router is going to leave this route + * - handler A React component that will be rendered when + * this route is active + * - parentRoute The parent route to use for this route. This option + * is automatically supplied when creating routes inside + * the callback to another invocation of createRoute. You + * only ever need to use this when declaring routes + * independently of one another to manually piece together + * the route hierarchy + * + * The callback may be used to structure your route hierarchy. Any call to + * createRoute, createDefaultRoute, createNotFoundRoute, or createRedirect + * inside the callback automatically uses this route as its parent. + */ + value: function createRoute(options, callback) { + options = options || {}; + + if (typeof options === 'string') options = { path: options }; + + var parentRoute = _currentRoute; + + if (parentRoute) { + warning(options.parentRoute == null || options.parentRoute === parentRoute, 'You should not use parentRoute with createRoute inside another route\'s child callback; it is ignored'); + } else { + parentRoute = options.parentRoute; + } + + var name = options.name; + var path = options.path || name; + + if (path && !(options.isDefault || options.isNotFound)) { + if (PathUtils.isAbsolute(path)) { + if (parentRoute) { + invariant(path === parentRoute.path || parentRoute.paramNames.length === 0, 'You cannot nest path "%s" inside "%s"; the parent requires URL parameters', path, parentRoute.path); + } + } else if (parentRoute) { + // Relative paths extend their parent. + path = PathUtils.join(parentRoute.path, path); + } else { + path = '/' + path; + } + } else { + path = parentRoute ? parentRoute.path : '/'; + } + + if (options.isNotFound && !/\*$/.test(path)) path += '*'; // Auto-append * to the path of not found routes. + + var route = new Route(name, path, options.ignoreScrollBehavior, options.isDefault, options.isNotFound, options.onEnter, options.onLeave, options.handler); + + if (parentRoute) { + if (route.isDefault) { + invariant(parentRoute.defaultRoute == null, '%s may not have more than one default route', parentRoute); + + parentRoute.defaultRoute = route; + } else if (route.isNotFound) { + invariant(parentRoute.notFoundRoute == null, '%s may not have more than one not found route', parentRoute); + + parentRoute.notFoundRoute = route; + } + + parentRoute.appendChild(route); + } + + // Any routes created in the callback + // use this route as their parent. + if (typeof callback === 'function') { + var currentRoute = _currentRoute; + _currentRoute = route; + callback.call(route, route); + _currentRoute = currentRoute; + } + + return route; + } + }, { + key: 'createDefaultRoute', + + /** + * Creates and returns a route that is rendered when its parent matches + * the current URL. + */ + value: function createDefaultRoute(options) { + return Route.createRoute(assign({}, options, { isDefault: true })); + } + }, { + key: 'createNotFoundRoute', + + /** + * Creates and returns a route that is rendered when its parent matches + * the current URL but none of its siblings do. + */ + value: function createNotFoundRoute(options) { + return Route.createRoute(assign({}, options, { isNotFound: true })); + } + }, { + key: 'createRedirect', + + /** + * Creates and returns a route that automatically redirects the transition + * to another route. In addition to the normal options to createRoute, this + * function accepts the following options: + * + * - from An alias for the `path` option. Defaults to * + * - to The path/route/route name to redirect to + * - params The params to use in the redirect URL. Defaults + * to using the current params + * - query The query to use in the redirect URL. Defaults + * to using the current query + */ + value: function createRedirect(options) { + return Route.createRoute(assign({}, options, { + path: options.path || options.from || '*', + onEnter: function onEnter(transition, params, query) { + transition.redirect(options.to, options.params || params, options.query || query); + } + })); + } + }]); + + return Route; +})(); + +module.exports = Route; \ No newline at end of file diff --git a/node_modules/react-router/lib/ScrollHistory.js b/node_modules/react-router/lib/ScrollHistory.js new file mode 100644 index 0000000..52a585f --- /dev/null +++ b/node_modules/react-router/lib/ScrollHistory.js @@ -0,0 +1,75 @@ +'use strict'; + +var invariant = require('react/lib/invariant'); +var canUseDOM = require('react/lib/ExecutionEnvironment').canUseDOM; +var getWindowScrollPosition = require('./getWindowScrollPosition'); + +function shouldUpdateScroll(state, prevState) { + if (!prevState) { + return true; + } // Don't update scroll position when only the query has changed. + if (state.pathname === prevState.pathname) { + return false; + }var routes = state.routes; + var prevRoutes = prevState.routes; + + var sharedAncestorRoutes = routes.filter(function (route) { + return prevRoutes.indexOf(route) !== -1; + }); + + return !sharedAncestorRoutes.some(function (route) { + return route.ignoreScrollBehavior; + }); +} + +/** + * Provides the router with the ability to manage window scroll position + * according to its scroll behavior. + */ +var ScrollHistory = { + + statics: { + + /** + * Records curent scroll position as the last known position for the given URL path. + */ + recordScrollPosition: function recordScrollPosition(path) { + if (!this.scrollHistory) this.scrollHistory = {}; + + this.scrollHistory[path] = getWindowScrollPosition(); + }, + + /** + * Returns the last known scroll position for the given URL path. + */ + getScrollPosition: function getScrollPosition(path) { + if (!this.scrollHistory) this.scrollHistory = {}; + + return this.scrollHistory[path] || null; + } + + }, + + componentWillMount: function componentWillMount() { + invariant(this.constructor.getScrollBehavior() == null || canUseDOM, 'Cannot use scroll behavior without a DOM'); + }, + + componentDidMount: function componentDidMount() { + this._updateScroll(); + }, + + componentDidUpdate: function componentDidUpdate(prevProps, prevState) { + this._updateScroll(prevState); + }, + + _updateScroll: function _updateScroll(prevState) { + if (!shouldUpdateScroll(this.state, prevState)) { + return; + }var scrollBehavior = this.constructor.getScrollBehavior(); + + if (scrollBehavior) scrollBehavior.updateScrollPosition(this.constructor.getScrollPosition(this.state.path), this.state.action); + } + +}; + +module.exports = ScrollHistory; \ No newline at end of file diff --git a/node_modules/react-router/lib/State.js b/node_modules/react-router/lib/State.js new file mode 100644 index 0000000..8cad99e --- /dev/null +++ b/node_modules/react-router/lib/State.js @@ -0,0 +1,74 @@ +'use strict'; + +var PropTypes = require('./PropTypes'); + +/** + * A mixin for components that need to know the path, routes, URL + * params and query that are currently active. + * + * Example: + * + * var AboutLink = React.createClass({ + * mixins: [ Router.State ], + * render() { + * var className = this.props.className; + * + * if (this.isActive('about')) + * className += ' is-active'; + * + * return React.DOM.a({ className: className }, this.props.children); + * } + * }); + */ +var State = { + + contextTypes: { + router: PropTypes.router.isRequired + }, + + /** + * Returns the current URL path. + */ + getPath: function getPath() { + return this.context.router.getCurrentPath(); + }, + + /** + * Returns the current URL path without the query string. + */ + getPathname: function getPathname() { + return this.context.router.getCurrentPathname(); + }, + + /** + * Returns an object of the URL params that are currently active. + */ + getParams: function getParams() { + return this.context.router.getCurrentParams(); + }, + + /** + * Returns an object of the query params that are currently active. + */ + getQuery: function getQuery() { + return this.context.router.getCurrentQuery(); + }, + + /** + * Returns an array of the routes that are currently active. + */ + getRoutes: function getRoutes() { + return this.context.router.getCurrentRoutes(); + }, + + /** + * A helper method to determine if a given route, params, and query + * are active. + */ + isActive: function isActive(to, params, query) { + return this.context.router.isActive(to, params, query); + } + +}; + +module.exports = State; \ No newline at end of file diff --git a/node_modules/react-router/lib/TestUtils.js b/node_modules/react-router/lib/TestUtils.js new file mode 100644 index 0000000..60b706b --- /dev/null +++ b/node_modules/react-router/lib/TestUtils.js @@ -0,0 +1,171 @@ +'use strict'; + +var React = require('react'); +var RouteHandler = require('./components/RouteHandler'); +var PropTypes = require('./PropTypes'); + +exports.Nested = React.createClass({ + displayName: 'Nested', + + render: function render() { + return React.createElement( + 'div', + null, + React.createElement( + 'h1', + { className: 'Nested' }, + 'Nested' + ), + React.createElement(RouteHandler, null) + ); + } +}); + +exports.Foo = React.createClass({ + displayName: 'Foo', + + render: function render() { + return React.createElement( + 'div', + { className: 'Foo' }, + 'Foo' + ); + } +}); + +exports.Bar = React.createClass({ + displayName: 'Bar', + + render: function render() { + return React.createElement( + 'div', + { className: 'Bar' }, + 'Bar' + ); + } +}); + +exports.Baz = React.createClass({ + displayName: 'Baz', + + render: function render() { + return React.createElement( + 'div', + { className: 'Baz' }, + 'Baz' + ); + } +}); + +exports.Async = React.createClass({ + displayName: 'Async', + + statics: { + delay: 10, + + willTransitionTo: function willTransitionTo(transition, params, query, callback) { + setTimeout(callback, exports.Async.delay); + } + }, + + render: function render() { + return React.createElement( + 'div', + { className: 'Async' }, + 'Async' + ); + } +}); + +exports.RedirectToFoo = React.createClass({ + displayName: 'RedirectToFoo', + + statics: { + willTransitionTo: function willTransitionTo(transition) { + transition.redirect('/foo'); + } + }, + + render: function render() { + return null; + } +}); + +exports.RedirectToFooAsync = React.createClass({ + displayName: 'RedirectToFooAsync', + + statics: { + delay: 10, + + willTransitionTo: function willTransitionTo(transition, params, query, callback) { + setTimeout(function () { + transition.redirect('/foo'); + callback(); + }, exports.RedirectToFooAsync.delay); + } + }, + + render: function render() { + return null; + } +}); + +exports.Abort = React.createClass({ + displayName: 'Abort', + + statics: { + willTransitionTo: function willTransitionTo(transition) { + transition.abort(); + } + }, + + render: function render() { + return null; + } +}); + +exports.AbortAsync = React.createClass({ + displayName: 'AbortAsync', + + statics: { + delay: 10, + + willTransitionTo: function willTransitionTo(transition, params, query, callback) { + setTimeout(function () { + transition.abort(); + callback(); + }, exports.AbortAsync.delay); + } + }, + + render: function render() { + return null; + } +}); + +exports.EchoFooProp = React.createClass({ + displayName: 'EchoFooProp', + + render: function render() { + return React.createElement( + 'div', + null, + this.props.foo + ); + } +}); + +exports.EchoBarParam = React.createClass({ + displayName: 'EchoBarParam', + + contextTypes: { + router: PropTypes.router.isRequired + }, + render: function render() { + return React.createElement( + 'div', + { className: 'EchoBarParam' }, + this.context.router.getCurrentParams().bar + ); + } +}); \ No newline at end of file diff --git a/node_modules/react-router/lib/Transition.js b/node_modules/react-router/lib/Transition.js new file mode 100644 index 0000000..d58c311 --- /dev/null +++ b/node_modules/react-router/lib/Transition.js @@ -0,0 +1,75 @@ +/* jshint -W058 */ + +'use strict'; + +var Cancellation = require('./Cancellation'); +var Redirect = require('./Redirect'); + +/** + * Encapsulates a transition to a given path. + * + * The willTransitionTo and willTransitionFrom handlers receive + * an instance of this class as their first argument. + */ +function Transition(path, retry) { + this.path = path; + this.abortReason = null; + // TODO: Change this to router.retryTransition(transition) + this.retry = retry.bind(this); +} + +Transition.prototype.abort = function (reason) { + if (this.abortReason == null) this.abortReason = reason || 'ABORT'; +}; + +Transition.prototype.redirect = function (to, params, query) { + this.abort(new Redirect(to, params, query)); +}; + +Transition.prototype.cancel = function () { + this.abort(new Cancellation()); +}; + +Transition.from = function (transition, routes, components, callback) { + routes.reduce(function (callback, route, index) { + return function (error) { + if (error || transition.abortReason) { + callback(error); + } else if (route.onLeave) { + try { + route.onLeave(transition, components[index], callback); + + // If there is no callback in the argument list, call it automatically. + if (route.onLeave.length < 3) callback(); + } catch (e) { + callback(e); + } + } else { + callback(); + } + }; + }, callback)(); +}; + +Transition.to = function (transition, routes, params, query, callback) { + routes.reduceRight(function (callback, route) { + return function (error) { + if (error || transition.abortReason) { + callback(error); + } else if (route.onEnter) { + try { + route.onEnter(transition, params, query, callback); + + // If there is no callback in the argument list, call it automatically. + if (route.onEnter.length < 4) callback(); + } catch (e) { + callback(e); + } + } else { + callback(); + } + }; + }, callback)(); +}; + +module.exports = Transition; \ No newline at end of file diff --git a/node_modules/react-router/lib/actions/LocationActions.js b/node_modules/react-router/lib/actions/LocationActions.js new file mode 100644 index 0000000..8970c10 --- /dev/null +++ b/node_modules/react-router/lib/actions/LocationActions.js @@ -0,0 +1,25 @@ +/** + * Actions that modify the URL. + */ +'use strict'; + +var LocationActions = { + + /** + * Indicates a new location is being pushed to the history stack. + */ + PUSH: 'push', + + /** + * Indicates the current location should be replaced. + */ + REPLACE: 'replace', + + /** + * Indicates the most recent entry should be removed from the history stack. + */ + POP: 'pop' + +}; + +module.exports = LocationActions; \ No newline at end of file diff --git a/node_modules/react-router/lib/behaviors/ImitateBrowserBehavior.js b/node_modules/react-router/lib/behaviors/ImitateBrowserBehavior.js new file mode 100644 index 0000000..e7782f9 --- /dev/null +++ b/node_modules/react-router/lib/behaviors/ImitateBrowserBehavior.js @@ -0,0 +1,29 @@ +'use strict'; + +var LocationActions = require('../actions/LocationActions'); + +/** + * A scroll behavior that attempts to imitate the default behavior + * of modern browsers. + */ +var ImitateBrowserBehavior = { + + updateScrollPosition: function updateScrollPosition(position, actionType) { + switch (actionType) { + case LocationActions.PUSH: + case LocationActions.REPLACE: + window.scrollTo(0, 0); + break; + case LocationActions.POP: + if (position) { + window.scrollTo(position.x, position.y); + } else { + window.scrollTo(0, 0); + } + break; + } + } + +}; + +module.exports = ImitateBrowserBehavior; \ No newline at end of file diff --git a/node_modules/react-router/lib/behaviors/ScrollToTopBehavior.js b/node_modules/react-router/lib/behaviors/ScrollToTopBehavior.js new file mode 100644 index 0000000..92c81e9 --- /dev/null +++ b/node_modules/react-router/lib/behaviors/ScrollToTopBehavior.js @@ -0,0 +1,15 @@ +/** + * A scroll behavior that always scrolls to the top of the page + * after a transition. + */ +"use strict"; + +var ScrollToTopBehavior = { + + updateScrollPosition: function updateScrollPosition() { + window.scrollTo(0, 0); + } + +}; + +module.exports = ScrollToTopBehavior; \ No newline at end of file diff --git a/node_modules/react-router/lib/components/ActiveHandler.js b/node_modules/react-router/lib/components/ActiveHandler.js new file mode 100644 index 0000000..13844be --- /dev/null +++ b/node_modules/react-router/lib/components/ActiveHandler.js @@ -0,0 +1,108 @@ +'use strict'; + +var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }; + +var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); + +var _inherits = function (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) subClass.__proto__ = superClass; }; + +var React = require('react'); +var ContextWrapper = require('./ContextWrapper'); +var assign = require('react/lib/Object.assign'); +var PropTypes = require('../PropTypes'); + +var REF_NAME = '__routeHandler__'; + +/** + * A component renders the active child route handler + * when routes are nested. + */ + +var RouteHandler = (function (_React$Component) { + function RouteHandler() { + _classCallCheck(this, RouteHandler); + + if (_React$Component != null) { + _React$Component.apply(this, arguments); + } + } + + _inherits(RouteHandler, _React$Component); + + _createClass(RouteHandler, [{ + key: 'getChildContext', + value: function getChildContext() { + return { + routeDepth: this.context.routeDepth + 1 + }; + } + }, { + key: 'componentDidMount', + value: function componentDidMount() { + this._updateRouteComponent(this.refs[REF_NAME]); + } + }, { + key: 'componentDidUpdate', + value: function componentDidUpdate() { + this._updateRouteComponent(this.refs[REF_NAME]); + } + }, { + key: 'componentWillUnmount', + value: function componentWillUnmount() { + this._updateRouteComponent(null); + } + }, { + key: '_updateRouteComponent', + value: function _updateRouteComponent(component) { + this.context.router.setRouteComponentAtDepth(this.getRouteDepth(), component); + } + }, { + key: 'getRouteDepth', + value: function getRouteDepth() { + return this.context.routeDepth; + } + }, { + key: 'createChildRouteHandler', + value: function createChildRouteHandler(props) { + var route = this.context.router.getRouteAtDepth(this.getRouteDepth()); + + if (route == null) { + return null; + }var childProps = assign({}, props || this.props, { + ref: REF_NAME, + params: this.context.router.getCurrentParams(), + query: this.context.router.getCurrentQuery() + }); + + return React.createElement(route.handler, childProps); + } + }, { + key: 'render', + value: function render() { + var handler = this.createChildRouteHandler(); + //