From 119b681d4dc3186a2de734dd8afeeb5caa7c795c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Jaenisch?= Date: Wed, 14 Aug 2024 16:01:33 +0200 Subject: [PATCH] chore: update REUSE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit REUSE had a breaking change that changed the way they configure the tool: https://github.com/fsfe/reuse-tool/releases/tag/v4.0.0 This PR adjusts our code to get compliant again. Signed-off-by: André Jaenisch --- .nycrc.json.license | 4 ++++ .reuse/dep5 | 10 ---------- REUSE.toml | 8 ++++++++ src/lib/assets/anvil.png.license | 4 ++++ tests/components/setup.ts | 12 ++++++++++++ 5 files changed, 28 insertions(+), 10 deletions(-) create mode 100644 .nycrc.json.license delete mode 100644 .reuse/dep5 create mode 100644 REUSE.toml create mode 100644 src/lib/assets/anvil.png.license diff --git a/.nycrc.json.license b/.nycrc.json.license new file mode 100644 index 0000000..7f6d295 --- /dev/null +++ b/.nycrc.json.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2023 Pere Lev +SPDX-FileCopyrightText: 2024 André Jaenisch + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/.reuse/dep5 b/.reuse/dep5 deleted file mode 100644 index c291da2..0000000 --- a/.reuse/dep5 +++ /dev/null @@ -1,10 +0,0 @@ -Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ -Upstream-Name: Anvil -Upstream-Contact: Pere Lev -Source: https://codeberg.org/Anvil/Anvil - -# Sample paragraph, commented out: -# -# Files: src/* -# Copyright: $YEAR $NAME <$CONTACT> -# License: ... diff --git a/REUSE.toml b/REUSE.toml new file mode 100644 index 0000000..673a57d --- /dev/null +++ b/REUSE.toml @@ -0,0 +1,8 @@ +# SPDX-FileCopyrightText: 2024 André Jaenisch +# SPDX-License-Identifier: AGPL-3.0-or-later + +version = 1 +SPDX-PackageName = "Anvil" +SPDX-PackageSupplier = "Pere Lev " +SPDX-PackageDownloadLocation = "https://codeberg.org/Anvil/Anvil" +annotations = [] diff --git a/src/lib/assets/anvil.png.license b/src/lib/assets/anvil.png.license new file mode 100644 index 0000000..7f6d295 --- /dev/null +++ b/src/lib/assets/anvil.png.license @@ -0,0 +1,4 @@ +SPDX-FileCopyrightText: 2023 Pere Lev +SPDX-FileCopyrightText: 2024 André Jaenisch + +SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/tests/components/setup.ts b/tests/components/setup.ts index 7b091ce..732743c 100644 --- a/tests/components/setup.ts +++ b/tests/components/setup.ts @@ -1,3 +1,15 @@ +/* Vitest setup for custom global variables. + * Copyright (C) 2024 André Jaenisch + * SPDX-FileCopyrightText: 2024 André Jaenisch + * SPDX-License-Identifier: AGPL-3.0-or-later + * + * This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License along with this program. If not, see . + */ + Object.defineProperty(window, 'matchMedia', { writable: true, value: vi.fn().mockImplementation((query) => ({