Move top-level functions to `Signal.Util`

pull/1/head
Daniel Gasienica 7 years ago
parent 5ec8b1c6e1
commit c46e1a1519

@ -196,6 +196,7 @@ window.Signal.Types.Errors = require('./js/modules/types/errors');
window.Signal.Types.Message = Message; window.Signal.Types.Message = Message;
window.Signal.Types.MIME = require('./ts/types/MIME'); window.Signal.Types.MIME = require('./ts/types/MIME');
window.Signal.Types.Settings = require('./js/modules/types/settings'); window.Signal.Types.Settings = require('./js/modules/types/settings');
window.Signal.Util = require('./ts/util');
window.Signal.Views = {}; window.Signal.Views = {};
window.Signal.Views.Initialization = require('./js/modules/views/initialization'); window.Signal.Views.Initialization = require('./js/modules/views/initialization');

@ -6,7 +6,7 @@ import React from 'react';
import { DocumentListEntry } from './DocumentListEntry'; import { DocumentListEntry } from './DocumentListEntry';
import { ImageThumbnail } from './ImageThumbnail'; import { ImageThumbnail } from './ImageThumbnail';
import { Message } from './propTypes/Message'; import { Message } from './propTypes/Message';
import { missingCaseError } from '../../../missingCaseError'; import { missingCaseError } from '../../../util/missingCaseError';
const styles = { const styles = {
container: { container: {

@ -5,7 +5,7 @@ import moment from 'moment';
import { compact, groupBy, sortBy } from 'lodash'; import { compact, groupBy, sortBy } from 'lodash';
import { Message } from './propTypes/Message'; import { Message } from './propTypes/Message';
// import { missingCaseError } from '../../../missingCaseError'; // import { missingCaseError } from '../../../util/missingCaseError';
type StaticSectionType = 'today' | 'yesterday' | 'thisWeek' | 'thisMonth'; type StaticSectionType = 'today' | 'yesterday' | 'thisWeek' | 'thisMonth';
type YearMonthSectionType = 'yearMonth'; type YearMonthSectionType = 'yearMonth';

@ -3,7 +3,7 @@
*/ */
import is from '@sindresorhus/is'; import is from '@sindresorhus/is';
import * as GoogleChrome from '../GoogleChrome'; import * as GoogleChrome from '../util/GoogleChrome';
import { MIMEType } from './MIME'; import { MIMEType } from './MIME';
export interface Attachment { export interface Attachment {

@ -1,7 +1,7 @@
/** /**
* @prettier * @prettier
*/ */
import * as MIME from './types/MIME'; import * as MIME from '../types/MIME';
interface MIMETypeSupportMap { interface MIMETypeSupportMap {
[key: string]: boolean; [key: string]: boolean;

@ -0,0 +1,7 @@
/**
* @prettier
*/
import * as GoogleChrome from './GoogleChrome';
import { missingCaseError } from './missingCaseError';
export { GoogleChrome, missingCaseError };
Loading…
Cancel
Save