Update copyright headers and add spdx id

This commit is contained in:
David Langley 2024-09-06 13:39:45 +01:00
parent b454a91c41
commit ecacc408f8
49 changed files with 158 additions and 576 deletions

View File

@ -1,17 +1,9 @@
/* /*
Copyright 2023 The Matrix.org Foundation C.I.C. Copyright 2023 The Matrix.org Foundation C.I.C.
Copyright 2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 { env } from "process"; import { env } from "process";

View File

@ -1,17 +1,8 @@
/* /*
Copyright 2022 New Vector Ltd. Copyright 2022-2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 * as YAML from "yaml"; import * as YAML from "yaml";

View File

@ -1,17 +1,8 @@
/* /*
Copyright 2022 New Vector Ltd. Copyright 2022-2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 * as fs from "fs"; import * as fs from "fs";

View File

@ -1,17 +1,8 @@
/* /*
Copyright 2022 New Vector Ltd. Copyright 2022-2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 { readBuildConfig } from "../BuildConfig"; import { readBuildConfig } from "../BuildConfig";

View File

@ -1,17 +1,9 @@
/* /*
Copyright 2023 The Matrix.org Foundation C.I.C. Copyright 2023 The Matrix.org Foundation C.I.C.
Copyright 2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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.
*/ */
// Inspired by https://github.com/reklawnos/worklet-loader which doesn't // Inspired by https://github.com/reklawnos/worklet-loader which doesn't

View File

@ -1,17 +1,8 @@
/* /*
Copyright 2020 New Vector Ltd Copyright 2020-2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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_ErrorView { .mx_ErrorView {

View File

@ -1,17 +1,8 @@
/* /*
Copyright 2020, 2021 New Vector Ltd Copyright 2020-2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 "matrix-react-sdk/src/@types/global"; // load matrix-react-sdk's type extensions first import "matrix-react-sdk/src/@types/global"; // load matrix-react-sdk's type extensions first

View File

@ -1,17 +1,9 @@
/* /*
Copyright 2023 The Matrix.org Foundation C.I.C. Copyright 2023 The Matrix.org Foundation C.I.C.
Copyright 2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 "jitsi-meet"; import "jitsi-meet";

14
src/@types/svg.d.ts vendored
View File

@ -1,17 +1,9 @@
/* /*
Copyright 2022 The Matrix.org Foundation C.I.C. Copyright 2022 The Matrix.org Foundation C.I.C.
Copyright 2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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.
*/ */
declare module "*.svg" { declare module "*.svg" {

View File

@ -1,17 +1,8 @@
/* /*
Copyright 2020 New Vector Ltd Copyright 2020-2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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, { ReactNode } from "react"; import React, { ReactNode } from "react";

View File

@ -1,18 +1,9 @@
/* /*
Copyright 2019-2024 New Vector Ltd.
Copyright 2015, 2016 OpenMarket Ltd Copyright 2015, 2016 OpenMarket Ltd
Copyright 2019 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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, { ReactElement } from "react"; import React, { ReactElement } from "react";

View File

@ -1,18 +1,9 @@
/* /*
Copyright 2019-2024 New Vector Ltd.
Copyright 2015, 2016 OpenMarket Ltd Copyright 2015, 2016 OpenMarket Ltd
Copyright 2019 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 * as React from "react"; import * as React from "react";

View File

@ -1,17 +1,8 @@
/* /*
Copyright 2019, 2020 New Vector Ltd Copyright 2019-2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 * as React from "react"; import * as React from "react";

View File

@ -1,17 +1,8 @@
/* /*
Copyright 2020 New Vector Ltd Copyright 2020-2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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.
*/ */
interface IParams { interface IParams {

View File

@ -1,17 +1,9 @@
/* /*
Copyright 2023 The Matrix.org Foundation C.I.C. Copyright 2023 The Matrix.org Foundation C.I.C.
Copyright 2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 React from "react";

View File

@ -1,17 +1,8 @@
/* /*
Copyright 2024 New Vector Ltd Copyright 2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 { idbLoad } from "matrix-react-sdk/src/utils/StorageAccess"; import { idbLoad } from "matrix-react-sdk/src/utils/StorageAccess";

View File

@ -1,21 +1,12 @@
/* /*
Copyright 2015, 2016 OpenMarket Ltd
Copyright 2017 Vector Creations Ltd
Copyright 2018, 2019 New Vector Ltd
Copyright 2019 Michael Telatynski <7t3chguy@gmail.com>
Copyright 2020 The Matrix.org Foundation C.I.C. Copyright 2020 The Matrix.org Foundation C.I.C.
Copyright 2019 Michael Telatynski <7t3chguy@gmail.com>
Copyright 2018-2024 New Vector Ltd.
Copyright 2017 Vector Creations Ltd
Copyright 2015, 2016 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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.
*/ */
// To ensure we load the browser-matrix version first // To ensure we load the browser-matrix version first

View File

@ -1,17 +1,9 @@
/* /*
Copyright 2021 The Matrix.org Foundation C.I.C. Copyright 2021 The Matrix.org Foundation C.I.C.
Copyright 2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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.
*/ */
/** /**

View File

@ -1,17 +1,8 @@
/* /*
Copyright 2018, 2020 New Vector Ltd Copyright 2018-2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 type { IConfigOptions } from "matrix-react-sdk/src/IConfigOptions"; import type { IConfigOptions } from "matrix-react-sdk/src/IConfigOptions";

View File

@ -1,21 +1,12 @@
/* /*
Copyright 2015, 2016 OpenMarket Ltd
Copyright 2017 Vector Creations Ltd
Copyright 2018, 2019 New Vector Ltd
Copyright 2019 Michael Telatynski <7t3chguy@gmail.com>
Copyright 2020 The Matrix.org Foundation C.I.C. Copyright 2020 The Matrix.org Foundation C.I.C.
Copyright 2019 Michael Telatynski <7t3chguy@gmail.com>
Copyright 2018-2024 New Vector Ltd.
Copyright 2017 Vector Creations Ltd
Copyright 2015, 2016 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 { logger } from "matrix-js-sdk/src/logger"; import { logger } from "matrix-js-sdk/src/logger";

View File

@ -1,17 +1,9 @@
/* /*
Copyright 2017 Vector Creations Ltd Copyright 2017 Vector Creations Ltd
Copyright 2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 { IndexedDBStoreWorker } from "matrix-js-sdk/src/indexeddb-worker"; import { IndexedDBStoreWorker } from "matrix-js-sdk/src/indexeddb-worker";

View File

@ -1,20 +1,11 @@
/* /*
Copyright 2015, 2016 OpenMarket Ltd
Copyright 2017 Vector Creations Ltd
Copyright 2019 Michael Telatynski <7t3chguy@gmail.com> Copyright 2019 Michael Telatynski <7t3chguy@gmail.com>
Copyright 2018 - 2022 New Vector Ltd Copyright 2018-2024 New Vector Ltd.
Copyright 2017 Vector Creations Ltd
Copyright 2015, 2016 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 * as ReactDOM from "react-dom"; import * as ReactDOM from "react-dom";

View File

@ -1,17 +1,8 @@
/* /*
Copyright 2020 New Vector Ltd. Copyright 2020-2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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.
*/ */
/* TODO: Match the user's theme: https://github.com/element-hq/element-web/issues/12794 */ /* TODO: Match the user's theme: https://github.com/element-hq/element-web/issues/12794 */

View File

@ -1,17 +1,8 @@
/* /*
Copyright 2020-2022 New Vector Ltd. Copyright 2020-2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 { KJUR } from "jsrsasign"; import { KJUR } from "jsrsasign";

View File

@ -1,21 +1,12 @@
/* /*
Copyright 2022 Šimon Brandner <simon.bra.ag@gmail.com>
Copyright 2019 Michael Telatynski <7t3chguy@gmail.com>
Copyright 2018-2024 New Vector Ltd.
Copyright 2016 Aviral Dasgupta Copyright 2016 Aviral Dasgupta
Copyright 2016 OpenMarket Ltd Copyright 2016 OpenMarket Ltd
Copyright 2019 Michael Telatynski <7t3chguy@gmail.com>
Copyright 2018 - 2021 New Vector Ltd
Copyright 2022 Šimon Brandner <simon.bra.ag@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 { UpdateCheckStatus, UpdateStatus } from "matrix-react-sdk/src/BasePlatform"; import { UpdateCheckStatus, UpdateStatus } from "matrix-react-sdk/src/BasePlatform";

View File

@ -1,17 +1,8 @@
/* /*
Copyright 2022 New Vector Ltd Copyright 2022-2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 { defer, IDeferred } from "matrix-js-sdk/src/utils"; import { defer, IDeferred } from "matrix-js-sdk/src/utils";

View File

@ -1,17 +1,8 @@
/* /*
Copyright 2020 New Vector Ltd Copyright 2020-2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 { logger } from "matrix-js-sdk/src/logger"; import { logger } from "matrix-js-sdk/src/logger";

View File

@ -1,17 +1,8 @@
/* /*
Copyright 2022 New Vector Ltd Copyright 2022-2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 BaseEventIndexManager, { import BaseEventIndexManager, {

View File

@ -1,20 +1,11 @@
/* /*
Copyright 2019 Michael Telatynski <7t3chguy@gmail.com>
Copyright 2018-2024 New Vector Ltd.
Copyright 2016 Aviral Dasgupta Copyright 2016 Aviral Dasgupta
Copyright 2016 OpenMarket Ltd Copyright 2016 OpenMarket Ltd
Copyright 2018, 2020 New Vector Ltd
Copyright 2019 Michael Telatynski <7t3chguy@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 BasePlatform from "matrix-react-sdk/src/BasePlatform"; import BasePlatform from "matrix-react-sdk/src/BasePlatform";

View File

@ -1,19 +1,10 @@
/* /*
Copyright 2017-2024 New Vector Ltd.
Copyright 2016 Aviral Dasgupta Copyright 2016 Aviral Dasgupta
Copyright 2016 OpenMarket Ltd Copyright 2016 OpenMarket Ltd
Copyright 2017-2020, 2024 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 { UpdateCheckStatus, UpdateStatus } from "matrix-react-sdk/src/BasePlatform"; import { UpdateCheckStatus, UpdateStatus } from "matrix-react-sdk/src/BasePlatform";

View File

@ -1,18 +1,9 @@
/* /*
Copyright 2018 New Vector Ltd
Copyright 2020 The Matrix.org Foundation C.I.C. Copyright 2020 The Matrix.org Foundation C.I.C.
Copyright 2018-2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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.
*/ */
/* /*

View File

@ -1,17 +1,9 @@
/* /*
Copyright 2022 The Matrix.org Foundation C.I.C. Copyright 2022 The Matrix.org Foundation C.I.C.
Copyright 2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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.
*/ */
// Parse the given window.location and return parameters that can be used when calling // Parse the given window.location and return parameters that can be used when calling

View File

@ -1,17 +1,8 @@
/* /*
Copyright 2018, 2020 New Vector Ltd Copyright 2018-2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 { QueryDict, decodeParams } from "matrix-js-sdk/src/utils"; import { QueryDict, decodeParams } from "matrix-js-sdk/src/utils";

View File

@ -1,17 +1,9 @@
/* /*
Copyright 2023 Yorusaka Miyabi <shadowrz@disroot.org> Copyright 2023 Yorusaka Miyabi <shadowrz@disroot.org>
Copyright 2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 SdkConfig from "matrix-react-sdk/src/SdkConfig"; import SdkConfig from "matrix-react-sdk/src/SdkConfig";

View File

@ -1,18 +1,10 @@
/* /*
Copyright 2023 Mikhail Aheichyk Copyright 2023 Mikhail Aheichyk
Copyright 2023 Nordeck IT + Consulting GmbH. Copyright 2023 Nordeck IT + Consulting GmbH.
Copyright 2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 React from "react";

View File

@ -1,17 +1,9 @@
/* /*
Copyright 2020-2022 The Matrix.org Foundation C.I.C. Copyright 2020-2022 The Matrix.org Foundation C.I.C.
Copyright 2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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.
*/ */
// https://jestjs.io/docs/en/manual-mocks#mocking-methods-which-are-not-implemented-in-jsdom // https://jestjs.io/docs/en/manual-mocks#mocking-methods-which-are-not-implemented-in-jsdom

View File

@ -1,17 +1,9 @@
/* /*
Copyright 2023 The Matrix.org Foundation C.I.C. Copyright 2023 The Matrix.org Foundation C.I.C.
Copyright 2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 fetchMock from "fetch-mock-jest"; import fetchMock from "fetch-mock-jest";

View File

@ -1,17 +1,9 @@
/* /*
Copyright 2016-2022 The Matrix.org Foundation C.I.C. Copyright 2016-2022 The Matrix.org Foundation C.I.C.
Copyright 2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 { RenderResult, screen, waitFor } from "@testing-library/react"; import { RenderResult, screen, waitFor } from "@testing-library/react";

View File

@ -1,17 +1,9 @@
/* /*
Copyright 2022 The Matrix.org Foundation C.I.C. Copyright 2022 The Matrix.org Foundation C.I.C.
Copyright 2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 * as React from "react"; import * as React from "react";

View File

@ -1,17 +1,9 @@
/* /*
Copyright 2022 The Matrix.org Foundation C.I.C. Copyright 2022 The Matrix.org Foundation C.I.C.
Copyright 2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 * as React from "react"; import * as React from "react";

View File

@ -1,17 +1,9 @@
/* /*
Copyright 2022 The Matrix.org Foundation C.I.C. Copyright 2022 The Matrix.org Foundation C.I.C.
Copyright 2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 * as React from "react"; import * as React from "react";

View File

@ -1,17 +1,9 @@
/* /*
Copyright 2022 The Matrix.org Foundation C.I.C. Copyright 2022 The Matrix.org Foundation C.I.C.
Copyright 2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 * as React from "react"; import * as React from "react";

View File

@ -1,17 +1,9 @@
/* /*
Copyright 2022 The Matrix.org Foundation C.I.C. Copyright 2022 The Matrix.org Foundation C.I.C.
Copyright 2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 "jest-canvas-mock"; import "jest-canvas-mock";

View File

@ -1,17 +1,9 @@
/* /*
Copyright 2022 The Matrix.org Foundation C.I.C. Copyright 2022 The Matrix.org Foundation C.I.C.
Copyright 2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 fetchMock from "fetch-mock-jest"; import fetchMock from "fetch-mock-jest";

View File

@ -1,17 +1,9 @@
/* /*
Copyright 2022 The Matrix.org Foundation C.I.C. Copyright 2022 The Matrix.org Foundation C.I.C.
Copyright 2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 { logger } from "matrix-js-sdk/src/logger"; import { logger } from "matrix-js-sdk/src/logger";

View File

@ -1,17 +1,9 @@
/* /*
Copyright 2022 The Matrix.org Foundation C.I.C. Copyright 2022 The Matrix.org Foundation C.I.C.
Copyright 2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 { mocked } from "jest-mock"; import { mocked } from "jest-mock";

View File

@ -1,17 +1,9 @@
/* /*
Copyright 2022 The Matrix.org Foundation C.I.C. Copyright 2022 The Matrix.org Foundation C.I.C.
Copyright 2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 fetchMock from "fetch-mock-jest"; import fetchMock from "fetch-mock-jest";

View File

@ -1,17 +1,9 @@
/* /*
Copyright 2022 The Matrix.org Foundation C.I.C. Copyright 2022 The Matrix.org Foundation C.I.C.
Copyright 2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 { getInitialScreenAfterLogin, onNewScreen } from "../../../src/vector/routing"; import { getInitialScreenAfterLogin, onNewScreen } from "../../../src/vector/routing";

View File

@ -1,17 +1,8 @@
/* /*
Copyright 2020 New Vector Ltd Copyright 2020-2024 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
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 { parseQsFromFragment, parseQs } from "../../../src/vector/url_utils"; import { parseQsFromFragment, parseQs } from "../../../src/vector/url_utils";