Skip to content

Commit

Permalink
Remove 'use strict' from *.js files since ES6 modules are always in s…
Browse files Browse the repository at this point in the history
…trict mode
  • Loading branch information
tlrobinson committed Oct 5, 2015
1 parent 18902ae commit 2a0eb03
Show file tree
Hide file tree
Showing 203 changed files with 7 additions and 405 deletions.
3 changes: 0 additions & 3 deletions frontend/app/activity/activity.services.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
'use strict';


var ActivityServices = angular.module('metabase.activity.services', ['ngResource', 'ngCookies']);

ActivityServices.factory('Activity', ['$resource', '$cookies', function($resource, $cookies) {
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/admin/databases/databases.controllers.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import _ from "underscore";

var DatabasesControllers = angular.module('metabaseadmin.databases.controllers', ['metabase.metabase.services']);
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/admin/databases/databases.module.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

var AdminDatabases = angular.module('metabaseadmin.databases', [
'metabaseadmin.databases.controllers'
]);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

import MetadataHeader from './MetadataHeader.react';
import MetadataTableList from './MetadataTableList.react';
import MetadataTable from './MetadataTable.react';
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/admin/metadata/components/MetadataField.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import Input from "metabase/components/Input.react";
import Select from "metabase/components/Select.react";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

import SaveStatus from "metabase/components/SaveStatus.react";
import Toggle from "metabase/components/Toggle.react";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

export default React.createClass({
displayName: "MetadataSchema",
propTypes: {
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/admin/metadata/components/MetadataTable.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

import Input from "metabase/components/Input.react";
import MetadataField from "./MetadataField.react";
import ProgressBar from "metabase/components/ProgressBar.react";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

import _ from "underscore";

import ProgressBar from "metabase/components/ProgressBar.react";
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/admin/metadata/metadata.controllers.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

import _ from "underscore";

import MetadataEditor from './components/MetadataEditor.react';
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/admin/metadata/metadata.module.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

angular
.module('metabase.admin.metadata', [
'metabase.admin.metadata.controllers'
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/admin/people/actions.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import { createAction } from "redux-actions";
import moment from "moment";
import { normalize, Schema, arrayOf } from "normalizr";
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/admin/people/components/AdminPeople.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import React, { Component, PropTypes } from "react";
import _ from "underscore";

Expand Down
2 changes: 0 additions & 2 deletions frontend/app/admin/people/components/EditUserForm.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import React, { Component, PropTypes } from "react";
import _ from "underscore";
import cx from "classnames";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import React, { Component, PropTypes } from "react";

import Icon from "metabase/components/Icon.react";
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/admin/people/components/UserRoleSelect.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import React, { Component, PropTypes } from "react";
import cx from "classnames";

Expand Down
2 changes: 0 additions & 2 deletions frontend/app/admin/people/containers/AdminPeopleApp.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import React, { Component, PropTypes } from "react";
import { connect } from "react-redux";

Expand Down
2 changes: 0 additions & 2 deletions frontend/app/admin/people/people.controllers.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

import { createStore, applyMiddleware, combineReducers, compose } from 'redux';
import promiseMiddleware from 'redux-promise';
import thunkMidleware from "redux-thunk";
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/admin/people/people.module.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

var AdminPeople = angular.module('metabaseadmin.people', [
'metabaseadmin.people.controllers'
]);
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/admin/people/reducers.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import _ from "underscore";

import { handleActions } from 'redux-actions';
Expand Down
4 changes: 1 addition & 3 deletions frontend/app/admin/people/selectors.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
"use strict";

import { createSelector } from 'reselect';

// our master selector which combines all of our partial selectors above
export const adminPeopleSelectors = createSelector(
[state => state.modal, state => state.users],
(modal, users) => ({modal, users})
);
);
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

import _ from "underscore";

import SettingsHeader from "./SettingsHeader.react";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import SaveStatus from "metabase/components/SaveStatus.react";

export default React.createClass({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import _ from "underscore";

import Input from "metabase/components/Input.react";
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/admin/settings/settings.controllers.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

import _ from "underscore";

import SettingsEditor from './components/SettingsEditor.react';
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/admin/settings/settings.module.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

var SettingsAdmin = angular.module('metabaseadmin.settings', [
'metabaseadmin.settings.controllers',
'metabase.services'
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

// Declare app level module which depends on filters, and services
var Metabase = angular.module('metabase', [
'ngRoute',
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/auth/auth.controllers.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

import MetabaseSettings from "metabase/lib/settings";

var AuthControllers = angular.module('metabase.auth.controllers', [
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/auth/auth.module.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

var Auth = angular.module('metabase.auth', ['metabase.auth.controllers']);

Auth.config(['$routeProvider', function($routeProvider) {
Expand Down
4 changes: 1 addition & 3 deletions frontend/app/auth/auth.services.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

var AuthServices = angular.module('metabase.auth.services', []);

AuthServices.service('AuthUtil', ['$rootScope', '$location', 'ipCookie', function($rootScope, $location, ipCookie) {
Expand All @@ -17,4 +15,4 @@ AuthServices.service('AuthUtil', ['$rootScope', '$location', 'ipCookie', functio
$rootScope.$broadcast('appstate:login', sessionId);
};

}]);
}]);
1 change: 0 additions & 1 deletion frontend/app/card/card.charting.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict';
/*global google*/

import _ from "underscore";
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/card/card.controllers.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

import _ from "underscore";

import MetabaseAnalytics from '../lib/analytics';
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/card/card.directives.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/*global setTimeout */

var CardDirectives = angular.module('metabase.card.directives', []);
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/card/card.module.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

// Card
var Card = angular.module('metabase.card', [
'ngRoute',
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/card/card.services.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

import _ from "underscore";

// Card Services
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/card/card.util.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import Query from "metabase/lib/query";

export function serializeCardForUrl(card) {
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/components/ActionButton.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

import Icon from "metabase/components/Icon.react";

import cx from "classnames";
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/components/AddToDashSelectDashModal.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

import CreateDashboardModal from 'metabase/components/CreateDashboardModal.react';
import ModalContent from "metabase/components/ModalContent.react";
import SortableItemList from 'metabase/components/SortableItemList.react';
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/components/CheckBox.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

import React, { Component, PropTypes } from 'react';
import Icon from 'metabase/components/Icon.react';

Expand Down
2 changes: 0 additions & 2 deletions frontend/app/components/ColumnarSelector.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import Icon from "metabase/components/Icon.react";

import cx from "classnames";
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/components/CreateDashboardModal.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

import FormField from "metabase/components/FormField.react";
import ModalContent from "metabase/components/ModalContent.react";

Expand Down
2 changes: 0 additions & 2 deletions frontend/app/components/DashboardsDropdown.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import React, { Component, PropTypes } from 'react';
import _ from "underscore";
import cx from "classnames";
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/components/DeleteQuestionModal.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

import ModalContent from "metabase/components/ModalContent.react";

import inflection from "inflection";
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/components/FormField.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

import cx from "classnames";

export default React.createClass({
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/components/Header.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import Input from "metabase/components/Input.react";

export default class Header extends React.Component {
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/components/HistoryModal.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import React, { Component, PropTypes } from "react";

import ActionButton from "metabase/components/ActionButton.react";
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/components/Icon.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

import { loadIcon } from 'metabase/icon_paths';

export default class Icon extends React.Component {
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/components/IconBorder.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

import React, { Component, PropTypes, findDOMNode } from 'react';
import cx from "classnames";

Expand Down
2 changes: 0 additions & 2 deletions frontend/app/components/Input.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

export default React.createClass({
displayName: "Input",
propTypes: {
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/components/LoadingAndErrorWrapper.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import React, { Component, PropTypes } from "react";

import LoadingSpinner from "metabase/components/LoadingSpinner.react";
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/components/LoadingSpinner.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

/* just a spinner, sitting here, spinning endlessly */

var LoadingSpinner = React.createClass({
Expand Down
4 changes: 1 addition & 3 deletions frontend/app/components/LogoIcon.react.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions frontend/app/components/Modal.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import React, { Component, PropTypes } from "react";

import OnClickOutsideWrapper from "./OnClickOutsideWrapper.react";
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/components/ModalContent.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import React, { Component, PropTypes } from "react";

import Icon from "metabase/components/Icon.react";
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/components/ModalWithTrigger.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

import Triggerable from './Triggerable.react';
import Modal from './Modal.react';

Expand Down
2 changes: 0 additions & 2 deletions frontend/app/components/Navbar.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import React, { Component, PropTypes } from 'react';
import cx from "classnames";

Expand Down
2 changes: 0 additions & 2 deletions frontend/app/components/OnClickOutsideWrapper.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

import OnClickOutside from 'react-onclickoutside';

// this feels a little silly, but we have this component ONLY so that we can add the OnClickOutside functionality on an
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/components/PasswordReveal.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import React, { Component, PropTypes } from "react";


Expand Down
2 changes: 0 additions & 2 deletions frontend/app/components/Popover.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

import React, { Component, PropTypes } from "react";

import OnClickOutsideWrapper from "./OnClickOutsideWrapper.react";
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/components/PopoverWithTrigger.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

import Triggerable from './Triggerable.react';
import Popover from './Popover.react';

Expand Down
2 changes: 0 additions & 2 deletions frontend/app/components/ProfileLink.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

import React, { Component, PropTypes } from 'react';
import OnClickOut from 'react-onclickout';
import cx from 'classnames';
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/components/ProgressBar.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

export default React.createClass({
displayName: "ProgressBar",
propTypes: {
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/components/QuestionSavedModal.react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

import ModalContent from "metabase/components/ModalContent.react";

export default React.createClass({
Expand Down
Loading

0 comments on commit 2a0eb03

Please sign in to comment.