Add license headers across the project
This commit is contained in:
parent
8c3da11996
commit
8bfaf598af
738 changed files with 2695 additions and 378 deletions
|
@ -1,3 +1,6 @@
|
|||
// Copyright 2018-2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
module.exports = {
|
||||
rules: {
|
||||
// On the node.js side, we're still using console.log
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright 2018-2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
const electron = require('electron');
|
||||
const rimraf = require('rimraf');
|
||||
const Attachments = require('./attachments');
|
||||
|
|
3
app/attachments.d.ts
vendored
3
app/attachments.d.ts
vendored
|
@ -1 +1,4 @@
|
|||
// Copyright 2019-2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
export function getTempPath(userDataPath: string): string;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright 2018-2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
const crypto = require('crypto');
|
||||
const path = require('path');
|
||||
const { app, dialog, shell, remote } = require('electron');
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright 2018-2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
const fs = require('fs');
|
||||
|
||||
const _ = require('lodash');
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright 2017-2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
const path = require('path');
|
||||
const { app } = require('electron');
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright 2018-2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
const { app } = require('electron');
|
||||
|
||||
const dockIcon = {};
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright 2018-2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
const path = require('path');
|
||||
|
||||
const { app } = require('electron');
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright 2018-2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
const electron = require('electron');
|
||||
|
||||
const Errors = require('../js/modules/types/errors');
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright 2017-2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
const _ = require('lodash');
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright 2017-2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
// NOTE: Temporarily allow `then` until we convert the entire file to `async` / `await`:
|
||||
/* eslint-disable more/no-then */
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright 2017-2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
const { isString } = require('lodash');
|
||||
|
||||
exports.createTemplate = (options, messages) => {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright 2018-2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
// The list of permissions is here:
|
||||
// https://electronjs.org/docs/api/session#sessetpermissionrequesthandlerhandler
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright 2018-2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright 2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
/* eslint-disable strict */
|
||||
|
||||
const { Menu, clipboard, nativeImage } = require('electron');
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright 2018-2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
const electron = require('electron');
|
||||
const Queue = require('p-queue').default;
|
||||
const sql = require('../ts/sql/Server').default;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright 2017-2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
const path = require('path');
|
||||
|
||||
const fs = require('fs');
|
||||
|
|
3
app/user_config.d.ts
vendored
3
app/user_config.d.ts
vendored
|
@ -1 +1,4 @@
|
|||
// Copyright 2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
export function remove(): void;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright 2017-2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
const path = require('path');
|
||||
|
||||
const { app } = require('electron');
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright 2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
const semver = require('semver');
|
||||
|
||||
exports.isBeta = version => semver.parse(version).prerelease[0] === 'beta';
|
||||
|
|
3
app/window_state.d.ts
vendored
3
app/window_state.d.ts
vendored
|
@ -1,2 +1,5 @@
|
|||
// Copyright 2019-2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
export function markShouldQuit(): void;
|
||||
export function shouldQuit(): void;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright 2017-2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
let shouldQuitFlag = false;
|
||||
|
||||
function markShouldQuit() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue