diff --git a/README.md b/README.md index 67e5e12f59..4588a0586e 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ Code should be committed as follows: * CSS: https://github.com/matrix-org/matrix-react-sdk/tree/master/res/css * Theme specific CSS & resources: https://github.com/matrix-org/matrix-react-sdk/tree/master/res/themes -React components in matrix-react-sdk are come in two different flavours: +React components in matrix-react-sdk come in two different flavours: 'structures' and 'views'. Structures are stateful components which handle the more complicated business logic of the app, delegating their actual presentation rendering to stateless 'view' components. For instance, the RoomView component diff --git a/package.json b/package.json index 89084acd68..46ff26bf32 100644 --- a/package.json +++ b/package.json @@ -25,9 +25,9 @@ "bin": { "reskindex": "scripts/reskindex.js" }, - "main": "./src/index.js", - "matrix_src_main": "./src/index.js", - "matrix_lib_main": "./lib/index.js", + "main": "./src/index.ts", + "matrix_src_main": "./src/index.ts", + "matrix_lib_main": "./lib/index.ts", "matrix_lib_typings": "./lib/index.d.ts", "scripts": { "prepublishOnly": "yarn build", @@ -79,6 +79,7 @@ "highlight.js": "^10.5.0", "html-entities": "^1.4.0", "is-ip": "^3.1.0", + "jszip": "^3.7.0", "katex": "^0.12.0", "linkifyjs": "^2.1.9", "lodash": "^4.17.20", @@ -133,6 +134,7 @@ "@types/counterpart": "^0.18.1", "@types/css-font-loading-module": "^0.0.6", "@types/diff-match-patch": "^1.0.32", + "@types/file-saver": "^2.0.3", "@types/flux": "^3.1.9", "@types/jest": "^26.0.20", "@types/linkifyjs": "^2.1.3", @@ -166,9 +168,11 @@ "jest-canvas-mock": "^2.3.0", "jest-environment-jsdom-sixteen": "^1.0.3", "jest-fetch-mock": "^3.0.3", + "jest-raw-loader": "^1.0.1", "matrix-mock-request": "^1.2.3", "matrix-react-test-utils": "^0.2.3", "matrix-web-i18n": "github:matrix-org/matrix-web-i18n", + "raw-loader": "^4.0.2", "react-test-renderer": "^17.0.2", "rimraf": "^3.0.2", "rrweb-snapshot": "1.1.7", @@ -199,6 +203,7 @@ "decoderWorker\\.min\\.wasm": "/__mocks__/empty.js", "waveWorker\\.min\\.js": "/__mocks__/empty.js", "workers/(.+)\\.worker\\.ts": "/__mocks__/workerMock.js", + "^!!raw-loader!.*": "jest-raw-loader", "RecorderWorklet": "/__mocks__/empty.js" }, "transformIgnorePatterns": [ diff --git a/res/css/_components.scss b/res/css/_components.scss index adbe67b20e..0e197e0e50 100644 --- a/res/css/_components.scss +++ b/res/css/_components.scss @@ -39,6 +39,7 @@ @import "./structures/_ViewSource.scss"; @import "./structures/auth/_CompleteSecurity.scss"; @import "./structures/auth/_Login.scss"; +@import "./structures/auth/_SetupEncryptionBody.scss"; @import "./views/audio_messages/_AudioPlayer.scss"; @import "./views/audio_messages/_PlayPauseButton.scss"; @import "./views/audio_messages/_PlaybackContainer.scss"; @@ -83,6 +84,7 @@ @import "./views/dialogs/_DeactivateAccountDialog.scss"; @import "./views/dialogs/_DevtoolsDialog.scss"; @import "./views/dialogs/_EditCommunityPrototypeDialog.scss"; +@import "./views/dialogs/_ExportDialog.scss"; @import "./views/dialogs/_FeedbackDialog.scss"; @import "./views/dialogs/_ForwardDialog.scss"; @import "./views/dialogs/_GenericFeatureFeedbackDialog.scss"; @@ -245,6 +247,7 @@ @import "./views/settings/_E2eAdvancedPanel.scss"; @import "./views/settings/_EmailAddresses.scss"; @import "./views/settings/_IntegrationManager.scss"; +@import "./views/settings/_JoinRuleSettings.scss"; @import "./views/settings/_LayoutSwitcher.scss"; @import "./views/settings/_Notifications.scss"; @import "./views/settings/_PhoneNumbers.scss"; diff --git a/res/css/structures/_ToastContainer.scss b/res/css/structures/_ToastContainer.scss index 6024df5dc0..55181a8b53 100644 --- a/res/css/structures/_ToastContainer.scss +++ b/res/css/structures/_ToastContainer.scss @@ -122,7 +122,7 @@ limitations under the License. float: right; font-size: $font-12px; line-height: $font-22px; - color: $muted-fg-color; + color: $secondary-content; } } diff --git a/res/css/structures/auth/_CompleteSecurity.scss b/res/css/structures/auth/_CompleteSecurity.scss index 80e7aaada0..566507211c 100644 --- a/res/css/structures/auth/_CompleteSecurity.scss +++ b/res/css/structures/auth/_CompleteSecurity.scss @@ -33,6 +33,19 @@ limitations under the License. margin: 0 auto; } +.mx_CompleteSecurity_skip { + mask: url('$(res)/img/feather-customised/cancel.svg'); + mask-repeat: no-repeat; + mask-position: center; + mask-size: cover; + width: 18px; + height: 18px; + background-color: $dialog-close-fg-color; + cursor: pointer; + position: absolute; + right: 24px; +} + .mx_CompleteSecurity_body { font-size: $font-15px; } diff --git a/src/contexts/MatrixClientContext.ts b/res/css/structures/auth/_SetupEncryptionBody.scss similarity index 63% rename from src/contexts/MatrixClientContext.ts rename to res/css/structures/auth/_SetupEncryptionBody.scss index 7e8a92064d..24ee114544 100644 --- a/src/contexts/MatrixClientContext.ts +++ b/res/css/structures/auth/_SetupEncryptionBody.scss @@ -1,5 +1,5 @@ /* -Copyright 2019 The Matrix.org Foundation C.I.C. +Copyright 2021 The Matrix.org Foundation C.I.C. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,9 +14,11 @@ See the License for the specific language governing permissions and limitations under the License. */ -import { createContext } from "react"; -import { MatrixClient } from "matrix-js-sdk/src/client"; +.mx_SetupEncryptionBody_reset { + color: $light-fg-color; + margin-top: $font-14px; -const MatrixClientContext = createContext(undefined); -MatrixClientContext.displayName = "MatrixClientContext"; -export default MatrixClientContext; + a.mx_SetupEncryptionBody_reset_link:is(:link, :hover, :visited) { + color: $warning-color; + } +} diff --git a/res/css/views/audio_messages/_PlaybackContainer.scss b/res/css/views/audio_messages/_PlaybackContainer.scss index 773fc50fb9..3886e38583 100644 --- a/res/css/views/audio_messages/_PlaybackContainer.scss +++ b/res/css/views/audio_messages/_PlaybackContainer.scss @@ -39,7 +39,7 @@ limitations under the License. &.mx_Waveform_bar_100pct { // Small animation to remove the mechanical feel of progress transition: background-color 250ms ease; - background-color: $message-body-panel-fg-color; + background-color: $secondary-content; } } } diff --git a/res/css/views/auth/_AuthBody.scss b/res/css/views/auth/_AuthBody.scss index 90dca32e48..3c2736459a 100644 --- a/res/css/views/auth/_AuthBody.scss +++ b/res/css/views/auth/_AuthBody.scss @@ -58,10 +58,6 @@ limitations under the License. background-color: $authpage-body-bg-color; } - .mx_Field label { - color: $authpage-primary-color; - } - .mx_Field_labelAlwaysTopLeft label, .mx_Field select + label /* Always show a select's label on top to not collide with the value */, .mx_Field input:focus + label, diff --git a/res/css/views/dialogs/_AddExistingToSpaceDialog.scss b/res/css/views/dialogs/_AddExistingToSpaceDialog.scss index 444b29c9bf..8b19f506f5 100644 --- a/res/css/views/dialogs/_AddExistingToSpaceDialog.scss +++ b/res/css/views/dialogs/_AddExistingToSpaceDialog.scss @@ -75,7 +75,7 @@ limitations under the License. @mixin ProgressBarBorderRadius 8px; } - .mx_AddExistingToSpace_progressText { + .mx_AddExistingToSpaceDialog_progressText { margin-top: 8px; font-size: $font-15px; line-height: $font-24px; diff --git a/res/css/views/dialogs/_CreateSpaceFromCommunityDialog.scss b/res/css/views/dialogs/_CreateSpaceFromCommunityDialog.scss index 6ff328f6ab..f1af24cc5f 100644 --- a/res/css/views/dialogs/_CreateSpaceFromCommunityDialog.scss +++ b/res/css/views/dialogs/_CreateSpaceFromCommunityDialog.scss @@ -74,6 +74,7 @@ limitations under the License. font-size: $font-12px; line-height: $font-15px; color: $secondary-content; + margin-top: -13px; // match height of buttons to prevent height changing .mx_ProgressBar { height: 8px; diff --git a/res/css/views/dialogs/_ExportDialog.scss b/res/css/views/dialogs/_ExportDialog.scss new file mode 100644 index 0000000000..d578e72ead --- /dev/null +++ b/res/css/views/dialogs/_ExportDialog.scss @@ -0,0 +1,91 @@ +/* +Copyright 2021 The Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +.mx_ExportDialog { + .mx_ExportDialog_subheading { + font-size: $font-16px; + display: block; + font-family: $font-family; + font-weight: $font-semi-bold; + color: $primary-content; + margin-top: 18px; + margin-bottom: 12px; + } + + &.mx_ExportDialog_Exporting { + .mx_ExportDialog_options { + pointer-events: none; + } + + .mx_Field_select::before { + display: none; + } + + .mx_RadioButton input[type="radio"]:checked + div > div { + background: $greyed-fg-color; + } + + .mx_RadioButton input[type=radio]:checked + div { + border-color: unset; + } + + .mx_Field_valid.mx_Field label, + .mx_Field_valid.mx_Field:focus-within label { + color: unset; + } + + .mx_Field_valid.mx_Field, .mx_Field_valid.mx_Field:focus-within { + border-color: $input-border-color; + } + + .mx_Checkbox input[type="checkbox"]:checked + label > .mx_Checkbox_background { + background: $greyed-fg-color; + border-color: $greyed-fg-color; + } + } + + .mx_ExportDialog_progress { + .mx_Dialog_buttons { + margin-top: unset; + margin-left: 18px; + } + + .mx_Spinner { + width: unset; + height: unset; + flex: unset; + margin-right: 10px; + } + + display: flex; + flex-direction: row; + justify-content: flex-end; + align-items: center; + } + + .mx_RadioButton > .mx_RadioButton_content { + margin-top: 5px; + margin-bottom: 5px; + } + + .mx_Field { + width: 256px; + } + + .mx_Field_postfix { + padding: 9px 10px; + } +} diff --git a/res/css/views/dialogs/_InviteDialog.scss b/res/css/views/dialogs/_InviteDialog.scss index 3a2918f9ec..a753115614 100644 --- a/res/css/views/dialogs/_InviteDialog.scss +++ b/res/css/views/dialogs/_InviteDialog.scss @@ -28,7 +28,7 @@ limitations under the License. .mx_InviteDialog_editor { flex: 1; width: 100%; // Needed to make the Field inside grow - background-color: $user-tile-hover-bg-color; + background-color: $header-panel-bg-color; border-radius: 4px; min-height: 25px; padding-left: 8px; @@ -167,7 +167,7 @@ limitations under the License. padding: 5px 10px; &:hover { - background-color: $user-tile-hover-bg-color; + background-color: $header-panel-bg-color; border-radius: 4px; } @@ -395,7 +395,7 @@ limitations under the License. left: -24px; padding-left: 24px; padding-right: 24px; - border-top: 1px solid $message-body-panel-bg-color; + border-top: 1px solid $quinary-content; display: flex; flex-direction: row; diff --git a/res/css/views/dialogs/_SpaceSettingsDialog.scss b/res/css/views/dialogs/_SpaceSettingsDialog.scss index a1fa9d52a8..e26e4f8b49 100644 --- a/res/css/views/dialogs/_SpaceSettingsDialog.scss +++ b/res/css/views/dialogs/_SpaceSettingsDialog.scss @@ -38,7 +38,7 @@ limitations under the License. } & + .mx_SettingsTab_subheading { - border-top: 1px solid $message-body-panel-bg-color; + border-top: 1px solid $quinary-content; margin-top: 0; padding-top: 24px; } diff --git a/res/css/views/elements/_Field.scss b/res/css/views/elements/_Field.scss index 71d37a015d..37d335b76d 100644 --- a/res/css/views/elements/_Field.scss +++ b/res/css/views/elements/_Field.scss @@ -100,7 +100,6 @@ limitations under the License. color 0.25s ease-out 0.1s, transform 0.25s ease-out 0.1s, background-color 0.25s ease-out 0.1s; - color: $primary-content; background-color: transparent; font-size: $font-14px; transform: translateY(0); diff --git a/res/css/views/messages/_MFileBody.scss b/res/css/views/messages/_MFileBody.scss index d941a8132f..e23696e6a9 100644 --- a/res/css/views/messages/_MFileBody.scss +++ b/res/css/views/messages/_MFileBody.scss @@ -63,7 +63,7 @@ limitations under the License. cursor: pointer; .mx_MFileBody_info_icon { - background-color: $message-body-panel-icon-bg-color; + background-color: $system; border-radius: 20px; display: inline-block; width: 32px; @@ -78,7 +78,7 @@ limitations under the License. mask-position: center; mask-size: cover; mask-image: url('$(res)/img/element-icons/room/composer/attach.svg'); - background-color: $message-body-panel-icon-fg-color; + background-color: $secondary-content; width: 15px; height: 15px; diff --git a/res/css/views/messages/_MediaBody.scss b/res/css/views/messages/_MediaBody.scss index 7f4bfd3fdc..874de05c71 100644 --- a/res/css/views/messages/_MediaBody.scss +++ b/res/css/views/messages/_MediaBody.scss @@ -18,11 +18,11 @@ limitations under the License. // have unique styles). .mx_MediaBody { - background-color: $message-body-panel-bg-color; + background-color: $quinary-content; border-radius: 12px; max-width: 243px; // use max-width instead of width so it fits within right panels - color: $message-body-panel-fg-color; + color: $secondary-content; font-size: $font-14px; line-height: $font-24px; diff --git a/res/css/views/right_panel/_RoomSummaryCard.scss b/res/css/views/right_panel/_RoomSummaryCard.scss index 7ac4787111..c137bb7677 100644 --- a/res/css/views/right_panel/_RoomSummaryCard.scss +++ b/res/css/views/right_panel/_RoomSummaryCard.scss @@ -243,3 +243,7 @@ limitations under the License. .mx_RoomSummaryCard_icon_settings::before { mask-image: url('$(res)/img/element-icons/settings.svg'); } + +.mx_RoomSummaryCard_icon_export::before { + mask-image: url('$(res)/img/element-icons/export.svg'); +} diff --git a/res/css/views/right_panel/_VerificationPanel.scss b/res/css/views/right_panel/_VerificationPanel.scss index 12148b09de..95856a5d69 100644 --- a/res/css/views/right_panel/_VerificationPanel.scss +++ b/res/css/views/right_panel/_VerificationPanel.scss @@ -87,7 +87,7 @@ limitations under the License. } .mx_VerificationPanel_QRPhase_startOption { - background-color: $user-tile-hover-bg-color; + background-color: $header-panel-bg-color; border-radius: 10px; flex: 1; display: flex; diff --git a/res/css/views/rooms/_RoomSublist.scss b/res/css/views/rooms/_RoomSublist.scss index 6db2185dd5..95b9f1822d 100644 --- a/res/css/views/rooms/_RoomSublist.scss +++ b/res/css/views/rooms/_RoomSublist.scss @@ -22,6 +22,12 @@ limitations under the License. display: none; } + &:not(.mx_RoomSublist_minimized) { + .mx_RoomSublist_headerContainer { + height: auto; + } + } + .mx_RoomSublist_headerContainer { // Create a flexbox to make alignment easy display: flex; @@ -41,9 +47,7 @@ limitations under the License. // The combined height must be set in the LeftPanel component for sticky headers // to work correctly. padding-bottom: 8px; - // Allow the container to collapse on itself if its children - // are not in the normal document flow - max-height: 24px; + height: 24px; color: $roomlist-header-color; .mx_RoomSublist_stickable { @@ -172,14 +176,6 @@ limitations under the License. } } - // In the general case, we reserve space for each sublist header to prevent - // scroll jumps when they become sticky. However, that leaves a gap when - // scrolled to the top above the first sublist (whose header can only ever - // stick to top), so we make sure to exclude the first visible sublist. - &:not(.mx_RoomSublist_hidden) ~ .mx_RoomSublist .mx_RoomSublist_headerContainer { - height: 24px; - } - .mx_RoomSublist_resizeBox { position: relative; diff --git a/res/css/views/settings/_JoinRuleSettings.scss b/res/css/views/settings/_JoinRuleSettings.scss new file mode 100644 index 0000000000..8b520b2ab1 --- /dev/null +++ b/res/css/views/settings/_JoinRuleSettings.scss @@ -0,0 +1,88 @@ +/* +Copyright 2021 The Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +.mx_JoinRuleSettings_upgradeRequired { + margin-left: 16px; + padding: 4px 16px; + border: 1px solid $accent-color; + border-radius: 8px; + color: $accent-color; + font-size: $font-12px; + line-height: $font-15px; +} + +.mx_JoinRuleSettings_spacesWithAccess { + > h4 { + color: $secondary-content; + font-weight: $font-semi-bold; + font-size: $font-12px; + line-height: $font-15px; + text-transform: uppercase; + } + + > span { + font-weight: 500; + font-size: $font-14px; + line-height: 32px; // matches height of avatar for v-align + color: $secondary-content; + display: inline-block; + + img.mx_RoomAvatar_isSpaceRoom, + .mx_RoomAvatar_isSpaceRoom img { + border-radius: 8px; + } + + .mx_BaseAvatar { + margin-right: 8px; + } + + & + span { + margin-left: 16px; + } + } +} + +.mx_JoinRuleSettings_radioButton { + padding-top: 16px; + margin-bottom: 8px; + + .mx_RadioButton_content { + margin-left: 14px; + font-weight: $font-semi-bold; + font-size: $font-15px; + line-height: $font-24px; + color: $primary-content; + display: block; + } + + & + span { + display: inline-block; + margin-left: 34px; + margin-bottom: 16px; + font-size: $font-15px; + line-height: $font-24px; + color: $secondary-content; + + & + .mx_RadioButton { + border-top: 1px solid $menu-border-color; + } + } +} + +.mx_JoinRuleSettings_linkButton { + padding: 0; + font-size: inherit; +} diff --git a/res/css/views/settings/_ProfileSettings.scss b/res/css/views/settings/_ProfileSettings.scss index 63a5fa7edf..35e517b5ac 100644 --- a/res/css/views/settings/_ProfileSettings.scss +++ b/res/css/views/settings/_ProfileSettings.scss @@ -67,5 +67,7 @@ limitations under the License. > .mx_AccessibleButton_kind_link { padding-left: 0; // to align with left side + padding-right: 0; + margin-right: 10px; } } diff --git a/res/css/views/settings/tabs/room/_SecurityRoomSettingsTab.scss b/res/css/views/settings/tabs/room/_SecurityRoomSettingsTab.scss index 8fd0f14418..a3b3b17899 100644 --- a/res/css/views/settings/tabs/room/_SecurityRoomSettingsTab.scss +++ b/res/css/views/settings/tabs/room/_SecurityRoomSettingsTab.scss @@ -19,37 +19,6 @@ limitations under the License. padding: 0; margin-bottom: 16px; } - - .mx_SecurityRoomSettingsTab_spacesWithAccess { - > h4 { - color: $secondary-content; - font-weight: $font-semi-bold; - font-size: $font-12px; - line-height: $font-15px; - text-transform: uppercase; - } - - > span { - font-weight: 500; - font-size: $font-14px; - line-height: 32px; // matches height of avatar for v-align - color: $secondary-content; - display: inline-block; - - img.mx_RoomAvatar_isSpaceRoom, - .mx_RoomAvatar_isSpaceRoom img { - border-radius: 8px; - } - - .mx_BaseAvatar { - margin-right: 8px; - } - - & + span { - margin-left: 16px; - } - } - } } .mx_SecurityRoomSettingsTab_warning { @@ -68,47 +37,3 @@ limitations under the License. border-bottom: 1px solid $menu-border-color; margin-bottom: 32px; } - -.mx_SecurityRoomSettingsTab_upgradeRequired { - margin-left: 16px; - padding: 4px 16px; - border: 1px solid $accent-color; - border-radius: 8px; - color: $accent-color; - font-size: $font-12px; - line-height: $font-15px; -} - -.mx_SecurityRoomSettingsTab_joinRule { - .mx_RadioButton { - padding-top: 16px; - margin-bottom: 8px; - - .mx_RadioButton_content { - margin-left: 14px; - font-weight: $font-semi-bold; - font-size: $font-15px; - line-height: $font-24px; - color: $primary-content; - display: block; - } - } - - > span { - display: inline-block; - margin-left: 34px; - margin-bottom: 16px; - font-size: $font-15px; - line-height: $font-24px; - color: $secondary-content; - - & + .mx_RadioButton { - border-top: 1px solid $menu-border-color; - } - } - - .mx_AccessibleButton_kind_link { - padding: 0; - font-size: inherit; - } -} diff --git a/res/img/element-icons/export.svg b/res/img/element-icons/export.svg new file mode 100644 index 0000000000..49899e9520 --- /dev/null +++ b/res/img/element-icons/export.svg @@ -0,0 +1,14 @@ + + + diff --git a/res/themes/dark/css/_dark.scss b/res/themes/dark/css/_dark.scss index 0bc61d438d..f012dff0a1 100644 --- a/res/themes/dark/css/_dark.scss +++ b/res/themes/dark/css/_dark.scss @@ -206,23 +206,13 @@ $kbd-border-color: #000000; $tooltip-timeline-bg-color: $groupFilterPanel-bg-color; $tooltip-timeline-fg-color: $primary-content; -$interactive-tooltip-bg-color: $background; -$interactive-tooltip-fg-color: $primary-content; - $breadcrumb-placeholder-bg-color: #272c35; -$user-tile-hover-bg-color: $header-panel-bg-color; - -$message-body-panel-fg-color: $secondary-content; -$message-body-panel-bg-color: $quinary-content; -$message-body-panel-icon-bg-color: $system; -$message-body-panel-icon-fg-color: $secondary-content; - $voice-record-stop-border-color: $quaternary-content; $voice-record-waveform-incomplete-fg-color: $quaternary-content; $voice-record-icon-color: $quaternary-content; -$voice-playback-button-bg-color: $message-body-panel-icon-bg-color; -$voice-playback-button-fg-color: $message-body-panel-icon-fg-color; +$voice-playback-button-bg-color: $system; +$voice-playback-button-fg-color: $secondary-content; // Appearance tab colors $appearance-tab-border-color: $room-highlight-color; diff --git a/res/themes/legacy-dark/css/_legacy-dark.scss b/res/themes/legacy-dark/css/_legacy-dark.scss index d5bc5e6dd7..bed1e9c661 100644 --- a/res/themes/legacy-dark/css/_legacy-dark.scss +++ b/res/themes/legacy-dark/css/_legacy-dark.scss @@ -202,18 +202,8 @@ $kbd-border-color: #000000; $tooltip-timeline-bg-color: $groupFilterPanel-bg-color; $tooltip-timeline-fg-color: #ffffff; -$interactive-tooltip-bg-color: $base-color; -$interactive-tooltip-fg-color: #ffffff; - $breadcrumb-placeholder-bg-color: #272c35; -$user-tile-hover-bg-color: $header-panel-bg-color; - -$message-body-panel-fg-color: $secondary-fg-color; -$message-body-panel-bg-color: #394049; -$message-body-panel-icon-fg-color: $secondary-fg-color; -$message-body-panel-icon-bg-color: #21262C; - // See non-legacy dark for variable information $voice-record-stop-border-color: #6F7882; $voice-record-waveform-incomplete-fg-color: #6F7882; diff --git a/res/themes/legacy-light/css/_legacy-light.scss b/res/themes/legacy-light/css/_legacy-light.scss index 47247e5e23..2ce5b6062c 100644 --- a/res/themes/legacy-light/css/_legacy-light.scss +++ b/res/themes/legacy-light/css/_legacy-light.scss @@ -326,26 +326,16 @@ $kbd-border-color: $reaction-row-button-border-color; $tooltip-timeline-bg-color: $groupFilterPanel-bg-color; $tooltip-timeline-fg-color: #ffffff; -$interactive-tooltip-bg-color: #27303a; -$interactive-tooltip-fg-color: #ffffff; - $breadcrumb-placeholder-bg-color: #e8eef5; -$user-tile-hover-bg-color: $header-panel-bg-color; - -$message-body-panel-fg-color: $secondary-fg-color; -$message-body-panel-bg-color: #E3E8F0; -$message-body-panel-icon-fg-color: $secondary-fg-color; -$message-body-panel-icon-bg-color: $system; - // See non-legacy _light for variable information $voice-record-stop-symbol-color: #ff4b55; $voice-record-live-circle-color: #ff4b55; $voice-record-stop-border-color: #E3E8F0; $voice-record-waveform-incomplete-fg-color: #C1C6CD; $voice-record-icon-color: $tertiary-fg-color; -$voice-playback-button-bg-color: $message-body-panel-icon-bg-color; -$voice-playback-button-fg-color: $message-body-panel-icon-fg-color; +$voice-playback-button-bg-color: $system; +$voice-playback-button-fg-color: $secondary-content; // FontSlider colors $appearance-tab-border-color: $input-darker-bg-color; diff --git a/res/themes/light-custom/css/_custom.scss b/res/themes/light-custom/css/_custom.scss index 455798a556..af302bf252 100644 --- a/res/themes/light-custom/css/_custom.scss +++ b/res/themes/light-custom/css/_custom.scss @@ -16,6 +16,25 @@ limitations under the License. $font-family: var(--font-family, $font-family); $monospace-font-family: var(--font-family-monospace, $monospace-font-family); + +// Colors from Figma Compound https://www.figma.com/file/X4XTH9iS2KGJ2wFKDqkyed/Compound?node-id=559%3A741 +$accent: var(--accent); +$alert: var(--alert); +$links: var(--links); +$primary-content: var(--primary-content); +$secondary-content: var(--secondary-content); +$tertiary-content: var(--tertiary-content); +$quaternary-content: var(--quaternary-content); +$quinary-content: var(--quinary-content); +$system: var(--system); +$background: var(--background); +$panels: rgba($system, 0.9); +$panel-base: var(--panel-base); // This color is not intended for use in the app +$panel-selected: rgba($panel-base, 0.3); +$panel-hover: rgba($panel-base, 0.1); +$panel-actions: rgba($panel-base, 0.2); +$space-nav: rgba($panel-base, 0.1); + // // --accent-color $accent-color: var(--accent-color); @@ -48,7 +67,6 @@ $roomheader-bg-color: var(--timeline-background-color); $roomtile-selected-bg-color: var(--roomlist-highlights-color); // // --sidebar-color -$interactive-tooltip-bg-color: var(--sidebar-color); $groupFilterPanel-bg-color: var(--sidebar-color); $tooltip-timeline-bg-color: var(--sidebar-color); $dialog-backdrop-color: var(--sidebar-color-50pct); diff --git a/res/themes/light/css/_light.scss b/res/themes/light/css/_light.scss index 96e5fd7155..26cd1766c1 100644 --- a/res/themes/light/css/_light.scss +++ b/res/themes/light/css/_light.scss @@ -326,18 +326,8 @@ $inverted-bg-color: #27303a; $tooltip-timeline-bg-color: $inverted-bg-color; $tooltip-timeline-fg-color: $background; -$interactive-tooltip-bg-color: #27303a; -$interactive-tooltip-fg-color: $background; - $breadcrumb-placeholder-bg-color: #e8eef5; -$user-tile-hover-bg-color: $header-panel-bg-color; - -$message-body-panel-fg-color: $secondary-content; -$message-body-panel-bg-color: $quinary-content; -$message-body-panel-icon-bg-color: $system; -$message-body-panel-icon-fg-color: $secondary-content; - // These two don't change between themes. They are the $warning-color, but we don't // want custom themes to affect them by accident. $voice-record-stop-symbol-color: #ff4b55; @@ -346,8 +336,8 @@ $voice-record-live-circle-color: #ff4b55; $voice-record-stop-border-color: $quinary-content; $voice-record-waveform-incomplete-fg-color: $quaternary-content; $voice-record-icon-color: $tertiary-content; -$voice-playback-button-bg-color: $message-body-panel-icon-bg-color; -$voice-playback-button-fg-color: $message-body-panel-icon-fg-color; +$voice-playback-button-bg-color: $system; +$voice-playback-button-fg-color: $secondary-content; // FontSlider colors $appearance-tab-border-color: $input-darker-bg-color; diff --git a/src/@types/global.d.ts b/src/@types/global.d.ts index d5856a5702..38f237b9c3 100644 --- a/src/@types/global.d.ts +++ b/src/@types/global.d.ts @@ -51,6 +51,7 @@ import { SetupEncryptionStore } from "../stores/SetupEncryptionStore"; import { RoomScrollStateStore } from "../stores/RoomScrollStateStore"; import { ConsoleLogger, IndexedDBLogStore } from "../rageshake/rageshake"; import ActiveWidgetStore from "../stores/ActiveWidgetStore"; +import { Skinner } from "../Skinner"; /* eslint-disable @typescript-eslint/naming-convention */ @@ -95,6 +96,7 @@ declare global { mxSetupEncryptionStore?: SetupEncryptionStore; mxRoomScrollStateStore?: RoomScrollStateStore; mxActiveWidgetStore?: ActiveWidgetStore; + mxSkinner?: Skinner; mxOnRecaptchaLoaded?: () => void; electron?: Electron; } @@ -157,6 +159,10 @@ declare global { setSinkId(outputId: string); } + interface HTMLStyleElement { + disabled?: boolean; + } + // Add Chrome-specific `instant` ScrollBehaviour type _ScrollBehavior = ScrollBehavior | "instant"; diff --git a/src/RoomNotifsTypes.ts b/src/@types/raw-loader.d.ts similarity index 69% rename from src/RoomNotifsTypes.ts rename to src/@types/raw-loader.d.ts index 0e7093e434..efd825204e 100644 --- a/src/RoomNotifsTypes.ts +++ b/src/@types/raw-loader.d.ts @@ -1,5 +1,5 @@ /* -Copyright 2020 The Matrix.org Foundation C.I.C. +Copyright 2021 The Matrix.org Foundation C.I.C. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,11 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import { - ALL_MESSAGES, - ALL_MESSAGES_LOUD, - MENTIONS_ONLY, - MUTE, -} from "./RoomNotifs"; - -export type Volume = ALL_MESSAGES_LOUD | ALL_MESSAGES | MENTIONS_ONLY | MUTE; +declare module '!!raw-loader!*' { + const contents: string; + export default contents; +} diff --git a/src/AddThreepid.js b/src/AddThreepid.ts similarity index 91% rename from src/AddThreepid.js rename to src/AddThreepid.ts index ab291128a7..54250c5eb3 100644 --- a/src/AddThreepid.js +++ b/src/AddThreepid.ts @@ -17,13 +17,14 @@ limitations under the License. */ import { MatrixClientPeg } from './MatrixClientPeg'; -import * as sdk from './index'; import Modal from './Modal'; import { _t } from './languageHandler'; import IdentityAuthClient from './IdentityAuthClient'; import { SSOAuthEntry } from "./components/views/auth/InteractiveAuthEntryComponents"; +import { IRequestMsisdnTokenResponse, IRequestTokenResponse } from "matrix-js-sdk"; +import InteractiveAuthDialog from "./components/views/dialogs/InteractiveAuthDialog"; -function getIdServerDomain() { +function getIdServerDomain(): string { return MatrixClientPeg.get().idBaseUrl.split("://")[1]; } @@ -40,10 +41,13 @@ function getIdServerDomain() { * https://gist.github.com/jryans/839a09bf0c5a70e2f36ed990d50ed928 */ export default class AddThreepid { + private sessionId: string; + private submitUrl: string; + private clientSecret: string; + private bind: boolean; + constructor() { this.clientSecret = MatrixClientPeg.get().generateClientSecret(); - this.sessionId = null; - this.submitUrl = null; } /** @@ -52,7 +56,7 @@ export default class AddThreepid { * @param {string} emailAddress The email address to add * @return {Promise} Resolves when the email has been sent. Then call checkEmailLinkClicked(). */ - addEmailAddress(emailAddress) { + public addEmailAddress(emailAddress: string): Promise { return MatrixClientPeg.get().requestAdd3pidEmailToken(emailAddress, this.clientSecret, 1).then((res) => { this.sessionId = res.sid; return res; @@ -72,7 +76,7 @@ export default class AddThreepid { * @param {string} emailAddress The email address to add * @return {Promise} Resolves when the email has been sent. Then call checkEmailLinkClicked(). */ - async bindEmailAddress(emailAddress) { + public async bindEmailAddress(emailAddress: string): Promise { this.bind = true; if (await MatrixClientPeg.get().doesServerSupportSeparateAddAndBind()) { // For separate bind, request a token directly from the IS. @@ -105,7 +109,7 @@ export default class AddThreepid { * @param {string} phoneNumber The national or international formatted phone number to add * @return {Promise} Resolves when the text message has been sent. Then call haveMsisdnToken(). */ - addMsisdn(phoneCountry, phoneNumber) { + public addMsisdn(phoneCountry: string, phoneNumber: string): Promise { return MatrixClientPeg.get().requestAdd3pidMsisdnToken( phoneCountry, phoneNumber, this.clientSecret, 1, ).then((res) => { @@ -129,7 +133,7 @@ export default class AddThreepid { * @param {string} phoneNumber The national or international formatted phone number to add * @return {Promise} Resolves when the text message has been sent. Then call haveMsisdnToken(). */ - async bindMsisdn(phoneCountry, phoneNumber) { + public async bindMsisdn(phoneCountry: string, phoneNumber: string): Promise { this.bind = true; if (await MatrixClientPeg.get().doesServerSupportSeparateAddAndBind()) { // For separate bind, request a token directly from the IS. @@ -161,7 +165,7 @@ export default class AddThreepid { * with a "message" property which contains a human-readable message detailing why * the request failed. */ - async checkEmailLinkClicked() { + public async checkEmailLinkClicked(): Promise { try { if (await MatrixClientPeg.get().doesServerSupportSeparateAddAndBind()) { if (this.bind) { @@ -175,7 +179,7 @@ export default class AddThreepid { }); } else { try { - await this._makeAddThreepidOnlyRequest(); + await this.makeAddThreepidOnlyRequest(); // The spec has always required this to use UI auth but synapse briefly // implemented it without, so this may just succeed and that's OK. @@ -186,9 +190,6 @@ export default class AddThreepid { throw e; } - // pop up an interactive auth dialog - const InteractiveAuthDialog = sdk.getComponent("dialogs.InteractiveAuthDialog"); - const dialogAesthetics = { [SSOAuthEntry.PHASE_PREAUTH]: { title: _t("Use Single Sign On to continue"), @@ -208,7 +209,7 @@ export default class AddThreepid { title: _t("Add Email Address"), matrixClient: MatrixClientPeg.get(), authData: e.data, - makeRequest: this._makeAddThreepidOnlyRequest, + makeRequest: this.makeAddThreepidOnlyRequest, aestheticsForStagePhases: { [SSOAuthEntry.LOGIN_TYPE]: dialogAesthetics, [SSOAuthEntry.UNSTABLE_LOGIN_TYPE]: dialogAesthetics, @@ -235,16 +236,16 @@ export default class AddThreepid { } /** - * @param {Object} auth UI auth object + * @param {{type: string, session?: string}} auth UI auth object * @return {Promise} Response from /3pid/add call (in current spec, an empty object) */ - _makeAddThreepidOnlyRequest = (auth) => { + private makeAddThreepidOnlyRequest = (auth?: {type: string, session?: string}): Promise<{}> => { return MatrixClientPeg.get().addThreePidOnly({ sid: this.sessionId, client_secret: this.clientSecret, auth, }); - } + }; /** * Takes a phone number verification code as entered by the user and validates @@ -254,7 +255,7 @@ export default class AddThreepid { * with a "message" property which contains a human-readable message detailing why * the request failed. */ - async haveMsisdnToken(msisdnToken) { + public async haveMsisdnToken(msisdnToken: string): Promise { const authClient = new IdentityAuthClient(); const supportsSeparateAddAndBind = await MatrixClientPeg.get().doesServerSupportSeparateAddAndBind(); @@ -291,7 +292,7 @@ export default class AddThreepid { }); } else { try { - await this._makeAddThreepidOnlyRequest(); + await this.makeAddThreepidOnlyRequest(); // The spec has always required this to use UI auth but synapse briefly // implemented it without, so this may just succeed and that's OK. @@ -302,9 +303,6 @@ export default class AddThreepid { throw e; } - // pop up an interactive auth dialog - const InteractiveAuthDialog = sdk.getComponent("dialogs.InteractiveAuthDialog"); - const dialogAesthetics = { [SSOAuthEntry.PHASE_PREAUTH]: { title: _t("Use Single Sign On to continue"), @@ -324,7 +322,7 @@ export default class AddThreepid { title: _t("Add Phone Number"), matrixClient: MatrixClientPeg.get(), authData: e.data, - makeRequest: this._makeAddThreepidOnlyRequest, + makeRequest: this.makeAddThreepidOnlyRequest, aestheticsForStagePhases: { [SSOAuthEntry.LOGIN_TYPE]: dialogAesthetics, [SSOAuthEntry.UNSTABLE_LOGIN_TYPE]: dialogAesthetics, diff --git a/src/Avatar.ts b/src/Avatar.ts index c0ecb19eaf..93109a470e 100644 --- a/src/Avatar.ts +++ b/src/Avatar.ts @@ -142,15 +142,11 @@ export function avatarUrlForRoom(room: Room, width: number, height: number, resi // space rooms cannot be DMs so skip the rest if (SpaceStore.spacesEnabled && room.isSpaceRoom()) return null; - let otherMember = null; - const otherUserId = DMRoomMap.shared().getUserIdForRoomId(room.roomId); - if (otherUserId) { - otherMember = room.getMember(otherUserId); - } else { - // if the room is not marked as a 1:1, but only has max 2 members - // then still try to show any avatar (pref. other member) - otherMember = room.getAvatarFallbackMember(); - } + // If the room is not a DM don't fallback to a member avatar + if (!DMRoomMap.shared().getUserIdForRoomId(room.roomId)) return null; + + // If there are only two members in the DM use the avatar of the other member + const otherMember = room.getAvatarFallbackMember(); if (otherMember?.getMxcAvatarUrl()) { return mediaFromMxc(otherMember.getMxcAvatarUrl()).getThumbnailOfSourceHttp(width, height, resizeMethod); } diff --git a/src/DateUtils.ts b/src/DateUtils.ts index c81099b893..221ecfeb2a 100644 --- a/src/DateUtils.ts +++ b/src/DateUtils.ts @@ -161,3 +161,20 @@ export function wantsDateSeparator(prevEventDate: Date, nextEventDate: Date): bo // Compare weekdays return prevEventDate.getDay() !== nextEventDate.getDay(); } + +export function formatFullDateNoDay(date: Date) { + return _t("%(date)s at %(time)s", { + date: date.toLocaleDateString().replace(/\//g, '-'), + time: date.toLocaleTimeString().replace(/:/g, '-'), + }); +} + +export function formatFullDateNoDayNoTime(date: Date) { + return ( + date.getFullYear() + + "/" + + pad(date.getMonth() + 1) + + "/" + + pad(date.getDate()) + ); +} diff --git a/src/IdentityAuthClient.js b/src/IdentityAuthClient.tsx similarity index 82% rename from src/IdentityAuthClient.js rename to src/IdentityAuthClient.tsx index 54cf3b43e3..ae55c20438 100644 --- a/src/IdentityAuthClient.js +++ b/src/IdentityAuthClient.tsx @@ -14,12 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ +import React from "react"; import { SERVICE_TYPES } from 'matrix-js-sdk/src/service-types'; -import { createClient } from 'matrix-js-sdk/src/matrix'; +import { createClient, MatrixClient } from 'matrix-js-sdk/src/matrix'; import { MatrixClientPeg } from './MatrixClientPeg'; import Modal from './Modal'; -import * as sdk from './index'; import { _t } from './languageHandler'; import { Service, startTermsFlow, TermsNotSignedError } from './Terms'; import { @@ -27,23 +27,25 @@ import { doesIdentityServerHaveTerms, useDefaultIdentityServer, } from './utils/IdentityServerUtils'; -import { abbreviateUrl } from './utils/UrlUtils'; import { logger } from "matrix-js-sdk/src/logger"; +import QuestionDialog from "./components/views/dialogs/QuestionDialog"; +import { abbreviateUrl } from "./utils/UrlUtils"; export class AbortedIdentityActionError extends Error {} export default class IdentityAuthClient { + private accessToken: string; + private tempClient: MatrixClient; + private authEnabled = true; + /** * Creates a new identity auth client * @param {string} identityUrl The URL to contact the identity server with. * When provided, this class will operate solely within memory, refusing to * persist any information such as tokens. Default null (not provided). */ - constructor(identityUrl = null) { - this.accessToken = null; - this.authEnabled = true; - + constructor(identityUrl?: string) { if (identityUrl) { // XXX: We shouldn't have to create a whole new MatrixClient just to // do identity server auth. The functions don't take an identity URL @@ -54,32 +56,29 @@ export default class IdentityAuthClient { baseUrl: "", // invalid by design idBaseUrl: identityUrl, }); - } else { - // Indicates that we're using the real client, not some workaround. - this.tempClient = null; } } - get _matrixClient() { + private get matrixClient(): MatrixClient { return this.tempClient ? this.tempClient : MatrixClientPeg.get(); } - _writeToken() { + private writeToken(): void { if (this.tempClient) return; // temporary client: ignore window.localStorage.setItem("mx_is_access_token", this.accessToken); } - _readToken() { + private readToken(): string { if (this.tempClient) return null; // temporary client: ignore return window.localStorage.getItem("mx_is_access_token"); } - hasCredentials() { - return this.accessToken != null; // undef or null + public hasCredentials(): boolean { + return Boolean(this.accessToken); } // Returns a promise that resolves to the access_token string from the IS - async getAccessToken({ check = true } = {}) { + public async getAccessToken({ check = true } = {}): Promise { if (!this.authEnabled) { // The current IS doesn't support authentication return null; @@ -87,21 +86,21 @@ export default class IdentityAuthClient { let token = this.accessToken; if (!token) { - token = this._readToken(); + token = this.readToken(); } if (!token) { token = await this.registerForToken(check); if (token) { this.accessToken = token; - this._writeToken(); + this.writeToken(); } return token; } if (check) { try { - await this._checkToken(token); + await this.checkToken(token); } catch (e) { if ( e instanceof TermsNotSignedError || @@ -114,7 +113,7 @@ export default class IdentityAuthClient { token = await this.registerForToken(); if (token) { this.accessToken = token; - this._writeToken(); + this.writeToken(); } } } @@ -122,11 +121,11 @@ export default class IdentityAuthClient { return token; } - async _checkToken(token) { - const identityServerUrl = this._matrixClient.getIdentityServerUrl(); + private async checkToken(token: string): Promise { + const identityServerUrl = this.matrixClient.getIdentityServerUrl(); try { - await this._matrixClient.getIdentityAccount(token); + await this.matrixClient.getIdentityAccount(token); } catch (e) { if (e.errcode === "M_TERMS_NOT_SIGNED") { logger.log("Identity server requires new terms to be agreed to"); @@ -145,8 +144,8 @@ export default class IdentityAuthClient { !doesAccountDataHaveIdentityServer() && !(await doesIdentityServerHaveTerms(identityServerUrl)) ) { - const QuestionDialog = sdk.getComponent("dialogs.QuestionDialog"); - const { finished } = Modal.createTrackedDialog('Default identity server terms warning', '', + const { finished } = Modal.createTrackedDialog( + 'Default identity server terms warning', '', QuestionDialog, { title: _t("Identity server has no terms of service"), description: ( @@ -184,13 +183,13 @@ export default class IdentityAuthClient { // See also https://github.com/vector-im/element-web/issues/10455. } - async registerForToken(check=true) { + public async registerForToken(check = true): Promise { const hsOpenIdToken = await MatrixClientPeg.get().getOpenIdToken(); // XXX: The spec is `token`, but we used `access_token` for a Sydent release. const { access_token: accessToken, token } = - await this._matrixClient.registerWithIdentityServer(hsOpenIdToken); + await this.matrixClient.registerWithIdentityServer(hsOpenIdToken); const identityAccessToken = token ? token : accessToken; - if (check) await this._checkToken(identityAccessToken); + if (check) await this.checkToken(identityAccessToken); return identityAccessToken; } } diff --git a/src/NodeAnimator.js b/src/NodeAnimator.tsx similarity index 63% rename from src/NodeAnimator.js rename to src/NodeAnimator.tsx index 8456e6e9fd..1a8942f5f5 100644 --- a/src/NodeAnimator.js +++ b/src/NodeAnimator.tsx @@ -1,6 +1,21 @@ import React from "react"; import ReactDom from "react-dom"; -import PropTypes from 'prop-types'; + +interface IChildProps { + style: React.CSSProperties; + ref: (node: React.ReactInstance) => void; +} + +interface IProps { + // either a list of child nodes, or a single child. + children: React.ReactNode; + + // optional transition information for changing existing children + transition?: object; + + // a list of state objects to apply to each child node in turn + startStyles: React.CSSProperties[]; +} /** * The NodeAnimator contains components and animates transitions. @@ -9,55 +24,45 @@ import PropTypes from 'prop-types'; * from DOM order. This makes it a lot simpler and lighter: if you need fully * automatic positional animation, look at react-shuffle or similar libraries. */ -export default class NodeAnimator extends React.Component { - static propTypes = { - // either a list of child nodes, or a single child. - children: PropTypes.any, - - // optional transition information for changing existing children - transition: PropTypes.object, - - // a list of state objects to apply to each child node in turn - startStyles: PropTypes.array, - }; - - static defaultProps = { +export default class NodeAnimator extends React.Component { + private nodes = {}; + private children: { [key: string]: React.DetailedReactHTMLElement }; + public static defaultProps: Partial = { startStyles: [], }; - constructor(props) { + constructor(props: IProps) { super(props); - this.nodes = {}; - this._updateChildren(this.props.children); + this.updateChildren(this.props.children); } - componentDidUpdate() { - this._updateChildren(this.props.children); + public componentDidUpdate(): void { + this.updateChildren(this.props.children); } /** * * @param {HTMLElement} node element to apply styles to - * @param {object} styles a key/value pair of CSS properties + * @param {React.CSSProperties} styles a key/value pair of CSS properties * @returns {void} */ - _applyStyles(node, styles) { + private applyStyles(node: HTMLElement, styles: React.CSSProperties): void { Object.entries(styles).forEach(([property, value]) => { node.style[property] = value; }); } - _updateChildren(newChildren) { + private updateChildren(newChildren: React.ReactNode): void { const oldChildren = this.children || {}; this.children = {}; - React.Children.toArray(newChildren).forEach((c) => { + React.Children.toArray(newChildren).forEach((c: any) => { if (oldChildren[c.key]) { const old = oldChildren[c.key]; const oldNode = ReactDom.findDOMNode(this.nodes[old.key]); - if (oldNode && oldNode.style.left !== c.props.style.left) { - this._applyStyles(oldNode, { left: c.props.style.left }); + if (oldNode && (oldNode as HTMLElement).style.left !== c.props.style.left) { + this.applyStyles(oldNode as HTMLElement, { left: c.props.style.left }); // console.log("translation: "+oldNode.style.left+" -> "+c.props.style.left); } // clone the old element with the props (and children) of the new element @@ -66,7 +71,7 @@ export default class NodeAnimator extends React.Component { } else { // new element. If we have a startStyle, use that as the style and go through // the enter animations - const newProps = {}; + const newProps: Partial = {}; const restingStyle = c.props.style; const startStyles = this.props.startStyles; @@ -76,7 +81,7 @@ export default class NodeAnimator extends React.Component { // console.log("mounted@startstyle0: "+JSON.stringify(startStyle)); } - newProps.ref = ((n) => this._collectNode( + newProps.ref = ((n) => this.collectNode( c.key, n, restingStyle, )); @@ -85,7 +90,7 @@ export default class NodeAnimator extends React.Component { }); } - _collectNode(k, node, restingStyle) { + private collectNode(k: string, node: React.ReactInstance, restingStyle: React.CSSProperties): void { if ( node && this.nodes[k] === undefined && @@ -96,7 +101,7 @@ export default class NodeAnimator extends React.Component { // start from startStyle 1: 0 is the one we gave it // to start with, so now we animate 1 etc. for (let i = 1; i < startStyles.length; ++i) { - this._applyStyles(domNode, startStyles[i]); + this.applyStyles(domNode as HTMLElement, startStyles[i]); // console.log("start:" // JSON.stringify(startStyles[i]), // ); @@ -104,7 +109,7 @@ export default class NodeAnimator extends React.Component { // and then we animate to the resting state setTimeout(() => { - this._applyStyles(domNode, restingStyle); + this.applyStyles(domNode as HTMLElement, restingStyle); }, 0); // console.log("enter:", @@ -113,7 +118,7 @@ export default class NodeAnimator extends React.Component { this.nodes[k] = node; } - render() { + public render(): JSX.Element { return ( <>{ Object.values(this.children) } ); diff --git a/src/PageTypes.js b/src/PageTypes.ts similarity index 74% rename from src/PageTypes.js rename to src/PageTypes.ts index 09e0eadbd7..73967f351e 100644 --- a/src/PageTypes.js +++ b/src/PageTypes.ts @@ -16,11 +16,13 @@ limitations under the License. */ /** The types of page which can be shown by the LoggedInView */ -export default { - HomePage: "home_page", - RoomView: "room_view", - RoomDirectory: "room_directory", - UserView: "user_view", - GroupView: "group_view", - MyGroups: "my_groups", -}; +enum PageType { + HomePage = "home_page", + RoomView = "room_view", + RoomDirectory = "room_directory", + UserView = "user_view", + GroupView = "group_view", + MyGroups = "my_groups", +} + +export default PageType; diff --git a/src/Registration.js b/src/Registration.tsx similarity index 89% rename from src/Registration.js rename to src/Registration.tsx index c59d244149..90e81c0d45 100644 --- a/src/Registration.js +++ b/src/Registration.tsx @@ -20,10 +20,11 @@ limitations under the License. * registration code. */ +import React from "react"; import dis from './dispatcher/dispatcher'; -import * as sdk from './index'; import Modal from './Modal'; import { _t } from './languageHandler'; +import QuestionDialog from "./components/views/dialogs/QuestionDialog"; // Regex for what a "safe" or "Matrix-looking" localpart would be. // TODO: Update as needed for https://github.com/matrix-org/matrix-doc/issues/1514 @@ -41,9 +42,11 @@ export const SAFE_LOCALPART_REGEX = /^[a-z0-9=_\-./]+$/; * @param {bool} options.screen_after * If present the screen to redirect to after a successful login or register. */ -export async function startAnyRegistrationFlow(options) { +export async function startAnyRegistrationFlow( + // eslint-disable-next-line camelcase + options: { go_home_on_cancel?: boolean, go_welcome_on_cancel?: boolean, screen_after?: boolean}, +): Promise { if (options === undefined) options = {}; - const QuestionDialog = sdk.getComponent("dialogs.QuestionDialog"); const modal = Modal.createTrackedDialog('Registration required', '', QuestionDialog, { hasCancelButton: true, quitOnly: true, diff --git a/src/RoomInvite.tsx b/src/RoomInvite.tsx index 7d093f4092..5c9d96f509 100644 --- a/src/RoomInvite.tsx +++ b/src/RoomInvite.tsx @@ -42,10 +42,15 @@ export interface IInviteResult { * * @param {string} roomId The ID of the room to invite to * @param {string[]} addresses Array of strings of addresses to invite. May be matrix IDs or 3pids. + * @param {function} progressCallback optional callback, fired after each invite. * @returns {Promise} Promise */ -export function inviteMultipleToRoom(roomId: string, addresses: string[]): Promise { - const inviter = new MultiInviter(roomId); +export function inviteMultipleToRoom( + roomId: string, + addresses: string[], + progressCallback?: () => void, +): Promise { + const inviter = new MultiInviter(roomId, progressCallback); return inviter.invite(addresses).then(states => Promise.resolve({ states, inviter })); } @@ -104,8 +109,8 @@ export function isValid3pidInvite(event: MatrixEvent): boolean { return true; } -export function inviteUsersToRoom(roomId: string, userIds: string[]): Promise { - return inviteMultipleToRoom(roomId, userIds).then((result) => { +export function inviteUsersToRoom(roomId: string, userIds: string[], progressCallback?: () => void): Promise { + return inviteMultipleToRoom(roomId, userIds, progressCallback).then((result) => { const room = MatrixClientPeg.get().getRoom(roomId); showAnyInviteErrors(result.states, room, result.inviter); }).catch((err) => { diff --git a/src/RoomNotifs.js b/src/RoomNotifs.ts similarity index 66% rename from src/RoomNotifs.js rename to src/RoomNotifs.ts index 5d109094af..5abee9a6ad 100644 --- a/src/RoomNotifs.js +++ b/src/RoomNotifs.ts @@ -17,27 +17,31 @@ limitations under the License. import { MatrixClientPeg } from './MatrixClientPeg'; import { PushProcessor } from 'matrix-js-sdk/src/pushprocessor'; +import { NotificationCountType, Room } from "matrix-js-sdk/src/models/room"; +import { IAnnotatedPushRule, PushRuleKind } from "matrix-js-sdk/src/@types/PushRules"; -export const ALL_MESSAGES_LOUD = 'all_messages_loud'; -export const ALL_MESSAGES = 'all_messages'; -export const MENTIONS_ONLY = 'mentions_only'; -export const MUTE = 'mute'; +export enum RoomNotifState { + AllMessagesLoud = 'all_messages_loud', + AllMessages = 'all_messages', + MentionsOnly = 'mentions_only', + Mute = 'mute', +} -export const BADGE_STATES = [ALL_MESSAGES, ALL_MESSAGES_LOUD]; -export const MENTION_BADGE_STATES = [...BADGE_STATES, MENTIONS_ONLY]; +export const BADGE_STATES = [RoomNotifState.AllMessages, RoomNotifState.AllMessagesLoud]; +export const MENTION_BADGE_STATES = [...BADGE_STATES, RoomNotifState.MentionsOnly]; -export function shouldShowNotifBadge(roomNotifState) { +export function shouldShowNotifBadge(roomNotifState: RoomNotifState): boolean { return BADGE_STATES.includes(roomNotifState); } -export function shouldShowMentionBadge(roomNotifState) { +export function shouldShowMentionBadge(roomNotifState: RoomNotifState): boolean { return MENTION_BADGE_STATES.includes(roomNotifState); } -export function aggregateNotificationCount(rooms) { - return rooms.reduce((result, room) => { +export function aggregateNotificationCount(rooms: Room[]): {count: number, highlight: boolean} { + return rooms.reduce<{count: number, highlight: boolean}>((result, room) => { const roomNotifState = getRoomNotifsState(room.roomId); - const highlight = room.getUnreadNotificationCount('highlight') > 0; + const highlight = room.getUnreadNotificationCount(NotificationCountType.Highlight) > 0; // use helper method to include highlights in the previous version of the room const notificationCount = getUnreadNotificationCount(room); @@ -55,9 +59,9 @@ export function aggregateNotificationCount(rooms) { }, { count: 0, highlight: false }); } -export function getRoomHasBadge(room) { +export function getRoomHasBadge(room: Room): boolean { const roomNotifState = getRoomNotifsState(room.roomId); - const highlight = room.getUnreadNotificationCount('highlight') > 0; + const highlight = room.getUnreadNotificationCount(NotificationCountType.Highlight) > 0; const notificationCount = room.getUnreadNotificationCount(); const notifBadges = notificationCount > 0 && shouldShowNotifBadge(roomNotifState); @@ -66,14 +70,14 @@ export function getRoomHasBadge(room) { return notifBadges || mentionBadges; } -export function getRoomNotifsState(roomId) { - if (MatrixClientPeg.get().isGuest()) return ALL_MESSAGES; +export function getRoomNotifsState(roomId: string): RoomNotifState { + if (MatrixClientPeg.get().isGuest()) return RoomNotifState.AllMessages; // look through the override rules for a rule affecting this room: // if one exists, it will take precedence. const muteRule = findOverrideMuteRule(roomId); if (muteRule) { - return MUTE; + return RoomNotifState.Mute; } // for everything else, look at the room rule. @@ -89,27 +93,27 @@ export function getRoomNotifsState(roomId) { // XXX: We have to assume the default is to notify for all messages // (in particular this will be 'wrong' for one to one rooms because // they will notify loudly for all messages) - if (!roomRule || !roomRule.enabled) return ALL_MESSAGES; + if (!roomRule || !roomRule.enabled) return RoomNotifState.AllMessages; // a mute at the room level will still allow mentions // to notify - if (isMuteRule(roomRule)) return MENTIONS_ONLY; + if (isMuteRule(roomRule)) return RoomNotifState.MentionsOnly; const actionsObject = PushProcessor.actionListToActionsObject(roomRule.actions); - if (actionsObject.tweaks.sound) return ALL_MESSAGES_LOUD; + if (actionsObject.tweaks.sound) return RoomNotifState.AllMessagesLoud; return null; } -export function setRoomNotifsState(roomId, newState) { - if (newState === MUTE) { +export function setRoomNotifsState(roomId: string, newState: RoomNotifState): Promise { + if (newState === RoomNotifState.Mute) { return setRoomNotifsStateMuted(roomId); } else { return setRoomNotifsStateUnmuted(roomId, newState); } } -export function getUnreadNotificationCount(room, type=null) { +export function getUnreadNotificationCount(room: Room, type: NotificationCountType = null): number { let notificationCount = room.getUnreadNotificationCount(type); // Check notification counts in the old room just in case there's some lost @@ -124,21 +128,21 @@ export function getUnreadNotificationCount(room, type=null) { // notifying the user for unread messages because they would have extreme // difficulty changing their notification preferences away from "All Messages" // and "Noisy". - notificationCount += oldRoom.getUnreadNotificationCount("highlight"); + notificationCount += oldRoom.getUnreadNotificationCount(NotificationCountType.Highlight); } } return notificationCount; } -function setRoomNotifsStateMuted(roomId) { +function setRoomNotifsStateMuted(roomId: string): Promise { const cli = MatrixClientPeg.get(); const promises = []; // delete the room rule const roomRule = cli.getRoomPushRule('global', roomId); if (roomRule) { - promises.push(cli.deletePushRule('global', 'room', roomRule.rule_id)); + promises.push(cli.deletePushRule('global', PushRuleKind.RoomSpecific, roomRule.rule_id)); } // add/replace an override rule to squelch everything in this room @@ -146,7 +150,7 @@ function setRoomNotifsStateMuted(roomId) { // is an override rule, not a room rule: it still pertains to this room // though, so using the room ID as the rule ID is logical and prevents // duplicate copies of the rule. - promises.push(cli.addPushRule('global', 'override', roomId, { + promises.push(cli.addPushRule('global', PushRuleKind.Override, roomId, { conditions: [ { kind: 'event_match', @@ -162,30 +166,30 @@ function setRoomNotifsStateMuted(roomId) { return Promise.all(promises); } -function setRoomNotifsStateUnmuted(roomId, newState) { +function setRoomNotifsStateUnmuted(roomId: string, newState: RoomNotifState): Promise { const cli = MatrixClientPeg.get(); const promises = []; const overrideMuteRule = findOverrideMuteRule(roomId); if (overrideMuteRule) { - promises.push(cli.deletePushRule('global', 'override', overrideMuteRule.rule_id)); + promises.push(cli.deletePushRule('global', PushRuleKind.Override, overrideMuteRule.rule_id)); } - if (newState === 'all_messages') { + if (newState === RoomNotifState.AllMessages) { const roomRule = cli.getRoomPushRule('global', roomId); if (roomRule) { - promises.push(cli.deletePushRule('global', 'room', roomRule.rule_id)); + promises.push(cli.deletePushRule('global', PushRuleKind.RoomSpecific, roomRule.rule_id)); } - } else if (newState === 'mentions_only') { - promises.push(cli.addPushRule('global', 'room', roomId, { + } else if (newState === RoomNotifState.MentionsOnly) { + promises.push(cli.addPushRule('global', PushRuleKind.RoomSpecific, roomId, { actions: [ 'dont_notify', ], })); // https://matrix.org/jira/browse/SPEC-400 - promises.push(cli.setPushRuleEnabled('global', 'room', roomId, true)); - } else if ('all_messages_loud') { - promises.push(cli.addPushRule('global', 'room', roomId, { + promises.push(cli.setPushRuleEnabled('global', PushRuleKind.RoomSpecific, roomId, true)); + } else if (newState === RoomNotifState.AllMessagesLoud) { + promises.push(cli.addPushRule('global', PushRuleKind.RoomSpecific, roomId, { actions: [ 'notify', { @@ -195,13 +199,13 @@ function setRoomNotifsStateUnmuted(roomId, newState) { ], })); // https://matrix.org/jira/browse/SPEC-400 - promises.push(cli.setPushRuleEnabled('global', 'room', roomId, true)); + promises.push(cli.setPushRuleEnabled('global', PushRuleKind.RoomSpecific, roomId, true)); } return Promise.all(promises); } -function findOverrideMuteRule(roomId) { +function findOverrideMuteRule(roomId: string): IAnnotatedPushRule { const cli = MatrixClientPeg.get(); if (!cli.pushRules || !cli.pushRules['global'] || @@ -218,7 +222,7 @@ function findOverrideMuteRule(roomId) { return null; } -function isRuleForRoom(roomId, rule) { +function isRuleForRoom(roomId: string, rule: IAnnotatedPushRule): boolean { if (rule.conditions.length !== 1) { return false; } @@ -226,6 +230,6 @@ function isRuleForRoom(roomId, rule) { return (cond.kind === 'event_match' && cond.key === 'room_id' && cond.pattern === roomId); } -function isMuteRule(rule) { +function isMuteRule(rule: IAnnotatedPushRule): boolean { return (rule.actions.length === 1 && rule.actions[0] === 'dont_notify'); } diff --git a/src/ScalarMessaging.js b/src/ScalarMessaging.ts similarity index 83% rename from src/ScalarMessaging.js rename to src/ScalarMessaging.ts index 609ac5c67c..d068c1f924 100644 --- a/src/ScalarMessaging.js +++ b/src/ScalarMessaging.ts @@ -247,13 +247,31 @@ import { objectClone } from "./utils/objects"; import { logger } from "matrix-js-sdk/src/logger"; -function sendResponse(event, res) { +enum Action { + CloseScalar = "close_scalar", + GetWidgets = "get_widgets", + SetWidgets = "set_widgets", + SetWidget = "set_widget", + JoinRulesState = "join_rules_state", + SetPlumbingState = "set_plumbing_state", + GetMembershipCount = "get_membership_count", + GetRoomEncryptionState = "get_room_enc_state", + CanSendEvent = "can_send_event", + MembershipState = "membership_state", + invite = "invite", + BotOptions = "bot_options", + SetBotOptions = "set_bot_options", + SetBotPower = "set_bot_power", +} + +function sendResponse(event: MessageEvent, res: any): void { const data = objectClone(event.data); data.response = res; + // @ts-ignore event.source.postMessage(data, event.origin); } -function sendError(event, msg, nestedError) { +function sendError(event: MessageEvent, msg: string, nestedError?: Error): void { console.error("Action:" + event.data.action + " failed with message: " + msg); const data = objectClone(event.data); data.response = { @@ -264,10 +282,11 @@ function sendError(event, msg, nestedError) { if (nestedError) { data.response.error._error = nestedError; } + // @ts-ignore event.source.postMessage(data, event.origin); } -function inviteUser(event, roomId, userId) { +function inviteUser(event: MessageEvent, roomId: string, userId: string): void { logger.log(`Received request to invite ${userId} into room ${roomId}`); const client = MatrixClientPeg.get(); if (!client) { @@ -295,7 +314,7 @@ function inviteUser(event, roomId, userId) { }); } -function setWidget(event, roomId) { +function setWidget(event: MessageEvent, roomId: string): void { const widgetId = event.data.widget_id; let widgetType = event.data.type; const widgetUrl = event.data.url; @@ -356,7 +375,7 @@ function setWidget(event, roomId) { } } -function getWidgets(event, roomId) { +function getWidgets(event: MessageEvent, roomId: string): void { const client = MatrixClientPeg.get(); if (!client) { sendError(event, _t('You need to be logged in.')); @@ -382,7 +401,7 @@ function getWidgets(event, roomId) { sendResponse(event, widgetStateEvents); } -function getRoomEncState(event, roomId) { +function getRoomEncState(event: MessageEvent, roomId: string): void { const client = MatrixClientPeg.get(); if (!client) { sendError(event, _t('You need to be logged in.')); @@ -398,7 +417,7 @@ function getRoomEncState(event, roomId) { sendResponse(event, roomIsEncrypted); } -function setPlumbingState(event, roomId, status) { +function setPlumbingState(event: MessageEvent, roomId: string, status: string): void { if (typeof status !== 'string') { throw new Error('Plumbing state status should be a string'); } @@ -417,7 +436,7 @@ function setPlumbingState(event, roomId, status) { }); } -function setBotOptions(event, roomId, userId) { +function setBotOptions(event: MessageEvent, roomId: string, userId: string): void { logger.log(`Received request to set options for bot ${userId} in room ${roomId}`); const client = MatrixClientPeg.get(); if (!client) { @@ -433,7 +452,9 @@ function setBotOptions(event, roomId, userId) { }); } -function setBotPower(event, roomId, userId, level) { +async function setBotPower( + event: MessageEvent, roomId: string, userId: string, level: number, ignoreIfGreater?: boolean, +): Promise { if (!(Number.isInteger(level) && level >= 0)) { sendError(event, _t('Power level must be positive integer.')); return; @@ -446,40 +467,52 @@ function setBotPower(event, roomId, userId, level) { return; } - client.getStateEvent(roomId, "m.room.power_levels", "").then((powerLevels) => { - const powerEvent = new MatrixEvent( + try { + const powerLevels = await client.getStateEvent(roomId, "m.room.power_levels", ""); + + // If the PL is equal to or greater than the requested PL, ignore. + if (ignoreIfGreater === true) { + // As per https://matrix.org/docs/spec/client_server/r0.6.0#m-room-power-levels + const currentPl = ( + powerLevels.content.users && powerLevels.content.users[userId] + ) || powerLevels.content.users_default || 0; + + if (currentPl >= level) { + return sendResponse(event, { + success: true, + }); + } + } + await client.setPowerLevel(roomId, userId, level, new MatrixEvent( { type: "m.room.power_levels", content: powerLevels, }, - ); - - client.setPowerLevel(roomId, userId, level, powerEvent).then(() => { - sendResponse(event, { - success: true, - }); - }, (err) => { - sendError(event, err.message ? err.message : _t('Failed to send request.'), err); + )); + return sendResponse(event, { + success: true, }); - }); + } catch (err) { + sendError(event, err.message ? err.message : _t('Failed to send request.'), err); + } } -function getMembershipState(event, roomId, userId) { +function getMembershipState(event: MessageEvent, roomId: string, userId: string): void { logger.log(`membership_state of ${userId} in room ${roomId} requested.`); returnStateEvent(event, roomId, "m.room.member", userId); } -function getJoinRules(event, roomId) { +function getJoinRules(event: MessageEvent, roomId: string): void { logger.log(`join_rules of ${roomId} requested.`); returnStateEvent(event, roomId, "m.room.join_rules", ""); } -function botOptions(event, roomId, userId) { +function botOptions(event: MessageEvent, roomId: string, userId: string): void { logger.log(`bot_options of ${userId} in room ${roomId} requested.`); returnStateEvent(event, roomId, "m.room.bot.options", "_" + userId); } -function getMembershipCount(event, roomId) { +function getMembershipCount(event: MessageEvent, roomId: string): void { const client = MatrixClientPeg.get(); if (!client) { sendError(event, _t('You need to be logged in.')); @@ -494,7 +527,7 @@ function getMembershipCount(event, roomId) { sendResponse(event, count); } -function canSendEvent(event, roomId) { +function canSendEvent(event: MessageEvent, roomId: string): void { const evType = "" + event.data.event_type; // force stringify const isState = Boolean(event.data.is_state); const client = MatrixClientPeg.get(); @@ -528,7 +561,7 @@ function canSendEvent(event, roomId) { sendResponse(event, true); } -function returnStateEvent(event, roomId, eventType, stateKey) { +function returnStateEvent(event: MessageEvent, roomId: string, eventType: string, stateKey: string): void { const client = MatrixClientPeg.get(); if (!client) { sendError(event, _t('You need to be logged in.')); @@ -547,8 +580,9 @@ function returnStateEvent(event, roomId, eventType, stateKey) { sendResponse(event, stateEvent.getContent()); } -const onMessage = function(event) { +const onMessage = function(event: MessageEvent): void { if (!event.origin) { // stupid chrome + // @ts-ignore event.origin = event.originalEvent.origin; } @@ -582,8 +616,8 @@ const onMessage = function(event) { return; } - if (event.data.action === "close_scalar") { - dis.dispatch({ action: "close_scalar" }); + if (event.data.action === Action.CloseScalar) { + dis.dispatch({ action: Action.CloseScalar }); sendResponse(event, null); return; } @@ -596,10 +630,10 @@ const onMessage = function(event) { // Get and set user widgets (not associated with a specific room) // If roomId is specified, it must be validated, so room-based widgets agreed // handled further down. - if (event.data.action === "get_widgets") { + if (event.data.action === Action.GetWidgets) { getWidgets(event, null); return; - } else if (event.data.action === "set_widget") { + } else if (event.data.action === Action.SetWidgets) { setWidget(event, null); return; } else { @@ -614,28 +648,28 @@ const onMessage = function(event) { } // Get and set room-based widgets - if (event.data.action === "get_widgets") { + if (event.data.action === Action.GetWidgets) { getWidgets(event, roomId); return; - } else if (event.data.action === "set_widget") { + } else if (event.data.action === Action.SetWidget) { setWidget(event, roomId); return; } // These APIs don't require userId - if (event.data.action === "join_rules_state") { + if (event.data.action === Action.JoinRulesState) { getJoinRules(event, roomId); return; - } else if (event.data.action === "set_plumbing_state") { + } else if (event.data.action === Action.SetPlumbingState) { setPlumbingState(event, roomId, event.data.status); return; - } else if (event.data.action === "get_membership_count") { + } else if (event.data.action === Action.GetMembershipCount) { getMembershipCount(event, roomId); return; - } else if (event.data.action === "get_room_enc_state") { + } else if (event.data.action === Action.GetRoomEncryptionState) { getRoomEncState(event, roomId); return; - } else if (event.data.action === "can_send_event") { + } else if (event.data.action === Action.CanSendEvent) { canSendEvent(event, roomId); return; } @@ -645,20 +679,20 @@ const onMessage = function(event) { return; } switch (event.data.action) { - case "membership_state": + case Action.MembershipState: getMembershipState(event, roomId, userId); break; - case "invite": + case Action.invite: inviteUser(event, roomId, userId); break; - case "bot_options": + case Action.BotOptions: botOptions(event, roomId, userId); break; - case "set_bot_options": + case Action.SetBotOptions: setBotOptions(event, roomId, userId); break; - case "set_bot_power": - setBotPower(event, roomId, userId, event.data.level); + case Action.SetBotPower: + setBotPower(event, roomId, userId, event.data.level, event.data.ignoreIfGreater); break; default: console.warn("Unhandled postMessage event with action '" + event.data.action +"'"); @@ -667,16 +701,16 @@ const onMessage = function(event) { }; let listenerCount = 0; -let openManagerUrl = null; +let openManagerUrl: string = null; -export function startListening() { +export function startListening(): void { if (listenerCount === 0) { window.addEventListener("message", onMessage, false); } listenerCount += 1; } -export function stopListening() { +export function stopListening(): void { listenerCount -= 1; if (listenerCount === 0) { window.removeEventListener("message", onMessage); @@ -691,6 +725,6 @@ export function stopListening() { } } -export function setOpenManagerUrl(url) { +export function setOpenManagerUrl(url: string): void { openManagerUrl = url; } diff --git a/src/Skinner.js b/src/Skinner.ts similarity index 84% rename from src/Skinner.js rename to src/Skinner.ts index ef340e4052..6b20781b59 100644 --- a/src/Skinner.js +++ b/src/Skinner.ts @@ -14,12 +14,20 @@ See the License for the specific language governing permissions and limitations under the License. */ -class Skinner { - constructor() { - this.components = null; - } +import React from "react"; - getComponent(name) { +export interface IComponents { + [key: string]: React.Component; +} + +export interface ISkinObject { + components: IComponents; +} + +export class Skinner { + public components: IComponents = null; + + public getComponent(name: string): React.Component { if (!name) throw new Error(`Invalid component name: ${name}`); if (this.components === null) { throw new Error( @@ -30,7 +38,7 @@ class Skinner { ); } - const doLookup = (components) => { + const doLookup = (components: IComponents): React.Component => { if (!components) return null; let comp = components[name]; // XXX: Temporarily also try 'views.' as we're currently @@ -58,7 +66,7 @@ class Skinner { return comp; } - load(skinObject) { + public load(skinObject: ISkinObject): void { if (this.components !== null) { throw new Error( "Attempted to load a skin while a skin is already loaded"+ @@ -72,6 +80,7 @@ class Skinner { } // Now that we have a skin, load our components too + // eslint-disable-next-line @typescript-eslint/no-var-requires const idx = require("./component-index"); if (!idx || !idx.components) throw new Error("Invalid react-sdk component index"); for (const c in idx.components) { @@ -79,7 +88,7 @@ class Skinner { } } - addComponent(name, comp) { + public addComponent(name: string, comp: any) { let slot = name; if (comp.replaces !== undefined) { if (comp.replaces.indexOf('.') > -1) { @@ -91,7 +100,7 @@ class Skinner { this.components[slot] = comp; } - reset() { + public reset(): void { this.components = null; } } @@ -105,8 +114,8 @@ class Skinner { // See https://derickbailey.com/2016/03/09/creating-a-true-singleton-in-node-js-with-es6-symbols/ // or https://nodejs.org/api/modules.html#modules_module_caching_caveats // ("Modules are cached based on their resolved filename") -if (global.mxSkinner === undefined) { - global.mxSkinner = new Skinner(); +if (window.mxSkinner === undefined) { + window.mxSkinner = new Skinner(); } -export default global.mxSkinner; +export default window.mxSkinner; diff --git a/src/TextForEvent.tsx b/src/TextForEvent.tsx index 0e9dc1cf15..6fb4107d20 100644 --- a/src/TextForEvent.tsx +++ b/src/TextForEvent.tsx @@ -166,6 +166,11 @@ function textForTopicEvent(ev: MatrixEvent): () => string | null { }); } +function textForRoomAvatarEvent(ev: MatrixEvent): () => string | null { + const senderDisplayName = ev?.sender?.name || ev.getSender(); + return () => _t('%(senderDisplayName)s changed the room avatar.', { senderDisplayName }); +} + function textForRoomNameEvent(ev: MatrixEvent): () => string | null { const senderDisplayName = ev.sender && ev.sender.name ? ev.sender.name : ev.getSender(); @@ -289,11 +294,27 @@ function textForServerACLEvent(ev: MatrixEvent): () => string | null { function textForMessageEvent(ev: MatrixEvent): () => string | null { return () => { const senderDisplayName = ev.sender && ev.sender.name ? ev.sender.name : ev.getSender(); - let message = senderDisplayName + ': ' + ev.getContent().body; + let message = ev.getContent().body; + if (ev.isRedacted()) { + message = _t("Message deleted"); + const unsigned = ev.getUnsigned(); + const redactedBecauseUserId = unsigned?.redacted_because?.sender; + if (redactedBecauseUserId && redactedBecauseUserId !== ev.getSender()) { + const room = MatrixClientPeg.get().getRoom(ev.getRoomId()); + const sender = room?.getMember(redactedBecauseUserId); + message = _t("Message deleted by %(name)s", { name: sender?.name + || redactedBecauseUserId }); + } + } if (ev.getContent().msgtype === "m.emote") { message = "* " + senderDisplayName + " " + message; } else if (ev.getContent().msgtype === "m.image") { message = _t('%(senderDisplayName)s sent an image.', { senderDisplayName }); + } else if (ev.getType() == "m.sticker") { + message = _t('%(senderDisplayName)s sent a sticker.', { senderDisplayName }); + } else { + // in this case, parse it as a plain text message + message = senderDisplayName + ': ' + message; } return message; }; @@ -669,6 +690,7 @@ interface IHandlers { const handlers: IHandlers = { 'm.room.message': textForMessageEvent, + 'm.sticker': textForMessageEvent, 'm.call.invite': textForCallInviteEvent, }; @@ -677,6 +699,7 @@ const stateHandlers: IHandlers = { 'm.room.name': textForRoomNameEvent, 'm.room.topic': textForTopicEvent, 'm.room.member': textForMemberEvent, + "m.room.avatar": textForRoomAvatarEvent, 'm.room.third_party_invite': textForThreePidInviteEvent, 'm.room.history_visibility': textForHistoryVisibilityEvent, 'm.room.power_levels': textForPowerEvent, diff --git a/src/boundThreepids.js b/src/boundThreepids.ts similarity index 84% rename from src/boundThreepids.js rename to src/boundThreepids.ts index 3b32815913..94ff36ad4f 100644 --- a/src/boundThreepids.js +++ b/src/boundThreepids.ts @@ -14,9 +14,13 @@ See the License for the specific language governing permissions and limitations under the License. */ +import { IThreepid, ThreepidMedium } from "matrix-js-sdk/src/@types/threepids"; +import { MatrixClient } from "matrix-js-sdk/src/client"; import IdentityAuthClient from './IdentityAuthClient'; -export async function getThreepidsWithBindStatus(client, filterMedium) { +export async function getThreepidsWithBindStatus( + client: MatrixClient, filterMedium?: ThreepidMedium, +): Promise { const userId = client.getUserId(); let { threepids } = await client.getThreePids(); @@ -31,7 +35,7 @@ export async function getThreepidsWithBindStatus(client, filterMedium) { const identityAccessToken = await authClient.getAccessToken({ check: false }); // Restructure for lookup query - const query = threepids.map(({ medium, address }) => [medium, address]); + const query = threepids.map(({ medium, address }): [string, string] => [medium, address]); const lookupResults = await client.bulkLookupThreePids(query, identityAccessToken); // Record which are already bound diff --git a/src/components/structures/ContextMenu.tsx b/src/components/structures/ContextMenu.tsx index 2173230627..4250b5925b 100644 --- a/src/components/structures/ContextMenu.tsx +++ b/src/components/structures/ContextMenu.tsx @@ -19,6 +19,7 @@ limitations under the License. import React, { CSSProperties, RefObject, SyntheticEvent, useRef, useState } from "react"; import ReactDOM from "react-dom"; import classNames from "classnames"; +import FocusLock from "react-focus-lock"; import { Key } from "../../Keyboard"; import { Writeable } from "../../@types/common"; @@ -43,8 +44,6 @@ function getOrCreateContainer(): HTMLDivElement { return container; } -const ARIA_MENU_ITEM_ROLES = new Set(["menuitem", "menuitemcheckbox", "menuitemradio"]); - export interface IPosition { top?: number; bottom?: number; @@ -84,6 +83,10 @@ export interface IProps extends IPosition { // it will be mounted to a container at the root of the DOM. mountAsChild?: boolean; + // If specified, contents will be wrapped in a FocusLock, this is only needed if the context menu is being rendered + // within an existing FocusLock e.g inside a modal. + focusLock?: boolean; + // Function to be called on menu close onFinished(); // on resize callback @@ -99,7 +102,7 @@ interface IState { // this will allow the ContextMenu to manage its own focus using arrow keys as per the ARIA guidelines. @replaceableComponent("structures.ContextMenu") export class ContextMenu extends React.PureComponent { - private initialFocus: HTMLElement; + private readonly initialFocus: HTMLElement; static defaultProps = { hasBackground: true, @@ -108,6 +111,7 @@ export class ContextMenu extends React.PureComponent { constructor(props, context) { super(props, context); + this.state = { contextMenuElem: null, }; @@ -121,14 +125,13 @@ export class ContextMenu extends React.PureComponent { this.initialFocus.focus(); } - private collectContextMenuRect = (element) => { + private collectContextMenuRect = (element: HTMLDivElement) => { // We don't need to clean up when unmounting, so ignore if (!element) return; - let first = element.querySelector('[role^="menuitem"]'); - if (!first) { - first = element.querySelector('[tab-index]'); - } + const first = element.querySelector('[role^="menuitem"]') + || element.querySelector('[tab-index]'); + if (first) { first.focus(); } @@ -205,7 +208,7 @@ export class ContextMenu extends React.PureComponent { descending = true; } } - } while (element && !ARIA_MENU_ITEM_ROLES.has(element.getAttribute("role"))); + } while (element && !element.getAttribute("role")?.startsWith("menuitem")); if (element) { (element as HTMLElement).focus(); @@ -226,6 +229,11 @@ export class ContextMenu extends React.PureComponent { } }; + private onClick = (ev: React.MouseEvent) => { + // Don't allow clicks to escape the context menu wrapper + ev.stopPropagation(); + }; + private onKeyDown = (ev: React.KeyboardEvent) => { // don't let keyboard handling escape the context menu ev.stopPropagation(); @@ -378,11 +386,23 @@ export class ContextMenu extends React.PureComponent { ); } + let body = <> + { chevron } + { props.children } + ; + + if (props.focusLock) { + body = + { body } + ; + } + return (
{ ref={this.collectContextMenuRect} role={this.props.managed ? "menu" : undefined} > - { chevron } - { props.children } + { body }
{ background }
diff --git a/src/components/structures/MatrixChat.tsx b/src/components/structures/MatrixChat.tsx index b6d2e21918..90ac47ffb5 100644 --- a/src/components/structures/MatrixChat.tsx +++ b/src/components/structures/MatrixChat.tsx @@ -42,7 +42,7 @@ import linkifyMatrix from "../../linkify-matrix"; import * as Lifecycle from '../../Lifecycle'; // LifecycleStore is not used but does listen to and dispatch actions import '../../stores/LifecycleStore'; -import PageTypes from '../../PageTypes'; +import PageType from '../../PageTypes'; import createRoom, { IOpts } from "../../createRoom"; import { _t, _td, getCurrentLanguage } from '../../languageHandler'; @@ -207,7 +207,7 @@ interface IState { view: Views; // What the LoggedInView would be showing if visible // eslint-disable-next-line camelcase - page_type?: PageTypes; + page_type?: PageType; // The ID of the room we're viewing. This is either populated directly // in the case where we view a room by ID or by RoomView when it resolves // what ID an alias points at. @@ -723,7 +723,7 @@ export default class MatrixChat extends React.PureComponent { break; } case 'view_my_groups': - this.setPage(PageTypes.MyGroups); + this.setPage(PageType.MyGroups); this.notifyNewScreen('groups'); break; case 'view_group': @@ -756,7 +756,7 @@ export default class MatrixChat extends React.PureComponent { localStorage.setItem("mx_seenSpacesBeta", "1"); // We just dispatch the page change rather than have to worry about // what the logic is for each of these branches. - if (this.state.page_type === PageTypes.MyGroups) { + if (this.state.page_type === PageType.MyGroups) { dis.dispatch({ action: 'view_last_screen' }); } else { dis.dispatch({ action: 'view_my_groups' }); @@ -842,7 +842,7 @@ export default class MatrixChat extends React.PureComponent { } }; - private setPage(pageType: string) { + private setPage(pageType: PageType) { this.setState({ page_type: pageType, }); @@ -949,7 +949,7 @@ export default class MatrixChat extends React.PureComponent { this.setState({ view: Views.LOGGED_IN, currentRoomId: roomInfo.room_id || null, - page_type: PageTypes.RoomView, + page_type: PageType.RoomView, threepidInvite: roomInfo.threepid_invite, roomOobData: roomInfo.oob_data, ready: true, @@ -977,7 +977,7 @@ export default class MatrixChat extends React.PureComponent { currentGroupId: groupId, currentGroupIsNew: payload.group_is_new, }); - this.setPage(PageTypes.GroupView); + this.setPage(PageType.GroupView); this.notifyNewScreen('group/' + groupId); } @@ -1020,7 +1020,7 @@ export default class MatrixChat extends React.PureComponent { justRegistered, currentRoomId: null, }); - this.setPage(PageTypes.HomePage); + this.setPage(PageType.HomePage); this.notifyNewScreen('home'); ThemeController.isLogin = false; this.themeWatcher.recheck(); @@ -1038,7 +1038,7 @@ export default class MatrixChat extends React.PureComponent { } this.notifyNewScreen('user/' + userId); this.setState({ currentUserId: userId }); - this.setPage(PageTypes.UserView); + this.setPage(PageType.UserView); }); } diff --git a/src/components/structures/MessagePanel.tsx b/src/components/structures/MessagePanel.tsx index 74f281405c..42980efc57 100644 --- a/src/components/structures/MessagePanel.tsx +++ b/src/components/structures/MessagePanel.tsx @@ -48,6 +48,8 @@ import Spinner from "../views/elements/Spinner"; import TileErrorBoundary from '../views/messages/TileErrorBoundary'; import { RoomPermalinkCreator } from "../../utils/permalinks/Permalinks"; import EditorStateTransfer from "../../utils/EditorStateTransfer"; +import { logger } from 'matrix-js-sdk/src/logger'; +import { Action } from '../../dispatcher/actions'; const CONTINUATION_MAX_INTERVAL = 5 * 60 * 1000; // 5 minutes const continuedTypes = [EventType.Sticker, EventType.RoomMessage]; @@ -60,7 +62,7 @@ const groupedEvents = [ // check if there is a previous event and it has the same sender as this event // and the types are the same/is in continuedTypes and the time between them is <= CONTINUATION_MAX_INTERVAL -function shouldFormContinuation( +export function shouldFormContinuation( prevEvent: MatrixEvent, mxEvent: MatrixEvent, showHiddenEvents: boolean, @@ -287,6 +289,15 @@ export default class MessagePanel extends React.Component { ghostReadMarkers, }); } + + const pendingEditItem = this.pendingEditItem; + if (!this.props.editState && this.props.room && pendingEditItem) { + defaultDispatcher.dispatch({ + action: Action.EditEvent, + event: this.props.room.findEventById(pendingEditItem), + timelineRenderingType: this.context.timelineRenderingType, + }); + } } private calculateRoomMembersCount = (): void => { @@ -550,10 +561,14 @@ export default class MessagePanel extends React.Component { return { nextEvent, nextTile }; } - private get roomHasPendingEdit(): string { - return this.props.room && localStorage.getItem(`mx_edit_room_${this.props.room.roomId}`); + private get pendingEditItem(): string | undefined { + try { + return localStorage.getItem(`mx_edit_room_${this.props.room.roomId}_${this.context.timelineRenderingType}`); + } catch (err) { + logger.error(err); + return undefined; + } } - private getEventTiles(): ReactNode[] { this.eventNodes = {}; @@ -663,13 +678,6 @@ export default class MessagePanel extends React.Component { } } - if (!this.props.editState && this.roomHasPendingEdit) { - defaultDispatcher.dispatch({ - action: "edit_event", - event: this.props.room.findEventById(this.roomHasPendingEdit), - }); - } - if (grouper) { ret.push(...grouper.getTiles()); } diff --git a/src/components/structures/RoomView.tsx b/src/components/structures/RoomView.tsx index 15bf327a74..e5067f1fcf 100644 --- a/src/components/structures/RoomView.tsx +++ b/src/components/structures/RoomView.tsx @@ -48,8 +48,8 @@ import { Layout } from "../../settings/Layout"; import AccessibleButton from "../views/elements/AccessibleButton"; import RightPanelStore from "../../stores/RightPanelStore"; import { haveTileForEvent } from "../views/rooms/EventTile"; -import RoomContext from "../../contexts/RoomContext"; -import MatrixClientContext from "../../contexts/MatrixClientContext"; +import RoomContext, { TimelineRenderingType } from "../../contexts/RoomContext"; +import MatrixClientContext, { withMatrixClientHOC, MatrixClientProps } from "../../contexts/MatrixClientContext"; import { E2EStatus, shieldStatusForRoom } from '../../utils/ShieldUtils'; import { Action } from "../../dispatcher/actions"; import { IMatrixClientCreds } from "../../MatrixClientPeg"; @@ -91,6 +91,7 @@ import TopUnreadMessagesBar from "../views/rooms/TopUnreadMessagesBar"; import SpaceStore from "../../stores/SpaceStore"; import { logger } from "matrix-js-sdk/src/logger"; +import { EventTimeline } from 'matrix-js-sdk/src/models/event-timeline'; const DEBUG = false; let debuglog = function(msg: string) {}; @@ -102,7 +103,7 @@ if (DEBUG) { debuglog = logger.log.bind(console); } -interface IProps { +interface IRoomProps extends MatrixClientProps { threepidInvite: IThreepidInvite; oobData?: IOOBData; @@ -113,7 +114,7 @@ interface IProps { onRegistered?(credentials: IMatrixClientCreds): void; } -export interface IState { +export interface IRoomState { room?: Room; roomId?: string; roomAlias?: string; @@ -187,10 +188,12 @@ export interface IState { // if it did we don't want the room to be marked as read as soon as it is loaded. wasContextSwitch?: boolean; editState?: EditorStateTransfer; + timelineRenderingType: TimelineRenderingType; + liveTimeline?: EventTimeline; } @replaceableComponent("structures.RoomView") -export default class RoomView extends React.Component { +export class RoomView extends React.Component { private readonly dispatcherRef: string; private readonly roomStoreToken: EventSubscription; private readonly rightPanelStoreToken: EventSubscription; @@ -247,6 +250,8 @@ export default class RoomView extends React.Component { showDisplaynameChanges: true, matrixClientIsReady: this.context && this.context.isInitialSyncComplete(), dragCounter: 0, + timelineRenderingType: TimelineRenderingType.Room, + liveTimeline: undefined, }; this.dispatcherRef = dis.register(this.onAction); @@ -336,7 +341,7 @@ export default class RoomView extends React.Component { const roomId = RoomViewStore.getRoomId(); - const newState: Pick = { + const newState: Pick = { roomId, roomAlias: RoomViewStore.getRoomAlias(), roomLoading: RoomViewStore.isRoomLoading(), @@ -808,7 +813,9 @@ export default class RoomView extends React.Component { this.onSearchClick(); break; - case "edit_event": { + case Action.EditEvent: { + // Quit early if we're trying to edit events in wrong rendering context + if (payload.timelineRenderingType !== this.state.timelineRenderingType) return; const editState = payload.event ? new EditorStateTransfer(payload.event) : null; this.setState({ editState }, () => { if (payload.event) { @@ -932,6 +939,10 @@ export default class RoomView extends React.Component { this.updateE2EStatus(room); this.updatePermissions(room); this.checkWidgets(room); + + this.setState({ + liveTimeline: room.getLiveTimeline(), + }); }; private async calculateRecommendedVersion(room: Room) { @@ -2086,3 +2097,6 @@ export default class RoomView extends React.Component { ); } } + +const RoomViewWithMatrixClient = withMatrixClientHOC(RoomView); +export default RoomViewWithMatrixClient; diff --git a/src/components/structures/ScrollPanel.tsx b/src/components/structures/ScrollPanel.tsx index 2eae585f4f..0ea070627a 100644 --- a/src/components/structures/ScrollPanel.tsx +++ b/src/components/structures/ScrollPanel.tsx @@ -277,8 +277,15 @@ export default class ScrollPanel extends React.Component { // fractional values (both too big and too small) // for scrollTop happen on certain browsers/platforms // when scrolled all the way down. E.g. Chrome 72 on debian. - // so check difference <= 1; - return Math.abs(sn.scrollHeight - (sn.scrollTop + sn.clientHeight)) <= 1; + // + // We therefore leave a bit of wiggle-room and assume we're at the + // bottom if the unscrolled area is less than one pixel high. + // + // non-standard DPI settings also seem to have effect here and can + // actually lead to scrollTop+clientHeight being *larger* than + // scrollHeight. (observed in element-desktop on Ubuntu 20.04) + // + return sn.scrollHeight - (sn.scrollTop + sn.clientHeight) <= 1; }; // returns the vertical height in the given direction that can be removed from diff --git a/src/components/structures/SpaceHierarchy.tsx b/src/components/structures/SpaceHierarchy.tsx index db16011917..c97c984d59 100644 --- a/src/components/structures/SpaceHierarchy.tsx +++ b/src/components/structures/SpaceHierarchy.tsx @@ -15,17 +15,17 @@ limitations under the License. */ import React, { + Dispatch, + KeyboardEvent, + KeyboardEventHandler, ReactNode, + SetStateAction, useCallback, + useContext, useEffect, useMemo, useRef, useState, - KeyboardEvent, - KeyboardEventHandler, - useContext, - SetStateAction, - Dispatch, } from "react"; import { Room } from "matrix-js-sdk/src/models/room"; import { RoomHierarchy } from "matrix-js-sdk/src/room-hierarchy"; @@ -33,7 +33,8 @@ import { EventType, RoomType } from "matrix-js-sdk/src/@types/event"; import { IHierarchyRelation, IHierarchyRoom } from "matrix-js-sdk/src/@types/spaces"; import { MatrixClient } from "matrix-js-sdk/src/matrix"; import classNames from "classnames"; -import { sortBy } from "lodash"; +import { sortBy, uniqBy } from "lodash"; +import { GuestAccess, HistoryVisibility } from "matrix-js-sdk/src/@types/partials"; import dis from "../../dispatcher/dispatcher"; import defaultDispatcher from "../../dispatcher/dispatcher"; @@ -333,6 +334,30 @@ interface IHierarchyLevelProps { onToggleClick?(parentId: string, childId: string): void; } +const toLocalRoom = (cli: MatrixClient, room: IHierarchyRoom): IHierarchyRoom => { + const history = cli.getRoomUpgradeHistory(room.room_id, true); + const cliRoom = history[history.length - 1]; + if (cliRoom) { + return { + ...room, + room_id: cliRoom.roomId, + room_type: cliRoom.getType(), + name: cliRoom.name, + topic: cliRoom.currentState.getStateEvents(EventType.RoomTopic, "")?.getContent().topic, + avatar_url: cliRoom.getMxcAvatarUrl(), + canonical_alias: cliRoom.getCanonicalAlias(), + aliases: cliRoom.getAltAliases(), + world_readable: cliRoom.currentState.getStateEvents(EventType.RoomHistoryVisibility, "")?.getContent() + .history_visibility === HistoryVisibility.WorldReadable, + guest_can_join: cliRoom.currentState.getStateEvents(EventType.RoomGuestAccess, "")?.getContent() + .guest_access === GuestAccess.CanJoin, + num_joined_members: cliRoom.getJoinedMemberCount(), + }; + } + + return room; +}; + export const HierarchyLevel = ({ root, roomSet, @@ -353,7 +378,7 @@ export const HierarchyLevel = ({ const [subspaces, childRooms] = sortedChildren.reduce((result, ev: IHierarchyRelation) => { const room = hierarchy.roomMap.get(ev.state_key); if (room && roomSet.has(room)) { - result[room.room_type === RoomType.Space ? 0 : 1].push(room); + result[room.room_type === RoomType.Space ? 0 : 1].push(toLocalRoom(cli, room)); } return result; }, [[] as IHierarchyRoom[], [] as IHierarchyRoom[]]); @@ -361,7 +386,7 @@ export const HierarchyLevel = ({ const newParents = new Set(parents).add(root.room_id); return { - childRooms.map(room => ( + uniqBy(childRooms, "room_id").map(room => ( ; } => { const [rooms, setRooms] = useState([]); - const [loading, setLoading] = useState(true); const [hierarchy, setHierarchy] = useState(); const resetHierarchy = useCallback(() => { const hierarchy = new RoomHierarchy(space, INITIAL_PAGE_SIZE); - setHierarchy(hierarchy); - - let discard = false; hierarchy.load().then(() => { - if (discard) return; + if (space !== hierarchy.root) return; // discard stale results setRooms(hierarchy.rooms); - setLoading(false); }); - - return () => { - discard = true; - }; + setHierarchy(hierarchy); }, [space]); useEffect(resetHierarchy, [resetHierarchy]); useDispatcher(defaultDispatcher, (payload => { if (payload.action === Action.UpdateSpaceHierarchy) { - setLoading(true); setRooms([]); // TODO resetHierarchy(); } })); const loadMore = useCallback(async (pageSize?: number) => { - if (!hierarchy.canLoadMore || hierarchy.noSupport) return; - - setLoading(true); + if (hierarchy.loading || !hierarchy.canLoadMore || hierarchy.noSupport) return; await hierarchy.load(pageSize); setRooms(hierarchy.rooms); - setLoading(false); }, [hierarchy]); + const loading = hierarchy?.loading ?? true; return { loading, rooms, hierarchy, loadMore }; }; @@ -587,7 +601,7 @@ const SpaceHierarchy = ({ const [selected, setSelected] = useState(new Map>()); // Map> - const { loading, rooms, hierarchy, loadMore } = useSpaceSummary(space); + const { loading, rooms, hierarchy, loadMore } = useRoomHierarchy(space); const filteredRoomSet = useMemo>(() => { if (!rooms?.length) return new Set(); @@ -648,8 +662,6 @@ const SpaceHierarchy = ({ return { ({ onKeyDownHandler }) => { let content: JSX.Element; - let loader: JSX.Element; - if (loading && !rooms.length) { content = ; } else { @@ -671,19 +683,20 @@ const SpaceHierarchy = ({ }} /> ; - - if (hierarchy.canLoadMore) { - loader =
- -
; - } - } else { + } else if (!hierarchy.canLoadMore) { results =

{ _t("No results found") }

{ _t("You may want to try a different search or check for typos.") }
; } + let loader: JSX.Element; + if (hierarchy.canLoadMore) { + loader =
+ +
; + } + content = <>

{ query.trim() ? _t("Results") : _t("Rooms and spaces") }

diff --git a/src/components/structures/ThreadView.tsx b/src/components/structures/ThreadView.tsx index 180a870cd5..8fac538bbc 100644 --- a/src/components/structures/ThreadView.tsx +++ b/src/components/structures/ThreadView.tsx @@ -34,6 +34,8 @@ import { SetRightPanelPhasePayload } from '../../dispatcher/payloads/SetRightPan import { Action } from '../../dispatcher/actions'; import { MatrixClientPeg } from '../../MatrixClientPeg'; import { E2EStatus } from '../../utils/ShieldUtils'; +import EditorStateTransfer from '../../utils/EditorStateTransfer'; +import RoomContext, { TimelineRenderingType } from '../../contexts/RoomContext'; interface IProps { room: Room; @@ -47,10 +49,14 @@ interface IProps { interface IState { replyToEvent?: MatrixEvent; thread?: Thread; + editState?: EditorStateTransfer; + } @replaceableComponent("structures.ThreadView") export default class ThreadView extends React.Component { + static contextType = RoomContext; + private dispatcherRef: string; private timelinePanelRef: React.RefObject = React.createRef(); @@ -90,6 +96,23 @@ export default class ThreadView extends React.Component { this.setupThread(payload.event); } } + switch (payload.action) { + case Action.EditEvent: { + // Quit early if it's not a thread context + if (payload.timelineRenderingType !== TimelineRenderingType.Thread) return; + // Quit early if that's not a thread event + if (payload.event && !payload.event.getThread()) return; + const editState = payload.event ? new EditorStateTransfer(payload.event) : null; + this.setState({ editState }, () => { + if (payload.event) { + this.timelinePanelRef.current?.scrollToEventIfNeeded(payload.event.getId()); + } + }); + break; + } + default: + break; + } }; private setupThread = (mxEv: MatrixEvent) => { @@ -124,44 +147,53 @@ export default class ThreadView extends React.Component { public render(): JSX.Element { return ( - - { this.state.thread && ( - empty
} - alwaysShowTimestamps={true} - layout={Layout.Group} - hideThreadedMessages={false} - hidden={false} - showReactions={true} - className="mx_RoomView_messagePanel mx_GroupLayout" + + + + { this.state.thread && ( + empty} + alwaysShowTimestamps={true} + layout={Layout.Group} + hideThreadedMessages={false} + hidden={false} + showReactions={true} + className="mx_RoomView_messagePanel mx_GroupLayout" + permalinkCreator={this.props.permalinkCreator} + membersLoaded={true} + editState={this.state.editState} + /> + ) } + + { this.state?.thread?.timelineSet && ( - ) } - - + e2eStatus={this.props.e2eStatus} + compact={true} + />) } + + ); } } diff --git a/src/components/structures/auth/CompleteSecurity.tsx b/src/components/structures/auth/CompleteSecurity.tsx index 8c3d5e80a0..1e46f0e657 100644 --- a/src/components/structures/auth/CompleteSecurity.tsx +++ b/src/components/structures/auth/CompleteSecurity.tsx @@ -20,6 +20,7 @@ import * as sdk from '../../../index'; import { SetupEncryptionStore, Phase } from '../../../stores/SetupEncryptionStore'; import SetupEncryptionBody from "./SetupEncryptionBody"; import { replaceableComponent } from "../../../utils/replaceableComponent"; +import AccessibleButton from '../../views/elements/AccessibleButton'; interface IProps { onFinished: () => void; @@ -27,6 +28,7 @@ interface IProps { interface IState { phase: Phase; + lostKeys: boolean; } @replaceableComponent("structures.auth.CompleteSecurity") @@ -36,12 +38,17 @@ export default class CompleteSecurity extends React.Component { const store = SetupEncryptionStore.sharedInstance(); store.on("update", this.onStoreUpdate); store.start(); - this.state = { phase: store.phase }; + this.state = { phase: store.phase, lostKeys: store.lostKeys() }; } private onStoreUpdate = (): void => { const store = SetupEncryptionStore.sharedInstance(); - this.setState({ phase: store.phase }); + this.setState({ phase: store.phase, lostKeys: store.lostKeys() }); + }; + + private onSkipClick = (): void => { + const store = SetupEncryptionStore.sharedInstance(); + store.skip(); }; public componentWillUnmount(): void { @@ -53,15 +60,20 @@ export default class CompleteSecurity extends React.Component { public render() { const AuthPage = sdk.getComponent("auth.AuthPage"); const CompleteSecurityBody = sdk.getComponent("auth.CompleteSecurityBody"); - const { phase } = this.state; + const { phase, lostKeys } = this.state; let icon; let title; if (phase === Phase.Loading) { return null; } else if (phase === Phase.Intro) { - icon = ; - title = _t("Verify this login"); + if (lostKeys) { + icon = ; + title = _t("Unable to verify this login"); + } else { + icon = ; + title = _t("Verify this login"); + } } else if (phase === Phase.Done) { icon = ; title = _t("Session verified"); @@ -71,16 +83,29 @@ export default class CompleteSecurity extends React.Component { } else if (phase === Phase.Busy) { icon = ; title = _t("Verify this login"); + } else if (phase === Phase.ConfirmReset) { + icon = ; + title = _t("Really reset verification keys?"); + } else if (phase === Phase.Finished) { + // SetupEncryptionBody will take care of calling onFinished, we don't need to do anything } else { throw new Error(`Unknown phase ${phase}`); } + let skipButton; + if (phase === Phase.Intro || phase === Phase.ConfirmReset) { + skipButton = ( + + ); + } + return (

{ icon } { title } + { skipButton }

diff --git a/src/components/structures/auth/SetupEncryptionBody.tsx b/src/components/structures/auth/SetupEncryptionBody.tsx index 87d74a5a79..e2b1aebcfd 100644 --- a/src/components/structures/auth/SetupEncryptionBody.tsx +++ b/src/components/structures/auth/SetupEncryptionBody.tsx @@ -46,6 +46,7 @@ interface IState { phase: Phase; verificationRequest: VerificationRequest; backupInfo: IKeyBackupInfo; + lostKeys: boolean; } @replaceableComponent("structures.auth.SetupEncryptionBody") @@ -62,6 +63,7 @@ export default class SetupEncryptionBody extends React.Component // Because of the latter, it lives in the state. verificationRequest: store.verificationRequest, backupInfo: store.backupInfo, + lostKeys: store.lostKeys(), }; } @@ -75,6 +77,7 @@ export default class SetupEncryptionBody extends React.Component phase: store.phase, verificationRequest: store.verificationRequest, backupInfo: store.backupInfo, + lostKeys: store.lostKeys(), }); }; @@ -105,11 +108,6 @@ export default class SetupEncryptionBody extends React.Component }); }; - private onSkipClick = () => { - const store = SetupEncryptionStore.sharedInstance(); - store.skip(); - }; - private onSkipConfirmClick = () => { const store = SetupEncryptionStore.sharedInstance(); store.skipConfirm(); @@ -120,6 +118,22 @@ export default class SetupEncryptionBody extends React.Component store.returnAfterSkip(); }; + private onResetClick = (ev: React.MouseEvent) => { + ev.preventDefault(); + const store = SetupEncryptionStore.sharedInstance(); + store.reset(); + }; + + private onResetConfirmClick = () => { + const store = SetupEncryptionStore.sharedInstance(); + store.resetConfirm(); + }; + + private onResetBackClick = () => { + const store = SetupEncryptionStore.sharedInstance(); + store.returnAfterReset(); + }; + private onDoneClick = () => { const store = SetupEncryptionStore.sharedInstance(); store.done(); @@ -132,6 +146,7 @@ export default class SetupEncryptionBody extends React.Component public render() { const { phase, + lostKeys, } = this.state; if (this.state.verificationRequest) { @@ -143,43 +158,67 @@ export default class SetupEncryptionBody extends React.Component isRoomEncrypted={false} />; } else if (phase === Phase.Intro) { - const store = SetupEncryptionStore.sharedInstance(); - let recoveryKeyPrompt; - if (store.keyInfo && keyHasPassphrase(store.keyInfo)) { - recoveryKeyPrompt = _t("Use Security Key or Phrase"); - } else if (store.keyInfo) { - recoveryKeyPrompt = _t("Use Security Key"); - } + if (lostKeys) { + return ( +
+

{ _t( + "It looks like you don't have a Security Key or any other devices you can " + + "verify against. This device will not be able to access old encrypted messages. " + + "In order to verify your identity on this device, you'll need to reset " + + "your verification keys.", + ) }

- let useRecoveryKeyButton; - if (recoveryKeyPrompt) { - useRecoveryKeyButton = - { recoveryKeyPrompt } - ; - } - - let verifyButton; - if (store.hasDevicesToVerifyAgainst) { - verifyButton = - { _t("Use another login") } - ; - } - - return ( -
-

{ _t( - "Verify your identity to access encrypted messages and prove your identity to others.", - ) }

- -
- { verifyButton } - { useRecoveryKeyButton } - - { _t("Skip") } - +
+ + { _t("Proceed with reset") } + +
-
- ); + ); + } else { + const store = SetupEncryptionStore.sharedInstance(); + let recoveryKeyPrompt; + if (store.keyInfo && keyHasPassphrase(store.keyInfo)) { + recoveryKeyPrompt = _t("Verify with Security Key or Phrase"); + } else if (store.keyInfo) { + recoveryKeyPrompt = _t("Verify with Security Key"); + } + + let useRecoveryKeyButton; + if (recoveryKeyPrompt) { + useRecoveryKeyButton = + { recoveryKeyPrompt } + ; + } + + let verifyButton; + if (store.hasDevicesToVerifyAgainst) { + verifyButton = + { _t("Verify with another login") } + ; + } + + return ( +
+

{ _t( + "Verify your identity to access encrypted messages and prove your identity to others.", + ) }

+ +
+ { verifyButton } + { useRecoveryKeyButton } +
+
+ { _t("Forgotten or lost all recovery methods? Reset all", null, { + a: (sub) => { sub }, + }) } +
+
+ ); + } } else if (phase === Phase.Done) { let message; if (this.state.backupInfo) { @@ -215,14 +254,13 @@ export default class SetupEncryptionBody extends React.Component ) }

- { _t("Skip") } + { _t("I'll verify later") } { _t("Go Back") } @@ -230,6 +268,30 @@ export default class SetupEncryptionBody extends React.Component
); + } else if (phase === Phase.ConfirmReset) { + return ( +
+

{ _t( + "Resetting your verification keys cannot be undone. After resetting, " + + "you won't have access to old encrypted messages, and any friends who " + + "have previously verified you will see security warnings until you " + + "re-verify with them.", + ) }

+

{ _t( + "Please only proceed if you're sure you've lost all of your other " + + "devices and your security key.", + ) }

+ +
+ + { _t("Proceed with reset") } + + + { _t("Go Back") } + +
+
+ ); } else if (phase === Phase.Busy || phase === Phase.Loading) { return ; } else { diff --git a/src/components/views/avatars/MemberAvatar.tsx b/src/components/views/avatars/MemberAvatar.tsx index 3c734705b7..001df16d40 100644 --- a/src/components/views/avatars/MemberAvatar.tsx +++ b/src/components/views/avatars/MemberAvatar.tsx @@ -33,7 +33,7 @@ interface IProps extends Omit, "name" | resizeMethod?: ResizeMethod; // The onClick to give the avatar onClick?: React.MouseEventHandler; - // Whether the onClick of the avatar should be overriden to dispatch `Action.ViewUser` + // Whether the onClick of the avatar should be overridden to dispatch `Action.ViewUser` viewUserOnClick?: boolean; title?: string; style?: any; diff --git a/src/components/views/dialogs/CreateSpaceFromCommunityDialog.tsx b/src/components/views/dialogs/CreateSpaceFromCommunityDialog.tsx index e74082427f..c7706c115c 100644 --- a/src/components/views/dialogs/CreateSpaceFromCommunityDialog.tsx +++ b/src/components/views/dialogs/CreateSpaceFromCommunityDialog.tsx @@ -39,6 +39,8 @@ import dis from "../../../dispatcher/dispatcher"; import { Action } from "../../../dispatcher/actions"; import { UserTab } from "./UserSettingsDialog"; import TagOrderActions from "../../../actions/TagOrderActions"; +import { inviteUsersToRoom } from "../../../RoomInvite"; +import ProgressBar from "../elements/ProgressBar"; interface IProps { matrixClient: MatrixClient; @@ -90,10 +92,22 @@ export interface IGroupSummary { } /* eslint-enable camelcase */ +enum Progress { + NotStarted, + ValidatingInputs, + FetchingData, + CreatingSpace, + InvitingUsers, + // anything beyond here is inviting user n - 4 +} + const CreateSpaceFromCommunityDialog: React.FC = ({ matrixClient: cli, groupId, onFinished }) => { const [loading, setLoading] = useState(true); const [error, setError] = useState(null); - const [busy, setBusy] = useState(false); + + const [progress, setProgress] = useState(Progress.NotStarted); + const [numInvites, setNumInvites] = useState(0); + const busy = progress > 0; const [avatar, setAvatar] = useState(null); // undefined means to remove avatar const [name, setName] = useState(""); @@ -122,30 +136,34 @@ const CreateSpaceFromCommunityDialog: React.FC = ({ matrixClient: cli, g if (busy) return; setError(null); - setBusy(true); + setProgress(Progress.ValidatingInputs); // require & validate the space name field if (!(await spaceNameField.current.validate({ allowEmpty: false }))) { - setBusy(false); + setProgress(0); spaceNameField.current.focus(); spaceNameField.current.validate({ allowEmpty: false, focused: true }); return; } // validate the space name alias field but do not require it if (joinRule === JoinRule.Public && !(await spaceAliasField.current.validate({ allowEmpty: true }))) { - setBusy(false); + setProgress(0); spaceAliasField.current.focus(); spaceAliasField.current.validate({ allowEmpty: true, focused: true }); return; } try { + setProgress(Progress.FetchingData); + const [rooms, members, invitedMembers] = await Promise.all([ cli.getGroupRooms(groupId).then(parseRoomsResponse) as Promise, cli.getGroupUsers(groupId).then(parseMembersResponse) as Promise, cli.getGroupInvitedUsers(groupId).then(parseMembersResponse) as Promise, ]); + setNumInvites(members.length + invitedMembers.length); + const viaMap = new Map(); for (const { roomId, canonicalAlias } of rooms) { const room = cli.getRoom(roomId); @@ -167,6 +185,8 @@ const CreateSpaceFromCommunityDialog: React.FC = ({ matrixClient: cli, g } } + setProgress(Progress.CreatingSpace); + const spaceAvatar = avatar !== undefined ? avatar : groupSummary.profile.avatar_url; const roomId = await createSpace(name, joinRule === JoinRule.Public, alias, topic, spaceAvatar, { creation_content: { @@ -179,11 +199,16 @@ const CreateSpaceFromCommunityDialog: React.FC = ({ matrixClient: cli, g via: viaMap.get(roomId) || [], }, })), - invite: [...members, ...invitedMembers].map(m => m.userId).filter(m => m !== cli.getUserId()), + // we do not specify the inviters here because Synapse applies a limit and this may cause it to trip }, { andView: false, }); + setProgress(Progress.InvitingUsers); + + const userIds = [...members, ...invitedMembers].map(m => m.userId).filter(m => m !== cli.getUserId()); + await inviteUsersToRoom(roomId, userIds, () => setProgress(p => p + 1)); + // eagerly remove it from the community panel dis.dispatch(TagOrderActions.removeTag(cli, groupId)); @@ -250,7 +275,7 @@ const CreateSpaceFromCommunityDialog: React.FC = ({ matrixClient: cli, g setError(e); } - setBusy(false); + setProgress(Progress.NotStarted); }; let footer; @@ -267,13 +292,41 @@ const CreateSpaceFromCommunityDialog: React.FC = ({ matrixClient: cli, g { _t("Retry") } ; + } else if (busy) { + let description: string; + switch (progress) { + case Progress.ValidatingInputs: + case Progress.FetchingData: + description = _t("Fetching data..."); + break; + case Progress.CreatingSpace: + description = _t("Creating Space..."); + break; + case Progress.InvitingUsers: + default: + description = _t("Adding rooms... (%(progress)s out of %(count)s)", { + count: numInvites, + progress, + }); + break; + } + + footer = + Progress.FetchingData ? progress : 0} + max={numInvites + Progress.InvitingUsers} + /> +
+ { description } +
+
; } else { footer = <> - onFinished()}> + onFinished()}> { _t("Cancel") } - - { busy ? _t("Creating...") : _t("Create Space") } + + { _t("Create Space") } ; } diff --git a/src/components/views/dialogs/ExportDialog.tsx b/src/components/views/dialogs/ExportDialog.tsx new file mode 100644 index 0000000000..33a14887fb --- /dev/null +++ b/src/components/views/dialogs/ExportDialog.tsx @@ -0,0 +1,397 @@ +/* +Copyright 2021 The Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +import React, { useRef, useState } from "react"; +import { Room } from "matrix-js-sdk/src"; +import { _t } from "../../../languageHandler"; +import { IDialogProps } from "./IDialogProps"; +import BaseDialog from "./BaseDialog"; +import DialogButtons from "../elements/DialogButtons"; +import Field from "../elements/Field"; +import StyledRadioGroup from "../elements/StyledRadioGroup"; +import StyledCheckbox from "../elements/StyledCheckbox"; +import { + ExportFormat, + ExportType, + textForFormat, + textForType, +} from "../../../utils/exportUtils/exportUtils"; +import withValidation, { IFieldState, IValidationResult } from "../elements/Validation"; +import HTMLExporter from "../../../utils/exportUtils/HtmlExport"; +import JSONExporter from "../../../utils/exportUtils/JSONExport"; +import PlainTextExporter from "../../../utils/exportUtils/PlainTextExport"; +import { useStateCallback } from "../../../hooks/useStateCallback"; +import Exporter from "../../../utils/exportUtils/Exporter"; +import Spinner from "../elements/Spinner"; +import InfoDialog from "./InfoDialog"; + +interface IProps extends IDialogProps { + room: Room; +} + +const ExportDialog: React.FC = ({ room, onFinished }) => { + const [exportFormat, setExportFormat] = useState(ExportFormat.Html); + const [exportType, setExportType] = useState(ExportType.Timeline); + const [includeAttachments, setAttachments] = useState(false); + const [isExporting, setExporting] = useState(false); + const [numberOfMessages, setNumberOfMessages] = useState(100); + const [sizeLimit, setSizeLimit] = useState(8); + const sizeLimitRef = useRef(); + const messageCountRef = useRef(); + const [exportProgressText, setExportProgressText] = useState("Processing..."); + const [displayCancel, setCancelWarning] = useState(false); + const [exportCancelled, setExportCancelled] = useState(false); + const [exportSuccessful, setExportSuccessful] = useState(false); + const [exporter, setExporter] = useStateCallback( + null, + async (exporter: Exporter) => { + await exporter?.export().then(() => { + if (!exportCancelled) setExportSuccessful(true); + }); + }, + ); + + const startExport = async () => { + const exportOptions = { + numberOfMessages, + attachmentsIncluded: includeAttachments, + maxSize: sizeLimit * 1024 * 1024, + }; + switch (exportFormat) { + case ExportFormat.Html: + setExporter( + new HTMLExporter( + room, + ExportType[exportType], + exportOptions, + setExportProgressText, + ), + ); + break; + case ExportFormat.Json: + setExporter( + new JSONExporter( + room, + ExportType[exportType], + exportOptions, + setExportProgressText, + ), + ); + break; + case ExportFormat.PlainText: + setExporter( + new PlainTextExporter( + room, + ExportType[exportType], + exportOptions, + setExportProgressText, + ), + ); + break; + default: + console.error("Unknown export format"); + return; + } + }; + + const onExportClick = async () => { + const isValidSize = await sizeLimitRef.current.validate({ + focused: false, + }); + if (!isValidSize) { + sizeLimitRef.current.validate({ focused: true }); + return; + } + if (exportType === ExportType.LastNMessages) { + const isValidNumberOfMessages = + await messageCountRef.current.validate({ focused: false }); + if (!isValidNumberOfMessages) { + messageCountRef.current.validate({ focused: true }); + return; + } + } + setExporting(true); + await startExport(); + }; + + const validateSize = withValidation({ + rules: [ + { + key: "required", + test({ value, allowEmpty }) { + return allowEmpty || !!value; + }, + invalid: () => { + const min = 1; + const max = 10 ** 8; + return _t("Enter a number between %(min)s and %(max)s", { + min, + max, + }); + }, + }, { + key: "number", + test: ({ value }) => { + const parsedSize = parseFloat(value); + const min = 1; + const max = 2000; + return !(isNaN(parsedSize) || min > parsedSize || parsedSize > max); + }, + invalid: () => { + const min = 1; + const max = 2000; + return _t( + "Size can only be a number between %(min)s MB and %(max)s MB", + { min, max }, + ); + }, + }, + ], + }); + + const onValidateSize = async (fieldState: IFieldState): Promise => { + const result = await validateSize(fieldState); + return result; + }; + + const validateNumberOfMessages = withValidation({ + rules: [ + { + key: "required", + test({ value, allowEmpty }) { + return allowEmpty || !!value; + }, + invalid: () => { + const min = 1; + const max = 10 ** 8; + return _t("Enter a number between %(min)s and %(max)s", { + min, + max, + }); + }, + }, { + key: "number", + test: ({ value }) => { + const parsedSize = parseFloat(value); + const min = 1; + const max = 10 ** 8; + if (isNaN(parsedSize)) return false; + return !(min > parsedSize || parsedSize > max); + }, + invalid: () => { + const min = 1; + const max = 10 ** 8; + return _t( + "Number of messages can only be a number between %(min)s and %(max)s", + { min, max }, + ); + }, + }, + ], + }); + + const onValidateNumberOfMessages = async (fieldState: IFieldState): Promise => { + const result = await validateNumberOfMessages(fieldState); + return result; + }; + + const onCancel = async () => { + if (isExporting) setCancelWarning(true); + else onFinished(false); + }; + + const confirmCanel = async () => { + await exporter?.cancelExport(); + setExportCancelled(true); + setExporting(false); + setExporter(null); + }; + + const exportFormatOptions = Object.keys(ExportFormat).map((format) => ({ + value: ExportFormat[format], + label: textForFormat(ExportFormat[format]), + })); + + const exportTypeOptions = Object.keys(ExportType).map((type) => { + return ( + + ); + }); + + let messageCount = null; + if (exportType === ExportType.LastNMessages) { + messageCount = ( + { + setNumberOfMessages(parseInt(e.target.value)); + }} + /> + ); + } + + const sizePostFix = { _t("MB") }; + + if (exportCancelled) { + // Display successful cancellation message + return ( + + ); + } else if (exportSuccessful) { + // Display successful export message + return ( + + ); + } else if (displayCancel) { + // Display cancel warning + return ( + +

+ { _t( + "Are you sure you want to stop exporting your data? If you do, you'll need to start over.", + ) } +

+ setCancelWarning(false)} + onPrimaryButtonClick={confirmCanel} + /> +
+ ); + } else { + // Display export settings + return ( + + { !isExporting ?

+ { _t( + "Select from the options below to export chats from your timeline", + ) } +

: null } + + + { _t("Format") } + + +
+ setExportFormat(ExportFormat[key])} + definitions={exportFormatOptions} + /> + + + { _t("Messages") } + + + { + setExportType(ExportType[e.target.value]); + }} + > + { exportTypeOptions } + + { messageCount } + + + { _t("Size Limit") } + + + setSizeLimit(parseInt(e.target.value))} + /> + + + setAttachments( + (e.target as HTMLInputElement).checked, + ) + } + > + { _t("Include Attachments") } + +
+ { isExporting ? ( +
+ +

+ { exportProgressText } +

+ +
+ ) : ( + onFinished(false)} + /> + ) } +
+ ); + } +}; + +export default ExportDialog; diff --git a/src/components/views/dialogs/RoomSettingsDialog.tsx b/src/components/views/dialogs/RoomSettingsDialog.tsx index a73f0a595b..b0c6fc4050 100644 --- a/src/components/views/dialogs/RoomSettingsDialog.tsx +++ b/src/components/views/dialogs/RoomSettingsDialog.tsx @@ -44,18 +44,31 @@ interface IProps { initialTabId?: string; } +interface IState { + roomName: string; +} + @replaceableComponent("views.dialogs.RoomSettingsDialog") -export default class RoomSettingsDialog extends React.Component { +export default class RoomSettingsDialog extends React.Component { private dispatcherRef: string; + constructor(props: IProps) { + super(props); + this.state = { roomName: '' }; + } + public componentDidMount() { this.dispatcherRef = dis.register(this.onAction); + MatrixClientPeg.get().on("Room.name", this.onRoomName); + this.onRoomName(); } public componentWillUnmount() { if (this.dispatcherRef) { dis.unregister(this.dispatcherRef); } + + MatrixClientPeg.get().removeListener("Room.name", this.onRoomName); } private onAction = (payload): void => { @@ -66,6 +79,12 @@ export default class RoomSettingsDialog extends React.Component { } }; + private onRoomName = (): void => { + this.setState({ + roomName: MatrixClientPeg.get().getRoom(this.props.roomId).name, + }); + }; + private getTabs(): Tab[] { const tabs: Tab[] = []; @@ -122,7 +141,7 @@ export default class RoomSettingsDialog extends React.Component { } render() { - const roomName = MatrixClientPeg.get().getRoom(this.props.roomId).name; + const roomName = this.state.roomName; return ( + content =
{ options } diff --git a/src/components/views/elements/Dropdown.tsx b/src/components/views/elements/Dropdown.tsx index b4f382c9c3..86e0822b11 100644 --- a/src/components/views/elements/Dropdown.tsx +++ b/src/components/views/elements/Dropdown.tsx @@ -178,6 +178,14 @@ export default class Dropdown extends React.Component { this.ignoreEvent = ev; }; + private onChevronClick = (ev: React.MouseEvent) => { + if (this.state.expanded) { + this.setState({ expanded: false }); + ev.stopPropagation(); + ev.preventDefault(); + } + }; + private onAccessibleButtonClick = (ev: ButtonEvent) => { if (this.props.disabled) return; @@ -375,7 +383,7 @@ export default class Dropdown extends React.Component { onKeyDown={this.onKeyDown} > { currentValue } - + { menu }
; diff --git a/src/components/views/elements/ReplyThread.tsx b/src/components/views/elements/ReplyThread.tsx index bd81218623..b5e2d1191c 100644 --- a/src/components/views/elements/ReplyThread.tsx +++ b/src/components/views/elements/ReplyThread.tsx @@ -53,6 +53,7 @@ interface IProps { layout?: Layout; // Whether to always show a timestamp alwaysShowTimestamps?: boolean; + forExport?: boolean; isQuoteExpanded?: boolean; setQuoteExpanded: (isExpanded: boolean) => void; } @@ -381,6 +382,17 @@ export default class ReplyThread extends React.Component { }) } ; + } else if (this.props.forExport) { + const eventId = ReplyThread.getParentEventId(this.props.parentEv); + header =

+ { _t("In reply to this message", + {}, + { a: (sub) => ( + { sub } + ), + }) + } +

; } else if (this.state.loading) { header = ; } diff --git a/src/components/views/messages/DateSeparator.tsx b/src/components/views/messages/DateSeparator.tsx index 5d43e2182d..d66fcbf118 100644 --- a/src/components/views/messages/DateSeparator.tsx +++ b/src/components/views/messages/DateSeparator.tsx @@ -35,12 +35,17 @@ function getDaysArray(): string[] { interface IProps { ts: number; + forExport?: boolean; } @replaceableComponent("views.messages.DateSeparator") export default class DateSeparator extends React.Component { private getLabel() { const date = new Date(this.props.ts); + + // During the time the archive is being viewed, a specific day might not make sense, so we return the full date + if (this.props.forExport) return formatFullDateNoTime(date); + const today = new Date(); const yesterday = new Date(); const days = getDaysArray(); diff --git a/src/components/views/messages/IBodyProps.ts b/src/components/views/messages/IBodyProps.ts index 8aabd3080c..daa05c3b1a 100644 --- a/src/components/views/messages/IBodyProps.ts +++ b/src/components/views/messages/IBodyProps.ts @@ -33,6 +33,7 @@ export interface IBodyProps { onHeightChanged: () => void; showUrlPreview?: boolean; + forExport?: boolean; tileShape: TileShape; maxImageHeight?: number; replacingEventId?: string; diff --git a/src/components/views/messages/MAudioBody.tsx b/src/components/views/messages/MAudioBody.tsx index 1975fe8d42..3611435e55 100644 --- a/src/components/views/messages/MAudioBody.tsx +++ b/src/components/views/messages/MAudioBody.tsx @@ -90,6 +90,17 @@ export default class MAudioBody extends React.PureComponent ); } + if (this.props.forExport) { + const content = this.props.mxEvent.getContent(); + // During export, the content url will point to the MSC, which will later point to a local url + const contentUrl = content.file?.url || content.url; + return ( + + + ); + } + if (!this.state.playback) { return ( diff --git a/src/components/views/messages/MFileBody.tsx b/src/components/views/messages/MFileBody.tsx index c997aa6666..80c6b16f0d 100644 --- a/src/components/views/messages/MFileBody.tsx +++ b/src/components/views/messages/MFileBody.tsx @@ -123,6 +123,11 @@ export default class MFileBody extends React.Component { this.state = {}; } + private getContentUrl(): string | null { + if (this.props.forExport) return null; + const media = mediaFromContent(this.props.mxEvent.getContent()); + return media.srcHttp; + } private get content(): IMediaEventContent { return this.props.mxEvent.getContent(); } @@ -149,11 +154,6 @@ export default class MFileBody extends React.Component { }); } - private getContentUrl(): string { - const media = mediaFromContent(this.props.mxEvent.getContent()); - return media.srcHttp; - } - public componentDidUpdate(prevProps, prevState) { if (this.props.onHeightChanged && !prevState.decryptedBlob && this.state.decryptedBlob) { this.props.onHeightChanged(); @@ -213,6 +213,16 @@ export default class MFileBody extends React.Component { ); } + if (this.props.forExport) { + const content = this.props.mxEvent.getContent(); + // During export, the content url will point to the MSC, which will later point to a local url + return + + { placeholder } + + ; + } + const showDownloadLink = this.props.tileShape || !this.props.showGenericPlaceholder; if (isEncrypted) { diff --git a/src/components/views/messages/MImageBody.tsx b/src/components/views/messages/MImageBody.tsx index 01bbf3403f..072e111c4b 100644 --- a/src/components/views/messages/MImageBody.tsx +++ b/src/components/views/messages/MImageBody.tsx @@ -179,6 +179,9 @@ export default class MImageBody extends React.Component { }; protected getContentUrl(): string { + const content: IMediaEventContent = this.props.mxEvent.getContent(); + // During export, the content url will point to the MSC, which will later point to a local url + if (this.props.forExport) return content.url || content.file?.url; if (this.media.isEncrypted) { return this.state.decryptedUrl; } else { @@ -372,7 +375,7 @@ export default class MImageBody extends React.Component { let placeholder = null; let gifLabel = null; - if (!this.state.imgLoaded) { + if (!this.props.forExport && !this.state.imgLoaded) { placeholder = this.getPlaceholder(maxWidth, maxHeight); } @@ -462,7 +465,7 @@ export default class MImageBody extends React.Component { // Overidden by MStickerBody protected wrapImage(contentUrl: string, children: JSX.Element): JSX.Element { - return + return { children } ; } @@ -490,6 +493,7 @@ export default class MImageBody extends React.Component { // Overidden by MStickerBody protected getFileBody(): string | JSX.Element { + if (this.props.forExport) return null; // We only ever need the download bar if we're appearing outside of the timeline if (this.props.tileShape) { return ; @@ -510,7 +514,7 @@ export default class MImageBody extends React.Component { const contentUrl = this.getContentUrl(); let thumbUrl; - if (this.isGif() && SettingsStore.getValue("autoplayGifs")) { + if (this.props.forExport || (this.isGif() && SettingsStore.getValue("autoplayGifs"))) { thumbUrl = contentUrl; } else { thumbUrl = this.getThumbUrl(); diff --git a/src/components/views/messages/MVideoBody.tsx b/src/components/views/messages/MVideoBody.tsx index 5af1d7d9f5..d119662f8a 100644 --- a/src/components/views/messages/MVideoBody.tsx +++ b/src/components/views/messages/MVideoBody.tsx @@ -79,7 +79,10 @@ export default class MVideoBody extends React.PureComponent } private getContentUrl(): string|null { - const media = mediaFromContent(this.props.mxEvent.getContent()); + const content = this.props.mxEvent.getContent(); + // During export, the content url will point to the MSC, which will later point to a local url + if (this.props.forExport) return content.file?.url || content.url; + const media = mediaFromContent(content); if (media.isEncrypted) { return this.state.decryptedUrl; } else { @@ -93,6 +96,9 @@ export default class MVideoBody extends React.PureComponent } private getThumbUrl(): string|null { + // there's no need of thumbnail when the content is local + if (this.props.forExport) return null; + const content = this.props.mxEvent.getContent(); const media = mediaFromContent(content); @@ -209,6 +215,11 @@ export default class MVideoBody extends React.PureComponent this.props.onHeightChanged(); }; + private getFileBody = () => { + if (this.props.forExport) return null; + return this.props.tileShape && ; + }; + render() { const content = this.props.mxEvent.getContent(); const autoplay = SettingsStore.getValue("autoplayVideo"); @@ -222,8 +233,8 @@ export default class MVideoBody extends React.PureComponent ); } - // Important: If we aren't autoplaying and we haven't decrypred it yet, show a video with a poster. - if (content.file !== undefined && this.state.decryptedUrl === null && autoplay) { + // Important: If we aren't autoplaying and we haven't decrypted it yet, show a video with a poster. + if (!this.props.forExport && content.file !== undefined && this.state.decryptedUrl === null && autoplay) { // Need to decrypt the attachment // The attachment is decrypted in componentDidMount. // For now add an img tag with a spinner. @@ -254,6 +265,8 @@ export default class MVideoBody extends React.PureComponent preload = "none"; } } + + const fileBody = this.getFileBody(); return ( ); } diff --git a/src/components/views/messages/MVoiceOrAudioBody.tsx b/src/components/views/messages/MVoiceOrAudioBody.tsx index 5a7e34b8a1..b4dce5d1aa 100644 --- a/src/components/views/messages/MVoiceOrAudioBody.tsx +++ b/src/components/views/messages/MVoiceOrAudioBody.tsx @@ -24,7 +24,7 @@ import { isVoiceMessage } from "../../../utils/EventUtils"; @replaceableComponent("views.messages.MVoiceOrAudioBody") export default class MVoiceOrAudioBody extends React.PureComponent { public render() { - if (isVoiceMessage(this.props.mxEvent)) { + if (!this.props.forExport && isVoiceMessage(this.props.mxEvent)) { return ; } else { return ; diff --git a/src/components/views/messages/MessageActionBar.tsx b/src/components/views/messages/MessageActionBar.tsx index 06817b910a..7ee951a812 100644 --- a/src/components/views/messages/MessageActionBar.tsx +++ b/src/components/views/messages/MessageActionBar.tsx @@ -27,7 +27,7 @@ import { Action } from '../../../dispatcher/actions'; import { RightPanelPhases } from '../../../stores/RightPanelStorePhases'; import { aboveLeftOf, ContextMenu, ContextMenuTooltipButton, useContextMenu } from '../../structures/ContextMenu'; import { isContentActionable, canEditContent } from '../../../utils/EventUtils'; -import RoomContext from "../../../contexts/RoomContext"; +import RoomContext, { TimelineRenderingType } from "../../../contexts/RoomContext"; import Toolbar from "../../../accessibility/Toolbar"; import { RovingAccessibleTooltipButton, useRovingTabIndex } from "../../../accessibility/RovingTabIndex"; import { replaceableComponent } from "../../../utils/replaceableComponent"; @@ -128,11 +128,6 @@ const ReactButton: React.FC = ({ mxEvent, reactions, onFocusC ; }; -export enum ActionBarRenderingContext { - Room, - Thread -} - interface IMessageActionBarProps { mxEvent: MatrixEvent; reactions?: Relations; @@ -142,7 +137,6 @@ interface IMessageActionBarProps { permalinkCreator?: RoomPermalinkCreator; onFocusChange?: (menuDisplayed: boolean) => void; toggleThreadExpanded: () => void; - renderingContext?: ActionBarRenderingContext; isQuoteExpanded?: boolean; } @@ -150,10 +144,6 @@ interface IMessageActionBarProps { export default class MessageActionBar extends React.PureComponent { public static contextType = RoomContext; - public static defaultProps = { - renderingContext: ActionBarRenderingContext.Room, - }; - public componentDidMount(): void { if (this.props.mxEvent.status && this.props.mxEvent.status !== EventStatus.SENT) { this.props.mxEvent.on("Event.status", this.onSent); @@ -217,8 +207,9 @@ export default class MessageActionBar extends React.PureComponent { dis.dispatch({ - action: 'edit_event', + action: Action.EditEvent, event: this.props.mxEvent, + timelineRenderingType: this.context.timelineRenderingType, }); }; @@ -298,7 +289,7 @@ export default class MessageActionBar extends React.PureComponent implements IMe highlightLink={this.props.highlightLink} showUrlPreview={this.props.showUrlPreview} tileShape={this.props.tileShape} + forExport={this.props.forExport} maxImageHeight={this.props.maxImageHeight} replacingEventId={this.props.replacingEventId} editState={this.props.editState} diff --git a/src/components/views/messages/RedactedBody.tsx b/src/components/views/messages/RedactedBody.tsx index 66200036cd..9af4ebf1cb 100644 --- a/src/components/views/messages/RedactedBody.tsx +++ b/src/components/views/messages/RedactedBody.tsx @@ -29,7 +29,6 @@ interface IProps { const RedactedBody = React.forwardRef(({ mxEvent }, ref) => { const cli: MatrixClient = useContext(MatrixClientContext); - let text = _t("Message deleted"); const unsigned = mxEvent.getUnsigned(); const redactedBecauseUserId = unsigned && unsigned.redacted_because && unsigned.redacted_because.sender; diff --git a/src/components/views/right_panel/EncryptionInfo.tsx b/src/components/views/right_panel/EncryptionInfo.tsx index 34aeb8b88a..c9a4b3b84c 100644 --- a/src/components/views/right_panel/EncryptionInfo.tsx +++ b/src/components/views/right_panel/EncryptionInfo.tsx @@ -49,16 +49,18 @@ const EncryptionInfo: React.FC = ({ isSelfVerification, }: IProps) => { let content: JSX.Element; - if (waitingForOtherParty || waitingForNetwork) { + if (waitingForOtherParty && isSelfVerification) { + content = ( +
+ { _t("To proceed, please accept the verification request on your other login.") } +
+ ); + } else if (waitingForOtherParty || waitingForNetwork) { let text: string; if (waitingForOtherParty) { - if (isSelfVerification) { - text = _t("Accept on your other login…"); - } else { - text = _t("Waiting for %(displayName)s to accept…", { - displayName: (member as User).displayName || (member as RoomMember).name || member.userId, - }); - } + text = _t("Waiting for %(displayName)s to accept…", { + displayName: (member as User).displayName || (member as RoomMember).name || member.userId, + }); } else { text = _t("Accepting…"); } diff --git a/src/components/views/right_panel/RoomSummaryCard.tsx b/src/components/views/right_panel/RoomSummaryCard.tsx index 00d52831c7..1fe556dde2 100644 --- a/src/components/views/right_panel/RoomSummaryCard.tsx +++ b/src/components/views/right_panel/RoomSummaryCard.tsx @@ -47,6 +47,7 @@ import { useRoomMemberCount } from "../../../hooks/useRoomMembers"; import { Container, MAX_PINNED, WidgetLayoutStore } from "../../../stores/widgets/WidgetLayoutStore"; import RoomName from "../elements/RoomName"; import UIStore from "../../../stores/UIStore"; +import ExportDialog from "../dialogs/ExportDialog"; interface IProps { room: Room; @@ -240,6 +241,12 @@ const RoomSummaryCard: React.FC = ({ room, onClose }) => { }); }; + const onRoomExportClick = async () => { + Modal.createTrackedDialog('export room dialog', '', ExportDialog, { + room, + }); + }; + const isRoomEncrypted = useIsEncrypted(cli, room); const roomContext = useContext(RoomContext); const e2eStatus = roomContext.e2eStatus; @@ -280,6 +287,9 @@ const RoomSummaryCard: React.FC = ({ room, onClose }) => { + { SettingsStore.getValue("feature_thread") && (
); } } + +const EditMessageComposerWithMatrixClient = withMatrixClientHOC(EditMessageComposer); +export default EditMessageComposerWithMatrixClient; diff --git a/src/components/views/rooms/EventTile.tsx b/src/components/views/rooms/EventTile.tsx index 27cf7d761f..b74ee3a8cf 100644 --- a/src/components/views/rooms/EventTile.tsx +++ b/src/components/views/rooms/EventTile.tsx @@ -53,7 +53,7 @@ import SenderProfile from '../messages/SenderProfile'; import MessageTimestamp from '../messages/MessageTimestamp'; import TooltipButton from '../elements/TooltipButton'; import ReadReceiptMarker from "./ReadReceiptMarker"; -import MessageActionBar, { ActionBarRenderingContext } from "../messages/MessageActionBar"; +import MessageActionBar from "../messages/MessageActionBar"; import ReactionsRow from '../messages/ReactionsRow'; import { getEventDisplayInfo } from '../../../utils/EventUtils'; import { RightPanelPhases } from "../../../stores/RightPanelStorePhases"; @@ -264,6 +264,8 @@ interface IProps { // for now. tileShape?: TileShape; + forExport?: boolean; + // show twelve hour timestamps isTwelveHour?: boolean; @@ -340,6 +342,7 @@ export default class EventTile extends React.Component { static defaultProps = { // no-op function because onHeightChanged is optional yet some sub-components assume its existence onHeightChanged: function() {}, + forExport: false, layout: Layout.Group, }; @@ -382,7 +385,7 @@ export default class EventTile extends React.Component { * or 'sent' receipt, for example. * @returns {boolean} */ - private get isEligibleForSpecialReceipt() { + private get isEligibleForSpecialReceipt(): boolean { // First, if there are other read receipts then just short-circuit this. if (this.props.readReceipts && this.props.readReceipts.length > 0) return false; if (!this.props.mxEvent) return false; @@ -453,16 +456,18 @@ export default class EventTile extends React.Component { componentDidMount() { this.suppressReadReceiptAnimation = false; const client = this.context; - client.on("deviceVerificationChanged", this.onDeviceVerificationChanged); - client.on("userTrustStatusChanged", this.onUserVerificationChanged); - this.props.mxEvent.on("Event.decrypted", this.onDecrypted); - if (this.props.showReactions) { - this.props.mxEvent.on("Event.relationsCreated", this.onReactionsCreated); - } + if (!this.props.forExport) { + client.on("deviceVerificationChanged", this.onDeviceVerificationChanged); + client.on("userTrustStatusChanged", this.onUserVerificationChanged); + this.props.mxEvent.on("Event.decrypted", this.onDecrypted); + if (this.props.showReactions) { + this.props.mxEvent.on("Event.relationsCreated", this.onReactionsCreated); + } - if (this.shouldShowSentReceipt || this.shouldShowSendingReceipt) { - client.on("Room.receipt", this.onRoomReceipt); - this.isListeningForReceipts = true; + if (this.shouldShowSentReceipt || this.shouldShowSendingReceipt) { + client.on("Room.receipt", this.onRoomReceipt); + this.isListeningForReceipts = true; + } } if (SettingsStore.getValue("feature_thread")) { @@ -698,6 +703,7 @@ export default class EventTile extends React.Component { } shouldHighlight() { + if (this.props.forExport) return false; const actions = this.context.getPushActionsForEvent(this.props.mxEvent.replacingEvent() || this.props.mxEvent); if (!actions || !actions.tweaks) { return false; } @@ -1056,17 +1062,14 @@ export default class EventTile extends React.Component { } } - const renderingContext = this.props.tileShape === TileShape.Thread - ? ActionBarRenderingContext.Thread - : ActionBarRenderingContext.Room; - const actionBar = !isEditing ? this.setQuoteExpanded(!isQuoteExpanded)} /> : undefined; @@ -1171,6 +1174,7 @@ export default class EventTile extends React.Component { showUrlPreview={this.props.showUrlPreview} onHeightChanged={this.props.onHeightChanged} tileShape={this.props.tileShape} + editState={this.props.editState} /> , ]); @@ -1204,6 +1208,8 @@ export default class EventTile extends React.Component { showUrlPreview={this.props.showUrlPreview} onHeightChanged={this.props.onHeightChanged} tileShape={this.props.tileShape} + editState={this.props.editState} + replacingEventId={this.props.replacingEventId} /> { actionBar } , @@ -1224,6 +1230,7 @@ export default class EventTile extends React.Component { showUrlPreview={this.props.showUrlPreview} tileShape={this.props.tileShape} onHeightChanged={this.props.onHeightChanged} + editState={this.props.editState} /> , { parentEv={this.props.mxEvent} onHeightChanged={this.props.onHeightChanged} ref={this.replyThread} + forExport={this.props.forExport} permalinkCreator={this.props.permalinkCreator} layout={this.props.layout} alwaysShowTimestamps={this.props.alwaysShowTimestamps || this.state.hover} @@ -1280,6 +1288,7 @@ export default class EventTile extends React.Component { { thread } { // XXX this'll eventually be dynamic based on the fields once we have extensible event types const messageTypes = ['m.room.message', 'm.sticker']; -function isMessageEvent(ev) { +function isMessageEvent(ev: MatrixEvent): boolean { return (messageTypes.includes(ev.getType())); } diff --git a/src/components/views/rooms/MessageComposer.tsx b/src/components/views/rooms/MessageComposer.tsx index 332341fd23..f14af69a6d 100644 --- a/src/components/views/rooms/MessageComposer.tsx +++ b/src/components/views/rooms/MessageComposer.tsx @@ -45,7 +45,7 @@ import { RecordingState } from "../../../audio/VoiceRecording"; import Tooltip, { Alignment } from "../elements/Tooltip"; import ResizeNotifier from "../../../utils/ResizeNotifier"; import { E2EStatus } from '../../../utils/ShieldUtils'; -import SendMessageComposer from "./SendMessageComposer"; +import SendMessageComposer, { SendMessageComposer as SendMessageComposerClass } from "./SendMessageComposer"; import { ComposerInsertPayload } from "../../../dispatcher/payloads/ComposerInsertPayload"; import { Action } from "../../../dispatcher/actions"; import EditorModel from "../../../editor/model"; @@ -219,8 +219,8 @@ interface IState { @replaceableComponent("views.rooms.MessageComposer") export default class MessageComposer extends React.Component { private dispatcherRef: string; - private messageComposerInput: SendMessageComposer; - private voiceRecordingButton: VoiceRecordComposerTile; + private messageComposerInput = createRef(); + private voiceRecordingButton = createRef(); private ref: React.RefObject = createRef(); private instanceId: number; @@ -378,14 +378,14 @@ export default class MessageComposer extends React.Component { } private sendMessage = async () => { - if (this.state.haveRecording && this.voiceRecordingButton) { + if (this.state.haveRecording && this.voiceRecordingButton.current) { // There shouldn't be any text message to send when a voice recording is active, so // just send out the voice recording. - await this.voiceRecordingButton.send(); + await this.voiceRecordingButton.current?.send(); return; } - this.messageComposerInput.sendMessage(); + this.messageComposerInput.current?.sendMessage(); }; private onChange = (model: EditorModel) => { @@ -460,7 +460,7 @@ export default class MessageComposer extends React.Component { buttons.push( this.voiceRecordingButton?.onRecordStartEndClick()} + onClick={() => this.voiceRecordingButton.current?.onRecordStartEndClick()} title={_t("Send voice message")} />, ); @@ -521,7 +521,7 @@ export default class MessageComposer extends React.Component { if (!this.state.tombstone && this.state.canSendMessages) { controls.push( this.messageComposerInput = c} + ref={this.messageComposerInput} key="controls_input" room={this.props.room} placeholder={this.renderPlaceholderText()} @@ -535,7 +535,7 @@ export default class MessageComposer extends React.Component { controls.push( this.voiceRecordingButton = c} + ref={this.voiceRecordingButton} room={this.props.room} />); } else if (this.state.tombstone) { const replacementRoomId = this.state.tombstone.getContent()['replacement_room']; diff --git a/src/components/views/rooms/RoomPreviewBar.tsx b/src/components/views/rooms/RoomPreviewBar.tsx index 2acefc93d6..82437a5c14 100644 --- a/src/components/views/rooms/RoomPreviewBar.tsx +++ b/src/components/views/rooms/RoomPreviewBar.tsx @@ -35,6 +35,8 @@ import InviteReason from "../elements/InviteReason"; import { IOOBData } from "../../../stores/ThreepidInviteStore"; import Spinner from "../elements/Spinner"; import AccessibleButton from "../elements/AccessibleButton"; +import { UIFeature } from "../../../settings/UIFeature"; +import SettingsStore from "../../../settings/SettingsStore"; const MemberEventHtmlReasonField = "io.element.html_reason"; @@ -339,8 +341,10 @@ export default class RoomPreviewBar extends React.Component { } case MessageCase.NotLoggedIn: { title = _t("Join the conversation with an account"); - primaryActionLabel = _t("Sign Up"); - primaryActionHandler = this.onRegisterClick; + if (SettingsStore.getValue(UIFeature.Registration)) { + primaryActionLabel = _t("Sign Up"); + primaryActionHandler = this.onRegisterClick; + } secondaryActionLabel = _t("Sign In"); secondaryActionHandler = this.onLoginClick; if (this.props.previewLoading) { diff --git a/src/components/views/rooms/RoomTile.tsx b/src/components/views/rooms/RoomTile.tsx index 970915d653..dbefcbd333 100644 --- a/src/components/views/rooms/RoomTile.tsx +++ b/src/components/views/rooms/RoomTile.tsx @@ -29,10 +29,9 @@ import { ChevronFace, ContextMenuTooltipButton } from "../../structures/ContextM import { DefaultTagID, TagID } from "../../../stores/room-list/models"; import { MessagePreviewStore } from "../../../stores/room-list/MessagePreviewStore"; import DecoratedRoomAvatar from "../avatars/DecoratedRoomAvatar"; -import { ALL_MESSAGES, ALL_MESSAGES_LOUD, MENTIONS_ONLY, MUTE } from "../../../RoomNotifs"; +import { RoomNotifState } from "../../../RoomNotifs"; import { MatrixClientPeg } from "../../../MatrixClientPeg"; import NotificationBadge from "./NotificationBadge"; -import { Volume } from "../../../RoomNotifsTypes"; import RoomListStore from "../../../stores/room-list/RoomListStore"; import RoomListActions from "../../../actions/RoomListActions"; import { ActionPayload } from "../../../dispatcher/payloads"; @@ -364,7 +363,7 @@ export default class RoomTile extends React.PureComponent { this.setState({ generalMenuPosition: null }); // hide the menu }; - private async saveNotifState(ev: ButtonEvent, newState: Volume) { + private async saveNotifState(ev: ButtonEvent, newState: RoomNotifState) { ev.preventDefault(); ev.stopPropagation(); if (MatrixClientPeg.get().isGuest()) return; @@ -378,10 +377,10 @@ export default class RoomTile extends React.PureComponent { } } - private onClickAllNotifs = ev => this.saveNotifState(ev, ALL_MESSAGES); - private onClickAlertMe = ev => this.saveNotifState(ev, ALL_MESSAGES_LOUD); - private onClickMentions = ev => this.saveNotifState(ev, MENTIONS_ONLY); - private onClickMute = ev => this.saveNotifState(ev, MUTE); + private onClickAllNotifs = ev => this.saveNotifState(ev, RoomNotifState.AllMessages); + private onClickAlertMe = ev => this.saveNotifState(ev, RoomNotifState.AllMessagesLoud); + private onClickMentions = ev => this.saveNotifState(ev, RoomNotifState.MentionsOnly); + private onClickMute = ev => this.saveNotifState(ev, RoomNotifState.Mute); private renderNotificationsMenu(isActive: boolean): React.ReactElement { if (MatrixClientPeg.get().isGuest() || this.props.tag === DefaultTagID.Archived || @@ -404,25 +403,25 @@ export default class RoomTile extends React.PureComponent { @@ -432,14 +431,14 @@ export default class RoomTile extends React.PureComponent { const classes = classNames("mx_RoomTile_notificationsButton", { // Show bell icon for the default case too. - mx_RoomTile_iconBell: state === ALL_MESSAGES, - mx_RoomTile_iconBellDot: state === ALL_MESSAGES_LOUD, - mx_RoomTile_iconBellMentions: state === MENTIONS_ONLY, - mx_RoomTile_iconBellCrossed: state === MUTE, + mx_RoomTile_iconBell: state === RoomNotifState.AllMessages, + mx_RoomTile_iconBellDot: state === RoomNotifState.AllMessagesLoud, + mx_RoomTile_iconBellMentions: state === RoomNotifState.MentionsOnly, + mx_RoomTile_iconBellCrossed: state === RoomNotifState.Mute, // Only show the icon by default if the room is overridden to muted. // TODO: [FTUE Notifications] Probably need to detect global mute state - mx_RoomTile_notificationsButton_show: state === MUTE, + mx_RoomTile_notificationsButton_show: state === RoomNotifState.Mute, }); return ( diff --git a/src/components/views/rooms/SendMessageComposer.tsx b/src/components/views/rooms/SendMessageComposer.tsx index cc27ccf153..35a028aadc 100644 --- a/src/components/views/rooms/SendMessageComposer.tsx +++ b/src/components/views/rooms/SendMessageComposer.tsx @@ -19,6 +19,7 @@ import EMOJI_REGEX from 'emojibase-regex'; import { IContent, MatrixEvent } from 'matrix-js-sdk/src/models/event'; import { DebouncedFunc, throttle } from 'lodash'; import { EventType, RelationType } from "matrix-js-sdk/src/@types/event"; +import { logger } from "matrix-js-sdk/src/logger"; import dis from '../../../dispatcher/dispatcher'; import EditorModel from '../../../editor/model'; @@ -40,7 +41,7 @@ import { Command, CommandCategories, getCommand } from '../../../SlashCommands'; import Modal from '../../../Modal'; import { _t, _td } from '../../../languageHandler'; import ContentMessages from '../../../ContentMessages'; -import MatrixClientContext from "../../../contexts/MatrixClientContext"; +import { withMatrixClientHOC, MatrixClientProps } from "../../../contexts/MatrixClientContext"; import { Action } from "../../../dispatcher/actions"; import { containsEmoji } from "../../../effects/utils"; import { CHAT_EFFECTS } from '../../../effects'; @@ -55,8 +56,7 @@ import ErrorDialog from "../dialogs/ErrorDialog"; import QuestionDialog from "../dialogs/QuestionDialog"; import { ActionPayload } from "../../../dispatcher/payloads"; import { decorateStartSendingTime, sendRoundTripMetric } from "../../../sendTimePerformanceMetrics"; - -import { logger } from "matrix-js-sdk/src/logger"; +import RoomContext from '../../../contexts/RoomContext'; function addReplyToMessageContent( content: IContent, @@ -130,7 +130,7 @@ export function isQuickReaction(model: EditorModel): boolean { return false; } -interface IProps { +interface ISendMessageComposerProps extends MatrixClientProps { room: Room; placeholder?: string; permalinkCreator: RoomPermalinkCreator; @@ -141,10 +141,8 @@ interface IProps { } @replaceableComponent("views.rooms.SendMessageComposer") -export default class SendMessageComposer extends React.Component { - static contextType = MatrixClientContext; - context!: React.ContextType; - +export class SendMessageComposer extends React.Component { + static contextType = RoomContext; private readonly prepareToEncrypt?: DebouncedFunc<() => void>; private readonly editorRef = createRef(); private model: EditorModel = null; @@ -152,26 +150,25 @@ export default class SendMessageComposer extends React.Component { private dispatcherRef: string; private sendHistoryManager: SendHistoryManager; - constructor(props: IProps, context: React.ContextType) { + constructor(props: ISendMessageComposerProps, context: React.ContextType) { super(props); - this.context = context; // otherwise React will only set it prior to render due to type def above - if (this.context.isCryptoEnabled() && this.context.isRoomEncrypted(this.props.room.roomId)) { + if (this.props.mxClient.isCryptoEnabled() && this.props.mxClient.isRoomEncrypted(this.props.room.roomId)) { this.prepareToEncrypt = throttle(() => { - this.context.prepareToEncrypt(this.props.room); + this.props.mxClient.prepareToEncrypt(this.props.room); }, 60000, { leading: true, trailing: false }); } window.addEventListener("beforeunload", this.saveStoredEditorState); } - public componentDidUpdate(prevProps: IProps): void { + public componentDidUpdate(prevProps: ISendMessageComposerProps): void { const replyToEventChanged = this.props.replyInThread && (this.props.replyToEvent !== prevProps.replyToEvent); if (replyToEventChanged) { this.model.reset([]); } if (this.props.replyInThread && this.props.replyToEvent && (!prevProps.replyToEvent || replyToEventChanged)) { - const partCreator = new CommandPartCreator(this.props.room, this.context); + const partCreator = new CommandPartCreator(this.props.room, this.props.mxClient); const parts = this.restoreStoredEditorState(partCreator) || []; this.model.reset(parts); this.editorRef.current?.focus(); @@ -202,13 +199,20 @@ export default class SendMessageComposer extends React.Component { case MessageComposerAction.EditPrevMessage: // selection must be collapsed and caret at start if (this.editorRef.current?.isSelectionCollapsed() && this.editorRef.current?.isCaretAtStart()) { - const editEvent = findEditableEvent(this.props.room, false); + const events = + this.context.liveTimeline.getEvents() + .concat(this.props.replyInThread ? [] : this.props.room.getPendingEvents()); + const editEvent = findEditableEvent({ + events, + isForward: false, + }); if (editEvent) { // We're selecting history, so prevent the key event from doing anything else event.preventDefault(); dis.dispatch({ - action: 'edit_event', + action: Action.EditEvent, event: editEvent, + timelineRenderingType: this.context.timelineRenderingType, }); } } @@ -275,7 +279,7 @@ export default class SendMessageComposer extends React.Component { } private sendQuickReaction(): void { - const timeline = this.props.room.getLiveTimeline(); + const timeline = this.context.liveTimeline(); const events = timeline.getEvents(); const reaction = this.model.parts[1].text; for (let i = events.length - 1; i >= 0; i--) { @@ -448,7 +452,7 @@ export default class SendMessageComposer extends React.Component { decorateStartSendingTime(content); } - const prom = this.context.sendMessage(roomId, content); + const prom = this.props.mxClient.sendMessage(roomId, content); if (replyToEvent) { // Clear reply_to_event as we put the message into the queue // if the send fails, retry will handle resending. @@ -465,7 +469,7 @@ export default class SendMessageComposer extends React.Component { }); if (SettingsStore.getValue("Performance.addSendMessageTimingMetadata")) { prom.then(resp => { - sendRoundTripMetric(this.context, roomId, resp.event_id); + sendRoundTripMetric(this.props.mxClient, roomId, resp.event_id); }); } CountlyAnalytics.instance.trackSendMessage(startTime, prom, roomId, false, !!replyToEvent, content); @@ -490,7 +494,7 @@ export default class SendMessageComposer extends React.Component { // TODO: [REACT-WARNING] Move this to constructor UNSAFE_componentWillMount() { // eslint-disable-line - const partCreator = new CommandPartCreator(this.props.room, this.context); + const partCreator = new CommandPartCreator(this.props.room, this.props.mxClient); const parts = this.restoreStoredEditorState(partCreator) || []; this.model = new EditorModel(parts, partCreator); this.dispatcherRef = dis.register(this.onAction); @@ -577,7 +581,7 @@ export default class SendMessageComposer extends React.Component { // it puts the filename in as text/plain which we want to ignore. if (clipboardData.files.length && !clipboardData.types.includes("text/rtf")) { ContentMessages.sharedInstance().sendContentListToRoom( - Array.from(clipboardData.files), this.props.room.roomId, this.context, + Array.from(clipboardData.files), this.props.room.roomId, this.props.mxClient, ); return true; // to skip internal onPaste handler } @@ -608,3 +612,6 @@ export default class SendMessageComposer extends React.Component { ); } } + +const SendMessageComposerWithMatrixClient = withMatrixClientHOC(SendMessageComposer); +export default SendMessageComposerWithMatrixClient; diff --git a/src/components/views/settings/JoinRuleSettings.tsx b/src/components/views/settings/JoinRuleSettings.tsx index a32d147d3a..76596103f5 100644 --- a/src/components/views/settings/JoinRuleSettings.tsx +++ b/src/components/views/settings/JoinRuleSettings.tsx @@ -97,7 +97,7 @@ const JoinRuleSettings = ({ room, promptUpgrade, onError, beforeChange, closeSet if (roomSupportsRestricted || preferredRestrictionVersion || joinRule === JoinRule.Restricted) { let upgradeRequiredPill; if (preferredRestrictionVersion) { - upgradeRequiredPill = + upgradeRequiredPill = { _t("Upgrade required") } ; } @@ -159,13 +159,14 @@ const JoinRuleSettings = ({ room, promptUpgrade, onError, beforeChange, closeSet disabled={disabled} onClick={onEditRestrictedClick} kind="link" + className="mx_JoinRuleSettings_linkButton" > { sub }
, }) }
-
+

{ _t("Spaces with access") }

{ shownSpaces.map(room => { return @@ -286,6 +287,7 @@ const JoinRuleSettings = ({ room, promptUpgrade, onError, beforeChange, closeSet onChange={onChange} definitions={definitions} disabled={disabled} + className="mx_JoinRuleSettings_radioButton" /> ); }; diff --git a/src/components/views/spaces/SpaceCreateMenu.tsx b/src/components/views/spaces/SpaceCreateMenu.tsx index 52f7786957..1d63f85f71 100644 --- a/src/components/views/spaces/SpaceCreateMenu.tsx +++ b/src/components/views/spaces/SpaceCreateMenu.tsx @@ -17,9 +17,8 @@ limitations under the License. import React, { ComponentProps, RefObject, SyntheticEvent, KeyboardEvent, useContext, useRef, useState } from "react"; import classNames from "classnames"; import { RoomType } from "matrix-js-sdk/src/@types/event"; -import FocusLock from "react-focus-lock"; -import { HistoryVisibility, Preset } from "matrix-js-sdk/src/@types/partials"; import { ICreateRoomOpts } from "matrix-js-sdk/src/@types/requests"; +import { HistoryVisibility, Preset } from "matrix-js-sdk/src/@types/partials"; import { _t } from "../../../languageHandler"; import AccessibleTooltipButton from "../elements/AccessibleTooltipButton"; @@ -361,9 +360,7 @@ const SpaceCreateMenu = ({ onFinished }) => { wrapperClassName="mx_SpaceCreateMenu_wrapper" managed={false} > - - { body } - + { body } ; }; diff --git a/src/components/views/verification/VerificationShowSas.tsx b/src/components/views/verification/VerificationShowSas.tsx index 2b9ea5da96..609255a565 100644 --- a/src/components/views/verification/VerificationShowSas.tsx +++ b/src/components/views/verification/VerificationShowSas.tsx @@ -121,24 +121,24 @@ export default class VerificationShowSas extends React.Component } let confirm; - if (this.state.pending || this.state.cancelling) { + if (this.state.pending && this.props.isSelf) { + let text; + // device shouldn't be null in this situation but it can be, eg. if the device is + // logged out during verification + if (this.props.device) { + text = _t("Waiting for you to verify on your other session, %(deviceName)s (%(deviceId)s)…", { + deviceName: this.props.device ? this.props.device.getDisplayName() : '', + deviceId: this.props.device ? this.props.device.deviceId : '', + }); + } else { + text = _t("Waiting for you to verify on your other session…"); + } + confirm =

{ text }

; + } else if (this.state.pending || this.state.cancelling) { let text; if (this.state.pending) { - if (this.props.isSelf) { - // device shouldn't be null in this situation but it can be, eg. if the device is - // logged out during verification - if (this.props.device) { - text = _t("Waiting for your other session, %(deviceName)s (%(deviceId)s), to verify…", { - deviceName: this.props.device ? this.props.device.getDisplayName() : '', - deviceId: this.props.device ? this.props.device.deviceId : '', - }); - } else { - text = _t("Waiting for your other session to verify…"); - } - } else { - const { displayName } = this.props; - text = _t("Waiting for %(displayName)s to verify…", { displayName }); - } + const { displayName } = this.props; + text = _t("Waiting for %(displayName)s to verify…", { displayName }); } else { text = _t("Cancelling…"); } diff --git a/src/contexts/MatrixClientContext.tsx b/src/contexts/MatrixClientContext.tsx new file mode 100644 index 0000000000..292c1e34d8 --- /dev/null +++ b/src/contexts/MatrixClientContext.tsx @@ -0,0 +1,46 @@ +/* +Copyright 2021 The Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +import React, { ComponentClass, createContext, forwardRef, useContext } from "react"; +import { MatrixClient } from "matrix-js-sdk/src/client"; + +const MatrixClientContext = createContext(undefined); +MatrixClientContext.displayName = "MatrixClientContext"; +export default MatrixClientContext; + +export interface MatrixClientProps { + mxClient: MatrixClient; +} + +const matrixHOC = ( + ComposedComponent: ComponentClass, +) => { + type ComposedComponentInstance = InstanceType; + + // eslint-disable-next-line react-hooks/rules-of-hooks + + const TypedComponent = ComposedComponent; + + return forwardRef>( + (props, ref) => { + const client = useContext(MatrixClientContext); + + // @ts-ignore + return ; + }, + ); +}; +export const withMatrixClientHOC = matrixHOC; diff --git a/src/contexts/RoomContext.ts b/src/contexts/RoomContext.ts index 0507a3e252..a57c14d90f 100644 --- a/src/contexts/RoomContext.ts +++ b/src/contexts/RoomContext.ts @@ -16,10 +16,15 @@ limitations under the License. import { createContext } from "react"; -import { IState } from "../components/structures/RoomView"; +import { IRoomState } from "../components/structures/RoomView"; import { Layout } from "../settings/Layout"; -const RoomContext = createContext({ +export enum TimelineRenderingType { + Room, + Thread +} + +const RoomContext = createContext({ roomLoading: true, peekLoading: false, shouldPeek: true, @@ -53,6 +58,8 @@ const RoomContext = createContext({ showDisplaynameChanges: true, matrixClientIsReady: false, dragCounter: 0, + timelineRenderingType: TimelineRenderingType.Room, + liveTimeline: undefined, }); RoomContext.displayName = "RoomContext"; export default RoomContext; diff --git a/src/dispatcher/actions.ts b/src/dispatcher/actions.ts index 2a8ce7a08b..796dbbeeb6 100644 --- a/src/dispatcher/actions.ts +++ b/src/dispatcher/actions.ts @@ -128,7 +128,7 @@ export enum Action { * Start a call transfer to a phone number * payload: TransferCallPayload */ - TransferCallToPhoneNumber = "transfer_call_to_phone_number", + TransferCallToPhoneNumber = "transfer_call_to_phone_number", /** * Fired when CallHandler has checked for PSTN protocol support @@ -205,4 +205,9 @@ export enum Action { * Should be used with SettingUpdatedPayload. */ SettingUpdated = "setting_updated", + + /** + * Fires when a user starts to edit event (e.g. up arrow in compositor) + */ + EditEvent = "edit_event", } diff --git a/src/emoji.ts b/src/emoji.ts index ee84583fc9..73898c12eb 100644 --- a/src/emoji.ts +++ b/src/emoji.ts @@ -74,7 +74,7 @@ export const EMOJI: IEmoji[] = EMOJIBASE.map((emojiData: Omitpinned messages
for the room.": "%(senderName)s změnil(a) připnuté zprávy v místnosti.", "%(senderName)s kicked %(targetName)s": "%(senderName)s vykopl(a) uživatele %(targetName)s", @@ -3056,7 +3056,7 @@ "Want to add a new space instead?": "Chcete místo toho přidat nový prostor?", "Decrypting": "Dešifrování", "Show all rooms": "Zobrazit všechny místnosti", - "All rooms you're in will appear in Home.": "Všechny místnosti, ve kterých se nacházíte, se zobrazí na domovské obrazovce.", + "All rooms you're in will appear in Home.": "Všechny místnosti, ve kterých se nacházíte, se zobrazí na úvodní obrazovce.", "Send pseudonymous analytics data": "Odeslat pseudonymní analytická data", "Missed call": "Zmeškaný hovor", "Call declined": "Hovor odmítnut", @@ -3158,9 +3158,51 @@ "This room is in some spaces you’re not an admin of. In those spaces, the old room will still be shown, but people will be prompted to join the new one.": "Tato místnost se nachází v některých prostorech, jejichž nejste správcem. V těchto prostorech bude stará místnost stále zobrazena, ale lidé budou vyzváni, aby se připojili k nové místnosti.", "Before you upgrade": "Než provedete aktualizaci", "To join a space you'll need an invite.": "Pro připojení k prostoru potřebujete pozvánku.", - "You can also make Spaces from communities.": "Můžete také vytvořit prostory ze skupin.", + "You can also make Spaces from communities.": "Prostory můžete vytvořit také ze skupin.", "Temporarily show communities instead of Spaces for this session. Support for this will be removed in the near future. This will reload Element.": "Dočasně zobrazit skupiny místo prostorů pro tuto relaci. Podpora bude v blízké budoucnosti odstraněna. Toto provede přenačtení Elementu.", "Display Communities instead of Spaces": "Zobrazit skupiny místo prostorů", "Joining space …": "Připojování k prostoru…", - "%(reactors)s reacted with %(content)s": "%(reactors)s reagoval(a) na %(content)s" + "%(reactors)s reacted with %(content)s": "%(reactors)s reagoval(a) na %(content)s", + "Would you like to leave the rooms in this space?": "Chcete odejít z místností v tomto prostoru?", + "You are about to leave .": "Odcházíte z .", + "Leave some rooms": "Odejít z některých místností", + "Don't leave any rooms": "Neodcházet z žádné místnosti", + "Leave all rooms": "Odejít ze všech místností", + "Expand quotes │ ⇧+click": "Rozbalit uvozovky │ ⇧+kliknutí", + "Collapse quotes │ ⇧+click": "Sbalit uvozovky │ ⇧+kliknutí", + "Include Attachments": "Zahrnout přílohy", + "Size Limit": "Omezení velikosti", + "Format": "Formát", + "Select from the options below to export chats from your timeline": "Vyberte jednu z níže uvedených možností pro export chatů z časové osy", + "Export Chat": "Exportovat chat", + "Exporting your data": "Exportování dat", + "Stop": "Zastavit", + "Are you sure you want to stop exporting your data? If you do, you'll need to start over.": "Opravdu chcete ukončit export dat? Pokud ano, budete muset začít znovu.", + "Your export was successful. Find it in your Downloads folder.": "Váš export proběhl úspěšně. Najdete jej ve složce pro stažené soubory.", + "The export was cancelled successfully": "Export byl úspěšně zrušen", + "Export Successful": "Export proběhl úspěšně", + "MB": "MB", + "Number of messages": "Počet zpráv", + "Number of messages can only be a number between %(min)s and %(max)s": "Počet zpráv může být pouze číslo mezi %(min)s a %(max)s", + "Size can only be a number between %(min)s MB and %(max)s MB": "Velikost může být pouze číslo mezi %(min)s MB a %(max)s MB", + "Enter a number between %(min)s and %(max)s": "Zadejte číslo mezi %(min)s a %(max)s", + "In reply to this message": "V odpovědi na tuto zprávu", + "Export chat": "Exportovat chat", + "File Attached": "Přiložený soubor", + "Error fetching file": "Chyba při načítání souboru", + "Topic: %(topic)s": "Téma: %(topic)s", + "This is the start of export of . Exported by at %(exportDate)s.": "Toto je začátek exportu . Exportováno pomocí v %(exportDate)s.", + "%(creatorName)s created this room.": "%(creatorName)s vytvořil(a) tuto místnost.", + "Media omitted - file size limit exceeded": "Vynechaná média - překročen limit velikosti souboru", + "Media omitted": "Vynechaná média", + "Current Timeline": "Aktuální časová osa", + "Specify a number of messages": "Zadejte počet zpráv", + "From the beginning": "Od začátku", + "Plain Text": "Prostý text", + "JSON": "JSON", + "HTML": "HTML", + "Are you sure you want to exit during this export?": "Opravdu chcete skončit během tohoto exportu?", + "%(senderDisplayName)s sent a sticker.": "%(senderDisplayName)s poslal(a) nálepku.", + "%(senderDisplayName)s changed the room avatar.": "%(senderDisplayName)s změnil(a) avatar místnosti.", + "%(date)s at %(time)s": "%(date)s v %(time)s" } diff --git a/src/i18n/strings/de_DE.json b/src/i18n/strings/de_DE.json index 61f6239929..a85a662dd3 100644 --- a/src/i18n/strings/de_DE.json +++ b/src/i18n/strings/de_DE.json @@ -3134,5 +3134,26 @@ "Joining space …": "Space beitreten…", "To join a space you'll need an invite.": "Um einem Space beizutreten brauchst du eine Einladung.", "Temporarily show communities instead of Spaces for this session. Support for this will be removed in the near future. This will reload Element.": "In dieser Sitzung temporär Communities statt Spaces anzeigen. Unterstützung hierfür wird in naher Zukunft entfernt. Dies wird Element neu laden.", - "Display Communities instead of Spaces": "Communities statt Spaces anzeigen" + "Display Communities instead of Spaces": "Communities statt Spaces anzeigen", + "To join this Space, hide communities in your preferences": "Deaktiviere Communities in den Einstellungen, um diesen Space beizutreten.", + "To view this Space, hide communities in your preferences": "Deaktiviere Communities in den Einstellungen, um diesen Space anzuzeigen.", + "To join %(communityName)s, swap to communities in your preferences": "Um %(communityName)s beizutreten, aktiviere Communities in den Einstellungen", + "To view %(communityName)s, swap to communities in your preferences": "Um %(communityName)s anzuzeigen, aktiviere Communities in den Einstellungen", + "Private community": "Private Community", + "Public community": "Öffentliche Community", + "You are about to leave .": "Du bist dabei, zu verlassen.", + "Leave some rooms": "Zu verlassende Räume auswählen", + "Leave all rooms": "Alle Räume verlassen", + "Don't leave any rooms": "Räume nicht verlassen", + "%(reactors)s reacted with %(content)s": "%(reactors)s hat mit %(content)s reagiert", + "Some encryption parameters have been changed.": "Einige Verschlüsselungsoptionen wurden geändert.", + "Message": "Nachricht", + "Message didn't send. Click for info.": "Nachricht nicht gesendet. Klicke für Details.", + "To avoid these issues, create a new public room for the conversation you plan to have.": "Erstelle einen neuen Raum für deine Konversation, um diese Probleme zu umgehen.", + "It's not recommended to make encrypted rooms public. It will mean anyone can find and join the room, so anyone can read messages. You'll get none of the benefits of encryption. Encrypting messages in a public room will make receiving and sending messages slower.": "Es ist nicht sinnvoll, verschlüsselte Räume öffentlich zu machen. Da jeder den Raum betreten kann, kann auch jeder Nachrichten lesen, was die Verschlüsselung sinnlos macht. Außerdem wird das Senden und Empfangen von Nachrichten langsamer werden.", + "Select the roles required to change various parts of the space": "Wähle, von wem folgende Aktionen ausgeführt werden können", + "Upgrade anyway": "Trotzdem upgraden", + "This room is in some spaces you’re not an admin of. In those spaces, the old room will still be shown, but people will be prompted to join the new one.": "Dieser Raum ist in einigen Spaces, in denen du nicht Admin bist. Daher wird dort noch der alte Raum angezeigt, die Leute werden aber auf den neuen Raum hingewiesen.", + "Before you upgrade": "Bevor du upgradest", + "You can also make Spaces from communities.": "Du kannst Spaces auch aus Communities erstellen." } diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 01189adbe1..80956f50d7 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -102,6 +102,7 @@ "%(weekDayName)s, %(monthName)s %(day)s %(time)s": "%(weekDayName)s, %(monthName)s %(day)s %(time)s", "%(weekDayName)s, %(monthName)s %(day)s %(fullYear)s": "%(weekDayName)s, %(monthName)s %(day)s %(fullYear)s", "%(weekDayName)s, %(monthName)s %(day)s %(fullYear)s %(time)s": "%(weekDayName)s, %(monthName)s %(day)s %(fullYear)s %(time)s", + "%(date)s at %(time)s": "%(date)s at %(time)s", "Who would you like to add to this community?": "Who would you like to add to this community?", "Warning: any person you add to a community will be publicly visible to anyone who knows the community ID": "Warning: any person you add to a community will be publicly visible to anyone who knows the community ID", "Invite new community members": "Invite new community members", @@ -509,6 +510,7 @@ "%(senderName)s kicked %(targetName)s: %(reason)s": "%(senderName)s kicked %(targetName)s: %(reason)s", "%(senderName)s kicked %(targetName)s": "%(senderName)s kicked %(targetName)s", "%(senderDisplayName)s changed the topic to \"%(topic)s\".": "%(senderDisplayName)s changed the topic to \"%(topic)s\".", + "%(senderDisplayName)s changed the room avatar.": "%(senderDisplayName)s changed the room avatar.", "%(senderDisplayName)s removed the room name.": "%(senderDisplayName)s removed the room name.", "%(senderDisplayName)s changed the room name from %(oldRoomName)s to %(newRoomName)s.": "%(senderDisplayName)s changed the room name from %(oldRoomName)s to %(newRoomName)s.", "%(senderDisplayName)s changed the room name to %(roomName)s.": "%(senderDisplayName)s changed the room name to %(roomName)s.", @@ -525,7 +527,10 @@ "%(senderDisplayName)s set the server ACLs for this room.": "%(senderDisplayName)s set the server ACLs for this room.", "%(senderDisplayName)s changed the server ACLs for this room.": "%(senderDisplayName)s changed the server ACLs for this room.", "🎉 All servers are banned from participating! This room can no longer be used.": "🎉 All servers are banned from participating! This room can no longer be used.", + "Message deleted": "Message deleted", + "Message deleted by %(name)s": "Message deleted by %(name)s", "%(senderDisplayName)s sent an image.": "%(senderDisplayName)s sent an image.", + "%(senderDisplayName)s sent a sticker.": "%(senderDisplayName)s sent a sticker.", "%(senderName)s set the main address for this room to %(address)s.": "%(senderName)s set the main address for this room to %(address)s.", "%(senderName)s removed the main address for this room.": "%(senderName)s removed the main address for this room.", "%(senderName)s added the alternative addresses %(addresses)s for this room.|other": "%(senderName)s added the alternative addresses %(addresses)s for this room.", @@ -723,6 +728,20 @@ "Invite to %(spaceName)s": "Invite to %(spaceName)s", "Share your public space": "Share your public space", "Unknown App": "Unknown App", + "Are you sure you want to exit during this export?": "Are you sure you want to exit during this export?", + "HTML": "HTML", + "JSON": "JSON", + "Plain Text": "Plain Text", + "From the beginning": "From the beginning", + "Specify a number of messages": "Specify a number of messages", + "Current Timeline": "Current Timeline", + "Media omitted": "Media omitted", + "Media omitted - file size limit exceeded": "Media omitted - file size limit exceeded", + "%(creatorName)s created this room.": "%(creatorName)s created this room.", + "This is the start of export of . Exported by at %(exportDate)s.": "This is the start of export of . Exported by at %(exportDate)s.", + "Topic: %(topic)s": "Topic: %(topic)s", + "Error fetching file": "Error fetching file", + "File Attached": "File Attached", "Help us improve %(brand)s": "Help us improve %(brand)s", "Send anonymous usage data which helps us improve %(brand)s. This will use a cookie.": "Send anonymous usage data which helps us improve %(brand)s. This will use a cookie.", "Yes": "Yes", @@ -773,16 +792,6 @@ "The person who invited you already left the room.": "The person who invited you already left the room.", "The person who invited you already left the room, or their server is offline.": "The person who invited you already left the room, or their server is offline.", "Failed to join room": "Failed to join room", - "New in the Spaces beta": "New in the Spaces beta", - "Help people in spaces to find and join private rooms": "Help people in spaces to find and join private rooms", - "Learn more": "Learn more", - "Help space members find private rooms": "Help space members find private rooms", - "To help space members find and join a private room, go to that room's Security & Privacy settings.": "To help space members find and join a private room, go to that room's Security & Privacy settings.", - "General": "General", - "Security & Privacy": "Security & Privacy", - "Roles & Permissions": "Roles & Permissions", - "This makes it easy for rooms to stay private to a space, while letting people in the space find and join them. All new rooms in a space will have this option available.": "This makes it easy for rooms to stay private to a space, while letting people in the space find and join them. All new rooms in a space will have this option available.", - "Skip": "Skip", "You joined the call": "You joined the call", "%(senderName)s joined the call": "%(senderName)s joined the call", "Call in progress": "Call in progress", @@ -938,8 +947,8 @@ "Verify this session by confirming the following number appears on its screen.": "Verify this session by confirming the following number appears on its screen.", "Verify this user by confirming the following number appears on their screen.": "Verify this user by confirming the following number appears on their screen.", "Unable to find a supported verification method.": "Unable to find a supported verification method.", - "Waiting for your other session, %(deviceName)s (%(deviceId)s), to verify…": "Waiting for your other session, %(deviceName)s (%(deviceId)s), to verify…", - "Waiting for your other session to verify…": "Waiting for your other session to verify…", + "Waiting for you to verify on your other session, %(deviceName)s (%(deviceId)s)…": "Waiting for you to verify on your other session, %(deviceName)s (%(deviceId)s)…", + "Waiting for you to verify on your other session…": "Waiting for you to verify on your other session…", "Waiting for %(displayName)s to verify…": "Waiting for %(displayName)s to verify…", "Cancelling…": "Cancelling…", "They match": "They match", @@ -1058,6 +1067,7 @@ "Invite people": "Invite people", "Invite with email or username": "Invite with email or username", "Failed to save space settings.": "Failed to save space settings.", + "General": "General", "Edit settings relating to your space.": "Edit settings relating to your space.", "Saving...": "Saving...", "Save Changes": "Save Changes", @@ -1467,6 +1477,7 @@ "Muted Users": "Muted Users", "Banned users": "Banned users", "Send %(eventType)s events": "Send %(eventType)s events", + "Roles & Permissions": "Roles & Permissions", "Permissions": "Permissions", "Select the roles required to change various parts of the space": "Select the roles required to change various parts of the space", "Select the roles required to change various parts of the room": "Select the roles required to change various parts of the room", @@ -1489,6 +1500,7 @@ "Changes to who can read history will only apply to future messages in this room. The visibility of existing history will be unchanged.": "Changes to who can read history will only apply to future messages in this room. The visibility of existing history will be unchanged.", "People with supported clients will be able to join the room without having a registered account.": "People with supported clients will be able to join the room without having a registered account.", "Who can read history?": "Who can read history?", + "Security & Privacy": "Security & Privacy", "Once enabled, encryption cannot be disabled.": "Once enabled, encryption cannot be disabled.", "Encrypted": "Encrypted", "Access": "Access", @@ -1793,7 +1805,7 @@ "In encrypted rooms, like this one, URL previews are disabled by default to ensure that your homeserver (where the previews are generated) cannot gather information about links you see in this room.": "In encrypted rooms, like this one, URL previews are disabled by default to ensure that your homeserver (where the previews are generated) cannot gather information about links you see in this room.", "When someone puts a URL in their message, a URL preview can be shown to give more information about that link such as the title, description, and an image from the website.": "When someone puts a URL in their message, a URL preview can be shown to give more information about that link such as the title, description, and an image from the website.", "Back": "Back", - "Accept on your other login…": "Accept on your other login…", + "To proceed, please accept the verification request on your other login.": "To proceed, please accept the verification request on your other login.", "Waiting for %(displayName)s to accept…": "Waiting for %(displayName)s to accept…", "Accepting…": "Accepting…", "Start Verification": "Start Verification", @@ -1825,6 +1837,7 @@ "%(count)s people|other": "%(count)s people", "%(count)s people|one": "%(count)s person", "Show files": "Show files", + "Export chat": "Export chat", "Show threads": "Show threads", "Share room": "Share room", "Room settings": "Room settings", @@ -1991,8 +2004,6 @@ "Reactions": "Reactions", "%(reactors)s reacted with %(content)s": "%(reactors)s reacted with %(content)s", "reacted with %(shortName)s": "reacted with %(shortName)s", - "Message deleted": "Message deleted", - "Message deleted by %(name)s": "Message deleted by %(name)s", "Message deleted on %(date)s": "Message deleted on %(date)s", "%(senderDisplayName)s changed the avatar for %(roomName)s": "%(senderDisplayName)s changed the avatar for %(roomName)s", "%(senderDisplayName)s removed the room avatar.": "%(senderDisplayName)s removed the room avatar.", @@ -2142,6 +2153,7 @@ "QR Code": "QR Code", "Unable to load event that was replied to, it either does not exist or you do not have permission to view it.": "Unable to load event that was replied to, it either does not exist or you do not have permission to view it.", "In reply to ": "In reply to ", + "In reply to this message": "In reply to this message", "Room address": "Room address", "e.g. my-room": "e.g. my-room", "Some characters not allowed": "Some characters not allowed", @@ -2220,6 +2232,7 @@ "People you know on %(brand)s": "People you know on %(brand)s", "Hide": "Hide", "Show": "Show", + "Skip": "Skip", "Send %(count)s invites|other": "Send %(count)s invites", "Send %(count)s invites|one": "Send %(count)s invite", "Invite people to join %(communityName)s": "Invite people to join %(communityName)s", @@ -2276,6 +2289,8 @@ " has been made and everyone who was a part of the community has been invited to it.": " has been made and everyone who was a part of the community has been invited to it.", "To create a Space from another community, just pick the community in Preferences.": "To create a Space from another community, just pick the community in Preferences.", "Failed to migrate community": "Failed to migrate community", + "Fetching data...": "Fetching data...", + "Creating Space...": "Creating Space...", "Create Space from community": "Create Space from community", "A link to the Space will be put in your community description.": "A link to the Space will be put in your community description.", "All rooms will be added and all community members will be invited.": "All rooms will be added and all community members will be invited.", @@ -2347,6 +2362,23 @@ "There was an error updating your community. The server is unable to process your request.": "There was an error updating your community. The server is unable to process your request.", "Update community": "Update community", "An error has occurred.": "An error has occurred.", + "Enter a number between %(min)s and %(max)s": "Enter a number between %(min)s and %(max)s", + "Size can only be a number between %(min)s MB and %(max)s MB": "Size can only be a number between %(min)s MB and %(max)s MB", + "Number of messages can only be a number between %(min)s and %(max)s": "Number of messages can only be a number between %(min)s and %(max)s", + "Number of messages": "Number of messages", + "MB": "MB", + "Export Successful": "Export Successful", + "The export was cancelled successfully": "The export was cancelled successfully", + "Your export was successful. Find it in your Downloads folder.": "Your export was successful. Find it in your Downloads folder.", + "Are you sure you want to stop exporting your data? If you do, you'll need to start over.": "Are you sure you want to stop exporting your data? If you do, you'll need to start over.", + "Stop": "Stop", + "Exporting your data": "Exporting your data", + "Export Chat": "Export Chat", + "Select from the options below to export chats from your timeline": "Select from the options below to export chats from your timeline", + "Format": "Format", + "Size Limit": "Size Limit", + "Include Attachments": "Include Attachments", + "Export": "Export", "Feedback sent": "Feedback sent", "Rate %(brand)s": "Rate %(brand)s", "Tell us below how you feel about %(brand)s so far.": "Tell us below how you feel about %(brand)s so far.", @@ -2540,6 +2572,7 @@ "We call the places where you can host your account ‘homeservers’.": "We call the places where you can host your account ‘homeservers’.", "Other homeserver": "Other homeserver", "Use your preferred Matrix homeserver if you have one, or host your own.": "Use your preferred Matrix homeserver if you have one, or host your own.", + "Learn more": "Learn more", "About homeservers": "About homeservers", "Reset event store?": "Reset event store?", "You most likely do not want to reset your event index store": "You most likely do not want to reset your event index store", @@ -2959,8 +2992,11 @@ "Could not load user profile": "Could not load user profile", "Decrypted event source": "Decrypted event source", "Original event source": "Original event source", + "Unable to verify this login": "Unable to verify this login", "Verify this login": "Verify this login", "Session verified": "Session verified", + "Really reset verification keys?": "Really reset verification keys?", + "Skip verification for now": "Skip verification for now", "Failed to send email": "Failed to send email", "The email address linked to your account must be entered.": "The email address linked to your account must be entered.", "A new password must be entered.": "A new password must be entered.", @@ -3014,13 +3050,18 @@ "Create account": "Create account", "Host account on": "Host account on", "Decide where your account is hosted": "Decide where your account is hosted", - "Use Security Key or Phrase": "Use Security Key or Phrase", - "Use Security Key": "Use Security Key", - "Use another login": "Use another login", + "It looks like you don't have a Security Key or any other devices you can verify against. This device will not be able to access old encrypted messages. In order to verify your identity on this device, you'll need to reset your verification keys.": "It looks like you don't have a Security Key or any other devices you can verify against. This device will not be able to access old encrypted messages. In order to verify your identity on this device, you'll need to reset your verification keys.", + "Proceed with reset": "Proceed with reset", + "Verify with Security Key or Phrase": "Verify with Security Key or Phrase", + "Verify with Security Key": "Verify with Security Key", + "Verify with another login": "Verify with another login", "Verify your identity to access encrypted messages and prove your identity to others.": "Verify your identity to access encrypted messages and prove your identity to others.", "Your new session is now verified. It has access to your encrypted messages, and other users will see it as trusted.": "Your new session is now verified. It has access to your encrypted messages, and other users will see it as trusted.", "Your new session is now verified. Other users will see it as trusted.": "Your new session is now verified. Other users will see it as trusted.", "Without verifying, you won’t have access to all your messages and may appear as untrusted to others.": "Without verifying, you won’t have access to all your messages and may appear as untrusted to others.", + "I'll verify later": "I'll verify later", + "Resetting your verification keys cannot be undone. After resetting, you won't have access to old encrypted messages, and any friends who have previously verified you will see security warnings until you re-verify with them.": "Resetting your verification keys cannot be undone. After resetting, you won't have access to old encrypted messages, and any friends who have previously verified you will see security warnings until you re-verify with them.", + "Please only proceed if you're sure you've lost all of your other devices and your security key.": "Please only proceed if you're sure you've lost all of your other devices and your security key.", "Failed to re-authenticate due to a homeserver problem": "Failed to re-authenticate due to a homeserver problem", "Incorrect password": "Incorrect password", "Failed to re-authenticate": "Failed to re-authenticate", @@ -3100,7 +3141,6 @@ "The exported file will allow anyone who can read it to decrypt any encrypted messages that you can see, so you should be careful to keep it secure. To help with this, you should enter a passphrase below, which will be used to encrypt the exported data. It will only be possible to import the data by using the same passphrase.": "The exported file will allow anyone who can read it to decrypt any encrypted messages that you can see, so you should be careful to keep it secure. To help with this, you should enter a passphrase below, which will be used to encrypt the exported data. It will only be possible to import the data by using the same passphrase.", "Enter passphrase": "Enter passphrase", "Confirm passphrase": "Confirm passphrase", - "Export": "Export", "Import room keys": "Import room keys", "This process allows you to import encryption keys that you had previously exported from another Matrix client. You will then be able to decrypt any messages that the other client could decrypt.": "This process allows you to import encryption keys that you had previously exported from another Matrix client. You will then be able to decrypt any messages that the other client could decrypt.", "The export file will be protected with a passphrase. You should enter the passphrase here, to decrypt the file.": "The export file will be protected with a passphrase. You should enter the passphrase here, to decrypt the file.", diff --git a/src/i18n/strings/eo.json b/src/i18n/strings/eo.json index 86ffb94251..a109b102e6 100644 --- a/src/i18n/strings/eo.json +++ b/src/i18n/strings/eo.json @@ -3099,5 +3099,62 @@ "What kind of Space do you want to create?": "Kian aron volas vi krei?", "All rooms you're in will appear in Home.": "Ĉiuj ĉambroj, kie vi estas, aperos en la ĉefpaĝo.", "Show all rooms in Home": "Montri ĉiujn ĉambrojn en ĉefpaĝo", - "%(senderName)s pinned a message to this room. See all pinned messages.": "%(senderName)s fiksis mesaĝon al ĉi tiu ĉambro. Vidu ĉiujn fiksitajn mesaĝojn." + "%(senderName)s pinned a message to this room. See all pinned messages.": "%(senderName)s fiksis mesaĝon al ĉi tiu ĉambro. Vidu ĉiujn fiksitajn mesaĝojn.", + "To avoid these issues, create a new encrypted room for the conversation you plan to have.": "Por eviti tiujn problemojn, kreu novan ĉifritan ĉambron por la planata interparolo.", + "It's not recommended to add encryption to public rooms.Anyone can find and join public rooms, so anyone can read messages in them. You'll get none of the benefits of encryption, and you won't be able to turn it off later. Encrypting messages in a public room will make receiving and sending messages slower.": "Ne rekomendate estas aldoni ĉifradon al publikaj ĉambroj. Ĉiu ajn povas trovi publikajn ĉambrojn kaj aliĝi, do ĉiu ajn povas legi ties mesaĝojn. Vi havos neniujn avantaĝojn de ĉifrado, kaj vi ne povos ĝin malŝalti pli poste. Ĉifrado en publikaj ĉambroj malrapidigos ricevadon kaj sendadon de mesaĝoj.", + "Are you sure you want to add encryption to this public room?": "Ĉu vi certas, ke vi volas aldoni ĉifradon al ĉi tiu publika ĉambro?", + "Select the roles required to change various parts of the space": "Elekti rolojn bezonatajn por ŝanĝado de diversaj partoj de la aro", + "Change description": "Ŝanĝi priskribon", + "Change main address for the space": "Ŝanĝi ĉefadreson de aro", + "Change space name": "Ŝanĝi nomon de aro", + "Change space avatar": "Ŝanĝi bildon de aro", + "Upgrade anyway": "Tamen gradaltigi", + "This room is in some spaces you’re not an admin of. In those spaces, the old room will still be shown, but people will be prompted to join the new one.": "Ĉi tiu ĉambro estas en iuj aroj, kiujn vi ne administras. En tiuj aroj, la malnova ĉambro aperos, sed tie oni ricevos avizon aliĝi al la nova.", + "Before you upgrade": "Antaŭ ol vi gradaltigos", + "Anyone in can find and join. You can select other spaces too.": "Ĉiu en povas trovi kaj aliĝi. Vi povas elekti ankaŭ aliajn arojn.", + "Currently, %(count)s spaces have access|one": "Nun, aro povas aliri", + "& %(count)s more|one": "kaj %(count)s pli", + "To join a space you'll need an invite.": "Por aliĝi al aro, vi bezonas inviton.", + "You can also make Spaces from communities.": "Vi ankaŭ povas krei Arojn el komunumoj.", + "Temporarily show communities instead of Spaces for this session. Support for this will be removed in the near future. This will reload Element.": "Provizore montri komunumojn anstataŭ arojn por tiu ĉi salutaĵo. Subteno de tio ĉi baldaŭ malaperos. Ĉi tio re-enlegos Elementon.", + "Display Communities instead of Spaces": "Montri komunumojn anstataŭ arojn", + "Autoplay videos": "Memage ludi filmojn", + "Autoplay GIFs": "Memage ludi GIF-ojn", + "Multiple integration managers (requires manual setup)": "Pluraj kunigiloj (bezonas permanan agordon)", + "Threaded messaging": "Mesaĝaj fadenoj", + "%(senderName)s unpinned a message from this room. See all pinned messages.": "%(senderName)s malfiksis mesaĝon de ĉi tiu ĉambro. Vidu ĉiujn fiksitajn mesaĝojn.", + "%(senderName)s unpinned a message from this room. See all pinned messages.": "%(senderName)s malfiksis mesaĝon de ĉi tiu ĉambro. Vidu ĉiujn fiksitajn mesaĝojn.", + "%(senderName)s pinned a message to this room. See all pinned messages.": "%(senderName)s fiksis mesaĝon al ĉi tiu ĉambro. Vidu ĉiujn fiksitajn mesaĝojn.", + "To join this Space, hide communities in your preferences": "Por aliĝi al ĉi tiu aro, kaŝu komunumojn per viaj agordoj", + "To view this Space, hide communities in your preferences": "Por vidi ĉi tiun aron, kaŝu komunumojn per viaj agordoj", + "Rooms and spaces": "Ĉambroj kaj aroj", + "Results": "Rezultoj", + "To join %(communityName)s, swap to communities in your preferences": "Por aliĝi al %(communityName)s, ŝaltu komunumojn en viaj agordoj", + "To view %(communityName)s, swap to communities in your preferences": "Por vidi komunumon %(communityName)s, ŝaltu komunumojn en viaj agordoj", + "Private community": "Privata komunumo", + "Public community": "Publika komunumo", + "Forward": "Plusendi", + "Would you like to leave the rooms in this space?": "Ĉu vi volus foriri de la ĉambroj en ĉi tiu aro?", + "You are about to leave .": "Vi foriros de .", + "Leave some rooms": "Foriri de iuj ĉambroj", + "Leave all rooms": "Foriri de ĉiuj ĉambroj", + "Don't leave any rooms": "Foriru de neniuj ĉambroj", + "%(reactors)s reacted with %(content)s": "%(reactors)s reagis per %(content)s", + "Thread": "Fadeno", + "Some encryption parameters have been changed.": "Ŝanĝiĝis iuj parametroj de ĉifrado.", + "Role in ": "Rolo en ", + "Message": "Mesaĝo", + "Show threads": "Montri fadenojn", + "Joining space …": "Aliĝante al aro…", + "Explore %(spaceName)s": "Esplori aron %(spaceName)s", + "Message didn't send. Click for info.": "Mesaĝo ne sendiĝis. Klaku por akiri informojn.", + "Send a sticker": "Sendi glumarkon", + "Reply to thread…": "Respondi al fadeno…", + "Reply to encrypted thread…": "Respondi al ĉifrita fadeno…", + "Add emoji": "Aldoni bildosignon", + "To avoid these issues, create a new public room for the conversation you plan to have.": "Por eviti ĉi tiujn problemojn, kreu novan publikan ĉambron por la dezirata interparolo.", + "It's not recommended to make encrypted rooms public. It will mean anyone can find and join the room, so anyone can read messages. You'll get none of the benefits of encryption. Encrypting messages in a public room will make receiving and sending messages slower.": "Publikigo de ĉifrataj ĉambroj estas malrekomendata. Ĝi implicas, ke ĉiu povos trovi la ĉambron kaj aliĝi al ĝi, kaj ĉiu do povos legi mesaĝojn. Vi havos neniujn avantaĝojn de ĉifrado. Ĉifrado de mesaĝoj en publika ĉambro malrapidigos iliajn ricevadon kaj sendadon.", + "Are you sure you want to make this encrypted room public?": "Ĉu vi certas, ke vi volas publikigi ĉi tiun ĉifratan ĉambron?", + "Unknown failure": "Nekonata malsukceso", + "Failed to update the join rules": "Malsukcesis ĝisdatigi regulojn pri aliĝo" } diff --git a/src/i18n/strings/es.json b/src/i18n/strings/es.json index d5568f003c..a508a9e40f 100644 --- a/src/i18n/strings/es.json +++ b/src/i18n/strings/es.json @@ -2,7 +2,7 @@ "Account": "Cuenta", "Admin": "Admin", "Advanced": "Avanzado", - "Always show message timestamps": "Siempre mostrar las marcas temporales de mensajes", + "Always show message timestamps": "Mostrar siempre la fecha y hora de envío junto a los mensajes", "Authentication": "Autenticación", "%(items)s and %(lastItem)s": "%(items)s y %(lastItem)s", "and %(count)s others...|other": "y otros %(count)s…", @@ -16,7 +16,7 @@ "Banned users": "Usuarios vetados", "Bans user with given id": "Veta al usuario con la ID dada", "Can't connect to homeserver via HTTP when an HTTPS URL is in your browser bar. Either use HTTPS or enable unsafe scripts.": "No se ha podido conectar al servidor base a través de HTTP, cuando es necesario un enlace HTTPS en la barra de direcciones de tu navegador. Ya sea usando HTTPS o activando los scripts inseguros.", - "Change Password": "Cambiar contraseña", + "Change Password": "Cambiar la contraseña", "%(senderName)s changed the power level of %(powerLevelDiffText)s.": "%(senderName)s ha cambiado el nivel de acceso de %(powerLevelDiffText)s.", "%(senderDisplayName)s changed the room name to %(roomName)s.": "%(senderDisplayName)s cambió el nombre de la sala a %(roomName)s.", "%(senderDisplayName)s changed the topic to \"%(topic)s\".": "%(senderDisplayName)s cambió el tema a \"%(topic)s\".", @@ -43,7 +43,7 @@ "Export E2E room keys": "Exportar claves de salas con cifrado de extremo a extremo", "Failed to ban user": "Bloqueo del usuario falló", "Failed to change password. Is your password correct?": "No se ha podido cambiar la contraseña. ¿Has escrito tu contraseña actual correctamente?", - "Failed to change power level": "Falló al cambiar de nivel de acceso", + "Failed to change power level": "Fallo al cambiar de nivel de acceso", "Failed to forget room %(errCode)s": "No se pudo olvidar la sala %(errCode)s", "Failed to join room": "No se ha podido entrar a la sala", "Failed to kick": "No se ha podido echar", @@ -84,8 +84,8 @@ "Accept": "Aceptar", "Add": "Añadir", "Admin Tools": "Herramientas de administración", - "No Microphones detected": "No se ha detectado un micrófono", - "No Webcams detected": "No se ha detectado una cámara", + "No Microphones detected": "Micrófono no detectado", + "No Webcams detected": "Cámara no detectada", "Default Device": "Dispositivo por defecto", "Microphone": "Micrófono", "Camera": "Cámara", @@ -95,7 +95,7 @@ "Decline": "Rechazar", "Enter passphrase": "Introducir frase de contraseña", "Export": "Exportar", - "Failed to upload profile picture!": "¡No se pudo subir la imagen de perfil!", + "Failed to upload profile picture!": "¡No se ha podido enviar la imagen de perfil!", "Home": "Inicio", "Import": "Importar", "Incorrect username and/or password.": "Nombre de usuario y/o contraseña incorrectos.", @@ -121,7 +121,7 @@ "File to import": "Fichero a importar", "You must join the room to see its files": "Debes unirte a la sala para ver sus archivos", "Reject all %(invitedRooms)s invites": "Rechazar todas las invitaciones a %(invitedRooms)s", - "Failed to invite": "No se pudo invitar", + "Failed to invite": "No se ha podido invitar", "Unknown error": "Error desconocido", "Incorrect password": "Contraseña incorrecta", "Unable to restore session": "No se puede recuperar la sesión", @@ -187,7 +187,7 @@ "%(brand)s was not given permission to send notifications - please try again": "No le has dado permiso a %(brand)s para enviar notificaciones. Por favor, inténtalo de nuevo", "%(brand)s version:": "Versión de %(brand)s:", "Room %(roomId)s not visible": "La sala %(roomId)s no es visible", - "Show timestamps in 12 hour format (e.g. 2:30pm)": "Mostrar marcas temporales en formato de 12 horas (ej. 2:30pm)", + "Show timestamps in 12 hour format (e.g. 2:30pm)": "Mostrar las horas con el modelo de 12 horas (ej.: 2:30pm)", "This email address is already in use": "Esta dirección de correo electrónico ya está en uso", "This email address was not found": "No se ha encontrado la dirección de correo electrónico", "The email address linked to your account must be entered.": "Debes ingresar la dirección de correo electrónico vinculada a tu cuenta.", @@ -196,7 +196,7 @@ "This doesn't appear to be a valid email address": "Esto no parece un e-mail váido", "This phone number is already in use": "Este número de teléfono ya está en uso", "This room": "Esta sala", - "This room is not accessible by remote Matrix servers": "Esta sala no es accesible por otros servidores Matrix", + "This room is not accessible by remote Matrix servers": "Esta sala no es accesible desde otros servidores de Matrix", "Cancel": "Cancelar", "Dismiss": "Omitir", "powered by Matrix": "con el poder de Matrix", @@ -221,10 +221,10 @@ "Uploading %(filename)s and %(count)s others|zero": "Subiendo %(filename)s", "Uploading %(filename)s and %(count)s others|one": "Subiendo %(filename)s y otros %(count)s", "Uploading %(filename)s and %(count)s others|other": "Subiendo %(filename)s y otros %(count)s", - "Upload avatar": "Subir avatar", + "Upload avatar": "Adjuntar avatar", "Upload Failed": "Subida fallida", - "Upload file": "Subir archivo", - "Upload new:": "Subir nuevo:", + "Upload file": "Enviar un archivo", + "Upload new:": "Enviar uno nuevo:", "Usage": "Uso", "Users": "Usuarios", "Verification Pending": "Verificación Pendiente", @@ -237,7 +237,7 @@ "You are not in this room.": "No estás en esta sala.", "You do not have permission to do that in this room.": "No tienes permiso para realizar esa acción en esta sala.", "You cannot place a call with yourself.": "No puedes llamarte a ti mismo.", - "Publish this room to the public in %(domain)s's room directory?": "¿Quieres que la sala aparezca en el directorio de salas de %(domain)s?", + "Publish this room to the public in %(domain)s's room directory?": "¿Quieres incluir esta sala en la lista pública de salas de %(domain)s?", "AM": "AM", "PM": "PM", "Unmute": "Dejar de silenciar", @@ -247,7 +247,7 @@ "You have disabled URL previews by default.": "Has desactivado la vista previa de URLs por defecto.", "You have enabled URL previews by default.": "Has activado las vista previa de URLs por defecto.", "You must register to use this functionality": "Regístrate para usar esta funcionalidad", - "You need to be able to invite users to do that.": "Debes ser capaz de invitar usuarios para realizar esa acción.", + "You need to be able to invite users to do that.": "Debes tener permisos para invitar usuarios para hacer eso.", "You need to be logged in.": "Necesitas haber iniciado sesión.", "Your email address does not appear to be associated with a Matrix ID on this Homeserver.": "Tu dirección de correo electrónico no parece estar asociada a una ID de Matrix en este servidor base.", "You seem to be in a call, are you sure you want to quit?": "Parece estar en medio de una llamada, ¿esta seguro que desea salir?", @@ -260,20 +260,20 @@ "Thu": "jue.", "Fri": "vie.", "Sat": "sáb.", - "Jan": "Ene", - "Feb": "Feb", - "Mar": "Mar", - "Apr": "Abr", - "May": "May", - "Jun": "Jun", - "Jul": "Jul", - "Aug": "Ago", + "Jan": "en.", + "Feb": "febr.", + "Mar": "mzo.", + "Apr": "abr.", + "May": "my.", + "Jun": "jun.", + "Jul": "jul.", + "Aug": "ag.", "Add rooms to this community": "Añadir salas a esta comunidad", "Call Failed": "Llamada fallida", - "Sep": "Sep", - "Oct": "Oct", - "Nov": "Nov", - "Dec": "Dic", + "Sep": "sept.", + "Oct": "oct.", + "Nov": "nov.", + "Dec": "dic.", "Warning": "Advertencia", "Online": "En línea", "Submit debug logs": "Enviar registros de depuración", @@ -354,7 +354,7 @@ "You cannot delete this message. (%(code)s)": "No puedes eliminar este mensaje. (%(code)s)", "Thursday": "Jueves", "Logs sent": "Registros enviados", - "Back": "Atrás", + "Back": "Volver", "Reply": "Responder", "Show message in desktop notification": "Mostrar mensaje en las notificaciones de escritorio", "Unable to join network": "No se puede unir a la red", @@ -384,7 +384,7 @@ "You do not have permission to start a conference call in this room": "No tienes permiso para iniciar una llamada de conferencia en esta sala", "%(weekDayName)s %(time)s": "%(weekDayName)s a las %(time)s", "%(weekDayName)s, %(monthName)s %(day)s %(time)s": "%(weekDayName)s %(day)s de %(monthName)s a las %(time)s", - "%(weekDayName)s, %(monthName)s %(day)s %(fullYear)s": "%(weekDayName)s %(day)s de %(monthName)s del %(fullYear)s", + "%(weekDayName)s, %(monthName)s %(day)s %(fullYear)s": "%(weekDayName)s %(day)s de %(monthName)s de %(fullYear)s", "%(weekDayName)s, %(monthName)s %(day)s %(fullYear)s %(time)s": "%(weekDayName)s %(day)s de %(monthName)s del %(fullYear)s a las %(time)s", "Show these rooms to non-members on the community page and room list?": "¿Mostrar estas salas a los que no son miembros en la página de la comunidad y la lista de salas?", "Add rooms to the community": "Añadir salas a la comunidad", @@ -409,17 +409,17 @@ "Your browser does not support the required cryptography extensions": "Su navegador no soporta las extensiones de criptografía requeridas", "Not a valid %(brand)s keyfile": "No es un archivo de claves de %(brand)s válido", "Message Pinning": "Mensajes anclados", - "Automatically replace plain text Emoji": "Reemplazar automáticamente texto por Emojis", - "Mirror local video feed": "Invertir horizontalmente el vídeo local (espejo)", - "Send analytics data": "Enviar datos de análisis de estadísticas", - "Enable inline URL previews by default": "Activar vistas previas de URLs en línea por defecto", - "Enable URL previews for this room (only affects you)": "Activar vista previa de URLs en esta sala (solo para ti)", - "Enable URL previews by default for participants in this room": "Activar vista previa de URLs por defecto para los participantes en esta sala", + "Automatically replace plain text Emoji": "Sustituir automáticamente caritas de texto por sus emojis equivalentes", + "Mirror local video feed": "Invertir el vídeo local horizontalmente (espejo)", + "Send analytics data": "Enviar datos estadísticos de uso", + "Enable inline URL previews by default": "Activar la vista previa de URLs en línea por defecto", + "Enable URL previews for this room (only affects you)": "Activar la vista previa de URLs en esta sala (solo para ti)", + "Enable URL previews by default for participants in this room": "Activar la vista previa de URLs por defecto para los participantes de esta sala", "Enable widget screenshots on supported widgets": "Activar capturas de pantalla de widget en los widgets soportados", - "Drop file here to upload": "Soltar aquí el fichero a subir", - "This event could not be displayed": "No se pudo mostrar este evento", + "Drop file here to upload": "Suelta aquí el archivo para enviarlo", + "This event could not be displayed": "No se ha podido mostrar este evento", "Key request sent.": "Solicitud de clave enviada.", - "Disinvite this user?": "¿Dejar de invitar a este usuario?", + "Disinvite this user?": "¿Borrar la invitación a este usuario?", "Kick this user?": "¿Echar a este usuario?", "Unban this user?": "¿Quitarle el veto a este usuario?", "Ban this user?": "¿Vetar a este usuario?", @@ -450,7 +450,7 @@ "Replying": "Respondiendo", "(~%(count)s results)|other": "(~%(count)s resultados)", "(~%(count)s results)|one": "(~%(count)s resultado)", - "Share room": "Compartir sala", + "Share room": "Compartir la sala", "Banned by %(displayName)s": "Vetado por %(displayName)s", "Muted Users": "Usuarios silenciados", "Members only (since the point in time of selecting this option)": "Solo participantes (desde el momento en que se selecciona esta opción)", @@ -558,7 +558,7 @@ "%(oneUser)schanged their avatar %(count)s times|one": "%(oneUser)s cambió su avatar", "%(items)s and %(count)s others|other": "%(items)s y otros %(count)s", "%(items)s and %(count)s others|one": "%(items)s y otro más", - "collapse": "colapsar", + "collapse": "encoger", "expand": "expandir", "Unable to load event that was replied to, it either does not exist or you do not have permission to view it.": "No se pudo cargar el evento al que se respondió, bien porque no existe o no tiene permiso para verlo.", "In reply to ": "Respondiendo a ", @@ -571,7 +571,7 @@ "Confirm Removal": "Confirmar eliminación", "Are you sure you wish to remove (delete) this event? Note that if you delete a room name or topic change, it could undo the change.": "¿Seguro que quieres eliminar este evento? Ten en cuenta que, si borras un cambio de nombre o asunto de sala, podrías deshacer el cambio.", "Community IDs cannot be empty.": "Las IDs de comunidad no pueden estar vacías.", - "Community IDs may only contain characters a-z, 0-9, or '=_-./'": "Las IDs de comunidad solo pueden contener caracteres de la «a» a la «z» excluyendo la «ñ», dígitos o «=_-./»", + "Community IDs may only contain characters a-z, 0-9, or '=_-./'": "Las IDs de comunidad solo pueden contener caracteres sin acento de la «a» a la «z» (quitando la «ñ»), dígitos o los caracteres «=_-./»", "Something went wrong whilst creating your community": "Algo fue mal mientras se creaba la comunidad", "Create Community": "Crear Comunidad", "Community Name": "Nombre de Comunidad", @@ -590,15 +590,15 @@ "We encountered an error trying to restore your previous session.": "Encontramos un error al intentar restaurar su sesión anterior.", "If you have previously used a more recent version of %(brand)s, your session may be incompatible with this version. Close this window and return to the more recent version.": "Si ha usado anteriormente una versión más reciente de %(brand)s, su sesión puede ser incompatible con ésta. Cierre la ventana y vuelva a la versión más reciente.", "Clearing your browser's storage may fix the problem, but will sign you out and cause any encrypted chat history to become unreadable.": "Limpiando el almacenamiento del navegador puede arreglar el problema, pero le desconectará y cualquier historial de conversación cifrado se volverá ilegible.", - "Share Room": "Compartir sala", - "Link to most recent message": "Enlazar a mensaje más reciente", + "Share Room": "Compartir la sala", + "Link to most recent message": "Enlazar al mensaje más reciente", "Share User": "Compartir usuario", "Share Community": "Compartir Comunidad", - "Share Room Message": "Compartir el mensaje de la sala", - "Link to selected message": "Enlazar a mensaje seleccionado", + "Share Room Message": "Compartir un mensaje de esta sala", + "Link to selected message": "Enlazar al mensaje seleccionado", "Unable to reject invite": "No se pudo rechazar la invitación", "Add rooms to the community summary": "Añadir salas al resumen de la comunidad", - "Which rooms would you like to add to this summary?": "¿Cuáles salas quieres añadir a este resumen?", + "Which rooms would you like to add to this summary?": "¿Qué salas quieres añadir al resumen?", "Add to summary": "Añadir al resumen", "Failed to add the following rooms to the summary of %(groupId)s:": "Falló la agregación de las salas siguientes al resumen de %(groupId)s:", "Add a Room": "Añadir una sala", @@ -652,11 +652,11 @@ "Sent messages will be stored until your connection has returned.": "Los mensajes enviados se almacenarán hasta que vuelva la conexión.", "Room": "Sala", "Clear filter": "Borrar filtro", - "%(brand)s collects anonymous analytics to allow us to improve the application.": "%(brand)s recopila análisis de estadísticas anónimas para permitirnos mejorar la aplicación.", - "Privacy is important to us, so we don't collect any personal or identifiable data for our analytics.": "La privacidad es importante para nosotros, por lo que no se recopila información personal o identificable en los análisis de estadísticas.", + "%(brand)s collects anonymous analytics to allow us to improve the application.": "%(brand)s recoge información sobre cómo usas la aplicación para ayudarnos a mejorarla.", + "Privacy is important to us, so we don't collect any personal or identifiable data for our analytics.": "La privacidad nos importa, por lo que incluimos tus datos personales o que te puedan identificar para en las estadísticas.", "Learn more about how we use analytics.": "Más información sobre el uso de los análisis de estadísticas.", - "Check for update": "Comprobar actualizaciones", - "Start automatically after system login": "Ejecutar automáticamente después de iniciar sesión en el sistema", + "Check for update": "Comprobar si hay actualizaciones", + "Start automatically after system login": "Abrir automáticamente después de iniciar sesión en el sistema", "No Audio Outputs detected": "No se han detectado salidas de sonido", "Audio Output": "Salida de sonido", "An email has been sent to %(emailAddress)s. Once you've followed the link it contains, click below.": "Se envió un correo electrónico a %(emailAddress)s. Una vez hayas seguido el enlace que contiene, haz clic a continuación.", @@ -759,15 +759,15 @@ "Custom user status messages": "Mensajes de estado de usuario personalizados", "Group & filter rooms by custom tags (refresh to apply changes)": "Agrupa y filtra salas por etiquetas personalizadas (refresca para aplicar cambios)", "Render simple counters in room header": "Muestra contadores simples en la cabecera de la sala", - "Enable Emoji suggestions while typing": "Activar sugerencias de emojis al escribir", - "Show a placeholder for removed messages": "Mostrar una marca para los mensaje borrados", + "Enable Emoji suggestions while typing": "Sugerir emojis mientras escribes", + "Show a placeholder for removed messages": "Dejar un indicador cuando se borre un mensaje", "Show join/leave messages (invites/kicks/bans unaffected)": "Mostrar mensajes de entrada/salida (no afecta a invitaciones/expulsiones/baneos)", "Show avatar changes": "Mostrar cambios de avatar", "Show display name changes": "Muestra cambios en los nombres", "Show avatars in user and room mentions": "Mostrar avatares en menciones a usuarios y salas", "Enable big emoji in chat": "Activar emojis grandes en el chat", "Send typing notifications": "Enviar notificaciones de tecleo", - "Prompt before sending invites to potentially invalid matrix IDs": "Pedir confirmación antes de enviar invitaciones a IDs de matrix que parezcan inválidas", + "Prompt before sending invites to potentially invalid matrix IDs": "Preguntarme antes de enviar invitaciones a IDs de matrix que no parezcan válidas", "Show developer tools": "Mostrar herramientas de desarrollo", "Messages containing my username": "Mensajes que contengan mi nombre", "Messages containing @room": "Mensajes que contengan @room", @@ -845,12 +845,12 @@ "No": "No", "We've sent you an email to verify your address. Please follow the instructions there and then click the button below.": "Te hemos enviado un mensaje para verificar tu dirección de correo. Por favor, sigue las instrucciones y después haz clic el botón de abajo.", "Email Address": "Dirección de correo", - "Delete Backup": "Borrar copia", + "Delete Backup": "Borrar copia de seguridad", "Are you sure? You will lose your encrypted messages if your keys are not backed up properly.": "¿Estás seguro? Perderás tus mensajes cifrados si las claves no se copian adecuadamente.", "Encrypted messages are secured with end-to-end encryption. Only you and the recipient(s) have the keys to read these messages.": "Los mensajes cifrados son seguros con el cifrado punto a punto. Solo tú y el/los destinatario/s tiene/n las claves para leer estos mensajes.", "Unable to load key backup status": "No se pudo cargar el estado de la copia de la clave", - "Restore from Backup": "Restaurar desde copia", - "Back up your keys before signing out to avoid losing them.": "Haz copia de tus claves antes de salir para evitar perderlas.", + "Restore from Backup": "Restaurar una copia de seguridad", + "Back up your keys before signing out to avoid losing them.": "Haz copia de seguridad de tus claves antes de cerrar sesión para evitar perderlas.", "Backing up %(sessionsRemaining)s keys...": "Haciendo copia de %(sessionsRemaining)s claves…", "All keys backed up": "Se han copiado todas las claves", "Start using Key Backup": "Comenzar a usar la copia de claves", @@ -858,12 +858,12 @@ "Verification code": "Código de verificación", "Phone Number": "Número de teléfono", "Profile picture": "Foto de perfil", - "Display Name": "Nombre a mostrar", + "Display Name": "Nombre público", "Internal room ID:": "ID de sala Interna:", "Open Devtools": "Abrir devtools", "General": "General", - "Room Addresses": "Direcciones de sala", - "Set a new account password...": "Cambiar la contraseña de tu cuenta…", + "Room Addresses": "Direcciones de la sala", + "Set a new account password...": "Cambia la contraseña de tu cuenta…", "Account management": "Gestión de la cuenta", "Deactivating your account is a permanent action - be careful!": "Desactivar tu cuenta es permanente. ¡Cuidado!", "Credits": "Créditos", @@ -881,7 +881,7 @@ "Changes to who can read history will only apply to future messages in this room. The visibility of existing history will be unchanged.": "Los cambios que se hagan sobre quién puede leer el historial se aplicarán solo a nuevos mensajes. La visibilidad del historial actual no cambiará.", "Security & Privacy": "Seguridad y privacidad", "Encryption": "Cifrado", - "Once enabled, encryption cannot be disabled.": "Una vez activado, el cifrado no se puede desactivar.", + "Once enabled, encryption cannot be disabled.": "Una vez actives el cifrado ya no podrás desactivarlo.", "Encrypted": "Cifrado", "Ignored users": "Usuarios ignorados", "Bulk options": "Opciones generales", @@ -896,13 +896,13 @@ "That doesn't look like a valid email address": "No parece ser una dirección de correo válida", "The following users may not exist": "Puede que estos usuarios no existan", "Unable to find profiles for the Matrix IDs listed below - would you like to invite them anyway?": "No se pudieron encontrar perfiles para los IDs Matrix listados a continuación, ¿Quieres invitarles igualmente?", - "Invite anyway and never warn me again": "Invitar igualmente y no preguntarme más", + "Invite anyway and never warn me again": "Invitar igualmente, y no preguntar más en el futuro", "Invite anyway": "Invitar igualmente", "Before submitting logs, you must create a GitHub issue to describe your problem.": "Antes de enviar logs, debes crear un GitHub issue para describir el problema.", "Unable to load commit detail: %(msg)s": "No se pudo cargar el detalle del commit: %(msg)s", "To avoid losing your chat history, you must export your room keys before logging out. You will need to go back to the newer version of %(brand)s to do this": "Para evitar perder tu historial de chat, debes exportar las claves de la sala antes de salir. Debes volver a la versión actual de %(brand)s para esto", "Incompatible Database": "Base de datos incompatible", - "Continue With Encryption Disabled": "Seguir con cifrado desactivado", + "Continue With Encryption Disabled": "Seguir con el cifrado desactivado", "Verify this user to mark them as trusted. Trusting users gives you extra peace of mind when using end-to-end encrypted messages.": "Verifica a este usuario para marcarlo como de confianza. Confiar en usuarios aporta tranquilidad en los mensajes cifrados de extremo a extremo.", "Waiting for partner to confirm...": "Esperando que confirme la otra parte…", "Incoming Verification Request": "Petición de verificación entrante", @@ -915,7 +915,7 @@ "Whether or not you're logged in (we don't record your username)": "Si has iniciado sesión o no (no guardamos tu nombre de usuario)", "Whether or not you're using the 'breadcrumbs' feature (avatars above the room list)": "Si estás usando o no las «migas de pan» (iconos sobre la lista de salas)", "Replying With Files": "Respondiendo con archivos", - "At this time it is not possible to reply with a file. Would you like to upload this file without replying?": "En este momento no es posible responder con un archivo. ¿Te gustaría subir el archivo sin responder?", + "At this time it is not possible to reply with a file. Would you like to upload this file without replying?": "Todavía no es posible responder incluyendo un archivo. ¿Quieres enviar el archivo sin responder directamente?", "The file '%(fileName)s' failed to upload.": "La subida del archivo «%(fileName)s ha fallado.", "The server does not support the room version specified.": "El servidor no soporta la versión de sala especificada.", "Name or Matrix ID": "Nombre o ID de Matrix", @@ -960,7 +960,7 @@ "Changes the avatar of the current room": "Cambia la imagen de la sala actual", "Use an identity server": "Usar un servidor de identidad", "Use an identity server to invite by email. Click continue to use the default identity server (%(defaultIdentityServerName)s) or manage in Settings.": "Usar un servidor de identidad para invitar por correo. Presiona continuar par usar el servidor de identidad por defecto (%(defaultIdentityServerName)s) o adminístralo en Ajustes.", - "Use an identity server to invite by email. Manage in Settings.": "Usar un servidor de identidad para invitar por correo. Gestiónalo en ajustes.", + "Use an identity server to invite by email. Manage in Settings.": "Usa un servidor de identidad para invitar por correo. Puedes configurarlo en tus ajustes.", "Adds a custom widget by URL to the room": "Añade un widget personalizado por URL a la sala", "Please supply a https:// or http:// widget URL": "Por favor provisiona un URL de widget de http:// o https://", "You cannot modify widgets in this room.": "No puedes modificar widgets en esta sala.", @@ -1023,13 +1023,13 @@ "Upgrade": "Actualizar", "Verify": "Verificar", "Later": "Más tarde", - "Upload": "Subir", - "Show less": "Mostrar menos", - "Show more": "Mostrar más", + "Upload": "Enviar", + "Show less": "Ver menos", + "Show more": "Ver más", "Changing password will currently reset any end-to-end encryption keys on all sessions, making encrypted chat history unreadable, unless you first export your room keys and re-import them afterwards. In future this will be improved.": "Cambiar la contraseña reiniciará cualquier clave de cifrado end-to-end en todas las sesiones, haciendo el historial de conversaciones encriptado ilegible, a no ser que primero exportes tus claves de sala y después las reimportes. En un futuro esto será mejorado.", "in memory": "en memoria", "not found": "no encontrado", - "You are currently using to discover and be discoverable by existing contacts you know. You can change your identity server below.": "Estás usando actualmente para descubrir y ser descubierto por contactos existentes que conoces. Puedes cambiar tu servidor de identidad más abajo.", + "You are currently using to discover and be discoverable by existing contacts you know. You can change your identity server below.": "Estás usando actualmente para descubrir y ser descubierto por contactos existentes que conoces. Puedes cambiar tu servidor de identidad más abajo.", "If you don't want to use to discover and be discoverable by existing contacts you know, enter another identity server below.": "Si no quieres usar para descubrir y ser descubierto por contactos existentes que conoces, introduce otro servidor de identidad más abajo.", "You are not currently using an identity server. To discover and be discoverable by existing contacts you know, add one below.": "No estás usando un servidor de identidad ahora mismo. Para descubrir y ser descubierto por contactos existentes que conoces, introduce uno más abajo.", "Disconnecting from your identity server will mean you won't be discoverable by other users and you won't be able to invite others by email or phone.": "Desconectarte de tu servidor de identidad significa que no podrás ser descubierto por otros usuarios y no podrás invitar a otros por email o teléfono.", @@ -1038,7 +1038,7 @@ "Enter a new identity server": "Introducir un servidor de identidad nuevo", "Change": "Cambiar", "Manage integrations": "Gestor de integraciones", - "Something went wrong trying to invite the users.": "Algo salió mal al intentar invitar a los usuarios.", + "Something went wrong trying to invite the users.": "Algo ha salido mal al intentar invitar a los usuarios.", "We couldn't invite those users. Please check the users you want to invite and try again.": "No se pudo invitar a esos usuarios. Por favor, revisa los usuarios que quieres invitar e inténtalo de nuevo.", "Failed to find the following users": "No se encontró a los siguientes usuarios", "The following users might not exist or are invalid, and cannot be invited: %(csvNames)s": "Puede que los siguientes usuarios no existan o sean inválidos, y no pueden ser invitados: %(csvNames)s", @@ -1079,14 +1079,14 @@ "Summary": "Resumen", "Document": "Documento", "Next": "Siguiente", - "Upload files (%(current)s of %(total)s)": "Subir archivos (%(current)s de %(total)s)", - "Upload files": "Subir archivos", - "Upload all": "Subir todo", - "This file is too large to upload. The file size limit is %(limit)s but this file is %(sizeOfThisFile)s.": "Este archivo es demasiado grande para subirse. El limite de tamaño de archivo es %(limit)s pero el archivo es %(sizeOfThisFile)s.", + "Upload files (%(current)s of %(total)s)": "Enviar archivos (%(current)s de %(total)s)", + "Upload files": "Enviar archivos", + "Upload all": "Enviar todo", + "This file is too large to upload. The file size limit is %(limit)s but this file is %(sizeOfThisFile)s.": "Este archivo es demasiado grande para enviarse. El tamaño máximo es %(limit)s pero el archivo pesa %(sizeOfThisFile)s.", "These files are too large to upload. The file size limit is %(limit)s.": "Estos archivos son demasiado grandes para ser subidos. El límite de tamaño de archivos es %(limit)s.", "Some files are too large to be uploaded. The file size limit is %(limit)s.": "Algunos archivos son demasiado grandes para ser subidos. El límite de tamaño de archivos es %(limit)s.", - "Upload %(count)s other files|other": "Subir %(count)s otros archivos", - "Upload %(count)s other files|one": "Subir %(count)s otro archivo", + "Upload %(count)s other files|other": "Enviar otros %(count)s archivos", + "Upload %(count)s other files|one": "Enviar %(count)s archivo más", "Cancel All": "Cancelar todo", "Upload Error": "Error de subida", "Remember my selection for this widget": "Recordar mi selección para este widget", @@ -1140,7 +1140,7 @@ "%(num)s hours from now": "dentro de %(num)s horas", "about a day from now": "dentro de un día", "%(num)s days from now": "dentro de %(num)s días", - "Show typing notifications": "Mostrar notificaciones de escritura", + "Show typing notifications": "Mostrar un indicador cuando alguien más esté escribiendo en la sala", "Never send encrypted messages to unverified sessions from this session": "No enviar nunca mensajes cifrados a sesiones sin verificar desde esta sesión", "Never send encrypted messages to unverified sessions in this room from this session": "No enviar nunca mensajes cifrados a sesiones sin verificar en esta sala desde esta sesión", "Enable message search in encrypted rooms": "Activar la búsqueda de mensajes en salas cifradas", @@ -1168,17 +1168,17 @@ "this room": "esta sala", "View older messages in %(roomName)s.": "Ver mensajes más antiguos en %(roomName)s.", "Sounds": "Sonidos", - "Notification sound": "Sonido de notificación", + "Notification sound": "Sonido para las notificaciones", "Set a new custom sound": "Usar un nuevo sonido personalizado", "Browse": "Seleccionar", - "Change room avatar": "Cambiar avatar de sala", - "Change room name": "Cambiar nombre de sala", - "Change main address for the room": "Cambiar la dirección principal para la sala", - "Change history visibility": "Cambiar visibilidad del historial", - "Change permissions": "Cambiar permisos", - "Change topic": "Cambiar tema", + "Change room avatar": "Cambiar el avatar de la sala", + "Change room name": "Cambiar el nombre de sala", + "Change main address for the room": "Cambiar la dirección principal de la sala", + "Change history visibility": "Cambiar la visibilidad del historial", + "Change permissions": "Cambiar los permisos", + "Change topic": "Cambiar el tema", "Upgrade the room": "Actualizar la sala", - "Enable room encryption": "Activar el cifrado de sala", + "Enable room encryption": "Activar cifrado para la sala", "Modify widgets": "Modificar widgets", "Error changing power level requirement": "Error al cambiar el requerimiento de nivel de poder", "An error occurred changing the room's power level requirements. Ensure you have sufficient permissions and try again.": "Ocurrió un error cambiando los requerimientos de nivel de poder de la sala. Asegúrate de tener los permisos suficientes e inténtalo de nuevo.", @@ -1189,10 +1189,10 @@ "Invite users": "Invitar usuarios", "Change settings": "Cambiar la configuración", "Kick users": "Echar usuarios", - "Ban users": "Bloquear a usuarios", - "Notify everyone": "Notificar a todos", + "Ban users": "Vetar usuarios", + "Notify everyone": "Notificar a todo el mundo", "Send %(eventType)s events": "Enviar eventos %(eventType)s", - "Select the roles required to change various parts of the room": "Selecciona los roles requeridos para cambiar varias partes de la sala", + "Select the roles required to change various parts of the room": "Elige los roles que los usuarios deben tener para poder cambiar los distintos ajustes de la sala", "Enable encryption?": "¿Activar cifrado?", "Your email address hasn't been verified yet": "Tu dirección de email no ha sido verificada", "Verify the link in your inbox": "Verifica el enlace en tu bandeja de entrada", @@ -1206,7 +1206,7 @@ "Enable desktop notifications for this session": "Activa las notificaciones de escritorio para esta sesión", "Enable audible notifications for this session": "Activar notificaciones sonoras para esta sesión", "Checking server": "Comprobando servidor", - "Change identity server": "Cambiar servidor de identidad", + "Change identity server": "Cambiar el servidor de identidad", "Disconnect from the identity server and connect to instead?": "¿Desconectarse del servidor de identidad y conectarse a ?", "Terms of service not accepted or the identity server is invalid.": "Términos de servicio no aceptados o el servidor de identidad es inválido.", "The identity server you have chosen does not have any terms of service.": "El servidor de identidad que has elegido no tiene ningún término de servicio.", @@ -1255,11 +1255,11 @@ "Interactively verify by Emoji": "Verificar interactivamente con emojis", "Done": "Listo", "Support adding custom themes": "Soporta la adición de temas personalizados", - "Show info about bridges in room settings": "Mostrar información sobre puentes en la configuración de salas", + "Show info about bridges in room settings": "Incluir información sobre puentes en la configuración de las salas", "Order rooms by name": "Ordenar las salas por nombre", - "Show rooms with unread notifications first": "Mostrar primero las salas con notificaciones no leídas", - "Show shortcuts to recently viewed rooms above the room list": "Mostrar atajos a las salas recientemente vistas por encima de la lista de salas", - "Allow fallback call assist server turn.matrix.org when your homeserver does not offer one (your IP address would be shared during a call)": "Permitir el servidor de respaldo de asistencia de llamadas turn.matrix.org cuando tu servidor base no lo ofrezca (tu dirección IP se compartiría durante una llamada)", + "Show rooms with unread notifications first": "Colocar primero las salas con notificaciones no leídas", + "Show shortcuts to recently viewed rooms above the room list": "Incluir encima de la lista de salas unos atajos a las últimas salas que hayas visto", + "Allow fallback call assist server turn.matrix.org when your homeserver does not offer one (your IP address would be shared during a call)": "Permitir el servidor de respaldo de asistencia de llamadas turn.matrix.org cuando tu servidor base no lo ofrezca (tu dirección IP se compartirá durante las llamadas)", "Manually verify all remote sessions": "Verificar manualmente todas las sesiones remotas", "Confirm the emoji below are displayed on both sessions, in the same order:": "Confirma que los emojis de abajo son los mismos y tienen el mismo orden en los dos sitios:", "Verify this session by confirming the following number appears on its screen.": "Verifica esta sesión confirmando que el siguiente número aparece en su pantalla.", @@ -1278,7 +1278,7 @@ "cached locally": "almacenado localmente", "not found locally": "no encontrado localmente", "User signing private key:": "Usuario firmando llave privada:", - "Homeserver feature support:": "Características apoyadas por servidor local:", + "Homeserver feature support:": "Características compatibles con tu servidor base:", "exists": "existe", "Your homeserver does not support session management.": "Su servidor local no soporta la gestión de sesiones.", "Confirm deleting these sessions by using Single Sign On to prove your identity.|other": "Confirme eliminar estas sesiones, probando su identidad con el Registro Único.", @@ -1293,9 +1293,9 @@ "%(brand)s is missing some components required for securely caching encrypted messages locally. If you'd like to experiment with this feature, build a custom %(brand)s Desktop with search components added.": "A %(brand)s le faltan algunos componentes necesarios para el almacenamiento seguro de mensajes cifrados a nivel local. Si quieres experimentar con esta característica, construye un Escritorio %(brand)s personalizado con componentes de búsqueda añadidos.", "This session is not backing up your keys, but you do have an existing backup you can restore from and add to going forward.": "Esta sesión no ha creado una copia de seguridad de tus llaves, pero tienes una copia de seguridad existente de la que puedes restaurar y añadir para proceder.", "Connect this session to key backup before signing out to avoid losing any keys that may only be on this session.": "Conecte esta sesión a la copia de seguridad de las claves antes de firmar y así evitar perder las claves que sólo existen en esta sesión.", - "Connect this session to Key Backup": "Conecte esta sesión a la copia de respaldo de tu clave", + "Connect this session to Key Backup": "Conecta esta sesión a la copia de respaldo de tu clave", "Backup has a valid signature from this user": "La copia de seguridad tiene una firma válida de este usuario", - "Backup has a invalid signature from this user": "La copia de seguridad tiene una firma inválida de este usuario", + "Backup has a invalid signature from this user": "La copia de seguridad tiene una firma no válida de este usuario", "Backup has a signature from unknown user with ID %(deviceId)s": "La copia de seguridad tiene una firma desconocida del usuario con ID %(deviceId)s", "Backup has a signature from unknown session with ID %(deviceId)s": "La copia de seguridad tiene una firma de desconocido de la sesión con ID %(deviceId)s", "Backup has a valid signature from this session": "La copia de seguridad tiene una firma válida de esta sesión", @@ -1331,7 +1331,7 @@ "If this isn't what you want, please use a different tool to ignore users.": "Si esto no es lo que quieres, por favor usa una herramienta diferente para ignorar usuarios.", "Subscribe": "Suscribir", "Always show the window menu bar": "Siempre mostrar la barra de menú de la ventana", - "Show tray icon and minimize window to it on close": "Mostrar el icono en el Área de Notificación y minimizar la ventana al cerrarla", + "Show tray icon and minimize window to it on close": "Mostrar un icono en el área de notificaciones y guardar la ventana minimizada ahí al cerrarla", "Composer": "Editor", "Timeline": "Línea de tiempo", "Read Marker lifetime (ms)": "Permanencia del marcador de lectura (en ms)", @@ -1342,7 +1342,7 @@ "Cross-signing": "Firma cruzada", "Where you’re logged in": "Sesiones", "Manage the names of and sign out of your sessions below or verify them in your User Profile.": "Gestiona los nombres de sus sesiones y ciérralas abajo o verifícalas en tu perfil de usuario.", - "A session's public name is visible to people you communicate with": "El nombre público de una sesión es visible para las personas con las que te comunicas", + "A session's public name is visible to people you communicate with": "El nombre público de tus sesiones lo puede ver cualquiera con quien te comuniques", "This room is bridging messages to the following platforms. Learn more.": "Esta sala está haciendo puente con las siguientes plataformas. Aprende más.", "This room isn’t bridging messages to any platforms. Learn more.": "Esta sala no está haciendo puente con ninguna plataforma. Aprende más", "Bridges": "Puentes", @@ -1355,7 +1355,7 @@ "Discovery options will appear once you have added an email above.": "Las opciones de descubrimiento aparecerán una vez que haya añadido un correo electrónico arriba.", "Unable to revoke sharing for phone number": "No se logró revocar el intercambio de un número de teléfono", "Unable to share phone number": "No se logró compartir el número de teléfono", - "Please enter verification code sent via text.": "Por favor, introduce el código de verificación enviado por SMS.", + "Please enter verification code sent via text.": "Por favor, escribe el código de verificación que te hemos enviado por SMS.", "Discovery options will appear once you have added a phone number above.": "Las opciones de descubrimiento aparecerán una vez que haya añadido un número de teléfono arriba.", "Remove %(phone)s?": "¿Eliminar %(phone)s?", "A text message has been sent to +%(msisdn)s. Please enter the verification code it contains.": "Se ha enviado un mensaje de texto a +%(msisdn)s. Por favor, escribe el código de verificación que contiene.", @@ -1380,21 +1380,21 @@ "e.g. my-room": "p.ej. mi-sala", "Some characters not allowed": "Algunos caracteres no están permitidos", "Sign in with single sign-on": "Ingresar con un Registro Único", - "Enter a server name": "Introduce un nombre de servidor", + "Enter a server name": "Escribe un nombre de servidor", "Looks good": "Se ve bien", "Can't find this server or its room list": "No se ha podido encontrar este servidor o su lista de salas", "All rooms": "Todas las salas", - "Your server": "Tu", + "Your server": "Tu servidor", "Are you sure you want to remove %(serverName)s": "¿Estás seguro de querer eliminar %(serverName)s?", "Remove server": "Quitar servidor", "Matrix": "Matrix", "Add a new server": "Añadir un nuevo servidor", - "Enter the name of a new server you want to explore.": "Introduce el nombre de un nuevo servidor que quieras explorar.", + "Enter the name of a new server you want to explore.": "Escribe el nombre de un nuevo servidor que quieras explorar.", "Server name": "Nombre del servidor", "Add a new server...": "Añadir otro servidor…", "%(networkName)s rooms": "%(networkName)s sala", "Matrix rooms": "Salas de Matrix", - "Use an identity server to invite by email. Use the default (%(defaultIdentityServerName)s) or manage in Settings.": "Usar un servidor de identidad para invitar vía correo electrónico. . Usar (%(defaultIdentityServerName)s)o seleccione en Ajustes.", + "Use an identity server to invite by email. Use the default (%(defaultIdentityServerName)s) or manage in Settings.": "Usar un servidor de identidad para invitar a través de correo electrónico. . Usar (%(defaultIdentityServerName)s)o seleccione en Ajustes.", "Use an identity server to invite by email. Manage in Settings.": "Utilice un servidor de identidad para invitar por correo electrónico. Gestionar en Ajustes.", "Close dialog": "Cerrar diálogo", "Please tell us what went wrong or, better, create a GitHub issue that describes the problem.": "Por favor, cuéntanos qué ha ido mal o, mejor aún, cree una incidencia en GitHub que describa el problema.", @@ -1575,12 +1575,12 @@ "You cancelled verification.": "Has cancelado la verificación.", "Verification cancelled": "Verificación cancelada", "Compare emoji": "Comparar emoji", - "Encryption enabled": "Cifrado activado", - "Encryption not enabled": "Cifrado no activado", + "Encryption enabled": "El cifrado está activado", + "Encryption not enabled": "El cifrado no está activado", "The encryption used by this room isn't supported.": "El cifrado usado por esta sala no es compatible.", "React": "Reaccionar", "Message Actions": "Acciones de mensaje", - "Show image": "Mostrar imagen", + "Show image": "Ver imagen", "You have ignored this user, so their message is hidden. Show anyways.": "Ha ignorado a esta cuenta, así que su mensaje está oculto. Ver de todos modos.", "You verified %(name)s": "Has verificado a %(name)s", "You cancelled verifying %(name)s": "Has cancelado la verificación de %(name)s", @@ -1595,12 +1595,12 @@ "Declining …": "Declinando…", "%(name)s wants to verify": "%(name)s quiere verificar", "You sent a verification request": "Has enviado solicitud de verificación", - "Show all": "Mostrar todo", + "Show all": "Ver todo", "Reactions": "Reacciones", "reacted with %(shortName)s": " reaccionó con %(shortName)s", "Message deleted": "Mensaje eliminado", "Message deleted by %(name)s": "Mensaje eliminado por %(name)s", - "Edited at %(date)s. Click to view edits.": "Editado el día %(date)s. Haz clic para ver las ediciones.", + "Edited at %(date)s. Click to view edits.": "Última vez editado: %(date)s. Haz clic para ver los cambios.", "edited": "editado", "Can't load this message": "No se ha podido cargar este mensaje", "Submit logs": "Enviar registros", @@ -1632,7 +1632,7 @@ "Rotate Left": "Girar a la izquierda", "Upload completed": "Subida completada", "Cancelled signature upload": "Subida de firma cancelada", - "Unable to upload": "No se puede subir", + "Unable to upload": "No se ha podido enviar", "Signature upload success": "Subida de firma exitosa", "Signature upload failed": "Subida de firma ha fallado", "Confirm by comparing the following with the User Settings in your other session:": "Confirme comparando lo siguiente con los ajustes de usuario de su otra sesión:", @@ -1652,13 +1652,13 @@ "Failed to decrypt %(failedCount)s sessions!": "¡Error al descifrar %(failedCount)s sesiones!", "Successfully restored %(sessionCount)s keys": "%(sessionCount)s claves restauradas con éxito", "Warning: you should only set up key backup from a trusted computer.": "Advertencia: deberías configurar la copia de seguridad de claves solamente usando un ordenador de confianza.", - "Warning: You should only set up key backup from a trusted computer.": "Advertencia: Configurar la copia de seguridad de claves solamente usando un ordenador de confianza.", + "Warning: You should only set up key backup from a trusted computer.": "Advertencia: Configura la copia de seguridad de claves solo si estás usando un ordenador de confianza.", "Resend %(unsentCount)s reaction(s)": "Reenviar %(unsentCount)s reacción(es)", "Report Content": "Reportar contenido", "Notification settings": "Notificaciones", "Clear status": "Borrar estado", "Update status": "Actualizar estado", - "Set status": "Cambiar estado", + "Set status": "Cambiar el estado", "Set a new status...": "Elegir un nuevo estado…", "Hide": "Ocultar", "Remove for everyone": "Eliminar para todos", @@ -1694,7 +1694,7 @@ "Liberate your communication": "Libera tu comunicación", "Send a Direct Message": "Envía un mensaje directo", "Explore Public Rooms": "Explora las salas públicas", - "Create a Group Chat": "Crea una conversación grupal", + "Create a Group Chat": "Crea un grupo", "Filter": "Filtrar", "%(creator)s created and configured the room.": "Sala creada y configurada por %(creator)s.", "%(brand)s failed to get the protocol list from the homeserver. The homeserver may be too old to support third party networks.": "%(brand)s no ha posido obtener la lista de protocolo del servidor base. El servidor base puede ser demasiado viejo para admitir redes de terceros.", @@ -1707,7 +1707,7 @@ "If you can't find the room you're looking for, ask for an invite or Create a new room.": "Si no encuentras la sala que buscas, pide que te inviten a ella o crea una nueva.", "Explore rooms": "Explorar salas", "Jump to first invite.": "Salte a la primera invitación.", - "Add room": "Añadir sala", + "Add room": "Añadir una sala", "Guest": "Invitado", "Could not load user profile": "No se pudo cargar el perfil de usuario", "Verify this login": "Verifica este inicio de sesión", @@ -1767,7 +1767,7 @@ "Font size": "Tamaño del texto", "Use custom size": "Usar un tamaño personalizado", "Use a more compact ‘Modern’ layout": "Usar un diseño más «moderno y compacto»", - "Use a system font": "Usar una fuente del sistema", + "Use a system font": "Usar un tipo de letra del sistema", "System font name": "Nombre de la fuente", "Enable experimental, compact IRC style layout": "Activar el diseño experimental de IRC compacto", "Uploading logs": "Subiendo registros", @@ -1775,7 +1775,7 @@ "Waiting for your other session to verify…": "Esperando a tu otra sesión confirme…", "Your server isn't responding to some requests.": "Tú servidor no esta respondiendo a ciertas solicitudes.", "New version available. Update now.": "Nueva versión disponible. Actualizar ahora.", - "Hey you. You're the best!": "Oye, tú. ¡Eres genial!", + "Hey you. You're the best!": "Oye, tú… ¡eres genial!", "Size must be a number": "El tamaño debe ser un dígito", "Custom font size can only be between %(min)s pt and %(max)s pt": "El tamaño de la fuente solo puede estar entre los valores %(min)s y %(max)s", "Use between %(min)s pt and %(max)s pt": "Utiliza un valor entre %(min)s y %(max)s", @@ -1785,7 +1785,7 @@ "Customise your appearance": "Personaliza la apariencia", "Appearance Settings only affect this %(brand)s session.": "Cambiar las opciones de apariencia solo afecta a esta sesión de %(brand)s.", "Please verify the room ID or address and try again.": "Por favor, verifica la ID o dirección de esta sala e inténtalo de nuevo.", - "Your server admin has disabled end-to-end encryption by default in private rooms & Direct Messages.": "El administrador del servidor base ha desactivado el cifrado de extremo a extremo en salas privadas y mensajes directos.", + "Your server admin has disabled end-to-end encryption by default in private rooms & Direct Messages.": "El administrador de tu servidor base ha desactivado el cifrado de extremo a extremo en salas privadas y mensajes directos.", "To link to this room, please add an address.": "Para obtener un enlace a esta sala, añade una dirección.", "The authenticity of this encrypted message can't be guaranteed on this device.": "La autenticidad de este mensaje cifrado no puede ser garantizada en este dispositivo.", "No recently visited rooms": "No hay salas visitadas recientemente", @@ -1804,7 +1804,7 @@ "Cross-signing is not set up.": "La firma cruzada no está configurada.", "Master private key:": "Clave privada maestra:", "%(brand)s can't securely cache encrypted messages locally while running in a web browser. Use %(brand)s Desktop for encrypted messages to appear in search results.": "%(brand)s no puede almacenar en caché de forma segura mensajes cifrados localmente mientras se ejecuta en un navegador web. Usa %(brand)s Escritorio para que los mensajes cifrados aparezcan en los resultados de búsqueda.", - "Backup version:": "Versión de respaldo:", + "Backup version:": "Versión de la copia de seguridad:", "Algorithm:": "Algoritmo:", "Backup key stored:": "Clave de respaldo almacenada:", "Backup key cached:": "Clave de respaldo almacenada en caché:", @@ -1814,22 +1814,22 @@ "Room ID or address of ban list": "ID de sala o dirección de la lista de prohibición", "Secure Backup": "Copia de seguridad segura", "Privacy": "Privacidad", - "Emoji picker": "Selector de emoji", + "Emoji picker": "Elegir emoji", "Explore community rooms": "Explore las salas comunitarias", "Custom Tag": "Etiqueta personalizada", "%(count)s results|one": "%(count)s resultado", "Appearance": "Apariencia", - "Show rooms with unread messages first": "Mostrar primero las salas con mensajes no leídos", - "Show previews of messages": "Mostrar vistas previas de mensajes", + "Show rooms with unread messages first": "Colocar al principio las salas con mensajes sin leer", + "Show previews of messages": "Incluir una vista previa del último mensaje", "Sort by": "Ordenar por", "Activity": "Actividad", "A-Z": "A-Z", - "List options": "Opciones de lista", - "Show %(count)s more|other": "Mostrar %(count)s más", - "Show %(count)s more|one": "Mostrar %(count)s más", + "List options": "Opciones de la lista", + "Show %(count)s more|other": "Ver %(count)s más", + "Show %(count)s more|one": "Ver %(count)s más", "Use default": "Usar valor por defecto", "Mentions & Keywords": "Menciones y palabras clave", - "Notification options": "Opciones de notificación", + "Notification options": "Ajustes de notificaciones", "Forget Room": "Olvidar sala", "Favourited": "Favorecido", "Leave Room": "Salir de la sala", @@ -1849,7 +1849,7 @@ "You've successfully verified your device!": "¡Ha verificado correctamente su dispositivo!", "Take a picture": "Toma una foto", "Message deleted on %(date)s": "Mensaje eliminado el %(date)s", - "Edited at %(date)s": "Editado el %(date)s", + "Edited at %(date)s": "Última vez editado: %(date)s", "Click to view edits": "Haz clic para ver las ediciones", "Categories": "Categorías", "Information": "Información", @@ -1868,13 +1868,13 @@ "There was an error creating your community. The name may be taken or the server is unable to process your request.": "Ha ocurrido un error al crear la comunidad. El nombre puede que ya esté siendo usado o el servidor no puede procesar la solicitud.", "Community ID: +:%(domain)s": "ID de comunidad: +:%(domain)s", "Use this when referencing your community to others. The community ID cannot be changed.": "Usa esto cuando hagas referencia a tu comunidad con otras. El ID de la comunidad no se puede cambiar.", - "You can change this later if needed.": "Puede cambiar esto más tarde si es necesario.", + "You can change this later if needed.": "Puedes cambiar esto más adelante si hace falta.", "What's the name of your community or team?": "¿Cuál es el nombre de tu comunidad o equipo?", "Enter name": "Introduce un nombre", "Add image (optional)": "Añadir imagen (opcional)", "An image will help people identify your community.": "Una imagen ayudará a las personas a identificar su comunidad.", "Private rooms can be found and joined by invitation only. Public rooms can be found and joined by anyone in this community.": "Las salas privadas solo se pueden encontrar y unirse con invitación. Cualquier persona de esta comunidad puede encontrar salas públicas y unirse a ellas.", - "You might enable this if the room will only be used for collaborating with internal teams on your homeserver. This cannot be changed later.": "Puedes activar esto si la sala solo se usará para colaborar con equipos internos en tu servidor base. No se puede cambiar después.", + "You might enable this if the room will only be used for collaborating with internal teams on your homeserver. This cannot be changed later.": "Puedes activar esto si la sala solo se usará para colaborar con equipos internos en tu servidor base. No se podrá cambiar después.", "You might disable this if the room will be used for collaborating with external teams who have their own homeserver. This cannot be changed later.": "Puedes desactivar esto si la sala se utilizará para colaborar con equipos externos que tengan su propio servidor base. Esto no se puede cambiar después.", "Create a room in %(communityName)s": "Crea una sala en %(communityName)s", "Block anyone not part of %(serverName)s from ever joining this room.": "Evita que cualquier persona que no sea parte de %(serverName)s se una a esta sala.", @@ -1965,11 +1965,11 @@ "Restore": "Restaurar", "You'll need to authenticate with the server to confirm the upgrade.": "Deberá autenticarse con el servidor para confirmar la actualización.", "Upgrade this session to allow it to verify other sessions, granting them access to encrypted messages and marking them as trusted for other users.": "Actualice esta sesión para permitirle verificar otras sesiones, otorgándoles acceso a mensajes cifrados y marcándolos como confiables para otros usuarios.", - "Enter a security phrase only you know, as it’s used to safeguard your data. To be secure, you shouldn’t re-use your account password.": "Ingrese una frase de seguridad que solo usted conozca, ya que se usa para proteger sus datos. Para estar seguro, no debe volver a utilizar la contraseña de su cuenta.", + "Enter a security phrase only you know, as it’s used to safeguard your data. To be secure, you shouldn’t re-use your account password.": "Elige una frase de seguridad que solo tú conozcas, ya que se usa para proteger tus datos. Para que sea todavía más segura, no vuelvas a usar la contraseña de tu cuenta.", "That matches!": "¡Eso combina!", "Use a different passphrase?": "¿Utiliza una frase de contraseña diferente?", "That doesn't match.": "No coincide.", - "Go back to set it again.": "Regrese para configurarlo nuevamente.", + "Go back to set it again.": "Volver y ponerlo de nuevo.", "Store your Security Key somewhere safe, like a password manager or a safe, as it’s used to safeguard your encrypted data.": "Guarde su llave de seguridad en un lugar seguro, como un administrador de contraseñas o una caja fuerte, ya que se usa para proteger sus datos cifrados.", "Download": "Descargar", "Unable to query secret storage status": "No se puede consultar el estado del almacenamiento secreto", @@ -1985,12 +1985,12 @@ "For maximum security, this should be different from your account password.": "Para mayor seguridad, esta debe ser diferente a la contraseña de su cuenta.", "Keep a copy of it somewhere secure, like a password manager or even a safe.": "Guarde una copia en un lugar seguro, como un administrador de contraseñas o incluso una caja fuerte.", "Print it and store it somewhere safe": "Imprímelo y guárdalo en un lugar seguro", - "Save it on a USB key or backup drive": "Guárdelo en una llave USB o unidad de respaldo", + "Save it on a USB key or backup drive": "Guárdalo en un USB o disco de copias de seguridad", "Copy it to your personal cloud storage": "Cópielo a su almacenamiento personal en la nube", "Your keys are being backed up (the first backup could take a few minutes).": "Se está realizando una copia de seguridad de sus claves (la primera copia de seguridad puede tardar unos minutos).", "Without setting up Secure Message Recovery, you won't be able to restore your encrypted message history if you log out or use another session.": "Sin configurar Secure Message Recovery, no podrás restaurar tu historial de mensajes encriptados si cierras sesión o usas otra sesión.", "Set up Secure Message Recovery": "Configurar la recuperación segura de mensajes", - "Starting backup...": "Empezando copia de seguridad…", + "Starting backup...": "Empezando la copia de seguridad…", "Success!": "¡Éxito!", "Create key backup": "Crear copia de seguridad de claves", "Unable to create key backup": "No se puede crear una copia de seguridad de la clave", @@ -2023,13 +2023,13 @@ "Toggle Bold": "Alternar negrita", "Toggle Italics": "Alternar cursiva", "Toggle Quote": "Alternar cita", - "New line": "Nueva línea", + "New line": "Insertar salto de línea", "Navigate recent messages to edit": "Navegar entre mensajes recientes para editar", "Jump to start/end of the composer": "Saltar al inicio o final del editor", "Navigate composer history": "Navegar por el historial del editor", "Cancel replying to a message": "Cancelar responder al mensaje", - "Toggle microphone mute": "Alternar silencio del micrófono", - "Toggle video on/off": "Activar/desactivar vídeo", + "Toggle microphone mute": "Activar o desactivar tu micrófono", + "Toggle video on/off": "Activar o desactivar tu cámara", "Scroll up/down in the timeline": "Desplazarse hacia arriba o hacia abajo en la línea de tiempo", "Dismiss read marker and jump to bottom": "Descartar el marcador de lectura y saltar al final", "Jump to oldest unread message": "Ir al mensaje no leído más antiguo", @@ -2037,7 +2037,7 @@ "Jump to room search": "Ir a la búsqueda de salas", "Navigate up/down in the room list": "Navegar hacia arriba/abajo en la lista de salas", "Select room from the room list": "Seleccionar sala de la lista de salas", - "Collapse room list section": "Contraer la sección de lista de salas", + "Collapse room list section": "Encoger la sección de lista de salas", "Expand room list section": "Expandir la sección de la lista de salas", "Clear room list filter field": "Borrar campo de filtro de lista de salas", "Previous/next unread room or DM": "Sala o mensaje directo anterior/siguiente sin leer", @@ -2081,7 +2081,7 @@ "There was an error looking up the phone number": "Ha ocurrido un error al buscar el número de teléfono", "Unable to look up phone number": "No se ha podido buscar el número de teléfono", "Fill Screen": "Llenar pantalla", - "Show stickers button": "Mostrar botón de pegatinas", + "Show stickers button": "Incluir el botón de pegatinas", "See emotes posted to this room": "Ver los emoticonos publicados en esta sala", "Send emotes as you in this room": "Enviar emoticonos en tu nombre a esta sala", "Send messages as you in this room": "Enviar mensajes en tu nombre a esta sala", @@ -2361,21 +2361,21 @@ "Video conference started by %(senderName)s": "Videoconferencia iniciada por %(senderName)s", "Video conference updated by %(senderName)s": "Videoconferencia actualizada por %(senderName)s", "You held the call Resume": "Has puesto la llamada en espera Recuperar", - "You held the call Switch": "Has puesto la llamada en espera Cambiar", + "You held the call Switch": "Has puesto esta llamada en espera Volver", "Reason (optional)": "Motivo (opcional)", "Homeserver": "Servidor base", "Server Options": "Opciones del servidor", "Messages here are end-to-end encrypted. Verify %(displayName)s in their profile - tap on their avatar.": "Estos mensajes se cifran de extremo a extremo. Verifica a %(displayName)s en su perfil - toca su imagen.", "Start a new chat": "Empezar una nueva conversación", "Open dial pad": "Abrir teclado numérico", - "This is the start of .": "Este es el inicio de .", + "This is the start of .": "Aquí empieza .", "Add a photo, so people can easily spot your room.": "Añade una imagen para que la gente reconozca la sala fácilmente.", "%(displayName)s created this room.": "%(displayName)s creó esta sala.", "You created this room.": "Creaste esta sala.", - "Add a topic to help people know what it is about.": "Escribe un asunto para que la gente sepa de qué va esta sala.", + "Add a topic to help people know what it is about.": "Añade un asunto para que la gente sepa de qué va la sala.", "Topic: %(topic)s ": "Tema: %(topic)s ", "Topic: %(topic)s (edit)": "Tema: %(topic)s (cambiar)", - "Remove messages sent by others": "Eliminar mensajes mandados por otros", + "Remove messages sent by others": "Eliminar los mensajes enviados por otras personas", "Back up your encryption keys with your account data in case you lose access to your sessions. Your keys will be secured with a unique Security Key.": "Haz una copia de seguridad de tus claves de cifrado con los datos de tu cuenta por si pierdes acceso a tus sesiones. Las clave serán aseguradas con una clave de seguridad única.", "The operation could not be completed": "No se ha podido completar la operación", "Failed to save your profile": "No se ha podido guardar tu perfil", @@ -2392,7 +2392,7 @@ "Sends the given message with fireworks": "Envía el mensaje con fuegos artificiales", "sends confetti": "envía confeti", "Sends the given message with confetti": "Envía el mensaje con confeti", - "Use Ctrl + Enter to send a message": "Usa Control + Intro para enviar un mensaje", + "Use Ctrl + Enter to send a message": "Hacer que para enviar un mensaje haya que pulsar Control + Intro", "Use Command + Enter to send a message": "Usa Comando + Intro para enviar un mensje", "Render LaTeX maths in messages": "Mostrar matemáticas en los mensajes usando LaTeX", "%(senderName)s ended the call": "%(senderName)s ha terminado la llamada", @@ -2624,7 +2624,7 @@ "Sending your message...": "Enviando tu mensaje…", "Creating...": "Creando…", "You will not be able to undo this change as you are demoting yourself, if you are the last privileged user in the space it will be impossible to regain privileges.": "No podrás deshacer esto, ya que te estás quitando tus permisos. Si eres la última persona con permisos en este usuario, no será posible recuperarlos.", - "Jump to the bottom of the timeline when you send a message": "Saltar abajo del todo cuando envíes un mensaje", + "Jump to the bottom of the timeline when you send a message": "Saltar abajo del todo al enviar un mensaje", "Welcome to ": "Te damos la bienvenida a ", "Already in call": "Ya en una llamada", "Original event source": "Fuente original del evento", @@ -2643,7 +2643,7 @@ "Random": "Al azar", "%(count)s members|one": "%(count)s miembro", "%(count)s members|other": "%(count)s miembros", - "Your server does not support showing space hierarchies.": "Este servidor no soporta mostrar jerarquías de espacios.", + "Your server does not support showing space hierarchies.": "Este servidor no es compatible con la función de las jerarquías de espacios.", "Your message wasn't sent because this homeserver has been blocked by it's administrator. Please contact your service administrator to continue using the service.": "Tu mensaje no ha sido enviado porque este servidor base ha sido bloqueado por su administración. Por favor, ponte en contacto con ellos para continuar usando el servicio.", "Are you sure you want to leave the space '%(spaceName)s'?": "¿Salir del espacio «%(spaceName)s»?", "This space is not public. You will not be able to rejoin without an invite.": "Este espacio es privado. No podrás volverte a unir sin una invitación.", @@ -2655,11 +2655,11 @@ "Edit settings relating to your space.": "Editar ajustes relacionados con tu espacio.", "Space settings": "Ajustes del espacio", "Failed to save space settings.": "No se han podido guardar los ajustes del espacio.", - "Invite someone using their name, email address, username (like ) or share this space.": "Invita a más gente usando su nombre, correo electrónico, nombre de usuario (ej.: ) o compartiendo este espacio.", - "Invite someone using their name, username (like ) or share this space.": "Invita a más gente usando su nombre, nombre de usuario (ej.: ) o compartiendo este espacio.", + "Invite someone using their name, email address, username (like ) or share this space.": "Invita a más gente usando su nombre, correo electrónico, nombre de usuario (ej.: ) o compartiendo el enlace a este espacio.", + "Invite someone using their name, username (like ) or share this space.": "Invita a más gente usando su nombre, nombre de usuario (ej.: ) o compartiendo el enlace a este espacio.", "Unnamed Space": "Espacio sin nombre", "Invite to %(spaceName)s": "Invitar a %(spaceName)s", - "Create a new room": "Crear una nueva sala", + "Create a new room": "Crear una sala nueva", "Spaces": "Espacios", "Space selection": "Selección de espacio", "Empty room": "Sala vacía", @@ -2668,22 +2668,22 @@ "Add existing room": "Añadir sala ya existente", "You do not have permissions to create new rooms in this space": "No tienes permisos para crear nuevas salas en este espacio", "Send message": "Enviar mensaje", - "Invite to this space": "Invitar a este espacio", + "Invite to this space": "Invitar al espacio", "Your message was sent": "Mensaje enviado", - "Spell check dictionaries": "Diccionarios de comprobación de ortografía", + "Spell check dictionaries": "Diccionarios del corrector de ortografía", "Space options": "Opciones del espacio", "Leave space": "Salir del espacio", - "Invite people": "Invitar a gente", + "Invite people": "Invitar gente", "Share your public space": "Comparte tu espacio público", "Share invite link": "Compartir enlace de invitación", "Click to copy": "Haz clic para copiar", - "Collapse space panel": "Colapsar panel del espacio", - "Expand space panel": "Expandir panel del espacio", + "Collapse space panel": "Encoger panel de los espacios", + "Expand space panel": "Expandir panel de los espacios", "Your private space": "Tu espacio privado", "Your public space": "Tu espacio público", - "Invite only, best for yourself or teams": "Solo con invitación, mejor para ti o para equipos", + "Invite only, best for yourself or teams": "Acceso por invitación, mejor para equipos o solo tú", "Private": "Privado", - "Open space for anyone, best for communities": "Espacio abierto para todo el mundo, la mejor opción para comunidades", + "Open space for anyone, best for communities": "Abierto para todo el mundo, la mejor opción para comunidades", "Public": "Público", "Create a space": "Crear un espacio", "Delete": "Borrar", @@ -2717,7 +2717,7 @@ "%(count)s messages deleted.|other": "%(count)s mensajes eliminados.", "Invite to %(roomName)s": "Invitar a %(roomName)s", "Edit devices": "Editar dispositivos", - "Invite People": "Invitar a gente", + "Invite People": "Invitar gente", "Invite with email or username": "Invitar correos electrónicos o nombres de usuario", "You can change these anytime.": "Puedes cambiar todo esto en cualquier momento.", "Add some details to help people recognise it.": "Añade algún detalle para ayudar a que la gente lo reconozca.", @@ -2730,13 +2730,13 @@ "Invited people will be able to read old messages.": "Las personas invitadas podrán leer mensajes antiguos.", "We couldn't create your DM.": "No hemos podido crear tu mensaje directo.", "Adding...": "Añadiendo...", - "Add existing rooms": "Añadir salas existentes", + "Add existing rooms": "Añadir salas que ya existan", "%(count)s people you know have already joined|one": "%(count)s persona que ya conoces se ha unido", "%(count)s people you know have already joined|other": "%(count)s personas que ya conoces se han unido", "Accept on your other login…": "Acepta en otro sitio donde hayas iniciado sesión…", "Quick actions": "Acciones rápidas", "Invite to just this room": "Invitar solo a esta sala", - "Warn before quitting": "Avisar antes de salir", + "Warn before quitting": "Pedir confirmación antes de salir", "Manage & explore rooms": "Gestionar y explorar salas", "unknown person": "persona desconocida", "%(deviceId)s from %(ip)s": "%(deviceId)s desde %(ip)s", @@ -2798,8 +2798,8 @@ "Not all selected were added": "No se han añadido todas las seleccionadas", "You are not allowed to view this server's rooms list": "No tienes permiso para ver la lista de salas de este servidor", "Error processing voice message": "Ha ocurrido un error al procesar el mensaje de voz", - "We didn't find a microphone on your device. Please check your settings and try again.": "No hemos encontrado un micrófono en tu dispositivo. Por favor, consulta tus ajustes e inténtalo de nuevo.", - "No microphone found": "No se ha encontrado ningún micrófono", + "We didn't find a microphone on your device. Please check your settings and try again.": "No hemos encontrado un micrófono en tu dispositivo. Por favor, revisa tus ajustes e inténtalo de nuevo.", + "No microphone found": "Micrófono no detectado", "We were unable to access your microphone. Please check your browser settings and try again.": "No hemos podido acceder a tu micrófono. Por favor, comprueba los ajustes de tu navegador e inténtalo de nuevo.", "Unable to access your microphone": "No se ha podido acceder a tu micrófono", "Your access token gives full access to your account. Do not share it with anyone.": "Tu token de acceso da acceso completo a tu cuenta. No lo compartas con nadie.", @@ -2812,7 +2812,7 @@ "You may contact me if you have any follow up questions": "Os podéis poner en contacto conmigo si tenéis alguna pregunta", "To leave the beta, visit your settings.": "Para salir de la beta, ve a tus ajustes.", "Your platform and username will be noted to help us use your feedback as much as we can.": "Tu nombre de usuario y plataforma serán adjuntados, para que podamos interpretar tus comentarios lo mejor posible.", - "%(featureName)s beta feedback": "Comentarios sobre la funcionalidad beta %(featureName)s", + "%(featureName)s beta feedback": "Danos tu opinión sobre la funcionalidad beta de %(featureName)s", "Thank you for your feedback, we really appreciate it.": "Muchas gracias por tus comentarios.", "Add reaction": "Reaccionar", "Feeling experimental? Labs are the best way to get things early, test out new features and help shape them before they actually launch. Learn more.": "¿Te apetece probar cosas nuevas? Los experimentos son la mejor manera de conseguir acceso anticipado a nuevas funcionalidades, probarlas y ayudar a mejorarlas antes de su lanzamiento. Más información.", @@ -2820,10 +2820,10 @@ "Go to my space": "Ir a mi espacio", "sends space invaders": "enviar space invaders", "Sends the given message with a space themed effect": "Envía un mensaje con efectos espaciales", - "Allow Peer-to-Peer for 1:1 calls (if you enable this, the other party might be able to see your IP address)": "Permitir conexión directa (peer-to-peer) en las llamadas individuales (si lo activas, la otra persona podría ver tu dirección IP)", + "Allow Peer-to-Peer for 1:1 calls (if you enable this, the other party might be able to see your IP address)": "Permitir conexiones directas (peer-to-peer) en las llamadas individuales (si lo activas, la otra persona podría llegar a ver tu dirección IP)", "See when people join, leave, or are invited to your active room": "Ver cuando alguien se una, salga o se le invite a tu sala activa", - "Kick, ban, or invite people to this room, and make you leave": "Expulsar, vetar o invitar personas a esta sala, y hacerte salir de ella", - "Kick, ban, or invite people to your active room, and make you leave": "Expulsar, vetar o invitar a gente a tu sala activa, o hacerte salir", + "Kick, ban, or invite people to this room, and make you leave": "Echar, vetar o invitar personas a esta sala, y hacerte salir de ella", + "Kick, ban, or invite people to your active room, and make you leave": "Echar, vetar o invitar gente a tu sala activa, o hacerte salir de la sala", "See when people join, leave, or are invited to this room": "Ver cuando alguien se une, sale o se le invita a la sala", "Try different words or check for typos. Some results may not be visible as they're private and you need an invite to join them.": "Prueba con sinónimos o revisa si te has equivocado al escribir. Puede que algunos resultados no sean visibles si son privados y necesites que te inviten para verlos.", "Currently joining %(count)s rooms|one": "Entrando en %(count)s sala", @@ -2846,10 +2846,10 @@ "Error loading Widget": "Error al cargar el widget", "Pinned messages": "Mensajes fijados", "If you have permissions, open the menu on any message and select Pin to stick them here.": "Si tienes permisos, abre el menú de cualquier mensaje y selecciona Fijar para colocarlo aquí.", - "Nothing pinned, yet": "Nada fijado, todavía", + "Nothing pinned, yet": "Ningún mensaje fijado… todavía", "%(senderName)s removed their display name (%(oldDisplayName)s)": "%(senderName)s se ha quitado el nombre personalizado (%(oldDisplayName)s)", "%(senderName)s set their display name to %(displayName)s": "%(senderName)s ha elegido %(displayName)s como su nombre", - "%(senderName)s changed the pinned messages for the room.": "%(senderName)s ha cambiado los mensajes fijados de la sala.", + "%(senderName)s changed the pinned messages for the room.": "%(senderName)s cambió los mensajes fijados de la sala.", "%(senderName)s kicked %(targetName)s": "%(senderName)s ha echado a %(targetName)s", "%(senderName)s kicked %(targetName)s: %(reason)s": "%(senderName)s ha echado a %(targetName)s: %(reason)s", "Disagree": "No estoy de acuerdo", @@ -2888,7 +2888,7 @@ "Published addresses can be used by anyone on any server to join your space.": "Los espacios publicados pueden usarse por cualquiera, independientemente de su servidor base.", "This space has no local addresses": "Este espacio no tiene direcciones locales", "Space information": "Información del espacio", - "Collapse": "Colapsar", + "Collapse": "Encoger", "Expand": "Expandir", "Recommended for public spaces.": "Recomendado para espacios públicos.", "Allow people to preview your space before they join.": "Permitir que se pueda ver una vista previa del espacio antes de unirse a él.", @@ -2905,7 +2905,7 @@ "e.g. my-space": "ej.: mi-espacio", "Silence call": "Silenciar llamada", "Sound on": "Sonido activado", - "Show all rooms in Home": "Mostrar todas las salas en la pantalla de inicio", + "Show all rooms in Home": "Incluir todas las salas en Inicio", "Report to moderators prototype. In rooms that support moderation, the `report` button will let you report abuse to room moderators": "Prototipo de reportes a los moderadores. En las salas que lo permitan, verás el botón «reportar», que te permitirá avisar de mensajes abusivos a los moderadores de la sala", "%(senderName)s withdrew %(targetName)s's invitation": "%(senderName)s ha anulado la invitación a %(targetName)s", "%(senderName)s withdrew %(targetName)s's invitation: %(reason)s": "%(senderName)s ha anulado la invitación a %(targetName)s: %(reason)s", @@ -2965,14 +2965,14 @@ "Image": "Imagen", "Sticker": "Pegatina", "The call is in an unknown state!": "¡La llamada está en un estado desconocido!", - "Call back": "Devolver", + "Call back": "Devolver llamada", "No answer": "Sin respuesta", "An unknown error occurred": "Ha ocurrido un error desconocido", "Connection failed": "Ha fallado la conexión", "Copy Room Link": "Copiar enlace a la sala", - "Displaying time": "Mostrando la hora", + "Displaying time": "Fecha y hora", "IRC": "IRC", - "Use Ctrl + F to search timeline": "Usa Control + F para buscar dentro de la conversación", + "Use Ctrl + F to search timeline": "Activar el atajo Control + F, que permite buscar dentro de una conversación", "Please note upgrading will make a new version of the room. All current messages will stay in this archived room.": "Ten en cuenta que actualizar crea una nueva versión de la sala. Todos los mensajes hasta ahora quedarán archivados aquí, en esta sala.", "Automatically invite members from this room to the new one": "Invitar a la nueva sala automáticamente a los miembros que tiene ahora", "These are likely ones other room admins are a part of.": "Otros administradores de la sala estarán dentro.", @@ -3010,21 +3010,21 @@ "Your camera is turned off": "Tu cámara está apagada", "%(sharerName)s is presenting": "%(sharerName)s está presentando", "You are presenting": "Estás presentando", - "All rooms you're in will appear in Home.": "En la página de inicio aparecerán todas las salas a las que te hayas unido.", + "All rooms you're in will appear in Home.": "Elige si quieres que en Inicio aparezcan todas las salas a las que te hayas unido.", "To help space members find and join a private room, go to that room's Security & Privacy settings.": "Para ayudar a los miembros de tus espacios a encontrar y unirse a salas privadas, ve a los ajustes seguridad y privacidad de la sala en cuestión.", "Help space members find private rooms": "Ayuda a los miembros de tus espacios a encontrar salas privadas", "Help people in spaces to find and join private rooms": "Ayuda a la gente en tus espacios a encontrar y unirse a salas privadas", "New in the Spaces beta": "Novedades en la beta de los espacios", "We're working on this, but just want to let you know.": "Todavía estamos trabajando en esto, pero queríamos enseñártelo.", "Search for rooms or spaces": "Buscar salas o espacios", - "Add space": "Añadir espacio", + "Add space": "Añadir un espacio", "Spaces you know that contain this room": "Espacios que conoces que contienen esta sala", "Search spaces": "Buscar espacios", "Select spaces": "Elegir espacios", "Leave %(spaceName)s": "Salir de %(spaceName)s", "You're the only admin of some of the rooms or spaces you wish to leave. Leaving them will leave them without any admins.": "Eres la única persona con permisos de administración en algunos de los espacios de los que quieres irte. Al salir de ellos, nadie podrá gestionarlos.", - "You're the only admin of this space. Leaving it will mean no one has control over it.": "Eres la única persona con permisos de administración en el espacio. Al salir, nadie podrá gestionarlo.", - "You won't be able to rejoin unless you are re-invited.": "No podrás volverte a unir hasta que te vuelvan a invitar.", + "You're the only admin of this space. Leaving it will mean no one has control over it.": "Eres la única persona con permisos de administración en este espacio. Cuando salgas, nadie más podrá gestionarlo.", + "You won't be able to rejoin unless you are re-invited.": "No te podrás unir de nuevo hasta que te inviten otra vez a él.", "Search %(spaceName)s": "Buscar en %(spaceName)s", "Want to add an existing space instead?": "¿Quieres añadir un espacio que ya exista?", "Private space (invite only)": "Espacio privado (solo por invitación)", @@ -3057,7 +3057,7 @@ "Missed call": "Llamada perdida", "Call declined": "Llamada rechazada", "Stop recording": "Dejar de grabar", - "Send voice message": "Enviar mensaje de voz", + "Send voice message": "Enviar un mensaje de voz", "Olm version:": "Versión de Olm:", "Mute the microphone": "Silenciar el micrófono", "Unmute the microphone": "Activar el micrófono", @@ -3092,8 +3092,8 @@ "To create a Space from another community, just pick the community in Preferences.": "Para crear un espacio a partir de otra comunidad, escoge la comunidad en ajustes.", "Debug logs contain application usage data including your username, the IDs or aliases of the rooms or groups you have visited, which UI elements you last interacted with, and the usernames of other users. They do not contain messages.": "Los registros de depuración contienen datos de uso de la aplicación como tu nombre de usuario, las IDs o los nombres de las salas o grupos que has visitado, con qué elementos de la interfaz has interactuado recientemente, y nombres de usuario de otras personas. No incluyen mensajes.", "To avoid these issues, create a new public room for the conversation you plan to have.": "Para evitar estos problemas, crea una nueva sala pública para la conversación que planees tener.", - "%(severalUsers)schanged the pinned messages for the room %(count)s times.|other": "%(severalUsers)s han cambiado los mensajes anclados de la sala %(count)s veces.", - "%(oneUser)schanged the pinned messages for the room %(count)s times.|other": "%(oneUser)s han cambiado los mensajes anclados de la sala %(count)s veces.", + "%(severalUsers)schanged the pinned messages for the room %(count)s times.|other": "%(severalUsers)s han cambiado los mensajes fijados de la sala %(count)s veces.", + "%(oneUser)schanged the pinned messages for the room %(count)s times.|other": "%(oneUser)s han cambiado los mensajes fijados de la sala %(count)s veces.", "Cross-signing is ready but keys are not backed up.": "La firma cruzada está lista, pero no hay copia de seguridad de las claves.", "Rooms and spaces": "Salas y espacios", "Results": "Resultados", @@ -3122,13 +3122,13 @@ "The above, but in as well": "Lo de arriba, pero también en ", "Autoplay videos": "Reproducir automáticamente los vídeos", "Autoplay GIFs": "Reproducir automáticamente los GIFs", - "%(senderName)s pinned a message to this room. See all pinned messages.": "%(senderName)s ha anclado un mensaje en esta sala. Mira todos los mensajes anclados.", - "%(senderName)s pinned a message to this room. See all pinned messages.": "%(senderName)s ha anclado un mensaje en esta sala. Mira todos los mensajes anclados.", + "%(senderName)s pinned a message to this room. See all pinned messages.": "%(senderName)s ha fijado un mensaje en esta sala. Mira todos los mensajes fijados.", + "%(senderName)s pinned a message to this room. See all pinned messages.": "%(senderName)s ha fijado un mensaje en esta sala. Mira todos los mensajes fijados.", "Some encryption parameters have been changed.": "Algunos parámetros del cifrado han cambiado.", "Role in ": "Rol en ", "Currently, %(count)s spaces have access|one": "Ahora mismo, un espacio tiene acceso", "& %(count)s more|one": "y %(count)s más", - "Select the roles required to change various parts of the space": "Selecciona los roles necesarios para cambiar varios ajustes del espacio", + "Select the roles required to change various parts of the space": "Elige los roles que los usuarios deben tener para poder cambiar los distintos ajustes del espacio", "Failed to update the join rules": "Fallo al actualizar las reglas para unirse", "Anyone in can find and join. You can select other spaces too.": "Cualquiera en puede encontrar y unirse. También puedes seleccionar otros espacios.", "Explore %(spaceName)s": "Explorar %(spaceName)s", @@ -3139,8 +3139,8 @@ "Unknown failure": "Fallo desconocido", "Change space avatar": "Cambiar la imagen del espacio", "Change space name": "Cambiar el nombre del espacio", - "Change main address for the space": "Cambiar dirección principal del espacio", - "Change description": "Cambiar descripción", + "Change main address for the space": "Cambiar la dirección principal del espacio", + "Change description": "Cambiar la descripción", "Private community": "Comunidad privada", "Public community": "Comunidad pública", "Message": "Mensaje", @@ -3151,5 +3151,40 @@ "To join a space you'll need an invite.": "Para unirte a un espacio, necesitas que te inviten a él.", "You can also make Spaces from communities.": "También puedes crear espacios a partir de comunidades.", "Temporarily show communities instead of Spaces for this session. Support for this will be removed in the near future. This will reload Element.": "Ver temporalmente comunidades en vez de espacios durante esta sesión. Esta opción desaparecerá en el futuro. Element se recargará.", - "Display Communities instead of Spaces": "Ver comunidades en vez de espacios" + "Display Communities instead of Spaces": "Ver comunidades en vez de espacios", + "Don't leave any rooms": "No salir de ninguna sala", + "Leave all rooms": "Salir de todas las salas", + "Leave some rooms": "Salir de algunas salas", + "Would you like to leave the rooms in this space?": "¿Quieres salir también de las salas del espacio?", + "You are about to leave .": "Estás a punto de salirte de .", + "Collapse quotes │ ⇧+click": "Encoger citas │ ⇧+click", + "%(senderName)s unpinned a message from this room. See all pinned messages.": "%(senderName)s ha dejado de fijar un mensaje de esta sala. Ver todos los mensajes fijados.", + "%(senderName)s unpinned a message from this room. See all pinned messages.": "%(senderName)s ha dejado de fijar un mensaje de esta sala. Ver todos los mensajes fijados.", + "%(reactors)s reacted with %(content)s": "%(reactors)s han reaccionado con %(content)s", + "Expand quotes │ ⇧+click": "Expandir citas │ ⇧+clic", + "This is the start of export of . Exported by at %(exportDate)s.": "Aquí empieza la exportación de . Exportado por el %(exportDate)s.", + "Media omitted - file size limit exceeded": "Archivo omitido - supera el límite de tamaño", + "Media omitted": "Archivo omitido", + "Exporting your data": "Exportando tus datos", + "Export Chat": "Exportar conversación", + "Include Attachments": "Incluir archivos adjuntos", + "Size Limit": "Límite de tamaño", + "Format": "Formato", + "Stop": "Parar", + "MB": "MB", + "In reply to this message": "En respuesta a este mensaje", + "Export chat": "Exportar conversación", + "File Attached": "Archivo adjunto", + "Error fetching file": "Error al recuperar el archivo", + "Topic: %(topic)s": "Tema:", + "%(creatorName)s created this room.": "%(creatorName)s creó esta sala.", + "Current Timeline": "Línea de tiempo actual", + "Specify a number of messages": "Indica una cantidad de mensajes", + "From the beginning": "Desde el principio", + "Plain Text": "Texto", + "JSON": "JSON", + "HTML": "HTML", + "Are you sure you want to exit during this export?": "¿Seguro que quieres salir durante la exportación?", + "%(senderDisplayName)s changed the room avatar.": "%(senderDisplayName)s cambió la imagen de la sala.", + "%(senderDisplayName)s sent a sticker.": "%(senderDisplayName)s envió una pegatina." } diff --git a/src/i18n/strings/et.json b/src/i18n/strings/et.json index cb158ad4cf..9fa345f435 100644 --- a/src/i18n/strings/et.json +++ b/src/i18n/strings/et.json @@ -2705,7 +2705,7 @@ "Invite by username": "Kutsu kasutajanime alusel", "What projects are you working on?": "Mis ettevõtmistega sa tegeled?", "Decrypted event source": "Sündmuse dekrüptitud lähtekood", - "Original event source": "Algse sündmuse lähtekood", + "Original event source": "Sündmuse töötlemata lähtekood", "Failed to remove some rooms. Try again later": "Mõnede jututubade eemaldamine ei õnnestunud. Proovi hiljem uuesti", "Removing...": "Eemaldan...", "Mark as not suggested": "Eemalda soovitus", @@ -3158,5 +3158,47 @@ "Before you upgrade": "Enne uuendamist", "To join a space you'll need an invite.": "Kogukonnakeskusega liitumiseks vajad kutset.", "%(reactors)s reacted with %(content)s": "%(reactors)s kasutajat reageeris järgnevalt: %(content)s", - "Joining space …": "Liitun kohukonnakeskusega…" + "Joining space …": "Liitun kohukonnakeskusega…", + "Would you like to leave the rooms in this space?": "Kas sa soovid lahkuda ka selle kogukonna jututubadest?", + "You are about to leave .": "Sa oled lahkumas kogukonnast.", + "Leave some rooms": "Lahku mõnedest jututubadest", + "Leave all rooms": "Lahku kõikidest jututubadest", + "Don't leave any rooms": "Ära lahku ühestki jututoast", + "Expand quotes │ ⇧+click": "Näita tsitaate │ ⇧+click", + "Collapse quotes │ ⇧+click": "Ahenda tsitaadid │ ⇧+click", + "Media omitted": "Osa meediat jäi eksportimata", + "Media omitted - file size limit exceeded": "Osa meediat jäi vahele failisuuruse piirangu tõttu", + "Include Attachments": "Kaasa manused", + "Size Limit": "Andmemahu piir", + "Format": "Vorming", + "Select from the options below to export chats from your timeline": "Kui soovid oma ajajoonelt mõnda vestlust eksportida, siis vali tingimused alljärgnevalt", + "Export Chat": "Ekspordi vestlus", + "Exporting your data": "Ekspordin sinu andmeid", + "Stop": "Peata", + "Are you sure you want to stop exporting your data? If you do, you'll need to start over.": "Kas sa oled kindel, et soovid oma andmete eksporti katkestada? Kui nii toimid, siis pead hiljem uuesti alustama.", + "Your export was successful. Find it in your Downloads folder.": "Sinu andmete eksport õnnestus. Faili leiad tavapärasest allalaadimiste kaustast.", + "The export was cancelled successfully": "Ekspordi tühistamine õnnestus", + "Export Successful": "Eksport õnnestus", + "MB": "MB", + "Number of messages": "Sõnumite arv", + "Number of messages can only be a number between %(min)s and %(max)s": "Sõnumite arv saab olla ainult number%(min)s ja %(max)s vahemikust", + "Size can only be a number between %(min)s MB and %(max)s MB": "Suurus saab olla number %(min)s MB ja %(max)s MB vahemikust", + "Enter a number between %(min)s and %(max)s": "Sisesta number %(min)s ja %(max)s vahemikust", + "In reply to this message": "Vastuseks sellele sõnumile", + "Export chat": "Ekspordi vestlus", + "File Attached": "Fail on manustatud", + "Error fetching file": "Viga faili laadimisel", + "Topic: %(topic)s": "Teema: %(topic)s", + "This is the start of export of . Exported by at %(exportDate)s.": "See on jututoast eksporditud andmekogu. Viited: , %(exportDate)s.", + "%(creatorName)s created this room.": "%(creatorName)s lõi selle jututoa.", + "Current Timeline": "Praegune ajajoon", + "Specify a number of messages": "Määra sõnumite arv", + "From the beginning": "Algusest alates", + "Plain Text": "Vormindamata tekst", + "JSON": "JSON", + "HTML": "HTML", + "Are you sure you want to exit during this export?": "Kas sa oled kindel, et soovid lõpetada tegevuse selle ekspordi ajal?", + "%(senderDisplayName)s sent a sticker.": "%(senderDisplayName)s saatis kleepsu.", + "%(senderDisplayName)s changed the room avatar.": "%(senderDisplayName)s muutis jututoa tunnuspilti.", + "%(date)s at %(time)s": "%(date)s %(time)s" } diff --git a/src/i18n/strings/fr.json b/src/i18n/strings/fr.json index 6b6bc98a9e..8af2e8cee1 100644 --- a/src/i18n/strings/fr.json +++ b/src/i18n/strings/fr.json @@ -3162,5 +3162,12 @@ "To join a space you'll need an invite.": "Vous avez besoin d’une invitation pour rejoindre un espace.", "You can also make Spaces from communities.": "Vous pouvez également créer des espaces à partir de communautés.", "Temporarily show communities instead of Spaces for this session. Support for this will be removed in the near future. This will reload Element.": "Montre temporairement les communautés au lieu des espaces pour cette session. Il ne sera plus possible de le faire dans un futur proche. Cela va recharger Element.", - "Display Communities instead of Spaces": "Afficher les communautés au lieu des espaces" + "Display Communities instead of Spaces": "Afficher les communautés au lieu des espaces", + "Would you like to leave the rooms in this space?": "Voulez-vous quitter les salons de cet espace ?", + "You are about to leave .": "Vous êtes sur le point de quitter .", + "Leave some rooms": "Quitter certains salons", + "Leave all rooms": "Quitter tous les salons", + "Don't leave any rooms": "Ne quitter aucun salon", + "Expand quotes │ ⇧+click": "Développer les citations │ ⇧+clic", + "Collapse quotes │ ⇧+click": "Réduire les citations │ ⇧+clic" } diff --git a/src/i18n/strings/gl.json b/src/i18n/strings/gl.json index 82c01da943..63fc7d4804 100644 --- a/src/i18n/strings/gl.json +++ b/src/i18n/strings/gl.json @@ -3157,5 +3157,14 @@ "To join a space you'll need an invite.": "Para unirte a un espazo precisas un convite.", "You can also make Spaces from communities.": "Tamén podes crear Espazos a partir de comunidades.", "Temporarily show communities instead of Spaces for this session. Support for this will be removed in the near future. This will reload Element.": "De xeito temporal, mostrar comunidades no lugar de Espazos durante esta sesión. Esta función vai ser eliminada en próximas versións. Reiniciará Element.", - "Display Communities instead of Spaces": "Mostrar Comunidades no lugar de Espazos" + "Display Communities instead of Spaces": "Mostrar Comunidades no lugar de Espazos", + "Would you like to leave the rooms in this space?": "Queres sair destas salas neste espazo?", + "You are about to leave .": "Vas saír de .", + "Leave some rooms": "Sair de algunhas salas", + "Leave all rooms": "Sair de tódalas salas", + "Don't leave any rooms": "Non saír de ningunha sala", + "%(reactors)s reacted with %(content)s": "%(reactors)s reaccionou con %(content)s", + "Joining space …": "Uníndote ao espazo…", + "Expand quotes │ ⇧+click": "Despregar citas | ⇧+click", + "Collapse quotes │ ⇧+click": "Pechar citas | ⇧+click" } diff --git a/src/i18n/strings/hu.json b/src/i18n/strings/hu.json index a547f99c74..c561759db9 100644 --- a/src/i18n/strings/hu.json +++ b/src/i18n/strings/hu.json @@ -3164,5 +3164,35 @@ "You are about to leave .": "Éppen el akarja hagyni teret.", "Leave some rooms": "Kilépés néhány szobából", "Leave all rooms": "Kilépés minden szobából", - "Don't leave any rooms": "Ne lépjen ki egy szobából sem" + "Don't leave any rooms": "Ne lépjen ki egy szobából sem", + "Expand quotes │ ⇧+click": "Idézetek megnyitása │ ⇧+kattintás", + "Collapse quotes │ ⇧+click": "Idézetek bezárása│ ⇧+kattintás", + "Include Attachments": "Csatolmányokkal együtt", + "Size Limit": "Méret korlát", + "Format": "Formátum", + "Export Chat": "Beszélgetés kimentése", + "Exporting your data": "Adatai kimentése", + "Stop": "Állj", + "The export was cancelled successfully": "Az exportálás sikeresen félbeszakítva", + "Export Successful": "Exportálás sikeres", + "MB": "MB", + "Number of messages": "Üzenetek száma", + "In reply to this message": "Válasz erre az üzenetre", + "Export chat": "Beszélgetés kimentése", + "File Attached": "Fájl csatolva", + "Error fetching file": "Fájl letöltés hiba", + "Topic: %(topic)s": "Téma: %(topic)s", + "%(creatorName)s created this room.": "%(creatorName)s hozta létre ezt a szobát.", + "Media omitted - file size limit exceeded": "Média fájl kihagyva - fájl méret korlát túllépés", + "Media omitted": "Média nélkül", + "Current Timeline": "Aktuális idővonal", + "Specify a number of messages": "Üzenetek számának megadása", + "From the beginning": "Az elejétől", + "Plain Text": "Sima szöveg", + "JSON": "JSON", + "HTML": "HTML", + "Are you sure you want to exit during this export?": "Biztos, hogy kilép az exportálás közben?", + "%(senderDisplayName)s sent a sticker.": "%(senderDisplayName)s matricát küldött.", + "%(senderDisplayName)s changed the room avatar.": "%(senderDisplayName)s megváltoztatta a szoba avatar képét.", + "%(date)s at %(time)s": "%(date)s %(time)s" } diff --git a/src/i18n/strings/id.json b/src/i18n/strings/id.json index c0dc0b926a..c96a10ea2a 100644 --- a/src/i18n/strings/id.json +++ b/src/i18n/strings/id.json @@ -199,7 +199,7 @@ "The version of %(brand)s": "Versi %(brand)s", "Your language of choice": "Pilihan bahasamu", "Your homeserver's URL": "URL Homeserver Anda", - "e.g. %(exampleValue)s": "", + "e.g. %(exampleValue)s": "mis. %(exampleValue)s", "Every page you use in the app": "Setiap halaman yang digunakan di app", "e.g. ": "e.g. ", "Your device resolution": "Resolusi perangkat Anda", @@ -214,5 +214,5 @@ "Explore rooms": "Jelajahi ruang", "Sign In": "Masuk", "Create Account": "Buat Akun", - "Identity server": "Server Identitas" + "Identity server": "Server identitas" } diff --git a/src/i18n/strings/it.json b/src/i18n/strings/it.json index 6cf5ff1e07..b12554e256 100644 --- a/src/i18n/strings/it.json +++ b/src/i18n/strings/it.json @@ -1218,14 +1218,14 @@ "Do not use an identity server": "Non usare un server di identità", "You do not have the required permissions to use this command.": "Non hai l'autorizzazione necessaria per usare questo comando.", "Use an identity server": "Usa un server di identità", - "Use an identity server to invite by email. Click continue to use the default identity server (%(defaultIdentityServerName)s) or manage in Settings.": "Usa un server di identità per invitare via email. Clicca \"Continua\" per usare quello predefinito (%(defaultIdentityServerName)s) o gestiscilo nelle impostazioni.", + "Use an identity server to invite by email. Click continue to use the default identity server (%(defaultIdentityServerName)s) or manage in Settings.": "Usa un server d'identità per invitare via email. Clicca \"Continua\" per usare quello predefinito (%(defaultIdentityServerName)s) o gestiscilo nelle impostazioni.", "Use an identity server to invite by email. Manage in Settings.": "Usa un server di identità per invitare via email. Gestisci nelle impostazioni.", "Upgrade the room": "Aggiorna la stanza", "Enable room encryption": "Attiva la crittografia della stanza", "Deactivate user?": "Disattivare l'utente?", "Deactivating this user will log them out and prevent them from logging back in. Additionally, they will leave all the rooms they are in. This action cannot be reversed. Are you sure you want to deactivate this user?": "Disattivare questo utente lo disconnetterà e ne impedirà nuovi accessi. In aggiunta, abbandonerà tutte le stanze in cui è presente. Questa azione non può essere annullata. Sei sicuro di volere disattivare questo utente?", "Deactivate user": "Disattiva utente", - "Use an identity server to invite by email. Use the default (%(defaultIdentityServerName)s) or manage in Settings.": "Usa un server di identità per invitare via email. Usa quello predefinito (%(defaultIdentityServerName)s) o gestiscilo nelle impostazioni.", + "Use an identity server to invite by email. Use the default (%(defaultIdentityServerName)s) or manage in Settings.": "Usa un server d'identità per invitare via email. Usa quello predefinito (%(defaultIdentityServerName)s) o gestiscilo nelle impostazioni.", "Use an identity server to invite by email. Manage in Settings.": "Usa un server di identità per invitare via email. Gestisci nelle impostazioni.", "Sends a message as plain text, without interpreting it as markdown": "Invia un messaggio in testo semplice, senza interpretarlo come markdown", "Error changing power level": "Errore cambiando il livello di poteri", @@ -1236,11 +1236,11 @@ "This invite to %(roomName)s was sent to %(email)s": "Questo invito per %(roomName)s è stato inviato a %(email)s", "Use an identity server in Settings to receive invites directly in %(brand)s.": "Usa un server di identià nelle impostazioni per ricevere inviti direttamente in %(brand)s.", "Share this email in Settings to receive invites directly in %(brand)s.": "Condividi questa email nelle impostazioni per ricevere inviti direttamente in %(brand)s.", - "Change identity server": "Cambia Identity Server", - "Disconnect from the identity server and connect to instead?": "Disconnettersi dall'Identity Server e connettesi invece a ?", - "Disconnect identity server": "Disconnetti dall'Identity Server", - "You are still sharing your personal data on the identity server .": "Stai ancora fornendo le tue informazioni personali sull'Identity Server .", - "We recommend that you remove your email addresses and phone numbers from the identity server before disconnecting.": "Ti suggeriamo di rimuovere il tuo indirizzo email e numero di telefono dall'Identity Server prima di disconnetterti.", + "Change identity server": "Cambia server d'identità", + "Disconnect from the identity server and connect to instead?": "Disconnettersi dal server d'identità e connettesi invece a ?", + "Disconnect identity server": "Disconnetti dal server d'identità", + "You are still sharing your personal data on the identity server .": "Stai ancora fornendo le tue informazioni personali sul server d'identità .", + "We recommend that you remove your email addresses and phone numbers from the identity server before disconnecting.": "Ti suggeriamo di rimuovere il tuo indirizzo email e numero di telefono dal server d'identità prima di disconnetterti.", "Disconnect anyway": "Disconnetti comunque", "Error changing power level requirement": "Errore nella modifica del livello dei permessi", "An error occurred changing the room's power level requirements. Ensure you have sufficient permissions and try again.": "C'é stato un errore nel cambio di libelli dei permessi. Assicurati di avere i permessi necessari e riprova.", @@ -3161,5 +3161,12 @@ "Temporarily show communities instead of Spaces for this session. Support for this will be removed in the near future. This will reload Element.": "Mostra temporaneamente le comunità invece degli spazi per questa sessione. Il supporto per questa azione verrà rimosso nel breve termine. Element verrà ricaricato.", "Display Communities instead of Spaces": "Mostra le comunità invece degli spazi", "%(reactors)s reacted with %(content)s": "%(reactors)s ha reagito con %(content)s", - "Joining space …": "Ingresso nello spazio …" + "Joining space …": "Ingresso nello spazio …", + "Would you like to leave the rooms in this space?": "Vuoi uscire dalle stanze di questo spazio?", + "You are about to leave .": "Stai per uscire da .", + "Leave some rooms": "Esci da alcune stanze", + "Leave all rooms": "Esci da tutte le stanze", + "Don't leave any rooms": "Non uscire da alcuna stanza", + "Expand quotes │ ⇧+click": "Espandi le menzioni │ ⇧+clic", + "Collapse quotes │ ⇧+click": "Riduci le menzioni │ ⇧+clic" } diff --git a/src/i18n/strings/ko.json b/src/i18n/strings/ko.json index a675a151b0..5843fe8969 100644 --- a/src/i18n/strings/ko.json +++ b/src/i18n/strings/ko.json @@ -271,7 +271,7 @@ "This process allows you to export the keys for messages you have received in encrypted rooms to a local file. You will then be able to import the file into another Matrix client in the future, so that client will also be able to decrypt these messages.": "이 과정으로 암호화한 방에서 받은 메시지의 키를 로컬 파일로 내보낼 수 있습니다. 그런 다음 나중에 다른 Matrix 클라이언트에서 파일을 가져와서, 해당 클라이언트에서도 이 메시지를 복호화할 수 있도록 할 수 있습니다.", "The exported file will allow anyone who can read it to decrypt any encrypted messages that you can see, so you should be careful to keep it secure. To help with this, you should enter a passphrase below, which will be used to encrypt the exported data. It will only be possible to import the data by using the same passphrase.": "내보낸 파일이 있으면 누구든 암호화한 메시지를 복호화해서 읽을 수 있으므로, 보안에 신경을 써야 합니다. 이런 이유로 내보낸 파일을 암호화하도록 아래에 암호를 입력하는 것을 추천합니다. 같은 암호를 사용해야 데이터를 불러올 수 있을 것입니다.", "This process allows you to import encryption keys that you had previously exported from another Matrix client. You will then be able to decrypt any messages that the other client could decrypt.": "이 과정으로 다른 Matrix 클라이언트에서 내보낸 암호화 키를 가져올 수 있습니다. 그런 다음 이전 클라이언트에서 복호화할 수 있는 모든 메시지를 복호화할 수 있습니다.", - "The export file will be protected with a passphrase. You should enter the passphrase here, to decrypt the file.": "내보낸 파일이 암호로 보호되어 있습니다. 파일을 복호화하려면, 여기에 암호를 입력해야 합니다.", + "The export file will be protected with a passphrase. You should enter the passphrase here, to decrypt the file.": "내보낸 파일이 암호로 보호되어 있습니다. 파일을 복호화하려면, 여기에 암호를 입력해야 합니다.", "Are you sure you wish to remove (delete) this event? Note that if you delete a room name or topic change, it could undo the change.": "이 이벤트를 감추길(삭제하길) 원하세요? 방 이름을 삭제하거나 주제를 바꾸면, 다시 생길 수도 있습니다.", "Unable to restore session": "세션을 복구할 수 없음", "If you have previously used a more recent version of %(brand)s, your session may be incompatible with this version. Close this window and return to the more recent version.": "이전에 최근 버전의 %(brand)s을 썼다면, 세션이 이 버전과 맞지 않을 것입니다. 창을 닫고 최근 버전으로 돌아가세요.", @@ -840,7 +840,7 @@ "There was an error joining the room": "방에 참가하는 동안 오류가 발생했습니다", "Sorry, your homeserver is too old to participate in this room.": "죄송합니다, 이 방에 참여하기엔 홈서버가 너무 오래됬습니다.", "Custom user status messages": "맞춤 사용자 상태 메시지", - "Group & filter rooms by custom tags (refresh to apply changes)": "맞춤 태그로 방을 그룹 & 필터\n(변경 사항을 적용하려면 새로고침)", + "Group & filter rooms by custom tags (refresh to apply changes)": "맞춤 태그로 방을 그룹 & 필터 (변경 사항을 적용하려면 새로고침)", "You do not have the required permissions to use this command.": "이 명령어를 사용하기 위해 필요한 권한이 없습니다.", "Render simple counters in room header": "방 헤더에 간단한 카운터 표현", "Enable Emoji suggestions while typing": "입력 중 이모지 제안 켜기", @@ -1414,10 +1414,13 @@ "Create Account": "계정 만들기", "Integration manager": "통합 관리자", "Using this widget may share data with %(widgetDomain)s & your integration manager.": "이 위젯을 사용하면 %(widgetDomain)s & 통합 관리자와 데이터를 공유합니다.", - "Identity server is": "ID 서버:", + "Identity server is": "ID 서버는", "Identity server": "ID 서버", "Identity server (%(server)s)": "ID 서버 (%(server)s)", "Could not connect to identity server": "ID 서버에 연결할 수 없음", "Not a valid identity server (status code %(code)s)": "올바르지 않은 ID 서버 (상태 코드 %(code)s)", - "Identity server URL must be HTTPS": "ID 서버 URL은 HTTPS이어야 함" + "Identity server URL must be HTTPS": "ID 서버 URL은 HTTPS이어야 함", + "Appearance": "모습", + "Appearance Settings only affect this %(brand)s session.": "모습 설정은 이 %(brand)s 세션에만 영향을 끼칩니다.", + "Customise your appearance": "모습 개인화하기" } diff --git a/src/i18n/strings/lv.json b/src/i18n/strings/lv.json index 30a455ad50..a242fb0f49 100644 --- a/src/i18n/strings/lv.json +++ b/src/i18n/strings/lv.json @@ -12,7 +12,7 @@ "Microphone": "Mikrofons", "Camera": "Kamera", "Advanced": "Papildu", - "Always show message timestamps": "Vienmēr rādīt ziņojumu laika zīmogu", + "Always show message timestamps": "Vienmēr rādīt ziņas laika zīmogu", "Authentication": "Autentifikācija", "%(items)s and %(lastItem)s": "%(items)s un %(lastItem)s", "A new password must be entered.": "Nepieciešams ievadīt jauno paroli.", @@ -23,7 +23,7 @@ "Are you sure you want to reject the invitation?": "Vai tiešām vēlaties noraidīt šo uzaicinājumu?", "Attachment": "Pielikums", "Ban": "Liegt pieeju", - "Banned users": "Lietotāji, kuriem liegta pieeju", + "Banned users": "Lietotāji, kuriem liegta pieeja", "Bans user with given id": "Liedz pieeju lietotājam ar norādīto id", "Can't connect to homeserver - please check your connectivity, ensure your homeserver's SSL certificate is trusted, and that a browser extension is not blocking requests.": "Neizdodas savienoties ar bāzes serveri. Pārbaudi tīkla savienojumu un pārliecinies, ka bāzes servera SSL sertifikāts ir uzticams, kā arī pārlūkā instalētie paplašinājumi nebloķē pieprasījumus.", "Can't connect to homeserver via HTTP when an HTTPS URL is in your browser bar. Either use HTTPS or enable unsafe scripts.": "Neizdodas savienoties ar bāzes serveri izmantojot HTTP protokolu, kad pārlūka adreses laukā norādīts HTTPS protokols. Tā vietā izmanto HTTPS vai iespējo nedrošos skriptus.", @@ -32,7 +32,7 @@ "%(senderDisplayName)s changed the room name to %(roomName)s.": "%(senderDisplayName)s nomainīja istabas nosaukumu uz %(roomName)s.", "%(senderDisplayName)s removed the room name.": "%(senderDisplayName)s dzēsa istabas nosaukumu.", "%(senderDisplayName)s changed the topic to \"%(topic)s\".": "%(senderDisplayName)s nomainīja istabas tematu uz \"%(topic)s\".", - "Changes your display nickname": "Nomaina jūsu parādāmo vārdu", + "Changes your display nickname": "Maina jūsu parādāmo vārdu", "Close": "Aizvērt", "Command error": "Komandas kļūda", "Commands": "Komandas", @@ -47,7 +47,7 @@ "Decrypt %(text)s": "Atšifrēt %(text)s", "Deops user with given id": "Atceļ operatora statusu lietotājam ar norādīto Id", "Default": "Noklusējuma", - "Disinvite": "Atsaukt", + "Disinvite": "Atsaukt uzaicinājumu", "Displays action": "Parāda darbību", "Download %(text)s": "Lejupielādēt: %(text)s", "Email": "Epasts", @@ -75,12 +75,12 @@ "Failed to set display name": "Neizdevās iestatīt parādāmo vārdu", "Failed to unban": "Neizdevās atbanot/atbloķēt (atcelt pieejas liegumu)", "Failed to upload profile picture!": "Neizdevās augšupielādēt profila attēlu!", - "Failed to verify email address: make sure you clicked the link in the email": "Neizdevās apstiprināt epasta adresi. Pārbaudi, vai Tu esi noklikšķinājis/usi saiti epasta ziņā", + "Failed to verify email address: make sure you clicked the link in the email": "Neizdevās apstiprināt epasta adresi. Pārbaudi, vai esat noklikšķinājis/usi saiti epasta ziņā", "Failure to create room": "Neizdevās izveidot istabu", "Favourite": "Izlase", "Favourites": "Izlase", - "Filter room members": "Filtrēt istabas biedrus", - "Forget room": "\"Aizmirst\" istabu", + "Filter room members": "Atfiltrēt istabas dalībniekus", + "Forget room": "Aizmirst istabu", "For security, this session has been signed out. Please sign in again.": "Drošības nolūkos šī sesija ir pārtraukta. Lūdzu, pieraksties par jaunu.", "%(userId)s from %(fromPowerLevel)s to %(toPowerLevel)s": "%(userId)s no %(fromPowerLevel)s uz %(toPowerLevel)s", "Hangup": "Beigt zvanu", @@ -107,9 +107,9 @@ "Leave room": "Pamest istabu", "Logout": "Izrakstīties", "Low priority": "Zema prioritāte", - "%(senderName)s made future room history visible to all room members, from the point they are invited.": "%(senderName)s padarīja istabas ziņu turpmāko vēsturi redzamu visiem istabas biedriem no brīža, kad tie tika uzaicināti.", - "%(senderName)s made future room history visible to all room members, from the point they joined.": "%(senderName)s padarīja istabas ziņu turpmāko vēsturi redzamu visiem istabas biedriem ar brīdi, kad tie pievienojās.", - "%(senderName)s made future room history visible to all room members.": "%(senderName)s padarīja istabas ziņu turpmāko vēsturi redzamu visiem istabas biedriem.", + "%(senderName)s made future room history visible to all room members, from the point they are invited.": "%(senderName)s padarīja istabas ziņu turpmāko vēsturi redzamu visiem istabas dalībniekiem no brīža, kad tie tika uzaicināti.", + "%(senderName)s made future room history visible to all room members, from the point they joined.": "%(senderName)s padarīja istabas ziņu turpmāko vēsturi redzamu visiem istabas dalībniekiem ar brīdi, kad tie pievienojās.", + "%(senderName)s made future room history visible to all room members.": "%(senderName)s padarīja istabas ziņu turpmāko vēsturi redzamu visiem istabas dalībniekiem.", "%(senderName)s made future room history visible to anyone.": "%(senderName)s padarīja istabas ziņu turpmāko vēsturi redzamu ikvienam.", "%(senderName)s made future room history visible to unknown (%(visibility)s).": "%(senderName)s padarīja istabas ziņu turpmāko vēsturi redzamu nepazīstamajiem (%(visibility)s).", "Missing room_id in request": "Iztrūkstošs room_id pieprasījumā", @@ -193,7 +193,7 @@ "This phone number is already in use": "Šis telefona numurs jau tiek izmantots", "This room": "Šajā istabā", "This room is not accessible by remote Matrix servers": "Šī istaba nav pieejama no citiem Matrix serveriem", - "Tried to load a specific point in this room's timeline, but you do not have permission to view the message in question.": "Notika mēģinājums ielādēt šīs istabas specifisku laikpaziņojumu sadaļu, bet Tev nav atļaujas skatīt šo ziņu.", + "Tried to load a specific point in this room's timeline, but you do not have permission to view the message in question.": "Notika mēģinājums specifisku posmu šīs istabas laika skalā, bet jums nav atļaujas skatīt konkrēto ziņu.", "Tried to load a specific point in this room's timeline, but was unable to find it.": "Mēģinājums ielādēt šīs istabas čata vēstures izvēlēto posmu neizdevās, jo tas netika atrasts.", "Unable to add email address": "Neizdevās pievienot epasta adresi", "Unable to remove contact information": "Neizdevās dzēst kontaktinformāciju", @@ -204,9 +204,9 @@ "Unnamed Room": "Istaba bez nosaukuma", "Cancel": "Atcelt", "Create new room": "Izveidot jaunu istabu", - "Dismiss": "Aizvērt/atcelt", + "Dismiss": "Aizvērt", "You have enabled URL previews by default.": "URL priekšskatījumi pēc noklusējuma jums iriespējoti .", - "Upload avatar": "Augšupielādēt avataru (profila attēlu)", + "Upload avatar": "Augšupielādēt avataru", "Upload Failed": "Augšupielāde (nosūtīšana) neizdevās", "Upload file": "Augšupielādēt failu", "Upload new:": "Augšupielādēt jaunu:", @@ -312,7 +312,7 @@ "Create": "Izveidot", "Featured Rooms:": "Ieteiktās istabas:", "Featured Users:": "Ieteiktie lietotāji:", - "Automatically replace plain text Emoji": "Automātiski aizvietot tekstu ar emocīšiem (emoji)", + "Automatically replace plain text Emoji": "Automātiski aizstāt vienkāršā teksta emocijzīmes", "Failed to upload image": "Neizdevās augšupielādēt attēlu", "%(widgetName)s widget added by %(senderName)s": "%(senderName)s pievienoja %(widgetName)s vidžetu", "%(widgetName)s widget removed by %(senderName)s": "%(senderName)s dzēsa vidžetu %(widgetName)s", @@ -322,7 +322,7 @@ "Send": "Sūtīt", "Leave": "Pamest", "Unnamed room": "Nenosaukta istaba", - "Guests can join": "Var pievienoties viesi", + "Guests can join": "Viesi var pievienoties", "The platform you're on": "Izmantotā operētājsistēma", "The version of %(brand)s": "%(brand)s versija", "Your language of choice": "Izvēlētā valoda", @@ -335,10 +335,10 @@ "%(weekDayName)s, %(monthName)s %(day)s %(fullYear)s": "%(weekDayName)s, %(monthName)s %(day)s %(fullYear)s", "Who would you like to add to this community?": "Kurus cilvēkus Tu vēlētos pievienot šai kopienai?", "Warning: any person you add to a community will be publicly visible to anyone who knows the community ID": "Brīdinājums: ikviens, kurš tiek pievienots kopienai būs publiski redzams visiem, kuri zin kopienas Id", - "Invite new community members": "Uzaicināt jaunus kopienas biedrus", + "Invite new community members": "Uzaicināt jaunus kopienas dalībniekus", "Invite to Community": "Uzaicināt kopienā", "Which rooms would you like to add to this community?": "Kuras istabas vēlies pievienot šai kopienai?", - "Show these rooms to non-members on the community page and room list?": "Vai ne-biedriem rādīt kopienas lapā un istabu sarakstā šīs istabas?", + "Show these rooms to non-members on the community page and room list?": "Vai rādīt šis istabas kopienas lapā un istabu sarakstā tiem, kas nav dalībnieki?", "Add rooms to the community": "Pievienot istabas kopienai", "Add to community": "Pievienot kopienai", "Failed to invite the following users to %(groupId)s:": "Neizdevās uzaicināt sekojošus lietotājus grupā %(groupId)s:", @@ -384,10 +384,10 @@ "World readable": "Pieejama ikvienam un no visurienes", "Failed to remove tag %(tagName)s from room": "Neizdevās istabai noņemt birku %(tagName)s", "Failed to add tag %(tagName)s to room": "Neizdevās istabai pievienot birku %(tagName)s", - "Banned by %(displayName)s": "%(displayName)s liedzis piekļuvi", - "Members only (since the point in time of selecting this option)": "Tikai biedri (no šī parametra iestatīšanas brīža)", - "Members only (since they were invited)": "Tikai biedri (no to uzaicināšanas brīža)", - "Members only (since they joined)": "Tikai biedri (kopš pievienošanās)", + "Banned by %(displayName)s": "%(displayName)s liedzis pieeju", + "Members only (since the point in time of selecting this option)": "Tikai dalībnieki (no šī parametra iestatīšanas brīža)", + "Members only (since they were invited)": "Tikai dalībnieki (no to uzaicināšanas brīža)", + "Members only (since they joined)": "Tikai dalībnieki (kopš pievienošanās)", "Invalid community ID": "Nederīgs kopienas Id", "'%(groupId)s' is not a valid community ID": "'%(groupId)s' nav derīgs kopienas Id", "Flair": "Noskaņa", @@ -400,11 +400,11 @@ "Failed to copy": "Nokopēt neizdevās", "A text message has been sent to %(msisdn)s": "Teksta ziņa tika nosūtīta uz %(msisdn)s", "Remove from community": "Dzēst no kopienas", - "Disinvite this user from community?": "Atcelt šim lietotājam nosūtīto uzaicinājumu pievienoties kopienai?", + "Disinvite this user from community?": "Atsaukt šim lietotājam nosūtīto uzaicinājumu pievienoties kopienai?", "Remove this user from community?": "Izdzēst šo lietotāju no kopienas?", "Failed to withdraw invitation": "Neizdevās atcelt uzaicinājumu", "Failed to remove user from community": "Neizdevās izdzēst lietotāju no kopienas", - "Filter community members": "Kopienas biedru filtrs", + "Filter community members": "Kopienas dalībnieku filtrs", "Are you sure you want to remove '%(roomName)s' from %(groupId)s?": "Vai tiešām vēlaties dzēst '%(roomName)s' no %(groupId)s?", "Removing a room from the community will also remove it from the community page.": "Dzēšot istabu no kopienas tā tiks dzēsta arī no kopienas lapas.", "Failed to remove room from community": "Neizdevās dzēst istabu no kopienas", @@ -526,8 +526,8 @@ "Unable to reject invite": "Neizdevās noraidīt uzaicinājumu", "Leave %(groupName)s?": "Pamest %(groupName)s?", "%(inviter)s has invited you to join this community": "%(inviter)s uzaicināja jūs pievienoties šai kopienai", - "You are an administrator of this community": "Tu esi šīs kopienas administrators", - "You are a member of this community": "Tu esi šīs kopienas biedrs", + "You are an administrator of this community": "Jūs esat šīs kopienas administrators", + "You are a member of this community": "Jūs esat šīs kopienas dalībnieks", "Long Description (HTML)": "Garais apraksts (HTML)", "Community %(groupId)s not found": "Kopiena %(groupId)s nav atrasta", "Your Communities": "Jūsu kopienas", @@ -546,7 +546,7 @@ "Update": "Atjaunināt", "What's New": "Kas jauns", "On": "Ieslēgt", - "Changelog": "Izmaiņu saraksts (vēsture)", + "Changelog": "Izmaiņu vēsture", "Waiting for response from server": "Tiek gaidīta atbilde no servera", "Send Custom Event": "Sūtīt individuālu notikumu", "Failed to send logs: ": "Neizdevās nosūtīt logfailus: ", @@ -560,7 +560,7 @@ "Source URL": "Avota URL adrese", "Messages sent by bot": "Botu nosūtītās ziņas", "Filter results": "Filtrēt rezultātus", - "Members": "Biedri", + "Members": "Dalībnieki", "No update available.": "Nav atjauninājumu.", "Resend": "Nosūtīt atkārtoti", "Collecting app version information": "Tiek iegūta programmas versijas informācija", @@ -842,7 +842,7 @@ "Interactively verify by Emoji": "Abpusēji verificēt ar emocijzīmēm", "Manually Verify by Text": "Manuāli verificēt ar tekstu", "%(senderName)s revoked the invitation for %(targetDisplayName)s to join the room.": "%(senderName)s atsauca uzaicinājumu %(targetDisplayName)s pievienoties istabai.", - "%(senderName)s changed the addresses for this room.": "%(senderName)s izmainīja istabas adreses.", + "%(senderName)s changed the addresses for this room.": "%(senderName)s nomainīja istabas adreses.", "%(senderName)s removed the main address for this room.": "%(senderName)s dzēsa galveno adresi šai istabai.", "%(senderName)s set the main address for this room to %(address)s.": "%(senderName)s iestatīja istabas galveno adresi kā %(address)s.", "Afghanistan": "Afganistāna", @@ -920,7 +920,7 @@ "Phone numbers": "Tālruņa numuri", "Email Address": "Epasta adrese", "Email addresses": "Epasta adreses", - "Change topic": "Mainīt tematu", + "Change topic": "Nomainīt tematu", "Change room avatar": "Mainīt istabas avataru", "Change main address for the room": "Mainīt istabas galveno adresi", "%(senderName)s changed the main and alternative addresses for this room.": "%(senderName)s nomainīja istabas galveno un alternatīvo adresi.", @@ -932,7 +932,7 @@ "Invite users": "Uzaicināt lietotājus", "Send messages": "Sūtīt ziņas", "Default role": "Noklusējuma loma", - "Changes to who can read history will only apply to future messages in this room. The visibility of existing history will be unchanged.": "Izmaiņas attiecībā uz to, kas var lasīt vēsturi, attieksies tikai uz nākamajiem ziņojumiem šajā istabā. Esošās vēstures redzamība nemainīsies.", + "Changes to who can read history will only apply to future messages in this room. The visibility of existing history will be unchanged.": "Izmaiņas attiecībā uz to, kas var lasīt vēsturi, attieksies tikai uz nākamajiem ziņām šajā istabā. Esošās vēstures redzamība nemainīsies.", "Never send encrypted messages to unverified sessions in this room from this session": "Nesūtīt šifrētas ziņas no šīs sesijas neverificētām sesijām šajā istabā", "Encrypted": "Šifrēts", "Enable room encryption": "Iespējot istabas šifrēšanu", @@ -1053,7 +1053,7 @@ "Reject & Ignore user": "Noraidīt un ignorēt lietotāju", "Do you want to chat with %(user)s?": "Vai vēlaties sarakstīties ar %(user)s?", "This homeserver doesn't offer any login flows which are supported by this client.": "Šis bāzes serveris neatbalsta nevienu pierakstīšanās metodi, kuru atbalstītu šis klients.", - "Explore rooms": "Pārlūkot telpas", + "Explore rooms": "Pārlūkot istabas", "Confirm Security Phrase": "Apstipriniet slepeno frāzi", "Safeguard against losing access to encrypted messages & data by backing up encryption keys on your server.": "Nodrošinieties pret piekļuves zaudēšanu šifrētām ziņām un datiem, dublējot šifrēšanas atslēgas savā serverī.", "Use a secret phrase only you know, and optionally save a Security Key to use for backup.": "Izmantojiet tikai jums zināmu slepeno frāzi un pēc izvēles saglabājiet drošības atslēgu, lai to izmantotu dublēšanai.", @@ -1113,7 +1113,7 @@ "The homeserver may be unavailable or overloaded.": "Iespējams, bāzes serveris nav pieejams vai ir pārslogots.", "%(brand)s failed to get the public room list.": "%(brand)s neizdevās iegūt publisko istabu sarakstu.", "%(brand)s failed to get the protocol list from the homeserver. The homeserver may be too old to support third party networks.": "%(brand)s neizdevās iegūt protokolu sarakstu no bāzes servera. Iespējams, bāzes serveris ir pārāk vecs, lai atbalstītu trešo pušu tīklus.", - "Add a photo so people know it's you.": "Pievienot foto, lai cilvēki zina, ka tas esi tu.", + "Add a photo so people know it's you.": "Pievienot foto, lai cilvēki zina, ka tas esat jūs.", "Great, that'll help people know it's you": "Lieliski, tas ļaus cilvēkiem tevi atpazīt", "This homeserver does not support communities": "Šis bāzes serveris neatbalsta kopienas", "Everyone": "Jebkurš", @@ -1148,7 +1148,7 @@ "Bulk options": "Lielapjoma opcijas", "Clear cache and reload": "Notīrīt kešatmiņu un pārlādēt", "Versions": "Versijas", - "Keyboard Shortcuts": "Klaviatūras saīsnes", + "Keyboard Shortcuts": "Īsinājumtaustiņi", "FAQ": "BUJ", "For help with using %(brand)s, click here.": "Palīdzībai %(brand)s izmantošanā, spiediet šeit.", "Account management": "Konta pārvaldība", @@ -1388,38 +1388,38 @@ "You can log in, but some features will be unavailable until the identity server is back online. If you keep seeing this warning, check your configuration or contact a server admin.": "Jūs varat ierakstīties, taču dažas funkcijas nebūs pieejamas, kamēr nebūs pieejams identitāšu serveris. Ja arī turpmāk redzat šo brīdinājumu, lūdzu, pārbaudiet konfigurāciju vai sazinieties ar servera administratoru.", "Cannot reach identity server": "Neizdodas sasniegt identitāšu serveri", "Ask your %(brand)s admin to check your config for incorrect or duplicate entries.": "Paprasiet %(brand)s administratoram pārbaudīt, vai jūsu konfigurācijas failā nav nepareizu vai dublējošos ierakstu.", - "See %(msgtype)s messages posted to your active room": "Redzēt jūsu aktīvajā telpā izliktās %(msgtype)s ziņas", - "See %(msgtype)s messages posted to this room": "Redzēt šajā telpā izliktās %(msgtype)s ziņas", + "See %(msgtype)s messages posted to your active room": "Apskatīt %(msgtype)s ziņas, kas publicētas jūsu aktīvajā istabā", + "See %(msgtype)s messages posted to this room": "Apskatīt %(msgtype)s ziņas, kas publicētas šajā istabā", "Send %(msgtype)s messages as you in your active room": "Sūtīt %(msgtype)s ziņas savā vārdā savā aktīvajā telpā", "Send %(msgtype)s messages as you in this room": "Sūtīt %(msgtype)s ziņas savā vārdā šajā telpā", "See general files posted to your active room": "Redzēt jūsu aktīvajā telpā izliktos failus", "See general files posted to this room": "Redzēt šajā telpā izliktos failus", - "Send general files as you in your active room": "Sūtīt failus savā vārdā jūsu aktīvajā telpā", - "Send general files as you in this room": "Sūtīt failus savā vārdā šajā telpā", + "Send general files as you in your active room": "Sūtīt failus savā vārdā jūsu aktīvajā istabā", + "Send general files as you in this room": "Sūtīt failus savā vārdā šajā istabā", "See videos posted to your active room": "Redzēt video, kuri izlikti jūsu aktīvajā telpā", "See videos posted to this room": "Redzēt video, kuri izlikti šajā telpā", - "Send videos as you in your active room": "Sūtīt video savā vārdā savā aktīvajā telpā", - "Send videos as you in this room": "Sūtīt video savā vārdā šajā telpā", + "Send videos as you in your active room": "Sūtīt video savā vārdā savā aktīvajā istabā", + "Send videos as you in this room": "Sūtīt video savā vārdā šajā istabā", "See images posted to your active room": "Redzēt attēlus, kuri izlikti jūsu aktīvajā telpā", "See images posted to this room": "Redzēt attēlus, kuri izlikti šajā telpā", - "Send images as you in your active room": "Sūtīt attēlus savā vārdā savā aktīvajā telpā", - "Send images as you in this room": "Sūtīt attēlus savā vārdā šajā telpā", + "Send images as you in your active room": "Sūtīt attēlus savā vārdā savā aktīvajā istabā", + "Send images as you in this room": "Sūtīt attēlus savā vārdā šajā istabā", "See emotes posted to your active room": "Redzēt emocijas, kuras izvietotas jūsu aktīvajā telpā", "See emotes posted to this room": "Redzēt emocijas, kuras izvietotas šajā telpā", - "Send emotes as you in your active room": "Nosūtīt emocijas savā vārdā uz savu aktīvo telpu", - "Send emotes as you in this room": "Nosūtīt emocijas savā vārdā uz šo telpu", + "Send emotes as you in your active room": "Nosūtīt emocijas savā vārdā uz savu aktīvo istabu", + "Send emotes as you in this room": "Nosūtīt emocijas savā vārdā uz šo istabu", "See text messages posted to your active room": "Redzēt teksta ziņas, kuras izvietotas jūsu aktīvajā telpā", "See text messages posted to this room": "Redzēt teksta ziņas, kas izvietotas šajā telpā", - "Send text messages as you in your active room": "Sūtīt teksta ziņas savā vārdā jūsu aktīvajā telpā", - "Send text messages as you in this room": "Sūtīt teksta ziņas savā vārdā šajā telpā", + "Send text messages as you in your active room": "Sūtīt teksta ziņas savā vārdā jūsu aktīvajā istabā", + "Send text messages as you in this room": "Sūtīt teksta ziņas savā vārdā šajā istabā", "See messages posted to your active room": "Redzēt ziņas, kas izvietotas jūsu aktīvajā telpā", "See messages posted to this room": "Redzēt ziņas, kas izvietotas šajā telpā", - "Send messages as you in your active room": "Sūtiet ziņas savā vārdā jūsu aktīvajā telpā", - "Send messages as you in this room": "Sūtīt ziņas savā vārdā šajā telpā", + "Send messages as you in your active room": "Sūtiet ziņas savā vārdā jūsu aktīvajā istabā", + "Send messages as you in this room": "Sūtīt ziņas savā vārdā šajā istabā", "The %(capability)s capability": "%(capability)s iespējas", - "See %(eventType)s events posted to your active room": "Redzēt, kad %(eventType)s notikumi izvietoti jūsu aktīvajā telpā", + "See %(eventType)s events posted to your active room": "Apskatīt %(eventType)s notikumus jūsu aktīvajā istabā", "Send %(eventType)s events as you in your active room": "Sūtīt %(eventType)s notikumus savā vārdā savā aktīvajā telpā", - "See %(eventType)s events posted to this room": "Redzēt %(eventType)s notikumus, kas izvietoti šajā telpā", + "See %(eventType)s events posted to this room": "Apskatīt %(eventType)s notikumus šajā istabā", "Send %(eventType)s events as you in this room": "Sūtiet %(eventType)s notikumus jūsu vārdā šajā telpā", "with state key %(stateKey)s": "ar stāvokļa/statusa atslēgu %(stateKey)s", "with an empty state key": "ar tukšu stāvokļa/statusa atslēgu", @@ -1428,23 +1428,23 @@ "See when a sticker is posted in this room": "Redzēt, kad šajā telpā parādās stikers", "Send stickers to this room as you": "Nosūtīt stikerus savā vārdā uz šo telpu", "See when people join, leave, or are invited to your active room": "Redzēt, kad cilvēki ienāk/pievienojas, pamet/atvienojas vai ir uzaicināti uz jūsu aktīvo telpu", - "Kick, ban, or invite people to this room, and make you leave": "Izspert, liegt vai uzaicināt cilvēkus uz šo telpu un likt jums aiziet", - "Kick, ban, or invite people to your active room, and make you leave": "Izspert, liegt vai uzaicināt cilvēkus uz jūsu aktīvo telpu un likt jums aiziet", + "Kick, ban, or invite people to this room, and make you leave": "Padzīt, liegt pieeju vai uzaicināt cilvēkus uz šo istabu un likt jums aiziet", + "Kick, ban, or invite people to your active room, and make you leave": "Padzīt, liegt pieeju vai uzaicināt cilvēkus uz jūsu aktīvo istabu un likt jums aiziet", "See when people join, leave, or are invited to this room": "Redzēt, kad cilvēki ienāk/pievienojas, pamet/atvienojas vai ir uzaicināti uz šo telpu", "See when the avatar changes in your active room": "Redzēt, kad notiek jūsu aktīvās istabas avatara izmaiņas", - "Change the avatar of your active room": "Mainīt jūsu aktīvās telpas avataru", + "Change the avatar of your active room": "Nomainīt jūsu aktīvās istabas avataru", "See when the avatar changes in this room": "Redzēt, kad notiek šīs istabas avatara izmaiņas", - "Change the avatar of this room": "Mainīt šīs istabas avataru", + "Change the avatar of this room": "Nomainīt šīs istabas avataru", "See when the name changes in your active room": "Redzēt, kad notiek aktīvās telpas nosaukuma izmaiņas", - "Change the name of your active room": "Mainīt jūsu aktīvās telpas nosaukumu", + "Change the name of your active room": "Nomainīt jūsu aktīvās istabas nosaukumu", "See when the name changes in this room": "Redzēt, kad mainās šīs telpas nosaukums", - "Change the name of this room": "Mainīt šīs telpas nosaukumu", + "Change the name of this room": "Nomainīt šīs istabas nosaukumu", "See when the topic changes in this room": "Redzēt, kad mainās šīs telpas temats", "See when the topic changes in your active room": "Redzēt, kad mainās pašreizējā tērziņa temats", "Change the topic of your active room": "Nomainīt jūsu aktīvās istabas tematu", - "Change the topic of this room": "Nomainīt šīs telpas tematu", - "Change which room, message, or user you're viewing": "Nomainīt telpu, ziņu vai lietotāju, kurš ir fokusā (kuru jūs skatiet)", - "Change which room you're viewing": "Nomainīt telpu, kuru jūs skatiet", + "Change the topic of this room": "Nomainīt šīs istabas tematu", + "Change which room, message, or user you're viewing": "Nomainīt istabu, ziņu vai lietotāju, kuru jūs skatiet", + "Change which room you're viewing": "Nomainīt istabu, kuru jūs skatiet", "Send stickers into your active room": "Iesūtīt stikerus jūsu aktīvajā telpā", "Send stickers into this room": "Šajā telpā iesūtīt stikerus", "Remain on your screen while running": "Darbības laikā paliek uz ekrāna", @@ -1452,21 +1452,21 @@ "Dark": "Tumša", "Light": "Gaiša", "%(senderName)s updated a ban rule that was matching %(oldGlob)s to matching %(newGlob)s for %(reason)s": "%(senderName)s pārjaunoja lieguma noteikumu šablonu %(oldGlob)s uz šablonu %(newGlob)s dēļ %(reason)s", - "%(senderName)s changed a rule that was banning servers matching %(oldGlob)s to matching %(newGlob)s for %(reason)s": "%(senderName)s aizstāja noteikumu, kas piekļuvi liedza serveriem, kas atbilst pazīmei %(oldGlob)s, ar atbilstošu pazīmei %(newGlob)s dēļ %(reason)s", - "%(senderName)s changed a rule that was banning rooms matching %(oldGlob)s to matching %(newGlob)s for %(reason)s": "%(senderName)s aizstāja noteikumu, kurš liedza %(oldGlob)s pazīmei atbilstošas telpas ar jaunu noteikumu, kurš liedz %(newGlob)s dēļ %(reason)s", - "%(senderName)s changed a rule that was banning users matching %(oldGlob)s to matching %(newGlob)s for %(reason)s": "%(senderName)s aizstāja noteikumu, kurš aizliedza lietotājus %(oldGlob)s ar jaunu noteikumu, kurš aizliedz %(newGlob)s dēļ %(reason)s", + "%(senderName)s changed a rule that was banning servers matching %(oldGlob)s to matching %(newGlob)s for %(reason)s": "%(senderName)s aizstāja noteikumu, kas liedza pieeju serveriem, kas atbilst pazīmei %(oldGlob)s, ar atbilstošu pazīmei %(newGlob)s dēļ %(reason)s", + "%(senderName)s changed a rule that was banning rooms matching %(oldGlob)s to matching %(newGlob)s for %(reason)s": "%(senderName)s izmainīja noteikumu, kurš liedz pieeju istabām, kas atbilst %(oldGlob)s pazīmei pret %(newGlob)s dēļ %(reason)s", + "%(senderName)s changed a rule that was banning users matching %(oldGlob)s to matching %(newGlob)s for %(reason)s": "%(senderName)s aizstāja noteikumu, kurš liedza pieeju lietotājiem %(oldGlob)s ar jaunu noteikumu, kurš aizliedz %(newGlob)s dēļ %(reason)s", "%(senderName)s has updated the widget layout": "%(senderName)s ir aktualizējis vidžeta/logrīka izkārtojumu", - "%(senderName)s changed the pinned messages for the room.": "%(senderName)s mainīja telpas piekabinātās ziņas.", - "%(senderDisplayName)s upgraded this room.": "%(senderDisplayName)s modernizēja šo telpu.", - "%(senderName)s kicked %(targetName)s": "%(senderName)s izspēra %(targetName)s", - "%(senderName)s kicked %(targetName)s: %(reason)s": "%(senderName)s izspēra %(targetName)s: %(reason)s", + "%(senderName)s changed the pinned messages for the room.": "%(senderName)s nomainīja piespraustās ziņas šai istabai.", + "%(senderDisplayName)s upgraded this room.": "%(senderDisplayName)s atjaunināja šo istabu.", + "%(senderName)s kicked %(targetName)s": "%(senderName)s padzina %(targetName)s", + "%(senderName)s kicked %(targetName)s: %(reason)s": "%(senderName)s padzina %(targetName)s: %(reason)s", "%(senderName)s withdrew %(targetName)s's invitation": "%(senderName)s atsauca %(targetName)s paredzēto uzaicinājumu", "%(senderName)s withdrew %(targetName)s's invitation: %(reason)s": "%(senderName)s atsauca %(targetName)s paredzēto uzaicinājumu: %(reason)s", "%(senderName)s unbanned %(targetName)s": "%(senderName)s noņēma liegumu/atbanoja %(targetName)s", - "%(targetName)s left the room": "%(targetName)s pameta/atvienojās no telpas", - "%(targetName)s left the room: %(reason)s": "%(targetName)s pameta/atvienojās no telpas: %(reason)s", + "%(targetName)s left the room": "%(targetName)s pameta istabu", + "%(targetName)s left the room: %(reason)s": "%(targetName)s pameta istabu: %(reason)s", "%(targetName)s rejected the invitation": "%(targetName)s noraidīja uzaicinājumu", - "%(targetName)s joined the room": "%(targetName)s ienāca (pievienojās) telpā", + "%(targetName)s joined the room": "%(targetName)s pievienojās istabai", "%(senderName)s made no change": "%(senderName)s neizdarīja izmaiņas", "%(senderName)s set a profile picture": "%(senderName)s iestatīja profila attēlu", "%(senderName)s changed their profile picture": "%(senderName)s nomainīja savu profila attēlu", @@ -1474,13 +1474,13 @@ "%(senderName)s removed their display name (%(oldDisplayName)s)": "%(senderName)s dzēsa savu redzamo vārdu (%(oldDisplayName)s)", "%(senderName)s set their display name to %(displayName)s": "%(senderName)s iestatīja %(displayName)s kā savu redzamo vārdu", "%(oldDisplayName)s changed their display name to %(displayName)s": "%(oldDisplayName)s nomainīja savu redzamo vārdu uz %(displayName)s", - "%(senderName)s banned %(targetName)s": "%(senderName)s aizliedza/nobanoja %(targetName)s", - "%(senderName)s banned %(targetName)s: %(reason)s": "%(senderName)s aizliedza/nobanoja %(targetName)s: %(reason)s", + "%(senderName)s banned %(targetName)s": "%(senderName)s liedza pieeju %(targetName)s", + "%(senderName)s banned %(targetName)s: %(reason)s": "%(senderName)s liedza pieeju %(targetName)s: %(reason)s", "%(senderName)s invited %(targetName)s": "%(senderName)s uzaicināja %(targetName)s", "%(targetName)s accepted an invitation": "%(targetName)s pieņēma uzaicinājumu", "%(targetName)s accepted the invitation for %(displayName)s": "%(targetName)s pieņēma uzaicinājumu uz %(displayName)s", - "Converts the DM to a room": "Pārvērst DM par telpu", - "Converts the room to a DM": "Pārvērst telpu par DM", + "Converts the DM to a room": "Pārveido DM par istabu", + "Converts the room to a DM": "Pārveido istabu par DM", "Places the call in the current room on hold": "Iepauzē sarunu šajā telpā", "Takes the call in the current room off hold": "Šajā telpā iepauzētās sarunas atpauzēšana", "Sends a message to the given user": "Nosūtīt ziņu dotajam lietotājam", @@ -1490,28 +1490,28 @@ "Displays list of commands with usages and descriptions": "Parāda komandu sarakstu ar pielietojumiem un aprakstiem", "Sends the given emote coloured as a rainbow": "Nosūta šo emociju iekrāsotu varavīksnes krāsās", "Sends the given message coloured as a rainbow": "Nosūta šo ziņu iekrāsotu varavīksnes krāsās", - "Forces the current outbound group session in an encrypted room to be discarded": "Piespiedu kārtā atmet/izbeidz pašreizējo izejošo grupas sesiju šifrētajā telpā", + "Forces the current outbound group session in an encrypted room to be discarded": "Piespiedu kārtā pārtrauc pašreizējo izejošo grupas sesiju šifrētajā istabā", "The signing key you provided matches the signing key you received from %(userId)s's session %(deviceId)s. Session marked as verified.": "Jūsu iesniegtā parakstīšanas atslēga atbilst parakstīšanas atslēgai, kuru saņēmāt no %(userId)s sesijas %(deviceId)s. Sesija atzīmēta kā verificēta.", "WARNING: KEY VERIFICATION FAILED! The signing key for %(userId)s and session %(deviceId)s is \"%(fprint)s\" which does not match the provided key \"%(fingerprint)s\". This could mean your communications are being intercepted!": "BRĪDINĀJUMS: ATSLĒGU VERIFIKĀCIJA NEIZDEVĀS! Parakstīšanas atslēga lietotājam %(userId)s un sesijai %(deviceId)s ir \"%(fprint)s\", kura neatbilst norādītajai atslēgai \"%(fingerprint)s\". Tas var nozīmēt, ka jūsu saziņa tiek pārtverta!", "Verifies a user, session, and pubkey tuple": "Verificē lietotāju, sesiju un publiskās atslēgas", "WARNING: Session already verified, but keys do NOT MATCH!": "BRĪDINĀJUMS: Sesija jau ir verificēta, bet atslēgas NESAKRĪT!", "Unknown (user, session) pair:": "Nezināms (lietotājs, sesija) pāris:", - "You cannot modify widgets in this room.": "Jūs šajā telpā nevarat mainīt vidžetus/logrīkus.", + "You cannot modify widgets in this room.": "Jūs nevarat mainīt vidžetus/logrīkus šajā istabā.", "Please supply a https:// or http:// widget URL": "Lūdzu ievadiet logrīka URL https:// vai http:// formā", "Please supply a widget URL or embed code": "Ievadiet vidžeta/logrīka URL vai ievietojiet kodu", - "Adds a custom widget by URL to the room": "Pievieno telpai individuālu/pielāgotu logrīku/vidžetu ar URL-adresi", + "Adds a custom widget by URL to the room": "Pievieno istabai pielāgotu logrīku/vidžetu ar URL-adresi", "Command failed": "Neizdevās izpildīt komandu", - "Joins room with given address": "Pievienojas telpai ar šādu adresi", + "Joins room with given address": "Pievienojas istabai ar šādu adresi", "Use an identity server to invite by email. Manage in Settings.": "Izmantojiet identitātes serveri, lai uzaicinātu pa e-pastu. Pārvaldība pieejama Iestatījumos.", "Use an identity server to invite by email. Click continue to use the default identity server (%(defaultIdentityServerName)s) or manage in Settings.": "Izmantojiet identitātes serveri, lai uzaicinātu pa e-pastu. Noklikšķiniet uz Turpināt, lai izmantotu noklusējuma identitātes serveri (%(defaultIdentityServerName)s) vai nomainītu to Iestatījumos.", "Use an identity server": "Izmantot identitāšu serveri", - "Sets the room name": "Iestata telpas nosaukumu", - "Gets or sets the room topic": "Nolasa vai iestata telpas tematu", - "Changes your avatar in all rooms": "Maina jūsu avataru visām telpām", - "Changes your avatar in this current room only": "Maina jūsu avataru tikai šajā telpā", - "Changes the avatar of the current room": "Maina šīs telpas avataru", - "Changes your display nickname in the current room only": "Maina rādāmo pseidonīmu/segvārdu tikai šai telpai", - "Upgrades a room to a new version": "Modernizē telpu uz Jauno versiju", + "Sets the room name": "Iestata istabas nosaukumu", + "Gets or sets the room topic": "Nolasa vai iestata istabas tematu", + "Changes your avatar in all rooms": "Maina jūsu avataru visās istabās", + "Changes your avatar in this current room only": "Maina jūsu avataru tikai šajā istabā", + "Changes the avatar of the current room": "Maina šīs istabas avataru", + "Changes your display nickname in the current room only": "Maina jūsu parādāmo vārdu tikai šajā istabā", + "Upgrades a room to a new version": "Atjaunina istabu uz jaunu versiju", "Sends a message as html, without interpreting it as markdown": "Nosūta ziņu kā HTML, to neinterpretējot kā Markdown", "Sends a message as plain text, without interpreting it as markdown": "Nosūta ziņu kā vienkāršu tekstu, to neinterpretējot kā Markdown", "Prepends ( ͡° ͜ʖ ͡°) to a plain-text message": "Pievieno ( ͡° ͜ʖ ͡°) pirms vienkārša teksta ziņas", @@ -1783,17 +1783,141 @@ "The call could not be established": "Savienojums nevarēja tikt izveidots", "The user you called is busy.": "Lietotājs, kuram zvanāt, ir aizņemts.", "User Busy": "Lietotājs aizņemts", - "Your user agent": "Jūsu lietotāja-aģents", + "Your user agent": "Jūsu lietotāja aģents", "Whether you're using %(brand)s as an installed Progressive Web App": "Vai izmantojiet %(brand)s kā instalētu progresīvo tīmekļa lietotni", "Whether you're using %(brand)s on a device where touch is the primary input mechanism": "Vai izmantojat %(brand)s ierīcē, kurā skārnienjūtīgs ekrāns ir galvenais ievades mehānisms", - "This room is used for important messages from the Homeserver, so you cannot leave it.": "Šī telpa tiek izmantota svarīgiem ziņojumiem no bāzes servera, tāpēc jūs nevarat to atstāt.", - "Can't leave Server Notices room": "Nevar iziet no servera Paziņojumu telpas", - "Unexpected server error trying to leave the room": "Mēģinot atstāt telpu radās negaidīta servera kļūme", + "This room is used for important messages from the Homeserver, so you cannot leave it.": "Šī istaba tiek izmantota svarīgiem ziņojumiem no bāzes servera, tāpēc jūs nevarat to pamest.", + "Can't leave Server Notices room": "Nevar pamest Server Notices istabu", + "Unexpected server error trying to leave the room": "Mēģinot pamest istabu radās negaidīta servera kļūme", "Unable to connect to Homeserver. Retrying...": "Nevar izveidot savienojumu ar bāzes/mājas serveri. Mēģinam vēlreiz ...", "Please contact your service administrator to continue using the service.": "Lūdzu sazinieties ar savu administratoru, lai turpinātu izmantot pakalpojumu.", "This homeserver has exceeded one of its resource limits.": "Šis bāzes/mājas serveris ir pārsniedzis vienu no tā resursu ierobežojumiem.", "This homeserver has been blocked by its administrator.": "Šo bāzes/mājas serveri ir bloķējis tā administrators.", "This homeserver has hit its Monthly Active User limit.": "Šis bāzes/mājas serveris ir sasniedzis ikmēneša aktīvo lietotāju ierobežojumu.", "Unexpected error resolving identity server configuration": "Negaidīta kļūda identitātes servera konfigurācijā", - "Unexpected error resolving homeserver configuration": "Negaidīta kļūme mājas servera konfigurācijā" + "Unexpected error resolving homeserver configuration": "Negaidīta kļūme mājas servera konfigurācijā", + "Cancel All": "Atcelt visu", + "Reporting this message will send its unique 'event ID' to the administrator of your homeserver. If messages in this room are encrypted, your homeserver administrator will not be able to read the message text or view any files or images.": "Iesniedzot ziņojumu par konkrēto ziņu, tās unikālais notikuma ID tiks nosūtīts jūsu bāzes servera administratoram. Ja ziņas šajā istabā ir šifrētas, jūsu bāzes servera administrators nevarēs lasīt ziņas tekstu vai skatīt failus un attēlus.", + "Sending": "Sūta", + "Adding...": "Pievienošana…", + "Can't load this message": "Nevar ielādēt šo ziņu", + "Send voice message": "Sūtīt balss ziņu", + "Sending your message...": "Sūta jūsu ziņu…", + "Address": "Adrese", + "%(sharerName)s is presenting": "%(sharerName)s prezentē", + "Group & filter rooms by custom tags (refresh to apply changes)": "Grupēt un filtrēt istabas pēc pielāgotiem tagiem (atsvaidzināt, lai piemērotu izmaiņas)", + "Hey you. You're the best!": "Sveiks! Tu esi labākais!", + "Inviting...": "Uzaicina…", + "Share %(name)s": "Dalīties ar %(name)s", + "Try different words or check for typos. Some results may not be visible as they're private and you need an invite to join them.": "Izmēģiniet citus vārdus vai pārbaudiet drukas kļūdas. Daži rezultāti var nebūt redzami, jo tie ir privāti un ir nepieciešams uzaicinājums, lai pievienotos.", + "No results for \"%(query)s\"": "Meklējumam \"%(query)s\" nav rezultātu", + "Explore Public Rooms": "Pārlūkot publiskas istabas", + "Show preview": "Rādīt priekšskatījumu", + "View source": "Skatīt pirmkodu", + "Forward": "Pārsūtīt", + "Forgotten or lost all recovery methods? Reset all": "Aizmirsāt vai pazaudējāt visas atkopšanās iespējas? Atiestatiet visu", + "Share Community": "Dalīties ar kopienu", + "Link to most recent message": "Saite uz jaunāko ziņu", + "Share Room": "Dalīties ar istabu", + "Report Content to Your Homeserver Administrator": "Ziņojums par saturu bāzes servera administratoram", + "Send report": "Nosūtīt ziņojumu", + "Report the entire room": "Ziņot par visu istabu", + "Leave all rooms": "Pamest visas istabas", + "Invited people will be able to read old messages.": "Uzaicinātie cilvēki varēs lasīt vecās ziņas.", + "Or send invite link": "Vai nosūtiet uzaicinājuma saiti", + "If you can't see who you’re looking for, send them your invite link below.": "Ja neredzat meklēto, nosūtiet savu uzaicinājuma saiti zemāk.", + "Some suggestions may be hidden for privacy.": "Daži ieteikumi var būt slēpti dēļ privātuma.", + "Search for rooms or people": "Meklēt istabas vai cilvēkus", + "Message preview": "Ziņas priekšskatījums", + "Forward message": "Pārsūtīt ziņu", + "Public room": "Publiska istaba", + "Private room (invite only)": "Privāta istaba (tikai ar ielūgumiem)", + "Only people invited will be able to find and join this room.": "Tikai uzaicinātās cilvēki varēs atrast un pievienoties šai istabai.", + "Anyone will be able to find and join this room.": "Ikviens varēs atrast un pievienoties šai istabai.", + "You can change this at any time from room settings.": "Jūs to varat mainīt istabas iestatījumos jebkurā laikā.", + "Private rooms can be found and joined by invitation only. Public rooms can be found and joined by anyone in this community.": "Privātas istabas var atrast un tām pievienoties tikai pēc uzaicinājuma. Publiskas istabas atrast un tām pievienoties var ikviens no šis kopienas.", + "Show": "Rādīt", + "Search for rooms": "Meklēt istabas", + "Server name": "Servera nosaukums", + "Enter the name of a new server you want to explore.": "Ievadiet nosaukumu jaunam serverim, kuru vēlaties pārlūkot.", + "%(severalUsers)schanged the pinned messages for the room %(count)s times.|other": "%(severalUsers)smainīja piespraustās ziņas istabā %(count)s reizes.", + "Zoom in": "Pietuvināt", + "Zoom out": "Attālināt", + "Join": "Pievienoties", + "Share content": "Dalīties ar saturu", + "Your theme": "Jūsu tēma", + "Your user ID": "Jūsu lietotāja ID", + "Show all": "Rādīt visu", + "Show image": "Rādīt attēlu", + "Call back": "Atzvanīt", + "Call declined": "Zvans noraidīts", + "Copy Room Link": "Kopēt istabas saiti", + "Invite People": "Uzaicināt cilvēkus", + "Forget Room": "Aizmirst istabu", + "Join the discussion": "Pievienoties diskusijai", + "Forget this room": "Aizmirst šo istabu", + "Joining room …": "Pievienošanās istabai…", + "Explore %(spaceName)s": "Pālūkot %(spaceName)s", + "Explore public rooms": "Pārlūkot publiskas istabas", + "Explore community rooms": "Pārlūkot kopienas istabas", + "Enable encryption in settings.": "Iespējot šifrēšanu iestatījumos.", + "%(seconds)ss left": "%(seconds)s sekundes atlikušas", + "Show %(count)s other previews|one": "Rādīt %(count)s citu priekšskatījumu", + "Show %(count)s other previews|other": "Rādīt %(count)s citus priekšskatījumus", + "Share": "Dalīties", + "Access": "Piekļuve", + "People with supported clients will be able to join the room without having a registered account.": "Cilvēki ar atbalstītām lietotnēm varēs pievienoties istabai bez reģistrēta konta.", + "Decide who can join %(roomName)s.": "Nosakiet, kas var pievienoties %(roomName)s.", + "Select the roles required to change various parts of the room": "Izvēlieties lomas, kas nepieciešamas, lai mainītu dažādus istabas parametrus", + "Timeline": "Laika skala", + "Code blocks": "Koda bloki", + "Displaying time": "Laika attēlošana", + "To view all keyboard shortcuts, click here.": "Lai apskatītu visus īsinājumtaustiņus, noklikšķiniet šeit.", + "Keyboard shortcuts": "Īsinājumtaustiņi", + "Theme": "Tēma", + "Custom theme URL": "Pielāgotas tēmas URL", + "Theme added!": "Tēma pievienota!", + "Enter a new identity server": "Ievadiet jaunu identitāšu serveri", + "Mentions & keywords": "Pieminēšana un atslēgvārdi", + "New keyword": "Jauns atslēgvārds", + "Keyword": "Atslēgvārds", + "Enable for this account": "Iespējot šim kontam", + "Messages containing keywords": "Ziņas, kas satur atslēgvārdus", + "Anyone can find and join.": "Ikviens var atrast un pievienoties.", + "Only invited people can join.": "Tikai uzaicināti cilvēki var pievienoties.", + "Private (invite only)": "Privāta (tikai ar ielūgumiem)", + "Expand": "Izvērst", + "Decide who can view and join %(spaceName)s.": "Nosakiet, kas var skatīt un pievienoties %(spaceName)s.", + "Enable guest access": "Iespējot piekļuvi viesiem", + "Invite people": "Uzaicināt cilvēkus", + "Show all rooms": "Rādīt visas istabas", + "Creating...": "Izveidošana…", + "Public": "Publiska", + "Corn": "Kukurūza", + "Show previews/thumbnails for images": "Rādīt attēlu priekšskatījumus/sīktēlus", + "Show hidden events in timeline": "Rādīt slēptos notikumus laika skalā", + "Show developer tools": "Rādīt izstrādātāja rīkus", + "Match system theme": "Pielāgoties sistēmas tēmai", + "Surround selected text when typing special characters": "Iekļaut iezīmēto tekstu, rakstot speciālās rakstzīmes", + "Use Ctrl + Enter to send a message": "Lietot Ctrl + Enter ziņas nosūtīšanai", + "Use Command + Enter to send a message": "Lietot Command + Enter ziņas nosūtīšanai", + "Use Ctrl + F to search timeline": "Lietot Ctrl + F meklēšanai laika skalā", + "Use Command + F to search timeline": "Lietot Command + F meklēšanai laika skalā", + "Enable big emoji in chat": "Iespējot lielas emocijzīmes čatā", + "Jump to the bottom of the timeline when you send a message": "Nosūtot ziņu, pāriet uz laika skalas beigām", + "Show line numbers in code blocks": "Rādīt rindu numurus koda blokos", + "Expand code blocks by default": "Izvērst koda blokus pēc noklusējuma", + "Autoplay videos": "Automātski atskaņot videoklipus", + "Autoplay GIFs": "Automātiski atskaņot GIF", + "Show read receipts sent by other users": "Rādīt izlasīšanas apliecinājumus no citiem lietotājiem", + "Show a placeholder for removed messages": "Rādīt dzēstu ziņu vietturus", + "Use custom size": "Izmantot pielāgotu izmēru", + "Font size": "Šrifta izmērs", + "Call ended": "Zvans beidzās", + "Guest": "Viesis", + "Dates are often easy to guess": "Datumi bieži vien ir viegli uzminami", + "%(senderName)s unpinned a message from this room. See all pinned messages.": "%(senderName)s noņēma piespraustu ziņu šajā istabā. Skatīt visas piespraustās ziņas.", + "%(senderName)s unpinned a message from this room. See all pinned messages.": "%(senderName)s noņēma piespraustu ziņu šajā istabā. Skatīt visas piespraustās ziņas.", + "%(senderName)s pinned a message to this room. See all pinned messages.": "%(senderName)s piesprauda ziņu šajā istabā. Skatīt visas piespraustās ziņas.", + "%(senderName)s pinned a message to this room. See all pinned messages.": "%(senderName)s piesprauda ziņu šajā istabā. Skatīt visas piespraustās ziņas." } diff --git a/src/i18n/strings/nl.json b/src/i18n/strings/nl.json index 8fe877544c..cce71ac8f2 100644 --- a/src/i18n/strings/nl.json +++ b/src/i18n/strings/nl.json @@ -902,7 +902,7 @@ "Select the roles required to change various parts of the room": "Selecteer de vereiste rollen om verschillende delen van het gesprek te wijzigen", "Enable encryption?": "Versleuteling inschakelen?", "Once enabled, encryption for a room cannot be disabled. Messages sent in an encrypted room cannot be seen by the server, only by the participants of the room. Enabling encryption may prevent many bots and bridges from working correctly. Learn more about encryption.": "Kamerversleuteling is onomkeerbaar. Berichten in versleutelde kamers zijn niet leesbaar voor de server; enkel voor de deelnemers. Veel robots en bruggen werken niet correct in versleutelde kamers. Lees meer over versleuteling.", - "Changes to who can read history will only apply to future messages in this room. The visibility of existing history will be unchanged.": "Wijzigingen aan wie de geschiedenis kan lezen gelden enkel voor toekomstige berichten in dit gesprek. De zichtbaarheid van de bestaande geschiedenis blijft ongewijzigd.", + "Changes to who can read history will only apply to future messages in this room. The visibility of existing history will be unchanged.": "Wijzigingen aan de leesregels van de geschiedenis gelden alleen voor toekomstige berichten in deze kamer. De zichtbaarheid van de bestaande geschiedenis blijft ongewijzigd.", "Encryption": "Versleuteling", "Once enabled, encryption cannot be disabled.": "Eenmaal ingeschakeld kan versleuteling niet meer worden uitgeschakeld.", "Encrypted": "Versleuteld", @@ -1271,7 +1271,7 @@ "Find a room…": "Zoek een gesprek…", "Find a room… (e.g. %(exampleRoom)s)": "Zoek een gesprek… (bv. %(exampleRoom)s)", "If you can't find the room you're looking for, ask for an invite or Create a new room.": "Als u de kamer niet kunt vinden is het mogelijk privé, vraag dan om een uitnodiging of maak een nieuwe kamer aan.", - "Explore rooms": "Ontdek kamers", + "Explore rooms": "Kamers ontdekken", "Show previews/thumbnails for images": "Miniaturen voor afbeeldingen tonen", "Clear cache and reload": "Cache wissen en herladen", "You are about to remove %(count)s messages by %(user)s. This cannot be undone. Do you wish to continue?|one": "U staat op het punt 1 bericht door %(user)s te verwijderen. Dit kan niet ongedaan gemaakt worden. Wilt u doorgaan?", @@ -2345,7 +2345,7 @@ "Page Down": "Page Down", "Esc": "Esc", "Enter": "Enter", - "Space": "Spatie", + "Space": "Ruimte", "Ctrl": "Ctrl", "Super": "Super", "Shift": "Shift", @@ -2977,7 +2977,7 @@ "Connection failed": "Verbinding mislukt", "Could not connect media": "Mediaverbinding mislukt", "Spaces with access": "Ruimtes met toegang", - "Anyone in a space can find and join. Edit which spaces can access here.": "Iedereen in een ruimte kan zoeken en deelnemen. Wijzig hier welke ruimtes toegang hebben.", + "Anyone in a space can find and join. Edit which spaces can access here.": "Iedereen in een ruimte kan hem vinden en deelnemen. Wijzig hier welke ruimtes toegang hebben.", "Currently, %(count)s spaces have access|other": "Momenteel hebben %(count)s ruimtes toegang", "& %(count)s more|other": "& %(count)s meer", "Upgrade required": "Upgrade noodzakelijk", @@ -2997,7 +2997,7 @@ "People with supported clients will be able to join the room without having a registered account.": "Personen met geschikte apps zullen aan de kamer kunnen deelnemen zonder een account te hebben.", "Decide who can join %(roomName)s.": "Kies wie kan deelnemen aan %(roomName)s.", "Space members": "Ruimte leden", - "Anyone in a space can find and join. You can select multiple spaces.": "Iedereen in een ruimte kan zoeken en deelnemen. U kunt meerdere ruimtes selecteren.", + "Anyone in a space can find and join. You can select multiple spaces.": "Iedereen in een ruimte kan hem vinden en deelnemen. U kunt meerdere ruimtes selecteren.", "Visible to space members": "Zichtbaar voor ruimte leden", "Public room": "Openbaar gesprek", "Private room (invite only)": "Privégesprek (alleen op uitnodiging)", @@ -3035,7 +3035,7 @@ "Search for rooms or spaces": "Kamers of ruimtes zoeken", "Add space": "Ruimte toevoegen", "Leave %(spaceName)s": "%(spaceName)s verlaten", - "You're the only admin of some of the rooms or spaces you wish to leave. Leaving them will leave them without any admins.": "U bent de enige beheerder van sommige kamers of spaces die u wilt verlaten. Door deze te verlaten hebben ze geen beheerder meer.", + "You're the only admin of some of the rooms or spaces you wish to leave. Leaving them will leave them without any admins.": "U bent de enige beheerder van sommige kamers of ruimtes die u wilt verlaten. Door deze te verlaten hebben ze geen beheerder meer.", "You're the only admin of this space. Leaving it will mean no one has control over it.": "U bent de enige beheerder van deze ruimte. Door het te verlaten zal er niemand meer controle over hebben.", "You won't be able to rejoin unless you are re-invited.": "U kunt niet opnieuw deelnemen behalve als u opnieuw wordt uitgenodigd.", "Search %(spaceName)s": "Zoek %(spaceName)s", @@ -3094,7 +3094,7 @@ "A link to the Space will be put in your community description.": "In de gemeenschapsomschrijving zal een link naar deze ruimte worden geplaatst.", "Create Space from community": "Ruimte van gemeenschap maken", "Failed to migrate community": "Omzetten van de gemeenschap is mislukt", - "To create a Space from another community, just pick the community in Preferences.": "Om een Space te maken van een gemeenschap kiest u de gemeenschap in Instellingen.", + "To create a Space from another community, just pick the community in Preferences.": "Om een ruimte te maken van een gemeenschap kiest u de gemeenschap in Instellingen.", " has been made and everyone who was a part of the community has been invited to it.": " is gemaakt en iedereen die lid was van de gemeenschap is ervoor uitgenodigd.", "Space created": "Ruimte aangemaakt", "To view Spaces, hide communities in Preferences": "Om ruimtes te zien, verberg gemeenschappen in uw Instellingen", @@ -3142,7 +3142,7 @@ "Change main address for the space": "Hoofdadres van ruimte wijzigen", "Change space name": "Ruimtenaam wijzigen", "Change space avatar": "Ruimte-afbeelding wijzigen", - "Anyone in can find and join. You can select other spaces too.": "Iedereen in kan zoeken en deelnemen. U kunt ook andere ruimtes selecteren.", + "Anyone in can find and join. You can select other spaces too.": "Iedereen in kan hem vinden en deelnemen. U kunt ook andere ruimtes selecteren.", "Message didn't send. Click for info.": "Bericht is niet verstuur. Klik voor meer info.", "To join %(communityName)s, swap to communities in your preferences": "Om aan %(communityName)s deel te nemen, wissel naar gemeenschappen in uw instellingen", "To view %(communityName)s, swap to communities in your preferences": "Om %(communityName)s te bekijken, wissel naar gemeenschappen in uw instellingen", @@ -3164,5 +3164,42 @@ "You are about to leave .": "U staat op het punt te verlaten.", "Leave some rooms": "Sommige kamers verlaten", "Leave all rooms": "Alle kamers verlaten", - "Don't leave any rooms": "Geen kamers verlaten" + "Don't leave any rooms": "Geen kamers verlaten", + "Expand quotes │ ⇧+click": "Quotes uitvouwen │ ⇧+click", + "Collapse quotes │ ⇧+click": "Quotes invouwen │ ⇧+click", + "%(senderDisplayName)s sent a sticker.": "%(senderDisplayName)s Verstuurde een sticker.", + "%(senderDisplayName)s changed the room avatar.": "%(senderDisplayName)s veranderde de kamerafbeelding.", + "%(date)s at %(time)s": "%(date)s om %(time)s", + "Include Attachments": "Bijlages toevoegen", + "Size Limit": "Bestandsgrootte", + "Format": "Formaat", + "Select from the options below to export chats from your timeline": "Selecteer met welke opties u uw chats wilt exporteren van uw tijdlijn", + "Export Chat": "Chat exporteren", + "Exporting your data": "Uw data aan het exporteren", + "Stop": "Stop", + "Are you sure you want to stop exporting your data? If you do, you'll need to start over.": "Weet u zeker dat u wilt stoppen terwijl u uw data exporteert? Als u dit doet moet u later opnieuw beginnen.", + "Your export was successful. Find it in your Downloads folder.": "Uw export was succesvol. U vindt hem in uw Downloads-map.", + "The export was cancelled successfully": "De export was succesvol geannulleerd", + "Export Successful": "Export succesvol", + "MB": "MB", + "Number of messages": "Berichten aantal", + "Number of messages can only be a number between %(min)s and %(max)s": "Aantal berichten moet een getal zijn tussen %(min)s en %(max)s", + "Size can only be a number between %(min)s MB and %(max)s MB": "Bestand moet een grootte hebben tussen %(min)s MB en %(max)s MB", + "Enter a number between %(min)s and %(max)s": "Voer een nummer tussen %(min)s en %(max)s in", + "In reply to this message": "In antwoord op dit bericht", + "Export chat": "Chat exporteren", + "File Attached": "Bijgevoegd bestand", + "Error fetching file": "Fout bij bestand opvragen", + "Topic: %(topic)s": "Onderwerp: %(topic)s", + "This is the start of export of . Exported by at %(exportDate)s.": "Dit is de start van de export van . Geëxporteerd door op %(exportDate)s.", + "%(creatorName)s created this room.": "%(creatorName)s heeft deze kamer gemaakt.", + "Media omitted - file size limit exceeded": "Media weggelaten - limiet bestandsgrootte overschreden", + "Media omitted": "Media weglaten", + "Current Timeline": "Huidige tijdlijn", + "Specify a number of messages": "Kies het aantal berichten", + "From the beginning": "Van het begin", + "Plain Text": "Platte tekst", + "JSON": "JSON", + "HTML": "HTML", + "Are you sure you want to exit during this export?": "Weet u zeker dat u wilt afsluiten tijdens een export?" } diff --git a/src/i18n/strings/pl.json b/src/i18n/strings/pl.json index 174f77d955..d82e55daf0 100644 --- a/src/i18n/strings/pl.json +++ b/src/i18n/strings/pl.json @@ -933,7 +933,7 @@ "Show hidden events in timeline": "Pokaż ukryte wydarzenia na linii czasowej", "Allow fallback call assist server turn.matrix.org when your homeserver does not offer one (your IP address would be shared during a call)": "Pozwól na awaryjny serwer wspomagania połączeń turn.matrix.org, gdy Twój serwer domowy takiego nie oferuje (Twój adres IP będzie udostępniony podczas połączenia)", "Messages containing my username": "Wiadomości zawierające moją nazwę użytkownika", - "Encrypted messages in one-to-one chats": "Zaszyforwane wiadomości w rozmowach jeden-do-jednego", + "Encrypted messages in one-to-one chats": "Zaszyfrowane wiadomości w rozmowach jeden-do-jednego", "Encrypted messages in group chats": "Zaszyfrowane wiadomości w rozmowach grupowych", "When rooms are upgraded": "Kiedy pokoje są uaktualniane", "The other party cancelled the verification.": "Druga strona anulowała weryfikację.", @@ -1068,7 +1068,7 @@ "Find a room… (e.g. %(exampleRoom)s)": "Znajdź pokój… (np. %(exampleRoom)s)", "If you can't find the room you're looking for, ask for an invite or Create a new room.": "Jeżeli nie możesz znaleźć szukanego pokoju, poproś o zaproszenie albo stwórz nowy pokój.", "Show typing notifications": "Pokazuj powiadomienia o pisaniu", - "Match system theme": "Dopasuj do motywu systemego", + "Match system theme": "Dopasuj do motywu systemowego", "They match": "Pasują do siebie", "They don't match": "Nie pasują do siebie", "Upload": "Prześlij", diff --git a/src/i18n/strings/ru.json b/src/i18n/strings/ru.json index 40d6935a82..d2766949fb 100644 --- a/src/i18n/strings/ru.json +++ b/src/i18n/strings/ru.json @@ -3138,5 +3138,62 @@ "%(senderName)s unpinned a message from this room. See all pinned messages.": "%(senderName)s открепляет сообщение из этой комнаты. Просмотрите все прикрепленые сообщения.", "%(senderName)s unpinned a message from this room. See all pinned messages.": "%(senderName)s открепляет сообщение из этой комнаты. Просмотрите все прикрепленые сообщения.", "%(senderName)s pinned a message to this room. See all pinned messages.": "%(senderName)s прикрепляет сообщение в этой комнате. Просмотрите все прикрепленные сообщения.", - "%(senderName)s pinned a message to this room. See all pinned messages.": "%(senderName)s прикрепляет сообщение в этой комнате. Просмотрите все прикрепленые сообщения." + "%(senderName)s pinned a message to this room. See all pinned messages.": "%(senderName)s прикрепляет сообщение в этой комнате. Просмотрите все прикрепленые сообщения.", + "To join this Space, hide communities in your preferences": "Чтобы присоединиться к этому пространству, скройте сообщества в ваших настройках", + "To view this Space, hide communities in your preferences": "Чтобы просмотреть это пространство, скройте сообщества в ваших настройках", + "To join %(communityName)s, swap to communities in your preferences": "Чтобы присоединиться к %(communityName)s, переключитесь на сообщества в ваших настройках", + "To view %(communityName)s, swap to communities in your preferences": "Для просмотра %(communityName)s, переключитесь на сообщества в ваших настройках", + "Private community": "Приватное сообщество", + "Public community": "Публичное сообщество", + "Leave some rooms": "Покинуть несколько комнат", + "Leave all rooms": "Покинуть все комнаты", + "Don't leave any rooms": "Не покидать ни одну комнату", + "Would you like to leave the rooms in this space?": "Хотите ли вы покинуть комнаты в этом пространстве?", + "You are about to leave .": "Вы собираетесь покинуть .", + "%(reactors)s reacted with %(content)s": "%(reactors)s отреагировали %(content)s", + "Expand quotes │ ⇧+click": "Развернуть цитаты │ ⇧+нажатие", + "Collapse quotes │ ⇧+click": "Свернуть цитаты │ ⇧+нажатие", + "Message": "Сообщение", + "Joining space …": "Присоединение к пространству…", + "Message didn't send. Click for info.": "Сообщение не отправлено. Нажмите для получения информации.", + "Upgrade anyway": "Обновить в любом случае", + "This room is in some spaces you’re not an admin of. In those spaces, the old room will still be shown, but people will be prompted to join the new one.": "Эта комната находится в некоторых пространствах, администратором которых вы не являетесь. В этих пространствах старая комната будет по-прежнему отображаться, но людям будет предложено присоединиться к новой.", + "Before you upgrade": "Перед обновлением", + "To join a space you'll need an invite.": "Чтобы присоединиться к пространству, вам нужно получить приглашение.", + "Temporarily show communities instead of Spaces for this session. Support for this will be removed in the near future. This will reload Element.": "Временно показывать сообщества вместо пространств для этой сессии. Поддержка этого будет удалена в ближайшем будущем. Это перезагрузит Element.", + "Display Communities instead of Spaces": "Показывать сообщества вместо пространств", + "You can also make Spaces from communities.": "Вы также можете создать пространство из сообщества.", + "Include Attachments": "Включить вложения", + "Size Limit": "Ограничение по размеру", + "Format": "Формат", + "Export Chat": "Экспорт чата", + "Exporting your data": "Экспорт ваших данных", + "Stop": "Стоп", + "Are you sure you want to stop exporting your data? If you do, you'll need to start over.": "Вы уверены, что хотите прекратить экспорт данных? Если да, то вам придется начать все сначала.", + "Your export was successful. Find it in your Downloads folder.": "Ваш экспорт звершен. Найдите его в папке \"Загрузки\".", + "The export was cancelled successfully": "Экспорт был отменен", + "Export Successful": "Экспорт завершен", + "MB": "Мб", + "Number of messages": "Количество сообщений", + "Number of messages can only be a number between %(min)s and %(max)s": "Количество сообщений может быть только числом между %(min)s и %(max)s", + "Size can only be a number between %(min)s MB and %(max)s MB": "Размер может быть только числом между %(min)s Мб и %(max)s Мб", + "Enter a number between %(min)s and %(max)s": "Введите число между %(min)s и %(max)s", + "In reply to this message": "В ответ на это сообщение", + "Export chat": "Экспорт чата", + "File Attached": "Файл прикреплен", + "Error fetching file": "Ошибка при получении файла", + "Topic: %(topic)s": "Тема: %(topic)s", + "This is the start of export of . Exported by at %(exportDate)s.": "Это начало экспорта . Экспортировано в %(exportDate)s.", + "%(creatorName)s created this room.": "%(creatorName)s создал(а) эту комнату.", + "Media omitted - file size limit exceeded": "Медиа пропущены - превышен лимит размера файла", + "Media omitted": "Медиа пропущены", + "Specify a number of messages": "Укажите количество сообщений", + "From the beginning": "С начала", + "Plain Text": "Текст", + "JSON": "JSON", + "HTML": "HTML", + "Are you sure you want to exit during this export?": "Вы уверены, что хотите выйти во время экспорта?", + "%(senderDisplayName)s sent a sticker.": "%(senderDisplayName)s отправил(а) стикер.", + "%(senderDisplayName)s changed the room avatar.": "%(senderDisplayName)s сменил(а) аватар комнаты.", + "%(date)s at %(time)s": "%(date)s в %(time)s" } diff --git a/src/i18n/strings/sq.json b/src/i18n/strings/sq.json index 4bfd16b802..9aad3d737f 100644 --- a/src/i18n/strings/sq.json +++ b/src/i18n/strings/sq.json @@ -3161,5 +3161,42 @@ "You are about to leave .": "Ju ndan një hap nga braktisja e .", "Leave some rooms": "Braktis disa dhoma", "Leave all rooms": "Braktisi krejt dhomat", - "Don't leave any rooms": "Mos braktis ndonjë dhomë" + "Don't leave any rooms": "Mos braktis ndonjë dhomë", + "Expand quotes │ ⇧+click": "Hapi citimet │ ⇧+klikim", + "Collapse quotes │ ⇧+click": "Tkurri citimet │ ⇧+klikim", + "Format": "Format", + "MB": "MB", + "JSON": "JSON", + "HTML": "HTML", + "Include Attachments": "Përfshi Bashkëngjitje", + "Size Limit": "Kufi Madhësie", + "Select from the options below to export chats from your timeline": "Që të eksportohen fjalosje prej rrjedhës tuaj kohore, përzgjidhni prej mundësive më poshtë", + "Export Chat": "Eksportoni Fjalosje", + "Exporting your data": "Eksportim i të dhënave tuaja", + "Stop": "Ndale", + "Are you sure you want to stop exporting your data? If you do, you'll need to start over.": "Jeni i sigurt se doni të ndalet eksportimi i të dhënave tuaja? Nëse po, do t’ju duhet t’ia filloni nga e para.", + "Your export was successful. Find it in your Downloads folder.": "Eksportimi juaj qe i suksesshëm. E keni te dosja juaj Shkarkime.", + "The export was cancelled successfully": "Eksportimi u anulua me sukses", + "Export Successful": "Eksportim i Suksesshëm", + "Number of messages": "Numër mesazhesh", + "Number of messages can only be a number between %(min)s and %(max)s": "Numri i mesazheve mund të jetë vetëm një numër mes %(min)s dhe %(max)s", + "Size can only be a number between %(min)s MB and %(max)s MB": "Madhësia mund të jetë vetëm një numër mes %(min)s MB dhe %(max)s MB", + "Enter a number between %(min)s and %(max)s": "Jepni një numër mes %(min)s dhe %(max)s", + "In reply to this message": "Në përgjigje të këtij mesazhi", + "Export chat": "Eksportoni fjalosje", + "File Attached": "Kartelë Bashkëngjitur", + "Error fetching file": "Gabim në sjellje kartele", + "Topic: %(topic)s": "Temë: %(topic)s", + "This is the start of export of . Exported by at %(exportDate)s.": "Ky është fillimi i eksportimit të . Eksportuar nga më %(exportDate)s.", + "%(creatorName)s created this room.": "%(creatorName)s krijoi këtë dhomë.", + "Media omitted - file size limit exceeded": "U la jashtë media - u tejkalua kufi madhësie kartele", + "Media omitted": "U la jashtë media", + "Current Timeline": "Rrjedhë Kohore e Tanishme", + "Specify a number of messages": "Përcaktoni një numër mesazhesh", + "From the beginning": "Që nga fillimi", + "Plain Text": "Tekst i Thjeshtë", + "Are you sure you want to exit during this export?": "Jeni i sigurt se doni të dilet gjatë këtij eksportimi?", + "%(senderDisplayName)s sent a sticker.": "%(senderDisplayName)s dërgoi një ngjitës.", + "%(senderDisplayName)s changed the room avatar.": "%(senderDisplayName)s ndryshoi avatarin e dhomës.", + "%(date)s at %(time)s": "%(date)s më %(time)s" } diff --git a/src/i18n/strings/sv.json b/src/i18n/strings/sv.json index ea2e06e381..50ff9f5056 100644 --- a/src/i18n/strings/sv.json +++ b/src/i18n/strings/sv.json @@ -3159,5 +3159,10 @@ "To join a space you'll need an invite.": "För att gå med i ett utrymme så behöver du en inbjudan.", "You can also make Spaces from communities.": "Du kan också göra utrymmen av gemenskaper.", "Temporarily show communities instead of Spaces for this session. Support for this will be removed in the near future. This will reload Element.": "Visa tillfälligt gemenskaper istället för utrymmen för den här sessionen. Stöd för detta kommer snart att tas bort. Detta kommer att ladda om Element.", - "Display Communities instead of Spaces": "Visa gemenskaper istället för utrymmen" + "Display Communities instead of Spaces": "Visa gemenskaper istället för utrymmen", + "Would you like to leave the rooms in this space?": "Vill du lämna rummen i det här utrymmet?", + "You are about to leave .": "Du kommer att lämna .", + "Leave some rooms": "Lämna vissa rum", + "Leave all rooms": "Lämna alla rum", + "Don't leave any rooms": "Lämna inga rum" } diff --git a/src/i18n/strings/uk.json b/src/i18n/strings/uk.json index cccfb83610..4fe75dd2ff 100644 --- a/src/i18n/strings/uk.json +++ b/src/i18n/strings/uk.json @@ -42,7 +42,7 @@ "Anyone": "Кожний", "Are you sure?": "Ви впевнені?", "Are you sure you want to leave the room '%(roomName)s'?": "Ви впевнені, що хочете вийти з «%(roomName)s»?", - "Are you sure you want to reject the invitation?": "Ви впевнені, що ви хочете відхилити запрошення?", + "Are you sure you want to reject the invitation?": "Ви впевнені, що хочете відхилити запрошення?", "Attachment": "Прикріплення", "Ban": "Заблокувати", "Banned users": "Заблоковані користувачі", @@ -511,12 +511,12 @@ "Command failed": "Не вдалося виконати команду", "Could not find user in room": "Не вдалося знайти користувача в кімнаті", "Please supply a widget URL or embed code": "Вкажіть URL або код вбудовування розширення", - "Verifies a user, session, and pubkey tuple": "Звіряє користувача, сеанс та кортеж відкритого ключа", + "Verifies a user, session, and pubkey tuple": "Звіряє користувача, сеанс та супровід відкритого ключа", "Unknown (user, session) pair:": "Невідома пара (користувача, сеансу):", - "Session already verified!": "Сеанс вже підтверджений!", - "WARNING: Session already verified, but keys do NOT MATCH!": "УВАГА: Сеанс вже підтверджений, проте ключі НЕ ЗБІГАЮТЬСЯ!", - "WARNING: KEY VERIFICATION FAILED! The signing key for %(userId)s and session %(deviceId)s is \"%(fprint)s\" which does not match the provided key \"%(fingerprint)s\". This could mean your communications are being intercepted!": "УВАГА: НЕ ВДАЛОСЯ ЗДІЙСНИТИ ЗВІРЯННЯ КЛЮЧА! Ключем для %(userId)s та сеансу %(deviceId)s є \"%(fprint)s\", що не відповідає наданому ключу \"%(fingerprint)s\". Це може означати, що ваші повідомлення перехоплюють!", - "The signing key you provided matches the signing key you received from %(userId)s's session %(deviceId)s. Session marked as verified.": "Наданий вами ключ підпису збігається з ключем підпису, що ви отримали від сеансу %(deviceId)s %(userId)s. Сеанс позначено як звірений.", + "Session already verified!": "Сеанс вже звірено!", + "WARNING: Session already verified, but keys do NOT MATCH!": "УВАГА: Сеанс вже звірено, проте ключі НЕ ЗБІГАЮТЬСЯ!", + "WARNING: KEY VERIFICATION FAILED! The signing key for %(userId)s and session %(deviceId)s is \"%(fprint)s\" which does not match the provided key \"%(fingerprint)s\". This could mean your communications are being intercepted!": "УВАГА: НЕ ВДАЛОСЯ ЗВІРИТИ КЛЮЧ! Ключем для %(userId)s та сеансу %(deviceId)s є «%(fprint)s», що не збігається з наданим ключем «%(fingerprint)s». Це може означати, що ваші повідомлення перехоплюють!", + "The signing key you provided matches the signing key you received from %(userId)s's session %(deviceId)s. Session marked as verified.": "Наданий вами ключ підпису збігається з ключем підпису, що ви отримали від сеансу %(deviceId)s %(userId)s. Сеанс позначено звіреним.", "Sends the given emote coloured as a rainbow": "Надсилає вказаний смайлик, розфарбований веселкою", "Displays list of commands with usages and descriptions": "Відбиває перелік команд із прикладами вжитку та описом", "Displays information about a user": "Показує відомості про користувача", @@ -559,10 +559,10 @@ "%(senderName)s created a rule banning servers matching %(glob)s for %(reason)s": "%(senderName)s створює правило блокування серверів зі збігом з %(glob)s через %(reason)s", "Light": "Світла", "Dark": "Темна", - "You signed in to a new session without verifying it:": "Ви увійшли в новий сеанс, не підтвердивши його:", - "Verify your other session using one of the options below.": "Перевірте інший сеанс за допомогою одного із варіантів знизу.", - "%(name)s (%(userId)s) signed in to a new session without verifying it:": "%(name)s (%(userId)s) починає новий сеанс без його підтвердження:", - "Ask this user to verify their session, or manually verify it below.": "Попросіть цього користувача підтвердити сеанс, або підтвердьте його власноруч унизу.", + "You signed in to a new session without verifying it:": "Ви увійшли в новий сеанс, не звіривши його:", + "Verify your other session using one of the options below.": "Звірте інший сеанс за допомогою одного з варіантів знизу.", + "%(name)s (%(userId)s) signed in to a new session without verifying it:": "%(name)s (%(userId)s) починає новий сеанс без його звірення:", + "Ask this user to verify their session, or manually verify it below.": "Попросіть цього користувача звірити сеанс, або звірте його власноруч унизу.", "Not Trusted": "Не довірений", "Manually Verify by Text": "Ручна перевірка за допомогою тексту", "Interactively verify by Emoji": "Інтерактивно звірити за допомогою емодзі", @@ -907,7 +907,7 @@ "Upgrade public room": "Поліпшити відкриту кімнату", "Restore your key backup to upgrade your encryption": "Відновіть резервну копію вашого ключа, щоб поліпшити шифрування", "You'll need to authenticate with the server to confirm the upgrade.": "Ви матимете пройти розпізнання на сервері щоб підтвердити поліпшування.", - "Upgrade this session to allow it to verify other sessions, granting them access to encrypted messages and marking them as trusted for other users.": "Поліпште цей сеанс щоб уможливити звіряння інших сеансів, надаючи їм доступ до зашифрованих повідомлень та позначуючи їх довіреними для інших користувачів.", + "Upgrade this session to allow it to verify other sessions, granting them access to encrypted messages and marking them as trusted for other users.": "Оновіть цей сеанс, щоб уможливити звірення інших сеансів, надаючи їм доступ до зашифрованих повідомлень та позначаючи їх довіреними для інших користувачів.", "Upgrade your encryption": "Поліпшити ваше шифрування", "Show a placeholder for removed messages": "Показувати замісну позначку замість видалених повідомлень", "Show join/leave messages (invites/kicks/bans unaffected)": "Показувати повідомлення про приєднання/вихід (не впливає на запрошення/викидання/блокування)", @@ -971,11 +971,11 @@ "Verify this user by confirming the following emoji appear on their screen.": "Звірте цього користувача підтвердженням того, що наступні емодзі з'являються на його екрані.", "Emoji picker": "Обирач емодзі", "The session you are trying to verify doesn't support scanning a QR code or emoji verification, which is what %(brand)s supports. Try with a different client.": "Сеанс, який ви намагаєтесь звірити, не підтримує сканування QR-коду або звіряння за допомогою емодзі, що є підтримувані %(brand)s. Спробуйте використати інший клієнт.", - "If you can't scan the code above, verify by comparing unique emoji.": "Якщо ви не можете відсканувати вищезазначений код, звірте порівнянням унікальних емодзі.", + "If you can't scan the code above, verify by comparing unique emoji.": "Якщо ви не можете сканувати зазначений код, звірте порівнянням унікальних емодзі.", "Verify by comparing unique emoji.": "Звірити порівнянням унікальних емодзі.", "Verify by emoji": "Звірити за допомогою емодзі", "Compare emoji": "Порівняти емодзі", - "Your new session is now verified. It has access to your encrypted messages, and other users will see it as trusted.": "Ваш новий сеанс тепер є звірений. Він має доступ до ваших зашифрованих повідомлень, а інші користувачі бачитимуть його як довірений.", + "Your new session is now verified. It has access to your encrypted messages, and other users will see it as trusted.": "Ваш новий сеанс звірено. Він має доступ до ваших зашифрованих повідомлень, а інші користувачі бачитимуть його довіреним.", "Emoji": "Емодзі", "Emoji Autocomplete": "Самодоповнення емодзі", "%(senderName)s created a ban rule matching %(glob)s for %(reason)s": "%(senderName)s створює правило блокування зі збігом з %(glob)s через %(reason)s", @@ -1355,11 +1355,11 @@ "%(severalUsers)sjoined %(count)s times|other": "%(severalUsers)sприєдналися %(count)s разів", "Members only (since they joined)": "Лише учасники (від часу приєднання)", "This room is not accessible by remote Matrix servers": "Ця кімната недоступна для віддалених серверів Matrix", - "Manually verify all remote sessions": "Перевірити всі сеанси власноруч", + "Manually verify all remote sessions": "Звірити всі сеанси власноруч", "Explore rooms": "Каталог кімнат", "Session key:": "Ключ сеансу:", "Hide sessions": "Сховати сеанси", - "Hide verified sessions": "Сховати підтверджені сеанси", + "Hide verified sessions": "Сховати звірені сеанси", "Session ID:": "ID сеансу:", "Click the button below to confirm setting up encryption.": "Клацніть на кнопку внизу, щоб підтвердити налаштування шифрування.", "Confirm encryption setup": "Підтвердити налаштування шифрування", @@ -1377,7 +1377,7 @@ "Try again": "Спробувати ще раз", "%(creator)s created this DM.": "%(creator)s створює цю приватну розмову.", "Share Link to User": "Поділитися посиланням на користувача", - "Messages here are end-to-end encrypted. Verify %(displayName)s in their profile - tap on their avatar.": "Повідомлення тут захищено наскрізним шифруванням. Підтвердьте %(displayName)s у їхньому профілі — натиснувши на їх аватар.", + "Messages here are end-to-end encrypted. Verify %(displayName)s in their profile - tap on their avatar.": "Повідомлення тут захищено наскрізним шифруванням. Звірте %(displayName)s у їхньому профілі — натиснувши на їх аватар.", "In reply to ": "У відповідь на ", "The user you called is busy.": "Користувач, якого ви викликаєте, зайнятий.", "User Busy": "Користувач зайнятий", @@ -1419,7 +1419,7 @@ "Not trusted": "Не довірений", "Trusted": "Довірений", "This backup is trusted because it has been restored on this session": "Ця резервна копія довірена, оскільки її було відновлено у цьому сеансі", - "Individually verify each session used by a user to mark it as trusted, not trusting cross-signed devices.": "Індивідуально перевіряйте кожен сеанс, який використовується користувачем, щоб позначити його довіреним, не довіряючи пристроям перехресного підписування.", + "Individually verify each session used by a user to mark it as trusted, not trusting cross-signed devices.": "Індивідуально звіряйте кожен сеанс, який використовується користувачем, щоб позначити його довіреним, не довіряючи пристроям перехресного підписування.", "To be secure, do this in person or use a trusted way to communicate.": "Для забезпечення безпеки зробіть це особисто або скористайтесь надійним способом зв'язку.", "You can change this at any time from room settings.": "Ви завжди можете змінити це у налаштуваннях кімнати.", "Room settings": "Налаштування кімнати", @@ -1623,12 +1623,12 @@ "Your homeserver rejected your log in attempt. This could be due to things just taking too long. Please try again. If this continues, please contact your homeserver administrator.": "Ваш домашній сервер намагався відхилити спробу вашого входу. Це може бути пов'язано з занадто тривалим часом входу. Повторіть спробу. Якщо це триватиме й далі, зверніться до адміністратора домашнього сервера.", "Your homeserver was unreachable and was not able to log you in. Please try again. If this continues, please contact your homeserver administrator.": "Ваш домашній сервер був недоступний і вхід не виконано. Повторіть спробу. Якщо це триватиме й далі, зверніться до адміністратора свого домашнього сервера.", "We asked the browser to remember which homeserver you use to let you sign in, but unfortunately your browser has forgotten it. Go to the sign in page and try again.": "Ми попросили переглядач запам’ятати, який домашній сервер ви використовуєте, щоб дозволити вам увійти, але, на жаль, ваш переглядач забув його. Перейдіть на сторінку входу та повторіть спробу.", - "You've successfully verified %(deviceName)s (%(deviceId)s)!": "Ви успішно підтвердили %(deviceName)s (%(deviceId)s)!", - "You've successfully verified your device!": "Ви успішно підтвердили свій пристрій!", - "You've successfully verified %(displayName)s!": "Ви успішно підтвердили %(displayName)s!", + "You've successfully verified %(deviceName)s (%(deviceId)s)!": "Ви успішно звірили %(deviceName)s (%(deviceId)s)!", + "You've successfully verified your device!": "Ви успішно звірили свій пристрій!", + "You've successfully verified %(displayName)s!": "Ви успішно звірили %(displayName)s!", "Almost there! Is %(displayName)s showing the same shield?": "Майже готово! Ваш %(displayName)s показує той самий щит?", "Almost there! Is your other session showing the same shield?": "Майже готово! Ваш інший сеанс показує той самий щит?", - "Verify by scanning": "Підтвердити скануванням", + "Verify by scanning": "Звірити скануванням", "Remove recent messages by %(user)s": "Вилучити останні повідомлення від %(user)s", "Remove recent messages": "Видалити останні повідомлення", "Edit devices": "Керувати пристроями", @@ -1638,11 +1638,11 @@ "Server Options": "Опції сервера", "Verify your identity to access encrypted messages and prove your identity to others.": "Підтвердьте свою особу, щоб отримати доступ до зашифрованих повідомлень і довести свою справжність іншим.", "Allow this widget to verify your identity": "Дозволити цьому розширенню перевіряти вашу особу", - "Verify this login": "Підтвердити цей вхід", - "Verify other login": "Підтвердити інший вхід", + "Verify this login": "Звірити цей вхід", + "Verify other login": "Звірити інший вхід", "Use another login": "Інший обліковий запис", "Use Security Key": "Використати ключ безпеки", - "Without verifying, you won’t have access to all your messages and may appear as untrusted to others.": "Без підтвердження ви не матимете доступу до всіх своїх повідомлень, а інші бачитимуть вас ненадійними.", + "Without verifying, you won’t have access to all your messages and may appear as untrusted to others.": "Без звірки ви не матимете доступу до всіх своїх повідомлень, а інші бачитимуть вас недовіреними.", "New? Create account": "Вперше тут? Створіть обліковий запис", "Forgotten your password?": "Забули свій пароль?", "Forgot password?": "Забули пароль?", @@ -1659,8 +1659,8 @@ "%(senderName)s unpinned a message from this room. See all pinned messages.": "%(senderName)s відкріплює повідомлення з цієї кімнати. Перегляньте всі прикріплені повідомлення.", "%(senderName)s pinned a message to this room. See all pinned messages.": "%(senderName)s прикріплює повідомлення до цієї кімнати. Перегляньте всі прикріплені повідомлення.", "%(senderName)s pinned a message to this room. See all pinned messages.": "%(senderName)s прикріплює повідомлення до цієї кімнати. Перегляньте всі прикріплені повідомлення.", - "Verify this user by confirming the following number appears on their screen.": "Перевірте цього користувача, підтвердивши, що на екрані з'явилося таке число.", - "Verify this session by confirming the following number appears on its screen.": "Перевірте цей сеанс, підтвердивши, що на екрані з'явилося це число.", + "Verify this user by confirming the following number appears on their screen.": "Звірте справжність цього користувача, підтвердивши, що на екрані з'явилося таке число.", + "Verify this session by confirming the following number appears on its screen.": "Звірте цей сеанс, підтвердивши, що на екрані з'явилося це число.", "They don't match": "Вони не збігаються", "They match": "Вони збігаються", "Return to call": "Повернутися до виклику", @@ -1692,7 +1692,7 @@ "Enable desktop notifications": "Увімкнути сповіщення стільниці", "Don't miss a reply": "Не пропустіть відповідей", "Review to ensure your account is safe": "Перевірте, щоб переконатися, що ваш обліковий запис у безпеці", - "You have unverified logins": "У вас є не підтверджені сеанси", + "You have unverified logins": "У вас є незвірені сеанси", "Error leaving room": "Помилка під час виходу з кімнати", "This homeserver has been blocked by its administrator.": "Цей домашній сервер заблокований адміністратором.", "See when the name changes in your active room": "Бачити, коли зміниться назва активної кімнати", @@ -1726,7 +1726,7 @@ "Start sharing your screen": "Почати показ екрана", "Start the camera": "Запустити камеру", "Scan this unique code": "Скануйте цей унікальний код", - "Verify this session by completing one of the following:": "Підтвердьте цей сеанс одним із запропонованих способів:", + "Verify this session by completing one of the following:": "Звірте цей сеанс одним із запропонованих способів:", "Leave %(groupName)s?": "Вийти з %(groupName)s?", "Leave Community": "Вийти зі спільноти", "Add a User": "Додати користувача", @@ -1900,7 +1900,7 @@ "Community Autocomplete": "Автозаповнення спільноти", "Command Autocomplete": "Команда автозаповнення", "Commands": "Команди", - "Your new session is now verified. Other users will see it as trusted.": "Тепер ваша новий сеанс тепер підтверджено. Інші користувачі побачать її довіреною.", + "Your new session is now verified. Other users will see it as trusted.": "Ваш новий сеанс звірено. Інші користувачі побачать його довіреним.", "Registration Successful": "Реєстрацію успішно виконано", "You can now close this window or log in to your new account.": "Тепер можете закрити це вікно або увійти до свого нового облікового запису.", "Log in to your new account.": "Увійти до нового облікового запису.", @@ -1908,7 +1908,7 @@ "Set a new password": "Установити новий пароль", "Return to login screen": "Повернутися на сторінку входу", "Send Reset Email": "Надіслати електронного листа скидання пароля", - "Session verified": "Сеанс підтверджено", + "Session verified": "Сеанс звірено", "User settings": "Користувацькі налаштування", "Community settings": "Налаштування спільноти", "Switch theme": "Змінити тему", @@ -2110,5 +2110,31 @@ "There was an error finding this widget.": "Сталася помилка під час пошуку розширення.", "Active Widgets": "Активні розширення", "Verification Requests": "Запит перевірки", - "There was a problem communicating with the server. Please try again.": "Виникла проблема зв'язку з сервером. Повторіть спробу." + "There was a problem communicating with the server. Please try again.": "Виникла проблема зв'язку з сервером. Повторіть спробу.", + "You're not currently a member of any communities.": "Ви не приєдналися до жодної групи.", + "Loading...": "Завантаження...", + "Failed to load group members": "Не вдалося завантажити учасників групи", + "Can't load this message": "Не вдалося завантажити це повідомлення", + "Click here to see older messages.": "Клацніть тут, щоб переглянути давніші повідомлення.", + "%(senderDisplayName)s removed the room avatar.": "%(senderDisplayName)s вилучає аватар кімнати.", + "reacted with %(shortName)s": "реагує на %(shortName)s", + "%(reactors)s reacted with %(content)s": "%(reactors)s реагує на %(content)s", + "Reactions": "Реакції", + "Add reaction": "Додати реакцію", + "%(senderDisplayName)s sent a sticker.": "%(senderDisplayName)s надсилає наліпку.", + "%(senderDisplayName)s changed the room avatar.": "%(senderDisplayName)s змінює аватар кімнати.", + "%(date)s at %(time)s": "%(date)s о %(time)s", + "Manually export keys": "Експорт ключів власноруч", + "Don't leave any rooms": "Не виходити з будь-якої кімнати", + "Updating %(brand)s": "Оновлення %(brand)s", + "Clear cache and resync": "Очистити кеш і повторно синхронізувати", + "Incompatible local cache": "Несумісний локальний кеш", + "Signature upload failed": "Не вдалося вивантажити підпис", + "Signature upload success": "Підпис успішно вивантажено", + "Unable to upload": "Не вдалося вивантажити", + "Cancelled signature upload": "Вивантаження підпису скасовано", + "Upload completed": "Вивантаження виконано", + "Search %(spaceName)s": "Пошук %(spaceName)s", + "Leave some rooms": "Вийте з кількох кімнат", + "Leave all rooms": "Вийти з кімнати" } diff --git a/src/i18n/strings/zh_Hans.json b/src/i18n/strings/zh_Hans.json index 7ed706b61a..7084e9f649 100644 --- a/src/i18n/strings/zh_Hans.json +++ b/src/i18n/strings/zh_Hans.json @@ -3164,5 +3164,42 @@ "You are about to leave .": "你即将离开 。", "Leave some rooms": "离开一些聊天室", "Leave all rooms": "离开所有聊天室", - "Don't leave any rooms": "不离开任何聊天室" + "Don't leave any rooms": "不离开任何聊天室", + "Collapse quotes │ ⇧+click": "折叠引号│ ⇧+click", + "Expand quotes │ ⇧+click": "展开引号│ ⇧+click", + "Number of messages can only be a number between %(min)s and %(max)s": "消息数只能是一个介于 %(min)s 和 %(max)s 之间的整数", + "Include Attachments": "包括附件", + "Size Limit": "大小限制", + "Format": "格式", + "Select from the options below to export chats from your timeline": "从下面的选项中选择以从时间轴导出聊天记录", + "Export Chat": "导出聊天", + "Exporting your data": "导出你的数据", + "Stop": "停止", + "Are you sure you want to stop exporting your data? If you do, you'll need to start over.": "您确定要停止导出数据吗?如果你这样做了,你需要重新开始。", + "Your export was successful. Find it in your Downloads folder.": "导出成功了。你可以在下载文件夹中找到导出文件。", + "The export was cancelled successfully": "成功取消了导出", + "Export Successful": "成功导出", + "MB": "MB", + "Number of messages": "消息数", + "Size can only be a number between %(min)s MB and %(max)s MB": "大小只能是 %(min)sMB 和 %(max)sMB 之间的一个数字", + "Enter a number between %(min)s and %(max)s": "输入一个 %(min)s 和 %(max)s 之间的数字", + "In reply to this message": "回复此消息", + "Export chat": "导出聊天", + "File Attached": "已附加文件", + "Error fetching file": "获取文件出错", + "Topic: %(topic)s": "话题:%(topic)s", + "This is the start of export of . Exported by at %(exportDate)s.": "这是 导出的开始。导出人 ,导出日期 %(exportDate)s。", + "%(creatorName)s created this room.": "%(creatorName)s 创建了此聊天室。", + "Media omitted - file size limit exceeded": "省略了媒体文件 - 超出了文件大小限制", + "Media omitted": "省略了媒体文件", + "Current Timeline": "当前时间线", + "Specify a number of messages": "指定消息数", + "From the beginning": "从开头", + "Plain Text": "纯文本", + "JSON": "JSON", + "HTML": "HTML", + "Are you sure you want to exit during this export?": "您确定要在导出未完成时退出吗?", + "%(senderDisplayName)s sent a sticker.": "%(senderDisplayName)s 发送了一张贴纸。", + "%(senderDisplayName)s changed the room avatar.": "%(senderDisplayName)s 更改了聊天室头像。", + "%(date)s at %(time)s": "%(date)s 的 %(time)s" } diff --git a/src/i18n/strings/zh_Hant.json b/src/i18n/strings/zh_Hant.json index 9d644d424b..798f7a99c2 100644 --- a/src/i18n/strings/zh_Hant.json +++ b/src/i18n/strings/zh_Hant.json @@ -3160,5 +3160,49 @@ "To join a space you'll need an invite.": "若要加入空間,您必須被邀請。", "You can also make Spaces from communities.": "您也可以從社群建立空間。", "Temporarily show communities instead of Spaces for this session. Support for this will be removed in the near future. This will reload Element.": "為此工作階段暫時顯示社群而非空間。對此功能的支援將在不久的將來移除。這將會重新載入 Element。", - "Display Communities instead of Spaces": "顯示社群而非空間" + "Display Communities instead of Spaces": "顯示社群而非空間", + "Would you like to leave the rooms in this space?": "您想要離開此空間中的聊天室嗎?", + "You are about to leave .": "您將要離開 。", + "Leave some rooms": "離開部份聊天室", + "Leave all rooms": "離開所有聊天室", + "Don't leave any rooms": "不要離開任何聊天室", + "%(reactors)s reacted with %(content)s": "%(reactors)s 使用了 %(content)s 反應", + "Joining space …": "正在加入空間……", + "Expand quotes │ ⇧+click": "展開引用 │ ⇧+點擊", + "Collapse quotes │ ⇧+click": "折疊引用 │ ⇧+點擊", + "Include Attachments": "包含附件", + "Size Limit": "大小限制", + "Format": "格式", + "Select from the options below to export chats from your timeline": "從下面的選項中選擇以從您的時間軸匯出聊天", + "Export Chat": "匯出聊天", + "Exporting your data": "正在匯出您的資料", + "Stop": "停止", + "Are you sure you want to stop exporting your data? If you do, you'll need to start over.": "您確定您要停止匯出您的資料嗎?若您這麼做,您就必須重新開始。", + "Your export was successful. Find it in your Downloads folder.": "您匯出成功。請在您的下載資料夾中尋找它。", + "The export was cancelled successfully": "匯出已成功取消", + "Export Successful": "匯出成功", + "MB": "MB", + "Number of messages": "訊息數", + "Number of messages can only be a number between %(min)s and %(max)s": "訊息數只能是 %(min)s MB 至 %(max)s MB 間的數字", + "Size can only be a number between %(min)s MB and %(max)s MB": "大小只能是 %(min)s MB 至 %(max)s MB 間的數字", + "Enter a number between %(min)s and %(max)s": "輸入介於 %(min)s 至 %(max)s 間的數字", + "In reply to this message": "回覆此訊息", + "Export chat": "匯出聊天", + "File Attached": "已附加檔案", + "Error fetching file": "擷取檔案錯誤", + "Topic: %(topic)s": "主題:%(topic)s", + "This is the start of export of . Exported by at %(exportDate)s.": "這是 匯出的開始。由 於 %(exportDate)s 匯出。", + "%(creatorName)s created this room.": "%(creatorName)s 建立了此聊天室。", + "Media omitted - file size limit exceeded": "媒體省略 - 超過檔案大小限制", + "Media omitted": "媒體省略", + "Current Timeline": "目前時間軸", + "Specify a number of messages": "指定訊息數量", + "From the beginning": "從一開始", + "Plain Text": "純文字", + "JSON": "JSON", + "HTML": "HTML", + "Are you sure you want to exit during this export?": "您確定您要從此匯出流程中退出嗎?", + "%(senderDisplayName)s sent a sticker.": "%(senderDisplayName)s 傳送了貼圖。", + "%(senderDisplayName)s changed the room avatar.": "%(senderDisplayName)s 變更了聊天室大頭照。", + "%(date)s at %(time)s": "%(date)s 於 %(time)s" } diff --git a/src/index.js b/src/index.ts similarity index 81% rename from src/index.js rename to src/index.ts index e360c04f4f..2c88265438 100644 --- a/src/index.js +++ b/src/index.ts @@ -15,20 +15,21 @@ See the License for the specific language governing permissions and limitations under the License. */ -import Skinner from './Skinner'; +import Skinner, { ISkinObject } from './Skinner'; -export function loadSkin(skinObject) { +export function loadSkin(skinObject: ISkinObject): void { Skinner.load(skinObject); } -export function resetSkin() { +export function resetSkin(): void { Skinner.reset(); } -export function getComponent(componentName) { +export function getComponent(componentName: string): any { return Skinner.getComponent(componentName); } // Import the js-sdk so the proper `request` object can be set. This does some // magic with the browser injection to make all subsequent imports work fine. import "matrix-js-sdk"; + diff --git a/src/linkify-matrix.js b/src/linkify-matrix.ts similarity index 87% rename from src/linkify-matrix.js rename to src/linkify-matrix.ts index e670bfcdab..20f1b1e213 100644 --- a/src/linkify-matrix.js +++ b/src/linkify-matrix.ts @@ -22,7 +22,14 @@ import { tryTransformPermalinkToLocalHref, } from "./utils/permalinks/Permalinks"; -function matrixLinkify(linkify) { +enum Type { + URL = "url", + UserId = "userid", + RoomAlias = "roomalias", + GroupId = "groupid" +} + +function matrixLinkify(linkify): void { // Text tokens const TT = linkify.scanner.TOKENS; // Multi tokens @@ -173,11 +180,11 @@ function matrixLinkify(linkify) { } // stubs, overwritten in MatrixChat's componentDidMount -matrixLinkify.onUserClick = function(e, userId) { e.preventDefault(); }; -matrixLinkify.onAliasClick = function(e, roomAlias) { e.preventDefault(); }; -matrixLinkify.onGroupClick = function(e, groupId) { e.preventDefault(); }; +matrixLinkify.onUserClick = function(e: MouseEvent, userId: string) { e.preventDefault(); }; +matrixLinkify.onAliasClick = function(e: MouseEvent, roomAlias: string) { e.preventDefault(); }; +matrixLinkify.onGroupClick = function(e: MouseEvent, groupId: string) { e.preventDefault(); }; -const escapeRegExp = function(string) { +const escapeRegExp = function(string): string { return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); }; @@ -196,14 +203,15 @@ matrixLinkify.MATRIXTO_MD_LINK_PATTERN = matrixLinkify.MATRIXTO_BASE_URL= baseUrl; matrixLinkify.options = { - events: function(href, type) { + events: function(href: string, type: Type | string): Partial { switch (type) { - case "url": { + case Type.URL: { // intercept local permalinks to users and show them like userids (in userinfo of current room) try { const permalink = parsePermalink(href); if (permalink && permalink.userId) { return { + // @ts-ignore see https://linkify.js.org/docs/options.html click: function(e) { matrixLinkify.onUserClick(e, permalink.userId); }, @@ -214,20 +222,23 @@ matrixLinkify.options = { } break; } - case "userid": + case Type.UserId: return { + // @ts-ignore see https://linkify.js.org/docs/options.html click: function(e) { matrixLinkify.onUserClick(e, href); }, }; - case "roomalias": + case Type.RoomAlias: return { + // @ts-ignore see https://linkify.js.org/docs/options.html click: function(e) { matrixLinkify.onAliasClick(e, href); }, }; - case "groupid": + case Type.GroupId: return { + // @ts-ignore see https://linkify.js.org/docs/options.html click: function(e) { matrixLinkify.onGroupClick(e, href); }, @@ -235,11 +246,11 @@ matrixLinkify.options = { } }, - formatHref: function(href, type) { + formatHref: function(href: string, type: Type | string): string { switch (type) { - case 'roomalias': - case 'userid': - case 'groupid': + case Type.RoomAlias: + case Type.UserId: + case Type.GroupId: default: { return tryTransformEntityToPermalink(href); } @@ -250,8 +261,8 @@ matrixLinkify.options = { rel: 'noreferrer noopener', }, - target: function(href, type) { - if (type === 'url') { + target: function(href: string, type: Type | string): string { + if (type === Type.URL) { try { const transformed = tryTransformPermalinkToLocalHref(href); if (transformed !== href || decodeURIComponent(href).match(matrixLinkify.ELEMENT_URL_PATTERN)) { diff --git a/src/settings/SettingsStore.ts b/src/settings/SettingsStore.ts index af858d2379..d2f5568988 100644 --- a/src/settings/SettingsStore.ts +++ b/src/settings/SettingsStore.ts @@ -162,9 +162,10 @@ export default class SettingsStore { const watcherId = `${new Date().getTime()}_${SettingsStore.watcherCount++}_${settingName}_${roomId}`; - const localizedCallback = (changedInRoomId, atLevel, newValAtLevel) => { + const localizedCallback = (changedInRoomId: string | null, atLevel: SettingLevel, newValAtLevel: any) => { const newValue = SettingsStore.getValue(originalSettingName); - callbackFn(originalSettingName, changedInRoomId, atLevel, newValAtLevel, newValue); + const newValueAtLevel = SettingsStore.getValueAt(atLevel, originalSettingName) ?? newValAtLevel; + callbackFn(originalSettingName, changedInRoomId, atLevel, newValueAtLevel, newValue); }; SettingsStore.watchers.set(watcherId, localizedCallback); diff --git a/src/shouldHideEvent.ts b/src/shouldHideEvent.ts index 985eae85a0..c31da5bd4f 100644 --- a/src/shouldHideEvent.ts +++ b/src/shouldHideEvent.ts @@ -17,7 +17,7 @@ import { MatrixEvent } from "matrix-js-sdk/src/models/event"; import SettingsStore from "./settings/SettingsStore"; -import { IState } from "./components/structures/RoomView"; +import { IRoomState } from "./components/structures/RoomView"; interface IDiff { isMemberEvent: boolean; @@ -54,7 +54,7 @@ function memberEventDiff(ev: MatrixEvent): IDiff { * @param ctx An optional RoomContext to pull cached settings values from to avoid * hitting the settings store */ -export default function shouldHideEvent(ev: MatrixEvent, ctx?: IState): boolean { +export default function shouldHideEvent(ev: MatrixEvent, ctx?: IRoomState): boolean { // Accessing the settings store directly can be expensive if done frequently, // so we should prefer using cached values if a RoomContext is available const isEnabled = ctx ? diff --git a/src/stores/SetupEncryptionStore.ts b/src/stores/SetupEncryptionStore.ts index 14119af576..e3d4d42591 100644 --- a/src/stores/SetupEncryptionStore.ts +++ b/src/stores/SetupEncryptionStore.ts @@ -22,6 +22,9 @@ import { PHASE_DONE as VERIF_PHASE_DONE } from "matrix-js-sdk/src/crypto/verific import { MatrixClientPeg } from '../MatrixClientPeg'; import { accessSecretStorage, AccessCancelledError } from '../SecurityManager'; +import Modal from '../Modal'; +import InteractiveAuthDialog from '../components/views/dialogs/InteractiveAuthDialog'; +import { _t } from '../languageHandler'; import { logger } from "matrix-js-sdk/src/logger"; @@ -32,6 +35,7 @@ export enum Phase { Done = 3, // final done stage, but still showing UX ConfirmSkip = 4, Finished = 5, // UX can be closed + ConfirmReset = 6, } export class SetupEncryptionStore extends EventEmitter { @@ -103,20 +107,23 @@ export class SetupEncryptionStore extends EventEmitter { this.keyInfo = keys[this.keyId]; } - // do we have any other devices which are E2EE which we can verify against? + // do we have any other verified devices which are E2EE which we can verify against? const dehydratedDevice = await cli.getDehydratedDevice(); - this.hasDevicesToVerifyAgainst = cli.getStoredDevicesForUser(cli.getUserId()).some( + const ownUserId = cli.getUserId(); + const crossSigningInfo = cli.getStoredCrossSigningForUser(ownUserId); + this.hasDevicesToVerifyAgainst = cli.getStoredDevicesForUser(ownUserId).some( device => device.getIdentityKey() && - (!dehydratedDevice || (device.deviceId != dehydratedDevice.device_id)), + (!dehydratedDevice || (device.deviceId != dehydratedDevice.device_id)) && + crossSigningInfo.checkDeviceTrust( + crossSigningInfo, + device, + false, + true, + ).isCrossSigningVerified(), ); - if (!this.hasDevicesToVerifyAgainst && !this.keyInfo) { - // skip before we can even render anything. - this.phase = Phase.Finished; - } else { - this.phase = Phase.Intro; - } + this.phase = Phase.Intro; this.emit("update"); } @@ -208,6 +215,50 @@ export class SetupEncryptionStore extends EventEmitter { this.emit("update"); } + public reset(): void { + this.phase = Phase.ConfirmReset; + this.emit("update"); + } + + public async resetConfirm(): Promise { + try { + // If we've gotten here, the user presumably lost their + // secret storage key if they had one. Start by resetting + // secret storage and setting up a new recovery key, then + // create new cross-signing keys once that succeeds. + await accessSecretStorage(async () => { + const cli = MatrixClientPeg.get(); + await cli.bootstrapCrossSigning({ + authUploadDeviceSigningKeys: async (makeRequest) => { + const { finished } = Modal.createTrackedDialog( + 'Cross-signing keys dialog', '', InteractiveAuthDialog, + { + title: _t("Setting up keys"), + matrixClient: cli, + makeRequest, + }, + ); + const [confirmed] = await finished; + if (!confirmed) { + throw new Error("Cross-signing key upload auth canceled"); + } + }, + setupNewCrossSigning: true, + }); + this.phase = Phase.Finished; + }, true); + } catch (e) { + console.error("Error resetting cross-signing", e); + this.phase = Phase.Intro; + } + this.emit("update"); + } + + public returnAfterReset(): void { + this.phase = Phase.Intro; + this.emit("update"); + } + public done(): void { this.phase = Phase.Finished; this.emit("update"); @@ -226,4 +277,8 @@ export class SetupEncryptionStore extends EventEmitter { request.on("change", this.onVerificationRequestChange); this.emit("update"); } + + public lostKeys(): boolean { + return !this.hasDevicesToVerifyAgainst && !this.keyInfo; + } } diff --git a/src/stores/SpaceStore.tsx b/src/stores/SpaceStore.ts similarity index 88% rename from src/stores/SpaceStore.tsx rename to src/stores/SpaceStore.ts index d440c33c83..b4a1889d3e 100644 --- a/src/stores/SpaceStore.tsx +++ b/src/stores/SpaceStore.ts @@ -14,13 +14,11 @@ See the License for the specific language governing permissions and limitations under the License. */ -import React from "react"; import { ListIteratee, Many, sortBy, throttle } from "lodash"; import { EventType, RoomType } from "matrix-js-sdk/src/@types/event"; import { Room } from "matrix-js-sdk/src/models/room"; import { MatrixEvent } from "matrix-js-sdk/src/models/event"; import { IHierarchyRoom } from "matrix-js-sdk/src/@types/spaces"; -import { JoinRule } from "matrix-js-sdk/src/@types/partials"; import { IRoomCapability } from "matrix-js-sdk/src/client"; import { AsyncStoreWithClient } from "./AsyncStoreWithClient"; @@ -41,12 +39,6 @@ import { arrayHasDiff, arrayHasOrderChange } from "../utils/arrays"; import { objectDiff } from "../utils/objects"; import { reorderLexicographically } from "../utils/stringOrderField"; import { TAG_ORDER } from "../components/views/rooms/RoomList"; -import { shouldShowSpaceSettings } from "../utils/space"; -import ToastStore from "./ToastStore"; -import { _t } from "../languageHandler"; -import GenericToast from "../components/views/toasts/GenericToast"; -import Modal from "../Modal"; -import InfoDialog from "../components/views/dialogs/InfoDialog"; import { SettingUpdatedPayload } from "../dispatcher/payloads/SettingUpdatedPayload"; type SpaceKey = string | symbol; @@ -93,7 +85,7 @@ const validOrder = (order: string): string | undefined => { // For sorting space children using a validated `order`, `m.room.create`'s `origin_server_ts`, `room_id` export const getChildOrder = (order: string, creationTs: number, roomId: string): Array>> => { - return [validOrder(order), creationTs, roomId]; + return [validOrder(order) ?? NaN, creationTs, roomId]; // NaN has lodash sort it at the end in asc }; const getRoomFn: FetchRoomFn = (room: Room) => { @@ -191,7 +183,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient { * should not be done when the space switch is done implicitly due to another event like switching room. */ public setActiveSpace(space: Room | null, contextSwitch = true) { - if (space === this.activeSpace || (space && !space.isSpaceRoom())) return; + if (!this.matrixClient || space === this.activeSpace || (space && !space.isSpaceRoom())) return; this._activeSpace = space; this.emit(UPDATE_SELECTED_SPACE, this.activeSpace); @@ -205,7 +197,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient { // else if the last viewed room in this space is joined then view that // else view space home or home depending on what is being clicked on if (space?.getMyMembership() !== "invite" && - this.matrixClient?.getRoom(roomId)?.getMyMembership() === "join" && + this.matrixClient.getRoom(roomId)?.getMyMembership() === "join" && this.getSpaceFilteredRoomIds(space).has(roomId) ) { defaultDispatcher.dispatch({ @@ -233,71 +225,12 @@ export class SpaceStoreClass extends AsyncStoreWithClient { window.localStorage.removeItem(ACTIVE_SPACE_LS_KEY); } - // New in Spaces beta toast for Restricted Join Rule - const lsKey = "mx_SpaceBeta_restrictedJoinRuleToastSeen"; - if (contextSwitch && space?.getJoinRule() === JoinRule.Invite && shouldShowSpaceSettings(space) && - space.getJoinedMemberCount() > 1 && !localStorage.getItem(lsKey) - && this.restrictedJoinRuleSupport?.preferred - ) { - const toastKey = "restrictedjoinrule"; - ToastStore.sharedInstance().addOrReplaceToast({ - key: toastKey, - title: _t("New in the Spaces beta"), - props: { - description: _t("Help people in spaces to find and join private rooms"), - acceptLabel: _t("Learn more"), - onAccept: () => { - localStorage.setItem(lsKey, "true"); - ToastStore.sharedInstance().dismissToast(toastKey); - - Modal.createTrackedDialog("New in the Spaces beta", "restricted join rule", InfoDialog, { - title: _t("Help space members find private rooms"), - description: <> -

{ _t("To help space members find and join a private room, " + - "go to that room's Security & Privacy settings.") }

- - { /* Reuses classes from TabbedView for simplicity, non-interactive */ } -
-
- - { _t("General") } -
-
- - { _t("Security & Privacy") } -
-
- - { _t("Roles & Permissions") } -
-
- -

{ _t("This makes it easy for rooms to stay private to a space, " + - "while letting people in the space find and join them. " + - "All new rooms in a space will have this option available.") }

- , - button: _t("OK"), - hasCloseButton: false, - fixedWidth: true, - }); - }, - rejectLabel: _t("Skip"), - onReject: () => { - localStorage.setItem(lsKey, "true"); - ToastStore.sharedInstance().dismissToast(toastKey); - }, - }, - component: GenericToast, - priority: 35, - }); - } - if (space) { this.loadSuggestedRooms(space); } } - private async loadSuggestedRooms(space) { + private async loadSuggestedRooms(space: Room): Promise { const suggestedRooms = await this.fetchSuggestedRooms(space); if (this._activeSpace === space) { this._suggestedRooms = suggestedRooms; @@ -350,7 +283,8 @@ export class SpaceStoreClass extends AsyncStoreWithClient { const createTs = childRoom?.currentState.getStateEvents(EventType.RoomCreate, "")?.getTs(); return getChildOrder(ev.getContent().order, createTs, roomId); }).map(ev => { - return this.matrixClient.getRoom(ev.getStateKey()); + const history = this.matrixClient.getRoomUpgradeHistory(ev.getStateKey(), true); + return history[history.length - 1]; }).filter(room => { return room?.getMyMembership() === "join" || room?.getMyMembership() === "invite"; }) || []; @@ -402,6 +336,8 @@ export class SpaceStoreClass extends AsyncStoreWithClient { }; private rebuild = throttle(() => { + if (!this.matrixClient) return; + const [visibleSpaces, visibleRooms] = partitionSpacesAndRooms(this.matrixClient.getVisibleRooms()); const [joinedSpaces, invitedSpaces] = visibleSpaces.reduce((arr, s) => { if (s.getMyMembership() === "join") { @@ -576,8 +512,13 @@ export class SpaceStoreClass extends AsyncStoreWithClient { hiddenChildren.get(spaceId)?.forEach(roomId => { roomIds.add(roomId); }); - this.spaceFilteredRooms.set(spaceId, roomIds); - return roomIds; + + // Expand room IDs to all known versions of the given rooms + const expandedRoomIds = new Set(Array.from(roomIds).flatMap(roomId => { + return this.matrixClient.getRoomUpgradeHistory(roomId, true).map(r => r.roomId); + })); + this.spaceFilteredRooms.set(spaceId, expandedRoomIds); + return expandedRoomIds; }; fn(s.roomId, new Set()); @@ -595,7 +536,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient { // Update NotificationStates this.getNotificationState(s).setRooms(visibleRooms.filter(room => { - if (!roomIds.has(room.roomId)) return false; + if (!roomIds.has(room.roomId) || room.isSpaceRoom()) return false; if (DMRoomMap.shared().getUserIdForRoomId(room.roomId)) { return s === HOME_SPACE; @@ -673,6 +614,9 @@ export class SpaceStoreClass extends AsyncStoreWithClient { if (membership === "join" && room.roomId === RoomViewStore.getRoomId()) { // if the user was looking at the space and then joined: select that space this.setActiveSpace(room, false); + } else if (membership === "leave" && room.roomId === this.activeSpace?.roomId) { + // user's active space has gone away, go back to home + this.setActiveSpace(null, true); } }; @@ -818,7 +762,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient { } protected async onAction(payload: ActionPayload) { - if (!spacesEnabled || !this.matrixClient) return; + if (!spacesEnabled) return; switch (payload.action) { case "view_room": { // Don't auto-switch rooms when reacting to a context-switch @@ -855,7 +799,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient { // 1 is Home, 2-9 are the spaces after Home if (payload.num === 1) { this.setActiveSpace(null); - } else if (this.spacePanelSpaces.length >= payload.num) { + } else if (payload.num > 0 && this.spacePanelSpaces.length > payload.num - 2) { this.setActiveSpace(this.spacePanelSpaces[payload.num - 2]); } break; diff --git a/src/stores/local-echo/RoomEchoChamber.ts b/src/stores/local-echo/RoomEchoChamber.ts index e113f68c32..fb40e23a85 100644 --- a/src/stores/local-echo/RoomEchoChamber.ts +++ b/src/stores/local-echo/RoomEchoChamber.ts @@ -15,20 +15,17 @@ limitations under the License. */ import { GenericEchoChamber, implicitlyReverted, PROPERTY_UPDATED } from "./GenericEchoChamber"; -import { getRoomNotifsState, setRoomNotifsState } from "../../RoomNotifs"; +import { getRoomNotifsState, RoomNotifState, setRoomNotifsState } from "../../RoomNotifs"; import { RoomEchoContext } from "./RoomEchoContext"; import { _t } from "../../languageHandler"; -import { Volume } from "../../RoomNotifsTypes"; import { MatrixEvent } from "matrix-js-sdk/src/models/event"; -export type CachedRoomValues = Volume; - export enum CachedRoomKey { NotificationVolume, } -export class RoomEchoChamber extends GenericEchoChamber { - private properties = new Map(); +export class RoomEchoChamber extends GenericEchoChamber { + private properties = new Map(); public constructor(context: RoomEchoContext) { super(context, (k) => this.properties.get(k)); @@ -50,8 +47,8 @@ export class RoomEchoChamber extends GenericEchoChamber { if (event.getType() === "m.push_rules") { - const currentVolume = this.properties.get(CachedRoomKey.NotificationVolume) as Volume; - const newVolume = getRoomNotifsState(this.context.room.roomId) as Volume; + const currentVolume = this.properties.get(CachedRoomKey.NotificationVolume) as RoomNotifState; + const newVolume = getRoomNotifsState(this.context.room.roomId) as RoomNotifState; if (currentVolume !== newVolume) { this.updateNotificationVolume(); } @@ -66,11 +63,11 @@ export class RoomEchoChamber extends GenericEchoChamber { return setRoomNotifsState(this.context.room.roomId, v); }, implicitlyReverted); diff --git a/src/stores/notifications/RoomNotificationState.ts b/src/stores/notifications/RoomNotificationState.ts index d0479200bd..3ad0080183 100644 --- a/src/stores/notifications/RoomNotificationState.ts +++ b/src/stores/notifications/RoomNotificationState.ts @@ -20,7 +20,7 @@ import { MatrixClientPeg } from "../../MatrixClientPeg"; import { EffectiveMembership, getEffectiveMembership } from "../../utils/membership"; import { readReceiptChangeIsFor } from "../../utils/read-receipts"; import { MatrixEvent } from "matrix-js-sdk/src/models/event"; -import { Room } from "matrix-js-sdk/src/models/room"; +import { NotificationCountType, Room } from "matrix-js-sdk/src/models/room"; import * as RoomNotifs from '../../RoomNotifs'; import * as Unread from '../../Unread'; import { NotificationState } from "./NotificationState"; @@ -91,7 +91,7 @@ export class RoomNotificationState extends NotificationState implements IDestroy this._color = NotificationColor.Unsent; this._symbol = "!"; this._count = 1; // not used, technically - } else if (RoomNotifs.getRoomNotifsState(this.room.roomId) === RoomNotifs.MUTE) { + } else if (RoomNotifs.getRoomNotifsState(this.room.roomId) === RoomNotifs.RoomNotifState.Mute) { // When muted we suppress all notification states, even if we have context on them. this._color = NotificationColor.None; this._symbol = null; @@ -101,8 +101,8 @@ export class RoomNotificationState extends NotificationState implements IDestroy this._symbol = "!"; this._count = 1; // not used, technically } else { - const redNotifs = RoomNotifs.getUnreadNotificationCount(this.room, 'highlight'); - const greyNotifs = RoomNotifs.getUnreadNotificationCount(this.room, 'total'); + const redNotifs = RoomNotifs.getUnreadNotificationCount(this.room, NotificationCountType.Highlight); + const greyNotifs = RoomNotifs.getUnreadNotificationCount(this.room, NotificationCountType.Total); // For a 'true count' we pick the grey notifications first because they include the // red notifications. If we don't have a grey count for some reason we use the red diff --git a/src/theme.js b/src/theme.ts similarity index 89% rename from src/theme.js rename to src/theme.ts index cd14d2d9db..aaebe3746d 100644 --- a/src/theme.js +++ b/src/theme.ts @@ -17,11 +17,32 @@ limitations under the License. import { _t } from "./languageHandler"; -export const DEFAULT_THEME = "light"; import SettingsStore from "./settings/SettingsStore"; import ThemeWatcher from "./settings/watchers/ThemeWatcher"; -export function enumerateThemes() { +export const DEFAULT_THEME = "light"; + +interface IFontFaces { + src: { + format: string; + url: string; + local: string; + }[]; +} + +interface ICustomTheme { + colors: { + [key: string]: string; + }; + fonts: { + faces: IFontFaces[]; + general: string; + monospace: string; + }; + is_dark?: boolean; // eslint-disable-line camelcase +} + +export function enumerateThemes(): {[key: string]: string} { const BUILTIN_THEMES = { "light": _t("Light"), "dark": _t("Dark"), @@ -34,7 +55,7 @@ export function enumerateThemes() { return Object.assign({}, customThemeNames, BUILTIN_THEMES); } -function clearCustomTheme() { +function clearCustomTheme(): void { // remove all css variables, we assume these are there because of the custom theme const inlineStyleProps = Object.values(document.body.style); for (const prop of inlineStyleProps) { @@ -61,7 +82,7 @@ const allowedFontFaceProps = [ "unicode-range", ]; -function generateCustomFontFaceCSS(faces) { +function generateCustomFontFaceCSS(faces: IFontFaces[]): string { return faces.map(face => { const src = face.src && face.src.map(srcElement => { let format; @@ -91,7 +112,7 @@ function generateCustomFontFaceCSS(faces) { }).join("\n"); } -function setCustomThemeVars(customTheme) { +function setCustomThemeVars(customTheme: ICustomTheme): void { const { style } = document.body; function setCSSColorVariable(name, hexColor, doPct = true) { @@ -134,7 +155,7 @@ function setCustomThemeVars(customTheme) { } } -export function getCustomTheme(themeName) { +export function getCustomTheme(themeName: string): ICustomTheme { // set css variables const customThemes = SettingsStore.getValue("custom_themes"); if (!customThemes) { @@ -155,7 +176,7 @@ export function getCustomTheme(themeName) { * * @param {string} theme new theme */ -export async function setTheme(theme) { +export async function setTheme(theme?: string): Promise { if (!theme) { const themeWatcher = new ThemeWatcher(); theme = themeWatcher.getEffectiveTheme(); @@ -200,13 +221,14 @@ export async function setTheme(theme) { // We could alternatively lock or similar to stop the race, but // this is probably good enough for now. styleElements[stylesheetName].disabled = false; - Object.values(styleElements).forEach((a) => { + Object.values(styleElements).forEach((a: HTMLStyleElement) => { if (a == styleElements[stylesheetName]) return; a.disabled = true; }); const bodyStyles = global.getComputedStyle(document.body); if (bodyStyles.backgroundColor) { - document.querySelector('meta[name="theme-color"]').content = bodyStyles.backgroundColor; + const metaElement: HTMLMetaElement = document.querySelector('meta[name="theme-color"]'); + metaElement.content = bodyStyles.backgroundColor; } resolve(); }; diff --git a/src/utils/EventUtils.ts b/src/utils/EventUtils.ts index ee8d9bceae..e16e58e0d2 100644 --- a/src/utils/EventUtils.ts +++ b/src/utils/EventUtils.ts @@ -14,7 +14,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -import { Room } from 'matrix-js-sdk/src/models/room'; import { MatrixEvent, EventStatus } from 'matrix-js-sdk/src/models/event'; import { MatrixClientPeg } from '../MatrixClientPeg'; @@ -73,9 +72,15 @@ export function canEditOwnEvent(mxEvent: MatrixEvent): boolean { } const MAX_JUMP_DISTANCE = 100; -export function findEditableEvent(room: Room, isForward: boolean, fromEventId: string = undefined): MatrixEvent { - const liveTimeline = room.getLiveTimeline(); - const events = liveTimeline.getEvents().concat(room.getPendingEvents()); +export function findEditableEvent({ + events, + isForward, + fromEventId, +}: { + events: MatrixEvent[]; + isForward: boolean; + fromEventId?: string; +}): MatrixEvent { const maxIdx = events.length - 1; const inc = isForward ? 1 : -1; const beginIdx = isForward ? 0 : maxIdx; diff --git a/src/utils/MultiInviter.ts b/src/utils/MultiInviter.ts index 5b79a2ff93..abf72c97ff 100644 --- a/src/utils/MultiInviter.ts +++ b/src/utils/MultiInviter.ts @@ -62,8 +62,9 @@ export default class MultiInviter { /** * @param {string} targetId The ID of the room or group to invite to + * @param {function} progressCallback optional callback, fired after each invite. */ - constructor(targetId: string) { + constructor(targetId: string, private readonly progressCallback?: () => void) { if (targetId[0] === '+') { this.roomId = null; this.groupId = targetId; @@ -181,6 +182,7 @@ export default class MultiInviter { delete this.errors[address]; resolve(); + this.progressCallback?.(); }).catch((err) => { if (this.canceled) { return; diff --git a/src/utils/exportUtils/Exporter.ts b/src/utils/exportUtils/Exporter.ts new file mode 100644 index 0000000000..db28508c68 --- /dev/null +++ b/src/utils/exportUtils/Exporter.ts @@ -0,0 +1,267 @@ +/* +Copyright 2021 The Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +import { MatrixEvent } from "matrix-js-sdk/src/models/event"; +import { Room } from "matrix-js-sdk/src/models/room"; +import { MatrixClientPeg } from "../../MatrixClientPeg"; +import { IExportOptions, ExportType } from "./exportUtils"; +import { decryptFile } from "../DecryptFile"; +import { mediaFromContent } from "../../customisations/Media"; +import { formatFullDateNoDay } from "../../DateUtils"; +import { isVoiceMessage } from "../EventUtils"; +import { MatrixClient } from "matrix-js-sdk/src/client"; +import { Direction } from "matrix-js-sdk/src/models/event-timeline"; +import { IMediaEventContent } from "../../customisations/models/IMediaEventContent"; +import { saveAs } from "file-saver"; +import { _t } from "../../languageHandler"; +import SdkConfig from "../../SdkConfig"; + +type BlobFile = { + name: string; + blob: Blob; +}; + +export default abstract class Exporter { + protected files: BlobFile[] = []; + protected client: MatrixClient; + protected cancelled = false; + + protected constructor( + protected room: Room, + protected exportType: ExportType, + protected exportOptions: IExportOptions, + protected setProgressText: React.Dispatch>, + ) { + if (exportOptions.maxSize < 1 * 1024 * 1024|| // Less than 1 MB + exportOptions.maxSize > 2000 * 1024 * 1024|| // More than ~ 2 GB + exportOptions.numberOfMessages > 10**8 + ) { + throw new Error("Invalid export options"); + } + this.client = MatrixClientPeg.get(); + window.addEventListener("beforeunload", this.onBeforeUnload); + } + + protected onBeforeUnload(e: BeforeUnloadEvent): string { + e.preventDefault(); + return e.returnValue = _t("Are you sure you want to exit during this export?"); + } + + protected updateProgress(progress: string, log = true, show = true): void { + if (log) console.log(progress); + if (show) this.setProgressText(progress); + } + + protected addFile(filePath: string, blob: Blob): void { + const file = { + name: filePath, + blob, + }; + this.files.push(file); + } + + protected async downloadZIP(): Promise { + const brand = SdkConfig.get().brand; + const filename = `${brand} - Chat Export - ${formatFullDateNoDay(new Date())}.zip`; + const { default: JSZip } = await import('jszip'); + + const zip = new JSZip(); + // Create a writable stream to the directory + if (!this.cancelled) this.updateProgress("Generating a ZIP"); + else return this.cleanUp(); + + for (const file of this.files) zip.file(file.name, file.blob); + + const content = await zip.generateAsync({ type: "blob" }); + + saveAs(content, filename); + } + + protected cleanUp(): string { + console.log("Cleaning up..."); + window.removeEventListener("beforeunload", this.onBeforeUnload); + return ""; + } + + public async cancelExport(): Promise { + console.log("Cancelling export..."); + this.cancelled = true; + } + + protected downloadPlainText(fileName: string, text: string) { + const content = new Blob([text], { type: "text" }); + saveAs(content, fileName); + } + + protected setEventMetadata(event: MatrixEvent): MatrixEvent { + const roomState = this.client.getRoom(this.room.roomId).currentState; + event.sender = roomState.getSentinelMember( + event.getSender(), + ); + if (event.getType() === "m.room.member") { + event.target = roomState.getSentinelMember( + event.getStateKey(), + ); + } + return event; + } + + public getLimit(): number { + let limit: number; + switch (this.exportType) { + case ExportType.LastNMessages: + limit = this.exportOptions.numberOfMessages; + break; + case ExportType.Timeline: + limit = 40; + break; + default: + limit = 10**8; + } + return limit; + } + + protected async getRequiredEvents(): Promise { + const eventMapper = this.client.getEventMapper(); + + let prevToken: string|null = null; + let limit = this.getLimit(); + const events: MatrixEvent[] = []; + + while (limit) { + const eventsPerCrawl = Math.min(limit, 1000); + const res = await this.client.createMessagesRequest( + this.room.roomId, + prevToken, + eventsPerCrawl, + Direction.Backward, + ); + + if (this.cancelled) { + this.cleanUp(); + return []; + } + + if (res.chunk.length === 0) break; + + limit -= res.chunk.length; + + const matrixEvents: MatrixEvent[] = res.chunk.map(eventMapper); + + for (const mxEv of matrixEvents) { + // if (this.exportOptions.startDate && mxEv.getTs() < this.exportOptions.startDate) { + // // Once the last message received is older than the start date, we break out of both the loops + // limit = 0; + // break; + // } + events.push(mxEv); + } + this.updateProgress( + ("Fetched " + events.length + " events ") + (this.exportType === ExportType.LastNMessages + ? `out of ${this.exportOptions.numberOfMessages}` + : "so far"), + ); + prevToken = res.end; + } + // Reverse the events so that we preserve the order + for (let i = 0; i < Math.floor(events.length/2); i++) { + [events[i], events[events.length - i - 1]] = [events[events.length - i - 1], events[i]]; + } + + const decryptionPromises = events + .filter(event => event.isEncrypted()) + .map(event => { + return this.client.decryptEventIfNeeded(event, { + isRetry: true, + emit: false, + }); + }); + + // Wait for all the events to get decrypted. + await Promise.all(decryptionPromises); + + for (let i = 0; i < events.length; i++) this.setEventMetadata(events[i]); + + return events; + } + + protected async getMediaBlob(event: MatrixEvent): Promise { + let blob: Blob; + try { + const isEncrypted = event.isEncrypted(); + const content: IMediaEventContent = event.getContent(); + const shouldDecrypt = isEncrypted && content.hasOwnProperty("file") && event.getType() !== "m.sticker"; + if (shouldDecrypt) { + blob = await decryptFile(content.file); + } else { + const media = mediaFromContent(content); + const image = await fetch(media.srcHttp); + blob = await image.blob(); + } + } catch (err) { + console.log("Error decrypting media"); + } + return blob; + } + + public splitFileName(file: string): string[] { + const lastDot = file.lastIndexOf('.'); + if (lastDot === -1) return [file, ""]; + const fileName = file.slice(0, lastDot); + const ext = file.slice(lastDot + 1); + return [fileName, '.' + ext]; + } + + public getFilePath(event: MatrixEvent): string { + const mediaType = event.getContent().msgtype; + let fileDirectory: string; + switch (mediaType) { + case "m.image": + fileDirectory = "images"; + break; + case "m.video": + fileDirectory = "videos"; + break; + case "m.audio": + fileDirectory = "audio"; + break; + default: + fileDirectory = event.getType() === "m.sticker" ? "stickers" : "files"; + } + const fileDate = formatFullDateNoDay(new Date(event.getTs())); + let [fileName, fileExt] = this.splitFileName(event.getContent().body); + + if (event.getType() === "m.sticker") fileExt = ".png"; + if (isVoiceMessage(event)) fileExt = ".ogg"; + + return fileDirectory + "/" + fileName + '-' + fileDate + fileExt; + } + + protected isReply(event: MatrixEvent): boolean { + const isEncrypted = event.isEncrypted(); + // If encrypted, in_reply_to lies in event.event.content + const content = isEncrypted ? event.event.content : event.getContent(); + const relatesTo = content["m.relates_to"]; + return !!(relatesTo && relatesTo["m.in_reply_to"]); + } + + protected isAttachment(mxEv: MatrixEvent): boolean { + const attachmentTypes = ["m.sticker", "m.image", "m.file", "m.video", "m.audio"]; + return mxEv.getType() === attachmentTypes[0] || attachmentTypes.includes(mxEv.getContent().msgtype); + } + + abstract export(): Promise; +} diff --git a/src/utils/exportUtils/HtmlExport.tsx b/src/utils/exportUtils/HtmlExport.tsx new file mode 100644 index 0000000000..5f8413fad8 --- /dev/null +++ b/src/utils/exportUtils/HtmlExport.tsx @@ -0,0 +1,442 @@ +/* +Copyright 2021 The Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +import React from "react"; +import ReactDOM from "react-dom"; +import Exporter from "./Exporter"; +import { mediaFromMxc } from "../../customisations/Media"; +import { Room } from "matrix-js-sdk/src/models/room"; +import { MatrixEvent } from "matrix-js-sdk/src/models/event"; +import { renderToStaticMarkup } from "react-dom/server"; +import { Layout } from "../../settings/Layout"; +import { shouldFormContinuation } from "../../components/structures/MessagePanel"; +import { formatFullDateNoDayNoTime, wantsDateSeparator } from "../../DateUtils"; +import { RoomPermalinkCreator } from "../permalinks/Permalinks"; +import { _t } from "../../languageHandler"; +import { EventType, MsgType } from "matrix-js-sdk/src/@types/event"; +import * as Avatar from "../../Avatar"; +import EventTile, { haveTileForEvent } from "../../components/views/rooms/EventTile"; +import DateSeparator from "../../components/views/messages/DateSeparator"; +import BaseAvatar from "../../components/views/avatars/BaseAvatar"; +import exportJS from "!!raw-loader!./exportJS"; +import { ExportType } from "./exportUtils"; +import { IExportOptions } from "./exportUtils"; +import MatrixClientContext from "../../contexts/MatrixClientContext"; +import getExportCSS from "./exportCSS"; +import { textForEvent } from "../../TextForEvent"; + +export default class HTMLExporter extends Exporter { + protected avatars: Map; + protected permalinkCreator: RoomPermalinkCreator; + protected totalSize: number; + protected mediaOmitText: string; + + constructor( + room: Room, + exportType: ExportType, + exportOptions: IExportOptions, + setProgressText: React.Dispatch>, + ) { + super(room, exportType, exportOptions, setProgressText); + this.avatars = new Map(); + this.permalinkCreator = new RoomPermalinkCreator(this.room); + this.totalSize = 0; + this.mediaOmitText = !this.exportOptions.attachmentsIncluded + ? _t("Media omitted") + : _t("Media omitted - file size limit exceeded"); + } + + protected async getRoomAvatar() { + let blob: Blob; + const avatarUrl = Avatar.avatarUrlForRoom(this.room, 32, 32, "crop"); + const avatarPath = "room.png"; + if (avatarUrl) { + try { + const image = await fetch(avatarUrl); + blob = await image.blob(); + this.totalSize += blob.size; + this.addFile(avatarPath, blob); + } catch (err) { + console.log("Failed to fetch room's avatar" + err); + } + } + const avatar = ( + + ); + return renderToStaticMarkup(avatar); + } + + protected async wrapHTML(content: string) { + const roomAvatar = await this.getRoomAvatar(); + const exportDate = formatFullDateNoDayNoTime(new Date()); + const creator = this.room.currentState.getStateEvents(EventType.RoomCreate, "")?.getSender(); + const creatorName = this.room?.getMember(creator)?.rawDisplayName || creator; + const exporter = this.client.getUserId(); + const exporterName = this.room?.getMember(exporter)?.rawDisplayName; + const topic = this.room.currentState.getStateEvents(EventType.RoomTopic, "")?.getContent()?.topic || ""; + const createdText = _t("%(creatorName)s created this room.", { + creatorName, + }); + + const exportedText = renderToStaticMarkup( +

+ { _t( + "This is the start of export of . Exported by at %(exportDate)s.", + { + exportDate, + }, + { + roomName: () => { this.room.name }, + exporterDetails: () => ( + + { exporterName ? ( + <> + { exporterName } + { " (" + exporter + ")" } + + ) : ( + { exporter } + ) } + + ), + }, + ) } +

, + ); + + const topicText = topic ? _t("Topic: %(topic)s", { topic }) : ""; + + return ` + + + + + + + + + Exported Data + + +
+
+
+
+
+
+
+
+ ${roomAvatar} +
+
+
+
+ ${this.room.name} +
+
+
${topic}
+
+
+
+
+
+
+
+
    +
    + ${roomAvatar} +

    ${this.room.name}

    +

    ${createdText}

    ${exportedText}

    +
    +

    ${topicText}

    +
    + ${content} +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + `; + } + + protected getAvatarURL(event: MatrixEvent): string { + const member = event.sender; + return ( + member.getMxcAvatarUrl() && + mediaFromMxc(member.getMxcAvatarUrl()).getThumbnailOfSourceHttp( + 30, + 30, + "crop", + ) + ); + } + + protected async saveAvatarIfNeeded(event: MatrixEvent) { + const member = event.sender; + if (!this.avatars.has(member.userId)) { + try { + const avatarUrl = this.getAvatarURL(event); + this.avatars.set(member.userId, true); + const image = await fetch(avatarUrl); + const blob = await image.blob(); + this.addFile(`users/${member.userId.replace(/:/g, '-')}.png`, blob); + } catch (err) { + console.log("Failed to fetch user's avatar" + err); + } + } + } + + protected getDateSeparator(event: MatrixEvent) { + const ts = event.getTs(); + const dateSeparator =
  • ; + return renderToStaticMarkup(dateSeparator); + } + + protected needsDateSeparator(event: MatrixEvent, prevEvent: MatrixEvent) { + if (prevEvent == null) return true; + return wantsDateSeparator(prevEvent.getDate(), event.getDate()); + } + + public getEventTile(mxEv: MatrixEvent, continuation: boolean) { + return
    + + false} + isTwelveHour={false} + last={false} + lastInSection={false} + permalinkCreator={this.permalinkCreator} + lastSuccessful={false} + isSelectedEvent={false} + getRelationsForEvent={null} + showReactions={false} + layout={Layout.Group} + enableFlair={false} + showReadReceipts={false} + /> + +
    ; + } + + protected async getEventTileMarkup(mxEv: MatrixEvent, continuation: boolean, filePath?: string) { + const hasAvatar = !!this.getAvatarURL(mxEv); + if (hasAvatar) await this.saveAvatarIfNeeded(mxEv); + const EventTile = this.getEventTile(mxEv, continuation); + let eventTileMarkup: string; + + if ( + mxEv.getContent().msgtype == MsgType.Emote || + mxEv.getContent().msgtype == MsgType.Notice || + mxEv.getContent().msgtype === MsgType.Text + ) { + // to linkify textual events, we'll need lifecycle methods which won't be invoked in renderToString + // So, we'll have to render the component into a temporary root element + const tempRoot = document.createElement('div'); + ReactDOM.render( + EventTile, + tempRoot, + ); + eventTileMarkup = tempRoot.innerHTML; + } else { + eventTileMarkup = renderToStaticMarkup(EventTile); + } + + if (filePath) { + const mxc = mxEv.getContent().url || mxEv.getContent().file?.url; + eventTileMarkup = eventTileMarkup.split(mxc).join(filePath); + } + eventTileMarkup = eventTileMarkup.replace(/.*?<\/span>/, ''); + if (hasAvatar) { + eventTileMarkup = eventTileMarkup.replace( + encodeURI(this.getAvatarURL(mxEv)).replace(/&/g, '&'), + `users/${mxEv.sender.userId.replace(/:/g, "-")}.png`, + ); + } + return eventTileMarkup; + } + + protected createModifiedEvent(text: string, mxEv: MatrixEvent, italic=true) { + const modifiedContent = { + msgtype: "m.text", + body: `${text}`, + format: "org.matrix.custom.html", + formatted_body: `${text}`, + }; + if (italic) { + modifiedContent.formatted_body = '' + modifiedContent.formatted_body + ''; + modifiedContent.body = '*' + modifiedContent.body + '*'; + } + const modifiedEvent = new MatrixEvent(); + modifiedEvent.event = mxEv.event; + modifiedEvent.sender = mxEv.sender; + modifiedEvent.event.type = "m.room.message"; + modifiedEvent.event.content = modifiedContent; + return modifiedEvent; + } + + protected async createMessageBody(mxEv: MatrixEvent, joined = false) { + let eventTile: string; + try { + if (this.isAttachment(mxEv)) { + if (this.exportOptions.attachmentsIncluded) { + try { + const blob = await this.getMediaBlob(mxEv); + if (this.totalSize + blob.size > this.exportOptions.maxSize) { + eventTile = await this.getEventTileMarkup( + this.createModifiedEvent(this.mediaOmitText, mxEv), + joined, + ); + } else { + this.totalSize += blob.size; + const filePath = this.getFilePath(mxEv); + eventTile = await this.getEventTileMarkup(mxEv, joined, filePath); + if (this.totalSize == this.exportOptions.maxSize) { + this.exportOptions.attachmentsIncluded = false; + } + this.addFile(filePath, blob); + } + } catch (e) { + console.log("Error while fetching file" + e); + eventTile = await this.getEventTileMarkup( + this.createModifiedEvent(_t("Error fetching file"), mxEv), + joined, + ); + } + } else { + eventTile = await this.getEventTileMarkup( + this.createModifiedEvent(this.mediaOmitText, mxEv), + joined, + ); + } + } else eventTile = await this.getEventTileMarkup(mxEv, joined); + } catch (e) { + // TODO: Handle callEvent errors + console.error(e); + eventTile = await this.getEventTileMarkup( + this.createModifiedEvent(textForEvent(mxEv), mxEv, false), + joined, + ); + } + + return eventTile; + } + + protected async createHTML(events: MatrixEvent[], start: number) { + let content = ""; + let prevEvent = null; + for (let i = start; i < Math.min(start + 1000, events.length); i++) { + const event = events[i]; + this.updateProgress(`Processing event ${i + 1} out of ${events.length}`, false, true); + if (this.cancelled) return this.cleanUp(); + if (!haveTileForEvent(event)) continue; + + content += this.needsDateSeparator(event, prevEvent) ? this.getDateSeparator(event) : ""; + const shouldBeJoined = !this.needsDateSeparator(event, prevEvent) + && shouldFormContinuation(prevEvent, event, false); + const body = await this.createMessageBody(event, shouldBeJoined); + this.totalSize += Buffer.byteLength(body); + content += body; + prevEvent = event; + } + return await this.wrapHTML(content); + } + + public async export() { + this.updateProgress("Starting export..."); + + const fetchStart = performance.now(); + const res = await this.getRequiredEvents(); + const fetchEnd = performance.now(); + + this.updateProgress(`Fetched ${res.length} events in ${(fetchEnd - fetchStart)/1000}s`, true, false); + + this.updateProgress("Creating HTML..."); + for (let page = 0; page < res.length / 1000; page++) { + const html = await this.createHTML(res, page * 1000); + this.addFile(`messages${page ? page + 1 : ""}.html`, new Blob([html])); + } + const exportCSS = await getExportCSS(); + this.addFile("css/style.css", new Blob([exportCSS])); + this.addFile("js/script.js", new Blob([exportJS])); + + await this.downloadZIP(); + + const exportEnd = performance.now(); + + if (this.cancelled) { + console.info("Export cancelled successfully"); + } else { + this.updateProgress("Export successful!"); + this.updateProgress(`Exported ${res.length} events in ${(exportEnd - fetchStart)/1000} seconds`); + } + + this.cleanUp(); + } +} + diff --git a/src/utils/exportUtils/JSONExport.ts b/src/utils/exportUtils/JSONExport.ts new file mode 100644 index 0000000000..4d862e69e3 --- /dev/null +++ b/src/utils/exportUtils/JSONExport.ts @@ -0,0 +1,122 @@ +/* +Copyright 2021 The Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +import Exporter from "./Exporter"; +import { Room } from "matrix-js-sdk/src/models/room"; +import { MatrixEvent } from "matrix-js-sdk/src/models/event"; +import { formatFullDateNoDay, formatFullDateNoDayNoTime } from "../../DateUtils"; +import { haveTileForEvent } from "../../components/views/rooms/EventTile"; +import { ExportType } from "./exportUtils"; +import { IExportOptions } from "./exportUtils"; +import { EventType } from "matrix-js-sdk/src/@types/event"; + +export default class JSONExporter extends Exporter { + protected totalSize = 0; + protected messages: Record[] = []; + + constructor( + room: Room, + exportType: ExportType, + exportOptions: IExportOptions, + setProgressText: React.Dispatch>, + ) { + super(room, exportType, exportOptions, setProgressText); + } + + protected createJSONString(): string { + const exportDate = formatFullDateNoDayNoTime(new Date()); + const creator = this.room.currentState.getStateEvents(EventType.RoomCreate, "")?.getSender(); + const creatorName = this.room?.getMember(creator)?.rawDisplayName || creator; + const topic = this.room.currentState.getStateEvents(EventType.RoomTopic, "")?.getContent()?.topic || ""; + const exporter = this.client.getUserId(); + const exporterName = this.room?.getMember(exporter)?.rawDisplayName || exporter; + const jsonObject = { + room_name: this.room.name, + room_creator: creatorName, + topic, + export_date: exportDate, + exported_by: exporterName, + messages: this.messages, + }; + return JSON.stringify(jsonObject, null, 2); + } + + protected async getJSONString(mxEv: MatrixEvent) { + if (this.exportOptions.attachmentsIncluded && this.isAttachment(mxEv)) { + try { + const blob = await this.getMediaBlob(mxEv); + if (this.totalSize + blob.size < this.exportOptions.maxSize) { + this.totalSize += blob.size; + const filePath = this.getFilePath(mxEv); + if (this.totalSize == this.exportOptions.maxSize) { + this.exportOptions.attachmentsIncluded = false; + } + this.addFile(filePath, blob); + } + } catch (err) { + console.log("Error fetching file: " + err); + } + } + const jsonEvent: any = mxEv.toJSON(); + const clearEvent = mxEv.isEncrypted() ? jsonEvent.decrypted : jsonEvent; + return clearEvent; + } + + protected async createOutput(events: MatrixEvent[]) { + for (let i = 0; i < events.length; i++) { + const event = events[i]; + this.updateProgress(`Processing event ${i + 1} out of ${events.length}`, false, true); + if (this.cancelled) return this.cleanUp(); + if (!haveTileForEvent(event)) continue; + this.messages.push(await this.getJSONString(event)); + } + return this.createJSONString(); + } + + public async export() { + console.info("Starting export process..."); + console.info("Fetching events..."); + + const fetchStart = performance.now(); + const res = await this.getRequiredEvents(); + const fetchEnd = performance.now(); + + console.log(`Fetched ${res.length} events in ${(fetchEnd - fetchStart)/1000}s`); + + console.info("Creating output..."); + const text = await this.createOutput(res); + + if (this.files.length) { + this.addFile("export.json", new Blob([text])); + await this.downloadZIP(); + } else { + const fileName = `matrix-export-${formatFullDateNoDay(new Date())}.json`; + this.downloadPlainText(fileName, text); + } + + const exportEnd = performance.now(); + + if (this.cancelled) { + console.info("Export cancelled successfully"); + } else { + console.info("Export successful!"); + console.log(`Exported ${res.length} events in ${(exportEnd - fetchStart)/1000} seconds`); + } + + this.cleanUp(); + } +} + diff --git a/src/utils/exportUtils/PlainTextExport.ts b/src/utils/exportUtils/PlainTextExport.ts new file mode 100644 index 0000000000..8e3ba81c4e --- /dev/null +++ b/src/utils/exportUtils/PlainTextExport.ts @@ -0,0 +1,151 @@ +/* +Copyright 2021 The Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +import Exporter from "./Exporter"; +import { Room } from "matrix-js-sdk/src/models/room"; +import { IContent, MatrixEvent } from "matrix-js-sdk/src/models/event"; +import { formatFullDateNoDay } from "../../DateUtils"; +import { _t } from "../../languageHandler"; +import { haveTileForEvent } from "../../components/views/rooms/EventTile"; +import { ExportType } from "./exportUtils"; +import { IExportOptions } from "./exportUtils"; +import { textForEvent } from "../../TextForEvent"; + +export default class PlainTextExporter extends Exporter { + protected totalSize: number; + protected mediaOmitText: string; + + constructor( + room: Room, + exportType: ExportType, + exportOptions: IExportOptions, + setProgressText: React.Dispatch>, + ) { + super(room, exportType, exportOptions, setProgressText); + this.totalSize = 0; + this.mediaOmitText = !this.exportOptions.attachmentsIncluded + ? _t("Media omitted") + : _t("Media omitted - file size limit exceeded"); + } + + public textForReplyEvent = (content: IContent) => { + const REPLY_REGEX = /> <(.*?)>(.*?)\n\n(.*)/s; + const REPLY_SOURCE_MAX_LENGTH = 32; + + const match = REPLY_REGEX.exec(content.body); + + // if the reply format is invalid, then return the body + if (!match) return content.body; + + let rplSource: string; + const rplName = match[1]; + const rplText = match[3]; + + rplSource = match[2].substring(1); + // Get the first non-blank line from the source. + const lines = rplSource.split('\n').filter((line) => !/^\s*$/.test(line)); + if (lines.length > 0) { + // Cut to a maximum length. + rplSource = lines[0].substring(0, REPLY_SOURCE_MAX_LENGTH); + // Ellipsis if needed. + if (lines[0].length > REPLY_SOURCE_MAX_LENGTH) { + rplSource = rplSource + "..."; + } + // Wrap in formatting + rplSource = ` "${rplSource}"`; + } else { + // Don't show a source because we couldn't format one. + rplSource = ""; + } + + return `<${rplName}${rplSource}> ${rplText}`; + }; + + protected plainTextForEvent = async (mxEv: MatrixEvent) => { + const senderDisplayName = mxEv.sender && mxEv.sender.name ? mxEv.sender.name : mxEv.getSender(); + let mediaText = ""; + if (this.isAttachment(mxEv)) { + if (this.exportOptions.attachmentsIncluded) { + try { + const blob = await this.getMediaBlob(mxEv); + if (this.totalSize + blob.size > this.exportOptions.maxSize) { + mediaText = ` (${this.mediaOmitText})`; + } else { + this.totalSize += blob.size; + const filePath = this.getFilePath(mxEv); + mediaText = " (" + _t("File Attached") + ")"; + this.addFile(filePath, blob); + if (this.totalSize == this.exportOptions.maxSize) { + this.exportOptions.attachmentsIncluded = false; + } + } + } catch (error) { + mediaText = " (" + _t("Error fetching file") + ")"; + console.log("Error fetching file " + error); + } + } else mediaText = ` (${this.mediaOmitText})`; + } + if (this.isReply(mxEv)) return senderDisplayName + ": " + this.textForReplyEvent(mxEv.getContent()) + mediaText; + else return textForEvent(mxEv) + mediaText; + }; + + protected async createOutput(events: MatrixEvent[]) { + let content = ""; + for (let i = 0; i < events.length; i++) { + const event = events[i]; + this.updateProgress(`Processing event ${i + 1} out of ${events.length}`, false, true); + if (this.cancelled) return this.cleanUp(); + if (!haveTileForEvent(event)) continue; + const textForEvent = await this.plainTextForEvent(event); + content += textForEvent && `${new Date(event.getTs()).toLocaleString()} - ${textForEvent}\n`; + } + return content; + } + + public async export() { + this.updateProgress("Starting export process..."); + this.updateProgress("Fetching events..."); + + const fetchStart = performance.now(); + const res = await this.getRequiredEvents(); + const fetchEnd = performance.now(); + + console.log(`Fetched ${res.length} events in ${(fetchEnd - fetchStart)/1000}s`); + + this.updateProgress("Creating output..."); + const text = await this.createOutput(res); + + if (this.files.length) { + this.addFile("export.txt", new Blob([text])); + await this.downloadZIP(); + } else { + const fileName = `matrix-export-${formatFullDateNoDay(new Date())}.txt`; + this.downloadPlainText(fileName, text); + } + + const exportEnd = performance.now(); + + if (this.cancelled) { + console.info("Export cancelled successfully"); + } else { + console.info("Export successful!"); + console.log(`Exported ${res.length} events in ${(exportEnd - fetchStart)/1000} seconds`); + } + + this.cleanUp(); + } +} + diff --git a/src/utils/exportUtils/exportCSS.ts b/src/utils/exportUtils/exportCSS.ts new file mode 100644 index 0000000000..f7f471fda3 --- /dev/null +++ b/src/utils/exportUtils/exportCSS.ts @@ -0,0 +1,50 @@ +/* +Copyright 2021 The Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +/* eslint-disable max-len, camelcase */ + +import customCSS from "!!raw-loader!./exportCustomCSS.css"; + +const getExportCSS = async (): Promise => { + const stylesheets: string[] = []; + document.querySelectorAll('link[rel="stylesheet"]').forEach((e: any) => { + if (e.href.endsWith("bundle.css") || e.href.endsWith("theme-light.css")) { + stylesheets.push(e.href); + } + }); + let CSS = ""; + for (const stylesheet of stylesheets) { + const res = await fetch(stylesheet); + const innerText = await res.text(); + CSS += innerText; + } + const fontFaceRegex = /@font-face {.*?}/sg; + + CSS = CSS.replace(fontFaceRegex, ''); + CSS = CSS.replace( + /font-family: (Inter|'Inter')/g, + `font-family: -apple-system, BlinkMacSystemFont, avenir next, + avenir, segoe ui, helvetica neue, helvetica, Ubuntu, roboto, noto, arial, sans-serif`, + ); + CSS = CSS.replace( + /font-family: Inconsolata/g, + "font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace", + ); + + return CSS + customCSS; +}; + +export default getExportCSS; diff --git a/src/utils/exportUtils/exportCustomCSS.css b/src/utils/exportUtils/exportCustomCSS.css new file mode 100644 index 0000000000..284f54ac08 --- /dev/null +++ b/src/utils/exportUtils/exportCustomCSS.css @@ -0,0 +1,138 @@ +/* +Copyright 2021 The Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +/* + This file is raw-imported (imported as plain text) for the export bundle, which is the reason for the .css format and the colours being hard-coded hard-coded. +*/ + +#snackbar { + display: flex; + visibility: hidden; + min-width: 250px; + margin-left: -125px; + background-color: #333; + color: #fff; + text-align: center; + position: fixed; + z-index: 1; + left: 50%; + bottom: 30px; + font-size: 17px; + padding: 6px 16px; + font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, + segoe ui, helvetica neue, helvetica, Ubuntu, roboto, noto, arial, + sans-serif; + font-weight: 400; + line-height: 1.43; + border-radius: 4px; + letter-spacing: 0.01071em; +} + +#snackbar.mx_show { + visibility: visible; + -webkit-animation: mx_snackbar_fadein 0.5s, mx_snackbar_fadeout 0.5s 2.5s; + animation: mx_snackbar_fadein 0.5s, mx_snackbar_fadeout 0.5s 2.5s; +} + +a.mx_reply_anchor { + cursor: pointer; + color: #238cf5; +} + +a.mx_reply_anchor:hover { + text-decoration: underline; +} + +@-webkit-keyframes mx_snackbar_fadein { + from { + bottom: 0; + opacity: 0; + } + to { + bottom: 30px; + opacity: 1; + } +} + +@keyframes mx_snackbar_fadein { + from { + bottom: 0; + opacity: 0; + } + to { + bottom: 30px; + opacity: 1; + } +} + +@-webkit-keyframes mx_snackbar_fadeout { + from { + bottom: 30px; + opacity: 1; + } + to { + bottom: 0; + opacity: 0; + } +} + +@keyframes mx_snackbar_fadeout { + from { + bottom: 30px; + opacity: 1; + } + to { + bottom: 0; + opacity: 0; + } +} + +* { + scroll-behavior: smooth !important; +} + +.mx_Export_EventWrapper:target { + background: white; + animation: mx_event_highlight_animation 2s linear; +} + +@keyframes mx_event_highlight_animation { + 0%, + 100% { + background: white; + } + 50% { + background: #e3e2df; + } +} + +.mx_ReplyThread_Export { + margin-top: 0px; + margin-bottom: 5px; +} + +.mx_RedactedBody { + padding-left: unset; +} + +img { + white-space: nowrap; + overflow: hidden; +} + +.mx_MatrixChat { + max-width: 100%; +} diff --git a/src/utils/exportUtils/exportJS.js b/src/utils/exportUtils/exportJS.js new file mode 100644 index 0000000000..e082f88d98 --- /dev/null +++ b/src/utils/exportUtils/exportJS.js @@ -0,0 +1,42 @@ +/* +Copyright 2021 The Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// This file is raw-imported (imported as plain text) for the export bundle, which is why this is in JS +function showToastIfNeeded(replyId) { + const el = document.getElementById(replyId); + if (!el) { + showToast("The message you're looking for wasn't exported"); + return; + } +} + +function showToast(text) { + const el = document.getElementById("snackbar"); + el.innerHTML = text; + el.className = "mx_show"; + setTimeout(() => { + el.className = el.className.replace("mx_show", ""); + }, 2000); +} + +window.onload = () => { + document.querySelectorAll('.mx_reply_anchor').forEach(element => { + element.addEventListener('click', event => { + showToastIfNeeded(event.target.getAttribute("scroll-to")); + }); + }); +}; + diff --git a/src/utils/exportUtils/exportUtils.ts b/src/utils/exportUtils/exportUtils.ts new file mode 100644 index 0000000000..139e3a3740 --- /dev/null +++ b/src/utils/exportUtils/exportUtils.ts @@ -0,0 +1,65 @@ +/* +Copyright 2021 The Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +import { _t } from "../../languageHandler"; + +export enum ExportFormat { + Html = "Html", + PlainText = "PlainText", + Json = "Json", +} + +export enum ExportType { + Timeline = "Timeline", + Beginning = "Beginning", + LastNMessages = "LastNMessages", + // START_DATE = "START_DATE", +} + +export const textForFormat = (format: ExportFormat): string => { + switch (format) { + case ExportFormat.Html: + return _t("HTML"); + case ExportFormat.Json: + return _t("JSON"); + case ExportFormat.PlainText: + return _t("Plain Text"); + default: + throw new Error("Unknown format"); + } +}; + +export const textForType = (type: ExportType): string => { + switch (type) { + case ExportType.Beginning: + return _t("From the beginning"); + case ExportType.LastNMessages: + return _t("Specify a number of messages"); + case ExportType.Timeline: + return _t("Current Timeline"); + default: + throw new Error("Unknown type: " + type); + // case exportTypes.START_DATE: + // return _t("From a specific date"); + } +}; + +export interface IExportOptions { + // startDate?: number; + numberOfMessages?: number; + attachmentsIncluded: boolean; + maxSize: number; +} diff --git a/src/utils/promise.ts b/src/utils/promise.ts index 853c172269..abcfc49a08 100644 --- a/src/utils/promise.ts +++ b/src/utils/promise.ts @@ -16,8 +16,8 @@ limitations under the License. // Returns a promise which resolves when the input promise resolves with its value // or when the timeout of ms is reached with the value of given timeoutValue -export async function timeout(promise: Promise, timeoutValue: T, ms: number): Promise { - const timeoutPromise = new Promise((resolve) => { +export async function timeout(promise: Promise, timeoutValue: Y, ms: number): Promise { + const timeoutPromise = new Promise((resolve) => { const timeoutId = setTimeout(resolve, ms, timeoutValue); promise.then(() => { clearTimeout(timeoutId); diff --git a/test/components/views/rooms/RoomHeader-test.tsx b/test/components/views/rooms/RoomHeader-test.tsx new file mode 100644 index 0000000000..859107416e --- /dev/null +++ b/test/components/views/rooms/RoomHeader-test.tsx @@ -0,0 +1,251 @@ +import React from 'react'; +import ReactDOM from 'react-dom'; + +import "../../../skinned-sdk"; + +import * as TestUtils from '../../../test-utils'; + +import { MatrixClientPeg } from '../../../../src/MatrixClientPeg'; + +import DMRoomMap from '../../../../src/utils/DMRoomMap'; +import RoomHeader from '../../../../src/components/views/rooms/RoomHeader'; + +import { Room, PendingEventOrdering, MatrixEvent, MatrixClient } from 'matrix-js-sdk'; +import { SearchScope } from '../../../../src/components/views/rooms/SearchBar'; +import { E2EStatus } from '../../../../src/utils/ShieldUtils'; +import { PlaceCallType } from '../../../../src/CallHandler'; +import { mkEvent } from '../../../test-utils'; + +describe('RoomHeader', () => { + it('shows the room avatar in a room with only ourselves', () => { + // When we render a non-DM room with 1 person in it + const room = createRoom({ name: "X Room", isDm: false, userIds: [] }); + const rendered = render(room); + + // Then the room's avatar is the initial of its name + const initial = findSpan(rendered, ".mx_BaseAvatar_initial"); + expect(initial.innerHTML).toEqual("X"); + + // And there is no image avatar (because it's not set on this room) + const image = findImg(rendered, ".mx_BaseAvatar_image"); + expect(image.src).toEqual("data:image/png;base64,00"); + }); + + it('shows the room avatar in a room with 2 people', () => { + // When we render a non-DM room with 2 people in it + const room = createRoom( + { name: "Y Room", isDm: false, userIds: ["other"] }); + const rendered = render(room); + + // Then the room's avatar is the initial of its name + const initial = findSpan(rendered, ".mx_BaseAvatar_initial"); + expect(initial.innerHTML).toEqual("Y"); + + // And there is no image avatar (because it's not set on this room) + const image = findImg(rendered, ".mx_BaseAvatar_image"); + expect(image.src).toEqual("data:image/png;base64,00"); + }); + + it('shows the room avatar in a room with >2 people', () => { + // When we render a non-DM room with 3 people in it + const room = createRoom( + { name: "Z Room", isDm: false, userIds: ["other1", "other2"] }); + const rendered = render(room); + + // Then the room's avatar is the initial of its name + const initial = findSpan(rendered, ".mx_BaseAvatar_initial"); + expect(initial.innerHTML).toEqual("Z"); + + // And there is no image avatar (because it's not set on this room) + const image = findImg(rendered, ".mx_BaseAvatar_image"); + expect(image.src).toEqual("data:image/png;base64,00"); + }); + + it('shows the room avatar in a DM with only ourselves', () => { + // When we render a non-DM room with 1 person in it + const room = createRoom({ name: "Z Room", isDm: true, userIds: [] }); + const rendered = render(room); + + // Then the room's avatar is the initial of its name + const initial = findSpan(rendered, ".mx_BaseAvatar_initial"); + expect(initial.innerHTML).toEqual("Z"); + + // And there is no image avatar (because it's not set on this room) + const image = findImg(rendered, ".mx_BaseAvatar_image"); + expect(image.src).toEqual("data:image/png;base64,00"); + }); + + it('shows the user avatar in a DM with 2 people', () => { + // Note: this is the interesting case - this is the ONLY + // time we should use the user's avatar. + + // When we render a DM room with only 2 people in it + const room = createRoom({ name: "Y Room", isDm: true, userIds: ["other"] }); + const rendered = render(room); + + // Then we use the other user's avatar as our room's image avatar + const image = findImg(rendered, ".mx_BaseAvatar_image"); + expect(image.src).toEqual( + "http://this.is.a.url/example.org/other"); + + // And there is no initial avatar + expect( + rendered.querySelectorAll(".mx_BaseAvatar_initial"), + ).toHaveLength(0); + }); + + it('shows the room avatar in a DM with >2 people', () => { + // When we render a DM room with 3 people in it + const room = createRoom({ + name: "Z Room", isDm: true, userIds: ["other1", "other2"] }); + const rendered = render(room); + + // Then the room's avatar is the initial of its name + const initial = findSpan(rendered, ".mx_BaseAvatar_initial"); + expect(initial.innerHTML).toEqual("Z"); + + // And there is no image avatar (because it's not set on this room) + const image = findImg(rendered, ".mx_BaseAvatar_image"); + expect(image.src).toEqual("data:image/png;base64,00"); + }); +}); + +interface IRoomCreationInfo { + name: string; + isDm: boolean; + userIds: string[]; +} + +function createRoom(info: IRoomCreationInfo) { + TestUtils.stubClient(); + const client: MatrixClient = MatrixClientPeg.get(); + + const roomId = '!1234567890:domain'; + const userId = client.getUserId(); + if (info.isDm) { + client.getAccountData = (eventType) => { + expect(eventType).toEqual("m.direct"); + return mkDirectEvent(roomId, userId, info.userIds); + }; + } + + DMRoomMap.makeShared().start(); + + const room = new Room(roomId, client, userId, { + pendingEventOrdering: PendingEventOrdering.Detached, + }); + + const otherJoinEvents = []; + for (const otherUserId of info.userIds) { + otherJoinEvents.push(mkJoinEvent(roomId, otherUserId)); + } + + room.currentState.setStateEvents([ + mkCreationEvent(roomId, userId), + mkNameEvent(roomId, userId, info.name), + mkJoinEvent(roomId, userId), + ...otherJoinEvents, + ]); + room.recalculate(); + + return room; +} + +function render(room: Room): HTMLDivElement { + const parentDiv = document.createElement('div'); + document.body.appendChild(parentDiv); + ReactDOM.render( + ( + {}} + onSearchClick={() => {}} + onForgetClick={() => {}} + onCallPlaced={(_type: PlaceCallType) => {}} + onAppsClick={() => {}} + e2eStatus={E2EStatus.Normal} + appsShown={true} + searchInfo={{ + searchTerm: "", + searchScope: SearchScope.Room, + searchCount: 0, + }} + /> + ), + parentDiv, + ); + return parentDiv; +} + +function mkCreationEvent(roomId: string, userId: string): MatrixEvent { + return mkEvent({ + event: true, + type: "m.room.create", + room: roomId, + user: userId, + content: { + creator: userId, + room_version: "5", + predecessor: { + room_id: "!prevroom", + event_id: "$someevent", + }, + }, + }); +} + +function mkNameEvent( + roomId: string, userId: string, name: string, +): MatrixEvent { + return mkEvent({ + event: true, + type: "m.room.name", + room: roomId, + user: userId, + content: { name }, + }); +} + +function mkJoinEvent(roomId: string, userId: string) { + const ret = mkEvent({ + event: true, + type: "m.room.member", + room: roomId, + user: userId, + content: { + "membership": "join", + "avatar_url": "mxc://example.org/" + userId, + }, + }); + ret.event.state_key = userId; + return ret; +} + +function mkDirectEvent( + roomId: string, userId: string, otherUsers: string[], +): MatrixEvent { + const content = {}; + for (const otherUserId of otherUsers) { + content[otherUserId] = [roomId]; + } + return mkEvent({ + event: true, + type: "m.direct", + room: roomId, + user: userId, + content, + }); +} + +function findSpan(parent: HTMLElement, selector: string): HTMLSpanElement { + const els = parent.querySelectorAll(selector); + expect(els.length).toEqual(1); + return els[0] as HTMLSpanElement; +} + +function findImg(parent: HTMLElement, selector: string): HTMLImageElement { + const els = parent.querySelectorAll(selector); + expect(els.length).toEqual(1); + return els[0] as HTMLImageElement; +} diff --git a/test/components/views/rooms/SendMessageComposer-test.js b/test/components/views/rooms/SendMessageComposer-test.tsx similarity index 64% rename from test/components/views/rooms/SendMessageComposer-test.js rename to test/components/views/rooms/SendMessageComposer-test.tsx index db5b55df90..73fa388767 100644 --- a/test/components/views/rooms/SendMessageComposer-test.js +++ b/test/components/views/rooms/SendMessageComposer-test.tsx @@ -24,8 +24,10 @@ import { sleep } from "matrix-js-sdk/src/utils"; import SendMessageComposer, { createMessageContent, isQuickReaction, + SendMessageComposer as SendMessageComposerClass, } from "../../../../src/components/views/rooms/SendMessageComposer"; import MatrixClientContext from "../../../../src/contexts/MatrixClientContext"; +import RoomContext, { TimelineRenderingType } from "../../../../src/contexts/RoomContext"; import EditorModel from "../../../../src/editor/model"; import { createPartCreator, createRenderer } from "../../../editor/mock"; import { createTestClient, mkEvent, mkStubRoom } from "../../../test-utils"; @@ -33,18 +35,58 @@ import BasicMessageComposer from "../../../../src/components/views/rooms/BasicMe import { MatrixClientPeg } from "../../../../src/MatrixClientPeg"; import SpecPermalinkConstructor from "../../../../src/utils/permalinks/SpecPermalinkConstructor"; import defaultDispatcher from "../../../../src/dispatcher/dispatcher"; +import DocumentOffset from '../../../../src/editor/offset'; +import { Layout } from '../../../../src/settings/Layout'; jest.mock("../../../../src/stores/RoomViewStore"); configure({ adapter: new Adapter() }); describe('', () => { + const roomContext = { + roomLoading: true, + peekLoading: false, + shouldPeek: true, + membersLoaded: false, + numUnreadMessages: 0, + draggingFile: false, + searching: false, + guestsCanJoin: false, + canPeek: false, + showApps: false, + isPeeking: false, + showRightPanel: true, + joining: false, + atEndOfLiveTimeline: true, + atEndOfLiveTimelineInit: false, + showTopUnreadMessagesBar: false, + statusBarVisible: false, + canReact: false, + canReply: false, + layout: Layout.Group, + lowBandwidth: false, + alwaysShowTimestamps: false, + showTwelveHourTimestamps: false, + readMarkerInViewThresholdMs: 3000, + readMarkerOutOfViewThresholdMs: 30000, + showHiddenEventsInTimeline: false, + showReadReceipts: true, + showRedactions: true, + showJoinLeaves: true, + showAvatarChanges: true, + showDisplaynameChanges: true, + matrixClientIsReady: false, + dragCounter: 0, + timelineRenderingType: TimelineRenderingType.Room, + liveTimeline: undefined, + }; describe("createMessageContent", () => { - const permalinkCreator = jest.fn(); + const permalinkCreator = jest.fn() as any; it("sends plaintext messages correctly", () => { const model = new EditorModel([], createPartCreator(), createRenderer()); - model.update("hello world", "insertText", { offset: 11, atNodeEnd: true }); + const documentOffset = new DocumentOffset(11, true); + model.update("hello world", "insertText", documentOffset); const content = createMessageContent(model, null, false, permalinkCreator); @@ -56,7 +98,8 @@ describe('', () => { it("sends markdown messages correctly", () => { const model = new EditorModel([], createPartCreator(), createRenderer()); - model.update("hello *world*", "insertText", { offset: 13, atNodeEnd: true }); + const documentOffset = new DocumentOffset(13, true); + model.update("hello *world*", "insertText", documentOffset); const content = createMessageContent(model, null, false, permalinkCreator); @@ -70,7 +113,8 @@ describe('', () => { it("strips /me from messages and marks them as m.emote accordingly", () => { const model = new EditorModel([], createPartCreator(), createRenderer()); - model.update("/me blinks __quickly__", "insertText", { offset: 22, atNodeEnd: true }); + const documentOffset = new DocumentOffset(22, true); + model.update("/me blinks __quickly__", "insertText", documentOffset); const content = createMessageContent(model, null, false, permalinkCreator); @@ -84,7 +128,9 @@ describe('', () => { it("allows sending double-slash escaped slash commands correctly", () => { const model = new EditorModel([], createPartCreator(), createRenderer()); - model.update("//dev/null is my favourite place", "insertText", { offset: 32, atNodeEnd: true }); + const documentOffset = new DocumentOffset(32, true); + + model.update("//dev/null is my favourite place", "insertText", documentOffset); const content = createMessageContent(model, null, false, permalinkCreator); @@ -97,9 +143,11 @@ describe('', () => { describe("functions correctly mounted", () => { const mockClient = MatrixClientPeg.matrixClient = createTestClient(); - const mockRoom = mkStubRoom(); + const mockRoom = mkStubRoom('myfakeroom') as any; const mockEvent = mkEvent({ type: "m.room.message", + room: 'myfakeroom', + user: 'myfakeuser', content: "Replying to this", event: true, }); @@ -116,11 +164,13 @@ describe('', () => { it("renders text and placeholder correctly", () => { const wrapper = mount( - + + + ); expect(wrapper.find('[aria-label="placeholder string"]')).toHaveLength(1); @@ -135,12 +185,15 @@ describe('', () => { it("correctly persists state to and from localStorage", () => { const wrapper = mount( - + + + + ); act(() => { @@ -148,7 +201,7 @@ describe('', () => { wrapper.update(); }); - const key = wrapper.find(SendMessageComposer).instance().editorStateKey; + const key = wrapper.find(SendMessageComposerClass).instance().editorStateKey; expect(wrapper.text()).toBe("Test Text"); expect(localStorage.getItem(key)).toBeNull(); @@ -177,11 +230,14 @@ describe('', () => { it("persists state correctly without replyToEvent onbeforeunload", () => { const wrapper = mount( - + + + + ); act(() => { @@ -189,7 +245,7 @@ describe('', () => { wrapper.update(); }); - const key = wrapper.find(SendMessageComposer).instance().editorStateKey; + const key = wrapper.find(SendMessageComposerClass).instance().editorStateKey; expect(wrapper.text()).toBe("Hello World"); expect(localStorage.getItem(key)).toBeNull(); @@ -203,12 +259,15 @@ describe('', () => { it("persists to session history upon sending", async () => { const wrapper = mount( - + + + + ); act(() => { @@ -230,12 +289,38 @@ describe('', () => { replyEventId: mockEvent.getId(), }); }); + + it('correctly sets the editorStateKey for threads', () => { + const mockThread ={ + getThread: () => { + return { + id: 'myFakeThreadId', + }; + }, + } as any; + const wrapper = mount( + + + + + ); + + const instance = wrapper.find(SendMessageComposerClass).instance(); + const key = instance.editorStateKey; + + expect(key).toEqual('mx_cider_state_myfakeroom_myFakeThreadId'); + }); }); describe("isQuickReaction", () => { it("correctly detects quick reaction", () => { const model = new EditorModel([], createPartCreator(), createRenderer()); - model.update("+😊", "insertText", { offset: 3, atNodeEnd: true }); + model.update("+😊", "insertText", new DocumentOffset(3, true)); const isReaction = isQuickReaction(model); @@ -244,7 +329,7 @@ describe('', () => { it("correctly detects quick reaction with space", () => { const model = new EditorModel([], createPartCreator(), createRenderer()); - model.update("+ 😊", "insertText", { offset: 4, atNodeEnd: true }); + model.update("+ 😊", "insertText", new DocumentOffset(4, true)); const isReaction = isQuickReaction(model); @@ -256,10 +341,10 @@ describe('', () => { const model2 = new EditorModel([], createPartCreator(), createRenderer()); const model3 = new EditorModel([], createPartCreator(), createRenderer()); const model4 = new EditorModel([], createPartCreator(), createRenderer()); - model.update("+😊hello", "insertText", { offset: 8, atNodeEnd: true }); - model2.update(" +😊", "insertText", { offset: 4, atNodeEnd: true }); - model3.update("+ 😊😊", "insertText", { offset: 6, atNodeEnd: true }); - model4.update("+smiley", "insertText", { offset: 7, atNodeEnd: true }); + model.update("+😊hello", "insertText", new DocumentOffset( 8, true)); + model2.update(" +😊", "insertText", new DocumentOffset( 4, true)); + model3.update("+ 😊😊", "insertText", new DocumentOffset( 6, true)); + model4.update("+smiley", "insertText", new DocumentOffset( 7, true)); expect(isQuickReaction(model)).toBeFalsy(); expect(isQuickReaction(model2)).toBeFalsy(); diff --git a/test/stores/SpaceStore-test.ts b/test/stores/SpaceStore-test.ts index e7ca727e28..cdc3e58a4f 100644 --- a/test/stores/SpaceStore-test.ts +++ b/test/stores/SpaceStore-test.ts @@ -77,6 +77,7 @@ describe("SpaceStore", () => { const run = async () => { client.getRoom.mockImplementation(roomId => rooms.find(room => room.roomId === roomId)); + client.getRoomUpgradeHistory.mockImplementation(roomId => [rooms.find(room => room.roomId === roomId)]); await testUtils.setupAsyncStoreWithClient(store, client); jest.runAllTimers(); }; diff --git a/test/test-utils.js b/test/test-utils.js index 803d97c163..d43a08ab3a 100644 --- a/test/test-utils.js +++ b/test/test-utils.js @@ -47,6 +47,8 @@ export function createTestClient() { getIdentityServerUrl: jest.fn(), getDomain: jest.fn().mockReturnValue("matrix.rog"), getUserId: jest.fn().mockReturnValue("@userId:matrix.rog"), + getUser: jest.fn().mockReturnValue({ on: jest.fn() }), + credentials: { userId: "@userId:matrix.rog" }, getPushActionsForEvent: jest.fn(), getRoom: jest.fn().mockImplementation(mkStubRoom), @@ -76,7 +78,7 @@ export function createTestClient() { content: {}, }); }, - mxcUrlToHttp: (mxc) => 'http://this.is.a.url/', + mxcUrlToHttp: (mxc) => `http://this.is.a.url/${mxc.substring(6)}`, setAccountData: jest.fn(), setRoomAccountData: jest.fn(), sendTyping: jest.fn().mockResolvedValue({}), @@ -93,12 +95,15 @@ export function createTestClient() { sessionStore: { store: { getItem: jest.fn(), + setItem: jest.fn(), }, }, pushRules: {}, decryptEventIfNeeded: () => Promise.resolve(), isUserIgnored: jest.fn().mockReturnValue(false), getCapabilities: jest.fn().mockResolvedValue({}), + supportsExperimentalThreads: () => false, + getRoomUpgradeHistory: jest.fn().mockReturnValue([]), }; } @@ -112,6 +117,7 @@ export function createTestClient() { * @param {number=} opts.ts Optional. Timestamp for the event * @param {Object} opts.content The event.content * @param {boolean} opts.event True to make a MatrixEvent. + * @param {unsigned=} opts.unsigned * @return {Object} a JSON object representing this event. */ export function mkEvent(opts) { @@ -129,9 +135,11 @@ export function mkEvent(opts) { }; if (opts.skey) { event.state_key = opts.skey; - } else if (["m.room.name", "m.room.topic", "m.room.create", "m.room.join_rules", - "m.room.power_levels", "m.room.topic", "m.room.history_visibility", "m.room.encryption", - "com.example.state"].indexOf(opts.type) !== -1) { + } else if ([ + "m.room.name", "m.room.topic", "m.room.create", "m.room.join_rules", + "m.room.power_levels", "m.room.topic", "m.room.history_visibility", + "m.room.encryption", "m.room.member", "com.example.state", + ].indexOf(opts.type) !== -1) { event.state_key = ""; } return opts.event ? new MatrixEvent(event) : event; @@ -166,12 +174,13 @@ export function mkPresence(opts) { * @param {string} opts.room The room ID for the event. * @param {string} opts.mship The content.membership for the event. * @param {string} opts.prevMship The prev_content.membership for the event. + * @param {number=} opts.ts Optional. Timestamp for the event * @param {string} opts.user The user ID for the event. * @param {RoomMember} opts.target The target of the event. - * @param {string} opts.skey The other user ID for the event if applicable + * @param {string=} opts.skey The other user ID for the event if applicable * e.g. for invites/bans. * @param {string} opts.name The content.displayname for the event. - * @param {string} opts.url The content.avatar_url for the event. + * @param {string=} opts.url The content.avatar_url for the event. * @param {boolean} opts.event True to make a MatrixEvent. * @return {Object|MatrixEvent} The event */ @@ -203,8 +212,9 @@ export function mkMembership(opts) { * @param {Object} opts Values for the message * @param {string} opts.room The room ID for the event. * @param {string} opts.user The user ID for the event. - * @param {string} opts.msg Optional. The content.body for the event. + * @param {number} opts.ts The timestamp for the event. * @param {boolean} opts.event True to make a MatrixEvent. + * @param {string=} opts.msg Optional. The content.body for the event. * @return {Object|MatrixEvent} The event */ export function mkMessage(opts) { diff --git a/test/utils/export-test.tsx b/test/utils/export-test.tsx new file mode 100644 index 0000000000..66436da9c5 --- /dev/null +++ b/test/utils/export-test.tsx @@ -0,0 +1,274 @@ +/* +Copyright 2021 The Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +import { IContent, MatrixClient, MatrixEvent, Room } from "matrix-js-sdk"; +import { MatrixClientPeg } from "../../src/MatrixClientPeg"; +import { IExportOptions, ExportType, ExportFormat } from "../../src/utils/exportUtils/exportUtils"; +import '../skinned-sdk'; +import PlainTextExporter from "../../src/utils/exportUtils/PlainTextExport"; +import HTMLExporter from "../../src/utils/exportUtils/HtmlExport"; +import * as TestUtilsMatrix from '../test-utils'; +import { stubClient } from '../test-utils'; +import { renderToString } from "react-dom/server"; + +let client: MatrixClient; + +const MY_USER_ID = "@me:here"; + +function generateRoomId() { + return '!' + Math.random().toString().slice(2, 10) + ':domain'; +} + +interface ITestContent extends IContent { + expectedText: string; +} + +describe('export', function() { + stubClient(); + client = MatrixClientPeg.get(); + client.getUserId = () => { + return MY_USER_ID; + }; + + const mockExportOptions: IExportOptions = { + numberOfMessages: 5, + maxSize: 100 * 1024 * 1024, + attachmentsIncluded: false, + }; + + const invalidExportOptions: IExportOptions[] = [ + { + numberOfMessages: 10**9, + maxSize: 1024 * 1024 * 1024, + attachmentsIncluded: false, + }, + { + numberOfMessages: -1, + maxSize: 4096 * 1024 * 1024, + attachmentsIncluded: false, + }, + { + numberOfMessages: 0, + maxSize: 0, + attachmentsIncluded: false, + }, + ]; + + function createRoom() { + const room = new Room(generateRoomId(), null, client.getUserId()); + return room; + } + const mockRoom = createRoom(); + + const ts0 = Date.now(); + + function mkRedactedEvent(i = 0) { + return new MatrixEvent({ + type: "m.room.message", + sender: MY_USER_ID, + content: {}, + unsigned: { + "age": 72, + "transaction_id": "m1212121212.23", + "redacted_because": { + "content": {}, + "origin_server_ts": ts0 + i*1000, + "redacts": "$9999999999999999999999999999999999999999998", + "sender": "@me:here", + "type": "m.room.redaction", + "unsigned": { + "age": 94, + "transaction_id": "m1111111111.1", + }, + "event_id": "$9999999999999999999999999999999999999999998", + "room_id": mockRoom.roomId, + }, + }, + event_id: "$9999999999999999999999999999999999999999999", + room_id: mockRoom.roomId, + }); + } + + function mkFileEvent() { + return new MatrixEvent({ + "content": { + "body": "index.html", + "info": { + "mimetype": "text/html", + "size": 31613, + }, + "msgtype": "m.file", + "url": "mxc://test.org", + }, + "origin_server_ts": 1628872988364, + "sender": MY_USER_ID, + "type": "m.room.message", + "unsigned": { + "age": 266, + "transaction_id": "m99999999.2", + }, + "event_id": "$99999999999999999999", + "room_id": mockRoom.roomId, + }); + } + + function mkEvents() { + const matrixEvents = []; + let i: number; + // plain text + for (i = 0; i < 10; i++) { + matrixEvents.push(TestUtilsMatrix.mkMessage({ + event: true, room: "!room:id", user: "@user:id", + ts: ts0 + i * 1000, + })); + } + // reply events + for (i = 0; i < 10; i++) { + matrixEvents.push(TestUtilsMatrix.mkEvent({ + "content": { + "body": "> <@me:here> Hi\n\nTest", + "format": "org.matrix.custom.html", + "m.relates_to": { + "m.in_reply_to": { + "event_id": "$" + Math.random() + "-" + Math.random(), + }, + }, + "msgtype": "m.text", + }, + "user": "@me:here", + "type": "m.room.message", + "room": mockRoom.roomId, + "event": true, + })); + } + // membership events + for (i = 0; i < 10; i++) { + matrixEvents.push(TestUtilsMatrix.mkMembership({ + event: true, room: "!room:id", user: "@user:id", + target: { + userId: "@user:id", + name: "Bob", + getAvatarUrl: () => { + return "avatar.jpeg"; + }, + getMxcAvatarUrl: () => 'mxc://avatar.url/image.png', + }, + ts: ts0 + i*1000, + mship: 'join', + prevMship: 'join', + name: 'A user', + })); + } + // emote + matrixEvents.push(TestUtilsMatrix.mkEvent({ + "content": { + "body": "waves", + "msgtype": "m.emote", + }, + "user": "@me:here", + "type": "m.room.message", + "room": mockRoom.roomId, + "event": true, + })); + // redacted events + for (i = 0; i < 10; i++) { + matrixEvents.push(mkRedactedEvent(i)); + } + return matrixEvents; + } + + const events: MatrixEvent[] = mkEvents(); + + it('checks if the export format is valid', function() { + function isValidFormat(format: string): boolean { + const options: string[] = Object.values(ExportFormat); + return options.includes(format); + } + expect(isValidFormat("Html")).toBeTruthy(); + expect(isValidFormat("Json")).toBeTruthy(); + expect(isValidFormat("PlainText")).toBeTruthy(); + expect(isValidFormat("Pdf")).toBeFalsy(); + }); + + it("checks if the icons' html corresponds to export regex", function() { + const exporter = new HTMLExporter(mockRoom, ExportType.Beginning, mockExportOptions, null); + const fileRegex = /.*?<\/span>/; + expect(fileRegex.test( + renderToString(exporter.getEventTile(mkFileEvent(), true))), + ).toBeTruthy(); + }); + + it('checks if the export options are valid', function() { + for (const exportOption of invalidExportOptions) { + expect( + () => + new PlainTextExporter(mockRoom, ExportType.Beginning, exportOption, null), + ).toThrowError("Invalid export options"); + } + }); + + it('tests the file extension splitter', function() { + const exporter = new PlainTextExporter(mockRoom, ExportType.Beginning, mockExportOptions, null); + const fileNameWithExtensions = { + "": ["", ""], + "name": ["name", ""], + "name.txt": ["name", ".txt"], + ".htpasswd": ["", ".htpasswd"], + "name.with.many.dots.myext": ["name.with.many.dots", ".myext"], + }; + for (const fileName in fileNameWithExtensions) { + expect(exporter.splitFileName(fileName)).toStrictEqual(fileNameWithExtensions[fileName]); + } + }); + + it('checks if the reply regex executes correctly', function() { + const eventContents: ITestContent[] = [ + { + "msgtype": "m.text", + "body": "> <@me:here> Source\n\nReply", + "expectedText": "<@me:here \"Source\"> Reply", + }, + { + "msgtype": "m.text", + // if the reply format is invalid, then return the body + "body": "Invalid reply format", + "expectedText": "Invalid reply format", + }, + { + "msgtype": "m.text", + "body": "> <@me:here> The source is more than 32 characters\n\nReply", + "expectedText": "<@me:here \"The source is more than 32 chara...\"> Reply", + }, + { + "msgtype": "m.text", + "body": "> <@me:here> This\nsource\nhas\nnew\nlines\n\nReply", + "expectedText": "<@me:here \"This\"> Reply", + }, + ]; + const exporter = new PlainTextExporter(mockRoom, ExportType.Beginning, mockExportOptions, null); + for (const content of eventContents) { + expect(exporter.textForReplyEvent(content)).toBe(content.expectedText); + } + }); + + it("checks if the render to string doesn't throw any error for different types of events", function() { + const exporter = new HTMLExporter(mockRoom, ExportType.Beginning, mockExportOptions, null); + for (const event of events) { + expect(renderToString(exporter.getEventTile(event, false))).toBeTruthy(); + } + }); +}); + diff --git a/yarn.lock b/yarn.lock index 39c50464d5..84d82220f4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3,9 +3,11 @@ "@actions/core@^1.4.0": - version "1.5.0" - resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.5.0.tgz#885b864700001a1b9a6fba247833a036e75ad9d3" - integrity sha512-eDOLH1Nq9zh+PJlYLqEMkS/jLQxhksPNmUGNBHfa4G+tQmnIhzpctxmchETtVGyBOvXgOVVpYuE40+eS4cUnwQ== + version "1.6.0" + resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.6.0.tgz#0568e47039bfb6a9170393a73f3b7eb3b22462cb" + integrity sha512-NB1UAZomZlCV/LmJqkLhNTqtKfFXJZAUPcfl/zqG7EfsQdeUJtaWO98SGbuQ3pydJ3fHl2CvI/51OKYlCYYcaw== + dependencies: + "@actions/http-client" "^1.0.11" "@actions/github@^5.0.0": version "5.0.0" @@ -25,9 +27,9 @@ tunnel "0.0.6" "@babel/cli@^7.12.10": - version "7.15.4" - resolved "https://registry.yarnpkg.com/@babel/cli/-/cli-7.15.4.tgz#00e21e192b738dec7900c8bb36270e377217c0a4" - integrity sha512-9RhhQ7tgKRcSO/jI3rNLxalLSk30cHqeM8bb+nGOJTyYBDpkoXw/A9QHZ2SYjlslAt4tr90pZQGIEobwWHSIDw== + version "7.15.7" + resolved "https://registry.yarnpkg.com/@babel/cli/-/cli-7.15.7.tgz#62658abedb786d09c1f70229224b11a65440d7a1" + integrity sha512-YW5wOprO2LzMjoWZ5ZG6jfbY9JnkDxuHDwvnrThnuYtByorova/I0HNXJedrUfwuXFQfYOjcqDA4PU3qlZGZjg== dependencies: commander "^4.0.1" convert-source-map "^1.1.0" @@ -37,7 +39,7 @@ slash "^2.0.0" source-map "^0.5.0" optionalDependencies: - "@nicolo-ribaudo/chokidar-2" "2.1.8-no-fsevents.2" + "@nicolo-ribaudo/chokidar-2" "2.1.8-no-fsevents.3" chokidar "^3.4.0" "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.14.5": @@ -74,9 +76,9 @@ source-map "^0.5.0" "@babel/eslint-parser@^7.12.10": - version "7.15.4" - resolved "https://registry.yarnpkg.com/@babel/eslint-parser/-/eslint-parser-7.15.4.tgz#46385943726291fb3e8db99522c8099b15684387" - integrity sha512-hPMIAmGNbmQzXJIo2P43Zj9UhRmGev5f9nqdBFOWNGDGh6XKmjby79woBvg6y0Jur6yRfQBneDbUQ8ZVc1krFw== + version "7.15.7" + resolved "https://registry.yarnpkg.com/@babel/eslint-parser/-/eslint-parser-7.15.7.tgz#2dc3d0ff0ea22bb1e08d93b4eeb1149bf1c75f2d" + integrity sha512-yJkHyomClm6A2Xzb8pdAo4HzYMSXFn1O5zrCYvbFP0yQFvHueLedV8WiEno8yJOKStjUXzBZzJFeWQ7b3YMsqQ== dependencies: eslint-scope "^5.1.1" eslint-visitor-keys "^2.1.0" @@ -202,18 +204,18 @@ "@babel/types" "^7.15.4" "@babel/helper-module-transforms@^7.14.5", "@babel/helper-module-transforms@^7.15.4": - version "7.15.4" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.15.4.tgz#962cc629a7f7f9a082dd62d0307fa75fe8788d7c" - integrity sha512-9fHHSGE9zTC++KuXLZcB5FKgvlV83Ox+NLUmQTawovwlJ85+QMhk1CnVk406CQVj97LaWod6KVjl2Sfgw9Aktw== + version "7.15.7" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.15.7.tgz#7da80c8cbc1f02655d83f8b79d25866afe50d226" + integrity sha512-ZNqjjQG/AuFfekFTY+7nY4RgBSklgTu970c7Rj3m/JOhIu5KPBUuTA9AY6zaKcUvk4g6EbDXdBnhi35FAssdSw== dependencies: "@babel/helper-module-imports" "^7.15.4" "@babel/helper-replace-supers" "^7.15.4" "@babel/helper-simple-access" "^7.15.4" "@babel/helper-split-export-declaration" "^7.15.4" - "@babel/helper-validator-identifier" "^7.14.9" + "@babel/helper-validator-identifier" "^7.15.7" "@babel/template" "^7.15.4" "@babel/traverse" "^7.15.4" - "@babel/types" "^7.15.4" + "@babel/types" "^7.15.6" "@babel/helper-optimise-call-expression@^7.15.4": version "7.15.4" @@ -267,10 +269,10 @@ dependencies: "@babel/types" "^7.15.4" -"@babel/helper-validator-identifier@^7.14.5", "@babel/helper-validator-identifier@^7.14.9": - version "7.14.9" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.9.tgz#6654d171b2024f6d8ee151bf2509699919131d48" - integrity sha512-pQYxPY0UP6IHISRitNe8bsijHex4TWZXi2HwKVsjPiltzlhse2znVcm9Ace510VT1kxIHjGJCZZQBX2gJDbo0g== +"@babel/helper-validator-identifier@^7.14.5", "@babel/helper-validator-identifier@^7.14.9", "@babel/helper-validator-identifier@^7.15.7": + version "7.15.7" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz#220df993bfe904a4a6b02ab4f3385a5ebf6e2389" + integrity sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w== "@babel/helper-validator-option@^7.14.5": version "7.14.5" @@ -306,9 +308,9 @@ js-tokens "^4.0.0" "@babel/parser@^7.1.0", "@babel/parser@^7.12.11", "@babel/parser@^7.13.16", "@babel/parser@^7.15.4", "@babel/parser@^7.15.5": - version "7.15.6" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.15.6.tgz#043b9aa3c303c0722e5377fef9197f4cf1796549" - integrity sha512-S/TSCcsRuCkmpUuoWijua0Snt+f3ewU/8spLo+4AXJCZfT0bVCzLD5MuOKdrx0mlAptbKzn5AdgEIIKXxXkz9Q== + version "7.15.7" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.15.7.tgz#0c3ed4a2eb07b165dfa85b3cc45c727334c4edae" + integrity sha512-rycZXvQ+xS9QyIcJ9HXeDWf1uxqlbVFAUq0Rq0dbc50Zb/+wUe/ehyfzGfm9KZZF0kBejYgxltBXocP+gKdL2g== "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.15.4": version "7.15.4" @@ -1308,22 +1310,10 @@ version "3.2.3" resolved "https://gitlab.matrix.org/api/v4/projects/27/packages/npm/@matrix-org/olm/-/@matrix-org/olm-3.2.3.tgz#cc332fdd25c08ef0e40f4d33fc3f822a0f98b6f4" -"@nicolo-ribaudo/chokidar-2@2.1.8-no-fsevents.2": - version "2.1.8-no-fsevents.2" - resolved "https://registry.yarnpkg.com/@nicolo-ribaudo/chokidar-2/-/chokidar-2-2.1.8-no-fsevents.2.tgz#e324c0a247a5567192dd7180647709d7e2faf94b" - integrity sha512-Fb8WxUFOBQVl+CX4MWet5o7eCc6Pj04rXIwVKZ6h1NnqTo45eOQW6aWyhG25NIODvWFwTDMwBsYxrQ3imxpetg== - dependencies: - anymatch "^2.0.0" - async-each "^1.0.1" - braces "^2.3.2" - glob-parent "^5.1.2" - inherits "^2.0.3" - is-binary-path "^1.0.0" - is-glob "^4.0.0" - normalize-path "^3.0.0" - path-is-absolute "^1.0.0" - readdirp "^2.2.1" - upath "^1.1.1" +"@nicolo-ribaudo/chokidar-2@2.1.8-no-fsevents.3": + version "2.1.8-no-fsevents.3" + resolved "https://registry.yarnpkg.com/@nicolo-ribaudo/chokidar-2/-/chokidar-2-2.1.8-no-fsevents.3.tgz#323d72dd25103d0c4fbdce89dadf574a787b1f9b" + integrity sha512-s88O1aVtXftvp5bCPB7WnmXc5IwOZZ7YPuwNPt+GtOOXpPvad1LfbmjYv+qII7zP6RU2QGnqve27dnLycEnyEQ== "@nodelib/fs.scandir@2.1.5": version "2.1.5" @@ -1347,9 +1337,9 @@ fastq "^1.6.0" "@octokit/auth-token@^2.4.4": - version "2.4.5" - resolved "https://registry.yarnpkg.com/@octokit/auth-token/-/auth-token-2.4.5.tgz#568ccfb8cb46f36441fac094ce34f7a875b197f3" - integrity sha512-BpGYsPgJt05M7/L/5FoE1PiAbdxXFZkX/3kDYcsvd1v6UhlnE5e96dTDr0ezX/EFwciQxf3cNV0loipsURU+WA== + version "2.5.0" + resolved "https://registry.yarnpkg.com/@octokit/auth-token/-/auth-token-2.5.0.tgz#27c37ea26c205f28443402477ffd261311f21e36" + integrity sha512-r5FVUJCOLl19AxiuZD2VRZ/ORjp/4IN98Of6YJoJOkY75CIBuYfmiNHGrDwXr+aLGG55igl9QrxX3hbiXlLb+g== dependencies: "@octokit/types" "^6.0.3" @@ -1384,29 +1374,29 @@ "@octokit/types" "^6.0.3" universal-user-agent "^6.0.0" -"@octokit/openapi-types@^10.2.2": - version "10.2.2" - resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-10.2.2.tgz#6c1c839d7d169feabaf1d2a69c79439c75d979cd" - integrity sha512-EVcXQ+ZrC04cg17AMg1ofocWMxHDn17cB66ZHgYc0eUwjFtxS0oBzkyw2VqIrHBwVgtfoYrq1WMQfQmMjUwthw== +"@octokit/openapi-types@^10.6.4": + version "10.6.4" + resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-10.6.4.tgz#c8b5b1f5c60ab7c62858abe2ef57bc709f426a30" + integrity sha512-JVmwWzYTIs6jACYOwD6zu5rdrqGIYsiAsLzTCxdrWIPNKNVjEF6vPTL20shmgJ4qZsq7WPBcLXLsaQD+NLChfg== -"@octokit/plugin-paginate-rest@^2.13.3", "@octokit/plugin-paginate-rest@^2.16.0": - version "2.16.3" - resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.16.3.tgz#6dbf74a12a53e04da6ca731d4c93f20c0b5c6fe9" - integrity sha512-kdc65UEsqze/9fCISq6BxLzeB9qf0vKvKojIfzgwf4tEF+Wy6c9dXnPFE6vgpoDFB1Z5Jek5WFVU6vL1w22+Iw== +"@octokit/plugin-paginate-rest@^2.13.3", "@octokit/plugin-paginate-rest@^2.16.4": + version "2.16.7" + resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.16.7.tgz#d25b6e650ba5a007002986f5fda66958d44e70a4" + integrity sha512-TMlyVhMPx6La1Ud4PSY4YxqAvb9YPEMs/7R1nBSbsw4wNqG73aBqls0r0dRRCWe5Pm0ZUGS9a94N46iAxlOR8A== dependencies: - "@octokit/types" "^6.28.1" + "@octokit/types" "^6.31.3" "@octokit/plugin-request-log@^1.0.4": version "1.0.4" resolved "https://registry.yarnpkg.com/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz#5e50ed7083a613816b1e4a28aeec5fb7f1462e85" integrity sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA== -"@octokit/plugin-rest-endpoint-methods@^5.1.1", "@octokit/plugin-rest-endpoint-methods@^5.9.0": - version "5.10.4" - resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.10.4.tgz#97e85eb7375e30b9bf193894670f9da205e79408" - integrity sha512-Dh+EAMCYR9RUHwQChH94Skl0lM8Fh99auT8ggck/xTzjJrwVzvsd0YH68oRPqp/HxICzmUjLfaQ9sy1o1sfIiA== +"@octokit/plugin-rest-endpoint-methods@5.11.4", "@octokit/plugin-rest-endpoint-methods@^5.1.1": + version "5.11.4" + resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.11.4.tgz#221dedcbdc45d6bfa54228d469e8c34acb4e0e34" + integrity sha512-iS+GYTijrPUiEiLoDsGJhrbXIvOPfm2+schvr+FxNMs7PeE9Nl4bAMhE8ftfNX3Z1xLxSKwEZh0O7GbWurX5HQ== dependencies: - "@octokit/types" "^6.28.1" + "@octokit/types" "^6.31.2" deprecation "^2.3.1" "@octokit/request-error@^2.0.5", "@octokit/request-error@^2.1.0": @@ -1419,9 +1409,9 @@ once "^1.4.0" "@octokit/request@^5.6.0": - version "5.6.1" - resolved "https://registry.yarnpkg.com/@octokit/request/-/request-5.6.1.tgz#f97aff075c37ab1d427c49082fefeef0dba2d8ce" - integrity sha512-Ls2cfs1OfXaOKzkcxnqw5MR6drMA/zWX/LIS/p8Yjdz7QKTPQLMsB3R+OvoxE6XnXeXEE2X7xe4G4l4X0gRiKQ== + version "5.6.2" + resolved "https://registry.yarnpkg.com/@octokit/request/-/request-5.6.2.tgz#1aa74d5da7b9e04ac60ef232edd9a7438dcf32d8" + integrity sha512-je66CvSEVf0jCpRISxkUcCa0UkxmFs6eGDRSbfJtAVwbLH5ceqF+YEyC8lj8ystKyZTy8adWr0qmkY52EfOeLA== dependencies: "@octokit/endpoint" "^6.0.1" "@octokit/request-error" "^2.1.0" @@ -1431,21 +1421,21 @@ universal-user-agent "^6.0.0" "@octokit/rest@^18.6.7": - version "18.10.0" - resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-18.10.0.tgz#8a0add9611253e0e31d3ed5b4bc941a3795a7648" - integrity sha512-esHR5OKy38bccL/sajHqZudZCvmv4yjovMJzyXlphaUo7xykmtOdILGJ3aAm0mFHmMLmPFmDMJXf39cAjNJsrw== + version "18.11.4" + resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-18.11.4.tgz#9fb6d826244554fbf8c110b9064018d7198eec51" + integrity sha512-QplypCyYxqMK05JdMSm/bDWZO8VWWaBdzQ9tbF9rEV9rIEiICh+v6q+Vu/Y5hdze8JJaxfUC+PBC7vrnEkZvZg== dependencies: "@octokit/core" "^3.5.1" - "@octokit/plugin-paginate-rest" "^2.16.0" + "@octokit/plugin-paginate-rest" "^2.16.4" "@octokit/plugin-request-log" "^1.0.4" - "@octokit/plugin-rest-endpoint-methods" "^5.9.0" + "@octokit/plugin-rest-endpoint-methods" "5.11.4" -"@octokit/types@^6.0.3", "@octokit/types@^6.16.1", "@octokit/types@^6.28.1": - version "6.28.1" - resolved "https://registry.yarnpkg.com/@octokit/types/-/types-6.28.1.tgz#ab990d1fe952226055e81c7650480e6bacfb877c" - integrity sha512-XlxDoQLFO5JnFZgKVQTYTvXRsQFfr/GwDUU108NJ9R5yFPkA2qXhTJjYuul3vE4eLXP40FA2nysOu2zd6boE+w== +"@octokit/types@^6.0.3", "@octokit/types@^6.16.1", "@octokit/types@^6.31.2", "@octokit/types@^6.31.3": + version "6.31.3" + resolved "https://registry.yarnpkg.com/@octokit/types/-/types-6.31.3.tgz#14c2961baea853b2bf148d892256357a936343f8" + integrity sha512-IUG3uMpsLHrtEL6sCVXbxCgnbKcgpkS4K7gVEytLDvYYalkK3XcuMCHK1YPD8xJglSJAOAbL4MgXp47rS9G49w== dependencies: - "@octokit/openapi-types" "^10.2.2" + "@octokit/openapi-types" "^10.6.4" "@peculiar/asn1-schema@^2.0.32", "@peculiar/asn1-schema@^2.0.38": version "2.0.38" @@ -1476,66 +1466,66 @@ webcrypto-core "^1.2.0" "@sentry/browser@^6.11.0": - version "6.12.0" - resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-6.12.0.tgz#970cd68fa117a1e1336fdb373e3b1fa76cd63e2d" - integrity sha512-wsJi1NLOmfwtPNYxEC50dpDcVY7sdYckzwfqz1/zHrede1mtxpqSw+7iP4bHADOJXuF+ObYYTHND0v38GSXznQ== + version "6.13.2" + resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-6.13.2.tgz#8b731ecf8c3cdd92a4b6893a26f975fd5844056d" + integrity sha512-bkFXK4vAp2UX/4rQY0pj2Iky55Gnwr79CtveoeeMshoLy5iDgZ8gvnLNAz7om4B9OQk1u7NzLEa4IXAmHTUyag== dependencies: - "@sentry/core" "6.12.0" - "@sentry/types" "6.12.0" - "@sentry/utils" "6.12.0" + "@sentry/core" "6.13.2" + "@sentry/types" "6.13.2" + "@sentry/utils" "6.13.2" tslib "^1.9.3" -"@sentry/core@6.12.0": - version "6.12.0" - resolved "https://registry.yarnpkg.com/@sentry/core/-/core-6.12.0.tgz#bc7c5f0785b6a392d9ad47bd9b1fae3f5389996c" - integrity sha512-mU/zdjlzFHzdXDZCPZm8OeCw7c9xsbL49Mq0TrY0KJjLt4CJBkiq5SDTGfRsenBLgTedYhe5Z/J8Z+xVVq+MfQ== +"@sentry/core@6.13.2": + version "6.13.2" + resolved "https://registry.yarnpkg.com/@sentry/core/-/core-6.13.2.tgz#2ce164f81667aa89cd116f807d772b4718434583" + integrity sha512-snXNNFLwlS7yYxKTX4DBXebvJK+6ikBWN6noQ1CHowvM3ReFBlrdrs0Z0SsSFEzXm2S4q7f6HHbm66GSQZ/8FQ== dependencies: - "@sentry/hub" "6.12.0" - "@sentry/minimal" "6.12.0" - "@sentry/types" "6.12.0" - "@sentry/utils" "6.12.0" + "@sentry/hub" "6.13.2" + "@sentry/minimal" "6.13.2" + "@sentry/types" "6.13.2" + "@sentry/utils" "6.13.2" tslib "^1.9.3" -"@sentry/hub@6.12.0": - version "6.12.0" - resolved "https://registry.yarnpkg.com/@sentry/hub/-/hub-6.12.0.tgz#29e323ab6a95e178fb14fffb684aa0e09707197f" - integrity sha512-yR/UQVU+ukr42bSYpeqvb989SowIXlKBanU0cqLFDmv5LPCnaQB8PGeXwJAwWhQgx44PARhmB82S6Xor8gYNxg== +"@sentry/hub@6.13.2": + version "6.13.2" + resolved "https://registry.yarnpkg.com/@sentry/hub/-/hub-6.13.2.tgz#ebc66fd55c96c7686a53ffd3521b6a63f883bb79" + integrity sha512-sppSuJdNMiMC/vFm/dQowCBh11uTrmvks00fc190YWgxHshodJwXMdpc+pN61VSOmy2QA4MbQ5aMAgHzPzel3A== dependencies: - "@sentry/types" "6.12.0" - "@sentry/utils" "6.12.0" + "@sentry/types" "6.13.2" + "@sentry/utils" "6.13.2" tslib "^1.9.3" -"@sentry/minimal@6.12.0": - version "6.12.0" - resolved "https://registry.yarnpkg.com/@sentry/minimal/-/minimal-6.12.0.tgz#cbe20e95056cedb9709d7d5b2119ef95206a9f8c" - integrity sha512-r3C54Q1KN+xIqUvcgX9DlcoWE7ezWvFk2pSu1Ojx9De81hVqR9u5T3sdSAP2Xma+um0zr6coOtDJG4WtYlOtsw== +"@sentry/minimal@6.13.2": + version "6.13.2" + resolved "https://registry.yarnpkg.com/@sentry/minimal/-/minimal-6.13.2.tgz#de3ecc62b9463bf56ccdbcf4c75f7ea1aeeebc11" + integrity sha512-6iJfEvHzzpGBHDfLxSHcGObh73XU1OSQKWjuhDOe7UQDyI4BQmTfcXAC+Fr8sm8C/tIsmpVi/XJhs8cubFdSMw== dependencies: - "@sentry/hub" "6.12.0" - "@sentry/types" "6.12.0" + "@sentry/hub" "6.13.2" + "@sentry/types" "6.13.2" tslib "^1.9.3" "@sentry/tracing@^6.11.0": - version "6.12.0" - resolved "https://registry.yarnpkg.com/@sentry/tracing/-/tracing-6.12.0.tgz#a05c8985ee7fed7310b029b147d8f9f14f2a2e67" - integrity sha512-u10QHNknPBzbWSUUNMkvuH53sQd5NaBo6YdNPj4p5b7sE7445Sh0PwBpRbY3ZiUUiwyxV59fx9UQ4yVnPGxZQA== + version "6.13.2" + resolved "https://registry.yarnpkg.com/@sentry/tracing/-/tracing-6.13.2.tgz#512389ba459f48ae75e14f1528ab062dc46e4956" + integrity sha512-bHJz+C/nd6biWTNcYAu91JeRilsvVgaye4POkdzWSmD0XoLWHVMrpCQobGpXe7onkp2noU3YQjhqgtBqPHtnpw== dependencies: - "@sentry/hub" "6.12.0" - "@sentry/minimal" "6.12.0" - "@sentry/types" "6.12.0" - "@sentry/utils" "6.12.0" + "@sentry/hub" "6.13.2" + "@sentry/minimal" "6.13.2" + "@sentry/types" "6.13.2" + "@sentry/utils" "6.13.2" tslib "^1.9.3" -"@sentry/types@6.12.0", "@sentry/types@^6.10.0": - version "6.12.0" - resolved "https://registry.yarnpkg.com/@sentry/types/-/types-6.12.0.tgz#b7395688a79403c6df8d8bb8d81deb8222519853" - integrity sha512-urtgLzE4EDMAYQHYdkgC0Ei9QvLajodK1ntg71bGn0Pm84QUpaqpPDfHRU+i6jLeteyC7kWwa5O5W1m/jrjGXA== +"@sentry/types@6.13.2", "@sentry/types@^6.10.0": + version "6.13.2" + resolved "https://registry.yarnpkg.com/@sentry/types/-/types-6.13.2.tgz#8388d5b92ea8608936e7aae842801dc90e0184e6" + integrity sha512-6WjGj/VjjN8LZDtqJH5ikeB1o39rO1gYS6anBxiS3d0sXNBb3Ux0pNNDFoBxQpOhmdDHXYS57MEptX9EV82gmg== -"@sentry/utils@6.12.0": - version "6.12.0" - resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-6.12.0.tgz#3de261e8d11bdfdc7add64a3065d43517802e975" - integrity sha512-oRHQ7TH5TSsJqoP9Gqq25Jvn9LKexXfAh/OoKwjMhYCGKGhqpDNUIZVgl9DWsGw5A5N5xnQyLOxDfyRV5RshdA== +"@sentry/utils@6.13.2": + version "6.13.2" + resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-6.13.2.tgz#fb8010e7b67cc8c084d8067d64ef25289269cda5" + integrity sha512-foF4PbxqPMWNbuqdXkdoOmKm3quu3PP7Q7j/0pXkri4DtCuvF/lKY92mbY0V9rHS/phCoj+3/Se5JvM2ymh2/w== dependencies: - "@sentry/types" "6.12.0" + "@sentry/types" "6.13.2" tslib "^1.9.3" "@sinonjs/commons@^1.7.0": @@ -1654,6 +1644,11 @@ resolved "https://registry.yarnpkg.com/@types/fbemitter/-/fbemitter-2.0.32.tgz#8ed204da0f54e9c8eaec31b1eec91e25132d082c" integrity sha1-jtIE2g9U6cjq7DGx7skeJRMtCCw= +"@types/file-saver@^2.0.3": + version "2.0.3" + resolved "https://registry.yarnpkg.com/@types/file-saver/-/file-saver-2.0.3.tgz#b734c4f5a04d20615eaed3dc106e2ab321082009" + integrity sha512-MBIou8pd/41jkff7s97B47bc9+p0BszqqDJsO51yDm49uUxeKzrfuNl5fSLC6BpLEWKA8zlwyqALVmXrFwoBHQ== + "@types/flux@^3.1.9": version "3.1.10" resolved "https://registry.yarnpkg.com/@types/flux/-/flux-3.1.10.tgz#7c6306e86ecb434d00f38cb82f092640c7bd4098" @@ -1712,7 +1707,7 @@ jest-diff "^26.0.0" pretty-format "^26.0.0" -"@types/json-schema@^7.0.7": +"@types/json-schema@^7.0.7", "@types/json-schema@^7.0.8": version "7.0.9" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.9.tgz#97edc9037ea0c38585320b28964dde3b39e4660d" integrity sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ== @@ -1725,9 +1720,9 @@ "@types/react" "*" "@types/lodash@^4.14.168": - version "4.14.172" - resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.172.tgz#aad774c28e7bfd7a67de25408e03ee5a8c3d028a" - integrity sha512-/BHF5HAx3em7/KkzVKm3LrsD6HZAXuXO1AJZQ3cRRBZj4oHZDviWPYu0aEplAqDFNHZPW6d3G7KN+ONcCCC7pw== + version "4.14.175" + resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.175.tgz#b78dfa959192b01fae0ad90e166478769b215f45" + integrity sha512-XmdEOrKQ8a1Y/yxQFOMbC47G/V2VDO1GvMRnl4O75M4GW/abC5tnfzadQYkqEveqRM1dEJGFFegfPNA2vvx2iw== "@types/mdast@^3.0.0": version "3.0.10" @@ -1747,14 +1742,14 @@ integrity sha512-jhMOZSS0UGYTS9pqvt6q3wtT3uvOSve5piTEmTMx3zzTuBLvSIMxSIBIc3d5lajVD5h4xc41AMZD2M5orN3PxA== "@types/node@*": - version "16.9.1" - resolved "https://registry.yarnpkg.com/@types/node/-/node-16.9.1.tgz#0611b37db4246c937feef529ddcc018cf8e35708" - integrity sha512-QpLcX9ZSsq3YYUUnD3nFDY8H7wctAhQj/TFKL8Ya8v5fMm3CFXxo8zStsLAl780ltoYoo1WvKUVGBQK+1ifr7g== + version "16.10.2" + resolved "https://registry.yarnpkg.com/@types/node/-/node-16.10.2.tgz#5764ca9aa94470adb4e1185fe2e9f19458992b2e" + integrity sha512-zCclL4/rx+W5SQTzFs9wyvvyCwoK9QtBpratqz2IYJ3O8Umrn0m3nsTv0wQBk9sRGpvUe9CwPDrQFB10f1FIjQ== "@types/node@^14.14.22": - version "14.17.16" - resolved "https://registry.yarnpkg.com/@types/node/-/node-14.17.16.tgz#2b9252bd4fdf0393696190cd9550901dd967c777" - integrity sha512-WiFf2izl01P1CpeY8WqFAeKWwByMueBEkND38EcN8N68qb0aDG3oIS1P5MhAX5kUdr469qRyqsY/MjanLjsFbQ== + version "14.17.20" + resolved "https://registry.yarnpkg.com/@types/node/-/node-14.17.20.tgz#74cc80438fd0467dc4377ee5bbad89a886df3c10" + integrity sha512-gI5Sl30tmhXsqkNvopFydP7ASc4c2cLfGNQrVKN3X90ADFWFsPEsotm/8JHSUJQKTHbwowAHtcJPeyVhtKv0TQ== "@types/normalize-package-data@^2.4.0": version "2.4.1" @@ -1777,9 +1772,9 @@ integrity sha512-ARATsLdrGPUnaBvxLhUlnltcMgn7pQG312S8ccdYlnyijabrX9RN/KN/iGj9Am96CoW8e/K9628BA7Bv4XHdrA== "@types/prettier@^2.0.0": - version "2.3.2" - resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.3.2.tgz#fc8c2825e4ed2142473b4a81064e6e081463d1b3" - integrity sha512-eI5Yrz3Qv4KPUa/nSIAi0h+qX0XyewOliug5F2QAtuRg6Kjg6jfmxe1GIwoIRhZspD1A0RP8ANrPwvEXXtRFog== + version "2.4.1" + resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.4.1.tgz#e1303048d5389563e130f5bdd89d37a99acb75eb" + integrity sha512-Fo79ojj3vdEZOHg3wR9ksAMRz4P3S5fDB5e/YWZiFnyFQI1WY2Vftu9XoXVVtJfxB7Bpce/QTqWSSntkz2Znrw== "@types/prop-types@*": version "15.7.4" @@ -1818,9 +1813,9 @@ redux "^4.0.0" "@types/react-transition-group@^4.4.0": - version "4.4.2" - resolved "https://registry.yarnpkg.com/@types/react-transition-group/-/react-transition-group-4.4.2.tgz#38890fd9db68bf1f2252b99a942998dc7877c5b3" - integrity sha512-KibDWL6nshuOJ0fu8ll7QnV/LVTo3PzQ9aCPnRUYPfX7eZohHwLIdNHj7pftanREzHNP4/nJa8oeM73uSiavMQ== + version "4.4.3" + resolved "https://registry.yarnpkg.com/@types/react-transition-group/-/react-transition-group-4.4.3.tgz#b0994da0a7023d67dbb4a8910a62112bc00d5688" + integrity sha512-fUx5muOWSYP8Bw2BUQ9M9RK9+W1XBK/7FLJ8PTQpnpTEkn0ccyMffyEQvan4C3h53gHdx7KE5Qrxi/LnUGQtdg== dependencies: "@types/react" "*" @@ -1883,72 +1878,73 @@ integrity sha512-3NoqvZC2W5gAC5DZbTpCeJ251vGQmgcWIHQJGq2J240HY6ErQ9aWKkwfoKJlHLx+A83WPNTZ9+3cd2ILxbvr1w== "@typescript-eslint/eslint-plugin@^4.17.0": - version "4.31.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.31.1.tgz#e938603a136f01dcabeece069da5fb2e331d4498" - integrity sha512-UDqhWmd5i0TvPLmbK5xY3UZB0zEGseF+DHPghZ37Sb83Qd3p8ujhvAtkU4OF46Ka5Pm5kWvFIx0cCTBFKo0alA== + version "4.32.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.32.0.tgz#46d2370ae9311092f2a6f7246d28357daf2d4e89" + integrity sha512-+OWTuWRSbWI1KDK8iEyG/6uK2rTm3kpS38wuVifGUTDB6kjEuNrzBI1MUtxnkneuWG/23QehABe2zHHrj+4yuA== dependencies: - "@typescript-eslint/experimental-utils" "4.31.1" - "@typescript-eslint/scope-manager" "4.31.1" + "@typescript-eslint/experimental-utils" "4.32.0" + "@typescript-eslint/scope-manager" "4.32.0" debug "^4.3.1" functional-red-black-tree "^1.0.1" + ignore "^5.1.8" regexpp "^3.1.0" semver "^7.3.5" tsutils "^3.21.0" -"@typescript-eslint/experimental-utils@4.31.1": - version "4.31.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.31.1.tgz#0c900f832f270b88e13e51753647b02d08371ce5" - integrity sha512-NtoPsqmcSsWty0mcL5nTZXMf7Ei0Xr2MT8jWjXMVgRK0/1qeQ2jZzLFUh4QtyJ4+/lPUyMw5cSfeeME+Zrtp9Q== +"@typescript-eslint/experimental-utils@4.32.0": + version "4.32.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.32.0.tgz#53a8267d16ca5a79134739129871966c56a59dc4" + integrity sha512-WLoXcc+cQufxRYjTWr4kFt0DyEv6hDgSaFqYhIzQZ05cF+kXfqXdUh+//kgquPJVUBbL3oQGKQxwPbLxHRqm6A== dependencies: "@types/json-schema" "^7.0.7" - "@typescript-eslint/scope-manager" "4.31.1" - "@typescript-eslint/types" "4.31.1" - "@typescript-eslint/typescript-estree" "4.31.1" + "@typescript-eslint/scope-manager" "4.32.0" + "@typescript-eslint/types" "4.32.0" + "@typescript-eslint/typescript-estree" "4.32.0" eslint-scope "^5.1.1" eslint-utils "^3.0.0" "@typescript-eslint/parser@^4.17.0": - version "4.31.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.31.1.tgz#8f9a2672033e6f6d33b1c0260eebdc0ddf539064" - integrity sha512-dnVZDB6FhpIby6yVbHkwTKkn2ypjVIfAR9nh+kYsA/ZL0JlTsd22BiDjouotisY3Irmd3OW1qlk9EI5R8GrvRQ== + version "4.32.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.32.0.tgz#751ecca0e2fecd3d44484a9b3049ffc1871616e5" + integrity sha512-lhtYqQ2iEPV5JqV7K+uOVlPePjClj4dOw7K4/Z1F2yvjIUvyr13yJnDzkK6uon4BjHYuHy3EG0c2Z9jEhFk56w== dependencies: - "@typescript-eslint/scope-manager" "4.31.1" - "@typescript-eslint/types" "4.31.1" - "@typescript-eslint/typescript-estree" "4.31.1" + "@typescript-eslint/scope-manager" "4.32.0" + "@typescript-eslint/types" "4.32.0" + "@typescript-eslint/typescript-estree" "4.32.0" debug "^4.3.1" -"@typescript-eslint/scope-manager@4.31.1": - version "4.31.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.31.1.tgz#0c21e8501f608d6a25c842fcf59541ef4f1ab561" - integrity sha512-N1Uhn6SqNtU2XpFSkD4oA+F0PfKdWHyr4bTX0xTj8NRx1314gBDRL1LUuZd5+L3oP+wo6hCbZpaa1in6SwMcVQ== +"@typescript-eslint/scope-manager@4.32.0": + version "4.32.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.32.0.tgz#e03c8668f8b954072b3f944d5b799c0c9225a7d5" + integrity sha512-DK+fMSHdM216C0OM/KR1lHXjP1CNtVIhJ54kQxfOE6x8UGFAjha8cXgDMBEIYS2XCYjjCtvTkjQYwL3uvGOo0w== dependencies: - "@typescript-eslint/types" "4.31.1" - "@typescript-eslint/visitor-keys" "4.31.1" + "@typescript-eslint/types" "4.32.0" + "@typescript-eslint/visitor-keys" "4.32.0" -"@typescript-eslint/types@4.31.1": - version "4.31.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.31.1.tgz#5f255b695627a13401d2fdba5f7138bc79450d66" - integrity sha512-kixltt51ZJGKENNW88IY5MYqTBA8FR0Md8QdGbJD2pKZ+D5IvxjTYDNtJPDxFBiXmka2aJsITdB1BtO1fsgmsQ== +"@typescript-eslint/types@4.32.0": + version "4.32.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.32.0.tgz#52c633c18da47aee09449144bf59565ab36df00d" + integrity sha512-LE7Z7BAv0E2UvqzogssGf1x7GPpUalgG07nGCBYb1oK4mFsOiFC/VrSMKbZQzFJdN2JL5XYmsx7C7FX9p9ns0w== -"@typescript-eslint/typescript-estree@4.31.1": - version "4.31.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.31.1.tgz#4a04d5232cf1031232b7124a9c0310b577a62d17" - integrity sha512-EGHkbsUvjFrvRnusk6yFGqrqMBTue5E5ROnS5puj3laGQPasVUgwhrxfcgkdHNFECHAewpvELE1Gjv0XO3mdWg== +"@typescript-eslint/typescript-estree@4.32.0": + version "4.32.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.32.0.tgz#db00ccc41ccedc8d7367ea3f50c6994b8efa9f3b" + integrity sha512-tRYCgJ3g1UjMw1cGG8Yn1KzOzNlQ6u1h9AmEtPhb5V5a1TmiHWcRyF/Ic+91M4f43QeChyYlVTcf3DvDTZR9vw== dependencies: - "@typescript-eslint/types" "4.31.1" - "@typescript-eslint/visitor-keys" "4.31.1" + "@typescript-eslint/types" "4.32.0" + "@typescript-eslint/visitor-keys" "4.32.0" debug "^4.3.1" globby "^11.0.3" is-glob "^4.0.1" semver "^7.3.5" tsutils "^3.21.0" -"@typescript-eslint/visitor-keys@4.31.1": - version "4.31.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.31.1.tgz#f2e7a14c7f20c4ae07d7fc3c5878c4441a1da9cc" - integrity sha512-PCncP8hEqKw6SOJY+3St4LVtoZpPPn+Zlpm7KW5xnviMhdqcsBty4Lsg4J/VECpJjw1CkROaZhH4B8M1OfnXTQ== +"@typescript-eslint/visitor-keys@4.32.0": + version "4.32.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.32.0.tgz#455ba8b51242f2722a497ffae29313f33b14cb7f" + integrity sha512-e7NE0qz8W+atzv3Cy9qaQ7BTLwWsm084Z0c4nIO2l3Bp6u9WIgdqCgyPyV5oSPDMIW3b20H59OOCmVk3jw3Ptw== dependencies: - "@typescript-eslint/types" "4.31.1" + "@typescript-eslint/types" "4.32.0" eslint-visitor-keys "^2.0.0" "@wojtekmaj/enzyme-adapter-react-17@^0.6.1": @@ -2016,7 +2012,12 @@ agent-base@6: dependencies: debug "4" -ajv@^6.10.0, ajv@^6.12.3, ajv@^6.12.4: +ajv-keywords@^3.5.2: + version "3.5.2" + resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz#31f29da5ab6e00d1c2d329acf7b5929614d5014d" + integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ== + +ajv@^6.10.0, ajv@^6.12.3, ajv@^6.12.4, ajv@^6.12.5: version "6.12.6" resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== @@ -2077,7 +2078,7 @@ ansi-regex@^4.1.0: resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997" integrity sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg== -ansi-regex@^5.0.0: +ansi-regex@^5.0.0, ansi-regex@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== @@ -2139,7 +2140,7 @@ arr-union@^3.1.0: resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" integrity sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ= -array-includes@^3.1.2, array-includes@^3.1.3: +array-includes@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.3.tgz#c7f619b382ad2afaf5326cddfdc0afc61af7690a" integrity sha512-gcem1KlBU7c9rB+Rq8/3PPKsK2kjqeEBa3bD5kkQo4nYlOHQCJqIJFqBXDEfwaRuYTT4E+FxA9xez7Gf/e3Q7A== @@ -2161,34 +2162,33 @@ array-unique@^0.3.2: integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= array.prototype.filter@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/array.prototype.filter/-/array.prototype.filter-1.0.0.tgz#24d63e38983cdc6bf023a3c574b2f2a3f384c301" - integrity sha512-TfO1gz+tLm+Bswq0FBOXPqAchtCr2Rn48T8dLJoRFl8NoEosjZmzptmuo1X8aZBzZcqsR1W8U761tjACJtngTQ== + version "1.0.1" + resolved "https://registry.yarnpkg.com/array.prototype.filter/-/array.prototype.filter-1.0.1.tgz#20688792acdb97a09488eaaee9eebbf3966aae21" + integrity sha512-Dk3Ty7N42Odk7PjU/Ci3zT4pLj20YvuVnneG/58ICM6bt4Ij5kZaJTVQ9TSaWaIECX2sFyz4KItkVZqHNnciqw== dependencies: call-bind "^1.0.2" define-properties "^1.1.3" - es-abstract "^1.18.0" + es-abstract "^1.19.0" es-array-method-boxes-properly "^1.0.0" - is-string "^1.0.5" + is-string "^1.0.7" array.prototype.flat@^1.2.3: - version "1.2.4" - resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.2.4.tgz#6ef638b43312bd401b4c6199fdec7e2dc9e9a123" - integrity sha512-4470Xi3GAPAjZqFcljX2xzckv1qeKPizoNkiS0+O4IoPR2ZNpcjE0pkhdihlDouK+x6QOast26B4Q/O9DJnwSg== + version "1.2.5" + resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.2.5.tgz#07e0975d84bbc7c48cd1879d609e682598d33e13" + integrity sha512-KaYU+S+ndVqyUnignHftkwc58o3uVU1jzczILJ1tN2YaIZpFIKBiP/x/j97E5MVPsaCloPbqWLB/8qCTVvT2qg== dependencies: - call-bind "^1.0.0" + call-bind "^1.0.2" define-properties "^1.1.3" - es-abstract "^1.18.0-next.1" + es-abstract "^1.19.0" array.prototype.flatmap@^1.2.4: - version "1.2.4" - resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.2.4.tgz#94cfd47cc1556ec0747d97f7c7738c58122004c9" - integrity sha512-r9Z0zYoxqHz60vvQbWEdXIEtCwHF0yxaWfno9qzXeNHvfyl3BZqygmGzb84dsubyaXLH4husF+NFgMSdpZhk2Q== + version "1.2.5" + resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.2.5.tgz#908dc82d8a406930fdf38598d51e7411d18d4446" + integrity sha512-08u6rVyi1Lj7oqWbS9nUxliETrtIROT4XGTA4D/LWGten6E3ocm7cy9SIrmNHOL5XVbVuckUp3X6Xyg8/zpvHA== dependencies: call-bind "^1.0.0" define-properties "^1.1.3" - es-abstract "^1.18.0-next.1" - function-bind "^1.1.1" + es-abstract "^1.19.0" arrify@^1.0.1: version "1.0.1" @@ -2229,11 +2229,6 @@ astral-regex@^2.0.0: resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== -async-each@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.3.tgz#b727dbf87d7651602f06f4d4ac387f47d91b0cbf" - integrity sha512-z/WhQ5FPySLdvREByI2vZiTWwCnF0moMJ1hK9YQwDTHKh6I7/uSckMetoRGb5UBZPC1z0jlw+n/XCgjeH7y1AQ== - asynckit@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" @@ -2245,13 +2240,13 @@ atob@^2.1.2: integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== autoprefixer@^9.8.6: - version "9.8.6" - resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-9.8.6.tgz#3b73594ca1bf9266320c5acf1588d74dea74210f" - integrity sha512-XrvP4VVHdRBCdX1S3WXVD8+RyG9qeb1D5Sn1DeLiG2xfSpzellk5k54xbUERJ3M5DggQxes39UGOTP8CFrEGbg== + version "9.8.7" + resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-9.8.7.tgz#e3c12de18a800af1a1a8155fbc01dc7de29ea184" + integrity sha512-7Hg99B1eTH5+LgmUBUSmov1Z3bsggQJS7v3IMGo6wcScnbRuvtMc871J9J+4bSbIqa9LSX/zypFXJ8sXHpMJeQ== dependencies: browserslist "^4.12.0" caniuse-lite "^1.0.30001109" - colorette "^1.2.1" + nanocolors "^0.2.8" normalize-range "^0.1.2" num2fraction "^1.2.2" postcss "^7.0.32" @@ -2329,12 +2324,12 @@ babel-plugin-polyfill-corejs2@^0.2.2: semver "^6.1.1" babel-plugin-polyfill-corejs3@^0.2.2: - version "0.2.4" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.2.4.tgz#68cb81316b0e8d9d721a92e0009ec6ecd4cd2ca9" - integrity sha512-z3HnJE5TY/j4EFEa/qpQMSbcUJZ5JQi+3UFjXzn6pQCmIKc5Ug5j98SuYyH+m4xQnvKlMDIW4plLfgyVnd0IcQ== + version "0.2.5" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.2.5.tgz#2779846a16a1652244ae268b1e906ada107faf92" + integrity sha512-ninF5MQNwAX9Z7c9ED+H2pGt1mXdP4TqzlHKyPIYmJIYz0N+++uwdM7RnJukklhzJ54Q84vA4ZJkgs7lu5vqcw== dependencies: "@babel/helper-define-polyfill-provider" "^0.2.2" - core-js-compat "^3.14.0" + core-js-compat "^3.16.2" babel-plugin-polyfill-regenerator@^0.2.2: version "0.2.2" @@ -2421,10 +2416,10 @@ before-after-hook@^2.2.0: resolved "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-2.2.2.tgz#a6e8ca41028d90ee2c24222f201c90956091613e" integrity sha512-3pZEU3NT5BFUo/AD5ERPWOgQOCZITni6iavr5AUw5AUwQjMlI0kzu5btnyD39AF0gUEsDPwJT+oY1ORBJijPjQ== -binary-extensions@^1.0.0: - version "1.13.1" - resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.13.1.tgz#598afe54755b2868a5330d2aff9d4ebb53209b65" - integrity sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw== +big.js@^5.2.2: + version "5.2.2" + resolved "https://registry.yarnpkg.com/big.js/-/big.js-5.2.2.tgz#65f0af382f578bcdc742bd9c281e9cb2d7768328" + integrity sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ== binary-extensions@^2.0.0: version "2.2.0" @@ -2454,7 +2449,7 @@ brace-expansion@^1.1.7: balanced-match "^1.0.0" concat-map "0.0.1" -braces@^2.3.1, braces@^2.3.2: +braces@^2.3.1: version "2.3.2" resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" integrity sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w== @@ -2492,16 +2487,16 @@ browser-request@^0.3.3: resolved "https://registry.yarnpkg.com/browser-request/-/browser-request-0.3.3.tgz#9ece5b5aca89a29932242e18bf933def9876cc17" integrity sha1-ns5bWsqJopkyJC4Yv5M975h2zBc= -browserslist@^4.12.0, browserslist@^4.16.6, browserslist@^4.17.0: - version "4.17.0" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.17.0.tgz#1fcd81ec75b41d6d4994fb0831b92ac18c01649c" - integrity sha512-g2BJ2a0nEYvEFQC208q8mVAhfNwpZ5Mu8BwgtCdZKO3qx98HChmeg448fPdUzld8aFmfLgVh7yymqV+q1lJZ5g== +browserslist@^4.12.0, browserslist@^4.16.6, browserslist@^4.17.1: + version "4.17.2" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.17.2.tgz#aa15dbd2fab399a399fe4df601bb09363c5458a6" + integrity sha512-jSDZyqJmkKMEMi7SZAgX5UltFdR5NAO43vY0AwTpu4X3sGH7GLLQ83KiUomgrnvZRCeW0yPPnKqnxPqQOER9zQ== dependencies: - caniuse-lite "^1.0.30001254" - colorette "^1.3.0" - electron-to-chromium "^1.3.830" + caniuse-lite "^1.0.30001261" + electron-to-chromium "^1.3.854" escalade "^3.1.1" - node-releases "^1.1.75" + nanocolors "^0.2.12" + node-releases "^1.1.76" bs58@^4.0.1: version "4.0.1" @@ -2595,10 +2590,10 @@ camelcase@^6.0.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.2.0.tgz#924af881c9d525ac9d87f40d964e5cea982a1809" integrity sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg== -caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001254: - version "1.0.30001257" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001257.tgz#150aaf649a48bee531104cfeda57f92ce587f6e5" - integrity sha512-JN49KplOgHSXpIsVSF+LUyhD8PUp6xPpAXeRrrcBh4KBeP7W864jHn6RvzJgDlrReyeVjMFJL3PLpPvKIxlIHA== +caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001261: + version "1.0.30001264" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001264.tgz#88f625a60efb6724c7c62ac698bc8dbd9757e55b" + integrity sha512-Ftfqqfcs/ePiUmyaySsQ4PUsdcYyXG2rfoBVsk3iY1ahHaJEw65vfb7Suzqm+cEkwwPIv/XWkg27iCpRavH4zA== capture-exit@^2.0.0: version "2.0.0" @@ -2818,11 +2813,6 @@ color-name@^1.1.4, color-name@~1.1.4: resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== -colorette@^1.2.1, colorette@^1.2.2, colorette@^1.3.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.4.0.tgz#5190fbb87276259a86ad700bff2c6d6faa3fca40" - integrity sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g== - combined-stream@^1.0.6, combined-stream@^1.0.8, combined-stream@~1.0.6: version "1.0.8" resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" @@ -2897,12 +2887,12 @@ copy-descriptor@^0.1.0: resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40= -core-js-compat@^3.14.0, core-js-compat@^3.16.0: - version "3.17.3" - resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.17.3.tgz#b39c8e4dec71ecdc735c653ce5233466e561324e" - integrity sha512-+in61CKYs4hQERiADCJsdgewpdl/X0GhEX77pjKgbeibXviIt2oxEjTc8O2fqHX8mDdBrDvX8MYD/RYsBv4OiA== +core-js-compat@^3.16.0, core-js-compat@^3.16.2: + version "3.18.1" + resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.18.1.tgz#01942a0877caf9c6e5007c027183cf0bdae6a191" + integrity sha512-XJMYx58zo4W0kLPmIingVZA10+7TuKrMLPt83+EzDmxFJQUMcTVVmQ+n5JP4r6Z14qSzhQBRi3NSWoeVyKKXUg== dependencies: - browserslist "^4.17.0" + browserslist "^4.17.1" semver "7.0.0" core-js@^1.0.0: @@ -3054,9 +3044,9 @@ data-urls@^2.0.0: whatwg-url "^8.0.0" date-fns@^2.0.1: - version "2.23.0" - resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.23.0.tgz#4e886c941659af0cf7b30fafdd1eaa37e88788a9" - integrity sha512-5ycpauovVyAk0kXNZz6ZoB9AYMZB4DObse7P3BPWmyEjXNORTI8EJ6X0uaSAq4sCHzM1uajzrkr6HnsLQpxGXA== + version "2.24.0" + resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.24.0.tgz#7d86dc0d93c87b76b63d213b4413337cfd1c105d" + integrity sha512-6ujwvwgPID6zbI0o7UbURi2vlLDR9uP26+tW6Lg+Ji3w7dd0i3DOcjcClLjLPranT60SSEFBwdSyYwn/ZkPIuw== date-names@^0.1.11: version "0.1.13" @@ -3286,10 +3276,10 @@ ecc-jsbn@~0.1.1: jsbn "~0.1.0" safer-buffer "^2.1.0" -electron-to-chromium@^1.3.830: - version "1.3.839" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.839.tgz#27a5b21468e9fefb0e328a029403617f20acec9c" - integrity sha512-0O7uPs9LJNjQ/U5mW78qW8gXv9H6Ba3DHZ5/yt8aBsvomOWDkV3MddT7enUYvLQEUVOURjWmgJJWVZ3K98tIwQ== +electron-to-chromium@^1.3.854: + version "1.3.857" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.857.tgz#dcc239ff8a12b6e4b501e6a5ad20fd0d5a3210f9" + integrity sha512-a5kIr2lajm4bJ5E4D3fp8Y/BRB0Dx2VOcCRE5Gtb679mXIME/OFhWler8Gy2ksrf8gFX+EFCSIGA33FB3gqYpg== emittery@^0.7.1: version "0.7.2" @@ -3316,6 +3306,11 @@ emojibase-regex@^5.1.3: resolved "https://registry.yarnpkg.com/emojibase-regex/-/emojibase-regex-5.1.3.tgz#f0ef621ed6ec624becd2326f999fd4ea01b94554" integrity sha512-gT8T9LxLA8VJdI+8KQtyykB9qKzd7WuUL3M2yw6y9tplFeufOUANg3UKVaKUvkMcRNvZsSElWhxcJrx8WPE12g== +emojis-list@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-3.0.0.tgz#5570662046ad29e2e916e71aae260abdff4f6a78" + integrity sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q== + encoding@^0.1.11: version "0.1.13" resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.13.tgz#56574afdd791f54a8e9b2785c0582a2d26210fa9" @@ -3395,10 +3390,10 @@ error-ex@^1.3.1: dependencies: is-arrayish "^0.2.1" -es-abstract@^1.18.0, es-abstract@^1.18.0-next.1, es-abstract@^1.18.0-next.2, es-abstract@^1.18.2, es-abstract@^1.18.5, es-abstract@^1.18.6: - version "1.18.6" - resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.18.6.tgz#2c44e3ea7a6255039164d26559777a6d978cb456" - integrity sha512-kAeIT4cku5eNLNuUKhlmtuk1/TRZvQoYccn6TO0cSVdf1kzB0T7+dYuVK9MWM7l+/53W2Q8M7N2c6MQvhXFcUQ== +es-abstract@^1.18.0-next.2, es-abstract@^1.18.2, es-abstract@^1.18.5, es-abstract@^1.19.0, es-abstract@^1.19.1: + version "1.19.1" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.19.1.tgz#d4885796876916959de78edaa0df456627115ec3" + integrity sha512-2vJ6tjA/UfqLm2MPs7jxVybLoB8i1t1Jd9R3kISld20sIxPcTbLuggQOUxeWeAvIUkduv/CfMjuh4WmiXr2v9w== dependencies: call-bind "^1.0.2" es-to-primitive "^1.2.1" @@ -3411,7 +3406,9 @@ es-abstract@^1.18.0, es-abstract@^1.18.0-next.1, es-abstract@^1.18.0-next.2, es- is-callable "^1.2.4" is-negative-zero "^2.0.1" is-regex "^1.1.4" + is-shared-array-buffer "^1.0.1" is-string "^1.0.7" + is-weakref "^1.0.1" object-inspect "^1.11.0" object-keys "^1.1.1" object.assign "^4.1.2" @@ -3535,22 +3532,23 @@ eslint-plugin-react-hooks@^4.2.0: integrity sha512-623WEiZJqxR7VdxFCKLI6d6LLpwJkGPYKODnkH3D7WpOG5KM8yWueBd8TLsNAetEJNF5iJmolaAKO3F8yzyVBQ== eslint-plugin-react@^7.22.0: - version "7.25.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.25.1.tgz#9286b7cd9bf917d40309760f403e53016eda8331" - integrity sha512-P4j9K1dHoFXxDNP05AtixcJEvIT6ht8FhYKsrkY0MPCPaUMYijhpWwNiRDZVtA8KFuZOkGSeft6QwH8KuVpJug== + version "7.26.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.26.1.tgz#41bcfe3e39e6a5ac040971c1af94437c80daa40e" + integrity sha512-Lug0+NOFXeOE+ORZ5pbsh6mSKjBKXDXItUD2sQoT+5Yl0eoT82DqnXeTMfUare4QVCn9QwXbfzO/dBLjLXwVjQ== dependencies: array-includes "^3.1.3" array.prototype.flatmap "^1.2.4" doctrine "^2.1.0" estraverse "^5.2.0" - has "^1.0.3" jsx-ast-utils "^2.4.1 || ^3.0.0" minimatch "^3.0.4" object.entries "^1.1.4" object.fromentries "^2.0.4" + object.hasown "^1.0.0" object.values "^1.1.4" prop-types "^15.7.2" resolve "^2.0.0-next.3" + semver "^6.3.0" string.prototype.matchall "^4.0.5" eslint-rule-composer@^0.3.0: @@ -3780,9 +3778,9 @@ expect@^26.6.2: jest-regex-util "^26.0.0" ext@^1.1.2: - version "1.5.0" - resolved "https://registry.yarnpkg.com/ext/-/ext-1.5.0.tgz#e93b97ae0cb23f8370380f6107d2d2b7887687ad" - integrity sha512-+ONcYoWj/SoQwUofMr94aGu05Ou4FepKi7N7b+O8T4jVfyIsZQV1/xeS8jpaBzF0csAk0KLXoHCxU7cKYZjo1Q== + version "1.6.0" + resolved "https://registry.yarnpkg.com/ext/-/ext-1.6.0.tgz#3871d50641e874cc172e2b53f919842d19db4c52" + integrity sha512-sdBImtzkq2HpkdRLtlLWDa6w4DX22ijZLKx8BMPUuKe1c5lbN6xwQDQCxSfxBQnHZ13ls/FH0MQZx/q/gr6FQg== dependencies: type "^2.5.0" @@ -4072,13 +4070,13 @@ function-bind@^1.1.1: integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== function.prototype.name@^1.1.0, function.prototype.name@^1.1.2, function.prototype.name@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.4.tgz#e4ea839b9d3672ae99d0efd9f38d9191c5eaac83" - integrity sha512-iqy1pIotY/RmhdFZygSSlW0wko2yxkSCKqsuv4pr8QESohpYyG/Z7B/XXvPRKTJS//960rgguE5mSRUsDdaJrQ== + version "1.1.5" + resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.5.tgz#cce0505fe1ffb80503e6f9e46cc64e46a12a9621" + integrity sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA== dependencies: call-bind "^1.0.2" define-properties "^1.1.3" - es-abstract "^1.18.0-next.2" + es-abstract "^1.19.0" functions-have-names "^1.2.2" functional-red-black-tree@^1.0.1: @@ -4172,9 +4170,9 @@ glob-to-regexp@^0.4.1: integrity sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw== glob@^7.0.0, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: - version "7.1.7" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.7.tgz#3b193e9233f01d42d0b3f78294bbeeb418f94a90" - integrity sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ== + version "7.2.0" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.0.tgz#d15535af7732e02e948f4c41628bd910293f6023" + integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q== dependencies: fs.realpath "^1.0.0" inflight "^1.0.4" @@ -4235,7 +4233,7 @@ gonzales-pe@^4.3.0: dependencies: minimist "^1.2.5" -graceful-fs@^4.1.11, graceful-fs@^4.2.4: +graceful-fs@^4.2.4: version "4.2.8" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.8.tgz#e412b8d33f5e006593cbd3cee6df9f2cebbe802a" integrity sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg== @@ -4464,6 +4462,11 @@ ignore@^5.1.4, ignore@^5.1.8: resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.1.8.tgz#f150a8b50a34289b33e22f5889abd4d8016f0e57" integrity sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw== +immediate@~3.0.5: + version "3.0.6" + resolved "https://registry.yarnpkg.com/immediate/-/immediate-3.0.6.tgz#9db1dbd0faf8de6fbe0f5dd5e56bb606280de69b" + integrity sha1-nbHb0Pr43m++D13V5Wu2BigN5ps= + immutable@^3.7.4: version "3.8.2" resolved "https://registry.yarnpkg.com/immutable/-/immutable-3.8.2.tgz#c2439951455bb39913daf281376f1530e104adf3" @@ -4483,9 +4486,9 @@ import-lazy@^4.0.0: integrity sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw== import-local@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.0.2.tgz#a8cfd0431d1de4a2199703d003e3e62364fa6db6" - integrity sha512-vjL3+w0oulAVZ0hBHnxa/Nm5TAurf9YLQJDhqRZyqb+VKGOB6LU8t9H1Nr5CIo16vh9XfJTOoHwU0B71S557gA== + version "3.0.3" + resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.0.3.tgz#4d51c2c495ca9393da259ec66b62e022920211e0" + integrity sha512-bE9iaUY3CXH8Cwfan/abDKAxe1KGT9kyGsBPqf6DMK/z0a2OzAsrukeYNgIH6cH5Xr452jb1TUL8rSfCLjZ9uA== dependencies: pkg-dir "^4.2.0" resolve-cwd "^3.0.0" @@ -4596,13 +4599,6 @@ is-bigint@^1.0.1, is-bigint@^1.0.3: dependencies: has-bigints "^1.0.1" -is-binary-path@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" - integrity sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg= - dependencies: - binary-extensions "^1.0.0" - is-binary-path@~2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" @@ -4641,9 +4637,9 @@ is-ci@^2.0.0: ci-info "^2.0.0" is-core-module@^2.2.0, is-core-module@^2.5.0: - version "2.6.0" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.6.0.tgz#d7553b2526fe59b92ba3e40c8df757ec8a709e19" - integrity sha512-wShG8vs60jKfPWpF2KZRaAtvt3a20OAn7+IJ6hLPECpSABLcKtFKTTI4ZtH5QcBruBHlq+WsdHWyz0BCZW7svQ== + version "2.7.0" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.7.0.tgz#3c0ef7d31b4acfc574f80c58409d568a836848e3" + integrity sha512-ByY+tjCciCr+9nLryBYcSD50EOGWt95c7tIsKTG1J2ixKKXPvF7Ej3AVd+UfDydAJom3biBGDBALaO79ktwgEQ== dependencies: has "^1.0.3" @@ -4768,9 +4764,9 @@ is-generator-function@^1.0.10: has-tostringtag "^1.0.0" is-glob@^4.0.0, is-glob@^4.0.1, is-glob@~4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc" - integrity sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg== + version "4.0.3" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" + integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== dependencies: is-extglob "^2.1.1" @@ -4865,6 +4861,11 @@ is-set@^2.0.1, is-set@^2.0.2: resolved "https://registry.yarnpkg.com/is-set/-/is-set-2.0.2.tgz#90755fa4c2562dc1c5d4024760d6119b94ca18ec" integrity sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g== +is-shared-array-buffer@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-shared-array-buffer/-/is-shared-array-buffer-1.0.1.tgz#97b0c85fbdacb59c9c446fe653b82cf2b5b7cfe6" + integrity sha512-IU0NmyknYZN0rChcKhRO1X8LYz5Isj/Fsqh8NJOSf+N/hCOTwy29F32Ik7a+QszE63IdvmwdTPDd6cZ5pg4cwA== + is-stream@^1.0.1, is-stream@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" @@ -4985,9 +4986,9 @@ isstream@~0.1.2: integrity sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo= istanbul-lib-coverage@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz#f5944a37c70b550b02a78a5c3b2055b280cec8ec" - integrity sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg== + version "3.0.1" + resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.1.tgz#e8900b3ed6069759229cf30f7067388d148aeb5e" + integrity sha512-GvCYYTxaCPqwMjobtVcVKvSHtAGe48MNhGjpK8LtVF8K0ISX7hCKl85LgtuaSneWVyQmaGcW3iXVV3GaZSLpmQ== istanbul-lib-instrument@^4.0.0, istanbul-lib-instrument@^4.0.3: version "4.0.3" @@ -5273,6 +5274,11 @@ jest-pnp-resolver@^1.2.2: resolved "https://registry.yarnpkg.com/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz#b704ac0ae028a89108a4d040b3f919dfddc8e33c" integrity sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w== +jest-raw-loader@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/jest-raw-loader/-/jest-raw-loader-1.0.1.tgz#ce9f56d54650f157c4a7d16d224ba5d613bcd626" + integrity sha1-zp9W1UZQ8VfEp9FtIkul1hO81iY= + jest-regex-util@^26.0.0: version "26.0.0" resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-26.0.0.tgz#d25e7184b36e39fd466c3bc41be0971e821fee28" @@ -5577,13 +5583,23 @@ jsprim@^1.2.2: verror "1.10.0" "jsx-ast-utils@^2.4.1 || ^3.0.0": - version "3.2.0" - resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.2.0.tgz#41108d2cec408c3453c1bbe8a4aae9e1e2bd8f82" - integrity sha512-EIsmt3O3ljsU6sot/J4E1zDRxfBNrhjyf/OKjlydwgEimQuznlM4Wv7U+ueONJMyEn1WRE0K8dhi3dVAXYT24Q== + version "3.2.1" + resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.2.1.tgz#720b97bfe7d901b927d87c3773637ae8ea48781b" + integrity sha512-uP5vu8xfy2F9A6LGC22KO7e2/vGTS1MhP+18f++ZNlf0Ohaxbc9nIEwHAsejlJKyzfZzU5UIhe5ItYkitcZnZA== dependencies: - array-includes "^3.1.2" + array-includes "^3.1.3" object.assign "^4.1.2" +jszip@^3.7.0: + version "3.7.1" + resolved "https://registry.yarnpkg.com/jszip/-/jszip-3.7.1.tgz#bd63401221c15625a1228c556ca8a68da6fda3d9" + integrity sha512-ghL0tz1XG9ZEmRMcEN2vt7xabrDdqHHeykgARpmZ0BiIctWxM47Vt63ZO2dnp4QYt/xJVLLy5Zv1l/xRdh2byg== + dependencies: + lie "~3.3.0" + pako "~1.0.2" + readable-stream "~2.3.6" + set-immediate-shim "~1.0.1" + katex@^0.12.0: version "0.12.0" resolved "https://registry.yarnpkg.com/katex/-/katex-0.12.0.tgz#2fb1c665dbd2b043edcf8a1f5c555f46beaa0cb9" @@ -5651,6 +5667,13 @@ levn@~0.3.0: prelude-ls "~1.1.2" type-check "~0.3.2" +lie@~3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/lie/-/lie-3.3.0.tgz#dcf82dee545f46074daf200c7c1c5a08e0f40f6a" + integrity sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ== + dependencies: + immediate "~3.0.5" + lines-and-columns@^1.1.6: version "1.1.6" resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00" @@ -5661,6 +5684,15 @@ linkifyjs@^2.1.9: resolved "https://registry.yarnpkg.com/linkifyjs/-/linkifyjs-2.1.9.tgz#af06e45a2866ff06c4766582590d098a4d584702" integrity sha512-74ivurkK6WHvHFozVaGtQWV38FzBwSTGNmJolEgFp7QgR2bl6ArUWlvT4GcHKbPe1z3nWYi+VUdDZk16zDOVug== +loader-utils@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-2.0.0.tgz#e4cace5b816d425a166b5f097e10cd12b36064b0" + integrity sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ== + dependencies: + big.js "^5.2.2" + emojis-list "^3.0.0" + json5 "^2.1.2" + locate-path@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz#dbec3b3ab759758071b58fe59fc41871af21400e" @@ -5790,9 +5822,9 @@ map-obj@^1.0.0: integrity sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0= map-obj@^4.0.0: - version "4.2.1" - resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-4.2.1.tgz#e4ea399dbc979ae735c83c863dd31bdf364277b7" - integrity sha512-+WA2/1sPmDj1dlvvJmB5G6JKfY9dpn7EVBUL06+y6PoljPkh+6V1QihwxNkbcGxCRjt2b0F9K0taiCuo7MbdFQ== + version "4.3.0" + resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-4.3.0.tgz#9304f906e93faae70880da102a9f1df0ea8bb05a" + integrity sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ== map-visit@^1.0.0: version "1.0.0" @@ -5808,7 +5840,7 @@ mathml-tag-names@^2.1.3: "matrix-js-sdk@github:matrix-org/matrix-js-sdk#develop": version "13.0.0" - resolved "https://codeload.github.com/matrix-org/matrix-js-sdk/tar.gz/2515d07c8fc3bf5e1afc8352e3e330cca30dde85" + resolved "https://codeload.github.com/matrix-org/matrix-js-sdk/tar.gz/a7a08fd760e6e99c4cc631fca42e6f06af9d594e" dependencies: "@babel/runtime" "^7.12.5" another-json "^0.2.0" @@ -5938,7 +5970,7 @@ micromark@~2.11.0: debug "^4.0.0" parse-entities "^2.0.0" -micromatch@^3.1.10, micromatch@^3.1.4: +micromatch@^3.1.4: version "3.1.10" resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" integrity sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg== @@ -5965,17 +5997,17 @@ micromatch@^4.0.2, micromatch@^4.0.4: braces "^3.0.1" picomatch "^2.2.3" -mime-db@1.49.0: - version "1.49.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.49.0.tgz#f3dfde60c99e9cf3bc9701d687778f537001cbed" - integrity sha512-CIc8j9URtOVApSFCQIF+VBkX1RwXp/oMMOrqdyXSBXq5RWNEsRfyj1kiRnQgmNXmHxPoFIxOroKA3zcU9P+nAA== +mime-db@1.50.0: + version "1.50.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.50.0.tgz#abd4ac94e98d3c0e185016c67ab45d5fde40c11f" + integrity sha512-9tMZCDlYHqeERXEHO9f/hKfNXhre5dK2eE/krIvUjZbS2KPcqGDfNShIWS1uW9XOTKQKqK6qbeOci18rbfW77A== mime-types@^2.1.12, mime-types@~2.1.19: - version "2.1.32" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.32.tgz#1d00e89e7de7fe02008db61001d9e02852670fd5" - integrity sha512-hJGaVS4G4c9TSMYh2n6SQAGrC4RnfU+daP8G7cSCmaqNjiOoUY0VHCMS42pxnQmVF1GWwFhbHWn3RIxCqTmZ9A== + version "2.1.33" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.33.tgz#1fa12a904472fafd068e48d9e8401f74d3f70edb" + integrity sha512-plLElXp7pRDd0bNZHw+nMd52vRYjLwQjygaNg7ddJ2uJtTlmnTCjWuPKxVu6//AdaRuME84SvLW91sIkBqGT0g== dependencies: - mime-db "1.49.0" + mime-db "1.50.0" mimic-fn@^2.1.0: version "2.1.0" @@ -6038,10 +6070,15 @@ ms@2.1.2: resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== -nanoid@^3.1.23: - version "3.1.25" - resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.25.tgz#09ca32747c0e543f0e1814b7d3793477f9c8e152" - integrity sha512-rdwtIXaXCLFAQbnfqDRnI6jaRHp9fTcYBjtFKE8eezcZ7LuLjhUaQGNeMXf1HmRoCH32CLz6XwX0TtxEOS/A3Q== +nanocolors@^0.2.12, nanocolors@^0.2.2, nanocolors@^0.2.8: + version "0.2.12" + resolved "https://registry.yarnpkg.com/nanocolors/-/nanocolors-0.2.12.tgz#4d05932e70116078673ea4cc6699a1c56cc77777" + integrity sha512-SFNdALvzW+rVlzqexid6epYdt8H9Zol7xDoQarioEFcFN0JHo4CYNztAxmtfgGTVRCmFlEOqqhBpoFGKqSAMug== + +nanoid@^3.1.25: + version "3.1.28" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.28.tgz#3c01bac14cb6c5680569014cc65a2f26424c6bd4" + integrity sha512-gSu9VZ2HtmoKYe/lmyPFES5nknFrHa+/DT9muUFWFMi6Jh9E1I7bkvlQ8xxf1Kos9pi9o8lBnIOkatMhKX/YUw== nanomatch@^1.2.9: version "1.2.13" @@ -6104,9 +6141,11 @@ node-fetch@^1.0.1: is-stream "^1.0.1" node-fetch@^2.6.1: - version "2.6.2" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.2.tgz#986996818b73785e47b1965cc34eb093a1d464d0" - integrity sha512-aLoxToI6RfZ+0NOjmWAgn9+LEd30YCkJKFSyWacNZdEKTit/ZMcKjGkTRo8uWEsnIb/hfKecNPEbln02PdWbcA== + version "2.6.5" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.5.tgz#42735537d7f080a7e5f78b6c549b7146be1742fd" + integrity sha512-mmlIVHJEu5rnIxgEgez6b9GgWXbkZj5YZ7fx+2r94a2E+Uirsp6HsPTPlomfdHtpt/B0cdKviwkoaM6pyvUOpQ== + dependencies: + whatwg-url "^5.0.0" node-int64@^0.4.0: version "0.4.0" @@ -6130,10 +6169,10 @@ node-notifier@^8.0.0: uuid "^8.3.0" which "^2.0.2" -node-releases@^1.1.75: - version "1.1.75" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.75.tgz#6dd8c876b9897a1b8e5a02de26afa79bb54ebbfe" - integrity sha512-Qe5OUajvqrqDSy6wrWFmMwfJ0jVgwiw4T3KqmbTcZ62qW0gQkheXYhcFM1+lOVcGUoRxcEcfyvFMAnDgaF1VWw== +node-releases@^1.1.76: + version "1.1.77" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.77.tgz#50b0cfede855dd374e7585bf228ff34e57c1c32e" + integrity sha512-rB1DUFUNAN4Gn9keO2K1efO35IDK7yKHCdCaIMvFO7yUYmmZYeDjnGKle26G4rwj+LKRQpjyUUvMkPglwGCYNQ== normalize-package-data@^2.3.2, normalize-package-data@^2.5.0: version "2.5.0" @@ -6263,33 +6302,40 @@ object.assign@^4.1.0, object.assign@^4.1.2: object-keys "^1.1.1" object.entries@^1.1.1, object.entries@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.4.tgz#43ccf9a50bc5fd5b649d45ab1a579f24e088cafd" - integrity sha512-h4LWKWE+wKQGhtMjZEBud7uLGhqyLwj8fpHOarZhD2uY3C9cRtk57VQ89ke3moByLXMedqs3XCHzyb4AmA2DjA== + version "1.1.5" + resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.5.tgz#e1acdd17c4de2cd96d5a08487cfb9db84d881861" + integrity sha512-TyxmjUoZggd4OrrU1W66FMDG6CuqJxsFvymeyXI51+vQLN67zYfZseptRge703kKQdo4uccgAKebXFcRCzk4+g== dependencies: call-bind "^1.0.2" define-properties "^1.1.3" - es-abstract "^1.18.2" + es-abstract "^1.19.1" object.fromentries@^2.0.0, object.fromentries@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.4.tgz#26e1ba5c4571c5c6f0890cef4473066456a120b8" - integrity sha512-EsFBshs5RUUpQEY1D4q/m59kMfz4YJvxuNCJcv/jWwOJr34EaVnG11ZrZa0UHB3wnzV1wx8m58T4hQL8IuNXlQ== + version "2.0.5" + resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.5.tgz#7b37b205109c21e741e605727fe8b0ad5fa08251" + integrity sha512-CAyG5mWQRRiBU57Re4FKoTBjXfDoNwdFVH2Y1tS9PqCsfUTymAohOkEMSG3aRNKmv4lV3O7p1et7c187q6bynw== dependencies: call-bind "^1.0.2" define-properties "^1.1.3" - es-abstract "^1.18.0-next.2" - has "^1.0.3" + es-abstract "^1.19.1" object.getprototypeof@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/object.getprototypeof/-/object.getprototypeof-1.0.2.tgz#a993d88ca63d68f9c328186dd17d76d4188b3624" - integrity sha512-7KoF7BcUJi6YZ+7g9XqbaJzxsmp4jSjUw8TkOSdN/GF9ZAhDM/ssERDddC+WR556niTKtCk9HtwwsbnaEeWNlg== + version "1.0.3" + resolved "https://registry.yarnpkg.com/object.getprototypeof/-/object.getprototypeof-1.0.3.tgz#92e0c2320ffd3990f3378c9c3489929af31a190f" + integrity sha512-EP3J0rXZA4OuvSl98wYa0hY5zHUJo2kGrp2eYDro0yCe3yrKm7xtXDgbpT+YPK2RzdtdvJtm0IfaAyXeehQR0w== dependencies: call-bind "^1.0.2" define-properties "^1.1.3" - es-abstract "^1.18.6" - reflect.getprototypeof "^1.0.0" + es-abstract "^1.19.1" + reflect.getprototypeof "^1.0.2" + +object.hasown@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/object.hasown/-/object.hasown-1.1.0.tgz#7232ed266f34d197d15cac5880232f7a4790afe5" + integrity sha512-MhjYRfj3GBlhSkDHo6QmvgjRLXQ2zndabdf3nX0yTyZK9rPfxb6uRpAac8HXNLy1GpqWtZ81Qh4v3uOls2sRAg== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.19.1" object.pick@^1.3.0: version "1.3.0" @@ -6299,13 +6345,13 @@ object.pick@^1.3.0: isobject "^3.0.1" object.values@^1.1.0, object.values@^1.1.1, object.values@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.4.tgz#0d273762833e816b693a637d30073e7051535b30" - integrity sha512-TnGo7j4XSnKQoK3MfvkzqKCi0nVe/D9I9IjwTNYdb/fxYHpjrluHVOgw0AF6jrRFGMPHdfuidR09tIDiIvnaSg== + version "1.1.5" + resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.5.tgz#959f63e3ce9ef108720333082131e4a459b716ac" + integrity sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg== dependencies: call-bind "^1.0.2" define-properties "^1.1.3" - es-abstract "^1.18.2" + es-abstract "^1.19.1" once@^1.3.0, once@^1.3.1, once@^1.4.0: version "1.4.0" @@ -6399,6 +6445,11 @@ pako@^2.0.3: resolved "https://registry.yarnpkg.com/pako/-/pako-2.0.4.tgz#6cebc4bbb0b6c73b0d5b8d7e8476e2b2fbea576d" integrity sha512-v8tweI900AUkZN6heMU/4Uy4cXRc2AYNRggVmTR+dEncawDJgCdLMximOVA2p4qO57WMynangsfGRb5WD6L1Bg== +pako@~1.0.2: + version "1.0.11" + resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.11.tgz#6c9599d340d54dfd3946380252a35705a6b992bf" + integrity sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw== + parent-module@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" @@ -6621,21 +6672,20 @@ postcss-value-parser@^4.1.0: integrity sha512-97DXOFbQJhk71ne5/Mt6cOu6yxsSfM0QGQyl0L25Gca4yGWEGJaig7l7gbCX623VqTBNGLRLaVUCnNkcedlRSQ== postcss@^7.0.14, postcss@^7.0.2, postcss@^7.0.21, postcss@^7.0.26, postcss@^7.0.32, postcss@^7.0.35, postcss@^7.0.6: - version "7.0.36" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-7.0.36.tgz#056f8cffa939662a8f5905950c07d5285644dfcb" - integrity sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw== + version "7.0.38" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-7.0.38.tgz#5365a9c5126643d977046ad239f60eadda2491d6" + integrity sha512-wNrSHWjHDQJR/IZL5IKGxRtFgrYNaAA/UrkW2WqbtZO6uxSLMxMN+s2iqUMwnAWm3fMROlDYZB41dr0Mt7vBwQ== dependencies: - chalk "^2.4.2" + nanocolors "^0.2.2" source-map "^0.6.1" - supports-color "^6.1.0" postcss@^8.0.2: - version "8.3.6" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.3.6.tgz#2730dd76a97969f37f53b9a6096197be311cc4ea" - integrity sha512-wG1cc/JhRgdqB6WHEuyLTedf3KIRuD0hG6ldkFEZNCjRxiC+3i6kkWUUbiJQayP28iwG35cEmAbe98585BYV0A== + version "8.3.8" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.3.8.tgz#9ebe2a127396b4b4570ae9f7770e7fb83db2bac1" + integrity sha512-GT5bTjjZnwDifajzczOC+r3FI3Cu+PgPvrsjhQdRqa2kTJ4968/X9CUce9xttIB0xOs5c6xf0TCWZo/y9lF6bA== dependencies: - colorette "^1.2.2" - nanoid "^3.1.23" + nanocolors "^0.2.2" + nanoid "^3.1.25" source-map-js "^0.6.2" posthog-js@1.12.2: @@ -6728,11 +6778,11 @@ punycode@^2.1.0, punycode@^2.1.1: integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== pvtsutils@^1.1.6, pvtsutils@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/pvtsutils/-/pvtsutils-1.2.0.tgz#619e4767093d23cd600482600c16f4c36d3025bb" - integrity sha512-IDefMJEQl7HX0FP2hIKJFnAR11klP1js2ixCrOaMhe3kXFK6RQ2ABUCuwWaaD4ib0hSbh2fGTICvWJJhDfNecA== + version "1.2.1" + resolved "https://registry.yarnpkg.com/pvtsutils/-/pvtsutils-1.2.1.tgz#8212e846ca9afb21e40cebb0691755649f9f498a" + integrity sha512-Q867jEr30lBR2YSFFLZ0/XsEvpweqH6Kj096wmlRAFXrdRGPCNq2iz9B5Tk085EZ+OBZyYAVA5UhPkjSHGrUzQ== dependencies: - tslib "^2.2.0" + tslib "^2.3.1" pvutils@latest: version "1.0.17" @@ -6804,6 +6854,14 @@ randexp@0.4.6: discontinuous-range "1.0.0" ret "~0.1.10" +raw-loader@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/raw-loader/-/raw-loader-4.0.2.tgz#1aac6b7d1ad1501e66efdac1522c73e59a584eb6" + integrity sha512-ZnScIV3ag9A4wPX/ZayxL/jZH+euYb6FcUinPcgiQW0+UBtEv0O6Q3lGd3cqJ+GHH+rksEv3Pj99oxJ3u3VIKA== + dependencies: + loader-utils "^2.0.0" + schema-utils "^3.0.0" + re-resizable@^6.9.0: version "6.9.1" resolved "https://registry.yarnpkg.com/re-resizable/-/re-resizable-6.9.1.tgz#6be082b55d02364ca4bfee139e04feebdf52441c" @@ -6943,7 +7001,16 @@ read-pkg@^5.2.0: parse-json "^5.0.0" type-fest "^0.6.0" -readable-stream@^2.0.2: +readable-stream@^3.1.1: + version "3.6.0" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" + integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA== + dependencies: + inherits "^2.0.3" + string_decoder "^1.1.1" + util-deprecate "^1.0.1" + +readable-stream@~2.3.6: version "2.3.7" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57" integrity sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw== @@ -6956,24 +7023,6 @@ readable-stream@^2.0.2: string_decoder "~1.1.1" util-deprecate "~1.0.1" -readable-stream@^3.1.1: - version "3.6.0" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" - integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA== - dependencies: - inherits "^2.0.3" - string_decoder "^1.1.1" - util-deprecate "^1.0.1" - -readdirp@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.2.1.tgz#0e87622a3325aa33e892285caf8b4e846529a525" - integrity sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ== - dependencies: - graceful-fs "^4.1.11" - micromatch "^3.1.10" - readable-stream "^2.0.2" - readdirp@~3.6.0: version "3.6.0" resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7" @@ -6996,14 +7045,14 @@ redux@^4.0.0, redux@^4.0.4: dependencies: "@babel/runtime" "^7.9.2" -reflect.getprototypeof@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/reflect.getprototypeof/-/reflect.getprototypeof-1.0.1.tgz#f113f15e19d103d60b8d52ce7e0d45867efdddfc" - integrity sha512-z0FhUSaxXxnFQi+YyGfAvUJjCGPPwe0AO51LU/HtRLj/+a4LROrmSD6eYA3zr6aAK6GSbl8BCh/m5SAqUdAgTg== +reflect.getprototypeof@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/reflect.getprototypeof/-/reflect.getprototypeof-1.0.2.tgz#dd231808828913fd2198e151eb3e213d9dddf708" + integrity sha512-C1+ANgX50UkWlntmOJ8SD1VTuk28+7X1ackBdfXzLQG5+bmriEMHvBaor9YlotCfBHo277q/YWd/JKEOzr5Dxg== dependencies: call-bind "^1.0.2" define-properties "^1.1.3" - es-abstract "^1.18.6" + es-abstract "^1.19.1" get-intrinsic "^1.1.1" which-builtin-type "^1.1.1" @@ -7322,6 +7371,15 @@ scheduler@^0.20.2: loose-envify "^1.1.0" object-assign "^4.1.1" +schema-utils@^3.0.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.1.1.tgz#bc74c4b6b6995c1d88f76a8b77bea7219e0c8281" + integrity sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw== + dependencies: + "@types/json-schema" "^7.0.8" + ajv "^6.12.5" + ajv-keywords "^3.5.2" + "semver@2 || 3 || 4 || 5", semver@^5.5.0, semver@^5.6.0: version "5.7.1" resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" @@ -7349,6 +7407,11 @@ set-blocking@^2.0.0: resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc= +set-immediate-shim@~1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" + integrity sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E= + set-value@^2.0.0, set-value@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b" @@ -7410,9 +7473,9 @@ side-channel@^1.0.4: object-inspect "^1.9.0" signal-exit@^3.0.0, signal-exit@^3.0.2: - version "3.0.3" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.3.tgz#a1410c2edd8f077b08b4e253c8eacfcaf057461c" - integrity sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA== + version "3.0.5" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.5.tgz#9e3e8cc0c75a99472b44321033a7702e7738252f" + integrity sha512-KWcOiKeQj6ZyXx7zq4YxSMgHRlod4czeBQZrPb8OKcohcqAXShm7E20kEMle9WBt26hFcAf0qLOcp5zmY7kOqQ== sisteransi@^1.0.5: version "1.0.5" @@ -7484,7 +7547,7 @@ source-map-resolve@^0.5.0: source-map-url "^0.4.0" urix "^0.1.0" -source-map-support@^0.5.16, source-map-support@^0.5.20, source-map-support@^0.5.6: +source-map-support@^0.5.16, source-map-support@^0.5.6: version "0.5.20" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.20.tgz#12166089f8f5e5e8c56926b377633392dd2cb6c9" integrity sha512-n1lZZ8Ve4ksRqizaBQgxXDgKwttHDhyfQjA6YZZn8+AroHbsIz+JjwxQDxbp+7y5OYCI8t1Yk7etjD9CRd2hIw== @@ -7588,12 +7651,11 @@ stack-utils@^1.0.1: escape-string-regexp "^2.0.0" stack-utils@^2.0.2: - version "2.0.4" - resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-2.0.4.tgz#bf967ae2813d3d2d1e1f59a4408676495c8112ab" - integrity sha512-ERg+H//lSSYlZhBIUu+wJnqg30AbyBbpZlIhcshpn7BNzpoRODZgfyr9J+8ERf3ooC6af3u7Lcl01nleau7MrA== + version "2.0.5" + resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-2.0.5.tgz#d25265fca995154659dbbfba3b49254778d2fdd5" + integrity sha512-xrQcmYhOsn/1kX+Vraq+7j4oE2j/6BFscZ0etmYg81xuM8Gq0022Pxb8+IqgOFUIaxHs0KaSb7T1+OegiNrNFA== dependencies: escape-string-regexp "^2.0.0" - source-map-support "^0.5.20" static-extend@^0.1.1: version "0.1.2" @@ -7620,14 +7682,14 @@ string-width@^3.0.0, string-width@^3.1.0: is-fullwidth-code-point "^2.0.0" strip-ansi "^5.1.0" -string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2: - version "4.2.2" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.2.tgz#dafd4f9559a7585cfba529c6a0a4f73488ebd4c5" - integrity sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA== +string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2, string-width@^4.2.3: + version "4.2.3" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== dependencies: emoji-regex "^8.0.0" is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.0" + strip-ansi "^6.0.1" string.prototype.matchall@^4.0.5: version "4.0.5" @@ -7649,13 +7711,13 @@ string.prototype.repeat@^0.2.0: integrity sha1-q6Nt4I3O5qWjN9SbLqHaGyj8Ds8= string.prototype.trim@^1.2.1: - version "1.2.4" - resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.2.4.tgz#6014689baf5efaf106ad031a5fa45157666ed1bd" - integrity sha512-hWCk/iqf7lp0/AgTF7/ddO1IWtSNPASjlzCicV5irAVdE1grjsneK26YG6xACMBEdCvO8fUST0UzDMh/2Qy+9Q== + version "1.2.5" + resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.2.5.tgz#a587bcc8bfad8cb9829a577f5de30dd170c1682c" + integrity sha512-Lnh17webJVsD6ECeovpVN17RlAKjmz4rF9S+8Y45CkMc/ufVpTkU3vZIyIC7sllQ1FCvObZnnCdNs/HXTUOTlg== dependencies: call-bind "^1.0.2" define-properties "^1.1.3" - es-abstract "^1.18.0-next.2" + es-abstract "^1.19.1" string.prototype.trimend@^1.0.4: version "1.0.4" @@ -7694,12 +7756,12 @@ strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0: dependencies: ansi-regex "^4.1.0" -strip-ansi@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532" - integrity sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w== +strip-ansi@^6.0.0, strip-ansi@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== dependencies: - ansi-regex "^5.0.0" + ansi-regex "^5.0.1" strip-bom@^4.0.0: version "4.0.0" @@ -7857,16 +7919,16 @@ symbol-tree@^3.2.4: integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== table@^6.0.4, table@^6.6.0: - version "6.7.1" - resolved "https://registry.yarnpkg.com/table/-/table-6.7.1.tgz#ee05592b7143831a8c94f3cee6aae4c1ccef33e2" - integrity sha512-ZGum47Yi6KOOFDE8m223td53ath2enHcYLgOCjGr5ngu8bdIARQk6mN/wRMv4yMRcHnCSnHbCEha4sobQx5yWg== + version "6.7.2" + resolved "https://registry.yarnpkg.com/table/-/table-6.7.2.tgz#a8d39b9f5966693ca8b0feba270a78722cbaf3b0" + integrity sha512-UFZK67uvyNivLeQbVtkiUs8Uuuxv24aSL4/Vil2PJVtMgU8Lx0CYkP12uCGa3kjyQzOSgV1+z9Wkb82fCGsO0g== dependencies: ajv "^8.0.1" lodash.clonedeep "^4.5.0" lodash.truncate "^4.4.2" slice-ansi "^4.0.0" - string-width "^4.2.0" - strip-ansi "^6.0.0" + string-width "^4.2.3" + strip-ansi "^6.0.1" tar-js@^0.3.0: version "0.3.0" @@ -7984,6 +8046,11 @@ tr46@^2.1.0: dependencies: punycode "^2.1.1" +tr46@~0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" + integrity sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o= + tree-kill@^1.2.2: version "1.2.2" resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.2.tgz#4ca09a9092c88b73a7cdc5e8a01b507b0790a0cc" @@ -8196,11 +8263,6 @@ unset-value@^1.0.0: has-value "^0.3.1" isobject "^3.0.0" -upath@^1.1.1: - version "1.2.0" - resolved "https://registry.yarnpkg.com/upath/-/upath-1.2.0.tgz#8f66dbcd55a883acdae4408af8b035a5044c1894" - integrity sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg== - uri-js@^4.2.2: version "4.4.1" resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" @@ -8323,9 +8385,9 @@ w3c-xmlserializer@^2.0.0: xml-name-validator "^3.0.0" walk@^2.3.14: - version "2.3.14" - resolved "https://registry.yarnpkg.com/walk/-/walk-2.3.14.tgz#60ec8631cfd23276ae1e7363ce11d626452e1ef3" - integrity sha512-5skcWAUmySj6hkBdH6B6+3ddMjVQYH5Qy9QGbPmN8kVmLteXk+yVXg+yfk1nbX30EYakahLrr8iPcCxJQSCBeg== + version "2.3.15" + resolved "https://registry.yarnpkg.com/walk/-/walk-2.3.15.tgz#1b4611e959d656426bc521e2da5db3acecae2424" + integrity sha512-4eRTBZljBfIISK1Vnt69Gvr2w/wc3U6Vtrw7qiN5iqYJPH7LElcYh/iU4XWhdCy2dZqv1ToMyYlybDylfG/5Vg== dependencies: foreachasync "^3.0.0" @@ -8347,6 +8409,11 @@ webcrypto-core@^1.2.0: pvtsutils "^1.2.0" tslib "^2.3.1" +webidl-conversions@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" + integrity sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE= + webidl-conversions@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-5.0.0.tgz#ae59c8a00b121543a2acc65c0434f57b0fc11aff" @@ -8384,6 +8451,14 @@ whatwg-mimetype@^2.3.0: resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf" integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g== +whatwg-url@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" + integrity sha1-lmRU6HZUYuN2RNNib2dCzotwll0= + dependencies: + tr46 "~0.0.3" + webidl-conversions "^3.0.0" + whatwg-url@^8.0.0, whatwg-url@^8.5.0: version "8.7.0" resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-8.7.0.tgz#656a78e510ff8f3937bc0bcbe9f5c0ac35941b77" @@ -8600,9 +8675,9 @@ yargs@^15.4.1: yargs-parser "^18.1.2" yargs@^17.0.1: - version "17.1.1" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.1.1.tgz#c2a8091564bdb196f7c0a67c1d12e5b85b8067ba" - integrity sha512-c2k48R0PwKIqKhPMWjeiF6y2xY/gPMUlro0sgxqXpbOIohWiLNXWslsootttv7E1e73QPAMQSg5FeySbVcpsPQ== + version "17.2.1" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.2.1.tgz#e2c95b9796a0e1f7f3bf4427863b42e0418191ea" + integrity sha512-XfR8du6ua4K6uLGm5S6fA+FIJom/MdJcFNVY8geLlp2v8GYbOXD4EB1tPNZsRn4vBzKGMgb5DRZMeWuFc2GO8Q== dependencies: cliui "^7.0.2" escalade "^3.1.1"