This repository was archived by the owner on Apr 9, 2019. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ language : node_js
2+ node_js :
3+ - " 9"
4+ install :
5+ - yarn
6+ script :
7+ - yarn test
Original file line number Diff line number Diff line change 1919 "@types/node" : " ^10.5.2" ,
2020 "@types/react" : " ^16.4.6" ,
2121 "@types/react-dom" : " ^16.0.6" ,
22+ "@types/react-ga" : " ^2.3.0" ,
2223 "@types/react-hot-loader" : " ^4.1.0" ,
2324 "@types/react-redux" : " ^6.0.4" ,
2425 "autoprefixer" : " ^8.6.5" ,
4546 "dependencies" : {
4647 "react" : " ^16.4.1" ,
4748 "react-dom" : " ^16.4.1" ,
49+ "react-ga" : " ^2.5.3" ,
4850 "react-redux" : " ^5.0.7" ,
4951 "redux" : " ^4.0.0" ,
5052 "semantic-ui-css" : " ^2.3.3" ,
5153 "semantic-ui-react" : " ^0.82.0"
5254 },
5355 "scripts" : {
5456 "build" : " webpack" ,
55- "watch" : " webpack-dev-server --hot"
57+ "watch" : " webpack-dev-server --hot" ,
58+ "test" : " echo 0"
5659 }
5760}
Original file line number Diff line number Diff line change 11import App from "./app" ;
22import * as ReactDOM from "react-dom" ;
33import * as React from "react" ;
4+ import * as ReactGA from 'react-ga' ;
5+ ReactGA . initialize ( 'UA-70421575-5' ) ;
6+ ReactGA . pageview ( window . location . pathname + window . location . search ) ;
7+
48
59ReactDOM . render (
610 < App /> ,
Original file line number Diff line number Diff line change 911911 " @types/node" " *"
912912 " @types/react" " *"
913913
914+ " @types/react-ga@^2.3.0 " :
915+ version "2.3.0"
916+ resolved "https://registry.yarnpkg.com/@types/react-ga/-/react-ga-2.3.0.tgz#dbd56dd622cabb5baebc896e3ee67dfdc29babc1"
917+ dependencies :
918+ react-ga "*"
919+
914920" @types/react-hot-loader@^4.1.0 " :
915921 version "4.1.0"
916922 resolved "https://registry.yarnpkg.com/@types/react-hot-loader/-/react-hot-loader-4.1.0.tgz#8e072b44331ad0182918228c5d2bf514646760de"
@@ -5376,6 +5382,13 @@ react-dom@^16.4.1:
53765382 object-assign "^4.1.1"
53775383 prop-types "^15.6.0"
53785384
5385+ react-ga@*, react-ga@^2.5.3 :
5386+ version "2.5.3"
5387+ resolved "https://registry.yarnpkg.com/react-ga/-/react-ga-2.5.3.tgz#0f447c73664c069a5fc341f6f431262e3d4c23c4"
5388+ optionalDependencies :
5389+ prop-types "^15.6.0"
5390+ react "^15.6.2 || ^16.0"
5391+
53795392react-hot-loader@^4.3.3 :
53805393 version "4.3.3"
53815394 resolved "https://registry.yarnpkg.com/react-hot-loader/-/react-hot-loader-4.3.3.tgz#37409a3341c7787563d0972007ba02521f82f5d5"
@@ -5402,7 +5415,7 @@ react-redux@^5.0.7:
54025415 loose-envify "^1.1.0"
54035416 prop-types "^15.6.0"
54045417
5405- react@^16.4.1 :
5418+ " react@^15.6.2 || ^16.0 " , react@^16.4.1:
54065419 version "16.4.1"
54075420 resolved "https://registry.yarnpkg.com/react/-/react-16.4.1.tgz#de51ba5764b5dbcd1f9079037b862bd26b82fe32"
54085421 dependencies :
You can’t perform that action at this time.
0 commit comments