Add license headers across the project

This commit is contained in:
Evan Hahn
2020-10-30 15:34:04 -05:00
committed by Evan Hahn
parent 8c3da11996
commit 8bfaf598af
738 changed files with 2695 additions and 378 deletions

View File

@@ -1,3 +1,6 @@
// Copyright 2018-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import is from '@sindresorhus/is';
import moment from 'moment';
import { isNumber, padStart } from 'lodash';

View File

@@ -1,3 +1,6 @@
// Copyright 2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
// Must be kept in sync with RingRTC.CallState
export enum CallState {
Prering = 'init',

View File

@@ -1,3 +1,6 @@
// Copyright 2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
export const Colors = [
'red',
'deep_orange',

View File

@@ -1,3 +1,6 @@
// Copyright 2019-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { format as formatPhoneNumber } from './PhoneNumber';
export interface ContactType {

View File

@@ -1,3 +1,6 @@
// Copyright 2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
/* eslint-disable camelcase */
export enum Dialogs {

View File

@@ -1,3 +1,6 @@
// Copyright 2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
export type LocaleMessagesType = {
[key: string]: {
message: string;

View File

@@ -1,3 +1,6 @@
// Copyright 2018-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
// IndexedDB doesnt support boolean indexes so we map `true` to 1 and `false`
// to `0`, i.e. `IndexableBoolean`.
// N.B. Using `undefined` allows excluding an entry from an index. Useful

View File

@@ -1,3 +1,6 @@
// Copyright 2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
type LogFunction = (...args: Array<unknown>) => void;
export type LoggerType = {

View File

@@ -1,3 +1,6 @@
// Copyright 2018-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
export type MIMEType = string & { _mimeTypeBrand: never };
export const APPLICATION_OCTET_STREAM = 'application/octet-stream' as MIMEType;

View File

@@ -1 +1,4 @@
// Copyright 2018-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
export type MapAsync<T> = (value: T) => Promise<T>;

View File

@@ -1,3 +1,6 @@
// Copyright 2018-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
/* eslint-disable camelcase */
import { Attachment } from './Attachment';

View File

@@ -1,3 +1,6 @@
// Copyright 2018-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import memoizee from 'memoizee';
import { instance, PhoneNumberFormat } from '../util/libphonenumberInstance';

View File

@@ -1,3 +1,6 @@
// Copyright 2018-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import * as OS from '../OS';
const MIN_WINDOWS_VERSION = '8.0.0';

View File

@@ -1,3 +1,6 @@
// Copyright 2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
// Maps to values found here: https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/readyState
// which are returned by libtextsecure's MessageReceiver
export enum SocketStatus {

View File

@@ -1,3 +1,6 @@
// Copyright 2018-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
export type BodyRangesType = Array<{
start: number;
length: number;

View File

@@ -1,3 +1,6 @@
// Copyright 2018-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import * as Attachment from '../Attachment';
import * as IndexedDB from '../IndexedDB';
import { Message, UserMessage } from '../Message';