Format all source code using Prettier
This commit is contained in:
parent
b4dee3f30b
commit
1dd87ad197
149 changed files with 17847 additions and 15439 deletions
|
@ -1,9 +1,6 @@
|
|||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import {
|
||||
padStart,
|
||||
sample,
|
||||
} from 'lodash';
|
||||
import { padStart, sample } from 'lodash';
|
||||
|
||||
import _ from 'lodash';
|
||||
import moment from 'moment';
|
||||
|
@ -58,7 +55,6 @@ const landscapeRedObjectUrl = makeObjectUrl(landscapeRed, 'image/png');
|
|||
import portraitTeal from '../../fixtures/50x1000-teal.jpeg';
|
||||
const portraitTealObjectUrl = makeObjectUrl(portraitTeal, 'image/png');
|
||||
|
||||
|
||||
function makeObjectUrl(data: ArrayBuffer, contentType: string): string {
|
||||
const blob = new Blob([data], {
|
||||
type: contentType,
|
||||
|
@ -69,7 +65,6 @@ function makeObjectUrl(data: ArrayBuffer, contentType: string): string {
|
|||
const ourNumber = '+12025559999';
|
||||
const groupNumber = '+12025550099';
|
||||
|
||||
|
||||
export {
|
||||
mp3,
|
||||
mp3ObjectUrl,
|
||||
|
@ -93,7 +88,6 @@ export {
|
|||
groupNumber,
|
||||
};
|
||||
|
||||
|
||||
// Required, or TypeScript complains about adding keys to window
|
||||
const parent = window as any;
|
||||
|
||||
|
@ -112,12 +106,7 @@ import filesize from 'filesize';
|
|||
|
||||
const i18n = setup(locale, localeMessages);
|
||||
|
||||
export {
|
||||
theme,
|
||||
locale,
|
||||
i18n,
|
||||
};
|
||||
|
||||
export { theme, locale, i18n };
|
||||
|
||||
parent.i18n = i18n;
|
||||
parent.moment = moment;
|
||||
|
@ -145,7 +134,6 @@ parent.filesize = filesize;
|
|||
parent.ConversationController._initialFetchComplete = true;
|
||||
parent.ConversationController._initialPromise = Promise.resolve();
|
||||
|
||||
|
||||
const COLORS = [
|
||||
'red',
|
||||
'pink',
|
||||
|
@ -199,12 +187,7 @@ group.contactCollection.add(CONTACTS[0]);
|
|||
group.contactCollection.add(CONTACTS[1]);
|
||||
group.contactCollection.add(CONTACTS[2]);
|
||||
|
||||
export {
|
||||
COLORS,
|
||||
CONTACTS,
|
||||
me,
|
||||
group,
|
||||
};
|
||||
export { COLORS, CONTACTS, me, group };
|
||||
|
||||
parent.textsecure.storage.user.getNumber = () => ourNumber;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue