Skip to content

Commit 8bfaf59

Browse files
Add license headers across the project
1 parent 8c3da11 commit 8bfaf59

File tree

738 files changed

+2657
-340
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

738 files changed

+2657
-340
lines changed

.babelrc.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2019-2020 Signal Messenger, LLC
2+
// SPDX-License-Identifier: AGPL-3.0-only
3+
14
module.exports = {
25
presets: ['@babel/preset-react', '@babel/preset-typescript'],
36
// Detects the type of file being babel'd (either esmodule or commonjs)

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ sticker-creator/**/*.js
2828
!sticker-creator/preload.js
2929

3030
**/*.d.ts
31+
.eslintrc.js
3132
webpack.config.ts

.eslintrc.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2018-2020 Signal Messenger, LLC
2+
// SPDX-License-Identifier: AGPL-3.0-only
3+
14
// For reference: https://github.com/airbnb/javascript
25

36
const rules = {

.github/FUNDING.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
# Copyright 2020 Signal Messenger, LLC
2+
# SPDX-License-Identifier: AGPL-3.0-only
3+
14
custom: https://signal.org/donate/

.github/ISSUE_TEMPLATE.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
<!-- Copyright 2016-2020 Signal Messenger, LLC -->
2+
<!-- SPDX-License-Identifier: AGPL-3.0-only -->
3+
14
<!--
25
Please fill out this template with all the information you have. We can't do much without
36
both the logs and a detailed description of what you've encountered. Please do your best!

.github/PULL_REQUEST_TEMPLATE.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
<!-- Copyright 2016-2020 Signal Messenger, LLC -->
2+
<!-- SPDX-License-Identifier: AGPL-3.0-only -->
3+
14
<!--
25
Thanks for contributing to the project!
36
Please help us keep this project in good shape by going through this checklist.

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2020 Signal Messenger, LLC
2+
# SPDX-License-Identifier: AGPL-3.0-only
3+
14
name: CI
25

36
on: [push]

.github/workflows/snyk.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2020 Signal Messenger, LLC
2+
# SPDX-License-Identifier: AGPL-3.0-only
3+
14
name: Snyk
25

36
on:

.prettierrc.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2018-2020 Signal Messenger, LLC
2+
// SPDX-License-Identifier: AGPL-3.0-only
3+
14
module.exports = {
25
singleQuote: true,
36
trailingComma: 'es5',

.storybook/addons.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
// Copyright 2019-2020 Signal Messenger, LLC
2+
// SPDX-License-Identifier: AGPL-3.0-only
3+
14
import '@storybook/addon-knobs/register';
25
import '@storybook/addon-actions/register';

.storybook/config.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2019-2020 Signal Messenger, LLC
2+
// SPDX-License-Identifier: AGPL-3.0-only
3+
14
import * as React from 'react';
25
import { addDecorator, configure } from '@storybook/react';
36
import { withKnobs, boolean, optionsKnob } from '@storybook/addon-knobs';

.storybook/preview-head.html

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
<!-- Copyright 2019-2020 Signal Messenger, LLC -->
2+
<!-- SPDX-License-Identifier: AGPL-3.0-only -->
3+
14
<!-- prettier-ignore -->
25
<link rel="stylesheet" href="../stylesheets/manifest.css" />
36
<script>

.storybook/styles.scss

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2019-2020 Signal Messenger, LLC
2+
// SPDX-License-Identifier: AGPL-3.0-only
3+
14
@import '../stylesheets/variables';
25

36
.container {

.storybook/webpack.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2019-2020 Signal Messenger, LLC
2+
// SPDX-License-Identifier: AGPL-3.0-only
3+
14
module.exports = ({ config }) => {
25
config.entry.unshift(
36
'!!style-loader!css-loader!sanitize.css',

ACKNOWLEDGMENTS.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
<!-- Copyright 2020 Signal Messenger, LLC -->
2+
<!-- SPDX-License-Identifier: AGPL-3.0-only -->
3+
14
# Acknowledgments
25

36
Signal Desktop makes use of the following open source projects.

CONTRIBUTING.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
<!-- Copyright 2015-2020 Signal Messenger, LLC -->
2+
<!-- SPDX-License-Identifier: AGPL-3.0-only -->
3+
14
# Contributor Guidelines
25

36
## Advice for new contributors

Gruntfile.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2014-2020 Signal Messenger, LLC
2+
// SPDX-License-Identifier: AGPL-3.0-only
3+
14
const { join } = require('path');
25
const importOnce = require('node-sass-import-once');
36
const rimraf = require('rimraf');

LICENSE

+57-59
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
1-
GNU GENERAL PUBLIC LICENSE
2-
Version 3, 29 June 2007
1+
GNU AFFERO GENERAL PUBLIC LICENSE
2+
Version 3, 19 November 2007
33

4-
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
4+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
55
Everyone is permitted to copy and distribute verbatim copies
66
of this license document, but changing it is not allowed.
77

88
Preamble
99

10-
The GNU General Public License is a free, copyleft license for
11-
software and other kinds of works.
10+
The GNU Affero General Public License is a free, copyleft license for
11+
software and other kinds of works, specifically designed to ensure
12+
cooperation with the community in the case of network server software.
1213

1314
The licenses for most software and other practical works are designed
1415
to take away your freedom to share and change the works. By contrast,
15-
the GNU General Public License is intended to guarantee your freedom to
16+
our General Public Licenses are intended to guarantee your freedom to
1617
share and change all versions of a program--to make sure it remains free
17-
software for all its users. We, the Free Software Foundation, use the
18-
GNU General Public License for most of our software; it applies also to
19-
any other work released this way by its authors. You can apply it to
20-
your programs, too.
18+
software for all its users.
2119

2220
When we speak of free software, we are referring to freedom, not
2321
price. Our General Public Licenses are designed to make sure that you
@@ -26,44 +24,34 @@ them if you wish), that you receive source code or can get it if you
2624
want it, that you can change the software or use pieces of it in new
2725
free programs, and that you know you can do these things.
2826

29-
To protect your rights, we need to prevent others from denying you
30-
these rights or asking you to surrender the rights. Therefore, you have
31-
certain responsibilities if you distribute copies of the software, or if
32-
you modify it: responsibilities to respect the freedom of others.
33-
34-
For example, if you distribute copies of such a program, whether
35-
gratis or for a fee, you must pass on to the recipients the same
36-
freedoms that you received. You must make sure that they, too, receive
37-
or can get the source code. And you must show them these terms so they
38-
know their rights.
39-
40-
Developers that use the GNU GPL protect your rights with two steps:
41-
(1) assert copyright on the software, and (2) offer you this License
42-
giving you legal permission to copy, distribute and/or modify it.
43-
44-
For the developers' and authors' protection, the GPL clearly explains
45-
that there is no warranty for this free software. For both users' and
46-
authors' sake, the GPL requires that modified versions be marked as
47-
changed, so that their problems will not be attributed erroneously to
48-
authors of previous versions.
49-
50-
Some devices are designed to deny users access to install or run
51-
modified versions of the software inside them, although the manufacturer
52-
can do so. This is fundamentally incompatible with the aim of
53-
protecting users' freedom to change the software. The systematic
54-
pattern of such abuse occurs in the area of products for individuals to
55-
use, which is precisely where it is most unacceptable. Therefore, we
56-
have designed this version of the GPL to prohibit the practice for those
57-
products. If such problems arise substantially in other domains, we
58-
stand ready to extend this provision to those domains in future versions
59-
of the GPL, as needed to protect the freedom of users.
60-
61-
Finally, every program is threatened constantly by software patents.
62-
States should not allow patents to restrict development and use of
63-
software on general-purpose computers, but in those that do, we wish to
64-
avoid the special danger that patents applied to a free program could
65-
make it effectively proprietary. To prevent this, the GPL assures that
66-
patents cannot be used to render the program non-free.
27+
Developers that use our General Public Licenses protect your rights
28+
with two steps: (1) assert copyright on the software, and (2) offer
29+
you this License which gives you legal permission to copy, distribute
30+
and/or modify the software.
31+
32+
A secondary benefit of defending all users' freedom is that
33+
improvements made in alternate versions of the program, if they
34+
receive widespread use, become available for other developers to
35+
incorporate. Many developers of free software are heartened and
36+
encouraged by the resulting cooperation. However, in the case of
37+
software used on network servers, this result may fail to come about.
38+
The GNU General Public License permits making a modified version and
39+
letting the public access it on a server without ever releasing its
40+
source code to the public.
41+
42+
The GNU Affero General Public License is designed specifically to
43+
ensure that, in such cases, the modified source code becomes available
44+
to the community. It requires the operator of a network server to
45+
provide the source code of the modified version running there to the
46+
users of that server. Therefore, public use of a modified version, on
47+
a publicly accessible server, gives the public access to the source
48+
code of the modified version.
49+
50+
An older license, called the Affero General Public License and
51+
published by Affero, was designed to accomplish similar goals. This is
52+
a different license, not a version of the Affero GPL, but Affero has
53+
released a new version of the Affero GPL which permits relicensing under
54+
this license.
6755

6856
The precise terms and conditions for copying, distribution and
6957
modification follow.
@@ -72,7 +60,7 @@ modification follow.
7260

7361
0. Definitions.
7462

75-
"This License" refers to version 3 of the GNU General Public License.
63+
"This License" refers to version 3 of the GNU Affero General Public License.
7664

7765
"Copyright" also means copyright-like laws that apply to other kinds of
7866
works, such as semiconductor masks.
@@ -549,35 +537,45 @@ to collect a royalty for further conveying from those to whom you convey
549537
the Program, the only way you could satisfy both those terms and this
550538
License would be to refrain entirely from conveying the Program.
551539

552-
13. Use with the GNU Affero General Public License.
540+
13. Remote Network Interaction; Use with the GNU General Public License.
541+
542+
Notwithstanding any other provision of this License, if you modify the
543+
Program, your modified version must prominently offer all users
544+
interacting with it remotely through a computer network (if your version
545+
supports such interaction) an opportunity to receive the Corresponding
546+
Source of your version by providing access to the Corresponding Source
547+
from a network server at no charge, through some standard or customary
548+
means of facilitating copying of software. This Corresponding Source
549+
shall include the Corresponding Source for any work covered by version 3
550+
of the GNU General Public License that is incorporated pursuant to the
551+
following paragraph.
553552

554553
Notwithstanding any other provision of this License, you have
555554
permission to link or combine any covered work with a work licensed
556-
under version 3 of the GNU Affero General Public License into a single
555+
under version 3 of the GNU General Public License into a single
557556
combined work, and to convey the resulting work. The terms of this
558557
License will continue to apply to the part which is the covered work,
559-
but the special requirements of the GNU Affero General Public License,
560-
section 13, concerning interaction through a network will apply to the
561-
combination as such.
558+
but the work with which it is combined will remain governed by version
559+
3 of the GNU General Public License.
562560

563561
14. Revised Versions of this License.
564562

565563
The Free Software Foundation may publish revised and/or new versions of
566-
the GNU General Public License from time to time. Such new versions will
567-
be similar in spirit to the present version, but may differ in detail to
564+
the GNU Affero General Public License from time to time. Such new versions
565+
will be similar in spirit to the present version, but may differ in detail to
568566
address new problems or concerns.
569567

570568
Each version is given a distinguishing version number. If the
571-
Program specifies that a certain numbered version of the GNU General
569+
Program specifies that a certain numbered version of the GNU Affero General
572570
Public License "or any later version" applies to it, you have the
573571
option of following the terms and conditions either of that numbered
574572
version or of any later version published by the Free Software
575573
Foundation. If the Program does not specify a version number of the
576-
GNU General Public License, you may choose any version ever published
574+
GNU Affero General Public License, you may choose any version ever published
577575
by the Free Software Foundation.
578576

579577
If the Program specifies that a proxy can decide which future
580-
versions of the GNU General Public License can be used, that proxy's
578+
versions of the GNU Affero General Public License can be used, that proxy's
581579
public statement of acceptance of a version permanently authorizes you
582580
to choose that version for the Program.
583581

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
<!-- Copyright 2014-2020 Signal Messenger, LLC -->
2+
<!-- SPDX-License-Identifier: AGPL-3.0-only -->
3+
14
# Signal Desktop
25

36
Signal Desktop is an Electron application that links with Signal

about.html

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
<!-- Copyright 2017-2020 Signal Messenger, LLC -->
2+
<!-- SPDX-License-Identifier: AGPL-3.0-only -->
3+
14
<html>
25
<head>
36
<meta http-equiv="Content-Security-Policy"

about_preload.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2018-2020 Signal Messenger, LLC
2+
// SPDX-License-Identifier: AGPL-3.0-only
3+
14
/* global window */
25

36
const { ipcRenderer } = require('electron');

app/.eslintrc.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2018-2020 Signal Messenger, LLC
2+
// SPDX-License-Identifier: AGPL-3.0-only
3+
14
module.exports = {
25
rules: {
36
// On the node.js side, we're still using console.log

app/attachment_channel.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2018-2020 Signal Messenger, LLC
2+
// SPDX-License-Identifier: AGPL-3.0-only
3+
14
const electron = require('electron');
25
const rimraf = require('rimraf');
36
const Attachments = require('./attachments');

app/attachments.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
// Copyright 2019-2020 Signal Messenger, LLC
2+
// SPDX-License-Identifier: AGPL-3.0-only
3+
14
export function getTempPath(userDataPath: string): string;

app/attachments.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2018-2020 Signal Messenger, LLC
2+
// SPDX-License-Identifier: AGPL-3.0-only
3+
14
const crypto = require('crypto');
25
const path = require('path');
36
const { app, dialog, shell, remote } = require('electron');

app/base_config.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2018-2020 Signal Messenger, LLC
2+
// SPDX-License-Identifier: AGPL-3.0-only
3+
14
const fs = require('fs');
25

36
const _ = require('lodash');

app/config.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2017-2020 Signal Messenger, LLC
2+
// SPDX-License-Identifier: AGPL-3.0-only
3+
14
const path = require('path');
25
const { app } = require('electron');
36

app/dock_icon.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2018-2020 Signal Messenger, LLC
2+
// SPDX-License-Identifier: AGPL-3.0-only
3+
14
const { app } = require('electron');
25

36
const dockIcon = {};

app/ephemeral_config.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2018-2020 Signal Messenger, LLC
2+
// SPDX-License-Identifier: AGPL-3.0-only
3+
14
const path = require('path');
25

36
const { app } = require('electron');

app/global_errors.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2018-2020 Signal Messenger, LLC
2+
// SPDX-License-Identifier: AGPL-3.0-only
3+
14
const electron = require('electron');
25

36
const Errors = require('../js/modules/types/errors');

app/locale.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2017-2020 Signal Messenger, LLC
2+
// SPDX-License-Identifier: AGPL-3.0-only
3+
14
const path = require('path');
25
const fs = require('fs');
36
const _ = require('lodash');

app/logging.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2017-2020 Signal Messenger, LLC
2+
// SPDX-License-Identifier: AGPL-3.0-only
3+
14
// NOTE: Temporarily allow `then` until we convert the entire file to `async` / `await`:
25
/* eslint-disable more/no-then */
36

app/menu.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2017-2020 Signal Messenger, LLC
2+
// SPDX-License-Identifier: AGPL-3.0-only
3+
14
const { isString } = require('lodash');
25

36
exports.createTemplate = (options, messages) => {

app/permissions.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2018-2020 Signal Messenger, LLC
2+
// SPDX-License-Identifier: AGPL-3.0-only
3+
14
// The list of permissions is here:
25
// https://electronjs.org/docs/api/session#sessetpermissionrequesthandlerhandler
36

0 commit comments

Comments
 (0)