From 8bfaf598af72d67e806e65d38d0a0e74c084e8c0 Mon Sep 17 00:00:00 2001 From: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com> Date: Fri, 30 Oct 2020 15:34:04 -0500 Subject: [PATCH] Add license headers across the project --- .babelrc.js | 3 + .eslintignore | 1 + .eslintrc.js | 3 + .github/FUNDING.yml | 3 + .github/ISSUE_TEMPLATE.md | 3 + .github/PULL_REQUEST_TEMPLATE.md | 3 + .github/workflows/ci.yml | 3 + .github/workflows/snyk.yml | 3 + .prettierrc.js | 3 + .storybook/addons.js | 3 + .storybook/config.js | 3 + .storybook/preview-head.html | 3 + .storybook/styles.scss | 3 + .storybook/webpack.config.js | 3 + ACKNOWLEDGMENTS.md | 3 + CONTRIBUTING.md | 3 + Gruntfile.js | 3 + LICENSE | 110 ++-- README.md | 3 + about.html | 3 + about_preload.js | 3 + app/.eslintrc.js | 3 + app/attachment_channel.js | 3 + app/attachments.d.ts | 3 + app/attachments.js | 3 + app/base_config.js | 3 + app/config.js | 3 + app/dock_icon.js | 3 + app/ephemeral_config.js | 3 + app/global_errors.js | 3 + app/locale.js | 3 + app/logging.js | 3 + app/menu.js | 3 + app/permissions.js | 3 + app/protocol_filter.js | 3 + app/spell_check.js | 3 + app/sql_channel.js | 3 + app/tray_icon.js | 3 + app/user_config.d.ts | 3 + app/user_config.js | 3 + app/version.js | 3 + app/window_state.d.ts | 3 + app/window_state.js | 3 + aptly.sh | 3 + background.html | 3 + build/entitlements.mac.plist | 3 + build/entitlements.mas.plist | 3 + build/grunt.js | 3 + debug_log.html | 3 + debug_log_preload.js | 3 + fixtures/README.md | 3 + index.html | 3 + js/.eslintrc | 9 - js/.eslintrc.js | 12 + js/about_start.js | 3 + js/database.js | 3 + js/debug_log_start.js | 3 + js/deletes.js | 3 + js/delivery_receipts.js | 3 + js/expiring_messages.js | 3 + js/expiring_tap_to_view_messages.js | 3 + js/keychange_listener.js | 3 + js/libphonenumber-util.js | 3 + js/loading_start.js | 3 + js/logging.js | 3 + js/message_controller.js | 3 + js/message_requests.js | 3 + js/models/blockedNumbers.js | 3 + js/modules/.eslintrc | 13 - js/modules/.eslintrc.js | 16 + js/modules/attachment_downloads.js | 3 + js/modules/auto_orient_image.js | 3 + js/modules/backup.js | 3 + js/modules/debug.js | 3 + js/modules/debuglogs.js | 3 + js/modules/emojis.js | 3 + js/modules/i18n.d.ts | 3 + js/modules/i18n.js | 3 + js/modules/idle_detector.js | 3 + js/modules/indexeddb.js | 3 + js/modules/link_previews.d.ts | 3 + js/modules/link_previews.js | 3 + js/modules/logs.js | 3 + js/modules/messages_data_migrator.js | 3 + js/modules/metadata/CiphertextMessage.js | 3 + js/modules/metadata/SecretSessionCipher.js | 3 + js/modules/privacy.d.ts | 3 + js/modules/privacy.js | 3 + js/modules/refresh_sender_certificate.js | 3 + js/modules/settings.js | 3 + js/modules/signal.js | 3 + js/modules/stickers.d.ts | 3 + js/modules/stickers.js | 3 + js/modules/string_to_array_buffer.d.ts | 3 + js/modules/string_to_array_buffer.js | 3 + js/modules/types/attachment.js | 3 + .../attachment/migrate_data_to_file_system.js | 3 + js/modules/types/contact.js | 3 + js/modules/types/conversation.js | 3 + js/modules/types/errors.d.ts | 3 + js/modules/types/errors.js | 3 + js/modules/types/message.d.ts | 3 + js/modules/types/message.js | 3 + js/modules/types/schema_version.js | 3 + js/modules/types/visual_attachment.js | 3 + js/modules/views/initialization.js | 3 + js/notifications.js | 3 + js/permissions_popup_start.js | 3 + js/reactions.js | 3 + js/read_receipts.js | 3 + js/read_syncs.js | 3 + js/reliable_trigger.js | 3 + js/rotate_signed_prekey_listener.js | 3 + js/settings_start.js | 3 + js/signal_protocol_store.js | 3 + js/storage.js | 3 + js/view_syncs.js | 3 + js/views/app_view.js | 3 + js/views/banner_view.js | 3 + js/views/clear_data_view.js | 3 + js/views/confirmation_dialog_view.js | 3 + js/views/contact_list_view.js | 3 + js/views/debug_log_view.js | 3 + js/views/group_member_list_view.js | 3 + js/views/identicon_svg_view.js | 3 + js/views/inbox_view.js | 3 + js/views/install_view.js | 3 + js/views/key_verification_view.js | 3 + js/views/list_view.js | 3 + js/views/phone-input-view.js | 3 + js/views/react_wrapper_view.js | 3 + js/views/recorder_view.js | 3 + js/views/safety_number_change_dialog_view.js | 3 + js/views/settings_view.js | 3 + js/views/standalone_registration_view.js | 3 + js/views/toast_view.js | 3 + js/views/whisper_view.js | 3 + js/wall_clock_listener.js | 3 + libtextsecure/key_worker.js | 3 + libtextsecure/libsignal-protocol.js | 3 + libtextsecure/protobufs.js | 3 + libtextsecure/protocol_wrapper.js | 3 + libtextsecure/storage/unprocessed.js | 3 + libtextsecure/storage/user.js | 3 + libtextsecure/test/.eslintrc | 25 - libtextsecure/test/.eslintrc.js | 28 + libtextsecure/test/_test.js | 3 + libtextsecure/test/account_manager_test.js | 3 + libtextsecure/test/blanket_mocha.js | 3 + libtextsecure/test/contacts_parser_test.js | 3 + libtextsecure/test/crypto_test.js | 3 + libtextsecure/test/fake_web_api.js | 3 + libtextsecure/test/generate_keys_test.js | 3 + libtextsecure/test/helpers_test.js | 3 + .../test/in_memory_signal_protocol_store.js | 3 + libtextsecure/test/index.html | 3 + libtextsecure/test/message_receiver_test.js | 3 + libtextsecure/test/protocol_test.js | 3 + libtextsecure/test/protocol_wrapper_test.js | 3 + libtextsecure/test/sendmessage_test.js | 3 + libtextsecure/test/storage_test.js | 3 + libtextsecure/test/task_with_timeout_test.js | 3 + .../test/websocket-resources_test.js | 3 + libtextsecure/test/websocket_test.js | 3 + loading.html | 3 + loading_preload.js | 3 + main.js | 3 + permissions_popup.html | 3 + permissions_popup_preload.js | 3 + preload.js | 3 + preload_utils.js | 3 + prepare_beta_build.js | 3 + scripts/.eslintrc.js | 3 + scripts/generate-acknowledgments.js | 18 + scripts/zip-macos-release.js | 3 + settings.html | 3 + settings_preload.js | 3 + sticker-creator/_mixins.scss | 3 + sticker-creator/app/index.scss | 3 + sticker-creator/app/index.tsx | 3 + sticker-creator/app/stages/AppStage.scss | 3 + sticker-creator/app/stages/AppStage.tsx | 3 + sticker-creator/app/stages/DropStage.scss | 3 + sticker-creator/app/stages/DropStage.tsx | 3 + sticker-creator/app/stages/EmojiStage.tsx | 3 + sticker-creator/app/stages/MetaStage.scss | 3 + sticker-creator/app/stages/MetaStage.tsx | 3 + sticker-creator/app/stages/ShareStage.scss | 3 + sticker-creator/app/stages/ShareStage.tsx | 3 + sticker-creator/app/stages/UploadStage.scss | 3 + sticker-creator/app/stages/UploadStage.tsx | 3 + sticker-creator/components/ConfirmModal.scss | 3 + sticker-creator/components/ConfirmModal.tsx | 3 + sticker-creator/components/ShareButtons.scss | 3 + .../components/ShareButtons.stories.tsx | 3 + sticker-creator/components/ShareButtons.tsx | 3 + sticker-creator/components/StickerFrame.scss | 3 + .../components/StickerFrame.stories.tsx | 3 + sticker-creator/components/StickerFrame.tsx | 3 + sticker-creator/components/StickerGrid.scss | 3 + sticker-creator/components/StickerGrid.tsx | 3 + .../components/StickerPackPreview.scss | 3 + .../components/StickerPackPreview.stories.tsx | 3 + .../components/StickerPackPreview.tsx | 3 + .../components/Toaster.stories.tsx | 3 + sticker-creator/components/Toaster.tsx | 3 + sticker-creator/custom.d.ts | 3 + sticker-creator/elements/Button.scss | 3 + sticker-creator/elements/Button.stories.tsx | 3 + sticker-creator/elements/Button.tsx | 3 + sticker-creator/elements/ConfirmDialog.scss | 3 + .../elements/ConfirmDialog.stories.tsx | 3 + sticker-creator/elements/ConfirmDialog.tsx | 3 + sticker-creator/elements/CopyText.scss | 3 + sticker-creator/elements/CopyText.stories.tsx | 3 + sticker-creator/elements/CopyText.tsx | 3 + sticker-creator/elements/DropZone.scss | 3 + sticker-creator/elements/DropZone.stories.tsx | 3 + sticker-creator/elements/DropZone.tsx | 3 + sticker-creator/elements/LabeledCheckbox.scss | 3 + .../elements/LabeledCheckbox.stories.tsx | 3 + sticker-creator/elements/LabeledCheckbox.tsx | 3 + sticker-creator/elements/LabeledInput.scss | 3 + .../elements/LabeledInput.stories.tsx | 3 + sticker-creator/elements/LabeledInput.tsx | 3 + sticker-creator/elements/MessageBubble.scss | 3 + .../elements/MessageBubble.stories.tsx | 3 + sticker-creator/elements/MessageBubble.tsx | 3 + sticker-creator/elements/MessageMeta.scss | 3 + sticker-creator/elements/MessageMeta.tsx | 3 + sticker-creator/elements/MessageSticker.scss | 3 + .../elements/MessageSticker.stories.tsx | 3 + sticker-creator/elements/MessageSticker.tsx | 3 + sticker-creator/elements/PageHeader.scss | 3 + .../elements/PageHeader.stories.tsx | 3 + sticker-creator/elements/PageHeader.tsx | 3 + sticker-creator/elements/ProgressBar.scss | 3 + .../elements/ProgressBar.stories.tsx | 3 + sticker-creator/elements/ProgressBar.tsx | 3 + sticker-creator/elements/StickerPreview.scss | 3 + .../elements/StickerPreview.stories.tsx | 3 + sticker-creator/elements/StickerPreview.tsx | 3 + sticker-creator/elements/StoryRow.scss | 3 + sticker-creator/elements/StoryRow.tsx | 3 + sticker-creator/elements/Toast.scss | 3 + sticker-creator/elements/Toast.stories.tsx | 3 + sticker-creator/elements/Toast.tsx | 3 + sticker-creator/elements/Typography.scss | 3 + .../elements/Typography.stories.tsx | 3 + sticker-creator/elements/Typography.tsx | 3 + sticker-creator/elements/icons/AddEmoji.tsx | 3 + sticker-creator/elements/icons/index.tsx | 3 + sticker-creator/index.html | 3 + sticker-creator/index.tsx | 3 + sticker-creator/preload.js | 3 + sticker-creator/root.tsx | 3 + sticker-creator/store/ducks/stickers.ts | 3 + sticker-creator/store/index.ts | 3 + sticker-creator/store/reducer.ts | 3 + sticker-creator/util/history.ts | 3 + sticker-creator/util/i18n.tsx | 3 + sticker-creator/util/preload.ts | 3 + sticker-creator/util/useStickerDropzone.ts | 3 + stylesheets/_conversation.scss | 3 + stylesheets/_debugLog.scss | 3 + stylesheets/_emoji.scss | 3 + stylesheets/_fontfaces.scss | 3 + stylesheets/_global.scss | 3 + stylesheets/_index.scss | 3 + stylesheets/_lightbox.scss | 3 + stylesheets/_mixins.scss | 3 + stylesheets/_modal.scss | 3 + stylesheets/_modules.scss | 3 + stylesheets/_options.scss | 3 + stylesheets/_progress.scss | 3 + stylesheets/_recorder.scss | 3 + stylesheets/_settings.scss | 3 + stylesheets/_variables.scss | 3 + stylesheets/manifest.scss | 3 + stylesheets/manifest_bridge.scss | 3 + test/.eslintrc.js | 3 + test/_test.js | 3 + test/app/.eslintrc.js | 3 + test/app/attachments_test.js | 3 + test/app/logging_test.js | 3 + test/app/menu_test.js | 3 + test/app/protocol_filter_test.js | 3 + test/app/spell_check_test.js | 3 + test/backup_test.js | 3 + test/blanket_mocha.js | 3 + test/crypto_test.js | 3 + test/database_test.js | 3 + test/i18n_test.js | 3 + test/index.html | 3 + test/keychange_listener_test.js | 3 + test/libphonenumber_util_test.js | 3 + test/metadata/SecretSessionCipher_test.js | 3 + test/models/conversations_test.js | 3 + test/modules/.eslintrc.js | 3 + test/modules/link_previews_test.js | 3 + test/modules/privacy_test.js | 3 + test/modules/types/attachment_test.js | 3 + test/modules/types/contact_test.js | 3 + test/modules/types/errors_test.js | 3 + test/modules/types/message_test.js | 3 + test/modules/types/mime_test.js | 3 + test/modules/types/schema_version_test.js | 3 + test/protobuf_test.js | 3 + test/reliable_trigger_test.js | 3 + test/stickers_test.js | 3 + test/storage_test.js | 3 + test/views/list_view_test.js | 3 + test/views/whisper_view_test.js | 3 + ts/ConversationController.ts | 3 + ts/Crypto.ts | 3 + ts/OS.ts | 3 + ts/RemoteConfig.ts | 3 + ts/backbone/index.ts | 3 + ts/backbone/views/Lightbox.ts | 3 + ts/backbone/views/index.ts | 3 + ts/backboneJquery.ts | 3 + ts/background.ts | 3 + ts/build/notarize.ts | 3 + ts/components/Avatar.stories.tsx | 3 + ts/components/Avatar.tsx | 3 + ts/components/AvatarPopup.stories.tsx | 3 + ts/components/AvatarPopup.tsx | 3 + ts/components/CallBackgroundBlur.tsx | 3 + ts/components/CallManager.stories.tsx | 3 + ts/components/CallManager.tsx | 3 + ts/components/CallNeedPermissionScreen.tsx | 3 + ts/components/CallScreen.stories.tsx | 3 + ts/components/CallScreen.tsx | 3 + ts/components/CallingButton.stories.tsx | 3 + ts/components/CallingButton.tsx | 3 + .../CallingDeviceSelection.stories.tsx | 3 + ts/components/CallingDeviceSelection.tsx | 3 + ts/components/CallingLobby.stories.tsx | 3 + ts/components/CallingLobby.tsx | 3 + .../CallingParticipantsList.stories.tsx | 3 + ts/components/CallingParticipantsList.tsx | 3 + ts/components/CallingPip.stories.tsx | 3 + ts/components/CallingPip.tsx | 3 + ts/components/CaptionEditor.stories.tsx | 3 + ts/components/CaptionEditor.tsx | 3 + ts/components/CompositionArea.stories.tsx | 3 + ts/components/CompositionArea.tsx | 3 + ts/components/CompositionInput.stories.tsx | 3 + ts/components/CompositionInput.tsx | 3 + ts/components/ConfirmationDialog.stories.tsx | 3 + ts/components/ConfirmationDialog.tsx | 3 + ts/components/ConfirmationModal.tsx | 3 + ts/components/ContactListItem.stories.tsx | 3 + ts/components/ContactListItem.tsx | 3 + .../ConversationListItem.stories.tsx | 3 + ts/components/ConversationListItem.tsx | 3 + ts/components/Countdown.stories.tsx | 3 + ts/components/Countdown.tsx | 3 + ts/components/ErrorModal.stories.tsx | 3 + ts/components/ErrorModal.tsx | 3 + ts/components/ExpiredBuildDialog.stories.tsx | 3 + ts/components/ExpiredBuildDialog.tsx | 3 + ts/components/InContactsIcon.stories.tsx | 3 + ts/components/InContactsIcon.tsx | 3 + ts/components/IncomingCallBar.stories.tsx | 3 + ts/components/IncomingCallBar.tsx | 3 + ts/components/Intl.stories.tsx | 3 + ts/components/Intl.tsx | 3 + ts/components/LeftPane.stories.tsx | 3 + ts/components/LeftPane.tsx | 3 + ts/components/Lightbox.stories.tsx | 3 + ts/components/Lightbox.tsx | 3 + ts/components/LightboxGallery.stories.tsx | 3 + ts/components/LightboxGallery.tsx | 3 + ts/components/MainHeader.stories.tsx | 3 + ts/components/MainHeader.tsx | 3 + .../MessageBodyHighlight.stories.tsx | 3 + ts/components/MessageBodyHighlight.tsx | 3 + ts/components/MessageSearchResult.stories.tsx | 3 + ts/components/MessageSearchResult.tsx | 3 + ts/components/NetworkStatus.stories.tsx | 3 + ts/components/NetworkStatus.tsx | 3 + ts/components/PopperRootContext.tsx | 3 + ts/components/ProgressDialog.stories.tsx | 3 + ts/components/ProgressDialog.tsx | 3 + ts/components/ProgressModal.stories.tsx | 3 + ts/components/ProgressModal.tsx | 3 + ts/components/RelinkDialog.stories.tsx | 3 + ts/components/RelinkDialog.tsx | 3 + .../SafetyNumberChangeDialog.stories.tsx | 3 + ts/components/SafetyNumberChangeDialog.tsx | 3 + ts/components/SafetyNumberViewer.stories.tsx | 3 + ts/components/SafetyNumberViewer.tsx | 3 + ts/components/SearchResults.stories.tsx | 3 + ts/components/SearchResults.tsx | 3 + ts/components/ShortcutGuide.stories.tsx | 3 + ts/components/ShortcutGuide.tsx | 3 + ts/components/ShortcutGuideModal.tsx | 3 + ts/components/Spinner.stories.tsx | 3 + ts/components/Spinner.tsx | 3 + .../StartNewConversation.stories.tsx | 3 + ts/components/StartNewConversation.tsx | 3 + ts/components/UpdateDialog.stories.tsx | 3 + ts/components/UpdateDialog.tsx | 3 + ts/components/_util.ts | 3 + .../conversation/AddNewLines.stories.tsx | 3 + ts/components/conversation/AddNewLines.tsx | 3 + .../conversation/AtMentionify.stories.tsx | 3 + ts/components/conversation/AtMentionify.tsx | 3 + .../conversation/AttachmentList.stories.tsx | 3 + ts/components/conversation/AttachmentList.tsx | 3 + .../conversation/CallingNotification.tsx | 3 + .../conversation/ContactDetail.stories.tsx | 3 + ts/components/conversation/ContactDetail.tsx | 3 + .../conversation/ContactName.stories.tsx | 3 + ts/components/conversation/ContactName.tsx | 3 + .../ConversationHeader.stories.tsx | 3 + .../conversation/ConversationHeader.tsx | 3 + .../conversation/ConversationHero.stories.tsx | 3 + .../conversation/ConversationHero.tsx | 3 + .../conversation/EmbeddedContact.stories.tsx | 3 + .../conversation/EmbeddedContact.tsx | 3 + .../conversation/Emojify.stories.tsx | 3 + ts/components/conversation/Emojify.tsx | 3 + .../conversation/ExpireTimer.stories.tsx | 3 + ts/components/conversation/ExpireTimer.tsx | 3 + .../GroupNotification.stories.tsx | 3 + .../conversation/GroupNotification.tsx | 3 + .../conversation/GroupV2Change.stories.tsx | 3 + ts/components/conversation/GroupV2Change.tsx | 3 + ts/components/conversation/Image.stories.tsx | 3 + ts/components/conversation/Image.tsx | 3 + .../conversation/ImageGrid.stories.tsx | 3 + ts/components/conversation/ImageGrid.tsx | 3 + .../InlineNotificationWrapper.tsx | 3 + .../LastSeenIndicator.stories.tsx | 3 + .../conversation/LastSeenIndicator.tsx | 3 + .../conversation/LinkPreviewDate.tsx | 3 + .../conversation/Linkify.stories.tsx | 3 + ts/components/conversation/Linkify.tsx | 3 + ...MandatoryProfileSharingActions.stories.tsx | 3 + .../MandatoryProfileSharingActions.tsx | 3 + .../conversation/Message.stories.tsx | 3 + ts/components/conversation/Message.tsx | 3 + .../conversation/MessageBody.stories.tsx | 3 + ts/components/conversation/MessageBody.tsx | 3 + .../conversation/MessageDetail.stories.tsx | 3 + ts/components/conversation/MessageDetail.tsx | 3 + .../MessageRequestActions.stories.tsx | 3 + .../conversation/MessageRequestActions.tsx | 3 + .../MessageRequestActionsConfirmation.tsx | 3 + .../ProfileChangeNotification.stories.tsx | 3 + .../ProfileChangeNotification.tsx | 3 + ts/components/conversation/Quote.stories.tsx | 3 + ts/components/conversation/Quote.tsx | 3 + .../conversation/ReactionPicker.stories.tsx | 3 + ts/components/conversation/ReactionPicker.tsx | 3 + .../conversation/ReactionViewer.stories.tsx | 3 + ts/components/conversation/ReactionViewer.tsx | 3 + .../ResetSessionNotification.stories.tsx | 3 + .../conversation/ResetSessionNotification.tsx | 3 + .../SafetyNumberNotification.stories.tsx | 3 + .../conversation/SafetyNumberNotification.tsx | 3 + .../conversation/ScrollDownButton.stories.tsx | 3 + .../conversation/ScrollDownButton.tsx | 3 + .../StagedGenericAttachment.stories.tsx | 3 + .../conversation/StagedGenericAttachment.tsx | 3 + .../StagedLinkPreview.stories.tsx | 3 + .../conversation/StagedLinkPreview.tsx | 3 + .../StagedPlaceholderAttachment.stories.tsx | 3 + .../StagedPlaceholderAttachment.tsx | 3 + .../conversation/Timeline.stories.tsx | 3 + ts/components/conversation/Timeline.tsx | 3 + .../conversation/TimelineItem.stories.tsx | 3 + ts/components/conversation/TimelineItem.tsx | 3 + .../TimelineLoadingRow.stories.tsx | 3 + .../conversation/TimelineLoadingRow.tsx | 3 + .../TimerNotification.stories.tsx | 3 + .../conversation/TimerNotification.tsx | 3 + .../conversation/Timestamp.stories.tsx | 3 + ts/components/conversation/Timestamp.tsx | 3 + .../conversation/TypingAnimation.stories.tsx | 3 + .../conversation/TypingAnimation.tsx | 3 + .../conversation/TypingBubble.stories.tsx | 3 + ts/components/conversation/TypingBubble.tsx | 3 + .../UnsupportedMessage.stories.tsx | 3 + .../conversation/UnsupportedMessage.tsx | 3 + .../VerificationNotification.stories.tsx | 3 + .../conversation/VerificationNotification.tsx | 3 + ts/components/conversation/_contactUtil.tsx | 3 + .../AttachmentSection.stories.tsx | 3 + .../media-gallery/AttachmentSection.tsx | 3 + .../DocumentListItem.stories.tsx | 3 + .../media-gallery/DocumentListItem.tsx | 3 + .../media-gallery/EmptyState.stories.tsx | 3 + .../conversation/media-gallery/EmptyState.tsx | 3 + .../media-gallery/LoadingIndicator.tsx | 3 + .../media-gallery/MediaGallery.stories.tsx | 3 + .../media-gallery/MediaGallery.tsx | 3 + .../media-gallery/MediaGridItem.stories.tsx | 3 + .../media-gallery/MediaGridItem.tsx | 3 + .../media-gallery/groupMediaItemsByDate.ts | 3 + .../media-gallery/types/ItemClickEvent.ts | 3 + .../media-gallery/types/Message.ts | 3 + ts/components/emoji/Emoji.stories.tsx | 3 + ts/components/emoji/Emoji.tsx | 3 + ts/components/emoji/EmojiButton.stories.tsx | 3 + ts/components/emoji/EmojiButton.tsx | 3 + ts/components/emoji/EmojiPicker.stories.tsx | 3 + ts/components/emoji/EmojiPicker.tsx | 3 + ts/components/emoji/lib.ts | 3 + .../stickers/StickerButton.stories.tsx | 3 + ts/components/stickers/StickerButton.tsx | 3 + .../stickers/StickerManager.stories.tsx | 3 + ts/components/stickers/StickerManager.tsx | 3 + .../stickers/StickerManagerPackRow.tsx | 3 + .../stickers/StickerPackInstallButton.tsx | 3 + .../stickers/StickerPicker.stories.tsx | 3 + ts/components/stickers/StickerPicker.tsx | 3 + .../stickers/StickerPreviewModal.stories.tsx | 3 + .../stickers/StickerPreviewModal.tsx | 3 + ts/components/stickers/lib.ts | 3 + ts/curve25519-n.d.ts | 3 + ts/groupChange.ts | 3 + ts/groups.ts | 3 + ts/libsignal.d.ts | 3 + ts/linkPreviews/isLinkPreviewDateValid.ts | 3 + ts/linkPreviews/linkPreviewFetch.ts | 3 + ts/model-types.d.ts | 3 + ts/models/conversations.ts | 3 + ts/models/messages.ts | 3 + ts/notifications/getStatus.ts | 3 + ts/notifications/index.ts | 3 + ts/protobuf/README.md | 3 + ts/protobuf/index.ts | 3 + ts/proxy-agent.d.ts | 3 + ts/quill/emoji/blot.tsx | 3 + ts/quill/emoji/completion.tsx | 3 + ts/quill/emoji/index.tsx | 3 + ts/quill/matchImage.ts | 3 + ts/scripts/zip-macos-release.ts | 3 + ts/services/bounce.ts | 3 + ts/services/calling.ts | 3 + ts/services/groupCredentialFetcher.ts | 3 + ts/services/networkObserver.ts | 3 + ts/services/notify.ts | 3 + ts/services/storage.ts | 3 + ts/services/storageRecordOps.ts | 3 + ts/services/timers.ts | 3 + ts/services/updateListener.ts | 3 + ts/shims/Whisper.ts | 3 + ts/shims/bounceAppIcon.ts | 3 + ts/shims/contactVerification.ts | 3 + ts/shims/events.ts | 3 + ts/shims/socketStatus.ts | 3 + ts/shims/storage.ts | 3 + ts/shims/textsecure.ts | 3 + ts/shims/updateIpc.ts | 3 + ts/sql/Client.ts | 3 + ts/sql/Interface.ts | 3 + ts/sql/Server.ts | 3 + ts/sqlcipher.d.ts | 3 + ts/state/actions.ts | 3 + ts/state/createStore.ts | 3 + ts/state/ducks/calling.ts | 3 + ts/state/ducks/conversations.ts | 3 + ts/state/ducks/emojis.ts | 3 + ts/state/ducks/expiration.ts | 3 + ts/state/ducks/items.ts | 3 + ts/state/ducks/network.ts | 3 + ts/state/ducks/noop.ts | 3 + ts/state/ducks/safetyNumber.ts | 3 + ts/state/ducks/search.ts | 3 + ts/state/ducks/stickers.ts | 3 + ts/state/ducks/updates.ts | 3 + ts/state/ducks/user.ts | 3 + ts/state/reducer.ts | 3 + ts/state/roots/createCallManager.tsx | 3 + ts/state/roots/createCompositionArea.tsx | 3 + ts/state/roots/createConversationHeader.tsx | 3 + ts/state/roots/createLeftPane.tsx | 3 + ts/state/roots/createSafetyNumberViewer.tsx | 3 + ts/state/roots/createShortcutGuideModal.tsx | 3 + ts/state/roots/createStickerManager.tsx | 3 + ts/state/roots/createStickerPreviewModal.tsx | 3 + ts/state/roots/createTimeline.tsx | 3 + ts/state/selectors/conversations.ts | 3 + ts/state/selectors/network.ts | 3 + ts/state/selectors/safetyNumber.ts | 3 + ts/state/selectors/search.ts | 3 + ts/state/selectors/stickers.ts | 3 + ts/state/selectors/user.ts | 3 + ts/state/smart/CallManager.tsx | 3 + ts/state/smart/CallingDeviceSelection.tsx | 3 + ts/state/smart/CompositionArea.tsx | 3 + ts/state/smart/ContactName.tsx | 3 + ts/state/smart/ConversationHeader.tsx | 3 + ts/state/smart/EmojiPicker.tsx | 3 + ts/state/smart/ExpiredBuildDialog.tsx | 3 + ts/state/smart/HeroRow.tsx | 3 + ts/state/smart/LastSeenIndicator.tsx | 3 + ts/state/smart/LeftPane.tsx | 3 + ts/state/smart/MainHeader.tsx | 3 + ts/state/smart/MessageSearchResult.tsx | 3 + ts/state/smart/NetworkStatus.tsx | 3 + ts/state/smart/ReactionPicker.tsx | 3 + ts/state/smart/RelinkDialog.tsx | 3 + ts/state/smart/SafetyNumberViewer.tsx | 3 + ts/state/smart/ShortcutGuideModal.tsx | 3 + ts/state/smart/StickerManager.tsx | 3 + ts/state/smart/StickerPreviewModal.tsx | 3 + ts/state/smart/Timeline.tsx | 3 + ts/state/smart/TimelineItem.tsx | 3 + ts/state/smart/TimelineLoadingRow.tsx | 3 + ts/state/smart/TypingBubble.tsx | 3 + ts/state/smart/UpdateDialog.tsx | 3 + ts/state/types.ts | 3 + ts/storybook/Fixtures.ts | 3 + ts/test-electron/.eslintrc.js | 3 + .../linkPreviews/linkPreviewFetch_test.ts | 3 + ts/test-electron/models/messages_test.ts | 3 + ts/test/components/LeftPane_test.tsx | 3 + .../media-gallery/groupMessagesByDate_test.ts | 3 + ts/test/helpers.ts | 3 + ts/test/license_comments_test.ts | 110 ++++ .../isLinkPreviewDateValid_test.ts | 3 + ts/test/quill/emoji/completion_test.tsx | 3 + ts/test/state/ducks/calling_test.ts | 3 + ts/test/state/selectors/conversations_test.ts | 3 + ts/test/types/Attachment_test.ts | 3 + ts/test/types/Contact_test.ts | 3 + ts/test/types/Settings_test.ts | 3 + .../initializeAttachmentMetadata_test.ts | 3 + ts/test/updater/common_test.ts | 3 + ts/test/updater/curve_test.ts | 3 + ts/test/updater/signature_test.ts | 3 + ts/test/util/combineNames_test.ts | 3 + .../util/getAnimatedPngDataIfExists_test.ts | 3 + ts/test/util/isFileDangerous_test.ts | 3 + ts/test/util/isMuted_test.ts | 3 + ts/test/util/isPathInside_test.ts | 3 + ts/test/util/sgnlHref_test.ts | 3 + ts/test/util/sleep_test.ts | 3 + ts/test/util/sniffImageMimeType_test.ts | 3 + ts/test/util/windowsZoneIdentifier_test.ts | 3 + ts/textsecure.d.ts | 3 + ts/textsecure/AccountManager.ts | 3 + ts/textsecure/ContactsParser.ts | 3 + ts/textsecure/Crypto.ts | 3 + ts/textsecure/Errors.ts | 3 + ts/textsecure/EventTarget.ts | 3 + ts/textsecure/Helpers.ts | 3 + ts/textsecure/MessageReceiver.ts | 3 + ts/textsecure/OutgoingMessage.ts | 3 + ts/textsecure/ProvisioningCipher.ts | 3 + ts/textsecure/SendMessage.ts | 3 + ts/textsecure/Storage.ts | 3 + ts/textsecure/StringView.ts | 3 + ts/textsecure/SyncRequest.ts | 3 + ts/textsecure/TaskWithTimeout.ts | 3 + ts/textsecure/WebAPI.ts | 3 + ts/textsecure/WebSocket.ts | 3 + ts/textsecure/WebsocketResources.ts | 3 + ts/textsecure/index.ts | 3 + ts/types/Attachment.ts | 3 + ts/types/Calling.ts | 3 + ts/types/Colors.ts | 3 + ts/types/Contact.tsx | 3 + ts/types/Dialogs.ts | 3 + ts/types/I18N.ts | 3 + ts/types/IndexedDB.ts | 3 + ts/types/Logging.ts | 3 + ts/types/MIME.ts | 3 + ts/types/MapAsync.ts | 3 + ts/types/Message.ts | 3 + ts/types/PhoneNumber.ts | 3 + ts/types/Settings.ts | 3 + ts/types/SocketStatus.ts | 3 + ts/types/Util.ts | 3 + .../message/initializeAttachmentMetadata.ts | 3 + ts/updater/common.ts | 3 + ts/updater/curve.ts | 3 + ts/updater/generateKeyPair.ts | 3 + ts/updater/generateSignature.ts | 3 + ts/updater/index.ts | 3 + ts/updater/macos.ts | 3 + ts/updater/signature.ts | 3 + ts/updater/windows.ts | 3 + ts/util/ExpirationTimerOptions.ts | 3 + ts/util/GoogleChrome.ts | 3 + ts/util/JobQueue.ts | 3 + ts/util/Sound.ts | 3 + ts/util/arrayBufferToObjectURL.ts | 3 + ts/util/batcher.ts | 3 + ts/util/callingPermissions.ts | 3 + ts/util/callingTones.ts | 3 + ts/util/cleanSearchTerm.ts | 3 + ts/util/combineNames.ts | 3 + ts/util/deleteForEveryone.ts | 3 + ts/util/downloadAttachment.ts | 3 + ts/util/formatDuration.ts | 3 + ts/util/formatRelativeTime.ts | 3 + ts/util/getAnimatedPngDataIfExists.ts | 3 + ts/util/getInitials.ts | 3 + ts/util/getMuteOptions.ts | 3 + ts/util/getStringForProfileChange.ts | 3 + ts/util/getTextWithMentions.ts | 3 + ts/util/getUserAgent.ts | 3 + ts/util/hasExpired.ts | 3 + ts/util/hooks.ts | 3 + ts/util/imageToBlurHash.ts | 3 + ts/util/index.ts | 3 + ts/util/isFileDangerous.ts | 3 + ts/util/isMuted.ts | 3 + ts/util/isPathInside.ts | 3 + ts/util/libphonenumberInstance.ts | 3 + ts/util/lint/analyze_exceptions.ts | 3 + ts/util/lint/exceptions.json | 550 +++++++++--------- ts/util/lint/linter.ts | 3 + ts/util/lint/sort_exceptions.ts | 3 + ts/util/lint/types.ts | 3 + ts/util/lint/util.ts | 3 + ts/util/makeLookup.ts | 3 + ts/util/migrateColor.ts | 3 + ts/util/missingCaseError.ts | 3 + ts/util/parseRemoteClientExpiration.ts | 3 + ts/util/registration.ts | 3 + ts/util/safetyNumber.ts | 3 + ts/util/sgnlHref.ts | 3 + ts/util/sleep.ts | 3 + ts/util/sniffImageMimeType.ts | 3 + ts/util/timer.ts | 3 + ts/util/waitBatcher.ts | 3 + ts/util/windowsZoneIdentifier.ts | 3 + ts/util/zkgroup.ts | 3 + ts/views/conversation_view.ts | 3 + ts/window.d.ts | 3 + webpack.config.ts | 3 + 738 files changed, 2695 insertions(+), 378 deletions(-) delete mode 100644 js/.eslintrc create mode 100644 js/.eslintrc.js delete mode 100644 js/modules/.eslintrc create mode 100644 js/modules/.eslintrc.js delete mode 100644 libtextsecure/test/.eslintrc create mode 100644 libtextsecure/test/.eslintrc.js create mode 100644 ts/test/license_comments_test.ts diff --git a/.babelrc.js b/.babelrc.js index 315ad1ac0..a302d6d5e 100644 --- a/.babelrc.js +++ b/.babelrc.js @@ -1,3 +1,6 @@ +// Copyright 2019-2020 Signal Messenger, LLC +// SPDX-License-Identifier: AGPL-3.0-only + module.exports = { presets: ['@babel/preset-react', '@babel/preset-typescript'], // Detects the type of file being babel'd (either esmodule or commonjs) diff --git a/.eslintignore b/.eslintignore index ccd6fb019..a9781c7c6 100644 --- a/.eslintignore +++ b/.eslintignore @@ -28,4 +28,5 @@ sticker-creator/**/*.js !sticker-creator/preload.js **/*.d.ts +.eslintrc.js webpack.config.ts diff --git a/.eslintrc.js b/.eslintrc.js index 1f58f03f8..a9459faab 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,3 +1,6 @@ +// Copyright 2018-2020 Signal Messenger, LLC +// SPDX-License-Identifier: AGPL-3.0-only + // For reference: https://github.com/airbnb/javascript const rules = { diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 9621c2321..3c2fd26c2 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1 +1,4 @@ +# Copyright 2020 Signal Messenger, LLC +# SPDX-License-Identifier: AGPL-3.0-only + custom: https://signal.org/donate/ diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 0c6c49ab8..542c0b03d 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,3 +1,6 @@ + + + + + + +