Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connects to #106. Google Analytics tag update. #118

Merged
merged 12 commits into from Apr 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
53 changes: 14 additions & 39 deletions .eslintrc.js
@@ -1,41 +1,16 @@
module.exports = {
"extends": [
"airbnb",
"plugin:prettier/recommended"
],
"plugins": [
"react-hooks",
"prettier"
],
"rules": {
"jsx-a11y/label-has-for": 0,
"jsx-a11y/label-has-associated-control": 0,
"jsx-a11y/no-noninteractive-tabindex": 0,
"jsx-a11y/control-has-associated-label": 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"import/no-extraneous-dependencies": [
"error",
{"devDependencies": true}
],
"no-use-before-define": 0,
"no-param-reassign": 0,
"no-console": 0,
"func-names": 0,
"prefer-template": 0,
"consistent-return": 0,
"react/jsx-filename-extension": 0,
"react/jsx-props-no-spreading": 0,
"react/jsx-one-expression-per-line": 0,
"react/prop-types": 0,
"react/forbid-prop-types": 0,
"react/no-unescaped-entities": 0,
"react/destructuring-assignment": 0,
"react/no-this-in-sfc": 0,
"prettier/prettier": 0
},
"env": {
"browser": true,
"jest": true
}
extends: ['airbnb', 'plugin:prettier/recommended'],
plugins: ['react-hooks', 'prettier'],
rules: {
'jsx-a11y/label-has-for': 0,
'jsx-a11y/label-has-associated-control': 0,
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'react/jsx-props-no-spreading': 0,
},
env: {
browser: true,
jest: true,
},
};
22 changes: 11 additions & 11 deletions package.json
Expand Up @@ -3,12 +3,13 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"auth0-js": "9.14.3",
"auth0-js": "9.15.0",
"axios": "^0.21.1",
"bootstrap": "4.6.0",
"chart.js": "^2.9.3",
"d3": "^5.14.2",
"dayjs": "1.8.25",
"ga-gtag": "^1.0.1",
"history": "4.10.1",
"jquery": "^3.5.1",
"lodash": "^4.17.11",
Expand All @@ -18,12 +19,11 @@
"react": "17.0.1",
"react-chartjs-2": "^2.8.0",
"react-dom": "17.0.1",
"react-ga": "^3.1.2",
"react-google-recaptcha": "^2.1.0",
"react-particles-js": "3.4.1",
"react-redux": "^7.2.1",
"react-router-dom": "^5.1.2",
"react-scripts": "4.0.2",
"react-scripts": "4.0.3",
"react-spring": "^8.0.20",
"redux": "^4.0.1",
"redux-thunk": "^2.3.0",
Expand All @@ -49,24 +49,24 @@
"not op_mini all"
],
"devDependencies": {
"@storybook/addon-actions": "6.1.18",
"@storybook/addon-links": "6.1.18",
"@storybook/addon-storyshots": "6.1.18",
"@storybook/addons": "6.1.18",
"@storybook/addon-actions": "6.1.21",
"@storybook/addon-links": "6.1.21",
"@storybook/addon-storyshots": "6.1.21",
"@storybook/addons": "6.1.21",
"@storybook/preset-create-react-app": "^3.1.4",
"@storybook/react": "6.1.18",
"@wojtekmaj/enzyme-adapter-react-17": "^0.4.1",
"@storybook/react": "6.1.21",
"@wojtekmaj/enzyme-adapter-react-17": "0.6.0",
"enzyme": "3.11.0",
"enzyme-adapter-react-16": "1.15.6",
"eslint-config-airbnb": "^18.2.0",
"eslint-config-prettier": "7.2.0",
"eslint-config-prettier": "8.1.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react-hooks": "^4.0.8",
"jest-canvas-mock": "^2.2.0",
"prettier": "2.2.1",
"sass": "1.32.8",
"storybook-react-router": "1.0.8",
"stylelint": "^13.2.0",
"stylelint-config-recommended": "^3.0.0"
"stylelint-config-recommended": "4.0.0"
}
}
19 changes: 0 additions & 19 deletions src/AnalysisPage/humanDataAnalysis.jsx

This file was deleted.

197 changes: 0 additions & 197 deletions src/AnalysisPage/humanGeneMetaAnalysis.jsx

This file was deleted.

4 changes: 2 additions & 2 deletions src/AnnouncementsPage/announcementsPage.jsx
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import dayjs from 'dayjs';
import { TrackEvent } from '../GoogleAnalytics/googleAnalytics';
import { trackEvent } from '../GoogleAnalytics/googleAnalytics';
import AuthContentContainer from '../lib/ui/authContentContainer';

const announcementData = require('./announcements');
Expand Down Expand Up @@ -77,7 +77,7 @@ function AnnouncementEntry({ entry }) {
className="inline-link-with-icon"
target="_blank"
rel="noopener noreferrer"
onClick={TrackEvent.bind(
onClick={trackEvent.bind(
this,
link.gaEventCategory,
link.gaEventAction,
Expand Down
4 changes: 2 additions & 2 deletions src/App/__test__/App.test.jsx
Expand Up @@ -5,8 +5,8 @@ import App from '../App';

const testUser = require('../../testData/testUser');

// Mocking ReactGA for Google Analytics
jest.mock('react-ga');
// Mocking Google Analytics
jest.mock('ga-gtag');

describe('<App />', () => {
let component;
Expand Down