Skip to content

Commit 8543cd0

Browse files
committed
Revert gevent change
1 parent 6adc532 commit 8543cd0

File tree

7 files changed

+0
-27
lines changed

7 files changed

+0
-27
lines changed

index.html

-10
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@
44
<meta charset="utf-8">
55
<!-- Global site tag (gtag.js) - Google Analytics -->
66
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-166540931-1"></script>
7-
<script>
8-
if (window.location.href && window.location.href.indexOf('localhost') <= -1) {
9-
window.dataLayer = window.dataLayer || [];
10-
function gtag(){dataLayer.push(arguments);}
11-
gtag('js', new Date());
12-
13-
gtag('config', 'UA-166540931-1');
14-
}
15-
</script>
16-
177
<title>Rule Editor</title>
188
</head>
199
<body>

src/actions/app.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { UPDATE_NAV_STATE, LOG_IN } from './action-types';
2-
import { sendGevents } from '../utils/gevents';
32

43

54
export function updateState(flag) {
@@ -10,7 +9,6 @@ export function updateState(flag) {
109
}
1110

1211
export function login(action) {
13-
sendGevents({ narrative: action, name: 'Login'});
1412
return ({
1513
type: LOG_IN,
1614
});

src/components/validate/validate-rules.js

-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import * as Message from '../../constants/messages';
1010
import { validateRuleset } from '../../validations/rule-validation';
1111
import Loader from '../loader/loader';
1212
import { ViewOutcomes } from '../attributes/view-attributes';
13-
import { sendGevents } from '../../utils/gevents';
1413

1514
class ValidateRules extends Component {
1615

@@ -66,7 +65,6 @@ class ValidateRules extends Component {
6665
}).catch((e) => {
6766
this.setState({loading: false, error: true, errorMessage: e.error, result: true, });
6867
});
69-
sendGevents({ narrative: 'validate rules', name: 'Validate' });
7068
}
7169

7270
attributeItems = () => {

src/containers/app/app-container.js

-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { updateRulesetIndex } from '../../actions/ruleset';
88
import { updateState } from '../../actions/app';
99
import { createHashHistory } from 'history';
1010
import ApperanceContext from '../../context/apperance-context';
11-
import { sendGevents } from '../../utils/gevents';
1211

1312
class ApplicationContainer extends Component {
1413

@@ -22,7 +21,6 @@ class ApplicationContainer extends Component {
2221
const theme = { ...this.state.theme, background: value };
2322
document.body.className = value;
2423
this.setState({ theme });
25-
sendGevents({ narrative: 'value', name: 'Theme' });
2624
}
2725
this.state = {theme: { background: 'light', toggleBackground: this.toggleBackground }};
2826
}

src/containers/home/home-container.js

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import Notification from '../../components/notification/notification';
1313
import { RULE_AVAILABLE_UPLOAD, RULE_UPLOAD_ERROR } from '../../constants/messages';
1414
import ApperanceContext from '../../context/apperance-context';
1515
import { faCloudArrowUp } from '@fortawesome/free-solid-svg-icons'
16-
import { sendGevents } from '../../utils/gevents';
1716

1817

1918
function readFile(file, cb) {

src/containers/ruleset/ruleset-container.js

-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import * as Message from '../../constants/messages';
1515
import { groupBy } from 'lodash/collection';
1616
import RuleErrorBoundary from '../../components/error/ruleset-error';
1717
import SweetAlert from 'react-bootstrap-sweetalert';
18-
import { sendGevents } from '../../utils/gevents';
1918

2019
const tabs = [{name: 'Facts'}, {name: 'Decisions'}, {name: 'Validate'}, {name: 'Generate'}];
2120
class RulesetContainer extends Component {
@@ -41,7 +40,6 @@ class RulesetContainer extends Component {
4140
link.href = url;
4241
link.click();
4342
this.setState({ generateFlag: true });
44-
sendGevents({ narrative: 'generate', name: 'Ruleset' });
4543
}
4644

4745
cancelAlert() {

src/utils/gevents.js

-8
This file was deleted.

0 commit comments

Comments
 (0)