From eea630bd167bd25fad605908953c971a437ca76b Mon Sep 17 00:00:00 2001 From: Eduard Kuzmenko Date: Thu, 8 Apr 2021 17:52:31 +0400 Subject: [PATCH] License and copyright --- src/components/animationIntersector.ts | 6 ++++++ src/components/appMediaPlaybackController.ts | 6 ++++++ src/components/appMediaViewer.ts | 6 ++++++ src/components/appMediaViewerNew.ts | 6 ++++++ src/components/appNavigationController.ts | 6 ++++++ src/components/appSearch.ts | 6 ++++++ src/components/appSearchSuper..ts | 6 ++++++ src/components/appSelectPeers.ts | 6 ++++++ src/components/audio.ts | 6 ++++++ src/components/avatar.ts | 6 ++++++ src/components/avatarEdit.ts | 8 +++++++- src/components/button.ts | 6 ++++++ src/components/buttonIcon.ts | 6 ++++++ src/components/buttonMenu.ts | 6 ++++++ src/components/buttonMenuToggle.ts | 8 +++++++- src/components/chat/audio.ts | 6 ++++++ src/components/chat/bubbleGroups.ts | 6 ++++++ src/components/chat/bubbles.ts | 6 ++++++ src/components/chat/chat.ts | 6 ++++++ src/components/chat/contextMenu.ts | 6 ++++++ src/components/chat/dragAndDrop.ts | 6 ++++++ src/components/chat/input.ts | 6 ++++++ src/components/chat/markupTooltip.ts | 6 ++++++ src/components/chat/messageRender.ts | 6 ++++++ src/components/chat/pinnedContainer.ts | 6 ++++++ src/components/chat/pinnedMessage.ts | 6 ++++++ src/components/chat/replies.ts | 6 ++++++ src/components/chat/replyContainer.ts | 6 ++++++ src/components/chat/search.ts | 6 ++++++ src/components/chat/selection.ts | 6 ++++++ src/components/chat/sendContextMenu.ts | 6 ++++++ src/components/chat/stickersHelper.ts | 6 ++++++ src/components/chat/topbar.ts | 6 ++++++ src/components/checkboxField.ts | 6 ++++++ src/components/codeInputField.ts | 6 ++++++ src/components/dialogsContextMenu.ts | 6 ++++++ src/components/divAndCaption.ts | 8 +++++++- src/components/editPeer.ts | 6 ++++++ src/components/emoticonsDropdown/index.ts | 6 ++++++ src/components/emoticonsDropdown/tabs/emoji.ts | 6 ++++++ src/components/emoticonsDropdown/tabs/gifs.ts | 6 ++++++ src/components/emoticonsDropdown/tabs/stickers.ts | 6 ++++++ src/components/gifsMasonry.ts | 6 ++++++ src/components/horizontalMenu.ts | 6 ++++++ src/components/inputField.ts | 6 ++++++ src/components/inputSearch.ts | 6 ++++++ src/components/lazyLoadQueue.ts | 6 ++++++ src/components/loader.ts | 6 ++++++ src/components/middleEllipsis.ts | 6 ++++++ src/components/misc.ts | 6 ++++++ src/components/monkeys/index.ts | 6 ++++++ src/components/monkeys/password.ts | 6 ++++++ src/components/monkeys/tracking.ts | 6 ++++++ src/components/passwordInputField.ts | 6 ++++++ src/components/peerTitle.ts | 6 ++++++ src/components/poll.ts | 6 ++++++ src/components/popups/avatar.ts | 6 ++++++ src/components/popups/createPoll.ts | 6 ++++++ src/components/popups/datePicker.ts | 6 ++++++ src/components/popups/deleteDialog.ts | 6 ++++++ src/components/popups/deleteMessages.ts | 6 ++++++ src/components/popups/forward.ts | 6 ++++++ src/components/popups/index.ts | 6 ++++++ src/components/popups/newMedia.ts | 6 ++++++ src/components/popups/peer.ts | 6 ++++++ src/components/popups/pickUser.ts | 6 ++++++ src/components/popups/schedule.ts | 6 ++++++ src/components/popups/sendNow.ts | 6 ++++++ src/components/popups/stickers.ts | 6 ++++++ src/components/popups/unpinMessage.ts | 6 ++++++ src/components/preloader.ts | 6 ++++++ src/components/privacySection.ts | 6 ++++++ src/components/radioField.ts | 6 ++++++ src/components/radioForm.ts | 8 +++++++- src/components/rangeSelector.ts | 6 ++++++ src/components/ripple.ts | 6 ++++++ src/components/row.ts | 6 ++++++ src/components/scrollable.ts | 6 ++++++ src/components/sidebarLeft/index.ts | 6 ++++++ src/components/sidebarLeft/tabs/2fa/email.ts | 6 ++++++ .../sidebarLeft/tabs/2fa/emailConfirmation.ts | 6 ++++++ .../sidebarLeft/tabs/2fa/enterPassword.ts | 6 ++++++ src/components/sidebarLeft/tabs/2fa/hint.ts | 6 ++++++ src/components/sidebarLeft/tabs/2fa/index.ts | 6 ++++++ .../sidebarLeft/tabs/2fa/passwordSet.ts | 6 ++++++ .../sidebarLeft/tabs/2fa/reEnterPassword.ts | 6 ++++++ src/components/sidebarLeft/tabs/activeSessions.ts | 6 ++++++ src/components/sidebarLeft/tabs/addMembers.ts | 6 ++++++ src/components/sidebarLeft/tabs/archivedTab.ts | 6 ++++++ src/components/sidebarLeft/tabs/background.ts | 6 ++++++ src/components/sidebarLeft/tabs/blockedUsers.ts | 6 ++++++ src/components/sidebarLeft/tabs/chatFolders.ts | 6 ++++++ src/components/sidebarLeft/tabs/contacts.ts | 6 ++++++ src/components/sidebarLeft/tabs/editFolder.ts | 6 ++++++ src/components/sidebarLeft/tabs/editProfile.ts | 6 ++++++ .../sidebarLeft/tabs/generalSettings.ts | 6 ++++++ src/components/sidebarLeft/tabs/includedChats.ts | 6 ++++++ src/components/sidebarLeft/tabs/language.ts | 6 ++++++ src/components/sidebarLeft/tabs/newChannel.ts | 6 ++++++ src/components/sidebarLeft/tabs/newGroup.ts | 6 ++++++ src/components/sidebarLeft/tabs/notifications.ts | 6 ++++++ .../sidebarLeft/tabs/privacy/addToGroups.ts | 6 ++++++ src/components/sidebarLeft/tabs/privacy/calls.ts | 6 ++++++ .../sidebarLeft/tabs/privacy/forwardMessages.ts | 6 ++++++ .../sidebarLeft/tabs/privacy/lastSeen.ts | 6 ++++++ .../sidebarLeft/tabs/privacy/profilePhoto.ts | 6 ++++++ .../sidebarLeft/tabs/privacyAndSecurity.ts | 6 ++++++ src/components/sidebarLeft/tabs/settings.ts | 6 ++++++ src/components/sidebarRight/index.ts | 6 ++++++ src/components/sidebarRight/tabs/editChannel.ts | 6 ++++++ src/components/sidebarRight/tabs/editContact.ts | 6 ++++++ src/components/sidebarRight/tabs/editGroup.ts | 6 ++++++ src/components/sidebarRight/tabs/forward.ts | 6 ++++++ src/components/sidebarRight/tabs/gifs.ts | 6 ++++++ .../sidebarRight/tabs/groupPermissions.ts | 6 ++++++ src/components/sidebarRight/tabs/groupType.ts | 6 ++++++ src/components/sidebarRight/tabs/pollResults.ts | 6 ++++++ src/components/sidebarRight/tabs/search.ts | 6 ++++++ src/components/sidebarRight/tabs/sharedMedia.ts | 6 ++++++ src/components/sidebarRight/tabs/stickers.ts | 6 ++++++ .../sidebarRight/tabs/userPermissions.ts | 6 ++++++ src/components/singleTransition.ts | 8 +++++++- src/components/slider.ts | 6 ++++++ src/components/sliderTab.ts | 6 ++++++ src/components/stickyIntersector.ts | 6 ++++++ src/components/swipeHandler.ts | 6 ++++++ src/components/toast.ts | 8 +++++++- src/components/transition.ts | 6 ++++++ src/components/usernameInputField.ts | 6 ++++++ src/components/visibilityIntersector.ts | 6 ++++++ src/components/wrappers.ts | 8 +++++++- src/config/app.ts | 11 +++++++++++ src/config/database.ts | 6 ++++++ src/config/debug.ts | 6 ++++++ src/config/modes.ts | 11 +++++++++++ src/countries.ts | 6 ++++++ src/helpers/animation.ts | 6 ++++++ src/helpers/applyMixins.ts | 6 ++++++ src/helpers/array.ts | 6 ++++++ src/helpers/averageColor.ts | 8 +++++++- src/helpers/blob.ts | 13 ++++++++++++- src/helpers/blur.ts | 6 ++++++ src/helpers/bytes.ts | 11 +++++++++++ src/helpers/cancellablePromise.ts | 6 ++++++ src/helpers/clipboard.ts | 6 ++++++ src/helpers/color.ts | 6 ++++++ src/helpers/context.ts | 6 ++++++ src/helpers/date.ts | 6 ++++++ src/helpers/dom.ts | 11 +++++++++++ src/helpers/dom/findUpAsChild.ts | 6 ++++++ src/helpers/dom/findUpAttribute.ts | 6 ++++++ src/helpers/dom/findUpClassName.ts | 6 ++++++ src/helpers/dom/findUpTag.ts | 6 ++++++ src/helpers/dom/fixSafariStickyInput.ts | 6 ++++++ src/helpers/dom/renderImageFromUrl.ts | 6 ++++++ src/helpers/eventListenerBase.ts | 6 ++++++ src/helpers/fastSmoothScroll.ts | 6 ++++++ src/helpers/fileName.ts | 6 ++++++ src/helpers/files.ts | 6 ++++++ src/helpers/heavyQueue.ts | 6 ++++++ src/helpers/listLoader.ts | 6 ++++++ src/helpers/listenerSetter.ts | 6 ++++++ src/helpers/mediaSizes.ts | 6 ++++++ src/helpers/middleware.ts | 6 ++++++ src/helpers/number.ts | 6 ++++++ src/helpers/object.ts | 11 +++++++++++ src/helpers/random.ts | 6 ++++++ src/helpers/schedulers.ts | 6 ++++++ src/helpers/slicedArray.ts | 6 ++++++ src/helpers/string.ts | 6 ++++++ src/helpers/touchSupport.ts | 6 ++++++ src/helpers/userAgent.ts | 6 ++++++ src/hooks/useHeavyAnimationCheck.ts | 8 +++++++- src/lib/appManagers/AppInlineBotsManager.ts | 11 +++++++++++ src/lib/appManagers/apiUpdatesManager.ts | 11 +++++++++++ src/lib/appManagers/appChatsManager.ts | 11 +++++++++++ src/lib/appManagers/appDialogsManager.ts | 6 ++++++ src/lib/appManagers/appDocsManager.ts | 11 +++++++++++ src/lib/appManagers/appDownloadManager.ts | 6 ++++++ src/lib/appManagers/appDraftsManager.ts | 11 +++++++++++ src/lib/appManagers/appImManager.ts | 7 ++++++- src/lib/appManagers/appMessagesManager.ts | 11 +++++++++++ src/lib/appManagers/appNotificationsManager.ts | 14 +++++++++++--- src/lib/appManagers/appPeersManager.ts | 11 +++++++++++ src/lib/appManagers/appPhotosManager.ts | 11 +++++++++++ src/lib/appManagers/appPollsManager.ts | 6 ++++++ src/lib/appManagers/appPrivacyManager.ts | 6 ++++++ src/lib/appManagers/appStateManager.ts | 6 ++++++ src/lib/appManagers/appStickersManager.ts | 6 ++++++ src/lib/appManagers/appUsersManager.ts | 11 +++++++++++ src/lib/appManagers/appWebPagesManager.ts | 11 +++++++++++ src/lib/cacheStorage.ts | 6 ++++++ src/lib/config.ts | 11 +++++++++++ src/lib/cropper.ts | 6 ++++++ src/lib/crypto/crypto.worker.js | 11 +++++++++++ src/lib/crypto/crypto_utils.ts | 11 +++++++++++ src/lib/crypto/cryptoworker.ts | 11 +++++++++++ src/lib/filemanager.ts | 11 +++++++++++ src/lib/idb.ts | 11 +++++++++++ src/lib/langPack.ts | 6 ++++++ src/lib/logger.ts | 6 ++++++ src/lib/lottieLoader.ts | 6 ++++++ src/lib/mediaPlayer.ts | 6 ++++++ src/lib/mtproto/apiFileManager.ts | 11 +++++++++++ src/lib/mtproto/apiManager.ts | 11 +++++++++++ src/lib/mtproto/authorizer.ts | 11 +++++++++++ src/lib/mtproto/bin_utils.ts | 11 +++++++++++ src/lib/mtproto/dcConfigurator.ts | 11 +++++++++++ src/lib/mtproto/mtproto.service.ts | 6 ++++++ src/lib/mtproto/mtproto.ts | 11 +++++++++++ src/lib/mtproto/mtproto.worker.ts | 6 ++++++ src/lib/mtproto/mtproto_config.ts | 6 ++++++ src/lib/mtproto/mtprotoworker.ts | 6 ++++++ src/lib/mtproto/networker.ts | 11 +++++++++++ src/lib/mtproto/networkerFactory.ts | 11 +++++++++++ src/lib/mtproto/passwordManager.ts | 11 +++++++++++ src/lib/mtproto/referenceDatabase.ts | 6 ++++++ src/lib/mtproto/rsaKeysManager.ts | 11 +++++++++++ src/lib/mtproto/schema.ts | 6 ++++++ src/lib/mtproto/serverTimeManager.ts | 11 +++++++++++ src/lib/mtproto/timeManager.ts | 11 +++++++++++ src/lib/mtproto/tl_utils.ts | 11 +++++++++++ src/lib/mtproto/transports/abridged.ts | 6 ++++++ src/lib/mtproto/transports/codec.ts | 6 ++++++ src/lib/mtproto/transports/http.ts | 6 ++++++ src/lib/mtproto/transports/intermediate.ts | 6 ++++++ src/lib/mtproto/transports/obfuscation.ts | 6 ++++++ src/lib/mtproto/transports/padded.ts | 6 ++++++ src/lib/mtproto/transports/tcpObfuscated.ts | 6 ++++++ src/lib/mtproto/transports/transport.ts | 6 ++++++ src/lib/mtproto/transports/websocket.ts | 6 ++++++ src/lib/opusDecodeController.ts | 6 ++++++ src/lib/pluralPolyfill.ts | 6 ++++++ src/lib/polyfill.ts | 6 ++++++ src/lib/richtextprocessor.ts | 15 +++++++++++++-- src/lib/rlottie/rlottie.worker.ts | 6 ++++++ src/lib/rootScope.ts | 6 ++++++ src/lib/searchIndexManager.ts | 11 +++++++++++ src/lib/sessionStorage.ts | 6 ++++++ src/lib/storage.ts | 11 +++++++++++ src/lib/storages/dialogs.ts | 11 +++++++++++ src/lib/storages/filters.ts | 6 ++++++ src/lib/webp/webp.ts | 6 ++++++ src/lib/webp/webp.worker.ts | 6 ++++++ src/lib/webp/webpWorkerController.ts | 6 ++++++ src/pages/loginPage.ts | 6 ++++++ src/pages/page.ts | 6 ++++++ src/pages/pageAuthCode.ts | 6 ++++++ src/pages/pageIm.ts | 6 ++++++ src/pages/pagePassword.ts | 6 ++++++ src/pages/pageSignIn.ts | 6 ++++++ src/pages/pageSignQR.ts | 6 ++++++ src/pages/pageSignUp.ts | 6 ++++++ src/pages/pagesManager.ts | 6 ++++++ src/scripts/format_jsons.js | 6 ++++++ src/scripts/format_lang.js | 6 ++++++ src/scripts/format_schema.js | 6 ++++++ src/scripts/generate_mtproto_types.js | 6 ++++++ src/scss/mixins/_animationLevel.scss | 6 ++++++ src/scss/mixins/_hover.scss | 6 ++++++ src/scss/mixins/_respondTo.scss | 6 ++++++ src/scss/mixins/_textOverflow.scss | 6 ++++++ src/scss/partials/_animatedIcon.scss | 6 ++++++ src/scss/partials/_audio.scss | 6 ++++++ src/scss/partials/_avatar.scss | 6 ++++++ src/scss/partials/_badge.scss | 6 ++++++ src/scss/partials/_button.scss | 6 ++++++ src/scss/partials/_chat.scss | 6 ++++++ src/scss/partials/_chatBubble.scss | 6 ++++++ src/scss/partials/_chatDrop.scss | 6 ++++++ src/scss/partials/_chatMarkupTooltip.scss | 6 ++++++ src/scss/partials/_chatPinned.scss | 6 ++++++ src/scss/partials/_chatSearch.scss | 6 ++++++ src/scss/partials/_chatStickersHelper.scss | 6 ++++++ src/scss/partials/_chatTopbar.scss | 6 ++++++ src/scss/partials/_chatlist.scss | 6 ++++++ src/scss/partials/_checkbox.scss | 6 ++++++ src/scss/partials/_ckin.scss | 6 ++++++ src/scss/partials/_crop.scss | 6 ++++++ src/scss/partials/_document.scss | 6 ++++++ src/scss/partials/_emojiDropdown.scss | 6 ++++++ src/scss/partials/_fonts.scss | 6 ++++++ src/scss/partials/_gifsMasonry.scss | 6 ++++++ src/scss/partials/_ico.scss | 6 ++++++ src/scss/partials/_input.scss | 6 ++++++ src/scss/partials/_leftSidebar.scss | 6 ++++++ src/scss/partials/_mediaViewer.scss | 6 ++++++ src/scss/partials/_peerTyping.scss | 6 ++++++ src/scss/partials/_poll.scss | 6 ++++++ src/scss/partials/_preloader.scss | 6 ++++++ src/scss/partials/_profile.scss | 6 ++++++ src/scss/partials/_quizHint.scss | 6 ++++++ src/scss/partials/_rightSidebar.scss | 6 ++++++ src/scss/partials/_ripple.scss | 6 ++++++ src/scss/partials/_scrollable.scss | 6 ++++++ src/scss/partials/_selector.scss | 6 ++++++ src/scss/partials/_sidebar.scss | 6 ++++++ src/scss/partials/_slider.scss | 6 ++++++ src/scss/partials/_transition.scss | 6 ++++++ src/scss/partials/pages/_authCode.scss | 6 ++++++ src/scss/partials/pages/_chats.scss | 6 ++++++ src/scss/partials/pages/_pages.scss | 6 ++++++ src/scss/partials/pages/_password.scss | 6 ++++++ src/scss/partials/popups/_createPoll.scss | 6 ++++++ src/scss/partials/popups/_datePicker.scss | 6 ++++++ src/scss/partials/popups/_editAvatar.scss | 6 ++++++ src/scss/partials/popups/_forward.scss | 6 ++++++ src/scss/partials/popups/_mediaAttacher.scss | 6 ++++++ src/scss/partials/popups/_peer.scss | 6 ++++++ src/scss/partials/popups/_popup.scss | 6 ++++++ src/scss/partials/popups/_stickers.scss | 6 ++++++ src/scss/style.scss | 6 ++++++ src/scss/tgico.scss | 6 ++++++ src/{ => vendor}/emoji/index.ts | 0 src/{ => vendor}/emoji/regex.ts | 0 315 files changed, 2090 insertions(+), 16 deletions(-) rename src/{ => vendor}/emoji/index.ts (100%) rename src/{ => vendor}/emoji/regex.ts (100%) diff --git a/src/components/animationIntersector.ts b/src/components/animationIntersector.ts index 63c9a605..cdc8886c 100644 --- a/src/components/animationIntersector.ts +++ b/src/components/animationIntersector.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { isInDOM } from "../helpers/dom"; import { RLottiePlayer } from "../lib/lottieLoader"; import rootScope from "../lib/rootScope"; diff --git a/src/components/appMediaPlaybackController.ts b/src/components/appMediaPlaybackController.ts index 4b7a103b..baa1d688 100644 --- a/src/components/appMediaPlaybackController.ts +++ b/src/components/appMediaPlaybackController.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import rootScope from "../lib/rootScope"; import appMessagesManager from "../lib/appManagers/appMessagesManager"; import appDocsManager, {MyDocument} from "../lib/appManagers/appDocsManager"; diff --git a/src/components/appMediaViewer.ts b/src/components/appMediaViewer.ts index 4f752ae8..48de65c9 100644 --- a/src/components/appMediaViewer.ts +++ b/src/components/appMediaViewer.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { deferredPromise } from "../helpers/cancellablePromise"; import mediaSizes from "../helpers/mediaSizes"; import { isTouchSupported } from "../helpers/touchSupport"; diff --git a/src/components/appMediaViewerNew.ts b/src/components/appMediaViewerNew.ts index 4ec9c257..b2b2bca2 100644 --- a/src/components/appMediaViewerNew.ts +++ b/src/components/appMediaViewerNew.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + // import { deferredPromise } from "../helpers/cancellablePromise"; // import mediaSizes from "../helpers/mediaSizes"; // import { isTouchSupported } from "../helpers/touchSupport"; diff --git a/src/components/appNavigationController.ts b/src/components/appNavigationController.ts index 57b038f5..bdd4ab49 100644 --- a/src/components/appNavigationController.ts +++ b/src/components/appNavigationController.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { MOUNT_CLASS_TO } from "../config/debug"; import { isMobileSafari } from "../helpers/userAgent"; import { blurActiveElement, cancelEvent } from "../helpers/dom"; diff --git a/src/components/appSearch.ts b/src/components/appSearch.ts index 4cedbb90..aaecf572 100644 --- a/src/components/appSearch.ts +++ b/src/components/appSearch.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import appDialogsManager from "../lib/appManagers/appDialogsManager"; import Scrollable from "./scrollable"; import appMessagesManager from "../lib/appManagers/appMessagesManager"; diff --git a/src/components/appSearchSuper..ts b/src/components/appSearchSuper..ts index 2a775a25..0ddfa602 100644 --- a/src/components/appSearchSuper..ts +++ b/src/components/appSearchSuper..ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { formatDateAccordingToToday, months } from "../helpers/date"; import { positionElementByIndex } from "../helpers/dom"; import { copy, getObjectKeysAndSort, safeAssign } from "../helpers/object"; diff --git a/src/components/appSelectPeers.ts b/src/components/appSelectPeers.ts index e9b867ff..9d17314e 100644 --- a/src/components/appSelectPeers.ts +++ b/src/components/appSelectPeers.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import appChatsManager, { ChatRights } from "../lib/appManagers/appChatsManager"; import appDialogsManager from "../lib/appManagers/appDialogsManager"; import appMessagesManager, { Dialog } from "../lib/appManagers/appMessagesManager"; diff --git a/src/components/audio.ts b/src/components/audio.ts index d9884847..830fe2d7 100644 --- a/src/components/audio.ts +++ b/src/components/audio.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import appDocsManager, {MyDocument} from "../lib/appManagers/appDocsManager"; import { RichTextProcessor } from "../lib/richtextprocessor"; import { formatDate } from "./wrappers"; diff --git a/src/components/avatar.ts b/src/components/avatar.ts index 29c3b9ce..6c158e1b 100644 --- a/src/components/avatar.ts +++ b/src/components/avatar.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import appMessagesManager from "../lib/appManagers/appMessagesManager"; import appProfileManager from "../lib/appManagers/appProfileManager"; import rootScope from "../lib/rootScope"; diff --git a/src/components/avatarEdit.ts b/src/components/avatarEdit.ts index da9c13ce..eae8d8fb 100644 --- a/src/components/avatarEdit.ts +++ b/src/components/avatarEdit.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import type { CancellablePromise } from "../helpers/cancellablePromise"; import type { InputFile } from "../layer"; import PopupAvatar from "./popups/avatar"; @@ -28,4 +34,4 @@ export default class AvatarEdit { const ctx = this.canvas.getContext('2d'); ctx.clearRect(0, 0, this.canvas.width, this.canvas.height); } -} \ No newline at end of file +} diff --git a/src/components/button.ts b/src/components/button.ts index 3a8b32f7..f0d7940d 100644 --- a/src/components/button.ts +++ b/src/components/button.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { i18n, LangPackKey } from "../lib/langPack"; import { ripple } from "./ripple"; diff --git a/src/components/buttonIcon.ts b/src/components/buttonIcon.ts index 24671ff9..6afd43fb 100644 --- a/src/components/buttonIcon.ts +++ b/src/components/buttonIcon.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import Button from "./button"; const ButtonIcon = (className: string, options: Partial<{noRipple: true, onlyMobile: true}> = {}) => { diff --git a/src/components/buttonMenu.ts b/src/components/buttonMenu.ts index b7182970..c4525726 100644 --- a/src/components/buttonMenu.ts +++ b/src/components/buttonMenu.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { attachClickEvent, AttachClickOptions, cancelEvent, CLICK_EVENT_NAME } from "../helpers/dom"; import ListenerSetter from "../helpers/listenerSetter"; import { i18n, LangPackKey } from "../lib/langPack"; diff --git a/src/components/buttonMenuToggle.ts b/src/components/buttonMenuToggle.ts index ba2a7d63..49177881 100644 --- a/src/components/buttonMenuToggle.ts +++ b/src/components/buttonMenuToggle.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { AttachClickOptions, cancelEvent, CLICK_EVENT_NAME } from "../helpers/dom"; import ListenerSetter from "../helpers/listenerSetter"; import ButtonIcon from "./buttonIcon"; @@ -36,4 +42,4 @@ const ButtonMenuToggleHandler = (el: HTMLElement, onOpen?: (e: Event) => void, o }; export { ButtonMenuToggleHandler }; -export default ButtonMenuToggle; \ No newline at end of file +export default ButtonMenuToggle; diff --git a/src/components/chat/audio.ts b/src/components/chat/audio.ts index 1969acaa..7f115e07 100644 --- a/src/components/chat/audio.ts +++ b/src/components/chat/audio.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import type { AppMessagesManager } from "../../lib/appManagers/appMessagesManager"; import type { AppPeersManager } from "../../lib/appManagers/appPeersManager"; import type ChatTopbar from "./topbar"; diff --git a/src/components/chat/bubbleGroups.ts b/src/components/chat/bubbleGroups.ts index 5a79d8c7..8533663f 100644 --- a/src/components/chat/bubbleGroups.ts +++ b/src/components/chat/bubbleGroups.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import rootScope from "../../lib/rootScope"; //import { generatePathData } from "../../helpers/dom"; import { MyMessage } from "../../lib/appManagers/appMessagesManager"; diff --git a/src/components/chat/bubbles.ts b/src/components/chat/bubbles.ts index f7cd2482..d20c3f0f 100644 --- a/src/components/chat/bubbles.ts +++ b/src/components/chat/bubbles.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { CHAT_ANIMATION_GROUP } from "../../lib/appManagers/appImManager"; import type { AppMessagesManager, HistoryResult, MyMessage } from "../../lib/appManagers/appMessagesManager"; import type { AppStickersManager } from "../../lib/appManagers/appStickersManager"; diff --git a/src/components/chat/chat.ts b/src/components/chat/chat.ts index af6f582f..7f09f3a8 100644 --- a/src/components/chat/chat.ts +++ b/src/components/chat/chat.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import type { AppNotificationsManager } from "../../lib/appManagers/appNotificationsManager"; import type { AppChatsManager } from "../../lib/appManagers/appChatsManager"; import type { AppDocsManager } from "../../lib/appManagers/appDocsManager"; diff --git a/src/components/chat/contextMenu.ts b/src/components/chat/contextMenu.ts index 7c8a7798..550c8b27 100644 --- a/src/components/chat/contextMenu.ts +++ b/src/components/chat/contextMenu.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import type { AppMessagesManager } from "../../lib/appManagers/appMessagesManager"; import type { AppChatsManager } from "../../lib/appManagers/appChatsManager"; import type { AppPeersManager } from "../../lib/appManagers/appPeersManager"; diff --git a/src/components/chat/dragAndDrop.ts b/src/components/chat/dragAndDrop.ts index 52936037..048edffb 100644 --- a/src/components/chat/dragAndDrop.ts +++ b/src/components/chat/dragAndDrop.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { generatePathData } from "../../helpers/dom"; export default class ChatDragAndDrop { diff --git a/src/components/chat/input.ts b/src/components/chat/input.ts index 195475eb..b4877191 100644 --- a/src/components/chat/input.ts +++ b/src/components/chat/input.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import type { AppNotificationsManager } from '../../lib/appManagers/appNotificationsManager'; import type { AppChatsManager } from '../../lib/appManagers/appChatsManager'; import type { AppDocsManager, MyDocument } from "../../lib/appManagers/appDocsManager"; diff --git a/src/components/chat/markupTooltip.ts b/src/components/chat/markupTooltip.ts index b0b8ec92..191484c7 100644 --- a/src/components/chat/markupTooltip.ts +++ b/src/components/chat/markupTooltip.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import type { AppImManager } from "../../lib/appManagers/appImManager"; import { MarkdownType, cancelEvent, getSelectedNodes, markdownTags, attachClickEvent, isSelectionEmpty } from "../../helpers/dom"; import RichTextProcessor from "../../lib/richtextprocessor"; diff --git a/src/components/chat/messageRender.ts b/src/components/chat/messageRender.ts index 46ba4443..fb0c2ed6 100644 --- a/src/components/chat/messageRender.ts +++ b/src/components/chat/messageRender.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { getFullDate } from "../../helpers/date"; import { formatNumber } from "../../helpers/number"; import RichTextProcessor from "../../lib/richtextprocessor"; diff --git a/src/components/chat/pinnedContainer.ts b/src/components/chat/pinnedContainer.ts index ce7174bc..33e8e5c7 100644 --- a/src/components/chat/pinnedContainer.ts +++ b/src/components/chat/pinnedContainer.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import type Chat from "./chat"; import type ChatTopbar from "./topbar"; import mediaSizes from "../../helpers/mediaSizes"; diff --git a/src/components/chat/pinnedMessage.ts b/src/components/chat/pinnedMessage.ts index df8bff1a..fc1b66d3 100644 --- a/src/components/chat/pinnedMessage.ts +++ b/src/components/chat/pinnedMessage.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import type { AppMessagesManager } from "../../lib/appManagers/appMessagesManager"; import type { AppPeersManager } from "../../lib/appManagers/appPeersManager"; import type ChatTopbar from "./topbar"; diff --git a/src/components/chat/replies.ts b/src/components/chat/replies.ts index 44f4d726..27085f66 100644 --- a/src/components/chat/replies.ts +++ b/src/components/chat/replies.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { formatNumber } from "../../helpers/number"; import { Message } from "../../layer"; import appMessagesManager from "../../lib/appManagers/appMessagesManager"; diff --git a/src/components/chat/replyContainer.ts b/src/components/chat/replyContainer.ts index 2752efeb..baaaffc4 100644 --- a/src/components/chat/replyContainer.ts +++ b/src/components/chat/replyContainer.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import renderImageFromUrl from "../../helpers/dom/renderImageFromUrl"; import { limitSymbols } from "../../helpers/string"; import appImManager, { CHAT_ANIMATION_GROUP } from "../../lib/appManagers/appImManager"; diff --git a/src/components/chat/search.ts b/src/components/chat/search.ts index a3dd4774..f3a53e2a 100644 --- a/src/components/chat/search.ts +++ b/src/components/chat/search.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import type ChatTopbar from "./topbar"; import { cancelEvent, whichChild } from "../../helpers/dom"; import AppSearch, { SearchGroup } from "../appSearch"; diff --git a/src/components/chat/selection.ts b/src/components/chat/selection.ts index f3414853..f1bc6cb6 100644 --- a/src/components/chat/selection.ts +++ b/src/components/chat/selection.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import type { AppMessagesManager } from "../../lib/appManagers/appMessagesManager"; import type ChatBubbles from "./bubbles"; import type ChatInput from "./input"; diff --git a/src/components/chat/sendContextMenu.ts b/src/components/chat/sendContextMenu.ts index 4a17b4ae..7fa0f22f 100644 --- a/src/components/chat/sendContextMenu.ts +++ b/src/components/chat/sendContextMenu.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { cancelEvent } from "../../helpers/dom"; import ListenerSetter from "../../helpers/listenerSetter"; import rootScope from "../../lib/rootScope"; diff --git a/src/components/chat/stickersHelper.ts b/src/components/chat/stickersHelper.ts index f5d9813e..79943347 100644 --- a/src/components/chat/stickersHelper.ts +++ b/src/components/chat/stickersHelper.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import findUpClassName from "../../helpers/dom/findUpClassName"; import { MyDocument } from "../../lib/appManagers/appDocsManager"; import { CHAT_ANIMATION_GROUP } from "../../lib/appManagers/appImManager"; diff --git a/src/components/chat/topbar.ts b/src/components/chat/topbar.ts index 6faf09d2..1ec258e0 100644 --- a/src/components/chat/topbar.ts +++ b/src/components/chat/topbar.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import type { AppNotificationsManager } from "../../lib/appManagers/appNotificationsManager"; import type { AppChatsManager, Channel } from "../../lib/appManagers/appChatsManager"; import type { AppMessagesManager } from "../../lib/appManagers/appMessagesManager"; diff --git a/src/components/checkboxField.ts b/src/components/checkboxField.ts index 73654823..8304f5d7 100644 --- a/src/components/checkboxField.ts +++ b/src/components/checkboxField.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import appStateManager from "../lib/appManagers/appStateManager"; import { getDeepProperty } from "../helpers/object"; import { ripple } from "./ripple"; diff --git a/src/components/codeInputField.ts b/src/components/codeInputField.ts index d3c141a3..fbc6f525 100644 --- a/src/components/codeInputField.ts +++ b/src/components/codeInputField.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import InputField, { InputFieldOptions } from "./inputField"; export default class CodeInputField extends InputField { diff --git a/src/components/dialogsContextMenu.ts b/src/components/dialogsContextMenu.ts index 82564338..fd4403c3 100644 --- a/src/components/dialogsContextMenu.ts +++ b/src/components/dialogsContextMenu.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import appDialogsManager from "../lib/appManagers/appDialogsManager"; import appMessagesManager, {Dialog} from "../lib/appManagers/appMessagesManager"; import appPeersManager from "../lib/appManagers/appPeersManager"; diff --git a/src/components/divAndCaption.ts b/src/components/divAndCaption.ts index eb0c1e83..efa903ec 100644 --- a/src/components/divAndCaption.ts +++ b/src/components/divAndCaption.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + export default class DivAndCaption { public container: HTMLElement; public border: HTMLElement; @@ -24,4 +30,4 @@ export default class DivAndCaption { this.content.append(this.title, this.subtitle); this.container.append(this.border, this.content); } -} \ No newline at end of file +} diff --git a/src/components/editPeer.ts b/src/components/editPeer.ts index 882ff66e..c394b1a5 100644 --- a/src/components/editPeer.ts +++ b/src/components/editPeer.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { InputFile } from "../layer"; import AvatarEdit from "./avatarEdit"; import AvatarElement from "./avatar"; diff --git a/src/components/emoticonsDropdown/index.ts b/src/components/emoticonsDropdown/index.ts index 3982e17e..cf1ee207 100644 --- a/src/components/emoticonsDropdown/index.ts +++ b/src/components/emoticonsDropdown/index.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { isTouchSupported } from "../../helpers/touchSupport"; import appChatsManager from "../../lib/appManagers/appChatsManager"; import appImManager from "../../lib/appManagers/appImManager"; diff --git a/src/components/emoticonsDropdown/tabs/emoji.ts b/src/components/emoticonsDropdown/tabs/emoji.ts index b96aa108..f6865dd8 100644 --- a/src/components/emoticonsDropdown/tabs/emoji.ts +++ b/src/components/emoticonsDropdown/tabs/emoji.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { EmoticonsDropdown, EmoticonsTab } from ".."; import findUpClassName from "../../../helpers/dom/findUpClassName"; import { fastRaf } from "../../../helpers/schedulers"; diff --git a/src/components/emoticonsDropdown/tabs/gifs.ts b/src/components/emoticonsDropdown/tabs/gifs.ts index 1d41e56f..3766f751 100644 --- a/src/components/emoticonsDropdown/tabs/gifs.ts +++ b/src/components/emoticonsDropdown/tabs/gifs.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import emoticonsDropdown, { EmoticonsDropdown, EmoticonsTab, EMOTICONSSTICKERGROUP } from ".."; import GifsMasonry from "../../gifsMasonry"; import Scrollable from "../../scrollable"; diff --git a/src/components/emoticonsDropdown/tabs/stickers.ts b/src/components/emoticonsDropdown/tabs/stickers.ts index 36b79142..e243aaaa 100644 --- a/src/components/emoticonsDropdown/tabs/stickers.ts +++ b/src/components/emoticonsDropdown/tabs/stickers.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import emoticonsDropdown, { EmoticonsDropdown, EMOTICONSSTICKERGROUP, EmoticonsTab } from ".."; import { readBlobAsText } from "../../../helpers/blob"; import renderImageFromUrl from "../../../helpers/dom/renderImageFromUrl"; diff --git a/src/components/gifsMasonry.ts b/src/components/gifsMasonry.ts index edc86e47..4c822195 100644 --- a/src/components/gifsMasonry.ts +++ b/src/components/gifsMasonry.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { calcImageInBox } from "../helpers/dom"; import appDocsManager, {MyDocument} from "../lib/appManagers/appDocsManager"; import { wrapVideo } from "./wrappers"; diff --git a/src/components/horizontalMenu.ts b/src/components/horizontalMenu.ts index b77384e7..848820e1 100644 --- a/src/components/horizontalMenu.ts +++ b/src/components/horizontalMenu.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { whichChild } from "../helpers/dom"; import { TransitionSlider } from "./transition"; import { ScrollableX } from "./scrollable"; diff --git a/src/components/inputField.ts b/src/components/inputField.ts index 6b3ed840..dac1f596 100644 --- a/src/components/inputField.ts +++ b/src/components/inputField.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { getRichValue, isInputEmpty } from "../helpers/dom"; import { debounce } from "../helpers/schedulers"; import { checkRTL } from "../helpers/string"; diff --git a/src/components/inputSearch.ts b/src/components/inputSearch.ts index 9d39a84a..da38037c 100644 --- a/src/components/inputSearch.ts +++ b/src/components/inputSearch.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + //import { getRichValue } from "../helpers/dom"; import { LangPackKey } from "../lib/langPack"; import InputField from "./inputField"; diff --git a/src/components/lazyLoadQueue.ts b/src/components/lazyLoadQueue.ts index 4cd47418..b33946aa 100644 --- a/src/components/lazyLoadQueue.ts +++ b/src/components/lazyLoadQueue.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { debounce } from "../helpers/schedulers"; import { logger, LogLevels } from "../lib/logger"; import VisibilityIntersector, { OnVisibilityChange } from "./visibilityIntersector"; diff --git a/src/components/loader.ts b/src/components/loader.ts index 3e324b7b..928ad888 100644 --- a/src/components/loader.ts +++ b/src/components/loader.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { CancellablePromise } from "../helpers/cancellablePromise"; import ProgressivePreloader from "./preloader"; diff --git a/src/components/middleEllipsis.ts b/src/components/middleEllipsis.ts index 2ffab696..af3208f6 100644 --- a/src/components/middleEllipsis.ts +++ b/src/components/middleEllipsis.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + // Thanks to https://stackoverflow.com/a/49349813 import { clamp } from "../helpers/number"; diff --git a/src/components/misc.ts b/src/components/misc.ts index 991cced0..e55af6a3 100644 --- a/src/components/misc.ts +++ b/src/components/misc.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { MOUNT_CLASS_TO } from "../config/debug"; import Countries, { Country, PhoneCodesMain } from "../countries"; import { cancelEvent, CLICK_EVENT_NAME } from "../helpers/dom"; diff --git a/src/components/monkeys/index.ts b/src/components/monkeys/index.ts index aa6142e8..c04286ab 100644 --- a/src/components/monkeys/index.ts +++ b/src/components/monkeys/index.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import InputField from "../inputField"; export default interface Monkey { diff --git a/src/components/monkeys/password.ts b/src/components/monkeys/password.ts index f56083f6..301bd277 100644 --- a/src/components/monkeys/password.ts +++ b/src/components/monkeys/password.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import lottieLoader, { RLottiePlayer } from "../../lib/lottieLoader"; import PasswordInputField from "../passwordInputField"; diff --git a/src/components/monkeys/tracking.ts b/src/components/monkeys/tracking.ts index ebd99e18..6aaaa4c9 100644 --- a/src/components/monkeys/tracking.ts +++ b/src/components/monkeys/tracking.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import InputField from "../inputField"; import lottieLoader, { RLottiePlayer } from "../../lib/lottieLoader"; diff --git a/src/components/passwordInputField.ts b/src/components/passwordInputField.ts index 1b262fe7..d1cf2ed0 100644 --- a/src/components/passwordInputField.ts +++ b/src/components/passwordInputField.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { cancelEvent } from "../helpers/dom"; import InputField, { InputFieldOptions } from "./inputField"; diff --git a/src/components/peerTitle.ts b/src/components/peerTitle.ts index 74b840bf..c36ec33c 100644 --- a/src/components/peerTitle.ts +++ b/src/components/peerTitle.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { MOUNT_CLASS_TO } from "../config/debug"; import appPeersManager from "../lib/appManagers/appPeersManager"; import rootScope from "../lib/rootScope"; diff --git a/src/components/poll.ts b/src/components/poll.ts index c556290c..d70bb5d7 100644 --- a/src/components/poll.ts +++ b/src/components/poll.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import mediaSizes from "../helpers/mediaSizes"; import { isTouchSupported } from "../helpers/touchSupport"; import appImManager from "../lib/appManagers/appImManager"; diff --git a/src/components/popups/avatar.ts b/src/components/popups/avatar.ts index 4abcf243..3324afc4 100644 --- a/src/components/popups/avatar.ts +++ b/src/components/popups/avatar.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import appDownloadManager from "../../lib/appManagers/appDownloadManager"; import resizeableImage from "../../lib/cropper"; import PopupElement from "."; diff --git a/src/components/popups/createPoll.ts b/src/components/popups/createPoll.ts index 6c647421..362cd9ef 100644 --- a/src/components/popups/createPoll.ts +++ b/src/components/popups/createPoll.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import type { Poll } from "../../lib/appManagers/appPollsManager"; import type Chat from "../chat/chat"; import PopupElement from "."; diff --git a/src/components/popups/datePicker.ts b/src/components/popups/datePicker.ts index 86c548b9..c3bf1d73 100644 --- a/src/components/popups/datePicker.ts +++ b/src/components/popups/datePicker.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import PopupElement, { PopupOptions } from "."; import { getFullDate } from "../../helpers/date"; import mediaSizes from "../../helpers/mediaSizes"; diff --git a/src/components/popups/deleteDialog.ts b/src/components/popups/deleteDialog.ts index 208892bf..905066ff 100644 --- a/src/components/popups/deleteDialog.ts +++ b/src/components/popups/deleteDialog.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import appChatsManager from "../../lib/appManagers/appChatsManager"; import appMessagesManager from "../../lib/appManagers/appMessagesManager"; import appPeersManager, { PeerType } from "../../lib/appManagers/appPeersManager"; diff --git a/src/components/popups/deleteMessages.ts b/src/components/popups/deleteMessages.ts index eda85b30..600a66ee 100644 --- a/src/components/popups/deleteMessages.ts +++ b/src/components/popups/deleteMessages.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import appChatsManager from "../../lib/appManagers/appChatsManager"; import appMessagesManager from "../../lib/appManagers/appMessagesManager"; import rootScope from "../../lib/rootScope"; diff --git a/src/components/popups/forward.ts b/src/components/popups/forward.ts index 897610cc..e98b68dc 100644 --- a/src/components/popups/forward.ts +++ b/src/components/popups/forward.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import appImManager from "../../lib/appManagers/appImManager"; import PopupPickUser from "./pickUser"; diff --git a/src/components/popups/index.ts b/src/components/popups/index.ts index 7736fee1..a9238362 100644 --- a/src/components/popups/index.ts +++ b/src/components/popups/index.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import rootScope from "../../lib/rootScope"; import { blurActiveElement } from "../../helpers/dom"; import { ripple } from "../ripple"; diff --git a/src/components/popups/newMedia.ts b/src/components/popups/newMedia.ts index 6e12edfa..4eccb6fc 100644 --- a/src/components/popups/newMedia.ts +++ b/src/components/popups/newMedia.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import type Chat from "../chat/chat"; import { isTouchSupported } from "../../helpers/touchSupport"; import { calcImageInBox, placeCaretAtEnd, isSendShortcutPressed } from "../../helpers/dom"; diff --git a/src/components/popups/peer.ts b/src/components/popups/peer.ts index 2e786623..83c9f0cd 100644 --- a/src/components/popups/peer.ts +++ b/src/components/popups/peer.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import AvatarElement from "../avatar"; import PopupElement, { addCancelButton, PopupButton, PopupOptions } from "."; import { i18n, LangPackKey } from "../../lib/langPack"; diff --git a/src/components/popups/pickUser.ts b/src/components/popups/pickUser.ts index d9fdb3d2..1d08d8da 100644 --- a/src/components/popups/pickUser.ts +++ b/src/components/popups/pickUser.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { isTouchSupported } from "../../helpers/touchSupport"; import AppSelectPeers from "../appSelectPeers"; import PopupElement from "."; diff --git a/src/components/popups/schedule.ts b/src/components/popups/schedule.ts index 78e90be9..2bcc1e8c 100644 --- a/src/components/popups/schedule.ts +++ b/src/components/popups/schedule.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import PopupDatePicker from "./datePicker"; const getMinDate = () => { diff --git a/src/components/popups/sendNow.ts b/src/components/popups/sendNow.ts index 0bb2261d..fc8947de 100644 --- a/src/components/popups/sendNow.ts +++ b/src/components/popups/sendNow.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import appMessagesManager from "../../lib/appManagers/appMessagesManager"; import { PopupButton } from "."; import PopupPeer from "./peer"; diff --git a/src/components/popups/stickers.ts b/src/components/popups/stickers.ts index 2f1f4752..6ef45ce7 100644 --- a/src/components/popups/stickers.ts +++ b/src/components/popups/stickers.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import PopupElement from "."; import appStickersManager from "../../lib/appManagers/appStickersManager"; import { RichTextProcessor } from "../../lib/richtextprocessor"; diff --git a/src/components/popups/unpinMessage.ts b/src/components/popups/unpinMessage.ts index cb13e676..2a100e90 100644 --- a/src/components/popups/unpinMessage.ts +++ b/src/components/popups/unpinMessage.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import appMessagesManager from "../../lib/appManagers/appMessagesManager"; import { addCancelButton, PopupButton } from "."; import PopupPeer from "./peer"; diff --git a/src/components/preloader.ts b/src/components/preloader.ts index 2133bba0..848afbbe 100644 --- a/src/components/preloader.ts +++ b/src/components/preloader.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { isInDOM, cancelEvent, attachClickEvent } from "../helpers/dom"; import { CancellablePromise } from "../helpers/cancellablePromise"; import SetTransition from "./singleTransition"; diff --git a/src/components/privacySection.ts b/src/components/privacySection.ts index 3b46577f..0f627808 100644 --- a/src/components/privacySection.ts +++ b/src/components/privacySection.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { randomLong } from "../helpers/random"; import { InputPrivacyKey, InputPrivacyRule } from "../layer"; import appPrivacyManager, { PrivacyType } from "../lib/appManagers/appPrivacyManager"; diff --git a/src/components/radioField.ts b/src/components/radioField.ts index 0390bf4a..48613942 100644 --- a/src/components/radioField.ts +++ b/src/components/radioField.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import appStateManager from "../lib/appManagers/appStateManager"; import { getDeepProperty } from "../helpers/object"; import { LangPackKey, _i18n } from "../lib/langPack"; diff --git a/src/components/radioForm.ts b/src/components/radioForm.ts index 3f9f2e0d..d978b1c8 100644 --- a/src/components/radioForm.ts +++ b/src/components/radioForm.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + export default function RadioForm(radios: {container: HTMLElement, input: HTMLInputElement}[], onChange: (value: string) => void) { const form = document.createElement('form'); @@ -12,4 +18,4 @@ export default function RadioForm(radios: {container: HTMLElement, input: HTMLIn }); return form; -} \ No newline at end of file +} diff --git a/src/components/rangeSelector.ts b/src/components/rangeSelector.ts index 41d5390f..e7ad2d60 100644 --- a/src/components/rangeSelector.ts +++ b/src/components/rangeSelector.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { isTouchSupported } from "../helpers/touchSupport"; import { clamp } from "../helpers/number"; diff --git a/src/components/ripple.ts b/src/components/ripple.ts index a21ff124..45bffe3e 100644 --- a/src/components/ripple.ts +++ b/src/components/ripple.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import findUpClassName from "../helpers/dom/findUpClassName"; import {isTouchSupported} from "../helpers/touchSupport"; import rootScope from "../lib/rootScope"; diff --git a/src/components/row.ts b/src/components/row.ts index 84581f5f..7a764549 100644 --- a/src/components/row.ts +++ b/src/components/row.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import CheckboxField from "./checkboxField"; import RadioField from "./radioField"; import { ripple } from "./ripple"; diff --git a/src/components/scrollable.ts b/src/components/scrollable.ts index e3212037..46dd7ff5 100644 --- a/src/components/scrollable.ts +++ b/src/components/scrollable.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { isTouchSupported } from "../helpers/touchSupport"; import { logger, LogLevels } from "../lib/logger"; import fastSmoothScroll, { FocusDirection } from "../helpers/fastSmoothScroll"; diff --git a/src/components/sidebarLeft/index.ts b/src/components/sidebarLeft/index.ts index f15ebe1f..18cb9bb1 100644 --- a/src/components/sidebarLeft/index.ts +++ b/src/components/sidebarLeft/index.ts @@ -1,4 +1,10 @@ //import { logger } from "../polyfill"; +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { formatNumber } from "../../helpers/number"; import appImManager from "../../lib/appManagers/appImManager"; import appPeersManager from "../../lib/appManagers/appPeersManager"; diff --git a/src/components/sidebarLeft/tabs/2fa/email.ts b/src/components/sidebarLeft/tabs/2fa/email.ts index b2c82f3a..48638ecb 100644 --- a/src/components/sidebarLeft/tabs/2fa/email.ts +++ b/src/components/sidebarLeft/tabs/2fa/email.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SettingSection } from "../.."; import { AccountPassword } from "../../../../layer"; import appStickersManager from "../../../../lib/appManagers/appStickersManager"; diff --git a/src/components/sidebarLeft/tabs/2fa/emailConfirmation.ts b/src/components/sidebarLeft/tabs/2fa/emailConfirmation.ts index b23134df..66c1fc93 100644 --- a/src/components/sidebarLeft/tabs/2fa/emailConfirmation.ts +++ b/src/components/sidebarLeft/tabs/2fa/emailConfirmation.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SettingSection } from "../.."; import { AccountPassword } from "../../../../layer"; import appStickersManager from "../../../../lib/appManagers/appStickersManager"; diff --git a/src/components/sidebarLeft/tabs/2fa/enterPassword.ts b/src/components/sidebarLeft/tabs/2fa/enterPassword.ts index 218d1408..121f668d 100644 --- a/src/components/sidebarLeft/tabs/2fa/enterPassword.ts +++ b/src/components/sidebarLeft/tabs/2fa/enterPassword.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import AppTwoStepVerificationTab from "."; import { SettingSection } from "../.."; import { attachClickEvent, cancelEvent, canFocus, replaceContent } from "../../../../helpers/dom"; diff --git a/src/components/sidebarLeft/tabs/2fa/hint.ts b/src/components/sidebarLeft/tabs/2fa/hint.ts index b57885f3..9d7b0786 100644 --- a/src/components/sidebarLeft/tabs/2fa/hint.ts +++ b/src/components/sidebarLeft/tabs/2fa/hint.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SettingSection } from "../.."; import { AccountPassword } from "../../../../layer"; import appStickersManager from "../../../../lib/appManagers/appStickersManager"; diff --git a/src/components/sidebarLeft/tabs/2fa/index.ts b/src/components/sidebarLeft/tabs/2fa/index.ts index 83fb578b..5d2ba1e1 100644 --- a/src/components/sidebarLeft/tabs/2fa/index.ts +++ b/src/components/sidebarLeft/tabs/2fa/index.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SettingSection } from "../.."; import { attachClickEvent } from "../../../../helpers/dom"; import { AccountPassword } from "../../../../layer"; diff --git a/src/components/sidebarLeft/tabs/2fa/passwordSet.ts b/src/components/sidebarLeft/tabs/2fa/passwordSet.ts index a72523e7..98e86eee 100644 --- a/src/components/sidebarLeft/tabs/2fa/passwordSet.ts +++ b/src/components/sidebarLeft/tabs/2fa/passwordSet.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SettingSection } from "../.."; import { attachClickEvent } from "../../../../helpers/dom"; import appStickersManager from "../../../../lib/appManagers/appStickersManager"; diff --git a/src/components/sidebarLeft/tabs/2fa/reEnterPassword.ts b/src/components/sidebarLeft/tabs/2fa/reEnterPassword.ts index 53e3cbe5..7dc5df8f 100644 --- a/src/components/sidebarLeft/tabs/2fa/reEnterPassword.ts +++ b/src/components/sidebarLeft/tabs/2fa/reEnterPassword.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SettingSection } from "../.."; import { attachClickEvent, cancelEvent } from "../../../../helpers/dom"; import { AccountPassword } from "../../../../layer"; diff --git a/src/components/sidebarLeft/tabs/activeSessions.ts b/src/components/sidebarLeft/tabs/activeSessions.ts index 2f3ef488..aa9367e2 100644 --- a/src/components/sidebarLeft/tabs/activeSessions.ts +++ b/src/components/sidebarLeft/tabs/activeSessions.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SliderSuperTab } from "../../slider"; import { SettingSection } from ".."; import Button from "../../button"; diff --git a/src/components/sidebarLeft/tabs/addMembers.ts b/src/components/sidebarLeft/tabs/addMembers.ts index 110e020c..4b8581dd 100644 --- a/src/components/sidebarLeft/tabs/addMembers.ts +++ b/src/components/sidebarLeft/tabs/addMembers.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SliderSuperTab } from "../../slider"; import AppSelectPeers from "../../appSelectPeers"; import { putPreloader } from "../../misc"; diff --git a/src/components/sidebarLeft/tabs/archivedTab.ts b/src/components/sidebarLeft/tabs/archivedTab.ts index 5c5fc839..ddf9c8a8 100644 --- a/src/components/sidebarLeft/tabs/archivedTab.ts +++ b/src/components/sidebarLeft/tabs/archivedTab.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import appDialogsManager from "../../../lib/appManagers/appDialogsManager"; import { SliderSuperTab } from "../../slider"; diff --git a/src/components/sidebarLeft/tabs/background.ts b/src/components/sidebarLeft/tabs/background.ts index 1598452a..4667efcc 100644 --- a/src/components/sidebarLeft/tabs/background.ts +++ b/src/components/sidebarLeft/tabs/background.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { generateSection } from ".."; import { averageColor } from "../../../helpers/averageColor"; import blur from "../../../helpers/blur"; diff --git a/src/components/sidebarLeft/tabs/blockedUsers.ts b/src/components/sidebarLeft/tabs/blockedUsers.ts index 46bd92fc..5a476f2c 100644 --- a/src/components/sidebarLeft/tabs/blockedUsers.ts +++ b/src/components/sidebarLeft/tabs/blockedUsers.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SliderSuperTab } from "../../slider"; import { SettingSection } from ".."; import { attachContextMenuListener, openBtnMenu, positionMenu } from "../../misc"; diff --git a/src/components/sidebarLeft/tabs/chatFolders.ts b/src/components/sidebarLeft/tabs/chatFolders.ts index 54ce9128..3886e94f 100644 --- a/src/components/sidebarLeft/tabs/chatFolders.ts +++ b/src/components/sidebarLeft/tabs/chatFolders.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SliderSuperTab } from "../../slider"; import lottieLoader, { RLottiePlayer } from "../../../lib/lottieLoader"; import { RichTextProcessor } from "../../../lib/richtextprocessor"; diff --git a/src/components/sidebarLeft/tabs/contacts.ts b/src/components/sidebarLeft/tabs/contacts.ts index 50c74a4a..302d0c99 100644 --- a/src/components/sidebarLeft/tabs/contacts.ts +++ b/src/components/sidebarLeft/tabs/contacts.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SliderSuperTab } from "../../slider"; import appDialogsManager from "../../../lib/appManagers/appDialogsManager"; import appUsersManager from "../../../lib/appManagers/appUsersManager"; diff --git a/src/components/sidebarLeft/tabs/editFolder.ts b/src/components/sidebarLeft/tabs/editFolder.ts index baf53a14..8f85932e 100644 --- a/src/components/sidebarLeft/tabs/editFolder.ts +++ b/src/components/sidebarLeft/tabs/editFolder.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { deepEqual, copy } from "../../../helpers/object"; import appDialogsManager from "../../../lib/appManagers/appDialogsManager"; import { MyDialogFilter as DialogFilter } from "../../../lib/storages/filters"; diff --git a/src/components/sidebarLeft/tabs/editProfile.ts b/src/components/sidebarLeft/tabs/editProfile.ts index 9c1edc59..380305a1 100644 --- a/src/components/sidebarLeft/tabs/editProfile.ts +++ b/src/components/sidebarLeft/tabs/editProfile.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import appProfileManager from "../../../lib/appManagers/appProfileManager"; import appUsersManager from "../../../lib/appManagers/appUsersManager"; import InputField from "../../inputField"; diff --git a/src/components/sidebarLeft/tabs/generalSettings.ts b/src/components/sidebarLeft/tabs/generalSettings.ts index 2d47cb3f..14876711 100644 --- a/src/components/sidebarLeft/tabs/generalSettings.ts +++ b/src/components/sidebarLeft/tabs/generalSettings.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SliderSuperTab } from "../../slider" import { generateSection } from ".."; import RangeSelector from "../../rangeSelector"; diff --git a/src/components/sidebarLeft/tabs/includedChats.ts b/src/components/sidebarLeft/tabs/includedChats.ts index 0b55e521..6fcb82a9 100644 --- a/src/components/sidebarLeft/tabs/includedChats.ts +++ b/src/components/sidebarLeft/tabs/includedChats.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SliderSuperTab } from "../../slider"; import AppSelectPeers from "../../appSelectPeers"; import appDialogsManager from "../../../lib/appManagers/appDialogsManager"; diff --git a/src/components/sidebarLeft/tabs/language.ts b/src/components/sidebarLeft/tabs/language.ts index d687649c..125e44a3 100644 --- a/src/components/sidebarLeft/tabs/language.ts +++ b/src/components/sidebarLeft/tabs/language.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SettingSection } from ".."; import { randomLong } from "../../../helpers/random"; import I18n from "../../../lib/langPack"; diff --git a/src/components/sidebarLeft/tabs/newChannel.ts b/src/components/sidebarLeft/tabs/newChannel.ts index ff729e3b..2fe16bf1 100644 --- a/src/components/sidebarLeft/tabs/newChannel.ts +++ b/src/components/sidebarLeft/tabs/newChannel.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import appSidebarLeft from ".."; import { InputFile } from "../../../layer"; import appChatsManager from "../../../lib/appManagers/appChatsManager"; diff --git a/src/components/sidebarLeft/tabs/newGroup.ts b/src/components/sidebarLeft/tabs/newGroup.ts index ab961b72..3c38a68d 100644 --- a/src/components/sidebarLeft/tabs/newGroup.ts +++ b/src/components/sidebarLeft/tabs/newGroup.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import appSidebarLeft from ".."; import { InputFile } from "../../../layer"; import appChatsManager from "../../../lib/appManagers/appChatsManager"; diff --git a/src/components/sidebarLeft/tabs/notifications.ts b/src/components/sidebarLeft/tabs/notifications.ts index a4470a00..587fa56e 100644 --- a/src/components/sidebarLeft/tabs/notifications.ts +++ b/src/components/sidebarLeft/tabs/notifications.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SettingSection } from ".."; import Row from "../../row"; import CheckboxField from "../../checkboxField"; diff --git a/src/components/sidebarLeft/tabs/privacy/addToGroups.ts b/src/components/sidebarLeft/tabs/privacy/addToGroups.ts index 881af408..7c1966f0 100644 --- a/src/components/sidebarLeft/tabs/privacy/addToGroups.ts +++ b/src/components/sidebarLeft/tabs/privacy/addToGroups.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SliderSuperTabEventable } from "../../../sliderTab"; import PrivacySection from "../../../privacySection"; import { LangPackKey } from "../../../../lib/langPack"; diff --git a/src/components/sidebarLeft/tabs/privacy/calls.ts b/src/components/sidebarLeft/tabs/privacy/calls.ts index 723bfa6e..4012b4a6 100644 --- a/src/components/sidebarLeft/tabs/privacy/calls.ts +++ b/src/components/sidebarLeft/tabs/privacy/calls.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SliderSuperTabEventable } from "../../../sliderTab"; import PrivacySection from "../../../privacySection"; import { LangPackKey } from "../../../../lib/langPack"; diff --git a/src/components/sidebarLeft/tabs/privacy/forwardMessages.ts b/src/components/sidebarLeft/tabs/privacy/forwardMessages.ts index 2558cccb..a265cc86 100644 --- a/src/components/sidebarLeft/tabs/privacy/forwardMessages.ts +++ b/src/components/sidebarLeft/tabs/privacy/forwardMessages.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SliderSuperTabEventable } from "../../../sliderTab"; import PrivacySection from "../../../privacySection"; import { LangPackKey } from "../../../../lib/langPack"; diff --git a/src/components/sidebarLeft/tabs/privacy/lastSeen.ts b/src/components/sidebarLeft/tabs/privacy/lastSeen.ts index 52eb60fb..35f839a0 100644 --- a/src/components/sidebarLeft/tabs/privacy/lastSeen.ts +++ b/src/components/sidebarLeft/tabs/privacy/lastSeen.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SliderSuperTabEventable } from "../../../sliderTab"; import PrivacySection from "../../../privacySection"; import { LangPackKey } from "../../../../lib/langPack"; diff --git a/src/components/sidebarLeft/tabs/privacy/profilePhoto.ts b/src/components/sidebarLeft/tabs/privacy/profilePhoto.ts index 0f9cbf1d..f8e61160 100644 --- a/src/components/sidebarLeft/tabs/privacy/profilePhoto.ts +++ b/src/components/sidebarLeft/tabs/privacy/profilePhoto.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SliderSuperTabEventable } from "../../../sliderTab"; import PrivacySection from "../../../privacySection"; import { PrivacyType } from "../../../../lib/appManagers/appPrivacyManager"; diff --git a/src/components/sidebarLeft/tabs/privacyAndSecurity.ts b/src/components/sidebarLeft/tabs/privacyAndSecurity.ts index db6eeaa3..b80536ad 100644 --- a/src/components/sidebarLeft/tabs/privacyAndSecurity.ts +++ b/src/components/sidebarLeft/tabs/privacyAndSecurity.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SliderSuperTab } from "../../slider"; import { generateSection, SettingSection } from ".."; import Row from "../../row"; diff --git a/src/components/sidebarLeft/tabs/settings.ts b/src/components/sidebarLeft/tabs/settings.ts index d64a08f4..a726f93e 100644 --- a/src/components/sidebarLeft/tabs/settings.ts +++ b/src/components/sidebarLeft/tabs/settings.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SliderSuperTab } from "../../slider"; import AvatarElement from "../../avatar"; import apiManager from "../../../lib/mtproto/mtprotoworker"; diff --git a/src/components/sidebarRight/index.ts b/src/components/sidebarRight/index.ts index 968a797c..d76d2a4b 100644 --- a/src/components/sidebarRight/index.ts +++ b/src/components/sidebarRight/index.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import appImManager from "../../lib/appManagers/appImManager"; import SidebarSlider from "../slider"; import mediaSizes, { ScreenSize } from "../../helpers/mediaSizes"; diff --git a/src/components/sidebarRight/tabs/editChannel.ts b/src/components/sidebarRight/tabs/editChannel.ts index 65f97416..421c2e68 100644 --- a/src/components/sidebarRight/tabs/editChannel.ts +++ b/src/components/sidebarRight/tabs/editChannel.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SliderSuperTab } from "../../slider" import InputField from "../../inputField"; import EditPeer from "../../editPeer"; diff --git a/src/components/sidebarRight/tabs/editContact.ts b/src/components/sidebarRight/tabs/editContact.ts index 2ddceb3b..595a3509 100644 --- a/src/components/sidebarRight/tabs/editContact.ts +++ b/src/components/sidebarRight/tabs/editContact.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SliderSuperTab } from "../../slider" import InputField from "../../inputField"; import EditPeer from "../../editPeer"; diff --git a/src/components/sidebarRight/tabs/editGroup.ts b/src/components/sidebarRight/tabs/editGroup.ts index 54d86fd6..2d012ff5 100644 --- a/src/components/sidebarRight/tabs/editGroup.ts +++ b/src/components/sidebarRight/tabs/editGroup.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SliderSuperTab } from "../../slider" import InputField from "../../inputField"; import EditPeer from "../../editPeer"; diff --git a/src/components/sidebarRight/tabs/forward.ts b/src/components/sidebarRight/tabs/forward.ts index 11c313dc..c3cac94c 100644 --- a/src/components/sidebarRight/tabs/forward.ts +++ b/src/components/sidebarRight/tabs/forward.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import appSidebarRight from ".."; import appMessagesManager from "../../../lib/appManagers/appMessagesManager"; import AppSelectPeers from "../../appSelectPeers"; diff --git a/src/components/sidebarRight/tabs/gifs.ts b/src/components/sidebarRight/tabs/gifs.ts index 91a364b6..4a99889e 100644 --- a/src/components/sidebarRight/tabs/gifs.ts +++ b/src/components/sidebarRight/tabs/gifs.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SliderSuperTab } from "../../slider"; import InputSearch from "../../inputSearch"; import animationIntersector from "../../animationIntersector"; diff --git a/src/components/sidebarRight/tabs/groupPermissions.ts b/src/components/sidebarRight/tabs/groupPermissions.ts index f1e9fee3..f5f0a8e8 100644 --- a/src/components/sidebarRight/tabs/groupPermissions.ts +++ b/src/components/sidebarRight/tabs/groupPermissions.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { attachClickEvent } from "../../../helpers/dom"; import findUpTag from "../../../helpers/dom/findUpTag"; import ListenerSetter from "../../../helpers/listenerSetter"; diff --git a/src/components/sidebarRight/tabs/groupType.ts b/src/components/sidebarRight/tabs/groupType.ts index 7b7651a6..844ebc7b 100644 --- a/src/components/sidebarRight/tabs/groupType.ts +++ b/src/components/sidebarRight/tabs/groupType.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { copyTextToClipboard } from "../../../helpers/clipboard"; import { attachClickEvent, toggleDisability } from "../../../helpers/dom"; import { randomLong } from "../../../helpers/random"; diff --git a/src/components/sidebarRight/tabs/pollResults.ts b/src/components/sidebarRight/tabs/pollResults.ts index d27dc315..e9d26d20 100644 --- a/src/components/sidebarRight/tabs/pollResults.ts +++ b/src/components/sidebarRight/tabs/pollResults.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SliderSuperTab } from "../../slider"; import appSidebarRight from ".."; import appPollsManager from "../../../lib/appManagers/appPollsManager"; diff --git a/src/components/sidebarRight/tabs/search.ts b/src/components/sidebarRight/tabs/search.ts index 3d617682..60725821 100644 --- a/src/components/sidebarRight/tabs/search.ts +++ b/src/components/sidebarRight/tabs/search.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import appSidebarRight, { AppSidebarRight } from ".."; import AppSearch, { SearchGroup } from "../../appSearch"; import InputSearch from "../../inputSearch"; diff --git a/src/components/sidebarRight/tabs/sharedMedia.ts b/src/components/sidebarRight/tabs/sharedMedia.ts index 370d33cf..ca9a6d3e 100644 --- a/src/components/sidebarRight/tabs/sharedMedia.ts +++ b/src/components/sidebarRight/tabs/sharedMedia.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import appImManager from "../../../lib/appManagers/appImManager"; import appMessagesManager from "../../../lib/appManagers/appMessagesManager"; import appPeersManager from "../../../lib/appManagers/appPeersManager"; diff --git a/src/components/sidebarRight/tabs/stickers.ts b/src/components/sidebarRight/tabs/stickers.ts index 8722c963..727f581f 100644 --- a/src/components/sidebarRight/tabs/stickers.ts +++ b/src/components/sidebarRight/tabs/stickers.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { SliderSuperTab } from "../../slider"; import InputSearch from "../../inputSearch"; import LazyLoadQueue from "../../lazyLoadQueue"; diff --git a/src/components/sidebarRight/tabs/userPermissions.ts b/src/components/sidebarRight/tabs/userPermissions.ts index fc2c9937..fb9b38f9 100644 --- a/src/components/sidebarRight/tabs/userPermissions.ts +++ b/src/components/sidebarRight/tabs/userPermissions.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { attachClickEvent, toggleDisability } from "../../../helpers/dom"; import { deepEqual } from "../../../helpers/object"; import { ChannelParticipant } from "../../../layer"; diff --git a/src/components/singleTransition.ts b/src/components/singleTransition.ts index 2dfd4ef1..7cd3e6d6 100644 --- a/src/components/singleTransition.ts +++ b/src/components/singleTransition.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import rootScope from "../lib/rootScope"; const SetTransition = (element: HTMLElement, className: string, forwards: boolean, duration: number, onTransitionEnd?: () => void) => { @@ -33,4 +39,4 @@ const SetTransition = (element: HTMLElement, className: string, forwards: boolea element.dataset.timeout = '' + setTimeout(afterTimeout, duration); }; -export default SetTransition; \ No newline at end of file +export default SetTransition; diff --git a/src/components/slider.ts b/src/components/slider.ts index 3f44ad4a..4814b86e 100644 --- a/src/components/slider.ts +++ b/src/components/slider.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { attachClickEvent } from "../helpers/dom"; import { horizontalMenu } from "./horizontalMenu"; import { TransitionSlider } from "./transition"; diff --git a/src/components/sliderTab.ts b/src/components/sliderTab.ts index 7e9a2211..b73659aa 100644 --- a/src/components/sliderTab.ts +++ b/src/components/sliderTab.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import EventListenerBase from "../helpers/eventListenerBase"; import ListenerSetter from "../helpers/listenerSetter"; import { i18n, LangPackKey } from "../lib/langPack"; diff --git a/src/components/stickyIntersector.ts b/src/components/stickyIntersector.ts index 4951af5b..22403444 100644 --- a/src/components/stickyIntersector.ts +++ b/src/components/stickyIntersector.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + export default class StickyIntersector { private headersObserver: IntersectionObserver; private elementsObserver: IntersectionObserver; diff --git a/src/components/swipeHandler.ts b/src/components/swipeHandler.ts index 8663f1e8..d0d12546 100644 --- a/src/components/swipeHandler.ts +++ b/src/components/swipeHandler.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { cancelEvent } from "../helpers/dom"; import { safeAssign } from "../helpers/object"; import { isTouchSupported } from "../helpers/touchSupport"; diff --git a/src/components/toast.ts b/src/components/toast.ts index 1215d641..d57221b9 100644 --- a/src/components/toast.ts +++ b/src/components/toast.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + const toastEl = document.createElement('div'); toastEl.classList.add('toast'); export function toast(html: string) { @@ -9,4 +15,4 @@ export function toast(html: string) { toastEl.remove(); delete toastEl.dataset.timeout; }, 3000); -} \ No newline at end of file +} diff --git a/src/components/transition.ts b/src/components/transition.ts index 32892d9c..de6081ef 100644 --- a/src/components/transition.ts +++ b/src/components/transition.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { whichChild } from "../helpers/dom"; import rootScope from "../lib/rootScope"; import { CancellablePromise, deferredPromise } from "../helpers/cancellablePromise"; diff --git a/src/components/usernameInputField.ts b/src/components/usernameInputField.ts index c1fb8e73..e7881272 100644 --- a/src/components/usernameInputField.ts +++ b/src/components/usernameInputField.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import ListenerSetter from "../helpers/listenerSetter"; import { debounce } from "../helpers/schedulers"; import appChatsManager from "../lib/appManagers/appChatsManager"; diff --git a/src/components/visibilityIntersector.ts b/src/components/visibilityIntersector.ts index 0a75489f..0ff90ef6 100644 --- a/src/components/visibilityIntersector.ts +++ b/src/components/visibilityIntersector.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + type TargetType = HTMLElement; export type OnVisibilityChange = (target: TargetType, visible: boolean) => void; diff --git a/src/components/wrappers.ts b/src/components/wrappers.ts index bf65e6d8..2d0ddb9a 100644 --- a/src/components/wrappers.ts +++ b/src/components/wrappers.ts @@ -1,5 +1,11 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import type Chat from './chat/chat'; -import { getEmojiToneIndex } from '../emoji'; +import { getEmojiToneIndex } from '../vendor/emoji'; import { readBlobAsText } from '../helpers/blob'; import { deferredPromise } from '../helpers/cancellablePromise'; import { formatDateAccordingToToday, months } from '../helpers/date'; diff --git a/src/config/app.ts b/src/config/app.ts index ee1d7e96..7fbfffc5 100644 --- a/src/config/app.ts +++ b/src/config/app.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + const App = { id: 1025907, hash: '452b0359b988148995f22ff0f4229750', diff --git a/src/config/database.ts b/src/config/database.ts index 4652e9bd..65256202 100644 --- a/src/config/database.ts +++ b/src/config/database.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { IDBStore } from "../lib/idb"; import Modes from "./modes"; diff --git a/src/config/debug.ts b/src/config/debug.ts index 5c716515..e63532f9 100644 --- a/src/config/debug.ts +++ b/src/config/debug.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import Modes from "./modes"; export const DEBUG = process.env.NODE_ENV !== 'production' || Modes.debug; diff --git a/src/config/modes.ts b/src/config/modes.ts index 2633dd36..eb1b63b8 100644 --- a/src/config/modes.ts +++ b/src/config/modes.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + const Modes = { test: location.search.indexOf('test=1') > 0/* || true */, debug: location.search.indexOf('debug=1') > 0, diff --git a/src/countries.ts b/src/countries.ts index 7be90f41..b4bdeb78 100644 --- a/src/countries.ts +++ b/src/countries.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { MOUNT_CLASS_TO } from "./config/debug"; export type Country = { diff --git a/src/helpers/animation.ts b/src/helpers/animation.ts index bfeea441..39da0c1f 100644 --- a/src/helpers/animation.ts +++ b/src/helpers/animation.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + // * Jolly Cobra's animation.ts import { fastRaf } from './schedulers'; diff --git a/src/helpers/applyMixins.ts b/src/helpers/applyMixins.ts index 759280ae..66547593 100644 --- a/src/helpers/applyMixins.ts +++ b/src/helpers/applyMixins.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + export default function applyMixins(derivedCtor: any, constructors: any[]) { const callbacks: Array<(...args: any[]) => any> = []; diff --git a/src/helpers/array.ts b/src/helpers/array.ts index 26796cf8..7c644f29 100644 --- a/src/helpers/array.ts +++ b/src/helpers/array.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + /* import { copy } from "./object"; export function listMergeSorted(list1: any[] = [], list2: any[] = []) { diff --git a/src/helpers/averageColor.ts b/src/helpers/averageColor.ts index 3a1d3118..92674002 100644 --- a/src/helpers/averageColor.ts +++ b/src/helpers/averageColor.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import renderImageFromUrl from "./dom/renderImageFromUrl"; export const averageColor = (imageUrl: string): Promise => { @@ -38,4 +44,4 @@ export const averageColor = (imageUrl: string): Promise => { resolve(outPixel); }); }); -}; \ No newline at end of file +}; diff --git a/src/helpers/blob.ts b/src/helpers/blob.ts index ebd94715..2d300d3c 100644 --- a/src/helpers/blob.ts +++ b/src/helpers/blob.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + export const readBlobAsText = (blob: Blob) => { return new Promise(resolve => { const reader = new FileReader(); @@ -44,4 +55,4 @@ export function blobSafeMimeType(mimeType: string) { } return mimeType; -} \ No newline at end of file +} diff --git a/src/helpers/blur.ts b/src/helpers/blur.ts index 12c3c98d..88fb5b73 100644 --- a/src/helpers/blur.ts +++ b/src/helpers/blur.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import _DEBUG from '../config/debug'; import fastBlur from '../vendor/fastBlur'; import pushHeavyTask from './heavyQueue'; diff --git a/src/helpers/bytes.ts b/src/helpers/bytes.ts index d0c636eb..25549cf7 100644 --- a/src/helpers/bytes.ts +++ b/src/helpers/bytes.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + export function bytesToHex(bytes: ArrayLike) { bytes = bytes || []; let arr: string[] = []; diff --git a/src/helpers/cancellablePromise.ts b/src/helpers/cancellablePromise.ts index fe46ed04..ee8cd98b 100644 --- a/src/helpers/cancellablePromise.ts +++ b/src/helpers/cancellablePromise.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + export interface CancellablePromise extends Promise { resolve?: (...args: any[]) => void, reject?: (...args: any[]) => void, diff --git a/src/helpers/clipboard.ts b/src/helpers/clipboard.ts index 9296b34c..4fb0f211 100644 --- a/src/helpers/clipboard.ts +++ b/src/helpers/clipboard.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + // https://stackoverflow.com/a/30810322 function fallbackCopyTextToClipboard(text: string) { var textArea = document.createElement("textarea"); diff --git a/src/helpers/color.ts b/src/helpers/color.ts index 425a02c5..a669c057 100644 --- a/src/helpers/color.ts +++ b/src/helpers/color.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + export function rgbToHsl(r: number, g: number, b: number) { r /= 255, g /= 255, b /= 255; let max = Math.max(r, g, b), diff --git a/src/helpers/context.ts b/src/helpers/context.ts index cadd0959..b41bdbc4 100644 --- a/src/helpers/context.ts +++ b/src/helpers/context.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + export const isWebWorker = typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope; export const isServiceWorker = typeof ServiceWorkerGlobalScope !== 'undefined' && self instanceof ServiceWorkerGlobalScope; export const isWorker = isWebWorker || isServiceWorker; diff --git a/src/helpers/date.ts b/src/helpers/date.ts index ef7c9a53..5a279d36 100644 --- a/src/helpers/date.ts +++ b/src/helpers/date.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { MOUNT_CLASS_TO } from "../config/debug"; import I18n from "../lib/langPack"; diff --git a/src/helpers/dom.ts b/src/helpers/dom.ts index efa4a5c4..aef84518 100644 --- a/src/helpers/dom.ts +++ b/src/helpers/dom.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import { MessageEntity } from "../layer"; import RichTextProcessor from "../lib/richtextprocessor"; import ListenerSetter from "./listenerSetter"; diff --git a/src/helpers/dom/findUpAsChild.ts b/src/helpers/dom/findUpAsChild.ts index 8f4e06b1..8132bf45 100644 --- a/src/helpers/dom/findUpAsChild.ts +++ b/src/helpers/dom/findUpAsChild.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + export default function findUpAsChild(el: any, parent: any) { if(el.parentElement === parent) return el; diff --git a/src/helpers/dom/findUpAttribute.ts b/src/helpers/dom/findUpAttribute.ts index 3eead47a..2f93aa4d 100644 --- a/src/helpers/dom/findUpAttribute.ts +++ b/src/helpers/dom/findUpAttribute.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + export default function findUpAttribute(el: any, attribute: string): HTMLElement { return el.closest(`[${attribute}]`); /* if(el.getAttribute(attribute) !== null) return el; // 03.02.2020 diff --git a/src/helpers/dom/findUpClassName.ts b/src/helpers/dom/findUpClassName.ts index 5bd5476c..a7eb028a 100644 --- a/src/helpers/dom/findUpClassName.ts +++ b/src/helpers/dom/findUpClassName.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + //export function findUpClassName(el: any, className: string): T; export default function findUpClassName(el: any, className: string): HTMLElement { return el.closest('.' + className); diff --git a/src/helpers/dom/findUpTag.ts b/src/helpers/dom/findUpTag.ts index 7d450117..6ffdbf21 100644 --- a/src/helpers/dom/findUpTag.ts +++ b/src/helpers/dom/findUpTag.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + export default function findUpTag(el: any, tag: string): HTMLElement { return el.closest(tag); /* if(el.tagName === tag) return el; // 03.02.2020 diff --git a/src/helpers/dom/fixSafariStickyInput.ts b/src/helpers/dom/fixSafariStickyInput.ts index 64a810c0..cb596f13 100644 --- a/src/helpers/dom/fixSafariStickyInput.ts +++ b/src/helpers/dom/fixSafariStickyInput.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + export default function fixSafariStickyInput(input: HTMLElement) { input.style.transform = 'translateY(-99999px)'; /* input.style.position = 'fixed'; diff --git a/src/helpers/dom/renderImageFromUrl.ts b/src/helpers/dom/renderImageFromUrl.ts index 334a6278..3f8d7336 100644 --- a/src/helpers/dom/renderImageFromUrl.ts +++ b/src/helpers/dom/renderImageFromUrl.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + export const loadedURLs: {[url: string]: boolean} = {}; const set = (elem: HTMLElement | HTMLImageElement | SVGImageElement | HTMLVideoElement, url: string) => { if(elem instanceof HTMLImageElement || elem instanceof HTMLVideoElement) elem.src = url; diff --git a/src/helpers/eventListenerBase.ts b/src/helpers/eventListenerBase.ts index 94de0dc6..c2a14a1c 100644 --- a/src/helpers/eventListenerBase.ts +++ b/src/helpers/eventListenerBase.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + //import { MOUNT_CLASS_TO } from "../config/debug"; import type { ArgumentTypes, SuperReturnType } from "../types"; diff --git a/src/helpers/fastSmoothScroll.ts b/src/helpers/fastSmoothScroll.ts index be1229d5..f9ed9652 100644 --- a/src/helpers/fastSmoothScroll.ts +++ b/src/helpers/fastSmoothScroll.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + // * Jolly Cobra's fastSmoothScroll slightly patched import { dispatchHeavyAnimationEvent } from '../hooks/useHeavyAnimationCheck'; diff --git a/src/helpers/fileName.ts b/src/helpers/fileName.ts index db29e57e..57a9a535 100644 --- a/src/helpers/fileName.ts +++ b/src/helpers/fileName.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import type { InputFileLocation, FileLocation } from "../layer"; import type { DownloadOptions } from "../lib/mtproto/apiFileManager"; diff --git a/src/helpers/files.ts b/src/helpers/files.ts index c5b5432f..a111cc6d 100644 --- a/src/helpers/files.ts +++ b/src/helpers/files.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { pause } from "./schedulers"; import { isAppleMobile } from "./userAgent"; diff --git a/src/helpers/heavyQueue.ts b/src/helpers/heavyQueue.ts index 0f248249..e2058986 100644 --- a/src/helpers/heavyQueue.ts +++ b/src/helpers/heavyQueue.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { CancellablePromise, deferredPromise } from "./cancellablePromise"; import { getHeavyAnimationPromise } from "../hooks/useHeavyAnimationCheck"; import { fastRaf } from "./schedulers"; diff --git a/src/helpers/listLoader.ts b/src/helpers/listLoader.ts index 8196ef71..ad93b9c6 100644 --- a/src/helpers/listLoader.ts +++ b/src/helpers/listLoader.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import Scrollable from "../components/scrollable"; import { safeAssign } from "./object"; diff --git a/src/helpers/listenerSetter.ts b/src/helpers/listenerSetter.ts index b10df2ff..e2b282a4 100644 --- a/src/helpers/listenerSetter.ts +++ b/src/helpers/listenerSetter.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + export type Listener = {element: ListenerElement, event: ListenerEvent, callback: ListenerCallback, options?: ListenerOptions}; export type ListenerElement = any; export type ListenerEvent = string; diff --git a/src/helpers/mediaSizes.ts b/src/helpers/mediaSizes.ts index 513cd7b5..5fa484d3 100644 --- a/src/helpers/mediaSizes.ts +++ b/src/helpers/mediaSizes.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { MOUNT_CLASS_TO } from "../config/debug"; import EventListenerBase from "./eventListenerBase"; diff --git a/src/helpers/middleware.ts b/src/helpers/middleware.ts index 869fab52..0f80a804 100644 --- a/src/helpers/middleware.ts +++ b/src/helpers/middleware.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + // * will change .cleaned and new instance will be created export const getMiddleware = () => { let cleanupObj = {cleaned: false}; diff --git a/src/helpers/number.ts b/src/helpers/number.ts index c41757e2..e876e787 100644 --- a/src/helpers/number.ts +++ b/src/helpers/number.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + export function numberThousandSplitter(x: number, joiner = ' ') { const parts = x.toString().split("."); parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, joiner); diff --git a/src/helpers/object.ts b/src/helpers/object.ts index 14e4d812..5f29fd4b 100644 --- a/src/helpers/object.ts +++ b/src/helpers/object.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + export function copy(obj: T): T { //in case of premitives if(obj === null || typeof(obj) !== "object") { diff --git a/src/helpers/random.ts b/src/helpers/random.ts index 51b601ee..0f76df4e 100644 --- a/src/helpers/random.ts +++ b/src/helpers/random.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + export function nextRandomInt(maxValue: number) { return Math.floor(Math.random() * maxValue); } diff --git a/src/helpers/schedulers.ts b/src/helpers/schedulers.ts index 147bea3d..e2ce17cc 100644 --- a/src/helpers/schedulers.ts +++ b/src/helpers/schedulers.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + // * Jolly Cobra's schedulers import { AnyToVoidFunction, NoneToVoidFunction } from "../types"; diff --git a/src/helpers/slicedArray.ts b/src/helpers/slicedArray.ts index 3fea0a4e..5ec02dba 100644 --- a/src/helpers/slicedArray.ts +++ b/src/helpers/slicedArray.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + /** * Descend sorted storage */ diff --git a/src/helpers/string.ts b/src/helpers/string.ts index 873653e2..5c901fbf 100644 --- a/src/helpers/string.ts +++ b/src/helpers/string.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + /* export function stringMiddleOverflow(str: string, maxLength: number) { return str.length > maxLength ? str.slice(0, maxLength / 2 | 0) + '...' + str.slice(-Math.round(maxLength / 2)) : str; } */ diff --git a/src/helpers/touchSupport.ts b/src/helpers/touchSupport.ts index f055f004..d3bf53d1 100644 --- a/src/helpers/touchSupport.ts +++ b/src/helpers/touchSupport.ts @@ -1,2 +1,8 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + // @ts-ignore export const isTouchSupported = ('ontouchstart' in window) || (window.DocumentTouch && document instanceof DocumentTouch)/* || true */; \ No newline at end of file diff --git a/src/helpers/userAgent.ts b/src/helpers/userAgent.ts index a7c30f7a..1335c8ad 100644 --- a/src/helpers/userAgent.ts +++ b/src/helpers/userAgent.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + export const userAgent = navigator ? navigator.userAgent : null; export const isApple = navigator.userAgent.search(/OS X|iPhone|iPad|iOS/i) !== -1; export const isAndroid = navigator.userAgent.toLowerCase().indexOf('android') !== -1; diff --git a/src/hooks/useHeavyAnimationCheck.ts b/src/hooks/useHeavyAnimationCheck.ts index 3a49ac27..bad4a331 100644 --- a/src/hooks/useHeavyAnimationCheck.ts +++ b/src/hooks/useHeavyAnimationCheck.ts @@ -1,4 +1,10 @@ -// * Jolly Cobra's useHeavyAnimationCheck.ts +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + +// * Jolly Cobra's useHeavyAnimationCheck.ts, patched //import { useEffect } from '../lib/teact/teact'; import { AnyToVoidFunction } from '../types'; diff --git a/src/lib/appManagers/AppInlineBotsManager.ts b/src/lib/appManagers/AppInlineBotsManager.ts index 223c8301..15d25158 100644 --- a/src/lib/appManagers/AppInlineBotsManager.ts +++ b/src/lib/appManagers/AppInlineBotsManager.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import { toast } from "../../components/toast"; import { BotInlineResult } from "../../layer"; import appPeersManager from "./appPeersManager"; diff --git a/src/lib/appManagers/apiUpdatesManager.ts b/src/lib/appManagers/apiUpdatesManager.ts index b4380e99..99c844b0 100644 --- a/src/lib/appManagers/apiUpdatesManager.ts +++ b/src/lib/appManagers/apiUpdatesManager.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + //import apiManager from '../mtproto/apiManager'; import DEBUG, { MOUNT_CLASS_TO } from '../../config/debug'; import { copy } from '../../helpers/object'; diff --git a/src/lib/appManagers/appChatsManager.ts b/src/lib/appManagers/appChatsManager.ts index d5247cc6..6ea133db 100644 --- a/src/lib/appManagers/appChatsManager.ts +++ b/src/lib/appManagers/appChatsManager.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import { MOUNT_CLASS_TO } from "../../config/debug"; import { numberThousandSplitter } from "../../helpers/number"; import { isObject, safeReplaceObject, copy, deepEqual } from "../../helpers/object"; diff --git a/src/lib/appManagers/appDialogsManager.ts b/src/lib/appManagers/appDialogsManager.ts index 7b8e515b..218ec8c0 100644 --- a/src/lib/appManagers/appDialogsManager.ts +++ b/src/lib/appManagers/appDialogsManager.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import AvatarElement from "../../components/avatar"; import DialogsContextMenu from "../../components/dialogsContextMenu"; import { horizontalMenu } from "../../components/horizontalMenu"; diff --git a/src/lib/appManagers/appDocsManager.ts b/src/lib/appManagers/appDocsManager.ts index 455a9e7d..a3ee6ec7 100644 --- a/src/lib/appManagers/appDocsManager.ts +++ b/src/lib/appManagers/appDocsManager.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import { FileURLType, getFileNameByLocation, getFileURL } from '../../helpers/fileName'; import { safeReplaceArrayInObject, defineNotNumerableProperties, isObject } from '../../helpers/object'; import { Document, InputFileLocation, PhotoSize } from '../../layer'; diff --git a/src/lib/appManagers/appDownloadManager.ts b/src/lib/appManagers/appDownloadManager.ts index 72d5e29c..b8ae6890 100644 --- a/src/lib/appManagers/appDownloadManager.ts +++ b/src/lib/appManagers/appDownloadManager.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import rootScope from "../rootScope"; import apiManager from "../mtproto/mtprotoworker"; import { deferredPromise, CancellablePromise } from "../../helpers/cancellablePromise"; diff --git a/src/lib/appManagers/appDraftsManager.ts b/src/lib/appManagers/appDraftsManager.ts index dadd23f9..37c186e4 100644 --- a/src/lib/appManagers/appDraftsManager.ts +++ b/src/lib/appManagers/appDraftsManager.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import rootScope from "../rootScope"; import appPeersManager from "./appPeersManager"; import appMessagesManager from "./appMessagesManager"; diff --git a/src/lib/appManagers/appImManager.ts b/src/lib/appManagers/appImManager.ts index d61a1cab..abbdd340 100644 --- a/src/lib/appManagers/appImManager.ts +++ b/src/lib/appManagers/appImManager.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + //import apiManager from '../mtproto/apiManager'; import animationIntersector from '../../components/animationIntersector'; import appSidebarLeft, { LEFT_COLUMN_ACTIVE_CLASSNAME } from "../../components/sidebarLeft"; @@ -20,7 +26,6 @@ import appStickersManager from './appStickersManager'; import appWebPagesManager from './appWebPagesManager'; import { blurActiveElement, cancelEvent, disableTransition, getFilesFromEvent, placeCaretAtEnd, whichChild } from '../../helpers/dom'; import PopupNewMedia from '../../components/popups/newMedia'; -import { numberThousandSplitter } from '../../helpers/number'; import MarkupTooltip from '../../components/chat/markupTooltip'; import { isTouchSupported } from '../../helpers/touchSupport'; import appPollsManager from './appPollsManager'; diff --git a/src/lib/appManagers/appMessagesManager.ts b/src/lib/appManagers/appMessagesManager.ts index 89eb0902..ee1402e1 100644 --- a/src/lib/appManagers/appMessagesManager.ts +++ b/src/lib/appManagers/appMessagesManager.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import { LazyLoadQueueBase } from "../../components/lazyLoadQueue"; import ProgressivePreloader from "../../components/preloader"; import { CancellablePromise, deferredPromise } from "../../helpers/cancellablePromise"; diff --git a/src/lib/appManagers/appNotificationsManager.ts b/src/lib/appManagers/appNotificationsManager.ts index 6e6f7739..e01036e6 100644 --- a/src/lib/appManagers/appNotificationsManager.ts +++ b/src/lib/appManagers/appNotificationsManager.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import { fontFamily } from "../../components/middleEllipsis"; import { MOUNT_CLASS_TO } from "../../config/debug"; import { CancellablePromise, deferredPromise } from "../../helpers/cancellablePromise"; @@ -6,15 +17,12 @@ import { copy, deepEqual } from "../../helpers/object"; import { convertInputKeyToKey } from "../../helpers/string"; import { isMobile } from "../../helpers/userAgent"; import { InputNotifyPeer, InputPeerNotifySettings, NotifyPeer, PeerNotifySettings, Update } from "../../layer"; -import Config from "../config"; import apiManager from "../mtproto/mtprotoworker"; import rootScope from "../rootScope"; import sessionStorage from "../sessionStorage"; import apiUpdatesManager from "./apiUpdatesManager"; -import appChatsManager from "./appChatsManager"; import appPeersManager from "./appPeersManager"; import appStateManager from "./appStateManager"; -import appUsersManager from "./appUsersManager"; type MyNotification = Notification & { hidden?: boolean, diff --git a/src/lib/appManagers/appPeersManager.ts b/src/lib/appManagers/appPeersManager.ts index d3f7846e..8c17aba0 100644 --- a/src/lib/appManagers/appPeersManager.ts +++ b/src/lib/appManagers/appPeersManager.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import { MOUNT_CLASS_TO } from "../../config/debug"; import { isObject } from "../../helpers/object"; import { ChatPhoto, DialogPeer, InputDialogPeer, InputNotifyPeer, InputPeer, Peer, Update, UserProfilePhoto } from "../../layer"; diff --git a/src/lib/appManagers/appPhotosManager.ts b/src/lib/appManagers/appPhotosManager.ts index 7f90bd7f..887f98d0 100644 --- a/src/lib/appManagers/appPhotosManager.ts +++ b/src/lib/appManagers/appPhotosManager.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import { bytesFromHex } from "../../helpers/bytes"; import { CancellablePromise } from "../../helpers/cancellablePromise"; import { getFileNameByLocation } from "../../helpers/fileName"; diff --git a/src/lib/appManagers/appPollsManager.ts b/src/lib/appManagers/appPollsManager.ts index 82bf8eba..938890ac 100644 --- a/src/lib/appManagers/appPollsManager.ts +++ b/src/lib/appManagers/appPollsManager.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { MOUNT_CLASS_TO } from "../../config/debug"; import { copy } from "../../helpers/object"; import { InputMedia, MessageEntity } from "../../layer"; diff --git a/src/lib/appManagers/appPrivacyManager.ts b/src/lib/appManagers/appPrivacyManager.ts index b2d953c9..f07e06b2 100644 --- a/src/lib/appManagers/appPrivacyManager.ts +++ b/src/lib/appManagers/appPrivacyManager.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { MOUNT_CLASS_TO } from "../../config/debug"; import { InputPrivacyKey, InputPrivacyRule, PrivacyRule, Update, PrivacyKey } from "../../layer"; import apiManager from "../mtproto/mtprotoworker"; diff --git a/src/lib/appManagers/appStateManager.ts b/src/lib/appManagers/appStateManager.ts index 9cce59e7..7883f01a 100644 --- a/src/lib/appManagers/appStateManager.ts +++ b/src/lib/appManagers/appStateManager.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import type { Dialog } from './appMessagesManager'; import type { UserAuth } from '../mtproto/mtproto_config'; import type { AppUsersManager } from './appUsersManager'; diff --git a/src/lib/appManagers/appStickersManager.ts b/src/lib/appManagers/appStickersManager.ts index 88675999..fcb331f0 100644 --- a/src/lib/appManagers/appStickersManager.ts +++ b/src/lib/appManagers/appStickersManager.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { Document, InputFileLocation, InputStickerSet, MessagesAllStickers, MessagesFeaturedStickers, MessagesFoundStickerSets, MessagesRecentStickers, MessagesStickers, MessagesStickerSet, PhotoSize, StickerPack, StickerSet, StickerSetCovered } from '../../layer'; import { Modify } from '../../types'; import apiManager from '../mtproto/mtprotoworker'; diff --git a/src/lib/appManagers/appUsersManager.ts b/src/lib/appManagers/appUsersManager.ts index 10475088..23103255 100644 --- a/src/lib/appManagers/appUsersManager.ts +++ b/src/lib/appManagers/appUsersManager.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import { formatPhoneNumber } from "../../components/misc"; import { MOUNT_CLASS_TO } from "../../config/debug"; import { tsNow } from "../../helpers/date"; diff --git a/src/lib/appManagers/appWebPagesManager.ts b/src/lib/appManagers/appWebPagesManager.ts index 4796963f..35c83829 100644 --- a/src/lib/appManagers/appWebPagesManager.ts +++ b/src/lib/appManagers/appWebPagesManager.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import appPhotosManager from "./appPhotosManager"; import appDocsManager from "./appDocsManager"; import { RichTextProcessor } from "../richtextprocessor"; diff --git a/src/lib/cacheStorage.ts b/src/lib/cacheStorage.ts index 351fd7ee..8c362b38 100644 --- a/src/lib/cacheStorage.ts +++ b/src/lib/cacheStorage.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import Modes from '../config/modes'; import { blobConstruct } from '../helpers/blob'; import FileManager from './filemanager'; diff --git a/src/lib/config.ts b/src/lib/config.ts index b4a464f0..4548d41a 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import { MOUNT_CLASS_TO } from '../config/debug'; import mediaSizes from '../helpers/mediaSizes'; diff --git a/src/lib/cropper.ts b/src/lib/cropper.ts index 269a4120..4ce37ded 100644 --- a/src/lib/cropper.ts +++ b/src/lib/cropper.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + function resizeableImage(originalImage: HTMLImageElement, canvas?: HTMLCanvasElement) { let cropComponent: HTMLDivElement, container: HTMLDivElement, diff --git a/src/lib/crypto/crypto.worker.js b/src/lib/crypto/crypto.worker.js index a321d74a..7cd6d04a 100644 --- a/src/lib/crypto/crypto.worker.js +++ b/src/lib/crypto/crypto.worker.js @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + //const ctx: Worker = self as any; const ctx = self; diff --git a/src/lib/crypto/crypto_utils.ts b/src/lib/crypto/crypto_utils.ts index 356d6f31..bdcf0e28 100644 --- a/src/lib/crypto/crypto_utils.ts +++ b/src/lib/crypto/crypto_utils.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import sha1 from '@cryptography/sha1'; import sha256 from '@cryptography/sha256'; import {IGE} from '@cryptography/aes'; diff --git a/src/lib/crypto/cryptoworker.ts b/src/lib/crypto/cryptoworker.ts index b902d21b..1035014b 100644 --- a/src/lib/crypto/cryptoworker.ts +++ b/src/lib/crypto/cryptoworker.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import { MOUNT_CLASS_TO } from '../../config/debug'; import CryptoWorkerMethods from './crypto_methods'; diff --git a/src/lib/filemanager.ts b/src/lib/filemanager.ts index 589c5312..4cad8620 100644 --- a/src/lib/filemanager.ts +++ b/src/lib/filemanager.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import { blobConstruct } from "../helpers/blob"; export class FileManager { diff --git a/src/lib/idb.ts b/src/lib/idb.ts index e09b7e74..7216a5eb 100644 --- a/src/lib/idb.ts +++ b/src/lib/idb.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import Database from '../config/database'; import { blobConstruct } from '../helpers/blob'; import { safeAssign } from '../helpers/object'; diff --git a/src/lib/langPack.ts b/src/lib/langPack.ts index 55a4b65f..3e8e12ff 100644 --- a/src/lib/langPack.ts +++ b/src/lib/langPack.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import DEBUG, { MOUNT_CLASS_TO } from "../config/debug"; import { safeAssign } from "../helpers/object"; import { capitalizeFirstLetter } from "../helpers/string"; diff --git a/src/lib/logger.ts b/src/lib/logger.ts index 5bac4afe..2dbac481 100644 --- a/src/lib/logger.ts +++ b/src/lib/logger.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import DEBUG from "../config/debug"; export enum LogLevels { diff --git a/src/lib/lottieLoader.ts b/src/lib/lottieLoader.ts index 1d294fb0..ba626e53 100644 --- a/src/lib/lottieLoader.ts +++ b/src/lib/lottieLoader.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import RLottieWorker from 'worker-loader!./rlottie/rlottie.worker'; import animationIntersector from "../components/animationIntersector"; import { MOUNT_CLASS_TO } from '../config/debug'; diff --git a/src/lib/mediaPlayer.ts b/src/lib/mediaPlayer.ts index d8ef35cb..d6ec43cb 100644 --- a/src/lib/mediaPlayer.ts +++ b/src/lib/mediaPlayer.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { cancelEvent } from "../helpers/dom"; import appMediaPlaybackController from "../components/appMediaPlaybackController"; import { isAppleMobile } from "../helpers/userAgent"; diff --git a/src/lib/mtproto/apiFileManager.ts b/src/lib/mtproto/apiFileManager.ts index 47dd25be..71b49937 100644 --- a/src/lib/mtproto/apiFileManager.ts +++ b/src/lib/mtproto/apiFileManager.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import { MOUNT_CLASS_TO } from "../../config/debug"; import Modes from "../../config/modes"; import { CancellablePromise, deferredPromise } from "../../helpers/cancellablePromise"; diff --git a/src/lib/mtproto/apiManager.ts b/src/lib/mtproto/apiManager.ts index 52c37482..9ccc4d95 100644 --- a/src/lib/mtproto/apiManager.ts +++ b/src/lib/mtproto/apiManager.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import sessionStorage from '../sessionStorage'; import MTPNetworker, { MTMessage } from './networker'; diff --git a/src/lib/mtproto/authorizer.ts b/src/lib/mtproto/authorizer.ts index ba0560a4..0759e497 100644 --- a/src/lib/mtproto/authorizer.ts +++ b/src/lib/mtproto/authorizer.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import { TLSerialization, TLDeserialization } from "./tl_utils"; import dcConfigurator from "./dcConfigurator"; import rsaKeysManager from "./rsaKeysManager"; diff --git a/src/lib/mtproto/bin_utils.ts b/src/lib/mtproto/bin_utils.ts index c4a19d12..4803f4b5 100644 --- a/src/lib/mtproto/bin_utils.ts +++ b/src/lib/mtproto/bin_utils.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import { bufferConcats } from '../../helpers/bytes'; import { add_, bigInt2str, cmp, leftShift_, str2bigInt } from '../../vendor/leemon'; import { nextRandomInt } from '../../helpers/random'; diff --git a/src/lib/mtproto/dcConfigurator.ts b/src/lib/mtproto/dcConfigurator.ts index 9b4f40ff..4d8e89dd 100644 --- a/src/lib/mtproto/dcConfigurator.ts +++ b/src/lib/mtproto/dcConfigurator.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import MTTransport, { MTConnection, MTConnectionConstructable } from './transports/transport'; import Modes from '../../config/modes'; diff --git a/src/lib/mtproto/mtproto.service.ts b/src/lib/mtproto/mtproto.service.ts index 4752e04e..3e9d0b8a 100644 --- a/src/lib/mtproto/mtproto.service.ts +++ b/src/lib/mtproto/mtproto.service.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + /// #if MTPROTO_SW import './mtproto.worker'; /// #endif diff --git a/src/lib/mtproto/mtproto.ts b/src/lib/mtproto/mtproto.ts index 291d1b05..12dc6ba5 100644 --- a/src/lib/mtproto/mtproto.ts +++ b/src/lib/mtproto/mtproto.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + /* import PasswordManager from './passwordManager'; import DcConfigurator from './dcConfigurator'; import RSAKeysManager from './rsaKeysManager'; diff --git a/src/lib/mtproto/mtproto.worker.ts b/src/lib/mtproto/mtproto.worker.ts index 1fb603de..1eb5dbc5 100644 --- a/src/lib/mtproto/mtproto.worker.ts +++ b/src/lib/mtproto/mtproto.worker.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + // just to include import '../polyfill'; diff --git a/src/lib/mtproto/mtproto_config.ts b/src/lib/mtproto/mtproto_config.ts index 03d5d922..8e6dd6b3 100644 --- a/src/lib/mtproto/mtproto_config.ts +++ b/src/lib/mtproto/mtproto_config.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + export type UserAuth = number; export const REPLIES_PEER_ID = 1271266957; diff --git a/src/lib/mtproto/mtprotoworker.ts b/src/lib/mtproto/mtprotoworker.ts index 37611af7..9a9842e9 100644 --- a/src/lib/mtproto/mtprotoworker.ts +++ b/src/lib/mtproto/mtprotoworker.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import MTProtoWorker from 'worker-loader!./mtproto.worker'; //import './mtproto.worker'; import { isObject } from '../../helpers/object'; diff --git a/src/lib/mtproto/networker.ts b/src/lib/mtproto/networker.ts index e1a48f59..7539f426 100644 --- a/src/lib/mtproto/networker.ts +++ b/src/lib/mtproto/networker.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import {isObject, sortLongsArray} from './bin_utils'; import {TLDeserialization, TLSerialization} from './tl_utils'; import CryptoWorker from '../crypto/cryptoworker'; diff --git a/src/lib/mtproto/networkerFactory.ts b/src/lib/mtproto/networkerFactory.ts index a76a4c1c..2c4f8b24 100644 --- a/src/lib/mtproto/networkerFactory.ts +++ b/src/lib/mtproto/networkerFactory.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import MTPNetworker from "./networker"; import { ConnectionStatusChange, InvokeApiOptions } from "../../types"; import MTTransport from "./transports/transport"; diff --git a/src/lib/mtproto/passwordManager.ts b/src/lib/mtproto/passwordManager.ts index cb55bc8b..50395282 100644 --- a/src/lib/mtproto/passwordManager.ts +++ b/src/lib/mtproto/passwordManager.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import type { AccountPassword, AccountPasswordInputSettings, AccountUpdatePasswordSettings, InputCheckPasswordSRP, PasswordKdfAlgo } from '../../layer'; import type CryptoWorkerMethods from '../crypto/crypto_methods'; import { MOUNT_CLASS_TO } from '../../config/debug'; diff --git a/src/lib/mtproto/referenceDatabase.ts b/src/lib/mtproto/referenceDatabase.ts index 049bff58..8675c567 100644 --- a/src/lib/mtproto/referenceDatabase.ts +++ b/src/lib/mtproto/referenceDatabase.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import appMessagesManager from "../appManagers/appMessagesManager"; import { Photo } from "../../layer"; import { bytesToHex } from "../../helpers/bytes"; diff --git a/src/lib/mtproto/rsaKeysManager.ts b/src/lib/mtproto/rsaKeysManager.ts index ccd63a59..c281d4b8 100644 --- a/src/lib/mtproto/rsaKeysManager.ts +++ b/src/lib/mtproto/rsaKeysManager.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import { TLSerialization } from "./tl_utils"; import CryptoWorker from '../crypto/cryptoworker'; import { bytesFromArrayBuffer, bytesFromHex, bytesToHex } from "../../helpers/bytes"; diff --git a/src/lib/mtproto/schema.ts b/src/lib/mtproto/schema.ts index d05dc19a..3ee50524 100644 --- a/src/lib/mtproto/schema.ts +++ b/src/lib/mtproto/schema.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + export type MTProtoConstructor = { id: number, predicate: string, diff --git a/src/lib/mtproto/serverTimeManager.ts b/src/lib/mtproto/serverTimeManager.ts index de6e19b5..2fa918b1 100644 --- a/src/lib/mtproto/serverTimeManager.ts +++ b/src/lib/mtproto/serverTimeManager.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import { tsNow } from '../../helpers/date'; import sessionStorage from '../sessionStorage'; diff --git a/src/lib/mtproto/timeManager.ts b/src/lib/mtproto/timeManager.ts index deb8efb7..6b2b3da3 100644 --- a/src/lib/mtproto/timeManager.ts +++ b/src/lib/mtproto/timeManager.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import sessionStorage from '../sessionStorage'; import { longFromInts } from './bin_utils'; import { nextRandomInt } from '../../helpers/random'; diff --git a/src/lib/mtproto/tl_utils.ts b/src/lib/mtproto/tl_utils.ts index 2d97773c..bdaefde9 100644 --- a/src/lib/mtproto/tl_utils.ts +++ b/src/lib/mtproto/tl_utils.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import { bytesToHex } from '../../helpers/bytes'; import { isObject, longFromInts } from './bin_utils'; import { MOUNT_CLASS_TO } from '../../config/debug'; diff --git a/src/lib/mtproto/transports/abridged.ts b/src/lib/mtproto/transports/abridged.ts index 3ddca4f3..0dcabec7 100644 --- a/src/lib/mtproto/transports/abridged.ts +++ b/src/lib/mtproto/transports/abridged.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + //import { bytesFromHex, addPadding } from "../../bin_utils"; import { Codec } from "./codec"; diff --git a/src/lib/mtproto/transports/codec.ts b/src/lib/mtproto/transports/codec.ts index 13fc0141..bd98d23f 100644 --- a/src/lib/mtproto/transports/codec.ts +++ b/src/lib/mtproto/transports/codec.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + export interface Codec { tag: number; obfuscateTag: Uint8Array; diff --git a/src/lib/mtproto/transports/http.ts b/src/lib/mtproto/transports/http.ts index 8200a788..df6931a3 100644 --- a/src/lib/mtproto/transports/http.ts +++ b/src/lib/mtproto/transports/http.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { bytesFromArrayBuffer } from '../../../helpers/bytes'; import MTTransport from './transport'; diff --git a/src/lib/mtproto/transports/intermediate.ts b/src/lib/mtproto/transports/intermediate.ts index 70278b40..32b7c8eb 100644 --- a/src/lib/mtproto/transports/intermediate.ts +++ b/src/lib/mtproto/transports/intermediate.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { Codec } from "./codec"; export class IntermediatePacketCodec implements Codec { diff --git a/src/lib/mtproto/transports/obfuscation.ts b/src/lib/mtproto/transports/obfuscation.ts index 2e57efe0..1361032c 100644 --- a/src/lib/mtproto/transports/obfuscation.ts +++ b/src/lib/mtproto/transports/obfuscation.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + //import aesjs from 'aes-js'; import AES from "@cryptography/aes"; import { bytesFromWordss } from "../../../helpers/bytes"; diff --git a/src/lib/mtproto/transports/padded.ts b/src/lib/mtproto/transports/padded.ts index d44dc20d..f1b6c6fb 100644 --- a/src/lib/mtproto/transports/padded.ts +++ b/src/lib/mtproto/transports/padded.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { nextRandomInt } from "../../../helpers/random"; import { IntermediatePacketCodec } from "./intermediate"; /* Data packets are aligned to 4bytes. This codec adds random bytes of size diff --git a/src/lib/mtproto/transports/tcpObfuscated.ts b/src/lib/mtproto/transports/tcpObfuscated.ts index 6aa9dc24..46ca0f36 100644 --- a/src/lib/mtproto/transports/tcpObfuscated.ts +++ b/src/lib/mtproto/transports/tcpObfuscated.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import Modes from "../../../config/modes"; import { logger, LogLevels } from "../../logger"; import MTPNetworker from "../networker"; diff --git a/src/lib/mtproto/transports/transport.ts b/src/lib/mtproto/transports/transport.ts index ca73cb82..24afc90e 100644 --- a/src/lib/mtproto/transports/transport.ts +++ b/src/lib/mtproto/transports/transport.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import type EventListenerBase from "../../../helpers/eventListenerBase"; export default interface MTTransport { diff --git a/src/lib/mtproto/transports/websocket.ts b/src/lib/mtproto/transports/websocket.ts index f90b4cb2..0598f72c 100644 --- a/src/lib/mtproto/transports/websocket.ts +++ b/src/lib/mtproto/transports/websocket.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { logger, LogLevels } from '../../logger'; import Modes from '../../../config/modes'; import EventListenerBase from '../../../helpers/eventListenerBase'; diff --git a/src/lib/opusDecodeController.ts b/src/lib/opusDecodeController.ts index 708ba3aa..ec3e8dc3 100644 --- a/src/lib/opusDecodeController.ts +++ b/src/lib/opusDecodeController.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { MOUNT_CLASS_TO } from "../config/debug"; import { isSafari } from "../helpers/userAgent"; import { logger, LogLevels } from "./logger"; diff --git a/src/lib/pluralPolyfill.ts b/src/lib/pluralPolyfill.ts index d265eafe..181d9ac7 100644 --- a/src/lib/pluralPolyfill.ts +++ b/src/lib/pluralPolyfill.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + const NumberPluralizationFormZero: Intl.LDMLPluralRule = 'zero'; const NumberPluralizationFormOne: Intl.LDMLPluralRule = 'one'; const NumberPluralizationFormTwo: Intl.LDMLPluralRule = 'two'; diff --git a/src/lib/polyfill.ts b/src/lib/polyfill.ts index e349d7d1..7663ec06 100644 --- a/src/lib/polyfill.ts +++ b/src/lib/polyfill.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { bytesToHex, bytesFromHex, bufferConcats } from '../helpers/bytes'; import { nextRandomInt } from '../helpers/random'; diff --git a/src/lib/richtextprocessor.ts b/src/lib/richtextprocessor.ts index 012be66d..9efa983b 100644 --- a/src/lib/richtextprocessor.ts +++ b/src/lib/richtextprocessor.ts @@ -1,7 +1,18 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import Config from './config'; -import emojiRegExp from '../emoji/regex'; -import { encodeEmoji } from '../emoji'; +import emojiRegExp from '../vendor/emoji/regex'; +import { encodeEmoji } from '../vendor/emoji'; import { MessageEntity } from '../layer'; import { encodeEntities } from '../helpers/string'; import { isSafari } from '../helpers/userAgent'; diff --git a/src/lib/rlottie/rlottie.worker.ts b/src/lib/rlottie/rlottie.worker.ts index e8140c40..00b68423 100644 --- a/src/lib/rlottie/rlottie.worker.ts +++ b/src/lib/rlottie/rlottie.worker.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + importScripts('rlottie-wasm.js'); //import Module, { allocate, intArrayFromString } from './rlottie-wasm'; diff --git a/src/lib/rootScope.ts b/src/lib/rootScope.ts index 5ce26428..00d504bd 100644 --- a/src/lib/rootScope.ts +++ b/src/lib/rootScope.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import type { Message, StickerSet, Update, NotifyPeer, PeerNotifySettings } from "../layer"; import type { MyDocument } from "./appManagers/appDocsManager"; import type { AppMessagesManager, Dialog, MessagesStorage } from "./appManagers/appMessagesManager"; diff --git a/src/lib/searchIndexManager.ts b/src/lib/searchIndexManager.ts index 09f197a5..f34af01c 100644 --- a/src/lib/searchIndexManager.ts +++ b/src/lib/searchIndexManager.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import Config from './config'; export type SearchIndex = { diff --git a/src/lib/sessionStorage.ts b/src/lib/sessionStorage.ts index 1d8472ef..e0ff5722 100644 --- a/src/lib/sessionStorage.ts +++ b/src/lib/sessionStorage.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { MOUNT_CLASS_TO } from '../config/debug'; import { LangPackDifference } from '../layer'; import type { State } from './appManagers/appStateManager'; diff --git a/src/lib/storage.ts b/src/lib/storage.ts index e9b91628..c9caf2e4 100644 --- a/src/lib/storage.ts +++ b/src/lib/storage.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import { DatabaseStore, DatabaseStoreName } from "../config/database"; import IDBStorage, { IDBOptions } from "./idb"; diff --git a/src/lib/storages/dialogs.ts b/src/lib/storages/dialogs.ts index 280e166e..70698b80 100644 --- a/src/lib/storages/dialogs.ts +++ b/src/lib/storages/dialogs.ts @@ -1,3 +1,14 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + * + * Originally from: + * https://github.com/zhukov/webogram + * Copyright (C) 2014 Igor Zhukov + * https://github.com/zhukov/webogram/blob/master/LICENSE + */ + import { tsNow } from "../../helpers/date"; import type { Message } from "../../layer"; import type { AppChatsManager } from "../appManagers/appChatsManager"; diff --git a/src/lib/storages/filters.ts b/src/lib/storages/filters.ts index cde3bf1d..66660f29 100644 --- a/src/lib/storages/filters.ts +++ b/src/lib/storages/filters.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { copy } from "../../helpers/object"; import type { DialogFilter, Update } from "../../layer"; import type { Modify } from "../../types"; diff --git a/src/lib/webp/webp.ts b/src/lib/webp/webp.ts index e7790885..dc973b35 100644 --- a/src/lib/webp/webp.ts +++ b/src/lib/webp/webp.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { WebPDecoder } from '../../vendor/libwebp-0.2.0'; import { encode } from 'fast-png'; diff --git a/src/lib/webp/webp.worker.ts b/src/lib/webp/webp.worker.ts index 2b43083a..1042e957 100644 --- a/src/lib/webp/webp.worker.ts +++ b/src/lib/webp/webp.worker.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { webp2png } from './webp'; import type { WebpConvertTask } from './webpWorkerController'; diff --git a/src/lib/webp/webpWorkerController.ts b/src/lib/webp/webpWorkerController.ts index 8e907f95..5a45c4b6 100644 --- a/src/lib/webp/webpWorkerController.ts +++ b/src/lib/webp/webpWorkerController.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import WebpWorker from 'worker-loader!./webp.worker'; import { MOUNT_CLASS_TO } from '../../config/debug'; import { CancellablePromise, deferredPromise } from '../../helpers/cancellablePromise'; diff --git a/src/pages/loginPage.ts b/src/pages/loginPage.ts index 09607904..63319da4 100644 --- a/src/pages/loginPage.ts +++ b/src/pages/loginPage.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { LangPackKey, i18n } from "../lib/langPack"; export default class LoginPage { diff --git a/src/pages/page.ts b/src/pages/page.ts index 3700794c..97e2bbbf 100644 --- a/src/pages/page.ts +++ b/src/pages/page.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import pagesManager from "./pagesManager"; export default class Page { diff --git a/src/pages/pageAuthCode.ts b/src/pages/pageAuthCode.ts index 63c35442..2a4c4713 100644 --- a/src/pages/pageAuthCode.ts +++ b/src/pages/pageAuthCode.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import mediaSizes from '../helpers/mediaSizes'; import { AuthSentCode, AuthSentCodeType, AuthSignIn } from '../layer'; import appStateManager from '../lib/appManagers/appStateManager'; diff --git a/src/pages/pageIm.ts b/src/pages/pageIm.ts index 9622cbdb..3d694f29 100644 --- a/src/pages/pageIm.ts +++ b/src/pages/pageIm.ts @@ -1,5 +1,11 @@ //import {stackBlurImage} from '../lib/StackBlur'; //import appStateManager from "../lib/appManagers/appStateManager"; +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { blurActiveElement } from "../helpers/dom"; import appStateManager from "../lib/appManagers/appStateManager"; import I18n from "../lib/langPack"; diff --git a/src/pages/pagePassword.ts b/src/pages/pagePassword.ts index ab7fc994..c5871760 100644 --- a/src/pages/pagePassword.ts +++ b/src/pages/pagePassword.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { putPreloader } from '../components/misc'; import mediaSizes from '../helpers/mediaSizes'; import { AccountPassword } from '../layer'; diff --git a/src/pages/pageSignIn.ts b/src/pages/pageSignIn.ts index dbf7adce..b1b63d46 100644 --- a/src/pages/pageSignIn.ts +++ b/src/pages/pageSignIn.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import { formatPhoneNumber, putPreloader } from "../components/misc"; import Scrollable from '../components/scrollable'; import Countries, { Country as _Country } from "../countries"; diff --git a/src/pages/pageSignQR.ts b/src/pages/pageSignQR.ts index 3040714c..5b8d040f 100644 --- a/src/pages/pageSignQR.ts +++ b/src/pages/pageSignQR.ts @@ -1,4 +1,10 @@ //import apiManager from '../lib/mtproto/apiManager'; +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import apiManager from '../lib/mtproto/mtprotoworker'; import Page from './page'; import pageIm from './pageIm'; diff --git a/src/pages/pageSignUp.ts b/src/pages/pageSignUp.ts index 4bb97509..8d6b4500 100644 --- a/src/pages/pageSignUp.ts +++ b/src/pages/pageSignUp.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import type { CancellablePromise } from '../helpers/cancellablePromise'; import type { InputFile } from '../layer'; import type { AuthState } from '../types'; diff --git a/src/pages/pagesManager.ts b/src/pages/pagesManager.ts index f609b534..32f55842 100644 --- a/src/pages/pagesManager.ts +++ b/src/pages/pagesManager.ts @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + import Page from "./page"; import { whichChild } from "../helpers/dom"; import lottieLoader from "../lib/lottieLoader"; diff --git a/src/scripts/format_jsons.js b/src/scripts/format_jsons.js index 104e895f..09d36282 100644 --- a/src/scripts/format_jsons.js +++ b/src/scripts/format_jsons.js @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + let emoji = require('./in/emoji_pretty.json'); //let countries = require('./countries_pretty.json'); diff --git a/src/scripts/format_lang.js b/src/scripts/format_lang.js index 10a64e6c..0cc0658f 100644 --- a/src/scripts/format_lang.js +++ b/src/scripts/format_lang.js @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + const fs = require('fs'); const f = (key, value, plural) => { diff --git a/src/scripts/format_schema.js b/src/scripts/format_schema.js index 8a61174e..fe5363a9 100644 --- a/src/scripts/format_schema.js +++ b/src/scripts/format_schema.js @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + let json = require('./in/schema'); let top = {}; diff --git a/src/scripts/generate_mtproto_types.js b/src/scripts/generate_mtproto_types.js index 16ff531f..35b30ea5 100644 --- a/src/scripts/generate_mtproto_types.js +++ b/src/scripts/generate_mtproto_types.js @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + // @ts-check const schema = require(__dirname + '/in/schema.json'); const additional = require(__dirname + '/in/schema_additional_params.json'); diff --git a/src/scss/mixins/_animationLevel.scss b/src/scss/mixins/_animationLevel.scss index 317562ad..b57169b6 100644 --- a/src/scss/mixins/_animationLevel.scss +++ b/src/scss/mixins/_animationLevel.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + @mixin animation-level($level: 2) { body.animation-level-#{$level} & { @content; diff --git a/src/scss/mixins/_hover.scss b/src/scss/mixins/_hover.scss index 17c8dcad..f4d9d020 100644 --- a/src/scss/mixins/_hover.scss +++ b/src/scss/mixins/_hover.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + @mixin hover($color: null, $property: null, $use-transition: false) { @if $color { @if $color == gray { diff --git a/src/scss/mixins/_respondTo.scss b/src/scss/mixins/_respondTo.scss index f9aec527..9896f03c 100644 --- a/src/scss/mixins/_respondTo.scss +++ b/src/scss/mixins/_respondTo.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + @mixin respond-to($media) { @if $media == handhelds { @media only screen and (max-width: $small-screen) { @content; } diff --git a/src/scss/mixins/_textOverflow.scss b/src/scss/mixins/_textOverflow.scss index d104e50c..80db3b85 100644 --- a/src/scss/mixins/_textOverflow.scss +++ b/src/scss/mixins/_textOverflow.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + @mixin text-overflow($no-wrap: true) { @if $no-wrap != false { white-space: nowrap; diff --git a/src/scss/partials/_animatedIcon.scss b/src/scss/partials/_animatedIcon.scss index f8ad87f4..c3d875fe 100644 --- a/src/scss/partials/_animatedIcon.scss +++ b/src/scss/partials/_animatedIcon.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .animated-close-icon { position: absolute; transform: rotate(-45deg); diff --git a/src/scss/partials/_audio.scss b/src/scss/partials/_audio.scss index 6491b8c5..c0d59950 100644 --- a/src/scss/partials/_audio.scss +++ b/src/scss/partials/_audio.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .audio { position: relative; padding-left: 67px; diff --git a/src/scss/partials/_avatar.scss b/src/scss/partials/_avatar.scss index d6de9c27..87dd2ef7 100644 --- a/src/scss/partials/_avatar.scss +++ b/src/scss/partials/_avatar.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + avatar-element { --size: 54px; --multiplier: 1; diff --git a/src/scss/partials/_badge.scss b/src/scss/partials/_badge.scss index 61f18da7..572f75d5 100644 --- a/src/scss/partials/_badge.scss +++ b/src/scss/partials/_badge.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .badge { border-radius: .75rem; font-weight: 500; diff --git a/src/scss/partials/_button.scss b/src/scss/partials/_button.scss index 742cf8ed..1419e1c5 100644 --- a/src/scss/partials/_button.scss +++ b/src/scss/partials/_button.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .btn, .btn-icon { background: none; outline: none; diff --git a/src/scss/partials/_chat.scss b/src/scss/partials/_chat.scss index b6b74e43..695ff791 100644 --- a/src/scss/partials/_chat.scss +++ b/src/scss/partials/_chat.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + $btn-send-margin: .5rem; $chat-helper-size: 39px; diff --git a/src/scss/partials/_chatBubble.scss b/src/scss/partials/_chatBubble.scss index 82e2f7a8..4cded4a9 100644 --- a/src/scss/partials/_chatBubble.scss +++ b/src/scss/partials/_chatBubble.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + $bubble-margin: .25rem; @keyframes bubbleSelected { diff --git a/src/scss/partials/_chatDrop.scss b/src/scss/partials/_chatDrop.scss index f774adbe..e9eb6bb1 100644 --- a/src/scss/partials/_chatDrop.scss +++ b/src/scss/partials/_chatDrop.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .drops-container { --padding: 20px; --pinned-floating-height: 0px; diff --git a/src/scss/partials/_chatMarkupTooltip.scss b/src/scss/partials/_chatMarkupTooltip.scss index c3883eec..594454c0 100644 --- a/src/scss/partials/_chatMarkupTooltip.scss +++ b/src/scss/partials/_chatMarkupTooltip.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .markup-tooltip { $widthRegular: 218px; $widthLink: 420px; diff --git a/src/scss/partials/_chatPinned.scss b/src/scss/partials/_chatPinned.scss index d1869fd5..5a31dd9b 100644 --- a/src/scss/partials/_chatPinned.scss +++ b/src/scss/partials/_chatPinned.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .pinned-message { &-border { position: relative; diff --git a/src/scss/partials/_chatSearch.scss b/src/scss/partials/_chatSearch.scss index 44eefe9a..12a8efd0 100644 --- a/src/scss/partials/_chatSearch.scss +++ b/src/scss/partials/_chatSearch.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .chat-search { position: absolute !important; top: 0; diff --git a/src/scss/partials/_chatStickersHelper.scss b/src/scss/partials/_chatStickersHelper.scss index e12a7283..f75ff4e7 100644 --- a/src/scss/partials/_chatStickersHelper.scss +++ b/src/scss/partials/_chatStickersHelper.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .stickers-helper { position: absolute !important; bottom: calc(100% + 10px); diff --git a/src/scss/partials/_chatTopbar.scss b/src/scss/partials/_chatTopbar.scss index be5ffd9d..7b4469d0 100644 --- a/src/scss/partials/_chatTopbar.scss +++ b/src/scss/partials/_chatTopbar.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .topbar { width: 100%; background-color: #fff; diff --git a/src/scss/partials/_chatlist.scss b/src/scss/partials/_chatlist.scss index 708d8846..357c360e 100644 --- a/src/scss/partials/_chatlist.scss +++ b/src/scss/partials/_chatlist.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .chatlist-container { position: relative; diff --git a/src/scss/partials/_checkbox.scss b/src/scss/partials/_checkbox.scss index e0817c9d..6b465676 100644 --- a/src/scss/partials/_checkbox.scss +++ b/src/scss/partials/_checkbox.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .checkbox-field { --size: 1.25rem; margin: 1.5rem 1.1875rem; diff --git a/src/scss/partials/_ckin.scss b/src/scss/partials/_ckin.scss index c2d61257..9a014a86 100644 --- a/src/scss/partials/_ckin.scss +++ b/src/scss/partials/_ckin.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .ckin { &__player { letter-spacing: 0.02em; diff --git a/src/scss/partials/_crop.scss b/src/scss/partials/_crop.scss index 153e8da3..fe87f874 100644 --- a/src/scss/partials/_crop.scss +++ b/src/scss/partials/_crop.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .crop { .overlay::selection, &-component::selection { diff --git a/src/scss/partials/_document.scss b/src/scss/partials/_document.scss index 9e027a85..75b24b70 100644 --- a/src/scss/partials/_document.scss +++ b/src/scss/partials/_document.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .document { --background-color: #{var(--primary-color)}; $border-radius: .375rem; diff --git a/src/scss/partials/_emojiDropdown.scss b/src/scss/partials/_emojiDropdown.scss index a26bb112..2b5065ba 100644 --- a/src/scss/partials/_emojiDropdown.scss +++ b/src/scss/partials/_emojiDropdown.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .emoji-dropdown { display: flex/* !important */; flex-direction: column; diff --git a/src/scss/partials/_fonts.scss b/src/scss/partials/_fonts.scss index 24613eb8..15298fdd 100644 --- a/src/scss/partials/_fonts.scss +++ b/src/scss/partials/_fonts.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + // ! https://icomoon.io/app/#/select @font-face { diff --git a/src/scss/partials/_gifsMasonry.scss b/src/scss/partials/_gifsMasonry.scss index db6e1a1e..8b418895 100644 --- a/src/scss/partials/_gifsMasonry.scss +++ b/src/scss/partials/_gifsMasonry.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .gifs-masonry { display: flex; flex-wrap: wrap; diff --git a/src/scss/partials/_ico.scss b/src/scss/partials/_ico.scss index 62879d69..633e2fbb 100644 --- a/src/scss/partials/_ico.scss +++ b/src/scss/partials/_ico.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + // ! https://icomoon.io/app/#/select $tgico-font-family: "tgico" !default; diff --git a/src/scss/partials/_input.scss b/src/scss/partials/_input.scss index 7203575c..4fc6c2be 100644 --- a/src/scss/partials/_input.scss +++ b/src/scss/partials/_input.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .input-wrapper { width: 360px; margin: 0 auto; diff --git a/src/scss/partials/_leftSidebar.scss b/src/scss/partials/_leftSidebar.scss index 79650b4f..d241f936 100644 --- a/src/scss/partials/_leftSidebar.scss +++ b/src/scss/partials/_leftSidebar.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + #column-left { //display: flex; flex-direction: column; diff --git a/src/scss/partials/_mediaViewer.scss b/src/scss/partials/_mediaViewer.scss index 5bf73949..38073303 100644 --- a/src/scss/partials/_mediaViewer.scss +++ b/src/scss/partials/_mediaViewer.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .media-viewer { position: fixed; top: 0; diff --git a/src/scss/partials/_peerTyping.scss b/src/scss/partials/_peerTyping.scss index aa220ee3..465a2a0d 100644 --- a/src/scss/partials/_peerTyping.scss +++ b/src/scss/partials/_peerTyping.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .peer-typing { display: inline-block; margin-right: 4px; diff --git a/src/scss/partials/_poll.scss b/src/scss/partials/_poll.scss index e4a89081..942d2de6 100644 --- a/src/scss/partials/_poll.scss +++ b/src/scss/partials/_poll.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + poll-element { margin-top: -1px; display: block; diff --git a/src/scss/partials/_preloader.scss b/src/scss/partials/_preloader.scss index bf9250a2..d93c6078 100644 --- a/src/scss/partials/_preloader.scss +++ b/src/scss/partials/_preloader.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + $transition: .2s ease-in-out; .preloader { diff --git a/src/scss/partials/_profile.scss b/src/scss/partials/_profile.scss index 55b4d4fa..998cce4f 100644 --- a/src/scss/partials/_profile.scss +++ b/src/scss/partials/_profile.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .profile { &-avatars { &-container { diff --git a/src/scss/partials/_quizHint.scss b/src/scss/partials/_quizHint.scss index 14f69ef6..224a950d 100644 --- a/src/scss/partials/_quizHint.scss +++ b/src/scss/partials/_quizHint.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .quiz-hint { position: absolute; left: 0; diff --git a/src/scss/partials/_rightSidebar.scss b/src/scss/partials/_rightSidebar.scss index 70d1407f..d76076a4 100644 --- a/src/scss/partials/_rightSidebar.scss +++ b/src/scss/partials/_rightSidebar.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + #column-right { position: relative; overflow: unset; diff --git a/src/scss/partials/_ripple.scss b/src/scss/partials/_ripple.scss index ef5ebbf1..6a8442f4 100644 --- a/src/scss/partials/_ripple.scss +++ b/src/scss/partials/_ripple.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .rp { position: relative; user-select: none; diff --git a/src/scss/partials/_scrollable.scss b/src/scss/partials/_scrollable.scss index c7de9c03..2b29351f 100644 --- a/src/scss/partials/_scrollable.scss +++ b/src/scss/partials/_scrollable.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + html:not(.is-safari):not(.is-ios) { .scrollable::-webkit-scrollbar { width: 0; diff --git a/src/scss/partials/_selector.scss b/src/scss/partials/_selector.scss index f282b08a..ef5cbdd0 100644 --- a/src/scss/partials/_selector.scss +++ b/src/scss/partials/_selector.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + @keyframes scaleIn { 0% { transform: scale(.2); diff --git a/src/scss/partials/_sidebar.scss b/src/scss/partials/_sidebar.scss index cb56490e..f0036c0a 100644 --- a/src/scss/partials/_sidebar.scss +++ b/src/scss/partials/_sidebar.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .sidebar { &-header { background-color: var(--surface-color); diff --git a/src/scss/partials/_slider.scss b/src/scss/partials/_slider.scss index b97b0b1d..90d2d41b 100644 --- a/src/scss/partials/_slider.scss +++ b/src/scss/partials/_slider.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .menu-horizontal-div { width: 100%; display: flex; diff --git a/src/scss/partials/_transition.scss b/src/scss/partials/_transition.scss index a3b93424..c7f1273f 100644 --- a/src/scss/partials/_transition.scss +++ b/src/scss/partials/_transition.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .transition { --easeOutSine: cubic-bezier(.39, .575, .565, 1); --easeInSine: cubic-bezier(.47, 0, .745, .715); diff --git a/src/scss/partials/pages/_authCode.scss b/src/scss/partials/pages/_authCode.scss index ec2d5945..81266639 100644 --- a/src/scss/partials/pages/_authCode.scss +++ b/src/scss/partials/pages/_authCode.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .page-authCode { .auth-image { transform: translateY(12px); diff --git a/src/scss/partials/pages/_chats.scss b/src/scss/partials/pages/_chats.scss index dd757633..bc3e4898 100644 --- a/src/scss/partials/pages/_chats.scss +++ b/src/scss/partials/pages/_chats.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .page-chats { /* display: grid; */ /* grid-template-columns: 25% 50%; */ diff --git a/src/scss/partials/pages/_pages.scss b/src/scss/partials/pages/_pages.scss index 047a0d7e..f5c8c509 100644 --- a/src/scss/partials/pages/_pages.scss +++ b/src/scss/partials/pages/_pages.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + #auth-pages { max-width: 720px; // 360 + 360 / 2 overflow: hidden; diff --git a/src/scss/partials/pages/_password.scss b/src/scss/partials/pages/_password.scss index 189993ed..0d2963aa 100644 --- a/src/scss/partials/pages/_password.scss +++ b/src/scss/partials/pages/_password.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + /* .page-password { } */ diff --git a/src/scss/partials/popups/_createPoll.scss b/src/scss/partials/popups/_createPoll.scss index 4970fd1f..362f8942 100644 --- a/src/scss/partials/popups/_createPoll.scss +++ b/src/scss/partials/popups/_createPoll.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .popup-create-poll { $parent: ".popup"; diff --git a/src/scss/partials/popups/_datePicker.scss b/src/scss/partials/popups/_datePicker.scss index 6ab4363d..6366e6c6 100644 --- a/src/scss/partials/popups/_datePicker.scss +++ b/src/scss/partials/popups/_datePicker.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .popup-date-picker { $parent: ".popup"; user-select: none; diff --git a/src/scss/partials/popups/_editAvatar.scss b/src/scss/partials/popups/_editAvatar.scss index bda25a05..e01e72b0 100644 --- a/src/scss/partials/popups/_editAvatar.scss +++ b/src/scss/partials/popups/_editAvatar.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .popup-avatar { $parent: ".popup"; diff --git a/src/scss/partials/popups/_forward.scss b/src/scss/partials/popups/_forward.scss index e57a7d8b..71cfc94c 100644 --- a/src/scss/partials/popups/_forward.scss +++ b/src/scss/partials/popups/_forward.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .popup-forward { $parent: ".popup"; diff --git a/src/scss/partials/popups/_mediaAttacher.scss b/src/scss/partials/popups/_mediaAttacher.scss index 568a4dcc..f20eb26a 100644 --- a/src/scss/partials/popups/_mediaAttacher.scss +++ b/src/scss/partials/popups/_mediaAttacher.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .popup-new-media { user-select: none; $parent: ".popup"; diff --git a/src/scss/partials/popups/_peer.scss b/src/scss/partials/popups/_peer.scss index 75af6c89..78b98510 100644 --- a/src/scss/partials/popups/_peer.scss +++ b/src/scss/partials/popups/_peer.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .popup-peer { $parent: ".popup"; diff --git a/src/scss/partials/popups/_popup.scss b/src/scss/partials/popups/_popup.scss index 657a2a2f..2905fb14 100644 --- a/src/scss/partials/popups/_popup.scss +++ b/src/scss/partials/popups/_popup.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .popup { --transition-time: .15s; position: fixed!important; diff --git a/src/scss/partials/popups/_stickers.scss b/src/scss/partials/popups/_stickers.scss index 0753c72c..1b40d594 100644 --- a/src/scss/partials/popups/_stickers.scss +++ b/src/scss/partials/popups/_stickers.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + .popup-stickers { $parent: ".popup"; user-select: none; diff --git a/src/scss/style.scss b/src/scss/style.scss index f4e7bafc..4fda7f73 100644 --- a/src/scss/style.scss +++ b/src/scss/style.scss @@ -1,3 +1,9 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + $placeholder-color: #9e9e9e; $border-radius: 8px; $border-radius-medium: 10px; diff --git a/src/scss/tgico.scss b/src/scss/tgico.scss index 6e17a9e5..9394e4c1 100644 --- a/src/scss/tgico.scss +++ b/src/scss/tgico.scss @@ -1,2 +1,8 @@ +/* + * https://github.com/morethanwords/tweb + * Copyright (C) 2019-2021 Eduard Kuzmenko + * https://github.com/morethanwords/tweb/blob/master/LICENSE + */ + @import "partials/ico"; @import "partials/fonts"; diff --git a/src/emoji/index.ts b/src/vendor/emoji/index.ts similarity index 100% rename from src/emoji/index.ts rename to src/vendor/emoji/index.ts diff --git a/src/emoji/regex.ts b/src/vendor/emoji/regex.ts similarity index 100% rename from src/emoji/regex.ts rename to src/vendor/emoji/regex.ts