From ecacc408f849e773a6d6a3442891c30774ac661d Mon Sep 17 00:00:00 2001 From: David Langley Date: Fri, 6 Sep 2024 13:39:45 +0100 Subject: [PATCH] Update copyright headers and add spdx id --- jest.config.ts | 14 +++---------- module_system/BuildConfig.ts | 15 +++---------- module_system/installer.ts | 15 +++---------- module_system/scripts/install.ts | 15 +++---------- recorder-worklet-loader.js | 14 +++---------- res/css/structures/ErrorView.pcss | 15 +++---------- src/@types/global.d.ts | 15 +++---------- src/@types/jitsi-meet.d.ts | 14 +++---------- src/@types/svg.d.ts | 14 +++---------- src/async-components/structures/ErrorView.tsx | 15 +++---------- .../views/auth/VectorAuthFooter.tsx | 15 +++---------- .../views/auth/VectorAuthHeaderLogo.tsx | 15 +++---------- src/components/views/auth/VectorAuthPage.tsx | 15 +++---------- src/favicon.ts | 15 +++---------- src/languageHandler.tsx | 14 +++---------- src/serviceworker/index.ts | 15 +++---------- src/vector/app.tsx | 21 ++++++------------- src/vector/devcss.ts | 14 +++---------- src/vector/getconfig.ts | 15 +++---------- src/vector/index.ts | 21 ++++++------------- src/vector/indexeddb-worker.ts | 14 +++---------- src/vector/init.tsx | 19 +++++------------ src/vector/jitsi/index.pcss | 15 +++---------- src/vector/jitsi/index.ts | 15 +++---------- src/vector/platform/ElectronPlatform.tsx | 19 +++++------------ src/vector/platform/IPCManager.ts | 15 +++---------- src/vector/platform/PWAPlatform.ts | 15 +++---------- src/vector/platform/SeshatIndexManager.ts | 15 +++---------- src/vector/platform/VectorBasePlatform.ts | 17 ++++----------- src/vector/platform/WebPlatform.ts | 15 +++---------- src/vector/rageshakesetup.ts | 15 +++---------- src/vector/routing.ts | 14 +++---------- src/vector/url_utils.ts | 15 +++---------- test/app-tests/server-config-test.ts | 14 +++---------- test/app-tests/wrapper-test.tsx | 14 +++---------- test/jest-mocks.ts | 14 +++---------- test/setup/setupLanguage.ts | 14 +++---------- test/test-utils.ts | 14 +++---------- .../structures/ErrorView-test.tsx | 14 +++---------- .../views/auth/VectorAuthFooter-test.tsx | 14 +++---------- .../views/auth/VectorAuthHeaderLogo-test.tsx | 14 +++---------- .../views/auth/VectorAuthPage-test.tsx | 14 +++---------- test/unit-tests/favicon-test.ts | 14 +++---------- test/unit-tests/vector/getconfig-test.ts | 14 +++---------- .../vector/platform/ElectronPlatform-test.ts | 14 +++---------- .../vector/platform/PWAPlatform-test.ts | 14 +++---------- .../vector/platform/WebPlatform-test.ts | 14 +++---------- test/unit-tests/vector/routing-test.ts | 14 +++---------- test/unit-tests/vector/url_utils-test.ts | 15 +++---------- 49 files changed, 158 insertions(+), 576 deletions(-) diff --git a/jest.config.ts b/jest.config.ts index 051a8eb8ff5..55fc582d0c6 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -1,17 +1,9 @@ /* Copyright 2023 The Matrix.org Foundation C.I.C. +Copyright 2024 New Vector Ltd. -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import { env } from "process"; diff --git a/module_system/BuildConfig.ts b/module_system/BuildConfig.ts index 59e17d0da93..4ae16642749 100644 --- a/module_system/BuildConfig.ts +++ b/module_system/BuildConfig.ts @@ -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"); -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import * as YAML from "yaml"; diff --git a/module_system/installer.ts b/module_system/installer.ts index a1e31e42a88..8bda4a42786 100644 --- a/module_system/installer.ts +++ b/module_system/installer.ts @@ -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"); -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import * as fs from "fs"; diff --git a/module_system/scripts/install.ts b/module_system/scripts/install.ts index a3de3c46da0..1d9a7116296 100644 --- a/module_system/scripts/install.ts +++ b/module_system/scripts/install.ts @@ -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"); -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import { readBuildConfig } from "../BuildConfig"; diff --git a/recorder-worklet-loader.js b/recorder-worklet-loader.js index db19495674f..6c830c1bfe5 100644 --- a/recorder-worklet-loader.js +++ b/recorder-worklet-loader.js @@ -1,17 +1,9 @@ /* Copyright 2023 The Matrix.org Foundation C.I.C. +Copyright 2024 New Vector Ltd. -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ // Inspired by https://github.com/reklawnos/worklet-loader which doesn't diff --git a/res/css/structures/ErrorView.pcss b/res/css/structures/ErrorView.pcss index 3506e78700b..de5d26ae9c6 100644 --- a/res/css/structures/ErrorView.pcss +++ b/res/css/structures/ErrorView.pcss @@ -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"); -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ .mx_ErrorView { diff --git a/src/@types/global.d.ts b/src/@types/global.d.ts index dd8bd374786..abc5eb53217 100644 --- a/src/@types/global.d.ts +++ b/src/@types/global.d.ts @@ -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"); -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import "matrix-react-sdk/src/@types/global"; // load matrix-react-sdk's type extensions first diff --git a/src/@types/jitsi-meet.d.ts b/src/@types/jitsi-meet.d.ts index a5680debde5..b613f5b6814 100644 --- a/src/@types/jitsi-meet.d.ts +++ b/src/@types/jitsi-meet.d.ts @@ -1,17 +1,9 @@ /* Copyright 2023 The Matrix.org Foundation C.I.C. +Copyright 2024 New Vector Ltd. -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import "jitsi-meet"; diff --git a/src/@types/svg.d.ts b/src/@types/svg.d.ts index 29c2f555e31..7b98a00b622 100644 --- a/src/@types/svg.d.ts +++ b/src/@types/svg.d.ts @@ -1,17 +1,9 @@ /* Copyright 2022 The Matrix.org Foundation C.I.C. +Copyright 2024 New Vector Ltd. -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ declare module "*.svg" { diff --git a/src/async-components/structures/ErrorView.tsx b/src/async-components/structures/ErrorView.tsx index 775e123b3fb..f67798a1465 100644 --- a/src/async-components/structures/ErrorView.tsx +++ b/src/async-components/structures/ErrorView.tsx @@ -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"); -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import React, { ReactNode } from "react"; diff --git a/src/components/views/auth/VectorAuthFooter.tsx b/src/components/views/auth/VectorAuthFooter.tsx index aab9b542619..e6a81d37c13 100644 --- a/src/components/views/auth/VectorAuthFooter.tsx +++ b/src/components/views/auth/VectorAuthFooter.tsx @@ -1,18 +1,9 @@ /* +Copyright 2019-2024 New Vector Ltd. Copyright 2015, 2016 OpenMarket Ltd -Copyright 2019 New Vector Ltd -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import React, { ReactElement } from "react"; diff --git a/src/components/views/auth/VectorAuthHeaderLogo.tsx b/src/components/views/auth/VectorAuthHeaderLogo.tsx index 688a929d11d..ed967eda63b 100644 --- a/src/components/views/auth/VectorAuthHeaderLogo.tsx +++ b/src/components/views/auth/VectorAuthHeaderLogo.tsx @@ -1,18 +1,9 @@ /* +Copyright 2019-2024 New Vector Ltd. Copyright 2015, 2016 OpenMarket Ltd -Copyright 2019 New Vector Ltd -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import * as React from "react"; diff --git a/src/components/views/auth/VectorAuthPage.tsx b/src/components/views/auth/VectorAuthPage.tsx index e04dfcefd74..b1ed0f7b83f 100644 --- a/src/components/views/auth/VectorAuthPage.tsx +++ b/src/components/views/auth/VectorAuthPage.tsx @@ -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"); -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import * as React from "react"; diff --git a/src/favicon.ts b/src/favicon.ts index a8391b1adc1..a277283514f 100644 --- a/src/favicon.ts +++ b/src/favicon.ts @@ -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"); -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ interface IParams { diff --git a/src/languageHandler.tsx b/src/languageHandler.tsx index 511a9b21e39..5606eb52eed 100644 --- a/src/languageHandler.tsx +++ b/src/languageHandler.tsx @@ -1,17 +1,9 @@ /* Copyright 2023 The Matrix.org Foundation C.I.C. +Copyright 2024 New Vector Ltd. -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import React from "react"; diff --git a/src/serviceworker/index.ts b/src/serviceworker/index.ts index fc3e04fd514..f9ba2cb4bcd 100644 --- a/src/serviceworker/index.ts +++ b/src/serviceworker/index.ts @@ -1,17 +1,8 @@ /* -Copyright 2024 New Vector Ltd +Copyright 2024 New Vector Ltd. -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import { idbLoad } from "matrix-react-sdk/src/utils/StorageAccess"; diff --git a/src/vector/app.tsx b/src/vector/app.tsx index 7c82e4a91a0..938b8bc969b 100644 --- a/src/vector/app.tsx +++ b/src/vector/app.tsx @@ -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 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"); -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ // To ensure we load the browser-matrix version first diff --git a/src/vector/devcss.ts b/src/vector/devcss.ts index be4016b61f5..37d3c4d7635 100644 --- a/src/vector/devcss.ts +++ b/src/vector/devcss.ts @@ -1,17 +1,9 @@ /* Copyright 2021 The Matrix.org Foundation C.I.C. +Copyright 2024 New Vector Ltd. -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ /** diff --git a/src/vector/getconfig.ts b/src/vector/getconfig.ts index 5078560b17c..c0e6274ab25 100644 --- a/src/vector/getconfig.ts +++ b/src/vector/getconfig.ts @@ -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"); -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import type { IConfigOptions } from "matrix-react-sdk/src/IConfigOptions"; diff --git a/src/vector/index.ts b/src/vector/index.ts index 7a2f3e2b59f..85d8ca2307c 100644 --- a/src/vector/index.ts +++ b/src/vector/index.ts @@ -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 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"); -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import { logger } from "matrix-js-sdk/src/logger"; diff --git a/src/vector/indexeddb-worker.ts b/src/vector/indexeddb-worker.ts index 113bc87d6c1..c82b451cc66 100644 --- a/src/vector/indexeddb-worker.ts +++ b/src/vector/indexeddb-worker.ts @@ -1,17 +1,9 @@ /* Copyright 2017 Vector Creations Ltd +Copyright 2024 New Vector Ltd. -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import { IndexedDBStoreWorker } from "matrix-js-sdk/src/indexeddb-worker"; diff --git a/src/vector/init.tsx b/src/vector/init.tsx index 277321eba4c..2f1a3838c20 100644 --- a/src/vector/init.tsx +++ b/src/vector/init.tsx @@ -1,20 +1,11 @@ /* -Copyright 2015, 2016 OpenMarket Ltd -Copyright 2017 Vector Creations Ltd Copyright 2019 Michael Telatynski <7t3chguy@gmail.com> -Copyright 2018 - 2022 New Vector Ltd - -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 +Copyright 2018-2024 New Vector Ltd. +Copyright 2017 Vector Creations Ltd +Copyright 2015, 2016 OpenMarket Ltd -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import * as ReactDOM from "react-dom"; diff --git a/src/vector/jitsi/index.pcss b/src/vector/jitsi/index.pcss index 6f37dd4ba9a..ec2568c9101 100644 --- a/src/vector/jitsi/index.pcss +++ b/src/vector/jitsi/index.pcss @@ -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"); -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ /* TODO: Match the user's theme: https://github.com/element-hq/element-web/issues/12794 */ diff --git a/src/vector/jitsi/index.ts b/src/vector/jitsi/index.ts index a62bef19873..9cededc9c37 100644 --- a/src/vector/jitsi/index.ts +++ b/src/vector/jitsi/index.ts @@ -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"); -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import { KJUR } from "jsrsasign"; diff --git a/src/vector/platform/ElectronPlatform.tsx b/src/vector/platform/ElectronPlatform.tsx index 23b8a0f9c8b..de14f44e78c 100644 --- a/src/vector/platform/ElectronPlatform.tsx +++ b/src/vector/platform/ElectronPlatform.tsx @@ -1,21 +1,12 @@ /* +Copyright 2022 Šimon Brandner +Copyright 2019 Michael Telatynski <7t3chguy@gmail.com> +Copyright 2018-2024 New Vector Ltd. Copyright 2016 Aviral Dasgupta Copyright 2016 OpenMarket Ltd -Copyright 2019 Michael Telatynski <7t3chguy@gmail.com> -Copyright 2018 - 2021 New Vector Ltd -Copyright 2022 Šimon Brandner - -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import { UpdateCheckStatus, UpdateStatus } from "matrix-react-sdk/src/BasePlatform"; diff --git a/src/vector/platform/IPCManager.ts b/src/vector/platform/IPCManager.ts index 2ad4a255659..e209b63f88a 100644 --- a/src/vector/platform/IPCManager.ts +++ b/src/vector/platform/IPCManager.ts @@ -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"); -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import { defer, IDeferred } from "matrix-js-sdk/src/utils"; diff --git a/src/vector/platform/PWAPlatform.ts b/src/vector/platform/PWAPlatform.ts index 3cd73d1e6c8..08d2fda11a3 100644 --- a/src/vector/platform/PWAPlatform.ts +++ b/src/vector/platform/PWAPlatform.ts @@ -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"); -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import { logger } from "matrix-js-sdk/src/logger"; diff --git a/src/vector/platform/SeshatIndexManager.ts b/src/vector/platform/SeshatIndexManager.ts index dd77d580022..7381499fa5a 100644 --- a/src/vector/platform/SeshatIndexManager.ts +++ b/src/vector/platform/SeshatIndexManager.ts @@ -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"); -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import BaseEventIndexManager, { diff --git a/src/vector/platform/VectorBasePlatform.ts b/src/vector/platform/VectorBasePlatform.ts index 9af22da967f..81aae500080 100644 --- a/src/vector/platform/VectorBasePlatform.ts +++ b/src/vector/platform/VectorBasePlatform.ts @@ -1,20 +1,11 @@ /* +Copyright 2019 Michael Telatynski <7t3chguy@gmail.com> +Copyright 2018-2024 New Vector Ltd. Copyright 2016 Aviral Dasgupta 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"); -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import BasePlatform from "matrix-react-sdk/src/BasePlatform"; diff --git a/src/vector/platform/WebPlatform.ts b/src/vector/platform/WebPlatform.ts index 99c3c778a9d..1dee3a35715 100644 --- a/src/vector/platform/WebPlatform.ts +++ b/src/vector/platform/WebPlatform.ts @@ -1,19 +1,10 @@ /* +Copyright 2017-2024 New Vector Ltd. Copyright 2016 Aviral Dasgupta Copyright 2016 OpenMarket Ltd -Copyright 2017-2020, 2024 New Vector Ltd -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import { UpdateCheckStatus, UpdateStatus } from "matrix-react-sdk/src/BasePlatform"; diff --git a/src/vector/rageshakesetup.ts b/src/vector/rageshakesetup.ts index 67746b1afe9..1c664921b7d 100644 --- a/src/vector/rageshakesetup.ts +++ b/src/vector/rageshakesetup.ts @@ -1,18 +1,9 @@ /* -Copyright 2018 New Vector Ltd 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"); -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ /* diff --git a/src/vector/routing.ts b/src/vector/routing.ts index 2420ee2fe76..4417b7f781d 100644 --- a/src/vector/routing.ts +++ b/src/vector/routing.ts @@ -1,17 +1,9 @@ /* Copyright 2022 The Matrix.org Foundation C.I.C. +Copyright 2024 New Vector Ltd. -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ // Parse the given window.location and return parameters that can be used when calling diff --git a/src/vector/url_utils.ts b/src/vector/url_utils.ts index f4b09eed41a..149b4c69df3 100644 --- a/src/vector/url_utils.ts +++ b/src/vector/url_utils.ts @@ -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"); -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import { QueryDict, decodeParams } from "matrix-js-sdk/src/utils"; diff --git a/test/app-tests/server-config-test.ts b/test/app-tests/server-config-test.ts index 32e92de7814..793c8086b7f 100644 --- a/test/app-tests/server-config-test.ts +++ b/test/app-tests/server-config-test.ts @@ -1,17 +1,9 @@ /* Copyright 2023 Yorusaka Miyabi +Copyright 2024 New Vector Ltd. -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import SdkConfig from "matrix-react-sdk/src/SdkConfig"; diff --git a/test/app-tests/wrapper-test.tsx b/test/app-tests/wrapper-test.tsx index a2dbe6cf736..6a7a9b9249e 100644 --- a/test/app-tests/wrapper-test.tsx +++ b/test/app-tests/wrapper-test.tsx @@ -1,18 +1,10 @@ /* Copyright 2023 Mikhail Aheichyk Copyright 2023 Nordeck IT + Consulting GmbH. +Copyright 2024 New Vector Ltd. -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import React from "react"; diff --git a/test/jest-mocks.ts b/test/jest-mocks.ts index 3302ea9ff91..b3cba56385a 100644 --- a/test/jest-mocks.ts +++ b/test/jest-mocks.ts @@ -1,17 +1,9 @@ /* 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"); -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ // https://jestjs.io/docs/en/manual-mocks#mocking-methods-which-are-not-implemented-in-jsdom diff --git a/test/setup/setupLanguage.ts b/test/setup/setupLanguage.ts index 2dc4f0b048b..930add86b3e 100644 --- a/test/setup/setupLanguage.ts +++ b/test/setup/setupLanguage.ts @@ -1,17 +1,9 @@ /* Copyright 2023 The Matrix.org Foundation C.I.C. +Copyright 2024 New Vector Ltd. -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import fetchMock from "fetch-mock-jest"; diff --git a/test/test-utils.ts b/test/test-utils.ts index 2b2ef8f7112..892dd5f618c 100644 --- a/test/test-utils.ts +++ b/test/test-utils.ts @@ -1,17 +1,9 @@ /* 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"); -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import { RenderResult, screen, waitFor } from "@testing-library/react"; diff --git a/test/unit-tests/async-components/structures/ErrorView-test.tsx b/test/unit-tests/async-components/structures/ErrorView-test.tsx index 266511dba7a..cb29be654ef 100644 --- a/test/unit-tests/async-components/structures/ErrorView-test.tsx +++ b/test/unit-tests/async-components/structures/ErrorView-test.tsx @@ -1,17 +1,9 @@ /* Copyright 2022 The Matrix.org Foundation C.I.C. +Copyright 2024 New Vector Ltd. -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import * as React from "react"; diff --git a/test/unit-tests/components/views/auth/VectorAuthFooter-test.tsx b/test/unit-tests/components/views/auth/VectorAuthFooter-test.tsx index f91d57f48a5..333b7b57416 100644 --- a/test/unit-tests/components/views/auth/VectorAuthFooter-test.tsx +++ b/test/unit-tests/components/views/auth/VectorAuthFooter-test.tsx @@ -1,17 +1,9 @@ /* Copyright 2022 The Matrix.org Foundation C.I.C. +Copyright 2024 New Vector Ltd. -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import * as React from "react"; diff --git a/test/unit-tests/components/views/auth/VectorAuthHeaderLogo-test.tsx b/test/unit-tests/components/views/auth/VectorAuthHeaderLogo-test.tsx index ff86d784257..a705eab5d0d 100644 --- a/test/unit-tests/components/views/auth/VectorAuthHeaderLogo-test.tsx +++ b/test/unit-tests/components/views/auth/VectorAuthHeaderLogo-test.tsx @@ -1,17 +1,9 @@ /* Copyright 2022 The Matrix.org Foundation C.I.C. +Copyright 2024 New Vector Ltd. -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import * as React from "react"; diff --git a/test/unit-tests/components/views/auth/VectorAuthPage-test.tsx b/test/unit-tests/components/views/auth/VectorAuthPage-test.tsx index d4c58e0b8e5..1271d1e819c 100644 --- a/test/unit-tests/components/views/auth/VectorAuthPage-test.tsx +++ b/test/unit-tests/components/views/auth/VectorAuthPage-test.tsx @@ -1,17 +1,9 @@ /* Copyright 2022 The Matrix.org Foundation C.I.C. +Copyright 2024 New Vector Ltd. -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import * as React from "react"; diff --git a/test/unit-tests/favicon-test.ts b/test/unit-tests/favicon-test.ts index 4e9739db0b8..7a2a40348f9 100644 --- a/test/unit-tests/favicon-test.ts +++ b/test/unit-tests/favicon-test.ts @@ -1,17 +1,9 @@ /* Copyright 2022 The Matrix.org Foundation C.I.C. +Copyright 2024 New Vector Ltd. -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import "jest-canvas-mock"; diff --git a/test/unit-tests/vector/getconfig-test.ts b/test/unit-tests/vector/getconfig-test.ts index 75378541722..689ce291290 100644 --- a/test/unit-tests/vector/getconfig-test.ts +++ b/test/unit-tests/vector/getconfig-test.ts @@ -1,17 +1,9 @@ /* Copyright 2022 The Matrix.org Foundation C.I.C. +Copyright 2024 New Vector Ltd. -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import fetchMock from "fetch-mock-jest"; diff --git a/test/unit-tests/vector/platform/ElectronPlatform-test.ts b/test/unit-tests/vector/platform/ElectronPlatform-test.ts index 128bacc99be..b105c55bec0 100644 --- a/test/unit-tests/vector/platform/ElectronPlatform-test.ts +++ b/test/unit-tests/vector/platform/ElectronPlatform-test.ts @@ -1,17 +1,9 @@ /* Copyright 2022 The Matrix.org Foundation C.I.C. +Copyright 2024 New Vector Ltd. -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import { logger } from "matrix-js-sdk/src/logger"; diff --git a/test/unit-tests/vector/platform/PWAPlatform-test.ts b/test/unit-tests/vector/platform/PWAPlatform-test.ts index e9b508b2113..a04b5d3a8c5 100644 --- a/test/unit-tests/vector/platform/PWAPlatform-test.ts +++ b/test/unit-tests/vector/platform/PWAPlatform-test.ts @@ -1,17 +1,9 @@ /* Copyright 2022 The Matrix.org Foundation C.I.C. +Copyright 2024 New Vector Ltd. -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import { mocked } from "jest-mock"; diff --git a/test/unit-tests/vector/platform/WebPlatform-test.ts b/test/unit-tests/vector/platform/WebPlatform-test.ts index 00854a9dd20..1b1824b807b 100644 --- a/test/unit-tests/vector/platform/WebPlatform-test.ts +++ b/test/unit-tests/vector/platform/WebPlatform-test.ts @@ -1,17 +1,9 @@ /* Copyright 2022 The Matrix.org Foundation C.I.C. +Copyright 2024 New Vector Ltd. -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import fetchMock from "fetch-mock-jest"; diff --git a/test/unit-tests/vector/routing-test.ts b/test/unit-tests/vector/routing-test.ts index bb7adccacbf..0bd97e3ae9c 100644 --- a/test/unit-tests/vector/routing-test.ts +++ b/test/unit-tests/vector/routing-test.ts @@ -1,17 +1,9 @@ /* Copyright 2022 The Matrix.org Foundation C.I.C. +Copyright 2024 New Vector Ltd. -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import { getInitialScreenAfterLogin, onNewScreen } from "../../../src/vector/routing"; diff --git a/test/unit-tests/vector/url_utils-test.ts b/test/unit-tests/vector/url_utils-test.ts index 4b907de55da..af29dc49826 100644 --- a/test/unit-tests/vector/url_utils-test.ts +++ b/test/unit-tests/vector/url_utils-test.ts @@ -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"); -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. +SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only +Please see LICENSE in the repository root for full details. */ import { parseQsFromFragment, parseQs } from "../../../src/vector/url_utils";