Просмотр исходного кода

only initialize highlight on prod + purged console logs

jusrhee 5 лет назад
Родитель
Сommit
5d92c9025e

+ 0 - 1
dashboard/src/components/repo-selector/ContentsList.tsx

@@ -295,7 +295,6 @@ export default class ContentsList extends Component<PropsType, StateType> {
                 this.state.processes &&
                 Object.keys(this.state.processes).length > 0
               ) {
-                console.log("setting procfile");
                 this.props.setProcfilePath("./Procfile");
               }
             }}

+ 2 - 2
dashboard/src/components/values-form/RangeSlider.tsx

@@ -12,10 +12,10 @@ export default class RangeSelector extends Component<PropsType, StateType> {
   render() {
     return (
       <StyledInputRow>
-        <Label>asdfasdf</Label>
+        <Label>XYZ</Label>
         <Slider
           value={12}
-          onChange={() => console.log("huh")}
+          onChange={() => console.log("xyz")}
           valueLabelDisplay="auto"
           aria-labelledby="range-slider"
         />

+ 0 - 2
dashboard/src/components/values-form/ValuesForm.tsx

@@ -145,7 +145,6 @@ export default class ValuesForm extends Component<PropsType, StateType> {
               type="text"
               value={this.getInputValue(item)}
               setValue={(x: string) => {
-                console.log("dafuq");
                 if (
                   item.settings &&
                   item.settings.unit &&
@@ -199,7 +198,6 @@ export default class ValuesForm extends Component<PropsType, StateType> {
                 }
 
                 // Convert to string if unit is set
-                console.log("huh", item);
                 if (
                   item.settings &&
                   item.settings.unit &&

+ 4 - 2
dashboard/src/main/home/Home.tsx

@@ -221,8 +221,10 @@ class Home extends Component<PropsType, StateType> {
     let { user } = this.context;
 
     // Initialize Highlight
-    H.init("y2d13lgr");
-    H.identify(user.email, { id: user.id });
+    if (window.location.href.includes("dashboard.getporter.dev")) {
+      H.init("y2d13lgr");
+      H.identify(user.email, { id: user.id });
+    }
 
     // Handle redirect from DO
     let queryString = window.location.search;

+ 0 - 2
dashboard/src/main/home/launch/expanded-template/LaunchTemplate.tsx

@@ -270,8 +270,6 @@ class LaunchTemplate extends Component<PropsType, StateType> {
       }
     }
 
-    console.log("VALUES ARE", values);
-
     api
       .deployTemplate(
         "<token>",