Bulk change counterpart imports

to use languageHandler wrapper func
This commit is contained in:
David Baker 2017-05-25 11:39:08 +01:00
parent ec146c7f45
commit 5c359e63ab
52 changed files with 52 additions and 52 deletions

View file

@ -16,7 +16,7 @@ limitations under the License.
*/
var MatrixClientPeg = require("./MatrixClientPeg");
import _t from 'counterpart-riot';
import { _t } from './languageHandler';
/**
* Allows a user to add a third party identifier to their Home Server and,

View file

@ -55,7 +55,7 @@ var MatrixClientPeg = require('./MatrixClientPeg');
var PlatformPeg = require("./PlatformPeg");
var Modal = require('./Modal');
var sdk = require('./index');
import _t from 'counterpart-riot';
import { _t } from './languageHandler';
var Matrix = require("matrix-js-sdk");
var dis = require("./dispatcher");

View file

@ -21,7 +21,7 @@ var extend = require('./extend');
var dis = require('./dispatcher');
var MatrixClientPeg = require('./MatrixClientPeg');
var sdk = require('./index');
import _t from 'counterpart-riot';
import { _t } from './languageHandler';
var Modal = require('./Modal');
var encrypt = require("browser-encrypt-attachment");

View file

@ -15,7 +15,7 @@ limitations under the License.
*/
'use strict';
import _t from 'counterpart-riot';
import { _t } from './languageHandler';
function getDaysArray() {
var days = [];

View file

@ -27,7 +27,7 @@ import DMRoomMap from './utils/DMRoomMap';
import RtsClient from './RtsClient';
import Modal from './Modal';
import sdk from './index';
import _t from 'counterpart-riot';
import { _t } from './languageHandler';
/**
* Called at startup, to attempt to build a logged-in Matrix session. It tries

View file

@ -21,7 +21,7 @@ import TextForEvent from './TextForEvent';
import Avatar from './Avatar';
import dis from './dispatcher';
import sdk from './index';
import _t from 'counterpart-riot';
import { _t } from './languageHandler';
import Modal from './Modal';
/*

View file

@ -15,7 +15,7 @@ limitations under the License.
*/
var Matrix = require("matrix-js-sdk");
import _t from 'counterpart-riot';
import { _t } from './languageHandler';
/**
* Allows a user to reset their password on a homeserver.

View file

@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import _t from 'counterpart-riot';
import { _t } from './languageHandler';
export function levelRoleMap() {
const LEVEL_ROLE_MAP = {};

View file

@ -125,7 +125,7 @@ const SdkConfig = require('./SdkConfig');
const MatrixClientPeg = require("./MatrixClientPeg");
const MatrixEvent = require("matrix-js-sdk").MatrixEvent;
const dis = require("./dispatcher");
import _t from 'counterpart-riot';
import { _t } from './languageHandler';
function sendResponse(event, res) {
const data = JSON.parse(JSON.stringify(event.data));

View file

@ -18,7 +18,7 @@ import MatrixClientPeg from "./MatrixClientPeg";
import dis from "./dispatcher";
import Tinter from "./Tinter";
import sdk from './index';
import _t from 'counterpart-riot';
import { _t } from './languageHandler';
import Modal from './Modal';

View file

@ -16,7 +16,7 @@ limitations under the License.
var MatrixClientPeg = require("./MatrixClientPeg");
var CallHandler = require("./CallHandler");
import _t from 'counterpart-riot';
import { _t } from './languageHandler';
import * as Roles from './Roles';
function textForMemberEvent(ev) {

View file

@ -15,7 +15,7 @@ limitations under the License.
*/
var MatrixClientPeg = require("./MatrixClientPeg");
import _t from 'counterpart-riot';
import { _t } from './languageHandler';
module.exports = {
usersTypingApartFromMe: function(room) {

View file

@ -15,7 +15,7 @@ limitations under the License.
*/
var React = require("react");
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
var sdk = require('../../../index');
var MatrixClientPeg = require("../../../MatrixClientPeg");

View file

@ -1,5 +1,5 @@
import React from 'react';
import _t from 'counterpart-riot';
import { _t } from '../languageHandler';
import AutocompleteProvider from './AutocompleteProvider';
import Fuse from 'fuse.js';
import {TextualCompletion} from './Components';

View file

@ -1,5 +1,5 @@
import React from 'react';
import _t from 'counterpart-riot';
import { _t } from '../languageHandler';
import AutocompleteProvider from './AutocompleteProvider';
import {emojioneList, shortnameToImage, shortnameToUnicode} from 'emojione';
import Fuse from 'fuse.js';

View file

@ -1,5 +1,5 @@
import React from 'react';
import _t from 'counterpart-riot';
import { _t } from '../languageHandler';
import AutocompleteProvider from './AutocompleteProvider';
import MatrixClientPeg from '../MatrixClientPeg';
import Fuse from 'fuse.js';

View file

@ -1,5 +1,5 @@
import React from 'react';
import _t from 'counterpart-riot';
import { _t } from '../languageHandler';
import AutocompleteProvider from './AutocompleteProvider';
import Q from 'q';
import Fuse from 'fuse.js';

View file

@ -18,7 +18,7 @@ limitations under the License.
import React from 'react';
import q from 'q';
import _t from 'counterpart-riot';
import { _t } from '../../languageHandler';
import sdk from '../../index';
import MatrixClientPeg from '../../MatrixClientPeg';
const PresetValues = {

View file

@ -36,7 +36,7 @@ import PageTypes from '../../PageTypes';
import createRoom from "../../createRoom";
import * as UDEHandler from '../../UnknownDeviceErrorHandler';
import _t from 'counterpart-riot';
import { _t } from '../../languageHandler';
module.exports = React.createClass({
displayName: 'MatrixChat',

View file

@ -16,7 +16,7 @@ limitations under the License.
var React = require('react');
var ReactDOM = require("react-dom");
import _t from 'counterpart-riot';
import { _t } from '../../languageHandler';
var Matrix = require("matrix-js-sdk");
var sdk = require('../../index');
var MatrixClientPeg = require("../../MatrixClientPeg");

View file

@ -15,7 +15,7 @@ limitations under the License.
*/
import React from 'react';
import _t from 'counterpart-riot';
import { _t } from '../../languageHandler';
import sdk from '../../index';
import dis from '../../dispatcher';
import WhoIsTyping from '../../WhoIsTyping';

View file

@ -25,7 +25,7 @@ var ReactDOM = require("react-dom");
var q = require("q");
var classNames = require("classnames");
var Matrix = require("matrix-js-sdk");
import _t from 'counterpart-riot';
import { _t } from '../../languageHandler';
var UserSettingsStore = require('../../UserSettingsStore');
var MatrixClientPeg = require("../../MatrixClientPeg");

View file

@ -23,7 +23,7 @@ var Matrix = require("matrix-js-sdk");
var EventTimeline = Matrix.EventTimeline;
var sdk = require('../../index');
import _t from 'counterpart-riot';
import { _t } from '../../languageHandler';
var MatrixClientPeg = require("../../MatrixClientPeg");
var dis = require("../../dispatcher");
var ObjectUtils = require('../../ObjectUtils');

View file

@ -29,7 +29,7 @@ const Email = require('../../email');
const AddThreepid = require('../../AddThreepid');
const SdkConfig = require('../../SdkConfig');
import AccessibleButton from '../views/elements/AccessibleButton';
import _t from 'counterpart-riot';
import { _t } from '../../languageHandler';
import * as languageHandler from '../../languageHandler';
import * as FormattingUtils from '../../utils/FormattingUtils';

View file

@ -17,7 +17,7 @@ limitations under the License.
'use strict';
var React = require('react');
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
var sdk = require('../../../index');
var Modal = require("../../../Modal");
var MatrixClientPeg = require('../../../MatrixClientPeg');

View file

@ -18,7 +18,7 @@ limitations under the License.
'use strict';
import React from 'react';
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
import ReactDOM from 'react-dom';
import url from 'url';
import sdk from '../../../index';

View file

@ -19,7 +19,7 @@ limitations under the License.
import React from 'react';
import sdk from '../../../index';
import MatrixClientPeg from '../../../MatrixClientPeg';
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
module.exports = React.createClass({
displayName: 'PostRegistration',

View file

@ -27,7 +27,7 @@ import MatrixClientPeg from '../../../MatrixClientPeg';
import RegistrationForm from '../../views/login/RegistrationForm';
import CaptchaForm from '../../views/login/CaptchaForm';
import RtsClient from '../../../RtsClient';
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
const MIN_PASSWORD_LENGTH = 6;

View file

@ -16,7 +16,7 @@ limitations under the License.
import React from 'react';
import classNames from 'classnames';
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
import sdk from '../../../index';
import { getAddressType, inviteMultipleToRoom } from '../../../Invite';
import createRoom from '../../../createRoom';

View file

@ -16,7 +16,7 @@ limitations under the License.
import React from 'react';
import sdk from '../../../index';
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
import classnames from 'classnames';
/*

View file

@ -16,7 +16,7 @@ limitations under the License.
import React from 'react';
import sdk from '../../../index';
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
export default React.createClass({
displayName: 'TextInputDialog',

View file

@ -18,7 +18,7 @@ import React from 'react';
import sdk from '../../../index';
import UserSettingsStore from '../../../UserSettingsStore';
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
import * as languageHandler from '../../../languageHandler';
function languageMatchesSearchQuery(query, language) {

View file

@ -15,7 +15,7 @@ limitations under the License.
*/
import React from 'react';
const MemberAvatar = require('../avatars/MemberAvatar.js');
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
module.exports = React.createClass({
displayName: 'MemberEventListSummary',

View file

@ -19,7 +19,7 @@ import React from 'react';
import ReactDOM from 'react-dom';
import classNames from 'classnames';
import sdk from '../../../index';
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
import {field_input_incorrect} from '../../../UiEffects';

View file

@ -20,7 +20,7 @@ import React from 'react';
import filesize from 'filesize';
import MatrixClientPeg from '../../../MatrixClientPeg';
import sdk from '../../../index';
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
import {decryptFile} from '../../../utils/DecryptFile';
import Tinter from '../../../Tinter';
import request from 'browser-request';

View file

@ -19,7 +19,7 @@ var React = require('react');
var ObjectUtils = require("../../../ObjectUtils");
var MatrixClientPeg = require('../../../MatrixClientPeg');
var sdk = require("../../../index");
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
var Modal = require("../../../Modal");
module.exports = React.createClass({

View file

@ -18,7 +18,7 @@ limitations under the License.
var React = require('react');
var classNames = require("classnames");
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
var Modal = require('../../../Modal');
var sdk = require('../../../index');

View file

@ -31,7 +31,7 @@ import classNames from 'classnames';
import dis from '../../../dispatcher';
import Modal from '../../../Modal';
import sdk from '../../../index';
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
import createRoom from '../../../createRoom';
import DMRoomMap from '../../../utils/DMRoomMap';
import Unread from '../../../Unread';

View file

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
var React = require('react');
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
var classNames = require('classnames');
var Matrix = require("matrix-js-sdk");
var q = require('q');

View file

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
var React = require('react');
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
var CallHandler = require('../../../CallHandler');
var MatrixClientPeg = require('../../../MatrixClientPeg');
var Modal = require('../../../Modal');

View file

@ -30,7 +30,7 @@ import type {MatrixClient} from 'matrix-js-sdk/lib/matrix';
import SlashCommands from '../../../SlashCommands';
import Modal from '../../../Modal';
import sdk from '../../../index';
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
import dis from '../../../dispatcher';
import KeyCode from '../../../KeyCode';

View file

@ -20,7 +20,7 @@ var SlashCommands = require("../../../SlashCommands");
var Modal = require("../../../Modal");
var MemberEntry = require("../../../TabCompleteEntries").MemberEntry;
var sdk = require('../../../index');
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
import UserSettingsStore from "../../../UserSettingsStore";
var dis = require("../../../dispatcher");

View file

@ -19,7 +19,7 @@ limitations under the License.
var React = require('react');
var classNames = require('classnames');
var sdk = require('../../../index');
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
var MatrixClientPeg = require('../../../MatrixClientPeg');
var Modal = require("../../../Modal");
var dis = require("../../../dispatcher");

View file

@ -17,7 +17,7 @@ limitations under the License.
'use strict';
var React = require("react");
var ReactDOM = require("react-dom");
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
var GeminiScrollbar = require('react-gemini-scrollbar');
var MatrixClientPeg = require("../../../MatrixClientPeg");
var CallHandler = require('../../../CallHandler');

View file

@ -21,7 +21,7 @@ var React = require('react');
var sdk = require('../../../index');
var MatrixClientPeg = require('../../../MatrixClientPeg');
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
module.exports = React.createClass({
displayName: 'RoomPreviewBar',

View file

@ -17,7 +17,7 @@ limitations under the License.
import q from 'q';
import React from 'react';
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
import MatrixClientPeg from '../../../MatrixClientPeg';
import SdkConfig from '../../../SdkConfig';
import sdk from '../../../index';

View file

@ -17,7 +17,7 @@ var React = require('react');
var MatrixClientPeg = require("../../../MatrixClientPeg");
var Modal = require("../../../Modal");
var sdk = require("../../../index");
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
var GeminiScrollbar = require('react-gemini-scrollbar');
// A list capable of displaying entities which conform to the SearchableEntity

View file

@ -18,7 +18,7 @@ limitations under the License.
'use strict';
var React = require('react');
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
var sdk = require('../../../index');
module.exports = React.createClass({

View file

@ -15,7 +15,7 @@ limitations under the License.
*/
import React from 'react';
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
import sdk from '../../../index';
import AddThreepid from '../../../AddThreepid';

View file

@ -21,7 +21,7 @@ var MatrixClientPeg = require("../../../MatrixClientPeg");
var Modal = require("../../../Modal");
var sdk = require("../../../index");
import AccessibleButton from '../elements/AccessibleButton';
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
module.exports = React.createClass({
displayName: 'ChangePassword',

View file

@ -17,7 +17,7 @@ limitations under the License.
import React from 'react';
import sdk from '../../../index';
import _t from 'counterpart-riot';
import { _t } from '../../../languageHandler';
import MatrixClientPeg from '../../../MatrixClientPeg';
import Modal from '../../../Modal';
import DateUtils from '../../../DateUtils';

View file

@ -17,7 +17,7 @@ limitations under the License.
var MatrixClientPeg = require('./MatrixClientPeg');
var Modal = require('./Modal');
var sdk = require('./index');
import _t from 'counterpart-riot';
import { _t } from './languageHandler';
var dis = require("./dispatcher");
var Rooms = require("./Rooms");