tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

index.js (1246B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
      4 
      5 import { connect } from "devtools/client/shared/vendor/react-redux";
      6 
      7 // The React component is in a distinct module in order to prevent loading all Debugger actions and selectors
      8 // when SmartTrace imports the Frames Component.
      9 import { Frames } from "./Frames";
     10 
     11 import actions from "../../../actions/index";
     12 
     13 import {
     14  getFrameworkGroupingState,
     15  getSelectedFrame,
     16  getCurrentThreadFrames,
     17  getShouldSelectOriginalLocation,
     18  getSelectedTraceIndex,
     19 } from "../../../selectors/index";
     20 
     21 const mapStateToProps = state => ({
     22  frames: getCurrentThreadFrames(state),
     23  frameworkGroupingOn: getFrameworkGroupingState(state),
     24  selectedFrame: getSelectedFrame(state),
     25  isTracerFrameSelected: getSelectedTraceIndex(state) != null,
     26  shouldDisplayOriginalLocation: getShouldSelectOriginalLocation(state),
     27  disableFrameTruncate: false,
     28  disableContextMenu: false,
     29  displayFullUrl: false,
     30 });
     31 
     32 export default connect(mapStateToProps, {
     33  selectFrame: actions.selectFrame,
     34  showFrameContextMenu: actions.showFrameContextMenu,
     35 })(Frames);