Skip to content

Commit 543affc

Browse files
committed
cleaned up config commit
1 parent 9a09202 commit 543affc

File tree

8 files changed

+8
-19
lines changed

8 files changed

+8
-19
lines changed

demo-app/src/client/Components/Buttons.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from 'react';
22
import Increment from './Increment';
33

4-
function Buttons():JSX.Element {
4+
function Buttons(): JSX.Element {
55
const buttons = [];
6-
for (let i = 0; i < 1; i++) {
6+
for (let i = 0; i < 4; i++) {
77
buttons.push(<Increment key={i} />);
88
}
99

@@ -20,4 +20,3 @@ function Buttons():JSX.Element {
2020
}
2121

2222
export default Buttons;
23-

src/app/components/SwitchApp.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ const SwitchAppDropdown = () => {
2424
return { ...provided, outline, margin };
2525
},
2626
};
27-
console.log('currTab', currTab);
28-
console.log('customStyles', customStyles);
29-
console.log('tabsArray', tabsArray);
3027

3128
return (
3229
<Select

src/app/components/Tutorial.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { tutorialSaveSeriesToggle, setCurrentTabInApp } from '../actions/actions
1111

1212
//Must be required in. This enables compatibility with TS. If imported in, throws ts error of not rendering steps as a class component correctly.
1313
const { Steps } = require('intro.js-react');
14-
// import { Steps } from 'intro.js-react';
1514

1615
interface tutorialProps {
1716
dispatch: (object) => void;

src/app/containers/ButtonsContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function ButtonsContainer(): JSX.Element {
5858
snapshots,
5959
mode: { paused },
6060
} = tabs[currentTab];
61-
// console.log()
61+
6262
return (
6363
<div className='buttons-container'>
6464
<button className='pause-button' type='button' onClick={() => dispatch(toggleMode('paused'))}>

src/app/containers/StateContainer.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { StateContainerProps } from '../components/FrontendTypes';
1111
// eslint-disable-next-line react/prop-types
1212
const StateContainer = (props: StateContainerProps): JSX.Element => {
1313
const { snapshot, hierarchy, snapshots, viewIndex, webMetrics, currLocation, snapshots } = props;
14-
// console.log('snapshot', snapshot);
1514

1615
return (
1716
<Router>

src/backend/controllers/createTree.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ export default function createTree(currentFiberNode: Fiber): Tree {
6060
treeBaseDuration,
6161
// _debugHookTypes, //COMMENT OUT SINCE EXTRACTING CONTEXT IS STILL IN EXPERIMENT
6262
} = currentFiberNode;
63-
// console.log('current fiber node from createTree', currentFiberNode);
6463

6564
// Obtain component name:
6665
/** Name of the current component */
@@ -156,8 +155,6 @@ export default function createTree(currentFiberNode: Fiber): Tree {
156155
// // Different from other provider, such as Routes, BrowswerRouter, ReactRedux, ..., Context.Provider does not have a displayName
157156
// // TODO: need to render this context provider when user use useContext hook.
158157
//
159-
// we want to grab the state that's being changed in this specific use context
160-
// "this is using usecontext, here is the context(state)"
161158
//
162159
// if (tag === ContextProvider && !elementType._context.displayName) {
163160
// let stateData = memoizedProps.value;
@@ -198,8 +195,7 @@ export default function createTree(currentFiberNode: Fiber): Tree {
198195
const hooksStates = getHooksStateAndUpdateMethod(memoizedState);
199196
// Obtain variable names by parsing the function definition stored in elementType.
200197
const hooksNames = getHooksNames(elementType.toString());
201-
// console.log(hooksStates);
202-
// console.log(hooksNames);
198+
203199
// Intialize state & index:
204200
componentData.hooksState = {};
205201
componentData.hooksIndex = [];
@@ -264,7 +260,7 @@ export default function createTree(currentFiberNode: Fiber): Tree {
264260
}
265261

266262
// ------------RETURN THE TREE OUTPUT & PASS TO FRONTEND FOR RENDERING------
267-
// console.log('this is a test for jackie pls');
263+
268264
return tree;
269265
}
270266
}

src/backend/routers/linkFiber.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ export default function linkFiber(mode: Status): () => Promise<void> {
110110
// ---------OBTAIN THE INITIAL FIBEROOTNODE FROM REACT DEV TOOL-------------
111111
// Obtain the FiberRootNode, which is the first value in the FiberRoot Set:
112112
fiberRoot = devTools.getFiberRoots(1).values().next().value;
113-
// console.log('initial fiberRoot from linkFiber', fiberRoot);
114113

115114
// ----------INITIALIZE THE TREE SNAP SHOT ON CHROME EXTENSION--------------
116115
await throttledUpdateSnapshot(fiberRoot, mode); // only runs on start up
@@ -128,7 +127,7 @@ export default function linkFiber(mode: Status): () => Promise<void> {
128127
return function (...args: Parameters<typeof onCommitFiberRoot>) {
129128
// Obtain the updated FiberRootNode, after the target React application re-renders
130129
const fiberRoot = args[1];
131-
// console.log('updated fiberRoot current from linkFiber', fiberRoot.current);
130+
132131
// If the target React application is visible, send a request to update the snapShot tree displayed on Chrome Extension
133132
if (isVisible) throttledUpdateSnapshot(fiberRoot, mode);
134133
// After our added work is completed we invoke the original onComitFiberRoot function

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"types": ["chrome", "jest", "node"],
2020

2121
// ---------------------------------TYPE CHECKING---------------------------
22-
// "strict": true, /* Enable all strict type-checking options. */
23-
// "noImplicitAny": true /* Enable error reporting for expressions and declarations with an implied 'any' type. */,
22+
// "strict": true, /* Enable all strict type-checking options. */
23+
// "noImplicitAny": true /* Enable error reporting for expressions and declarations with an implied 'any' type. */,
2424
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
2525
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
2626
// "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */

0 commit comments

Comments
 (0)