Skip to content

Commit 75d8608

Browse files
committed
Fixing additional comments moved by jscodeshift
1 parent 42af184 commit 75d8608

23 files changed

+44
-98
lines changed

apps/src/code-studio/pd/workshop_dashboard/components/date_picker.jsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
import React from 'react';
2-
import ReactDOM from 'react-dom';
3-
41
/**
52
* DatePicker control.
63
* It's basically a wrapper around react-datepicker (with limited props) that displays
74
* as a React-Bootstrap select with a calendar icon Addon.
85
*/
9-
6+
import React from 'react';
7+
import ReactDOM from 'react-dom';
108
import PropTypes from 'prop-types';
11-
129
import Radium from 'radium';
1310
import ReactDatePicker from 'react-datepicker';
1411
import {DATE_FORMAT} from '../workshopConstants';

apps/src/code-studio/pd/workshop_dashboard/components/survey_results_header.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
/** Workshop Survey page. Displays survey results. ...*/
2+
13
import $ from 'jquery';
24
import _ from 'lodash';
3-
4-
/** Workshop Survey page. Displays survey results. ...*/
55
import PropTypes from 'prop-types';
66
import React from 'react';
77
import {

apps/src/code-studio/pd/workshop_dashboard/components/workshop_table_loader.jsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
import $ from 'jquery';
2-
import _ from 'lodash';
3-
41
/**
52
* Loader for table displaying workshop summaries based on a supplied query.
63
* It requires exactly one child component that expects workshops in its props.
74
* It runs the query specified in queryUrl and passes resulting workshop data to the child
85
* component or displays "None" if no workshops are returned.
96
* It optionally handles deleting workshops.
107
*/
11-
8+
import $ from 'jquery';
9+
import _ from 'lodash';
1210
import PropTypes from 'prop-types';
1311
import React from 'react';
1412
import ReactDOM from 'react-dom';

apps/src/code-studio/pd/workshop_dashboard/workshop.jsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
import $ from 'jquery';
2-
import _ from 'lodash';
3-
41
/**
52
* Workshop view / edit. Displays and optionally edits details for a workshop.
63
* Routes:
74
* /workshops/:workshopId
85
* /Workshops/:workshopId/edit
96
*/
10-
7+
import $ from 'jquery';
8+
import _ from 'lodash';
119
import PropTypes from 'prop-types';
1210
import React from 'react';
1311
import {connect} from 'react-redux';

apps/src/gamelab/AnimationTab/ItemLoopToggle.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1+
/** @file controls below an animation looping toggle */
12
import React from 'react';
23
import {OverlayTrigger, Tooltip} from "react-bootstrap";
3-
4-
/** @file controls below an animation looping toggle */
54
import PropTypes from 'prop-types';
6-
75
import Radium from 'radium';
86

97
const styles = {

apps/src/gamelab/AnimationTab/ListItemButtons.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1+
/** @file controls below an animation thumbnail */
12
import React from 'react';
23
import {OverlayTrigger, Tooltip} from "react-bootstrap";
34
import color from "../../util/color";
4-
5-
/** @file controls below an animation thumbnail */
65
import PropTypes from 'prop-types';
7-
86
import Radium from 'radium';
97
import SpeedSlider from '../../templates/SpeedSlider';
108
import ItemLoopToggle from './ItemLoopToggle';

apps/src/gamelab/AnimationTab/NewListItem.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1+
/** List item placeholder for adding a new item */
12
import React from 'react';
23
import color from '../../util/color';
3-
4-
/** List item placeholder for adding a new item */
54
import PropTypes from 'prop-types';
6-
75
import Radium from 'radium';
86

97
const styles = {

apps/src/gamelab/GameLabView.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import classNames from 'classnames';
2-
import {connect} from 'react-redux';
3-
41
/** @file Top-level view for GameLab */
52
/* global dashboard */
3+
import classNames from 'classnames';
4+
import {connect} from 'react-redux';
65
import PropTypes from 'prop-types';
76
import React from 'react';
87
import AnimationTab from './AnimationTab/AnimationTab';

apps/src/storage/dataBrowser/AddKeyRow.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1+
/** @overview Component for adding a key/value pair row. */
12
import FirebaseStorage from '../firebaseStorage';
23
import PendingButton from '../../templates/PendingButton';
3-
4-
/** @overview Component for adding a key/value pair row. */
5-
64
import PropTypes from 'prop-types';
7-
85
import Radium from 'radium';
96
import React from 'react';
107
import { castValue } from './dataUtils';

apps/src/storage/dataBrowser/ColumnHeader.jsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
import ColumnMenu from './ColumnMenu';
2-
import Dialog from '../../templates/Dialog';
3-
import FontAwesome from '../../templates/FontAwesome';
4-
51
/**
62
* @overview Component for adding a new column to the specified table.
73
*/
8-
4+
import ColumnMenu from './ColumnMenu';
5+
import Dialog from '../../templates/Dialog';
6+
import FontAwesome from '../../templates/FontAwesome';
97
import PropTypes from 'prop-types';
10-
118
import Radium from 'radium';
129
import React from 'react';
1310
import color from "../../util/color";

apps/src/storage/dataBrowser/ColumnMenu.jsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
import { ColumnType } from './dataUtils';
2-
import FontAwesome from '../../templates/FontAwesome';
3-
41
/**
52
* @overview Component for the dropdown menu and icon in the column header.
63
*/
7-
4+
import { ColumnType } from './dataUtils';
5+
import FontAwesome from '../../templates/FontAwesome';
86
import PropTypes from 'prop-types';
97
import React from 'react';
108

apps/src/storage/dataBrowser/DataOverview.jsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
import AddTableListRow from './AddTableListRow';
2-
import { DataView } from '../constants';
3-
import EditLink from './EditLink';
4-
import EditTableListRow from './EditTableListRow';
5-
import FirebaseStorage from '../firebaseStorage';
6-
71
/**
82
* @overview Component containing a link to edit key/value pairs, a list of
93
* existing data tables with controls to edit/delete, and a control to add
104
* a new data table.
115
*/
12-
6+
import AddTableListRow from './AddTableListRow';
7+
import { DataView } from '../constants';
8+
import EditLink from './EditLink';
9+
import EditTableListRow from './EditTableListRow';
10+
import FirebaseStorage from '../firebaseStorage';
1311
import PropTypes from 'prop-types';
14-
1512
import Radium from 'radium';
1613
import React from 'react';
1714
import msg from '@cdo/locale';

apps/src/storage/dataBrowser/DataProperties.jsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1+
/**
2+
* @overview Component for editing key/value pairs.
3+
*/
14
import _ from 'lodash';
25
import AddKeyRow from './AddKeyRow';
36
import { DataView } from '../constants';
47
import EditKeyRow from './EditKeyRow';
58
import FontAwesome from '../../templates/FontAwesome';
6-
7-
/**
8-
* @overview Component for editing key/value pairs.
9-
*/
10-
119
import PropTypes from 'prop-types';
12-
1310
import Radium from 'radium';
1411
import React from 'react';
1512
import { changeView, showWarning } from '../redux/data';

apps/src/storage/dataBrowser/DataTable.jsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1+
/**
2+
* @overview Component for editing a data table.
3+
*/
14
import TableControls from './TableControls';
25
import AddTableRow from './AddTableRow';
36
import { DataView } from '../constants';
47
import EditTableRow from './EditTableRow';
58
import ColumnHeader from './ColumnHeader';
69
import FirebaseStorage from '../firebaseStorage';
710
import FontAwesome from '../../templates/FontAwesome';
8-
9-
/**
10-
* @overview Component for editing a data table.
11-
*/
12-
1311
import PropTypes from 'prop-types';
14-
1512
import Radium from 'radium';
1613
import React from 'react';
1714
import { changeView, showWarning } from '../redux/data';

apps/src/storage/dataBrowser/TableControls.jsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1-
import ConfirmDeleteButton from './ConfirmDeleteButton';
2-
import ConfirmImportButton from './ConfirmImportButton';
3-
41
/**
52
* @overview Component containing UI controls for modifying the table, including
63
* import, export, adding a new column, and deleting the entire table.
74
*/
8-
5+
import ConfirmDeleteButton from './ConfirmDeleteButton';
6+
import ConfirmImportButton from './ConfirmImportButton';
97
import PropTypes from 'prop-types';
10-
118
import Radium from 'radium';
129
import React from 'react';
1310
import applabMsg from '@cdo/applab/locale';
14-
1511
import * as dataStyles from './dataStyles';
1612

1713
const styles = {

apps/src/templates/Button.jsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
import _ from 'lodash';
2-
import React from 'react';
3-
41
/**
52
* New style button.
63
* This particular button is designed to operate in contexts where we have a solid
74
* background. When we're a button on top of an image, we may want something different.
85
*/
9-
6+
import _ from 'lodash';
7+
import React from 'react';
108
import PropTypes from 'prop-types';
11-
129
import Radium from 'radium';
1310
import color from "@cdo/apps/util/color";
1411
import FontAwesome from '@cdo/apps/templates/FontAwesome';

apps/src/templates/Certificate.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1+
/* global dashboard */
12
import React, { Component } from 'react';
23
import { connect } from 'react-redux';
34
import $ from 'jquery';
45
import i18n from '@cdo/locale';
56
import color from '../util/color';
6-
7-
/* global dashboard */
8-
97
import PropTypes from 'prop-types';
10-
118
import queryString from 'query-string';
129
import SocialShare from './SocialShare';
1310
import LargeChevronLink from './LargeChevronLink';

apps/src/templates/CodeWorkspaceContainer.jsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
import $ from 'jquery';
2-
import React from 'react';
3-
import ReactDOM from 'react-dom';
4-
51
/**
62
* A non-protected div that wraps our ProtectedStatefulDiv codeWorkspace, allowing
73
* us to position it vertically. Causes resize events to fire when receiving new props
84
*/
9-
5+
import $ from 'jquery';
6+
import React from 'react';
7+
import ReactDOM from 'react-dom';
108
import PropTypes from 'prop-types';
11-
129
import Radium from 'radium';
1310
import { connect } from 'react-redux';
1411
import * as utils from '../utils';

apps/src/templates/ResizablePanes.jsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
import React, { Component } from 'react';
2-
import ReactDOM from 'react-dom';
3-
import _ from 'lodash';
4-
51
/** @file Divide a region into a set of panels and allow resizing them.
62
*
73
* Similar to react-split-pane (MIT license) but supports more than two panes
84
* and works with React 0.14.7.
95
* @see https://github.com/tomkp/react-split-pane
106
*/
7+
import React, { Component } from 'react';
8+
import ReactDOM from 'react-dom';
9+
import _ from 'lodash';
1110
import PropTypes from 'prop-types';
12-
1311
import Radium from 'radium';
1412

1513
const styles = {

apps/src/templates/census2017/CensusMap.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
import $ from 'jquery';
2-
31
/* global google */
42
import PropTypes from 'prop-types';
5-
3+
import $ from 'jquery';
64
import React, { Component } from 'react';
75
import ReactDOM from 'react-dom';
86

apps/src/templates/instructions/InlineFeedback.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1+
/* eslint-disable react/no-danger */
12
import React, { Component } from 'react';
23
import ReactDOM from 'react-dom';
3-
4-
/* eslint-disable react/no-danger */
54
import PropTypes from 'prop-types';
6-
75
import Radium from 'radium';
86
import ChatBubble from './ChatBubble';
97
import { convertXmlToBlockly } from './utils';

apps/src/templates/instructions/TopInstructions.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
21
import PropTypes from 'prop-types';
32
import React from 'react';
43
import { connect } from 'react-redux';
5-
64
import TopInstructionsCSF from './TopInstructionsCSF';
75
import TopInstructionsCSP from './TopInstructionsCSP';
86

apps/src/templates/studioHomepages/UiTips.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
import $ from 'jquery';
2-
31
// UiTips: A small manager for showing UI tips, particularly for new or changed UI.
42
// Note that "triggered" tips (e.g. show a tip when the user clicks a certain
53
// DOM element) work on elements outside of the React DOM. The current
64
// implementation is limited in that it expects a single instance of UiTips
75
// per page, and it expects that instance to live for the duration of the page.
86
// It doesn't do proper cleanup of the click handler for the non-React component
97
// if UiTips goes away.
10-
8+
import $ from 'jquery';
119
import PropTypes from 'prop-types';
1210
import React from 'react';
1311
import UiTip from './UiTip';

0 commit comments

Comments
 (0)