From 788fc4373b8d22930b3420f7906e626e2bd63394 Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Tue, 15 Sep 2015 14:20:25 -0700 Subject: removing loggly --- web/react/utils/client.jsx | 3 --- web/react/utils/config.js | 4 ---- 2 files changed, 7 deletions(-) (limited to 'web/react') diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx index 75ffdb274..ebd6640d7 100644 --- a/web/react/utils/client.jsx +++ b/web/react/utils/client.jsx @@ -14,8 +14,6 @@ export function trackPage() { } function handleError(methodName, xhr, status, err) { - var LTracker = global.window.LTracker || []; - var e = null; try { e = JSON.parse(xhr.responseText); @@ -39,7 +37,6 @@ function handleError(methodName, xhr, status, err) { console.error(msg); //eslint-disable-line no-console console.error(e); //eslint-disable-line no-console - LTracker.push(msg); track('api', 'api_weberror', methodName, 'message', msg); diff --git a/web/react/utils/config.js b/web/react/utils/config.js index c7d1aa2bc..823d71894 100644 --- a/web/react/utils/config.js +++ b/web/react/utils/config.js @@ -3,10 +3,6 @@ export var config = { - // Loggly configs - LogglyWriteKey: '', - LogglyConsoleErrors: true, - // Segment configs SegmentWriteKey: '', -- cgit v1.2.3-1-g7c22 From b2a679c25da42c4665059965830858da4f0ec238 Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Tue, 15 Sep 2015 18:59:14 -0700 Subject: PLT-93 cleaing up client side configs --- web/react/components/email_verify.jsx | 6 +- web/react/components/find_team.jsx | 7 +- web/react/components/get_link_modal.jsx | 5 +- web/react/components/invite_member_modal.jsx | 96 +++++++++------------- web/react/components/login.jsx | 7 +- web/react/components/navbar_dropdown.jsx | 5 +- web/react/components/password_reset_form.jsx | 3 +- web/react/components/post_list.jsx | 6 +- web/react/components/setting_picture.jsx | 4 +- web/react/components/sidebar_header.jsx | 3 +- web/react/components/sidebar_right_menu.jsx | 5 +- web/react/components/signup_team_complete.jsx | 10 --- web/react/components/signup_user_complete.jsx | 9 +- web/react/components/team_general_tab.jsx | 9 +- .../team_signup_allowed_domains_page.jsx | 7 +- web/react/components/team_signup_choose_auth.jsx | 7 +- .../components/team_signup_display_name_page.jsx | 5 +- web/react/components/team_signup_password_page.jsx | 5 +- .../components/team_signup_send_invites_page.jsx | 15 +--- web/react/components/team_signup_url_page.jsx | 13 +-- web/react/components/team_signup_username_page.jsx | 3 +- web/react/components/team_signup_welcome_page.jsx | 3 +- web/react/components/team_signup_with_email.jsx | 3 +- web/react/components/team_signup_with_sso.jsx | 5 +- web/react/components/user_profile.jsx | 3 +- web/react/components/user_settings_appearance.jsx | 17 ++-- .../components/user_settings_notifications.jsx | 3 +- web/react/components/view_image.jsx | 3 +- web/react/pages/channel.jsx | 24 +++--- web/react/pages/home.jsx | 6 +- web/react/pages/login.jsx | 8 +- web/react/pages/password_reset.jsx | 12 +-- web/react/pages/signup_team.jsx | 4 +- web/react/pages/signup_team_complete.jsx | 8 +- web/react/pages/signup_user_complete.jsx | 16 ++-- web/react/pages/verify.jsx | 8 +- web/react/utils/config.js | 31 +------ web/react/utils/utils.jsx | 5 +- 38 files changed, 147 insertions(+), 242 deletions(-) (limited to 'web/react') diff --git a/web/react/components/email_verify.jsx b/web/react/components/email_verify.jsx index 95948c8dd..92123956f 100644 --- a/web/react/components/email_verify.jsx +++ b/web/react/components/email_verify.jsx @@ -1,8 +1,6 @@ // Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved. // See License.txt for license information. -import {config} from '../utils/config.js'; - export default class EmailVerify extends React.Component { constructor(props) { super(props); @@ -19,10 +17,10 @@ export default class EmailVerify extends React.Component { var body = ''; var resend = ''; if (this.props.isVerified === 'true') { - title = config.SiteName + ' Email Verified'; + title = global.window.config.SiteName + ' Email Verified'; body =

Your email has been verified! Click Please verify your email address. Check your inbox for an email.

; resend = (