diff --git a/.eslintrc b/.eslintrc
index 5751f3ad..a69e01de 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -33,7 +33,6 @@
"react/wrap-multilines": 1
},
"globals": {
- "Intercom": true,
"fetch": true,
"require": true,
"File": true
diff --git a/index.html b/index.html
index 284b7dd4..b7230822 100644
--- a/index.html
+++ b/index.html
@@ -23,29 +23,10 @@
<% DEBUG && print('window.CREDENTIALS = \'' + CREDENTIALS + '\''); %>
-
-
+
-
-
-
-
-
-
diff --git a/js/actions/facebook_actions.js b/js/actions/facebook_actions.js
deleted file mode 100644
index 2e784fba..00000000
--- a/js/actions/facebook_actions.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-
-import { altThirdParty } from '../alt';
-
-
-class FacebookActions {
- constructor() {
- this.generateActions(
- 'sdkReady'
- );
- }
-}
-
-export default altThirdParty.createActions(FacebookActions);
diff --git a/js/app.js b/js/app.js
index ebcaca82..f6c877cf 100644
--- a/js/app.js
+++ b/js/app.js
@@ -24,12 +24,7 @@ import EventActions from './actions/event_actions';
// You can comment out the modules you don't need
// import DebugHandler from './third_party/debug_handler';
-import FacebookHandler from './third_party/facebook_handler';
-import GoogleAnalyticsHandler from './third_party/ga_handler';
-import IntercomHandler from './third_party/intercom_handler';
import NotificationsHandler from './third_party/notifications_handler';
-import RavenHandler from './third_party/raven_handler';
-
const AppGateway = {
start() {
diff --git a/js/components/ascribe_detail/edition.js b/js/components/ascribe_detail/edition.js
index 178fd18a..4ce6e3ba 100644
--- a/js/components/ascribe_detail/edition.js
+++ b/js/components/ascribe_detail/edition.js
@@ -230,13 +230,6 @@ let CoaDetails = React.createClass({
coaError: React.PropTypes.object
},
- contactOnIntercom() {
- const { coaError, editionId } = this.props;
-
- window.Intercom('showNewMessage', getLangText("Hi, I'm having problems generating a Certificate of Authenticity for Edition: %s", editionId));
- console.logGlobal(new Error(`Coa couldn't be created for edition: ${editionId}`), coaError);
- },
-
render() {
const { coa, coaError } = this.props;
let coaDetailElement;
@@ -246,7 +239,7 @@ let CoaDetails = React.createClass({
{getLangText('There was an error generating your Certificate of Authenticity.')}
,
{getLangText('Try to refresh the page. If this happens repeatedly, please ')}
- {getLangText('contact us')}.
+ {getLangText('contact us')}.
];
} else if (coa && coa.url_safe) {
diff --git a/js/components/ascribe_detail/media_container.js b/js/components/ascribe_detail/media_container.js
index de6d8976..bc8efcd5 100644
--- a/js/components/ascribe_detail/media_container.js
+++ b/js/components/ascribe_detail/media_container.js
@@ -7,9 +7,6 @@ import ProgressBar from 'react-bootstrap/lib/ProgressBar';
import MediaPlayer from './../ascribe_media/media_player';
-import FacebookShareButton from '../ascribe_social_share/facebook_share_button';
-import TwitterShareButton from '../ascribe_social_share/twitter_share_button';
-
import S3DownloadButton from '../ascribe_buttons/s3_download_button';
import CollapsibleButton from './../ascribe_collapsible/collapsible_button';
@@ -159,11 +156,6 @@ let MediaContainer = React.createClass({
extraData={extraData}
encodingMessage={this.getEncodingMessage()} />
-
-
-
-
{
- if (this.state.loaded) {
- FB.XFBML.parse(this.refs.fbShareButton.getDOMNode().parent)
- }
- });
- },
-
- render() {
- return (
-
-
- );
- }
-});
-
-export default FacebookShareButton;
diff --git a/js/components/ascribe_social_share/twitter_share_button.js b/js/components/ascribe_social_share/twitter_share_button.js
deleted file mode 100644
index b2e8a7dc..00000000
--- a/js/components/ascribe_social_share/twitter_share_button.js
+++ /dev/null
@@ -1,55 +0,0 @@
-'use strict';
-
-import React from 'react';
-
-import AppConstants from '../../constants/application_constants';
-
-import { InjectInHeadUtils } from '../../utils/inject_utils';
-
-let TwitterShareButton = React.createClass({
- propTypes: {
- count: React.PropTypes.string,
- counturl: React.PropTypes.string,
- hashtags: React.PropTypes.string,
- size: React.PropTypes.string,
- text: React.PropTypes.string,
- url: React.PropTypes.string,
- via: React.PropTypes.string
- },
-
- getDefaultProps() {
- return {
- count: 'none',
- via: 'ascribeIO'
- };
- },
-
- componentDidMount() {
- InjectInHeadUtils.inject(AppConstants.twitter.sdkUrl).then(this.loadTwitterButton);
- },
-
- loadTwitterButton() {
- const { count, counturl, hashtags, size, text, url, via } = this.props;
-
- twttr.widgets.createShareButton(url, this.refs.twitterShareButton.getDOMNode(), {
- count,
- counturl,
- hashtags,
- size,
- text,
- via,
- dnt: true // Do not track
- });
- },
-
- render() {
- return (
-
-
- );
- }
-});
-
-export default TwitterShareButton;
diff --git a/js/components/ascribe_uploader/ascribe_file_drag_and_drop/file_drag_and_drop_error_dialog.js b/js/components/ascribe_uploader/ascribe_file_drag_and_drop/file_drag_and_drop_error_dialog.js
index a88d2e35..dd028ed2 100644
--- a/js/components/ascribe_uploader/ascribe_file_drag_and_drop/file_drag_and_drop_error_dialog.js
+++ b/js/components/ascribe_uploader/ascribe_file_drag_and_drop/file_drag_and_drop_error_dialog.js
@@ -17,18 +17,12 @@ let FileDragAndDropErrorDialog = React.createClass({
handleRetryFiles: React.PropTypes.func.isRequired
},
- getRetryButton(text, openIntercom) {
+ getRetryButton(text) {
return (
);
diff --git a/js/components/whitelabel/wallet/components/market/market_error_consign_unavailable.js b/js/components/whitelabel/wallet/components/market/market_error_consign_unavailable.js
index 13fbc43e..f43b0b71 100644
--- a/js/components/whitelabel/wallet/components/market/market_error_consign_unavailable.js
+++ b/js/components/whitelabel/wallet/components/market/market_error_consign_unavailable.js
@@ -13,10 +13,6 @@ const MarketErrorConsignUnavailable = React.createClass({
handleSuccess: React.PropTypes.func
},
- contactOnIntercom() {
- window.Intercom('showNewMessage', getLangText("Hi, I'm having problems consigning to %s", this.props.whitelabelName));
- },
-
render() {
const { editions, handleSuccess, whitelabelName } = this.props;
const multipleEditions = editions.length > 1;
@@ -39,7 +35,7 @@ const MarketErrorConsignUnavailable = React.createClass({
{getLangText('If this seems incorrect, or if you would still like to consign %s to %s, please ',
multipleEditions ? 'these Editions' : 'this Edition',
whitelabelName)}
- {getLangText('contact us')}.
+ {getLangText('contact us')}.