added migrations for instant delivery

This commit is contained in:
Senad Uka
2015-07-26 19:10:16 +02:00
parent af6864954a
commit 68b25bf491
374 changed files with 135456 additions and 6 deletions

23
node_modules/ga-react-router/README.md generated vendored Normal file
View File

@@ -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(<Handler />, document.getElementById('content'));
analytics(state);
});
```

50
node_modules/ga-react-router/package.json generated vendored Normal file
View File

@@ -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!"
}

31
node_modules/ga-react-router/src/ga.js generated vendored Normal file
View File

@@ -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)};
}

12
node_modules/ga-react-router/src/index.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
'use strict';
var ga = require('./ga');
function analytics(state) {
ga('send', 'pageview', {
'page': state.path
});
}
module.exports = analytics;