Bug 1452060 - CamelCase all React component inside client framework folder. r=jdescottes
authorMiguel Useche <migueluseche@mozilla-hispano.org>
Sun, 06 May 2018 14:16:17 -0400
changeset 417121 652be077994df3699e3a11c295c2c2b18e11ffaa
parent 417120 9a58f78f574e7a081b3ffb4484cae0dfa8b558ed
child 417122 b83a4e36ddde0bc977fda734b97744dc4ad394b5
push id33961
push userrgurzau@mozilla.com
push dateMon, 07 May 2018 22:08:28 +0000
treeherdermozilla-central@59005ba3cd3e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdescottes
bugs1452060
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1452060 - CamelCase all React component inside client framework folder. r=jdescottes
devtools/client/framework/components/ToolboxController.js
devtools/client/framework/components/ToolboxTab.js
devtools/client/framework/components/ToolboxTabs.js
devtools/client/framework/components/ToolboxToolbar.js
devtools/client/framework/components/moz.build
devtools/client/framework/components/toolbox-controller.js
devtools/client/framework/components/toolbox-tab.js
devtools/client/framework/components/toolbox-tabs.js
devtools/client/framework/components/toolbox-toolbar.js
devtools/client/framework/toolbox.js
rename from devtools/client/framework/components/toolbox-controller.js
rename to devtools/client/framework/components/ToolboxController.js
--- a/devtools/client/framework/components/toolbox-controller.js
+++ b/devtools/client/framework/components/ToolboxController.js
@@ -1,15 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/. */
 "use strict";
 
 const {Component, createFactory} = require("devtools/client/shared/vendor/react");
-const ToolboxToolbar = createFactory(require("devtools/client/framework/components/toolbox-toolbar"));
+const ToolboxToolbar = createFactory(require("devtools/client/framework/components/ToolboxToolbar"));
 const ELEMENT_PICKER_ID = "command-button-pick";
 
 /**
  * This component serves as a state controller for the toolbox React component. It's a
  * thin layer for translating events and state of the outside world into the React update
  * cycle. This solution was used to keep the amount of code changes to a minimimum while
  * adapting the existing codebase to start using React.
  */
rename from devtools/client/framework/components/toolbox-tab.js
rename to devtools/client/framework/components/ToolboxTab.js
rename from devtools/client/framework/components/toolbox-tabs.js
rename to devtools/client/framework/components/ToolboxTabs.js
--- a/devtools/client/framework/components/toolbox-tabs.js
+++ b/devtools/client/framework/components/ToolboxTabs.js
@@ -6,17 +6,17 @@
 const { Component, createFactory } = require("devtools/client/shared/vendor/react");
 const dom = require("devtools/client/shared/vendor/react-dom-factories");
 const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
 const {findDOMNode} = require("devtools/client/shared/vendor/react-dom");
 const {button, div} = dom;
 
 const Menu = require("devtools/client/framework/menu");
 const MenuItem = require("devtools/client/framework/menu-item");
-const ToolboxTab = createFactory(require("devtools/client/framework/components/toolbox-tab"));
+const ToolboxTab = createFactory(require("devtools/client/framework/components/ToolboxTab"));
 const { ToolboxTabsOrderManager } = require("devtools/client/framework/toolbox-tabs-order-manager");
 
 // 26px is chevron devtools button width.(i.e. tools-chevronmenu)
 const CHEVRON_BUTTON_WIDTH = 26;
 
 class ToolboxTabs extends Component {
   // See toolbox-toolbar propTypes for details on the props used here.
   static get propTypes() {
rename from devtools/client/framework/components/toolbox-toolbar.js
rename to devtools/client/framework/components/ToolboxToolbar.js
--- a/devtools/client/framework/components/toolbox-toolbar.js
+++ b/devtools/client/framework/components/ToolboxToolbar.js
@@ -6,17 +6,17 @@
 const { Component, createFactory } = require("devtools/client/shared/vendor/react");
 const dom = require("devtools/client/shared/vendor/react-dom-factories");
 const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
 const {div, button} = dom;
 const {openWebLink} = require("devtools/client/shared/link");
 
 const Menu = require("devtools/client/framework/menu");
 const MenuItem = require("devtools/client/framework/menu-item");
-const ToolboxTabs = createFactory(require("devtools/client/framework/components/toolbox-tabs"));
+const ToolboxTabs = createFactory(require("devtools/client/framework/components/ToolboxTabs"));
 
 /**
  * This is the overall component for the toolbox toolbar. It is designed to not know how
  * the state is being managed, and attempts to be as pure as possible. The
  * ToolboxController component controls the changing state, and passes in everything as
  * props.
  */
 class ToolboxToolbar extends Component {
--- a/devtools/client/framework/components/moz.build
+++ b/devtools/client/framework/components/moz.build
@@ -1,13 +1,13 @@
 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
 # vim: set filetype=python:
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 
 DevToolsModules(
-  'toolbox-controller.js',
-  'toolbox-tab.js',
-  'toolbox-tabs.js',
-  'toolbox-toolbar.js',
+  'ToolboxController.js',
+  'ToolboxTab.js',
+  'ToolboxTabs.js',
+  'ToolboxToolbar.js',
 )
--- a/devtools/client/framework/toolbox.js
+++ b/devtools/client/framework/toolbox.js
@@ -585,17 +585,17 @@ Toolbox.prototype = {
     return this.browserRequire("devtools/client/shared/vendor/react-dom");
   },
 
   get ReactRedux() {
     return this.browserRequire("devtools/client/shared/vendor/react-redux");
   },
 
   get ToolboxController() {
-    return this.browserRequire("devtools/client/framework/components/toolbox-controller");
+    return this.browserRequire("devtools/client/framework/components/ToolboxController");
   },
 
   /**
    * Unconditionally create and get the source map service.
    */
   _createSourceMapService: function() {
     if (this._sourceMapService) {
       return this._sourceMapService;