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 051a8eb8ff..55fc582d0c 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 59e17d0da9..4ae1664274 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 a1e31e42a8..8bda4a4278 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 a3de3c46da..1d9a711629 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 db19495674..6c830c1bfe 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 3506e78700..de5d26ae9c 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 dd8bd37478..abc5eb5321 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 a5680debde..b613f5b681 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 29c2f555e3..7b98a00b62 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 775e123b3f..f67798a146 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 aab9b54261..e6a81d37c1 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 688a929d11..ed967eda63 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 e04dfcefd7..b1ed0f7b83 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 a8391b1adc..a277283514 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 511a9b21e3..5606eb52ee 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 fc3e04fd51..f9ba2cb4bc 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 7c82e4a91a..938b8bc969 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 be4016b61f..37d3c4d763 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 5078560b17..c0e6274ab2 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 7a2f3e2b59..85d8ca2307 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 113bc87d6c..c82b451cc6 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 277321eba4..2f1a3838c2 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 +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 * as ReactDOM from "react-dom"; diff --git a/src/vector/jitsi/index.pcss b/src/vector/jitsi/index.pcss index 6f37dd4ba9..ec2568c910 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 a62bef1987..9cededc9c3 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 23b8a0f9c8..de14f44e78 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 2ad4a25565..e209b63f88 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 3cd73d1e6c..08d2fda11a 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 dd77d58002..7381499fa5 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 9af22da967..81aae50008 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 99c3c778a9..1dee3a3571 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 67746b1afe..1c664921b7 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 2420ee2fe7..4417b7f781 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 f4b09eed41..149b4c69df 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 32e92de781..793c8086b7 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 a2dbe6cf73..6a7a9b9249 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 3302ea9ff9..b3cba56385 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 2dc4f0b048..930add86b3 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 2b2ef8f711..892dd5f618 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 266511dba7..cb29be654e 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 f91d57f48a..333b7b5741 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 ff86d78425..a705eab5d0 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 d4c58e0b8e..1271d1e819 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 4e9739db0b..7a2a40348f 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 7537854172..689ce29129 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 128bacc99b..b105c55bec 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 e9b508b211..a04b5d3a8c 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 00854a9dd2..1b1824b807 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 bb7adccacb..0bd97e3ae9 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 4b907de55d..af29dc4982 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";